*,*:before,*:after{margin:0;padding:0;box-sizing:border-box}html,body,#app{width:100%;height:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;overflow:hidden}#map{width:100%;height:100%;transition:height .3s ease}#app.panel-open #map{height:55%}.mapboxgl-ctrl-geocoder{min-width:260px;max-width:360px;font-size:14px}.tract-tooltip{pointer-events:auto;position:fixed;z-index:10;background:#fffffff2;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);padding:6px 10px;border-radius:6px;box-shadow:0 2px 8px #00000026;font-size:13px;line-height:1.35;max-width:min(240px,calc(100vw - 20px));white-space:normal;overflow-wrap:anywhere;word-break:break-word;display:none;color:#222}.tract-tooltip-id{font-size:17px;font-weight:700;letter-spacing:-.02em;line-height:1.15;margin-bottom:0}.tract-tooltip-cbsa{font-style:italic;font-weight:400;color:#6b7280;font-size:13px;margin-bottom:4px}.tract-tooltip-gent{font-size:12px;font-weight:600;margin-bottom:4px;line-height:1.3}.tract-tooltip-cat-row{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:2px}.tract-tooltip-cat{font-weight:700;font-size:13px;flex:1;min-width:0}.ui-cat-methodology-link{color:#034ea0;text-decoration:underline;text-underline-offset:2px}.ui-cat-methodology-link:hover{color:#023a78}.ui-source-wrap{position:relative;display:inline-flex;align-items:center;flex-shrink:0}.ui-source-btn{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;padding:0;margin:0;border:none;border-radius:50%;background:#e8ecf1;color:#475569;cursor:pointer;line-height:0;transition:background .15s ease,color .15s ease}.ui-source-btn .ui-source-svg{width:14px;height:14px;display:block;flex-shrink:0}.ui-source-btn:hover,.ui-source-btn:focus-visible{background:#dce3ec;color:#1e293b;outline:none}.ui-source-popover{position:absolute;z-index:30;min-width:10rem;max-width:14rem;padding:8px 10px;background:#fff;border:1px solid #e2e8f0;border-radius:6px;box-shadow:0 4px 14px #0000001f;font-size:12px;line-height:1.4;color:#334155;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .12s ease,visibility .12s ease}.ui-source-popover-text{margin:0}.ui-source-wrap:hover .ui-source-popover,.ui-source-wrap:focus-within .ui-source-popover{opacity:1;visibility:visible;pointer-events:auto}.ui-source-wrap--tooltip .ui-source-popover{top:100%;right:0;margin-top:4px;left:auto}.ui-source-wrap--legend .ui-source-popover{top:100%;right:0;margin-top:4px}.ui-source-wrap--panel .ui-source-popover{top:100%;left:0;margin-top:4px}.ui-source-wrap--tooltip .ui-source-btn{width:17px;height:17px}.ui-source-wrap--tooltip .ui-source-btn .ui-source-svg{width:13px;height:13px}.ui-source-wrap--legend .ui-source-btn{width:16px;height:16px}.ui-source-wrap--legend .ui-source-btn .ui-source-svg{width:12px;height:12px}.ui-source-wrap--panel .ui-source-btn{width:17px;height:17px}.ui-source-wrap--panel .ui-source-btn .ui-source-svg{width:13px;height:13px}.panel{position:absolute;bottom:0;left:0;right:0;height:45%;background:#fff;border-top:1px solid #ddd;z-index:20;display:flex;flex-direction:column;transition:transform .3s ease;overflow:hidden}.panel.hidden{transform:translateY(100%);pointer-events:none}.panel-header{display:flex;justify-content:space-between;align-items:flex-start;padding:14px 18px 10px;border-bottom:1px solid #eee;flex-shrink:0}.panel-header-info{display:flex;flex-direction:column;gap:2px}.panel-header-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px}.panel-header .tract-id{font-weight:700;font-size:16px;color:#111}.panel-header .meta{font-size:13px;color:#555}.panel-header .meta-primary{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;line-height:1.4}.panel-header .meta-cat-line{display:inline-flex;align-items:center;gap:4px;min-width:0}.panel-header .meta-cat-text{min-width:0}.panel-header .meta-sep{color:#94a3b8;-webkit-user-select:none;user-select:none}.panel-header .meta-cbsa{color:#555}.panel-gent-badge{display:inline-block;flex-shrink:0;padding:4px 9px;border-radius:4px;font-size:10px;font-weight:700;letter-spacing:.06em;color:#fff;background:#d62728;cursor:help}.panel-gent-badge[hidden]{display:none!important}.panel-close{background:none;border:none;font-size:22px;cursor:pointer;color:#888;line-height:1;padding:0 0 0 12px}.panel-close:hover{color:#333}.tabs{display:flex;overflow-x:auto;border-bottom:1px solid #eee;flex-shrink:0;-webkit-overflow-scrolling:touch}.tabs::-webkit-scrollbar{display:none}.tab{flex-shrink:0;padding:10px 16px;font-size:13px;cursor:pointer;border:none;background:none;color:#666;border-bottom:2px solid transparent;transition:color .15s,border-color .15s;white-space:nowrap}.tab:hover{color:#333}.tab.active{color:#111;border-bottom-color:#111;font-weight:600}.chart-container{flex:1;overflow:hidden;padding:12px 18px;position:relative;transition:opacity .2s ease}.chart-container.chart-container--pending{opacity:.55;pointer-events:none}.chart-container svg{width:100%;height:100%}.beeswarm-label{font-size:15px;font-weight:700;fill:#0f172a;paint-order:stroke fill;stroke:#fff;stroke-width:5px;stroke-linejoin:round}.beeswarm-axis text{font-size:11px;fill:#666}.beeswarm-axis line,.beeswarm-axis path{stroke:#ccc}.mapboxgl-ctrl-top-right .mapboxgl-ctrl.legend-control{width:auto}.legend-control{width:fit-content;max-width:100%;pointer-events:auto}.legend-control-wrap{position:relative;display:block;width:fit-content;margin-left:auto}.legend-toggle{display:flex;align-items:center;justify-content:center;width:29px;height:29px;padding:0;border:none;background:#fff;cursor:pointer;color:#333;box-shadow:0 0 0 2px #0000001a;border-radius:4px;flex-shrink:0}.legend-toggle:hover{background:#f5f5f5}.legend-panel{position:absolute;top:calc(100% + 4px);right:0;z-index:2;max-height:0;overflow:hidden;transition:max-height .28s ease;width:200px;max-width:min(200px,calc(100vw - 24px))}.legend-panel.legend-panel--open{max-height:420px}.legend-panel-inner{background:#fffffff5;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);padding:8px 10px;border-radius:6px;box-shadow:0 2px 10px #00000026;font-size:10px;line-height:1.4;width:100%;box-sizing:border-box;text-align:left}.legend-title-row{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:6px}.legend-title{font-weight:700;margin:0;font-size:11px;color:#222}.legend-item{display:flex;align-items:flex-start;gap:8px;margin-bottom:6px}.legend-item:last-child{margin-bottom:0}.legend-item--outline{margin-top:8px;padding-top:8px;border-top:1px solid #e8e8e8}.legend-label{flex:1;min-width:0;color:#333}.legend-swatch{width:14px;height:14px;border-radius:3px;flex-shrink:0;margin-top:1px}.legend-outline{width:14px;height:3px;border-radius:1px;flex-shrink:0;margin-top:5px}.legend-outline--gent{width:14px;height:14px;border-radius:3px;border:2px solid;background:transparent;margin-top:1px}.about-map-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:0;box-sizing:border-box;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));pointer-events:auto;overflow:hidden}.about-map-modal__backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:#0f172a8c;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.about-map-modal__panel{position:relative;z-index:1;width:min(560px,100%);max-width:100%;max-height:min(720px,calc(100vh - 24px));max-height:min(720px,calc(100dvh - 24px));max-height:min(720px,max(0px,calc(100% - 24px)));min-height:0;display:flex;flex-direction:column;background:#fff;border-radius:10px;box-shadow:0 20px 50px #00000038;overflow:hidden}.about-map-modal__title{flex-shrink:0;padding:18px 20px 0;font-size:18px;font-weight:700;color:#0f172a;letter-spacing:-.02em}.about-map-modal__body{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:14px 20px 8px;font-size:14px;line-height:1.55;color:#334155;text-align:justify;text-justify:inter-word;hyphens:auto;-webkit-hyphens:auto}.about-map-modal__body p{margin-bottom:12px}.about-map-modal__body p:last-child{margin-bottom:0}.about-map-modal__list{margin:0 0 12px;padding-left:1.35em;list-style:disc}.about-map-modal__list li{margin-bottom:10px;padding-left:.15em}.about-map-modal__list li:last-child{margin-bottom:0}.about-map-modal__link{color:#034ea0;text-decoration:underline;text-underline-offset:2px}.about-map-modal__link:hover{color:#023a78}.about-map-modal__link--italic{font-style:italic}.about-map-modal__actions{flex-shrink:0;padding:14px 20px max(18px,env(safe-area-inset-bottom));border-top:1px solid #e2e8f0}@media (max-width: 480px){.about-map-modal{padding:max(8px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}.about-map-modal__panel{max-height:min(720px,calc(100vh - 16px));max-height:min(720px,calc(100dvh - 16px));max-height:min(720px,max(0px,calc(100% - 16px)));border-radius:8px}.about-map-modal__title{padding:14px 16px 0;font-size:16px}.about-map-modal__body{padding:12px 16px 6px;font-size:13px;line-height:1.5}.about-map-modal__actions{padding:12px 16px max(14px,env(safe-area-inset-bottom))}.about-map-modal__primary{padding:11px 16px;font-size:14px}}@media (max-height: 560px){.about-map-modal{padding:max(6px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}.about-map-modal__panel{max-height:min(720px,calc(100vh - 12px));max-height:min(720px,calc(100dvh - 12px));max-height:min(720px,max(0px,calc(100% - 12px)));border-radius:6px}.about-map-modal__title{padding:10px 14px 0;font-size:15px}.about-map-modal__body{padding:8px 14px 4px;font-size:12px;line-height:1.45}.about-map-modal__list{padding-left:1.2em;margin-bottom:10px}.about-map-modal__list li{margin-bottom:8px}.about-map-modal__actions{padding:10px 14px max(10px,env(safe-area-inset-bottom))}.about-map-modal__primary{padding:10px 14px;font-size:14px}}.about-map-modal__primary{width:100%;padding:12px 18px;font-size:15px;font-weight:600;color:#fff;background:#034ea0;border:none;border-radius:8px;cursor:pointer;transition:background .15s ease}.about-map-modal__primary:hover{background:#023a78}.about-map-modal__primary:focus-visible{outline:2px solid #034ea0;outline-offset:2px}
