.mobile-report-tabs,.mobile-config-nav,.mobile-filter-drawer>summary{display:none}
.mobile-filter-drawer{display:contents}
.mobile-sheet-grip{display:none}
.mobile-search-toggle{display:none}
.mobile-map-key{display:contents}
.mobile-map-key>button{display:none}
/* Shared view selector: a quiet track with a crisp, luminous active segment. */
.topbar .view-switch{padding:3px;gap:3px;border:1px solid #29414f;border-radius:13px;background:linear-gradient(180deg,#101c25,#0b141d);box-shadow:inset 0 1px 0 #ffffff09,0 2px 7px #0002}
.topbar .view-switch>button:not(.mobile-search-toggle){position:relative;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:36px;border:1px solid transparent;border-radius:9px;background:transparent;color:#98acba;font-weight:650;letter-spacing:0;transition:background-color .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease}
.topbar .view-switch>button:not(.mobile-search-toggle):hover{background:#172935;color:#e1f3fa}
.topbar .view-switch>button.active:not(.mobile-search-toggle){border-color:#387082;background:linear-gradient(180deg,#1a4351,#12313e);color:#a4f1ff;box-shadow:inset 0 1px 0 #c4f8ff18,0 1px 4px #0004}
.topbar .view-switch>button.active::after{content:'';position:absolute;bottom:3px;left:calc(50% - 9px);width:18px;height:2px;border-radius:2px;background:#57d9ed;box-shadow:0 0 6px #42cce644;pointer-events:none}
.topbar .view-switch>button:focus-visible{outline:2px solid #71deef;outline-offset:-3px}
.topbar .view-switch>button:disabled{opacity:.4;cursor:default}
.topbar .view-switch .mls-unread-badge{flex:none;box-sizing:border-box;min-width:16px;height:16px;margin:0;padding:0 4px;background:#dd594b;color:#fff4f1;border:1px solid #ffb1a02e;box-shadow:inset 0 1px 0 #ffffff17;font-size:9px;font-weight:750;line-height:1;font-variant-numeric:tabular-nums}
@media (prefers-reduced-motion:reduce){.topbar .view-switch>button{transition:none!important}}
.map-compass[hidden]{display:none!important}
.map-compass{position:absolute;z-index:900;top:12px;right:62px;display:grid;place-items:center;width:44px;height:44px;padding:10px;border:1px solid #fff9;border-radius:9px;background:#f2f7faf5;box-shadow:0 2px 8px #0003;cursor:pointer}
.map-compass svg{width:22px;height:22px;display:block}
.map-compass:focus-visible{outline:2px solid #007f91;outline-offset:-3px}
/* Retain the old message node for compatibility; never render a map status strip. */
#mapStatus{display:none!important}
#searchForm{position:relative}
.map-search-results{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:2000;max-height:260px;overflow-y:auto;padding:8px;border:1px solid #405766;border-radius:8px;background:#10212b;color:#d6e3eb;box-shadow:0 6px 20px #0005}
.map-search-results[hidden]{display:none}
.map-search-results p{margin:4px 6px 8px;font-size:12px;line-height:1.4}
.map-search-results button{display:block;width:100%;min-height:44px!important;padding:10px!important;border:0!important;border-radius:5px!important;background:transparent!important;color:#d9e8f0!important;text-align:left;font-size:12px}
.map-search-results button:hover,.map-search-results button:focus-visible{background:#203b4b!important}
@media screen and (max-width:360px){
  .mobile-map-actions:has(.map-compass:not([hidden])) #mobileMapToolsToggle span{display:none}
  .mobile-map-actions:has(.map-compass:not([hidden])) #mobileMapToolsToggle{gap:0}
}
.external-actions .apple-map-link{min-height:44px;box-sizing:border-box}
/* Give the identity its own rhythm; controls align to the header centerline. */
@media screen and (min-width:761px){
  .topbar{min-height:94px;grid-template-columns:max-content max-content minmax(200px,1fr) max-content;gap:20px;padding:12px 20px}
  .topbar .brand{gap:24px}
  .topbar .market-switch{margin-left:0;gap:2px;padding:4px;border-color:#2c3f4b;border-radius:10px;background:#0b131b}
  .topbar .market-switch a{min-width:34px;padding:8px 9px;border-radius:6px;line-height:18px}
  .topbar .top-actions{justify-self:end;min-width:0;white-space:nowrap}
  .topbar .secondary{min-height:38px;padding:9px 12px;white-space:nowrap}
  .topbar .search{grid-column:auto;grid-row:auto}
}
@media screen and (min-width:761px) and (max-width:1600px){
  .topbar .db-badge,.topbar .auth-badge{display:none}
}
@media screen and (min-width:761px) and (max-width:1000px){
  .topbar{grid-template-columns:max-content minmax(0,1fr);grid-template-rows:auto 42px;gap:12px 20px}
  .topbar .brand{grid-column:1;grid-row:1}
  .topbar .top-actions,body:is(.tracked-mode,.mls-review-mode) .topbar .top-actions{grid-column:2;grid-row:1}
  .topbar .view-switch{grid-column:1;grid-row:2;justify-self:start}
  .topbar .search{grid-column:2;grid-row:2}
}
/* List views have their own search; the map address search belongs to Map. */
body:is(.tracked-mode,.mls-review-mode) #searchForm{display:none}
@media screen and (min-width:1001px){body:is(.tracked-mode,.mls-review-mode) .top-actions{grid-column:3 / -1}}
@media screen and (max-width:760px){
  #detailsSidebar .external-actions .external-button{min-height:44px;box-sizing:border-box}
  #detailsSidebar{display:flex;flex-direction:column;background:#0b1219}
  #detailsSidebar::before{content:none}
  #detailsSidebar>.mobile-sheet-grip{position:absolute;z-index:3;top:0;left:0;display:flex;align-items:flex-start;justify-content:center;width:100%;height:44px;min-height:44px;padding:11px 0 0;border:0;border-radius:0;background:linear-gradient(rgba(11,18,25,.65),rgba(11,18,25,0));color:#91a8b7;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}
  #mobileParcelGrip>span{display:block;width:32px;height:3px;background:rgba(145,168,183,.65);border-radius:999px;pointer-events:none}
  #mobileParcelGrip:focus-visible{outline:2px solid #4ed9f4;outline-offset:-5px}
  #detailsSidebar>.sidebar-scroll{flex:1 1 auto;min-height:0;height:auto;border-top:0;border-radius:0;padding-top:36px;scroll-padding-top:44px;overscroll-behavior-y:contain}
  body.mobile-parcel-open #detailsSidebar{transform:translateY(var(--mobile-sheet-offset,0px))}
  #detailsSidebar.mobile-sheet-dragging{transition:none;will-change:transform;user-select:none;-webkit-user-select:none}
  #detailsSidebar.mobile-sheet-dragging>.mobile-sheet-grip{cursor:grabbing}
  #scoutProjectModal input:not([type=checkbox]),#scoutProjectModal select,#scoutProjectModal textarea{font-size:16px;min-height:44px}
  #scoutProjectModal button{min-height:44px}
  #scoutProjectModal .scout-project-modal-card{overflow-y:auto}
  /* Keep controls below iOS browser chrome. A pinned, opaque header lets
     Safari extend its solid color instead of blurring the controls at the edge. */
  :root{--mobile-safe-top:env(safe-area-inset-top,0px);--mobile-safe-left:env(safe-area-inset-left,0px);--mobile-safe-right:env(safe-area-inset-right,0px);--mobile-topbar:calc(111px + var(--mobile-safe-top))}
  html,body{background:#080c11}
  .app-shell{padding-top:var(--mobile-topbar)}
  .topbar{position:fixed;top:0;left:0;right:0;background:#080c11;height:var(--mobile-topbar);min-height:var(--mobile-topbar);box-sizing:border-box;grid-template-rows:40px 50px;gap:5px 8px;padding:calc(7px + var(--mobile-safe-top)) max(9px,var(--mobile-safe-right)) 7px max(9px,var(--mobile-safe-left))}
  .topbar .view-switch{grid-template-columns:minmax(44px,.8fr) minmax(0,1fr) minmax(0,1.2fr) 40px;gap:2px;padding:2px;width:100%;box-sizing:border-box;height:50px;min-width:0}
  .topbar .view-switch button,.topbar .view-switch>button:not(.mobile-search-toggle){min-width:0;min-height:44px;padding:6px 3px;font-size:12px;letter-spacing:0;white-space:nowrap}
  .topbar .search{height:44px;min-width:0}
  .topbar #searchForm{display:none}
  body.mobile-search-open:not(.tracked-mode):not(.mls-review-mode){--mobile-topbar:calc(160px + var(--mobile-safe-top))}
  body.mobile-search-open:not(.tracked-mode):not(.mls-review-mode) .topbar{grid-template-rows:40px 50px 44px}
  body.mobile-search-open:not(.tracked-mode):not(.mls-review-mode) #searchForm{display:flex}
  .topbar .mobile-search-toggle{display:grid;place-items:center;grid-column:4;grid-row:1;padding:0;min-width:0;border-left:1px solid #2d3b48;border-radius:0}
  .mobile-search-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
  .mobile-search-toggle .search-close-icon,.mobile-search-open .mobile-search-toggle svg:not(.search-close-icon){display:none}
  .mobile-search-open .mobile-search-toggle .search-close-icon{display:block}
  body:is(.tracked-mode,.mls-review-mode) .mobile-search-toggle{display:none}
  body:is(.tracked-mode,.mls-review-mode) .topbar .view-switch{grid-template-columns:minmax(44px,.8fr) minmax(0,1fr) minmax(0,1.2fr)}
  body:is(.tracked-mode,.mls-review-mode){--mobile-topbar:calc(111px + var(--mobile-safe-top))}
  body:is(.tracked-mode,.mls-review-mode) .topbar{grid-template-rows:40px 50px}
  .mls-review-view{height:calc(100dvh - var(--mobile-topbar));min-height:0}
  /* A floating instrument rail, visually 36px tall with 44px touch targets. */
  .mobile-controls-ready .mobile-map-actions{top:0;left:4px;right:auto;bottom:auto;width:max-content;max-width:calc(100% - 8px);height:44px;display:flex;align-items:center;gap:0;padding:0;border:0;border-radius:10px;background:transparent;box-shadow:none;isolation:isolate}
  .mobile-controls-ready .mobile-map-actions::before{content:'';position:absolute;inset:4px 0;z-index:-1;border:1px solid #fff9;border-radius:10px;background:#f2f7faf5;box-shadow:0 2px 8px #0003}
  .mobile-controls-ready .mobile-map-actions>button,.mobile-controls-ready .mobile-map-actions>select{position:relative;display:flex;align-items:center;justify-content:center;gap:5px;flex:0 0 auto;min-width:44px;min-height:44px;height:44px;padding:7px 10px;margin:0;border:0;border-radius:7px;background:transparent;box-shadow:none;color:#2d4350;font:600 12px system-ui,sans-serif}
  .mobile-controls-ready .mobile-map-actions>select{width:88px;padding:7px 22px 7px 12px;appearance:none;-webkit-appearance:none;border-radius:0;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23546b78' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 7px center/12px;color-scheme:light}
  .mobile-map-actions>button svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
  .mobile-controls-ready #mobileLocateBtn{width:44px;padding:10px;border-radius:0}
  /* Dividers sit inside the 36px visible rail; hit targets remain 44px tall. */
  .mobile-controls-ready #mobileLocateBtn::before,.mobile-controls-ready #mobileLocateBtn::after,.mobile-controls-ready .mobile-map-actions>.map-compass::before{content:'';position:absolute;top:12px;bottom:12px;width:1px;background:#cbd7de;pointer-events:none}
  .mobile-controls-ready #mobileLocateBtn::before,.mobile-controls-ready .mobile-map-actions>.map-compass::before{left:0}
  .mobile-controls-ready #mobileLocateBtn::after{right:0}
  .mobile-controls-ready .mobile-map-actions>.map-compass{position:relative;top:auto;right:auto;width:44px;padding:10px;border-radius:0}
  .mobile-controls-ready .mobile-map-actions>.map-compass svg{width:20px;height:20px}
  .mobile-controls-ready #mobileLocateBtn.location-active{background:transparent!important;color:#087d73!important;border-color:#cbd7de!important}
  #mobileLocateBtn.location-active svg{fill:currentColor;stroke-width:1.2}
  .mobile-controls-ready .mobile-map-actions>button:hover,.mobile-controls-ready .mobile-map-actions>button[aria-expanded=true]{background:transparent;color:#007f91}
  .mobile-controls-ready .mobile-map-actions>button:focus-visible,.mobile-controls-ready .mobile-map-actions>select:focus-visible{outline:2px solid #007f91;outline-offset:-3px}
  .mobile-controls-ready .mobile-map-actions>button.tool-active::after{content:'';position:absolute;right:6px;top:9px;width:4px;height:4px;border-radius:50%;background:#008e9a}
  .mobile-map-actions [hidden],.mobile-map-key>button[hidden]{display:none!important}
  .mobile-map-tools-menu{position:absolute;z-index:3;top:48px;right:0;width:210px;padding:5px;border:1px solid #405d6c;border-radius:8px;background:#10222e;box-shadow:0 8px 24px #0007}
  .mobile-controls-ready .mobile-map-tools-menu button{display:block;width:100%;min-height:44px;padding:10px 12px;text-align:left;border:0;border-radius:4px;background:transparent;color:#d8e7ef;box-shadow:none;font-size:13px}
  .mobile-map-tools-menu button:hover,.mobile-map-tools-menu button:focus-visible{background:#20404f}
  .mobile-controls-ready .map-terrain-tools{top:52px;left:4px;right:4px;max-width:none}
  .mobile-controls-ready .terrain-toolbar [data-mode]{display:none}
  .mobile-controls-ready .terrain-toolbar{position:absolute;right:6px;top:6px;gap:3px}
  .mobile-controls-ready .terrain-toolbar button{min-height:44px;min-width:38px;padding:5px;border:0;background:#1b3442;box-shadow:none;font-size:18px}
  .mobile-controls-ready .terrain-body{margin:0;padding:12px;border-radius:8px}
  .mobile-controls-ready .terrain-message{padding-right:84px;min-height:38px;font-size:12px}
  /* Use one bottom inset, leaving only attribution/home-indicator clearance. */
  .mobile-map-key{position:absolute;z-index:500;display:block;left:4px;bottom:max(28px,env(safe-area-inset-bottom));max-width:calc(100% - 90px)}
  .mobile-map-key>button{position:relative;isolation:isolate;display:flex;align-items:center;gap:7px;min-height:44px;padding:8px 11px;border:0;border-radius:9px;background:transparent;color:#2d4350;font-size:11px;font-weight:600;box-shadow:none}
  .mobile-map-key>button::after{content:'';position:absolute;inset:4px 0;z-index:-1;border:1px solid #fff9;border-radius:9px;background:#f2f7faf5;box-shadow:0 2px 8px #0003}
  .mobile-map-key>button::before{content:'';width:10px;height:10px;border-radius:2px;background:linear-gradient(135deg,#bc87e5 0 50%,#52cbb7 50%)}
  .mobile-map-key .legend{display:none;position:absolute;left:0;bottom:52px;width:235px;max-width:calc(100vw - 96px);max-height:min(32dvh,250px);padding:12px;font-size:11px;line-height:1.4;overscroll-behavior:contain}
  .mobile-map-key.key-open .legend:not(.hidden){display:grid}
  .mobile-map-key .legend strong{font-size:11px}
  /* Keep mobile overrides together; desktop and printed reports retain their layout. */
  .mobile-filter-drawer{display:block;margin:8px 0 12px}
  .mobile-filter-drawer>summary{display:block;cursor:pointer;padding:12px;border:1px solid #405464;border-radius:7px;font-size:13px;line-height:1.5;background:#14212b}
  .mobile-filter-drawer>summary::before{content:'▸ ';color:#56d3e5}
  .mobile-filter-drawer[open]>summary::before{content:'▾ '}
  /* Keep active filter context visible when the controls are collapsed. */
  .mobile-filter-drawer>summary{display:flex;align-items:center;gap:7px;min-width:0}
  .mobile-filter-drawer>summary::before{flex:0 0 auto}
  .mobile-filter-heading{flex:0 0 auto;font-size:12px;font-weight:700}
  .mobile-filter-state{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#91adbc;font-size:11px;font-weight:400}
  .mobile-filter-drawer:not([open])>.tracked-controls,.mobile-filter-drawer:not([open])>.mls-controls{display:none}
  .tracked-heading,.mls-review-head{gap:8px;margin:0;padding-bottom:8px}
  .tracked-heading h1,.mls-review-head h1{font-size:22px;margin:0}
  .tracked-heading p,.mls-review-head p,.tracked-heading .eyebrow,.mls-review-head .eyebrow{display:none}
  .tracked-heading-actions{gap:6px}
  .tracked-summary,.mls-review-stats{display:flex;gap:6px;overflow-x:auto;margin:8px 0;padding:0}
  .tracked-summary>div,.mls-stat{flex:1;min-width:60px;padding:8px!important}
  .tracked-summary strong,.mls-stat strong{font-size:18px}
  .mls-stat span{font-size:9px;letter-spacing:0}
  .tracked-stage-options{position:static;min-width:0;box-shadow:none}
  .tracked-controls,.mls-controls{margin-top:10px}
  .mls-table-wrap{overflow:visible;border:0}
  .mls-table,.mls-table tbody{display:block;width:100%;min-width:0}
  .mls-table thead{display:none}
  .mls-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:14px;margin:0 0 12px;border:1px solid #344755;border-radius:10px;background:#101a23}
  .mls-table td{display:block;min-width:0;padding:0;border:0;overflow-wrap:anywhere}
  .mls-table td:first-child,.mls-table td:last-child{grid-column:1/-1}
  .mls-property,.mls-intel,.mls-context,.mls-row-actions{min-width:0}
  .mls-row-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .mls-table td:nth-child(3)::before{content:'Price';display:block;color:#9ab2c2;font-size:11px}
  .mls-table td:nth-child(6)::before{content:'Context';display:block;color:#9ab2c2;font-size:11px}
  #trackedView button,#trackedView select,#trackedView input[type=search],#trackedView summary,
  #mlsReviewView button,#mlsReviewView select,#mlsReviewView input,#mlsReviewView a,
  .scout-report-modal button,.field-photo-modal button,.acq-modal button,
  #siteConfiguratorModal button,#dealWorkspace button{min-height:44px;box-sizing:border-box}
  .tracked-more>summary,.modal-close{min-width:44px}
  #trackedView .tracked-deal-button{font-size:13px!important}
  #trackedView input[type=search],#trackedView select,#mlsReviewView input,#mlsReviewView select,
  .scout-report-editor input,.scout-report-editor select,.scout-report-editor textarea,
  .config-panel input,.config-panel select,.config-panel textarea,.acq-modal input,.acq-modal select,.acq-modal textarea,
  #dealWorkspace input,#dealWorkspace select,#dealWorkspace textarea{font-size:16px;min-height:44px}
  .scout-report-toolbar{flex-wrap:wrap;gap:8px;padding:8px}
  .scout-report-toolbar-actions{width:auto;max-width:none;flex:1}
  .scout-report-toolbar-actions button:not(.modal-close){font-size:11px}
  .mobile-report-tabs{display:flex;width:100%;gap:8px}
  .mobile-report-tabs button{flex:1;background:#152b39;color:#e1edf4;border:1px solid #557282;border-radius:7px;font-size:14px}
  .mobile-report-tabs [aria-pressed=true],.mobile-config-nav [aria-pressed=true]{background:#19584e;border-color:#51a38d}
  #scoutReportWorkspace{display:block;overflow:hidden;min-height:0}
  #scoutReportModal[data-mobile-view=edit] .scout-report-preview-wrap,
  #scoutReportModal[data-mobile-view=preview] .scout-report-editor{display:none}
  #scoutReportModal .scout-report-editor,#scoutReportModal .scout-report-preview-wrap{height:100%;min-height:0;box-sizing:border-box;overflow:auto}
  .report-editor-grid.two{grid-template-columns:1fr}
  .report-editor-section label,.report-editor-help{font-size:13px}
  #scoutReportPrintable{zoom:1}
  .site-configurator-shell{grid-template-rows:auto minmax(0,1fr)}
  .site-configurator-toolbar{min-height:64px;box-sizing:border-box}
  #configuratorWorkspace{display:block;position:relative;overflow:hidden}
  #configuratorMapWrap{position:absolute;inset:0;min-height:0;height:100%;width:100%}
  .mobile-config-nav{display:flex;position:absolute;top:8px;left:8px;right:8px;z-index:12;gap:5px}
  .mobile-config-nav button{flex:1;min-width:0;background:#152b39;color:#e1edf4;border:1px solid #557282;border-radius:7px;font-size:13px}
  #configuratorWorkspace>.config-panel{display:none;position:absolute;left:0;right:0;bottom:0;top:64px;z-index:15;overflow:auto;background:#101b25;padding:16px;padding-bottom:calc(20px + env(safe-area-inset-bottom));border-radius:14px 14px 0 0}
  #siteConfiguratorModal[data-mobile-panel=tools] .config-left,#siteConfiguratorModal[data-mobile-panel=details] .config-right{display:block}
  #configuratorWorkspace>.config-panel>*{width:auto;min-width:0;flex:none;box-sizing:border-box}
  .config-panel .config-tool{width:100%;font-size:14px;margin:5px 0}
  .config-panel label,.config-panel .config-note,.config-panel .config-tool small{font-size:12px}
  #siteConfiguratorModal.mobile-pan #configuratorSvg{pointer-events:none;touch-action:auto}
  #configHint{bottom:12px;max-width:calc(100% - 24px);font-size:12px;pointer-events:none}
  #configProformaModal .config-proforma-shell{width:100%;height:100dvh;max-height:100dvh;border-radius:0}
  #configProformaModal .pf-keyboard-help{display:none}
  #configProformaModal input[data-pf-key],#configProformaModal input[data-pf-sale]{height:44px;font-size:16px}
  #configProformaModal .config-pf-input-grid label,#configProformaModal .config-pf-warranty-row{font-size:13px;grid-template-columns:minmax(0,1fr) 120px;min-height:52px}
  #configProformaModal button{min-height:44px;font-size:13px}
  .config-proforma-actions{padding-bottom:calc(8px + env(safe-area-inset-bottom))!important}
  #configProformaModal .config-pf-unit-row{grid-template-columns:48px minmax(0,1fr) 120px;font-size:12px}
  #configProformaModal .config-pf-unit-row>.unit-no{grid-column:1/3}
  #configProformaModal .config-pf-unit-row>.unit-gfa{grid-column:1}
  #configProformaModal .config-pf-unit-row>.unit-type{grid-column:2}
  #configProformaModal .config-pf-unit-row>input{grid-column:3;grid-row:1/3}
  .config-proforma-actions>div:first-child{font-size:11px}
  .config-panel [data-transform]{touch-action:none}
}
@media screen and (max-width:360px){
  .topbar .view-switch{grid-template-columns:minmax(44px,.7fr) minmax(0,1fr) minmax(0,1.3fr) 40px}
  body:is(.tracked-mode,.mls-review-mode) .topbar .view-switch{grid-template-columns:minmax(44px,.7fr) minmax(0,1fr) minmax(0,1.3fr)}
  .topbar .view-switch>button:not(.mobile-search-toggle){font-size:11px;gap:3px}
  .topbar .view-switch .mls-unread-badge{min-width:15px;height:15px;padding:0 3px;font-size:8px}
}

/* MLS Review shares the compact list style, with visible review decisions. */
.mls-mobile-card-info,.mls-stat-short{display:none!important}
@media screen and (max-width:760px){
  #mlsReviewView .mls-review-head{flex-direction:row;align-items:center;justify-content:space-between;padding-bottom:0}
  #mlsReviewView .mls-review-actions button{font-size:11px;padding:8px 12px}
  #mlsReviewView .mls-review-stats{display:flex;gap:0;overflow:visible;margin:8px 0 6px;border:1px solid #29404e;border-radius:7px;min-height:36px;background:#0e1921}
  #mlsReviewView .mls-stat{display:flex;justify-content:center;align-items:center;gap:4px;flex:1;min-width:0;padding:6px 2px!important;border:0;border-right:1px solid #29404e;background:transparent;border-radius:0;white-space:nowrap}
  #mlsReviewView .mls-stat:last-child{border-right:0}
  #mlsReviewView .mls-stat strong{font-size:13px;line-height:1}
  #mlsReviewView .mls-stat-long{display:none}
  #mlsReviewView .mls-stat-short{display:inline!important;font-size:9px;line-height:1.3;margin:0;letter-spacing:0;text-transform:none}
  #mlsReviewView .mls-table tr{grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;padding:4px 10px 10px;margin-bottom:6px;border-radius:8px;background:#0d171e}
  #mlsReviewView .mls-property-cell{grid-column:1/-1;grid-row:1}
  #mlsReviewView .mls-property{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 8px;min-width:0}
  #mlsReviewView .mls-state-line{grid-column:2;grid-row:1;margin:0}
  #mlsReviewView .mls-type-pill,#mlsReviewView .mls-property-facts,#mlsReviewView .mls-parcel-reference{display:none}
  #mlsReviewView .mls-address-link,#mlsReviewView .mls-property>strong{grid-column:1;grid-row:1;display:flex;align-items:center;min-width:0;min-height:44px;font-size:14px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none}
  #mlsReviewView .mls-address-link{display:block}
  #mlsReviewView .mls-match-warning{grid-column:1/-1;margin:0 0 4px;color:#f0c47c;font-size:11px}
  #mlsReviewView .mls-price-cell{grid-column:1;grid-row:2;align-self:center}
  #mlsReviewView .mls-price-cell::before{display:none}
  #mlsReviewView .mls-price{display:flex;align-items:baseline;gap:3px 7px;flex-wrap:wrap}
  #mlsReviewView .mls-price strong{font-size:15px;line-height:22px}
  #mlsReviewView .mls-price small{font-size:10px;margin:0;line-height:15px}
  #mlsReviewView .mls-event-cell{grid-column:2;grid-row:2;text-align:right;align-self:center;font-size:10px}
  #mlsReviewView .mls-event-cell .mls-event{font-size:8px;padding:3px 5px;letter-spacing:.03em}
  #mlsReviewView .mls-event-age{font-size:9px;margin-top:2px!important}
  #mlsReviewView .mls-event-cell>small{display:none}
  #mlsReviewView .mls-economics-cell,#mlsReviewView .mls-intel-cell,#mlsReviewView .mls-context-cell,#mlsReviewView .mls-source-cell{display:none}
  #mlsReviewView .mls-mobile-card-info{display:block!important;grid-column:1/-1;grid-row:3}
  #mlsReviewView .mls-mobile-card-info::before{display:none}
  #mlsReviewView .mls-listing-details>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;cursor:pointer;list-style:none;border-radius:5px}
  #mlsReviewView .mls-listing-details>summary::-webkit-details-marker{display:none}
  #mlsReviewView .mls-mobile-context{display:grid;gap:3px;min-width:0;color:#91aaba;font-size:10px;line-height:14px}
  #mlsReviewView .mls-card-location{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #mlsReviewView .mls-card-geometry{color:#b0c7d4}
  #mlsReviewView .mls-details-label{flex:0 0 auto;font-size:10px;color:#a7c9d7}
  #mlsReviewView .mls-details-label>span{display:inline-block;margin-left:2px}
  #mlsReviewView .mls-listing-details[open] .mls-details-label>span{transform:rotate(180deg)}
  #mlsReviewView .mls-details-body{padding:9px 0 11px;border-top:1px solid #29404e;font-size:11px;color:#94aebb}
  #mlsReviewView .mls-details-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 12px;margin:0}
  #mlsReviewView .mls-details-grid dt{color:#7f9aaa;font-size:10px;margin-bottom:3px}
  #mlsReviewView .mls-details-grid dd{margin:0;color:#cbdde6;overflow-wrap:anywhere}
  #mlsReviewView .mls-details-body>small{display:block;margin-top:10px}
  #mlsReviewView .mls-details-body>a{display:inline-flex;align-items:center;min-height:44px;color:#70d2e1}
  #mlsReviewView .mls-actions-cell{grid-column:1/-1;grid-row:4}
  #mlsReviewView .mls-row-actions{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr) auto;min-width:0;gap:6px}
  #mlsReviewView .mls-row-actions button,#mlsReviewView .mls-row-actions a{display:flex;align-items:center;justify-content:center;font-size:11px;padding:7px 8px;min-width:0;border-radius:6px}
  #mlsReviewView .mls-row-actions .mls-matrix-link{display:none}
  #mlsReviewView .mls-listing-details>summary:focus-visible,#mlsReviewView .mls-address-link:focus-visible{outline:2px solid #4ed8eb;outline-offset:2px}
}
@media print{.mobile-report-tabs,.mobile-config-nav{display:none!important}}
@media(prefers-reduced-motion:reduce){#detailsSidebar{transition:none}}

/* UX proposal I: recover from empty filtered lists without opening the drawer. */
#trackedEmpty .list-empty-reset,#mlsEmpty .list-empty-reset{display:block;min-height:44px;margin:12px auto 0;padding:9px 16px;border:1px solid #3c6674;border-radius:8px;background:#152d38;color:#bcecf2;font:600 12px system-ui;cursor:pointer}
.list-empty-reset:focus-visible{outline:2px solid #4fd8ed;outline-offset:3px}
#trackedEmpty .list-empty-reset:hover,#mlsEmpty .list-empty-reset:hover{background:#204451;border-color:#4b8b9b}

/* One mobile scan layout; desktop retains the same table and data sources. */
.tracked-lot-selection{display:contents}
.tracked-mobile-mls{display:none}
.report-site-corrections{margin:12px 0;padding:0 0 10px;border-top:1px solid #2d4654;border-bottom:1px solid #2d4654}
.report-site-corrections>summary{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:44px;cursor:pointer;color:#b9e7ed;font-size:12px;font-weight:650;list-style:none}
.report-site-corrections>summary::-webkit-details-marker{display:none}
.report-site-corrections>summary::before{content:'▸';color:#52cce2}
.report-site-corrections[open]>summary::before{content:'▾'}
#reportSiteCorrectionSummary{margin-left:auto;font-size:10px;font-weight:500;color:#8eacbc}
.report-site-correction-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px}
.report-site-correction-actions button{border:1px solid #3c6571;border-radius:6px;background:#152e39;color:#c0e8ee;padding:8px 12px;font:600 11px system-ui;cursor:pointer}
#reportSiteCorrectionStatus:empty{display:none}
@media screen and (max-width:760px){
  #scoutingFieldset #notes{height:66px;min-height:66px;resize:vertical;transition:height .15s ease}
  #scoutingFieldset #notes:focus{height:155px}
  #trackedView .tracked-row{grid-template-columns:minmax(0,1fr) auto 44px;grid-template-rows:auto auto auto;gap:3px 6px;padding:3px 8px 9px;border-radius:8px;align-items:center}
  #trackedView .tracked-row>.tracked-lot-cell{grid-column:1;grid-row:1;min-width:0}
  #trackedView .tracked-lot-cell-inner{align-items:center;gap:2px;min-width:0}
  #trackedView .tracked-lot-selection{display:flex;align-items:center;justify-content:center;flex:0 0 44px;min-height:44px;margin:0;padding:0;cursor:pointer}
  #trackedView .tracked-lot-select{width:17px;height:17px;min-height:0;padding:0;margin:0}
  #trackedView .tracked-address-link{min-width:0;min-height:44px;font-size:14px;line-height:1.2;overflow:hidden;text-overflow:ellipsis}
  #trackedView .tracked-row>.tracked-status-cell{grid-column:2;grid-row:1;align-self:center}
  #trackedView .tracked-status-pill{font-size:9px;padding:3px 6px}
  #trackedView .tracked-row>.tracked-report-cell{grid-column:3;grid-row:1;min-width:0;justify-self:end;align-self:center;padding:0}
  #trackedView .tracked-report-cell::before{display:none}
  #trackedView .tracked-report-actions{display:block;margin:0}
  #trackedView .tracked-more>summary{display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border-color:transparent;background:transparent;border-radius:7px;color:#a3becd;font-size:22px}
  #trackedView .tracked-more>summary:hover,#trackedView .tracked-more[open]>summary{background:#1a303c;border-color:#365564}
  #trackedView .tracked-row>.tracked-acquisition-cell{display:flex!important;grid-column:1 / 3!important;grid-row:2;align-items:center;gap:7px;flex-wrap:wrap;padding-left:7px;font-size:14px;line-height:20px;font-weight:700;color:#dceaf2}
  #trackedView .tracked-acquisition-cell::before{display:inline;content:'Acq.';font-size:10px;font-weight:500;letter-spacing:0;text-transform:none;color:#8ea8b8}
  #trackedView .tracked-row>.tracked-units-cell{grid-column:3!important;grid-row:2;justify-self:end;white-space:nowrap;font-size:12px;line-height:20px;color:#c9dfe9}
  #trackedView .tracked-units-cell::before{display:none}
  #trackedView .tracked-units-cell::after{content:' ' attr(data-unit-label);color:#8ea8b8;font-size:10px}
  #trackedView .tracked-lot-cell>.mls-status-slot{display:none}
  #trackedView .tracked-mobile-mls{display:inline-flex;margin:0;min-width:0;max-width:100%;font-weight:500}
  #trackedView .tracked-mobile-mls:empty{display:none}
  #trackedView .tracked-mobile-mls .mls-status-badge{font-size:9px;line-height:1.3;padding:2px 5px}
  #trackedView .tracked-row>.tracked-mobile-summary{grid-column:1 / -1;grid-row:3;display:flex!important;align-items:center;gap:10px;margin:1px 0 0;padding:0 7px;min-width:0;line-height:16px;font-size:10px;white-space:nowrap;color:#8fa7b6}
  #trackedView .tracked-mobile-location{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
  #trackedView .tracked-mobile-width,#trackedView .tracked-mobile-area{flex:0 0 auto;color:#a5bdca}
  #trackedView .tracked-row>.tracked-width-cell,#trackedView .tracked-row>.tracked-area-cell{display:none!important}
}
