/* Public Works workspace only. Load after the unified shell's legacy styles.
   Utility swatches and map source layer paint retain their published category colors. */
:root, html body #projectSheet.project-sheet-drawer {
  --pw-paper:#fff; --pw-ground:#f6f7f8; --pw-ink:#20242b; --pw-muted:#626873;
  --pw-line:#dfe1e5; --pw-soft:#f6f7f8; --pw-accent:#e64b08; --pw-accent-soft:#fff1e7;
  --h2-bg:var(--pw-ground); --h2-s:var(--pw-paper); --h2-s2:var(--pw-soft);
  --h2-t:var(--pw-ink); --h2-m:var(--pw-muted); --h2-b:var(--pw-line); --h2-a:var(--pw-accent-strong);
  --text-heading:var(--pw-ink); --text-body:var(--pw-ink); --text-muted:var(--pw-muted);
  --brand-blue:var(--pw-accent-strong); --brand-blue-subtle:var(--pw-accent-soft); --pw-accent-strong:#b93d08; --pw-control-line:#bfc4cc; --pw-accent-line:#edc6af;
}
html body {background:var(--pw-ground)!important;color:var(--pw-ink)!important}
/* Canonical project-jacket media contract: every surface uses the same frame. */
html body :is(.pw-jobs .job-image,.pw-project-page #scopeOverview .pw-project-scope,#projectSheet .h2-jacket-project-media){
  overflow:hidden!important;background:var(--pw-soft)!important;
}
html body :is(.pw-jobs .job-image img,.pw-project-page #scopeOverview .pw-project-scope>img,#projectSheet .h2-jacket-project-media img){
  display:block!important;width:100%!important;height:auto!important;aspect-ratio:3/2!important;
  object-fit:contain!important;object-position:center!important;background:var(--pw-soft)!important;
}
html body .pw-jobs .job-image{min-height:0!important;align-items:stretch!important}
html body .pw-jobs .job-image figure{width:100%!important;margin:0!important;display:grid!important;grid-template-rows:auto auto!important;align-content:start!important}

html body :is(.topbar,.top-search-header,.filter-rail,.project-rail,.gis-layer-dock,.map-legend-card,.project-sheet-drawer,.my-claims-drawer-panel) {
  background:var(--pw-paper)!important;color:var(--pw-ink)!important;border-color:var(--pw-line)!important;
  border-radius:10px!important;box-shadow:0 4px 22px #252b2214!important;backdrop-filter:none!important;
}
html body :is(.filter-pill,.top-nav-tab,.basemap-btn,.gis-preset-pill,.gis-filter-pill,.legend-collapse-btn,.project-rail-layers-btn) {
  background:#fff!important;color:var(--pw-muted)!important;border:1px solid var(--pw-line)!important;box-shadow:none!important;border-radius:6px!important;
}
html body :is(.filter-pill.active,.top-nav-tab.active,.basemap-btn.active,.gis-preset-pill.active,.gis-filter-pill.active) {
  background:var(--pw-accent-soft)!important;color:var(--pw-accent-strong)!important;border-color:var(--pw-accent-line)!important;
}
html body :is(.filter-pill,.top-nav-tab) :is(.count,.pill-count,.filter-count) {background:var(--pw-soft)!important;color:var(--pw-muted)!important}
html body :is(#btnUndergroundMode,.project-rail-sewer-btn) {background:var(--pw-accent-strong)!important;color:#fff!important;border:1px solid var(--pw-accent)!important;box-shadow:none!important;border-radius:6px!important}
html body :is(.brand-icon,.logo-icon) {background:var(--pw-accent)!important;box-shadow:none!important}
html body :is(.brand-name,.brand-sub,.layer-dock-title,.project-rail-title,.legend-item-desc) {color:var(--pw-ink)!important}

/* Map rail: quiet rows; color belongs to the utility dot, not the whole rail. */
html body #gisLayerDock {border:1px solid var(--pw-line)!important;scrollbar-color:var(--pw-control-line) transparent}
html body #gisLayerDock :is(.layer-dock-header,.layer-item-container,.basemap-segment-bar) {background:#fff!important;border-color:var(--pw-line)!important}
html body #gisLayerDock .layer-dock-title {font:650 11px/1.4 Inter,system-ui,sans-serif!important;letter-spacing:.065em!important}
html body #gisLayerDock .layer-dock-badge {background:var(--pw-soft)!important;color:var(--pw-muted)!important;box-shadow:none!important}
html body #gisLayerDock .layer-item-container {gap:5px!important;padding:8px!important}
html body #gisLayerDock :is(.layer-toggle-btn,.layer-sub-btn) {
  background:#fff!important;color:var(--pw-ink)!important;border:1px solid transparent!important;border-radius:5px!important;
  box-shadow:none!important;min-height:34px!important;font:500 12px/1.35 Inter,system-ui,sans-serif!important;padding:7px 9px!important;
}
html body #gisLayerDock :is(.layer-toggle-btn.active,.layer-sub-btn.active) {background:var(--pw-soft)!important;border-color:var(--pw-line)!important;color:var(--pw-ink)!important;font-weight:650!important}
html body #gisLayerDock :is(.layer-toggle-btn:hover,.layer-sub-btn:hover) {border-color:var(--pw-control-line)!important;background:var(--pw-soft)!important}
html body #gisLayerDock .subsurface-category-dock {padding:5px!important;gap:2px!important;background:var(--pw-soft)!important;border:1px solid var(--pw-line)!important;border-radius:6px!important}
html body #gisLayerDock .layer-sub-master {background:#fff!important;color:var(--pw-accent-strong)!important;border-color:var(--pw-accent-line)!important;font-weight:650!important}
html body #gisLayerDock .layer-toggle-btn.active .layer-checkbox {background:var(--pw-accent)!important;border-color:var(--pw-accent)!important}
html body #gisLayerDock .sub-dot {box-shadow:none!important;flex-shrink:0}
html body #gisLayerDock :is(.layer-count,.sub-count) {color:var(--pw-muted)!important;font-size:10px!important;margin-left:auto}
html body #gisLayerDock select {font:500 12px/1.4 Inter,system-ui,sans-serif!important;border:1px solid var(--pw-control-line)!important;border-radius:5px!important;background:#fff!important;color:var(--pw-ink)!important;min-height:36px!important;max-width:100%;box-sizing:border-box}
html body #btnMinimizeLayers {background:var(--pw-soft)!important;color:var(--pw-ink)!important;border-color:var(--pw-line)!important;border-radius:5px!important}
html body :is(.map-legend-card,.legend-header,#h2Utility2dLegend) {background:#fff!important;color:var(--pw-ink)!important;border-color:var(--pw-line)!important;box-shadow:0 3px 16px #252b2212!important}
html body .legend-header {font-weight:650!important}
html body .legend-item {border-color:var(--pw-line)!important}

/* Geographic project pills keep their anchor, bounds and source labels. */
html body :is(.project-bubble-pill,.map-price-badge) {background:#fff!important;color:var(--pw-ink)!important;border:1px solid var(--pw-control-line)!important;box-shadow:0 2px 6px #252b2226!important;filter:none!important;backdrop-filter:none!important;border-radius:7px!important;min-height:30px!important;padding:3px 8px 3px 4px!important;gap:6px!important}
html body :is(.project-bubble-pill,.map-price-badge):hover {background:var(--pw-accent-soft)!important;border-color:var(--pw-accent)!important;box-shadow:0 3px 10px #252b2229!important}
html body :is(.project-bubble-pill.selected,.map-price-badge.selected) {border-color:var(--pw-accent)!important;box-shadow:0 0 0 2px #b8471433!important}
html body .project-bubble-pill :is(.bubble-pill-title,.bubble-pill-price) {text-shadow:none!important;font:600 11px/1.35 Inter,system-ui,sans-serif!important}
html body .project-bubble-pill .bubble-pill-title {color:var(--pw-ink)!important;background:none!important}
html body .project-bubble-pill .bubble-pill-price {background:var(--pw-accent-soft)!important;color:var(--pw-accent-strong)!important;border:0!important;border-radius:4px!important;padding:4px 6px!important;box-shadow:none!important}
html body .project-bubble-pill::after {background:var(--pw-accent)!important;box-shadow:none!important}
html body .project-bubble-pill::before {background:var(--pw-accent)!important;border-color:white!important;box-shadow:none!important}
html body .project-rail-card {border-radius:6px!important;border-color:var(--pw-line)!important;background:#fff!important;padding:10px 12px!important;box-shadow:none!important}
html body .project-rail-card.selected {background:var(--pw-accent-soft)!important;border-color:var(--pw-accent-line)!important}
html body .project-rail-card :is(.project-rail-value strong,.project-rail-agency,.project-rail-context>strong,.project-rail-open) {color:var(--pw-ink)!important}

/* Project jacket: one compact navigation row on desktop; retain every tab/state. */
html body.project-selected #projectSheet.project-sheet-drawer {background:#fff!important;border:1px solid var(--pw-line)!important;border-radius:10px!important}
html body.project-selected #projectSheet.project-sheet-drawer>.sheet-header {background:#fff!important;border-color:var(--pw-line)!important;padding:12px 16px 6px!important}
html body.project-selected #projectSheet.project-sheet-drawer .sheet-title {color:var(--pw-ink)!important;font-size:19px!important;font-weight:650!important;letter-spacing:-.025em!important}
html body.project-selected #projectSheet.project-sheet-drawer>.jacket-nav-tabs {background:#fff!important;border-color:var(--pw-line)!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:0!important;padding:0 10px!important}
html body.project-selected #projectSheet.project-sheet-drawer .jacket-tab-btn {border:0!important;border-bottom:3px solid transparent!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;color:var(--pw-muted)!important;padding:10px 4px!important;font-size:12px!important;min-height:44px!important}
html body.project-selected #projectSheet.project-sheet-drawer .jacket-tab-btn.active {color:var(--pw-accent-strong)!important;border-bottom-color:var(--pw-accent)!important;background:var(--pw-accent-soft)!important}
html body.project-selected #projectSheet.project-sheet-drawer>.sheet-body {background:var(--pw-ground)!important;padding:12px!important;gap:12px!important}
html body.project-selected #projectSheet.project-sheet-drawer :is(.sheet-card,.project-jacket-card,.gis-dossier-card,.h2-decision-card,.h2-passport-card,.sanity-audit-container,.h2-canonical-source-card) {border-radius:8px!important;box-shadow:none!important;border-color:var(--pw-line)!important;background:#fff!important;background-image:none!important;padding:14px!important;margin-bottom:12px!important}
html body.project-selected #projectSheet.project-sheet-drawer :is(.h2-canonical-source-card,.h2-canonical-source-grid,.h2-exsum-inline-card,.h2-evidence-section,.h2-source-goal-card,.h2-public-evidence-register,.h2-source-ingestion-hub) {background:#fff!important;color:var(--pw-ink)!important;border-color:var(--pw-line)!important;border-radius:6px!important;box-shadow:none!important}
html body.project-selected #projectSheet.project-sheet-drawer :is(h2,h3,h4,strong,b) {color:var(--pw-ink)!important;text-shadow:none!important}
html body.project-selected #projectSheet.project-sheet-drawer :is(p,small,label,.h2-exsum-row,.h2-evidence-oneliner,.h2-canonical-scope) {color:var(--pw-muted)!important;line-height:1.5!important}
html body.project-selected #projectSheet.project-sheet-drawer :is(a,summary,.h2-project-context>summary) {color:var(--pw-accent-strong)!important}
html body.project-selected #projectSheet.project-sheet-drawer :is(input,select,textarea) {background:#fff!important;color:var(--pw-ink)!important;border-color:var(--pw-control-line)!important;border-radius:5px!important;box-sizing:border-box;max-width:100%}
html body.project-selected #projectSheet.project-sheet-drawer :is(.sheet-close-btn,.jacket-btn-secondary,.h2-context-nav,.h2-source-deep-dive,.drawer-nav-btn,#h2WatchProjectBtn,#h2AlertsBtn) {background:#fff!important;color:var(--pw-ink)!important;border-color:var(--pw-line)!important;border-radius:5px!important;box-shadow:none!important}
html body.project-selected #projectSheet .sheet-header-price-pill {background:var(--pw-soft)!important;border-color:var(--pw-line)!important;border-radius:5px!important}
html body.project-selected #projectSheet .sheet-header-price-pill :is(.header-price-kicker,.header-price-val) {color:var(--pw-ink)!important}
html body.project-selected #projectSheet.project-sheet-drawer :is(.h2-commercial-quickread,.h2-source-authority-banner.warning) {background:#fffaf0!important;border-color:#e4d5af!important;border-radius:6px!important;box-shadow:none!important;padding:12px!important}
html body.project-selected #projectSheet.project-sheet-drawer .h2-commercial-quickread :is(div,p) {font-size:12px!important;line-height:1.5!important}
html body.project-selected #projectSheet.project-sheet-drawer :is(.h2-public-evidence-item,.h2-public-evidence-document,.h2-source-lane-row,.h2-source-pipeline-row,.h2-source-gap-grid>div,.h2-canonical-source-grid>div,.h2-exsum-row,.h2-review-fact,.h2-evidence-keygrid>div) {background:var(--pw-soft)!important;border-color:var(--pw-line)!important;border-radius:5px!important;color:var(--pw-ink)!important;box-shadow:none!important}
html body.project-selected #projectSheet.project-sheet-drawer :is(.h2-public-evidence-head,.h2-exsum-inline-head,.h2-evidence-section>header,.h2-source-lane-head) {border-color:var(--pw-line)!important;color:var(--pw-ink)!important}
html body.project-selected #projectSheet.project-sheet-drawer :is(.h2-econ-cell,.h2-decision-block,.h2-command-stat,.h2-passport-field,.h2-evidence-row) {background:var(--pw-soft)!important;border-color:var(--pw-line)!important;border-radius:6px!important;padding:10px!important}
html body.project-selected #projectSheet.project-sheet-drawer :is(.h2-econ-strip,.h2-decision-grid) {gap:8px!important;padding:0 12px 12px!important}
html body.project-selected #projectSheet.project-sheet-drawer :is(.h2-decision-kicker,.h2-signal.analysis,.h2-decision-state.evaluate,.h2-context-nav.active,.govcon-pill.active) {color:#9a431c!important;background:var(--pw-accent-soft)!important;border-color:#e7bea6!important}

/* Materials: compact saved-render thumbnail beside source quantities, not a full-card hero. */
html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-review {color:var(--pw-ink)!important;font:13px/1.5 Inter,system-ui,sans-serif!important}
html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-review-note {background:var(--pw-soft)!important;border-color:var(--pw-line)!important;padding:12px!important;border-radius:6px!important}
html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-coverage {gap:8px!important;margin:10px 0!important}
html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-coverage>div {padding:8px 10px!important;border-radius:5px!important;border-color:var(--pw-line)!important}
html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-coverage strong {font-size:20px!important}
html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-views {gap:6px!important;margin:12px 0!important}
html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-view-button {background:#fff!important;color:var(--pw-muted)!important;border-color:var(--pw-line)!important;border-radius:5px!important;font-size:12px!important}
html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-view-button[aria-pressed="true"] {background:var(--pw-accent-soft)!important;color:var(--pw-accent-strong)!important;border-color:var(--pw-accent-line)!important}
html body.project-selected #projectSheet.project-sheet-drawer :is(.h2-bom-review-item,.h2-bom-spec-entry) {padding:12px!important;margin:0 0 10px!important;border-color:var(--pw-line)!important;border-radius:6px!important;box-shadow:none!important}
html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-review-item h3 {font-size:14px!important;line-height:1.4!important;margin:4px 0 10px!important}
html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-review-body {gap:12px!important;flex-wrap:wrap!important}
html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-review .h2-bom-visual {flex:0 0 136px!important;width:136px!important;max-width:100%!important;margin:0!important}
html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-review .h2-bom-preview-open {background:var(--pw-soft)!important;border-color:var(--pw-line)!important;border-radius:5px!important}
html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-review .h2-bom-preview-open img {height:110px!important;object-fit:contain!important;background:var(--pw-soft)!important}
html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-review .h2-bom-enlarge {background:var(--pw-soft)!important;color:var(--pw-accent-strong)!important;font-size:11px!important}
html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-review .h2-bom-representation-note {font-size:11px!important;line-height:1.45!important}
html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-spec-visual .h2-bom-visual {width:100%!important;max-width:100%!important}
html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-spec-visual .h2-bom-visual img {height:160px!important;object-fit:contain!important}
html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-source-record blockquote {background:var(--pw-soft)!important;border-left-color:var(--pw-control-line)!important}
html body.project-selected #projectSheet.project-sheet-drawer :is(.h2-evidence-deep-actions,.jacket-actions-strip,.h2-context-nav-row) {gap:6px!important;flex-wrap:wrap!important}
html body :is(#projectSheet,#gisLayerDock,.project-rail,.filter-rail) :focus-visible {outline:3px solid var(--pw-accent-strong)!important;outline-offset:2px!important}
/* State colors carry meaning; do not flatten source gaps and verified records into one style. */
html body.project-selected #projectSheet.project-sheet-drawer :is(.status-tag,.h2-evidence-status.verified,.h2-passport-badge.known,.h2-signal.verified) {background:#edf5eb!important;color:#2d6337!important;border-color:#bfd3b7!important}
html body.project-selected #projectSheet.project-sheet-drawer :is(.h2-evidence-status.rejected,.h2-signal.gap,.h2-decision-state.blocked) {background:#fff0e9!important;color:#9f3929!important;border-color:#e4bfb2!important}
@media(max-width:1100px) {
  html body.project-selected #projectSheet.project-sheet-drawer>.jacket-nav-tabs {grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:600px) {
  html body #gisLayerDock :is(.layer-toggle-btn,.layer-sub-btn,select,.basemap-btn) {min-height:44px!important}
  html body.project-selected #projectSheet.project-sheet-drawer>.sheet-body {padding:10px!important}
  html body.project-selected #projectSheet.project-sheet-drawer :is(.sheet-card,.project-jacket-card,.h2-canonical-source-card) {padding:12px!important}
  html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-review-search {grid-template-columns:1fr!important}
  html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-review .h2-bom-visual {flex-basis:120px!important;width:120px!important}
  html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-review .h2-bom-preview-open img {height:100px!important}
  html body .project-bubble-pill {max-width:210px!important}
}
@media(prefers-reduced-motion:reduce) {html body :is(.project-bubble-pill,.map-price-badge,.layer-toggle-btn,.layer-sub-btn,.jacket-tab-btn) {transition:none!important}}

/* Legacy generated detail panels use inline colors and grids; normalize their actual surfaces. */
html body #mapCanvasFloatingControls {background:#fff!important;color:var(--pw-ink)!important;border:1px solid var(--pw-line)!important;box-shadow:0 3px 16px #252b221a!important;backdrop-filter:none!important;border-radius:7px!important}
html body #mapCanvasFloatingControls>div {color:var(--pw-muted)!important}
html body #gisLayerDock .layer-sub-btn>span:not(.sub-dot):not(.sub-count) {color:var(--pw-ink)!important}
html body.project-selected #projectSheet.project-sheet-drawer .h2-canonical-source-card :is(span,strong) {font-family:Inter,system-ui,sans-serif!important;line-height:1.4!important;white-space:normal!important;overflow-wrap:anywhere}
html body.project-selected #projectSheet.project-sheet-drawer .h2-canonical-source-card span {color:var(--pw-muted)!important;font-size:10px!important}
html body.project-selected #projectSheet.project-sheet-drawer .h2-canonical-source-card strong {color:var(--pw-ink)!important;font-size:12px!important}
html body.project-selected #projectSheet.project-sheet-drawer .h2-canonical-scope {background:var(--pw-soft)!important;padding:8px!important}
html body.project-selected #projectSheet.project-sheet-drawer :is(.h2-dsc-studio,.h2-field-intel,.h2-geotech) {background:#fff!important;color:var(--pw-ink)!important;border:1px solid var(--pw-line)!important;border-radius:6px!important;box-shadow:none!important;min-width:0}
html body.project-selected #projectSheet.project-sheet-drawer .h2-dsc-studio :is(input,textarea,select) {min-width:0!important;width:100%!important}
html body.project-selected #projectSheet.project-sheet-drawer .h2-dsc-studio button {white-space:normal!important;max-width:100%!important;height:auto!important;min-height:44px;overflow-wrap:anywhere}
@media(max-width:600px) {
 html body.project-selected #projectSheet.project-sheet-drawer .h2-dsc-studio [style*="grid-template-columns"] {grid-template-columns:minmax(0,1fr)!important}
 html body.project-selected #projectSheet.project-sheet-drawer .h2-dsc-studio [style*="display:flex"] {flex-wrap:wrap!important}
 html body.project-selected #projectSheet.project-sheet-drawer .h2-dsc-studio :is(div,label,span) {min-width:0!important;overflow-wrap:anywhere}
}

html body.project-selected #projectSheet.project-sheet-drawer .h2-canonical-source-card>header em {color:#2d6337!important;background:#edf5eb!important;border-color:#bfd3b7!important;font-size:9px!important;line-height:1.4!important}
html body.project-selected #projectSheet.project-sheet-drawer .h2-canonical-scope {border-left-color:var(--pw-control-line)!important}
html body.project-selected #projectSheet.project-sheet-drawer .project-jacket-card::before {background:var(--pw-line)!important}

/* Jacket reading mode and section navigation share the map workspace palette. */
html body #projectSheet .pw-jacket-section-index[hidden]{display:none!important}
html body #projectSheet .pw-jacket-section-index{display:flex;flex:0 0 auto;gap:6px;padding:8px 14px;background:#fff;border-bottom:1px solid var(--pw-line);overflow-x:auto;scrollbar-width:thin}
html body #projectSheet .pw-jacket-section-index button{flex:0 0 auto;min-height:36px;padding:7px 11px;border:1px solid var(--pw-line);border-radius:6px;background:var(--pw-soft);color:var(--pw-ink);font:550 12px/1.35 Inter,system-ui,sans-serif;white-space:nowrap;cursor:pointer}
html body #projectSheet .pw-jacket-section-index button:hover{background:var(--pw-accent-soft);border-color:var(--pw-accent-line);color:var(--pw-accent-strong)}
html body #projectSheet .sheet-body [tabindex="-1"]{scroll-margin-top:12px}
html body #projectSheet #pwExpandJacket{min-height:36px!important;white-space:nowrap}
@media(min-width:901px){
 html body.project-selected #projectSheet.project-sheet-drawer.pw-jacket-reading{width:min(920px,calc(100vw - 360px))!important;max-width:none!important}
 html body.project-selected #projectSheet.pw-jacket-reading>.sheet-body{padding:20px!important}
 html body.project-selected #projectSheet.pw-jacket-reading :is(.h2-bom-review,.h2-team-package p,.h2-team-intro p,.h2-exsum-row){font-size:14px!important;line-height:1.6!important}
 html body.project-selected #projectSheet.pw-jacket-reading>.jacket-nav-tabs{grid-template-columns:repeat(6,minmax(0,1fr))!important}
}
@media(max-width:900px){html body #projectSheet #pwExpandJacket{display:none!important}}
@media(max-width:600px){html body #projectSheet .pw-jacket-section-index button{min-height:44px}}
@media(min-width:901px){
 html body.project-selected #projectSheet.pw-jacket-reading .h2-canonical-source-card{display:grid!important;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)!important;gap:12px!important;align-items:start}
 html body.project-selected #projectSheet.pw-jacket-reading .h2-canonical-source-card>*{grid-column:1/-1;min-width:0}
 html body.project-selected #projectSheet.pw-jacket-reading .h2-canonical-source-card>.h2-jacket-project-media{grid-column:1;margin:0!important}
 html body.project-selected #projectSheet.pw-jacket-reading .h2-canonical-source-card>.h2-canonical-source-grid{grid-column:2;grid-template-columns:repeat(2,minmax(0,1fr))!important;margin:0!important}
 html body.project-selected #projectSheet.pw-jacket-reading .h2-jacket-project-media img{height:auto!important;aspect-ratio:3/2!important;object-fit:contain!important;background:var(--pw-soft)}
}

/* Finished-project concepts keep their own source and appearance authority. */
#projectSheet .pw-project-result{margin:0 0 16px;padding:16px;background:#fff;border:1px solid var(--pw-line);border-radius:12px;color:var(--pw-ink)}
#projectSheet .pw-result-kicker{font-size:10px;letter-spacing:.1em;font-weight:750;color:var(--pw-accent-strong)}
#projectSheet .pw-project-result h2{font-size:22px;line-height:1.2;margin:6px 0 8px}
#projectSheet .pw-project-result p{font-size:13px;line-height:1.55;margin:8px 0 12px;color:var(--pw-muted)}
#projectSheet .pw-result-controls{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
#projectSheet .pw-result-controls button{min-height:38px;padding:8px 12px;border:1px solid var(--pw-line);border-radius:7px;background:var(--pw-soft);color:var(--pw-ink);font-size:12px;line-height:1.3;font-weight:600;cursor:pointer}
#projectSheet .pw-result-controls button[aria-pressed=true]{background:#fff1e7;border-color:var(--pw-accent);color:var(--pw-accent-strong)}
#projectSheet .pw-result-controls button:disabled{opacity:.55;cursor:default}
#projectSheet .pw-project-result figure{margin:0;border:1px solid var(--pw-line);border-radius:9px;overflow:hidden;background:var(--pw-soft)}
#projectSheet .pw-project-result figure img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain}
#projectSheet .pw-project-result figure img[hidden]{display:none}
#projectSheet .pw-project-result figcaption{padding:10px 12px;font-size:11px;line-height:1.5;color:var(--pw-muted);background:var(--pw-soft)}
#projectSheet .pw-result-scope{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
#projectSheet .pw-result-scope span{padding:6px 9px;background:var(--pw-soft);border-radius:5px;font-size:11px;color:var(--pw-ink)}
#projectSheet .pw-project-result details{border-top:1px solid var(--pw-line);padding-top:10px;font-size:12px;line-height:1.6}
#projectSheet .pw-project-result summary{cursor:pointer;font-weight:650;padding:4px 0}
#projectSheet .pw-project-result h3{font-size:12px;margin:12px 0 4px}
#projectSheet .pw-project-result ul{padding-left:20px;margin:4px 0 10px}
#projectSheet .pw-project-result a{color:var(--pw-accent-strong);text-decoration:underline}
@media(max-width:600px){#projectSheet .pw-project-result{padding:12px}#projectSheet .pw-result-controls button{min-height:44px}}

/* Work and Team use the same light package presentation as the project jacket. */
html body #projectSheet :is(#wbsScheduleCard,#teamAssemblyCard) :is(.h2-team-intro,.h2-team-package,.h2-sourcing-overview,.h2-wbs-masterbar,.h2-wbs-market-card,.h2-schedule-details){background:#fff!important;border:1px solid var(--pw-line)!important;border-radius:8px!important;box-shadow:none!important;color:var(--pw-ink)!important;padding:14px!important}
html body #projectSheet #teamAssemblyCard .h2-team-intro{background:var(--pw-soft)!important;margin-bottom:12px!important}
html body #projectSheet #teamAssemblyCard .h2-team-intro>span{font-size:10px!important;letter-spacing:.08em!important;color:var(--pw-accent-strong)!important}
html body #projectSheet #teamAssemblyCard .h2-team-intro>strong{display:block;font-size:18px!important;margin:5px 0!important}
html body #projectSheet #teamAssemblyCard .h2-team-list{display:grid!important;grid-template-columns:minmax(0,1fr);gap:10px!important}
html body #projectSheet #teamAssemblyCard .h2-team-package{min-width:0;margin:0!important;display:flex;flex-direction:column;gap:10px}
html body #projectSheet #teamAssemblyCard .h2-team-package-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
html body #projectSheet #teamAssemblyCard .h2-team-package-head>div{min-width:0}
html body #projectSheet #teamAssemblyCard .h2-team-package-head span{font-size:10px!important;letter-spacing:.035em!important;color:var(--pw-muted)!important}
html body #projectSheet #teamAssemblyCard .h2-team-package-head strong{display:block;font-size:16px!important;line-height:1.35!important;margin-top:4px!important}
html body #projectSheet #teamAssemblyCard .h2-team-package-head>b{font-size:9px!important;line-height:1.3!important;padding:5px 7px!important;background:#fff6df!important;color:#805a18!important;border:1px solid #e4d5ad!important;border-radius:5px!important;flex-shrink:0}
html body #projectSheet #teamAssemblyCard .h2-team-package.source-backed .h2-team-package-head>b{background:#edf5eb!important;color:#2d6337!important;border-color:#bfd3b7!important}
html body #projectSheet #teamAssemblyCard :is(.h2-team-package p,.h2-team-intro p){font-size:12.5px!important;line-height:1.6!important;margin:4px 0!important}
html body #projectSheet #teamAssemblyCard .h2-team-market-row{display:flex!important;flex-wrap:wrap;gap:5px!important;margin-top:auto!important}
html body #projectSheet #teamAssemblyCard .h2-team-market-row>span{background:var(--pw-soft)!important;border:0!important;border-radius:4px!important;padding:5px 7px!important;font-size:10px!important;line-height:1.4!important;color:var(--pw-muted)!important}
html body #projectSheet #teamAssemblyCard .h2-team-package-actions{border-top:1px solid var(--pw-line)!important;padding-top:10px!important;margin-top:0!important}
html body #projectSheet #teamAssemblyCard .h2-team-package-actions button{background:#fff!important;border:1px solid var(--pw-accent-line)!important;color:var(--pw-accent-strong)!important;border-radius:5px!important;min-height:38px!important;padding:8px 12px!important;font-size:12px!important;box-shadow:none!important}
html body #projectSheet #wbsScheduleCard :is(.h2-sourcing-head strong,.h2-wbs-market-head strong,.h2-wbs-masterbar strong){font-size:15px!important;line-height:1.4!important;color:var(--pw-ink)!important}
html body #projectSheet #wbsScheduleCard :is(.h2-wbs-scope,.h2-sourcing-note,.h2-wbs-masterbar small){font-size:12px!important;line-height:1.6!important;color:var(--pw-muted)!important}
html body #projectSheet #wbsScheduleCard :is(.h2-sourcing-metrics>div,.h2-package-market-grid>div,.h2-package-evidence>div){background:var(--pw-soft)!important;border-color:var(--pw-line)!important;border-radius:5px!important;padding:9px!important}
html body #projectSheet #wbsScheduleCard :is(.h2-sourcing-metrics strong,.h2-package-market-grid strong,.h2-package-evidence strong){color:var(--pw-ink)!important;font-size:12px!important;line-height:1.4!important}
html body #projectSheet #wbsScheduleCard :is(.h2-sourcing-metrics span,.h2-package-market-grid span,.h2-package-evidence span,.h2-sourcing-metrics small){color:var(--pw-muted)!important;font-size:10px!important;line-height:1.4!important}
html body #projectSheet #wbsScheduleCard :is(.h2-wbs-code,.h2-wbs-trade){color:var(--pw-accent-strong)!important;font-size:10px!important;line-height:1.4!important}
html body #projectSheet #wbsScheduleCard :is(.h2-authority-chip,.h2-package-authority){font-size:9px!important;line-height:1.4!important;white-space:normal!important}
html body #projectSheet #wbsScheduleCard :is(.h2-authority-chip.verified,.h2-package-authority.verified){background:#edf5eb!important;color:#2d6337!important;border-color:#bfd3b7!important}
html body #projectSheet #wbsScheduleCard :is(.h2-authority-chip.analysis,.h2-package-authority.analysis){background:#fff6df!important;color:#805a18!important;border-color:#e4d5ad!important}
html body #projectSheet #wbsScheduleCard .h2-package-actions{border-color:var(--pw-line)!important;flex-wrap:wrap}
html body #projectSheet #wbsScheduleCard :is(.h2-package-actions button,.h2-wbs-masterbar button){background:#fff!important;color:var(--pw-accent-strong)!important;border:1px solid var(--pw-accent-line)!important;font-size:11px!important;line-height:1.4!important;min-height:38px!important;box-shadow:none!important}
html body #projectSheet #wbsScheduleCard button:disabled{color:var(--pw-muted)!important;background:var(--pw-soft)!important;border-color:var(--pw-line)!important;cursor:not-allowed!important}
@media(min-width:901px){html body #projectSheet.pw-jacket-reading #teamAssemblyCard .h2-team-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){html body #projectSheet :is(#teamAssemblyCard .h2-team-package-actions button,#wbsScheduleCard .h2-package-actions button){min-height:44px!important}html body #projectSheet #wbsScheduleCard .h2-sourcing-head{flex-wrap:wrap}html body #projectSheet #teamAssemblyCard .h2-team-package-head{flex-wrap:wrap}}
html body #projectSheet :is(#wbsScheduleCard,#teamAssemblyCard)>.card-heading>span:last-child{color:var(--pw-muted)!important;font-size:10px!important;letter-spacing:.025em!important}
html body #projectSheet #wbsScheduleCard .h2-package-directory-list button:hover{background:var(--pw-accent-soft)!important;border-color:var(--pw-accent-line)!important;color:var(--pw-accent-strong)!important}

/* GPT deterministic mobile PWA reskin safety pass */
@supports (padding: max(0px)) {
  .public-works-mobile-shell,
  .public-works-light-workspace,
  .pw-light-workspace {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
}

@media (max-width: 720px) {
  .public-works-light-workspace,
  .pw-light-workspace,
  .project-planning-view,
  .project-evidence-layout {
    max-width: 100%;
    overflow-x: hidden;
  }

  .public-works-light-workspace button,
  .pw-light-workspace button,
  .public-works-light-workspace [role="button"],
  .pw-light-workspace [role="button"] {
    min-height: 44px;
    touch-action: manipulation;
  }

  .public-works-light-workspace .card,
  .pw-light-workspace .card,
  .public-works-light-workspace .panel,
  .pw-light-workspace .panel,
  .public-works-light-workspace .sheet,
  .pw-light-workspace .sheet {
    border-radius: 18px;
    overflow-wrap: anywhere;
  }
}

.public-works-light-workspace [data-state="loading"],
.pw-light-workspace [data-state="loading"],
.public-works-light-workspace [data-state="empty"],
.pw-light-workspace [data-state="empty"],
.public-works-light-workspace [data-state="error"],
.pw-light-workspace [data-state="error"] {
  min-height: 3rem;
  display: grid;
  place-items: center;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .public-works-light-workspace *,
  .pw-light-workspace * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* GPT deterministic source-edit routing proof */ .pw-light-workspace[data-gpt-source-edit-proof="ready"] { min-height: 1px; }

/* GPT translator bounded source-edit smoke */ .pw-light-workspace[data-gpt-translator-smoke="ready"] { min-height: 1px; }

/* GPT native translator scoped bounded repair proof */ .pw-light-workspace[data-gpt-native-translator-proof="ready"] { min-height: 1px; }

/* Standalone Public Works pages share the map and viewer visual language. */
body.pw-companion{--pw-surface:#fff;--pw-canvas:#f6f7f8;--pw-ink:#20242b;--pw-muted:#626873;--pw-border:#dfe1e5;--pw-accent:var(--pw-accent-strong);--pw-selection:var(--pw-accent-soft);color-scheme:light;background:var(--pw-canvas)!important;color:var(--pw-ink)!important;font:14px/1.5 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow-wrap:anywhere}
.pw-companion header{background:var(--pw-surface);border-color:var(--pw-border);backdrop-filter:none;padding:calc(16px + env(safe-area-inset-top)) max(20px,calc((100vw - 1100px)/2)) 16px;box-shadow:none}
.pw-companion h1{font-size:24px;line-height:1.25;letter-spacing:-.025em;font-weight:700;margin:8px 0}
.pw-companion h2,.pw-companion .pkg-top h2{font-size:17px;line-height:1.35;font-weight:650}
.pw-companion .eyebrow{color:var(--pw-accent-strong);font-size:11px;letter-spacing:.1em}
.pw-companion main{max-width:1140px;padding:20px 20px calc(88px + env(safe-area-inset-bottom))}
.pw-companion .sub,.pw-companion .meta,.pw-companion .geo,.pw-companion .coverage,.pw-companion .candidate p,.pw-companion .section p,.pw-companion .dim p,.pw-companion .scope em,.pw-companion .score span{color:var(--pw-muted);font-size:12px;line-height:1.55}
.pw-companion button,.pw-companion select,.pw-companion .source,.pw-companion .nav a,.pw-companion .back{font-family:inherit;font-size:13px;font-weight:600;line-height:1.4;min-height:44px;border:1px solid var(--pw-border);border-radius:6px;background:var(--pw-surface);color:var(--pw-ink);cursor:pointer;box-shadow:none}
.pw-companion button,.pw-companion select{font-family:inherit;font-size:13px;line-height:1.4}
.pw-companion select{font-weight:500;padding:10px 12px}
.pw-companion a{color:var(--pw-accent-strong)}
.pw-companion .source,.pw-companion .nav a,.pw-companion .back{display:inline-flex;align-items:center;padding:10px 13px;margin:4px 5px 4px 0;color:var(--pw-accent-strong);text-decoration:none;font-size:13px}
.pw-companion .toolbar{gap:10px}
.pw-companion #match,.pw-companion .filters button.active{background:var(--pw-accent-strong);border-color:var(--pw-accent);color:#fff}
.pw-companion .match{background:var(--pw-selection)!important;color:var(--pw-accent-strong);border-color:var(--pw-accent-line)}
.pw-companion :is(button,a,select):focus-visible{outline:2px solid var(--pw-accent);outline-offset:3px}
.pw-companion :is(button,.source,.nav a,.back):hover{border-color:var(--pw-accent)}
.pw-companion button:disabled{opacity:.55;cursor:not-allowed}
.pw-companion .metric,.pw-companion .section,.pw-companion .package,.pw-companion .projectBox,.pw-companion .card{background:var(--pw-surface);border:1px solid var(--pw-border);border-radius:8px;box-shadow:none;padding:16px;min-width:0}
.pw-companion .metric span,.pw-companion .section h3,.pw-companion label{font-size:11px;font-weight:650;letter-spacing:.045em;line-height:1.5;color:var(--pw-muted)}
.pw-companion .metric strong{display:block;font-size:20px;font-weight:650;color:var(--pw-ink);font-variant-numeric:tabular-nums;line-height:1.4}
.pw-companion .grid .metric strong{font-size:15px;overflow-wrap:anywhere}
.pw-companion .summary,.pw-companion .grid{gap:12px}
.pw-companion .notice,.pw-companion .note,.pw-companion .authority{background:#f6f7f8;border:1px solid var(--pw-border);border-radius:6px;color:var(--pw-muted);font-size:12px;line-height:1.55;padding:12px 14px}
.pw-companion .note{max-width:1100px;margin:16px auto 0}
.pw-companion .notice{border-left:3px solid #e64b08}
.pw-companion .authority b,.pw-companion .coverage b,.pw-companion .candidate strong{color:var(--pw-ink)}
.pw-companion .candidate strong{font-size:13px}
.pw-companion .modeled,.pw-companion .unknown,.pw-companion .insuf,.pw-companion .insufficient{color:#555d68;background:#f0f1f3;border-color:var(--pw-border)}
.pw-companion .modeled{flex-shrink:0;border-radius:4px;font-size:10px;white-space:normal;max-width:40%;text-align:right}
.pw-companion .badge,.pw-companion .rank,.pw-companion .status{border-radius:4px;font-size:10px;line-height:1.4;font-weight:650;letter-spacing:.02em}
.pw-companion .dev,.pw-companion .development{color:#87520b;background:#fff4db}
.pw-companion .qual{color:#25643b;background:#edf7ef}
.pw-companion .warn{background:#fff8ed;border-color:#ecd5b2;color:#805315;font-size:12px}
.pw-companion .warn h3{color:#805315}
.pw-companion .tags span,.pw-companion .scopes span,.pw-companion .caps span{background:#f0f1f3;color:#555d68;font-size:11px;border-radius:4px;padding:4px 7px}
.pw-companion .coverage{flex-wrap:wrap;gap:6px 12px}
.pw-companion .candidate,.pw-companion .row{border-color:var(--pw-border);padding:12px 0}
.pw-companion .row b{font-size:12px;color:var(--pw-muted)}
.pw-companion .row span{font-size:13px;color:var(--pw-ink);min-width:0}
.pw-companion .candidate{grid-template-columns:minmax(0,1fr) minmax(180px,36%)}
.pw-companion .scope,.pw-companion .dim{background:#f6f7f8;border-color:var(--pw-border);border-radius:6px;font-size:12px}
.pw-companion .scope b,.pw-companion .dimTop{font-size:12px}
.pw-companion .filters{gap:8px;padding:16px 0 10px}
.pw-companion .filters button{font-size:12px;border-radius:6px;padding:8px 12px}
.pw-companion .bar{background:#e9eaed}.pw-companion .bar i{background:#e64b08}
.pw-companion .score strong,.pw-companion .value{color:var(--pw-ink);font-variant-numeric:tabular-nums}
.pw-companion .gap{font-size:11px;font-weight:550;border-radius:4px}.pw-companion .evidence{color:#555d68;background:#f0f1f3;border-color:var(--pw-border)}
.pw-companion .empty{color:var(--pw-muted);background:var(--pw-surface);border-color:var(--pw-border);font-size:13px;border-radius:6px}
.pw-companion .actions{background:var(--pw-surface);border-color:var(--pw-border);gap:0}
.pw-companion .actions button{background:var(--pw-surface);color:var(--pw-accent-strong);font-size:13px;border:0;border-radius:0;min-height:56px}
.pw-companion .actions button+button{border-left:1px solid var(--pw-border)}
@media(max-width:640px){.pw-companion header{padding:calc(12px + env(safe-area-inset-top)) 14px 12px}.pw-companion h1{font-size:21px}.pw-companion main{padding:14px 14px calc(82px + env(safe-area-inset-bottom))}.pw-companion .note{margin:14px 14px 0}.pw-companion .metric,.pw-companion .section,.pw-companion .package,.pw-companion .projectBox,.pw-companion .card{padding:12px}.pw-companion .candidate{grid-template-columns:1fr}.pw-companion .badges{justify-content:flex-start}.pw-companion .summary,.pw-companion .grid{gap:8px}.pw-companion .nav{flex-wrap:wrap}.pw-companion .top{align-items:flex-start;flex-wrap:wrap}}

/* Preserve the pricing-owned BOM behavior while aligning its embedded presentation. */
.pw-companion .bom-status,.pw-companion .bom-metric,.pw-companion .bom-detail,.pw-companion .bom-score div{background:var(--pw-surface);border-color:var(--pw-border);border-radius:6px;min-width:0}
.pw-companion .bom-status strong,.pw-companion .bom-metric b,.pw-companion .bom-card h4,.pw-companion .bom-row b,.pw-companion .bom-score strong{color:var(--pw-ink)}
.pw-companion .bom-status small,.pw-companion .bom-metric span,.pw-companion .bom-meta,.pw-companion .bom-row span,.pw-companion .bom-empty,.pw-companion .bom-score small{color:var(--pw-muted);font-size:12px;line-height:1.5}
.pw-companion .bom-hero{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
.pw-companion .bom-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
.pw-companion .bom-metric span{font-size:11px;letter-spacing:.02em}.pw-companion .bom-metric b{font-size:17px;font-variant-numeric:tabular-nums}
.pw-companion .bom-detail summary{color:var(--pw-ink);font-size:13px;min-height:48px;align-items:center;font-weight:600}
.pw-companion .bom-detail summary:after{color:var(--pw-accent-strong);font-size:11px;text-transform:none;letter-spacing:0;flex-shrink:0}
.pw-companion .bom-detail summary:focus-visible{outline:2px solid var(--pw-accent);outline-offset:-3px}
.pw-companion .bom-card,.pw-companion .bom-row{border-color:var(--pw-border);min-width:0}
.pw-companion .bom-card{grid-template-columns:62px minmax(0,1fr)}.pw-companion .bom-card h4{font-size:14px}
.pw-companion .bom-thumb{background:var(--pw-canvas);color:var(--pw-muted);border-color:var(--pw-border);border-radius:5px}
.pw-companion .bom-price{color:#25643b}.pw-companion .bom-link{color:var(--pw-accent-strong);text-decoration:underline;text-underline-offset:3px}
.pw-companion .bom-pill{background:#f0f1f3;color:#555d68;border-color:var(--pw-border);border-radius:4px;font-size:10px}
.pw-companion .bom-strategy{background:#f3f8f3;border-color:#d5e5d5;border-radius:6px}
.pw-companion .bom-strategy b{color:#25643b;font-size:13px}.pw-companion .bom-strategy span{color:#42624a;font-size:12px;line-height:1.5}
.pw-companion .bom-score{grid-template-columns:repeat(auto-fit,minmax(90px,1fr))}.pw-companion .bom-score strong{font-size:14px}
.pw-companion .bom-warn{background:#fff8ed;border-color:#ecd5b2}
@media(max-width:640px){.pw-companion .bom-hero{grid-template-columns:1fr}.pw-companion .bom-detail summary{flex-wrap:wrap;gap:4px 12px}.pw-companion .bom-card{padding:12px}}

/* Materials review: keep source facts alongside the illustration at every jacket width. */
html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-review-body {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;align-items:start!important}
html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-review-body:has(>.h2-bom-visual) {grid-template-columns:120px minmax(0,1fr)!important}
html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-review-body>.h2-bom-visual {width:120px!important;min-width:0!important}
html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-review-body>dl {margin:0!important;gap:12px!important;align-content:start!important}
html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-review-body>dl>div {margin:0!important}
html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-review-body>.h2-bom-visual figcaption {font-size:11px!important;margin:6px 0 0!important;line-height:1.4!important}
html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-review-body>.h2-bom-visual .h2-bom-catalog summary {min-height:40px!important}
html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-review-body:has(>.h2-bom-visual)>dl {grid-template-columns:minmax(0,1fr)!important}
html body.project-selected #projectSheet.pw-jacket-reading .h2-bom-review-body:has(>.h2-bom-visual)>dl {grid-template-columns:repeat(2,minmax(0,1fr))!important}
@media(max-width:480px){
 html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-review-body:has(>.h2-bom-visual){grid-template-columns:104px minmax(0,1fr)!important;gap:10px!important}
 html body.project-selected #projectSheet.project-sheet-drawer .h2-bom-review-body>.h2-bom-visual {width:104px!important}
 html body.project-selected #projectSheet.pw-jacket-reading .h2-bom-review-body:has(>.h2-bom-visual)>dl {grid-template-columns:minmax(0,1fr)!important}
}

/* Body-mounted project dialogs share the workspace's light visual language. */
html body :is(.h2-qualification-dialog,.h2-alert-dialog){position:fixed;inset:0;margin:auto;box-sizing:border-box;background:var(--pw-paper)!important;color:var(--pw-ink)!important;border:1px solid var(--pw-line)!important;box-shadow:0 20px 70px #24292330!important;font:14px/1.5 Inter,system-ui,sans-serif;max-height:calc(100dvh - 32px);overflow:auto}
html body :is(.h2-qualification-dialog,.h2-alert-dialog)::backdrop{background:#26313c70;backdrop-filter:blur(3px)}
html body :is(.h2-qualification-dialog,.h2-alert-dialog) *{box-sizing:border-box}
html body :is(.h2-qual-head,.h2-alert-head){background:var(--pw-paper)!important;border-color:var(--pw-line)!important;padding:20px;position:sticky;top:0;z-index:2}
html body :is(.h2-qual-head,.h2-alert-head)>div{min-width:0}
html body :is(.h2-qual-head,.h2-alert-head) span{color:var(--pw-accent-strong)!important;font:700 10px/1.4 Inter,system-ui,sans-serif;letter-spacing:.08em}
html body :is(.h2-qual-head,.h2-alert-head) h3{color:var(--pw-ink)!important;font:700 22px/1.25 Inter,system-ui,sans-serif;margin:5px 0}
html body .h2-qual-head p{color:var(--pw-muted)!important;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
html body :is(.h2-qualification-dialog,.h2-alert-dialog) button{min-height:44px;font:600 13px/1.4 Inter,system-ui,sans-serif!important;border:1px solid var(--pw-line)!important;background:var(--pw-paper)!important;color:var(--pw-ink)!important;border-radius:6px;padding:9px 12px;cursor:pointer;max-width:100%}
html body :is(.h2-qualification-dialog,.h2-alert-dialog) .h2-qual-close{width:44px;height:44px;flex:none;font-size:22px!important;padding:0}
html body :is(.h2-qualification-dialog,.h2-alert-dialog) button:focus-visible{outline:3px solid var(--pw-accent)!important;outline-offset:2px}
html body :is(.h2-qualification-dialog,.h2-alert-dialog) button:disabled{background:var(--pw-soft)!important;color:var(--pw-muted)!important;cursor:default}
html body .h2-qual-summary{padding:12px 20px;background:var(--pw-soft)!important;border-color:var(--pw-line)!important;font:600 13px/1.5 Inter,system-ui,sans-serif;flex-wrap:wrap}
html body .h2-qual-summary strong{color:var(--pw-ink)!important}html body .h2-qual-summary span{color:var(--pw-muted)!important}
html body .h2-qual-grid{gap:12px;padding:16px 20px;grid-template-columns:repeat(2,minmax(0,1fr))}
html body .h2-qual-grid section{min-width:0;padding:12px;border-color:var(--pw-line)!important;background:var(--pw-paper)!important}
html body .h2-qual-grid h4{font:700 14px/1.4 Inter,system-ui,sans-serif;text-transform:none;letter-spacing:0;color:var(--pw-ink)!important}
html body .h2-qual-grid li{grid-template-columns:minmax(0,1fr) auto;padding:10px;background:var(--pw-soft)!important;border-color:var(--pw-line)!important;gap:6px}
html body .h2-qual-grid li>div{grid-column:1/-1;min-width:0}
html body .h2-qual-grid li b{font-size:13px;line-height:1.4;color:var(--pw-ink)!important;overflow-wrap:anywhere}
html body .h2-qual-grid li small{font-size:12px;line-height:1.5;color:var(--pw-muted)!important;overflow-wrap:anywhere}
html body :is(.h2-qual-state,.h2-qual-basis){width:max-content;max-width:100%;font:600 11px/1.3 Inter,system-ui,sans-serif;border-color:var(--pw-control-line);color:var(--pw-muted);background:white;overflow-wrap:anywhere}
html body .h2-qual-grid li.evidenced .h2-qual-state{color:#246039;border-color:#a8c8ad;background:#edf7ee}
html body .h2-qual-grid li.gap .h2-qual-state{color:#a22e25;border-color:#e0b1ac;background:#fff0ee}
html body .h2-qual-grid li.conditional .h2-qual-state{color:#78500c;border-color:#dcca99;background:#fff7df}
html body .h2-qual-next{font:600 12px/1.5 Inter,system-ui,sans-serif;color:var(--pw-accent-strong)!important}
html body .h2-qual-marketplace{margin:0 20px 20px;padding:14px;background:var(--pw-soft)!important;border-color:var(--pw-line)!important}
html body .h2-qual-marketplace>b{display:block;margin-top:12px;font:700 12px/1.4 Inter,system-ui,sans-serif;color:var(--pw-ink)!important}
html body .h2-qual-marketplace p,html body .h2-qual-marketplace small{font-size:12px!important;line-height:1.6;color:var(--pw-muted)!important}
html body .h2-qualification-dialog .h2-qual-passport-jump{color:var(--pw-accent-strong)!important;border-color:var(--pw-accent-line)!important;background:var(--pw-accent-soft)!important}
html body .h2-alert-list{padding:4px 20px 20px;max-height:none;font-size:13px}
html body .h2-alert-row{grid-template-columns:78px minmax(0,1fr);border-color:var(--pw-line)!important;padding:14px 0}
html body .h2-alert-row b{font-size:14px;color:var(--pw-ink)!important}.h2-alert-row p{font-size:13px!important;line-height:1.5;color:var(--pw-muted)!important;overflow-wrap:anywhere}
html body .h2-alert-row small{font:500 11px/1.5 Inter,system-ui,sans-serif;color:var(--pw-muted)!important;overflow-wrap:anywhere}
html body .h2-alert-severity{font:700 10px/1.3 Inter,system-ui,sans-serif;color:var(--pw-muted);background:var(--pw-soft)}
html body .h2-alert-severity.high{color:#a22e25;background:#fff0ee}html body .h2-alert-severity.medium{color:#78500c;background:#fff7df}html body .h2-alert-severity.info{color:#27556d;background:#edf5fa}
html body .h2-alert-dialog .h2-field-empty{padding:16px 0;color:var(--pw-muted);font-size:13px}
@media(max-width:600px){html body :is(.h2-qualification-dialog,.h2-alert-dialog){width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}html body :is(.h2-qual-head,.h2-alert-head){padding:16px}html body .h2-qual-grid{grid-template-columns:1fr;padding:12px 16px}html body .h2-qual-marketplace{margin:0 16px 16px}html body .h2-qual-summary{padding:12px 16px}html body .h2-alert-list{padding:4px 16px 16px}}

/* Passport forms and material-image controls follow the shared workspace theme. */
html body.project-selected #projectSheet #contractorPassportCard :is(.h2-passport-head,.h2-passport-actions,.h2-passport-evidence){border-color:var(--pw-line)!important}
html body.project-selected #projectSheet #contractorPassportCard :is(.h2-passport-head>div>span,.h2-passport-evidence-head span){font:700 10px/1.4 Inter,system-ui,sans-serif!important;color:var(--pw-accent-strong)!important;letter-spacing:.06em!important}
html body.project-selected #projectSheet #contractorPassportCard .h2-passport-head p{font-size:13px!important;line-height:1.5!important}
html body.project-selected #projectSheet #contractorPassportCard .h2-passport-score{align-self:flex-start!important;flex:none!important;background:var(--pw-soft)!important;border-color:var(--pw-line)!important;color:var(--pw-ink)!important}
html body.project-selected #projectSheet #contractorPassportCard .h2-passport-score span{color:var(--pw-ink)!important}
html body.project-selected #projectSheet #contractorPassportCard :is(.h2-passport-score small,.h2-passport-section>summary span){font:500 11px/1.4 Inter,system-ui,sans-serif!important;color:var(--pw-muted)!important}
html body.project-selected #projectSheet #contractorPassportCard :is(.h2-passport-summary span,.h2-passport-badge,.h2-evidence-status){font:600 11px/1.4 Inter,system-ui,sans-serif!important;background:var(--pw-soft)!important;color:var(--pw-muted)!important;border-color:var(--pw-line)!important}
html body.project-selected #projectSheet #contractorPassportCard :is(.h2-passport-summary .good,.h2-passport-badge.known,.h2-evidence-status.verified){background:#edf5eb!important;color:#2d6337!important;border-color:#bfd3b7!important}
html body.project-selected #projectSheet #contractorPassportCard :is(.h2-passport-summary .warn,.h2-passport-badge.confirm,.h2-evidence-status.pending){background:#fff7df!important;color:#78500c!important;border-color:#dcca99!important}
html body.project-selected #projectSheet #contractorPassportCard :is(.h2-passport-summary .bad,.h2-passport-badge.missing,.h2-evidence-status.rejected){background:#fff0ee!important;color:#a22e25!important;border-color:#e0b1ac!important}
html body.project-selected #projectSheet #contractorPassportCard .h2-passport-section{background:var(--pw-paper)!important;border-color:var(--pw-line)!important}
html body.project-selected #projectSheet #contractorPassportCard .h2-passport-section>summary{min-height:44px;background:var(--pw-soft)!important}
html body.project-selected #projectSheet #contractorPassportCard .h2-passport-section>summary strong{font-size:14px!important}
html body.project-selected #projectSheet #contractorPassportCard .h2-passport-grid{padding-top:10px!important}
html body.project-selected #projectSheet #contractorPassportCard :is(label,.h2-passport-field-head label){font-size:12px!important;line-height:1.5!important;color:var(--pw-ink)!important}
html body.project-selected #projectSheet #contractorPassportCard :is(input,select,textarea){font:14px/1.5 Inter,system-ui,sans-serif!important;min-height:44px!important;max-width:100%;background:white!important;color:var(--pw-ink)!important;border:1px solid var(--pw-control-line)!important;border-radius:6px!important;padding:9px 10px!important}
html body.project-selected #projectSheet #contractorPassportCard :is(.h2-passport-field small,.h2-passport-field small strong,.h2-passport-actions>span,.h2-passport-empty,.h2-evidence-row small){font:500 12px/1.5 Inter,system-ui,sans-serif!important;color:var(--pw-muted)!important;overflow-wrap:anywhere}
html body.project-selected #projectSheet #contractorPassportCard button{font:600 13px/1.4 Inter,system-ui,sans-serif!important;min-height:44px!important;background:white!important;color:var(--pw-ink)!important;border:1px solid var(--pw-line)!important;border-radius:6px!important;padding:9px 12px!important}
html body.project-selected #projectSheet #contractorPassportCard button[type=submit]{background:var(--pw-accent-soft)!important;color:var(--pw-accent-strong)!important;border-color:var(--pw-accent-line)!important}
html body.project-selected #projectSheet #contractorPassportCard :is(button,input,select,textarea,summary):focus-visible{outline:3px solid var(--pw-accent)!important;outline-offset:2px!important}
html body.project-selected #projectSheet #h2PassportEvidenceForm{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;align-items:end!important}
html body.project-selected #projectSheet #h2PassportEvidenceForm>label:first-child{grid-column:1/-1!important}
html body.project-selected #projectSheet #h2PassportEvidenceForm .h2-evidence-or{grid-column:1/-1!important;font:600 11px/1.3 Inter,system-ui,sans-serif!important;color:var(--pw-muted)!important;text-align:left!important}
html body.project-selected #projectSheet #h2PassportEvidenceForm label{min-width:0!important}
html body.project-selected #projectSheet #h2PassportEvidenceForm .h2-evidence-note{grid-column:1/-1!important}
html body .h2-bom-image-dialog{background:var(--pw-paper)!important;color:var(--pw-ink)!important;border-color:var(--pw-line)!important;box-shadow:0 20px 70px #24292330!important}
html body .h2-bom-image-dialog::backdrop{background:#26313c70}
html body .h2-bom-image-dialog :is(header,footer){border-color:var(--pw-line)!important;background:var(--pw-paper)!important}
html body .h2-bom-image-dialog :is(h2,button){color:var(--pw-ink)!important}
html body .h2-bom-image-dialog button{border-color:var(--pw-line)!important;border-radius:6px!important}
html body .h2-bom-image-dialog button[aria-pressed=true]{background:var(--pw-accent-soft)!important;color:var(--pw-accent-strong)!important;border-color:var(--pw-accent-line)!important}
html body .h2-bom-image-dialog :focus-visible{outline:3px solid var(--pw-accent)!important;outline-offset:3px!important}
html body .h2-bom-image-dialog :is(.h2-bom-image-status,.h2-bom-image-context){color:var(--pw-muted)!important}
@media(max-width:650px){html body.project-selected #projectSheet #contractorPassportCard .h2-passport-grid,html body.project-selected #projectSheet #h2PassportEvidenceForm{grid-template-columns:minmax(0,1fr)!important}html body.project-selected #projectSheet #contractorPassportCard .h2-passport-field-head{flex-wrap:wrap!important}html body.project-selected #projectSheet #contractorPassportCard .h2-passport-actions{flex-direction:column!important;align-items:stretch!important}}

/* Remaining project review actions and field intake use the shared control language. */
html body.project-selected #projectSheet.project-sheet-drawer :is(.audit-btn,.btn-uber-1click){background:var(--pw-accent-soft)!important;color:var(--pw-accent-strong)!important;border:1px solid var(--pw-accent-line)!important;border-radius:6px!important;min-height:44px!important;box-shadow:none!important}
html body.project-selected #projectSheet.project-sheet-drawer :is(.audit-btn,.btn-uber-1click):focus-visible{outline:3px solid var(--pw-accent)!important;outline-offset:2px!important}
html body.project-selected #projectSheet .header-price-kicker{font-size:11px!important}
html body.project-selected #projectSheet #h2FieldIntelPanel{background:white!important;border:1px solid var(--pw-line)!important;border-radius:8px!important;padding:14px!important}
html body.project-selected #projectSheet #h2FieldIntelPanel .h2-field-intel-head{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap}
html body.project-selected #projectSheet #h2FieldIntelPanel .h2-field-intel-head span{font:700 10px/1.4 Inter,system-ui,sans-serif!important;color:var(--pw-accent-strong)!important}
html body.project-selected #projectSheet #h2FieldIntelPanel .h2-field-intel-head strong{font-size:16px!important;color:var(--pw-ink)!important}
html body.project-selected #projectSheet #h2FieldIntelPanel .h2-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
html body.project-selected #projectSheet #h2FieldIntelPanel label{min-width:0;font:600 12px/1.5 Inter,system-ui,sans-serif!important;color:var(--pw-ink)!important}
html body.project-selected #projectSheet #h2FieldIntelPanel :is(input,select,textarea){min-height:44px!important;max-width:100%;background:white!important;color:var(--pw-ink)!important;border:1px solid var(--pw-control-line)!important;border-radius:6px!important;font:14px/1.5 Inter,system-ui,sans-serif!important;padding:9px 10px!important}
html body.project-selected #projectSheet #h2FieldIntelPanel button{min-height:44px!important;padding:9px 12px!important;background:white!important;color:var(--pw-ink)!important;border:1px solid var(--pw-line)!important;border-radius:6px!important;font:600 13px/1.4 Inter,system-ui,sans-serif!important}
html body.project-selected #projectSheet #h2FieldIntelPanel button[type=submit]{background:var(--pw-accent-soft)!important;color:var(--pw-accent-strong)!important;border-color:var(--pw-accent-line)!important}
html body.project-selected #projectSheet #h2FieldIntelPanel :is(input,select,textarea,button):focus-visible{outline:3px solid var(--pw-accent)!important;outline-offset:2px!important}
html body.project-selected #projectSheet #h2FieldIntelPanel :is(.h2-field-empty,#h2FieldStatus,.h2-field-row small){font:500 12px/1.5 Inter,system-ui,sans-serif!important;color:var(--pw-muted)!important;overflow-wrap:anywhere}
@media(max-width:650px){html body.project-selected #projectSheet #h2FieldIntelPanel .h2-field-grid{grid-template-columns:1fr}html body.project-selected #projectSheet #h2FieldIntelPanel .h2-field-actions{flex-direction:column;align-items:stretch}html body.project-selected #projectSheet #h2FieldIntelPanel input[type=file]{font-size:12px!important}}

html body.project-selected #projectSheet .pw-site-comparison-status{background:var(--pw-panel,#fff)!important;border:1px solid var(--pw-line)!important;border-radius:8px;padding:14px;margin-bottom:14px;font:13px/1.5 Inter,system-ui,sans-serif;color:var(--pw-muted)}
html body.project-selected #projectSheet .pw-site-comparison-status>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
html body.project-selected #projectSheet .pw-site-comparison-status h3{font-size:16px;color:var(--pw-ink);margin:0}
html body.project-selected #projectSheet .pw-site-comparison-status span{font-size:11px;font-weight:600;border:1px solid var(--pw-line);border-radius:4px;padding:3px 7px;color:var(--pw-muted);background:var(--pw-soft)}
html body.project-selected #projectSheet .pw-site-comparison-status p{margin:8px 0 0}
/* Project imagery and geographic review surfaces share the light workspace. */
html body .maplibregl-popup.map-hover-popup .maplibregl-popup-content,html body .maplibregl-popup.pw-map-record .maplibregl-popup-content{background:white!important;color:var(--pw-ink)!important;border:1px solid var(--pw-line)!important;border-radius:8px!important;overflow:hidden;box-shadow:0 8px 28px #17221b26!important;padding:0!important;max-height:calc(100dvh - 90px);overflow-y:auto}
html body .maplibregl-popup.map-hover-popup{max-width:min(360px,calc(100vw - 24px))!important}
html body .maplibregl-popup.map-hover-popup .h2-field-carousel{height:auto!important;min-height:170px;background:var(--pw-soft)!important;display:flex!important;flex-direction:column}
html body .maplibregl-popup.map-hover-popup .h2-field-carousel>img{height:clamp(150px,25dvh,230px)!important;flex:none;object-fit:contain!important;background:var(--pw-soft)}
html body .maplibregl-popup.map-hover-popup .h2-field-meta{position:static!important;display:flex!important;gap:5px!important;padding:8px!important;pointer-events:auto!important;background:white}
html body .maplibregl-popup.map-hover-popup .h2-field-meta span{white-space:normal!important;font:600 11px/1.4 Inter,system-ui,sans-serif!important;color:var(--pw-muted)!important;background:var(--pw-soft)!important;border:1px solid var(--pw-line)!important;padding:4px 6px!important;overflow:visible!important}
html body .maplibregl-popup.map-hover-popup .h2-field-meta a{display:inline-flex;align-items:center;min-height:44px;color:var(--pw-accent-strong)!important;text-decoration:underline}
html body .maplibregl-popup.map-hover-popup .h2-carousel-count{font:600 11px/1.4 Inter,system-ui,sans-serif!important;color:var(--pw-ink)!important;background:white!important;border:1px solid var(--pw-line)!important;padding:5px 8px!important}
html body .maplibregl-popup.map-hover-popup .h2-carousel-nav{right:56px!important}
html body .maplibregl-popup.map-hover-popup .h2-carousel-nav button,html body .maplibregl-popup.map-hover-popup .h2-popup-close-btn{width:44px!important;height:44px!important;background:white!important;color:var(--pw-ink)!important;border:1px solid var(--pw-line)!important;border-radius:6px!important;font-size:22px!important;box-shadow:none!important}
html body .maplibregl-popup.map-hover-popup:has(.h2-popup-close-btn)>.maplibregl-popup-content>.maplibregl-popup-close-button{display:none}
html body .pw-popup-jacket-card{background:white;color:var(--pw-ink)}
html body .pw-popup-summary{padding:14px 14px 10px;background:white;color:var(--pw-ink);border-bottom:1px solid var(--pw-line)}
html body .pw-popup-summary h3{font:700 15px/1.4 Inter,system-ui,sans-serif;margin:0 32px 4px 0}
html body .pw-popup-summary p{font:500 12px/1.5 Inter,system-ui,sans-serif;color:var(--pw-muted);margin:0 0 10px}
html body .pw-popup-visual-kicker{display:inline-flex;align-items:center;min-height:22px;padding:2px 7px;margin:0 0 8px;border:1px solid var(--pw-accent-line);border-radius:999px;background:var(--pw-accent-soft);color:var(--pw-accent-strong);font:700 10px/1.25 Inter,system-ui,sans-serif;letter-spacing:.02em;text-transform:uppercase}
html body .pw-popup-visual{background:var(--pw-soft);min-width:0}
html body .pw-popup-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px;background:white;border-top:1px solid var(--pw-line)}
html body .pw-popup-actions button,html body .pw-location-control button,html body .pw-map-record button{min-height:44px;padding:9px 10px;background:white;color:var(--pw-ink);border:1px solid var(--pw-line);border-radius:6px;font:600 13px/1.4 Inter,system-ui,sans-serif;cursor:pointer}
html body .pw-popup-actions button:first-child{background:var(--pw-accent-soft);color:var(--pw-accent-strong);border-color:var(--pw-accent-line)}
html body .maplibregl-popup.map-hover-popup .h2-project-file-missing{padding:20px;justify-content:center;text-align:center;gap:8px;color:var(--pw-muted)!important;font:13px/1.5 Inter,system-ui,sans-serif}
html body .maplibregl-popup.map-hover-popup .h2-project-file-missing :is(div,span,strong){background:transparent!important;color:var(--pw-muted)!important;font-size:13px!important}
html body #contextMenu{position:fixed;width:min(290px,calc(100vw - 16px));max-height:calc(100dvh - 16px);overflow:auto;background:white;border:1px solid var(--pw-line);border-radius:8px;box-shadow:0 8px 28px #17221b26;padding:6px;z-index:10010}
html body #contextMenu .context-item{width:100%;min-height:44px;border:0;border-radius:5px;padding:10px;background:white;color:var(--pw-ink);font:600 13px/1.4 Inter,system-ui,sans-serif;text-align:left;gap:12px}
html body #contextMenu .context-item:hover{background:var(--pw-accent-soft);color:var(--pw-accent-strong)}
html body :is(#contextMenu,.map-hover-popup,.pw-map-record,.pw-location-control) :is(button,a):focus-visible{outline:3px solid var(--pw-accent)!important;outline-offset:-3px!important}
html body .pw-record-body{padding:16px;padding-top:48px;font:13px/1.5 Inter,system-ui,sans-serif;overflow-wrap:anywhere}
html body .pw-record-body h3{font-size:16px;margin:0 0 8px;color:var(--pw-ink)}
html body .pw-record-body p{margin:8px 0;color:var(--pw-muted)}
html body .pw-map-record .maplibregl-popup-close-button{width:44px;height:44px;right:4px;top:4px;padding:0;font-size:22px}

html body .pw-coverage-row{padding:10px 0;border-top:1px solid var(--pw-line);display:flex;align-items:center;flex-wrap:wrap;gap:6px}
html body .pw-coverage-row p{flex-basis:100%;margin:0}
html body .pw-coverage-state{font-size:11px;padding:3px 6px;border-radius:4px;background:#f6f1e6;color:#775318}
html body .pw-coverage-state.available{background:#edf5eb;color:#356344}

html body .maplibregl-popup.pw-map-record{z-index:2500!important;pointer-events:auto!important;position:fixed!important;right:16px!important;top:104px!important;left:auto!important;transform:none!important}html body .maplibregl-popup.pw-map-record .maplibregl-popup-tip{display:none}html body .maplibregl-popup.pw-map-record .maplibregl-popup-content{max-height:calc(100dvh - 180px)}
@media(max-width:650px){html body .maplibregl-popup.pw-map-record{position:fixed!important;left:8px!important;right:8px!important;bottom:76px!important;top:auto!important;width:auto!important;max-width:none!important;transform:none!important}html body .maplibregl-popup.pw-map-record .maplibregl-popup-content{max-height:min(65dvh,620px)}html body .maplibregl-popup.pw-map-record .maplibregl-popup-tip{display:none}}

/* Public property and permit records use the shared geographic detail panel. */
html body .pw-source-record .pw-record-kicker{font:700 11px/1.5 Inter,system-ui,sans-serif;color:var(--pw-accent-strong);letter-spacing:.02em;margin-bottom:6px}
html body .pw-source-record .pw-record-note{border-top:1px solid var(--pw-line);padding-top:10px;font-size:12px}
html body .pw-record-links{display:grid;gap:8px;margin-top:12px}
html body .pw-record-links a{display:flex;align-items:center;min-height:44px;padding:9px 10px;border:1px solid var(--pw-accent-line);border-radius:6px;background:var(--pw-accent-soft);color:var(--pw-accent-strong);font:600 13px/1.4 Inter,system-ui,sans-serif;text-decoration:none;overflow-wrap:anywhere}

/* A single source-backed scope illustration explains the project in its jacket. */
html body #projectSheet .pw-project-scope{margin:8px 0 12px;background:white;border:1px solid var(--pw-line);border-radius:8px;overflow:hidden}
html body #projectSheet .pw-project-scope svg{display:block;width:100%;height:auto;background:var(--pw-soft)}
html body #projectSheet .pw-project-scope figcaption{padding:9px 12px;font:500 12px/1.5 Inter,system-ui,sans-serif;color:var(--pw-muted)}
html body #projectSheet .pw-scope-source-context{margin-bottom:12px}
html body #projectSheet .pw-scope-source-context>summary{min-height:44px;padding:10px;font:600 13px/1.5 Inter,system-ui,sans-serif;color:var(--pw-accent-strong);cursor:pointer;border:1px solid var(--pw-line);border-radius:6px}
html body #projectSheet .pw-scope-source-context>summary:focus-visible{outline:3px solid var(--pw-accent);outline-offset:2px}

/* One work-scope illustration leads the project map popup; source imagery stays available. */
html body .maplibregl-popup.map-hover-popup .pw-project-scope{margin:0!important;border:0!important;border-radius:0!important;background:white!important}
html body .maplibregl-popup.map-hover-popup .pw-project-scope svg{display:block;width:100%;height:auto}
html body .maplibregl-popup.map-hover-popup .pw-project-scope figcaption{font:500 12px/1.5 Inter,system-ui,sans-serif!important;color:var(--pw-muted)!important}
html body .maplibregl-popup.map-hover-popup .pw-project-scope figcaption a{display:inline-flex;align-items:center;min-height:44px;color:var(--pw-accent-strong);text-decoration:underline}
html body .maplibregl-popup.map-hover-popup .pw-scope-source-context>summary{min-height:44px;padding:10px 12px;border-top:1px solid var(--pw-line);border-bottom:1px solid var(--pw-line);background:var(--pw-soft);color:var(--pw-accent-strong);font:600 12px/1.5 Inter,system-ui,sans-serif;cursor:pointer}
html body .maplibregl-popup.map-hover-popup .pw-scope-source-context>summary:focus-visible{outline:3px solid var(--pw-accent);outline-offset:-3px}

/* Compact project browser; hidden legacy rail must stay hidden. */
html body #projectRail[hidden]{display:none!important}
html body #projectRailFilterMenu{display:block!important;flex:0 0 auto;order:4}
html body #projectRailFilterMenu>summary{display:flex!important;align-items:center;min-height:44px;padding:0 12px;border:1px solid var(--pw-line);border-radius:6px;background:var(--pw-paper);color:var(--pw-ink);font:650 12px/1.3 Inter,system-ui,sans-serif;cursor:pointer;list-style:none;gap:6px}
html body #projectRailFilterMenu>summary::-webkit-details-marker{display:none}
html body #projectRailFilterSummary{display:none}
html body #projectRailFilterMenu[open]>summary{background:var(--pw-accent-soft);color:var(--pw-accent-strong);border-color:var(--pw-accent-line)}
html body #projectRailFilterMenu .project-rail-controls{position:fixed;top:var(--h2-mobile-map-top,84px);right:16px;width:min(390px,calc(100vw - 32px));max-height:calc(100dvh - var(--h2-mobile-map-top,84px) - 88px);overflow:auto;box-sizing:border-box;z-index:2400;grid-template-columns:1fr 1fr!important;padding:14px;background:white;border:1px solid var(--pw-line);border-radius:8px;box-shadow:0 5px 24px #252b2226;color:var(--pw-ink)}
html body #projectRailFilterMenu label span{font:600 12px/1.4 Inter,system-ui,sans-serif!important;color:var(--pw-ink)!important}
html body #projectRailFilterMenu :is(input,select,button){min-height:44px!important;border:1px solid var(--pw-line);border-radius:5px;background:white;color:var(--pw-ink);font:500 13px/1.4 Inter,system-ui,sans-serif;max-width:100%;box-sizing:border-box}
html body #projectRailFilterMenu :focus-visible{outline:3px solid var(--pw-accent);outline-offset:2px}
html body #pwProjectMatches{grid-column:1/-1;display:grid;gap:6px}
html body #pwProjectMatchCount{grid-column:1/-1;font:600 12px/1.4 Inter,system-ui,sans-serif;color:var(--pw-muted)}
html body #pwProjectMatches button{display:grid;text-align:left;padding:10px;gap:4px;width:100%;cursor:pointer}
html body #pwProjectMatches button:hover{background:var(--pw-accent-soft);border-color:var(--pw-accent-line)}
html body #pwProjectMatches strong{font-size:13px;color:var(--pw-ink)}
html body #pwProjectMatches small{font-size:11px;color:var(--pw-muted)}
html body #pwProjectMatches p{margin:4px 0;font:500 13px/1.5 Inter,system-ui,sans-serif;color:var(--pw-muted)}
@media(max-width:600px){html body #projectRailFilterMenu{order:8}html body #projectRailFilterMenu .project-rail-controls{right:8px;width:calc(100vw - 16px)}}

html body .top-search-header:has(#projectRailFilterMenu[open]){z-index:3000!important}
@media(max-width:900px){html body #projectRailFilterMenu{grid-column:2;grid-row:3;order:0}html body #btnUndergroundMode{grid-column:1;grid-row:3;margin-left:0!important}html body #projectRailFilterMenu>summary{justify-content:center;padding:0 8px}}

/* Shared Public Works wordmark, matching the infrastructure and catalog shell. */
html body .brand-logo-icon{background:transparent!important;color:var(--pw-accent)!important;box-shadow:none!important;border:0!important;width:28px!important;height:32px!important;font:800 27px/1 Inter,system-ui,sans-serif!important;letter-spacing:-5px!important;padding-right:5px!important;flex:none!important}
html body .brand-name{display:flex!important;gap:5px!important;align-items:baseline!important;white-space:nowrap!important;font-size:17px!important;letter-spacing:-.5px!important}
html body .brand-name b{font-weight:750!important}html body .brand-name span{font-weight:350!important;color:var(--pw-muted)!important}
@media(max-width:900px){html body .brand-name{font-size:15px!important}html body .brand-logo-icon{font-size:25px!important;width:25px!important}}

html body .pw-popup-summary .pw-popup-work{font-size:13px;line-height:1.45;color:var(--pw-ink);display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:8px}
html body .pw-popup-summary .pw-popup-source-meta{font-size:11px;margin:0;color:var(--pw-muted)}
html body .maplibregl-popup.map-hover-popup .pw-popup-visual .pw-scope-source-context{margin:0}

/* Match tier filters stay visible and reachable at phone widths. */
html body.pw-companion #filters.filters{display:flex;flex-wrap:wrap;overflow:visible;gap:6px}
html body.pw-companion #filters.filters button{min-height:44px;white-space:normal;line-height:1.35;display:flex;align-items:center;justify-content:center;gap:7px;padding:8px 10px}
html body.pw-companion #filters.filters button:focus-visible{outline:2px solid var(--pw-accent);outline-offset:2px}
html body.pw-companion #filters .filter-count{font-size:11px;min-width:18px;padding:1px 4px;border-radius:4px;background:#f0f1f3;color:#4b5563}
html body.pw-companion #filters button.active .filter-count{background:#fff3e9;color:#9c3300}
html body.pw-companion .match-count{font-size:12px;color:var(--pw-muted);margin:8px 0 12px}
@media(max-width:640px){html body.pw-companion #filters.filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}html body.pw-companion:has(#filters.filters) header{position:static}}

/* Work identity stays visible while the project evidence request is pending. */
html body #projectSheet .pw-jacket-work-summary{margin:0 0 10px!important;color:var(--pw-ink)!important;font:500 14px/1.5 Inter,system-ui,sans-serif!important;display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body #projectSheet .pw-jacket-work-loading{min-width:0;background:white;padding:8px}
html body #projectSheet .pw-jacket-image-loading{display:flex;align-items:center;justify-content:center;min-height:260px;padding:16px;box-sizing:border-box;background:var(--pw-soft);border:1px solid var(--pw-line);border-radius:7px;color:var(--pw-muted);font:13px/1.5 Inter,system-ui,sans-serif;text-align:center}
html body #projectSheet .pw-jacket-record-basis>summary{min-height:44px;box-sizing:border-box;padding:10px 0;font:600 12px/1.5 Inter,system-ui,sans-serif;color:var(--pw-muted);cursor:pointer}

/* Project selector: work summary and a direct filter recovery action. */
html body #projectRailFilterMenu .pw-project-match-toolbar{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px}
html body #pwProjectClearFilters{padding:0 10px;flex:0 0 auto;cursor:pointer;color:var(--pw-accent-strong)}
html body #pwProjectClearFilters[hidden]{display:none!important}
html body #pwProjectMatches .pw-project-browser-work{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;font:400 13px/1.45 Inter,system-ui,sans-serif;color:var(--pw-ink)}

/* Utility category swatches retain source colors; selection has a separate mark. */
html body #gisLayerDock .pw-utility-presets{display:grid;grid-template-columns:1fr 1fr;gap:6px;width:100%}
html body #gisLayerDock .pw-utility-presets .layer-sub-master{min-width:0;justify-content:center;min-height:44px!important}
html body #gisLayerDock .pw-utility-presets .sub-dot{display:none}
html body #gisLayerDock .layer-sub-btn:not(.layer-sub-master)::after{content:'';display:block;flex:0 0 14px;width:14px;height:14px;margin-left:6px;border:1px solid var(--pw-control-line);border-radius:3px;background:white;box-sizing:border-box}
html body #gisLayerDock .layer-sub-btn:not(.layer-sub-master)[aria-pressed="true"]::after{content:'✓';display:grid;place-items:center;background:var(--pw-accent);border-color:var(--pw-accent);color:white;font:bold 11px/1 system-ui}
html body #gisLayerDock .sub-layer-count{background:transparent!important;color:var(--pw-muted)!important;box-shadow:none!important;border:0!important;font:500 11px/1.3 Inter,system-ui,sans-serif!important;margin-left:auto;min-width:14px;flex-shrink:0;text-align:right}
/* Project Jacket popup: scope remains concise and visual/source context joins the card. */
html body .pw-popup-summary .pw-popup-work{font-size:13px;line-height:1.45;color:var(--pw-ink);display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:8px}
html body .pw-popup-summary .pw-popup-source-meta{font-size:11px;margin:0;color:var(--pw-muted)}
html body .maplibregl-popup.map-hover-popup .pw-popup-visual .pw-scope-source-context{margin:0}

/* Compact map preview; expand preserves the complete source work illustration. */
html body .maplibregl-popup.map-hover-popup .pw-popup-jacket-card:not([data-visual-expanded="true"]) .pw-project-scope svg{height:240px!important;max-height:240px!important;width:100%!important}
html body .maplibregl-popup.map-hover-popup .pw-popup-expand{display:block;width:calc(100% - 24px);margin:0 12px 8px;min-height:44px;padding:8px 10px;background:white;color:var(--pw-accent-strong);border:1px solid var(--pw-line);border-radius:6px;font:600 12px/1.4 Inter,system-ui,sans-serif;cursor:pointer}
html body .maplibregl-popup.map-hover-popup .pw-popup-expand[hidden]{display:none}
html body .maplibregl-popup.map-hover-popup .pw-project-scope figcaption{padding:6px 12px!important}
html body .maplibregl-popup.map-hover-popup .pw-project-scope figcaption a{min-height:32px}
