/* V1.19: immersive workspace and local search library. No geometry changes. */
#drawer-close,#drawer-toggle{display:none}#immersive-map,#search-library,#theme-toggle{font-size:11px}.workspace-actions{flex-wrap:wrap}.matching-fold{margin:5px 0 8px}#matching-locations{display:flex;flex-wrap:wrap;gap:6px}.match-location{font-size:12px}.matching-fold .fine{margin:5px 0}body.immersive-active{overflow:hidden}.workspace.immersive{position:fixed;inset:0;z-index:1000;display:block!important;background:var(--app-bg,#edf2ed);padding:8px;overflow:hidden;isolation:isolate}.workspace.immersive .map-section{height:100%;width:100%;overflow-y:auto;overscroll-behavior:contain;margin:0;padding:9px;position:relative}.workspace.immersive #map{height:calc(100dvh - 190px);min-height:260px;max-height:none}.workspace.immersive #criteria{display:none}.workspace.immersive.drawer-open #criteria{display:block!important;position:absolute;z-index:5;top:64px;left:15px;width:min(330px,calc(100% - 30px));max-height:calc(100dvh - 85px);overflow:auto;box-shadow:0 12px 40px #142f3060;border:1px solid #8ca89a;overscroll-behavior:contain}.workspace.immersive #drawer-toggle,.workspace.immersive.drawer-open #drawer-close{display:inline-flex}.workspace.immersive #focus-map,.workspace.immersive .mobile-jump{display:none}.workspace.immersive #drawer-close{float:right;font-size:11px}.workspace.immersive #criteria h2{display:inline-block}.workspace.immersive .map-section>.section-head{position:sticky;top:0;background:var(--app-surface,#fff);z-index:3;margin:-9px -9px 6px;padding:9px 12px;border-bottom:1px solid var(--app-border,#dce5dc)}.workspace.immersive .map-section>.section-head h2{font-size:17px}.workspace.immersive .map-label{font-size:11px}#search-dialog{box-sizing:border-box;width:min(720px,calc(100% - 24px));max-height:90dvh;overflow:auto;border:1px solid var(--app-border,#dce5dc);border-radius:15px;padding:20px;color:inherit;background:var(--app-surface,#fff);box-shadow:0 20px 70px #132e3c55}#search-dialog::backdrop{background:#122d35a6}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.dialog-head h2{margin:4px 0}.share-location-choice{display:flex;gap:7px;align-items:flex-start;padding:10px;background:var(--app-soft,#f1f5ef);border-radius:8px;font-size:13px}.library-row{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap;margin:12px 0}.library-row label{flex:1;min-width:135px}.library-row input,.library-row select,#search-link{display:block;width:100%;box-sizing:border-box;margin-top:4px}.named-row{display:flex;gap:8px;align-items:center;padding:9px 0;border-bottom:1px solid var(--app-border,#dce5dc)}.named-row>div{flex:1;min-width:0;overflow-wrap:anywhere}.named-row small{display:block;font-size:11px}.incoming-search{padding:10px;margin:8px 0;border:1px solid #8ba58b;border-radius:8px}#search-comparison{overflow:auto}#search-comparison table{font-size:12px}#search-dialog hr{border:0;border-top:1px solid var(--app-border,#dce5dc);margin:18px 0}#library-status{overflow-wrap:anywhere}#search-dialog input[type=text]{padding:8px}
@media(max-width:730px){#drawer-toggle{display:inline-flex}.workspace.immersive{padding:0}.workspace.immersive .map-section{border-radius:0;padding:8px}.workspace.immersive .map-section>.section-head{margin:-8px -8px 5px;padding:8px;gap:4px}.workspace.immersive #map{height:calc(100dvh - 240px);min-height:270px}.workspace.immersive.drawer-open #criteria{top:105px;max-height:calc(100dvh - 122px);left:8px;width:min(340px,calc(100% - 16px))}.workspace.immersive .workspace-actions{gap:4px}.workspace-actions button{font-size:11px;padding:6px}.named-row button{padding:5px;font-size:12px}#search-dialog{padding:13px}}
/* Dark UI; tiles are dimmed separately, preserving the suitability overlay colors. */
html[data-theme=dark]{color-scheme:dark;--app-bg:#14241f;--app-surface:#1d3029;--app-border:#3c5549;--app-muted:#a8c2b2;--app-soft:#263b31;--forest:#c0e2c9;--green:#a5d9b2;--muted:#b5c9be;--line:#3c5549;--cream:#1d3029;background:#14241f;color:#e4eee8}html[data-theme=dark] body{background:#14241f;color:#e4eee8}html[data-theme=dark] :is(.panel,.search-dock,.map-section,.filters,#grid-summary,.radius-controls,.filter-group,.display-fields,.land-controls,.advanced-fold,.map-advanced,.evidence-controls,.parcel-panel,.search-suggestions,.active-chip,.grid-counts>div,.stat,.sourcegrid article,.map-toolbar,.search-settings-content,.workspace-legend,.saved-fold,.search-settings,.notice,#notice){background:#1d3029;color:#e4eee8;border-color:#3c5549}html[data-theme=dark] :is(input,select,button.ghost,.ghost,a.ghost,.suggestion){background:#263b31;color:#e4eee8;border-color:#547060}html[data-theme=dark] :is(.fine,small,.caption,.map-label,.eyebrow,.active-count,.group-count,.metric label,.workspace-legend,#match-rate,.search-disclosure){color:#b4c9ba}html[data-theme=dark] :is(h1,h2,h3,strong,label,summary,a:not(.brand),.active-chip b){color:inherit}html[data-theme=dark] .primary{background:#36775b;color:#fff}html[data-theme=dark] #tiles{filter:brightness(.70) saturate(.76)}html[data-theme=dark] .zoom button{background:#263b31;color:#fff}html[data-theme=dark] .map-attrib{background:#23362ddc;color:#e4eee8}html[data-theme=dark] .grid-counts .match-green{color:#7ed49b}html[data-theme=dark] .grid-counts .match-red{color:#ff9a9a}html[data-theme=dark] .workspace.immersive .map-section>.section-head{background:#1d3029}
@media print{body.print-assessment{overflow:visible!important;background:white!important;color:black!important}body.print-assessment header,body.print-assessment footer,body.print-assessment main>:not(.results),body.print-assessment dialog,body.print-assessment .results button,body.print-assessment .results .links,body.print-assessment .skip{display:none!important}body.print-assessment main{display:block;max-width:none;padding:0}body.print-assessment .results{display:block!important;border:none;box-shadow:none;background:white!important;color:black!important}body.print-assessment .results *{color:black!important;background:transparent!important;box-shadow:none!important}body.print-assessment .results .table-wrap{overflow:visible!important}body.print-assessment .results table{width:100%;font-size:10pt}body.print-assessment .results tr{break-inside:avoid}body.print-assessment .results thead{display:table-header-group}}
