/* report-fit.css — fit-and-finish corrections to the shell's inline stylesheet.
   Linked from index.html on the same line as its closing </style>, deliberately:
   index.html sits at 999 of a 1000-line guard, and this sheet has to come AFTER the
   inline <style> so an equal-specificity rule here wins on source order instead of
   needing !important. Every rule below corrects a rule that lives in index.html;
   the measurement that motivated each one is in the bus note
   ops-dashboard-ui-tweak-audit-2026-09-22-gideon-kami.md. (2026-09-22) */

/* Photos recovery control: wrap on phones and retain a 44px touch target. */
.photos-workspace-bar:has(#photos-retry-connection:not([hidden])) { flex-wrap:wrap; }
#photos-retry-connection { min-height:44px; padding:8px 12px; font:inherit; }
#photos-retry-connection[hidden] { display:none; }

/* ── 1. The Open Inspections KNOWN TOTALS row was invisible on a desk. ──
   index.html paints .gfx .ptable tr.tot td navy at (0,3,2), but the zebra stripe
   .gfx .ptable tbody tr:nth-child(even) td is (0,3,3) and wins whenever the totals
   row lands on an even row — white text on #F8FBFE, contrast 1.04:1. Same
   specificity as the stripe, later in the cascade: the navy band always paints.
   Phone card mode (hybrid-command-center.css, (0,4,5) with [data-cards]) already
   painted this row correctly and still outranks this rule. */
.gfx .ptable tbody tr.tot td { background: var(--navy); color: #fff; }
.gfx .ptable tbody tr.tot:hover td { background: var(--navy); }

/* ── 2. The 600px table box. ──
   .gfx .tscroll { max-height: 600px } left 322px of a 1,190px window empty under
   the Active Job Listing while hiding 861px of rows inside the box, and put
   Completed Jobs (220,550px of rows) behind a letterbox that scrolls separately
   from the page. Take the height the window has; 300px is the chrome above the
   table (topbar, toolbar, subtabs, card head, .gfx padding). The 420px floor keeps
   a short window from getting less than it does today. Phones and any coarse
   pointer keep index.html's `none` (an iPad would otherwise be re-clamped by this
   later rule). */
.gfx .tscroll { max-height: max(420px, calc(100vh - 300px)); }
@media (pointer: coarse), (max-width: 700px) { .gfx .tscroll { max-height: none; } }

/* ── 12. The desktop sidebar's inner scroll had no tell. ──
   At 800px tall, 11 of 28 nav items show and "TEAM" is clipped mid-label at the
   bottom edge, which reads as a bug rather than as "more below". Two shadow
   layers scroll with the viewport (attachment: scroll) under two cover layers that
   scroll with the content (attachment: local): the shadow shows only on the edge
   that actually has more content past it, and disappears at either end. Pure
   CSS; nothing to wire. Off on phones, where the drawer is a single scroll. */
@media (min-width: 701px) {
  .sidebar-nav {
    background:
      linear-gradient(var(--sidebar-bg) 40%, rgba(0,61,121,0)) center top / 100% 28px no-repeat local,
      linear-gradient(rgba(0,61,121,0), var(--sidebar-bg) 60%) center bottom / 100% 28px no-repeat local,
      radial-gradient(farthest-side at 50% 0, rgba(0,0,0,.55), rgba(0,0,0,0)) center top / 100% 14px no-repeat scroll,
      radial-gradient(farthest-side at 50% 100%, rgba(0,0,0,.55), rgba(0,0,0,0)) center bottom / 100% 14px no-repeat scroll;
  }
}

/* ── 13. "Close menu" was 1,018px down the drawer's scroll. ──
   The button now lives in .sidebar-header (index.html), top-right beside the logo,
   so it is on screen the moment the drawer opens. index.html's own .sidebar-close
   rule still gives it display:block only inside the drawer query; this re-shapes
   the full-width bar into a 44px square. Attribute order on the button is pinned
   by shell_accessibility_contract_check.js and unchanged. */
.sidebar-header { position: relative; }
/* The drawer query, same as index.html (a Fold 7 opened is a phone screen, Bob 2026-10-08). */
@media (max-width: 700px), (pointer: coarse) and (max-width: 1024px) {
  .sidebar-header { padding-right: 68px; }   /* room for the button; the title wraps rather than sits under it */
  .sidebar-close {
    position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; margin: 0;
    padding: 0; border-radius: 8px; font-size: 24px; line-height: 1;
  }
}

/* ── 3. Nine report tabs wrapped to four rows on a phone, then stayed sticky. ──
   233px of a 711px screen. One swipeable row: the strip scrolls sideways, the
   active tab is centred by showSub() (dashboard-report-views.js) whenever the
   strip actually overflows. The sticky offset and background come from index.html
   and are unchanged. Scrollbar hidden: the tabs are the affordance. Same query as the
   shell's phone layout, so a Fold 7 opened or a landscape phone gets these too. */
@media (max-width: 700px), (pointer: coarse) and (max-width: 1024px) {
  .gfx .subtabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .gfx .subtabs::-webkit-scrollbar { display: none; }
  .gfx .subtab { flex: 0 0 auto; scroll-snap-align: start; }

  /* ── 6. A headless strip of the previous card showed above the sticky tabs. ──
     .gfx has 16px of top padding on a phone; the sticky strip sat at top:0 of the
     scroll box, so content scrolled into the gap between the box edge and the
     strip. The strip now bleeds into that gap and paints it. */
  .gfx .subtabs { margin-top: -16px; padding-top: calc(10px + 16px); }

  /* ── 7. The tab strip showed as an empty band (S22 / Fold 7 walkthrough 2026-10-07). ──
     With overflow-x:auto its minimum height drops to 0, so the report's flex column
     squeezed it to its padding and the tabs sat below the visible band. Its -16px
     margin also pulled it over the bottom of "Save view"; the toolbar now leaves
     that room. */
  .gfx .subtabs { flex-shrink: 0; }
  .gfx .gfx-toolbar { margin-bottom: 16px; }

  /* ── 4. Ten sort chips over three rows on the card view. ──
     Same treatment as the tabs: one swipeable row. The active sort chip goes
     first (order:-1) so "what is this sorted by" is always the first thing in the
     row, without a scroll. Selectors match hybrid-command-center.css exactly so
     specificity is equal and source order decides. */
  body .gfx table[data-cards][data-sortable] > thead > tr { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  body .gfx table[data-cards][data-sortable] > thead > tr::-webkit-scrollbar { display: none; }
  body .gfx table[data-cards][data-sortable] > thead > tr > th[data-jobs-sort-key],
  body .gfx table[data-cards][data-sortable] > thead > tr > th[data-sort-key] { flex: 0 0 auto; }
  body .gfx table[data-cards][data-sortable] > thead > tr > th[aria-sort="ascending"],
  body .gfx table[data-cards][data-sortable] > thead > tr > th[aria-sort="descending"] { order: -1; }
}

/* ── 5. A filtered report looked like the whole report. ──
   The Jobs / AR / Inspections search narrows EVERY tab, KPIs included, so a
   filtered Executive Summary shows one job's contract value where the division
   total normally sits. This strip, rendered by dashboard-report-views.js under
   the toolbar whenever a filter is on, names the term, the count, and clears. */
.gfx-filter-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 -8px; padding: 8px 12px; border-radius: 8px; background: var(--amber-soft); border: 1px solid #E8C89A; color: #7A4A0E; font-size: 12.5px; font-weight: 700; }
.gfx-filter-note[hidden] { display: none; }   /* display:flex above would otherwise beat the hidden attribute: an empty amber strip on every unfiltered report (Astra audit, 2026-09-22) */
.gfx-filter-note b { font-weight: 800; }
.gfx-filter-note .gfx-filter-clear { margin-left: auto; background: #fff; border: 1px solid #C99A5B; color: #7A4A0E; border-radius: 6px; padding: 4px 10px; font: 800 12px 'Segoe UI', Arial, sans-serif; cursor: pointer; }
.gfx-filter-note .gfx-filter-clear:hover { border-color: #7A4A0E; }
@media (pointer: coarse), (max-width: 700px) {
  .gfx-filter-note { font-size: 15px; padding: 12px 14px; }
  .gfx-filter-note .gfx-filter-clear { min-height: 44px; padding: 8px 16px; font-size: 15px; }
}

/* ── 7. "All 0 Jobs" over an empty table. ──
   .gfx .empty already exists in index.html; the report views now render it when a
   filter leaves no rows. Only the Clear button is new. */
.gfx .empty .gfx-empty-clear { margin-top: 14px; background: var(--navy); color: #fff; border: 0; border-radius: 7px; padding: 9px 16px; font: 800 13px 'Segoe UI', Arial, sans-serif; cursor: pointer; }
.gfx .empty .gfx-empty-clear:hover { background: var(--navy-bright); }
@media (pointer: coarse), (max-width: 700px) { .gfx .empty .gfx-empty-clear { min-height: 44px; font-size: 15px; } }

/* ── 10. "1 older SO hidden (view only)" was plain grey text between two selects. ──
   It is a completeness caveat. Same amber the report already uses for its age
   buckets, so it reads as a status, not as chrome. */
.gfx-agehint { padding: 4px 10px; border-radius: 999px; background: var(--amber-soft); color: #7A4A0E; border: 1px solid #E8C89A; }

/* ── 11. (retired 2026-10-05) The report-age colours on #topbar-updated and the phone
   bar are gone with the age label itself: staff screens no longer show when a report
   was last updated (Bob: "I don't even need to know what time things were looked at"). */

/* ── Picture pass (2026-09-22): AR aging bar, workload tiles ──
   Rendered by dashboard-report-views.js (ppWorkloadTiles, the AR summary's agingBar). Colours
   are the report palette, all >= 4.5:1 for the text they carry. */
.gfx .pp-aging { margin-bottom: 18px; }
.gfx .pp-aging-bar { display: flex; height: 38px; border-radius: 9px; overflow: hidden; gap: 2px; background: var(--border); }
.gfx .pp-band { min-width: 6px; border: 0; padding: 0; color: #fff; font-family: inherit; font-weight: 800; font-size: 12px; line-height: 38px; text-align: left; cursor: pointer; overflow: hidden; white-space: nowrap; }
.gfx .pp-band span { display: block; padding: 0 8px; overflow: hidden; text-overflow: clip; }
.gfx .pp-band:hover, .gfx .pp-band:focus-visible { outline: 3px solid var(--heading); outline-offset: -3px; }   /* outline only: brightening the fill dropped the Current label to 4.2:1 (Astra, Grok) */
/* Same colours as the AR Aging Distribution doughnut below it (dashboard-report-views.js C:
   navyB, green, cyan, amber, red), so one page has one colour code. White labels are >= 4.5:1
   on navy/green/red; cyan and amber carry black labels instead (5.2:1 and 5.3:1). */
.gfx .pp-fut { background: #004A8F; } .gfx .pp-cur { background: #2E7D52; } .gfx .pp-a31 { background: #0F8C9B; color: #000; }
.gfx .pp-a61 { background: #B96D13; color: #000; } .gfx .pp-a90 { background: #C8102E; }
.gfx .pp-aging-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gfx .pp-aging-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.gfx .pp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 18px; }
.gfx .pp-tile { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.gfx .pp-tile.is-ua { border-color: #F3B8C2; background: #FFF6F7; box-shadow: inset 4px 0 0 var(--red); }
.gfx .pp-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12.5px; letter-spacing: .02em; }
.gfx .pp-av-ua { background: var(--red); font-size: 16px; }
.gfx .pp-tile-body { min-width: 0; }
.gfx .pp-tile-name { font-weight: 800; font-size: 13.5px; color: var(--heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gfx .pp-tile.is-ua .pp-tile-name { color: var(--red-dark); }
.gfx .pp-tile-bar { height: 6px; border-radius: 3px; background: #E4E9F0; overflow: hidden; margin: 5px 0 3px; }
.gfx .pp-tile-bar i { display: block; height: 100%; background: var(--navy); border-radius: 3px; }
.gfx .pp-tile.is-ua .pp-tile-bar i { background: var(--red); }
.gfx .pp-tile-meta { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gfx .pp-tile-n { font-size: 24px; font-weight: 800; color: var(--heading); font-variant-numeric: tabular-nums; }
.gfx .pp-tile.is-ua .pp-tile-n { color: var(--red-dark); }

/* ── Picture pass step 4 (2026-09-23): Executive Summary as boxes and bars ──
   Rendered by ppExecSummary in dashboard-report-views.js. Text colours are >= 4.5:1 on
   their grounds; semantic colour (good green / bad red) only on the big number. */
.gfx .pp-xtiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 18px; }
.gfx .pp-xtile { position: relative; display: grid; gap: 3px; align-content: start; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 14px 12px; box-shadow: var(--shadow-tight); }
.gfx .pp-xtile:hover, .gfx .pp-xtile:focus-visible { border-color: var(--navy); outline: 3px solid var(--navy-50); outline-offset: 0; }
.gfx .pp-xl { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.gfx .pp-xv { font-size: 30px; font-weight: 800; line-height: 1.05; color: var(--heading); font-variant-numeric: tabular-nums; }
.gfx .pp-xtile.is-good .pp-xv { color: #1F6435; } .gfx .pp-xtile.is-bad .pp-xv { color: #A00C24; }
.gfx .pp-xs { font-size: 12px; color: var(--muted); }
.gfx .pp-xgo { position: absolute; right: 12px; top: 10px; font-size: 16px; color: var(--muted); }
.gfx .pp-chip-warn { display: inline-block; width: fit-content; margin-top: 4px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--amber-soft); color: #7A4A0E; }
.gfx .pp-xrow { align-items: start; }
.gfx .pp-xcard { display: grid; gap: 12px; }
.gfx .pp-xring-wrap { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.gfx .pp-xring { flex: none; }
.gfx .pp-xring-t { display: grid; gap: 2px; } .gfx .pp-xring-t b { font-size: 15px; color: var(--heading); } .gfx .pp-xring-t span { font-size: 12.5px; color: var(--muted); }
.gfx .pp-xbar-l { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.gfx .pp-xbar-l b { color: var(--heading); font-variant-numeric: tabular-nums; }
.gfx .pp-xtrack { height: 12px; border-radius: 6px; background: #E4E9F0; overflow: hidden; }
.gfx .pp-xtrack i { display: block; height: 100%; border-radius: 6px; }
.gfx .pp-attn-list { display: grid; gap: 8px; }
.gfx .pp-attn { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--border); border-left: 5px solid var(--red); border-radius: 10px; padding: 9px 12px; background: var(--surface); }
.gfx .pp-attn.is-warn { border-left-color: #B96D13; }
.gfx .pp-attn-job { font-family: Consolas, 'Courier New', monospace; font-weight: 800; font-size: 12.5px; color: var(--navy); }
.gfx .pp-attn-what { font-size: 13px; color: var(--heading); min-width: 0; overflow-wrap: anywhere; }
.gfx .pp-attn-what small { display: block; font-size: 12px; color: var(--muted); }
.gfx .pp-pill-bad, .gfx .pp-pill-warn { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.gfx .pp-pill-bad { background: #FBE0E4; color: #A00C24; } .gfx .pp-pill-warn { background: var(--amber-soft); color: #7A4A0E; }
.gfx .pp-attn-none { font-size: 13px; color: var(--muted); padding: 6px 0; }
.gfx .pp-xmore { justify-self: start; border: 0; background: none; color: var(--navy); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0; }
.gfx .pp-xdivs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gfx .pp-xdiv { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; }
.gfx .pp-xdiv-n { font-size: 12px; font-weight: 700; color: var(--muted); } .gfx .pp-xdiv-v { font-size: 20px; font-weight: 800; color: var(--heading); font-variant-numeric: tabular-nums; } .gfx .pp-xdiv-m { font-size: 12px; color: var(--muted); }
@media (max-width: 520px) { .gfx .pp-xtiles { grid-template-columns: 1fr 1fr; } .gfx .pp-xv { font-size: 24px; } .gfx .pp-xdivs { grid-template-columns: 1fr; } }

/* AR and Jobs summaries: one plain surface, with detail available on demand. */
.gfx .jobs-overview, .gfx .ar-overview { background: var(--surface); padding: 24px; border-radius: 4px; }
.gfx .jobs-overview h3, .gfx .ar-overview h3 { margin: 0 0 14px; font-size: 16px; font-weight: 650; color: var(--heading); }
.gfx .jobs-overview .pp-xtiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-bottom: 30px; }
.gfx .jobs-overview .pp-xtile { border: 0; border-radius: 0; box-shadow: none; padding: 0 16px 8px 0; min-height: 88px; }
.gfx .jobs-overview .pp-xl, .gfx .summary-label { display: block; font-size: 13px; font-weight: 500; letter-spacing: normal; text-transform: none; color: var(--muted); }
.gfx .jobs-overview .pp-xv { font-size: 30px; font-weight: 650; line-height: 1.25; }
.gfx .jobs-overview .pp-xtile.is-good .pp-xv { color: var(--heading); }
.gfx .jobs-overview .pp-chip-warn { border-radius: 0; background: none; color: #7A4A0E; padding: 0; font-weight: 500; }
.gfx .jobs-overview-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 36px; }
.gfx .jobs-issue-counts { display: flex; gap: 6px 18px; flex-wrap: wrap; margin: -4px 0 4px; }
.gfx .jobs-issue-counts button { border: 0; padding: 8px 0; background: none; color: var(--navy); font: inherit; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gfx .jobs-overview .pp-attn-list { gap: 0; margin-top: 10px; }
.gfx .jobs-overview .pp-attn { border: 0; border-radius: 0; padding: 10px 0; gap: 12px; }
.gfx .jobs-overview .pp-attn + .pp-attn { border-top: 1px solid var(--border); }
.gfx .jobs-overview .pp-pill-bad, .gfx .jobs-overview .pp-pill-warn { background: none; border-radius: 0; padding: 0; font-size: 13px; }
.gfx .jobs-overview .pp-attn-job { font-family: inherit; font-weight: 600; }
.gfx .jobs-overview .pp-xmore { min-height: 44px; }
.gfx .jobs-overview .pp-xbar { margin: 12px 0; }
.gfx .jobs-overview .pp-xbar-l { flex-wrap: wrap; }
.gfx .jobs-overview .pp-xtrack, .gfx .jobs-overview .pp-xtrack i { height: 6px; border-radius: 2px; }
.gfx .jobs-overview .pp-xdiv { border: 0; border-radius: 0; padding: 8px 0; }
.gfx .summary-note { display: block; font-size: 12px; font-weight: 400; line-height: 1.5; color: var(--muted); }
.gfx .summary-details { margin-top: 22px; }
.gfx .summary-details summary { width: fit-content; min-height: 44px; padding: 12px 0; color: var(--navy); cursor: pointer; font-size: 13px; }
.gfx .summary-details-body { padding-top: 2px; }
.gfx .ar-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 30px; }
.gfx .ar-totals button { border: 0; padding: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.gfx .ar-totals strong { display: block; margin: 4px 0; font-size: 30px; font-weight: 650; color: var(--heading); font-variant-numeric: tabular-nums; }
.gfx .ar-aging .pp-aging-bar { height: 44px; margin: 0 0 8px; border-radius: 3px; }
.gfx .ar-aging .pp-band { min-width: 0; line-height: 44px; }
.gfx .ar-buckets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.gfx .ar-buckets button { display: grid; gap: 4px; min-width: 0; min-height: 80px; padding: 10px 0; border: 0; background: none; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.gfx .ar-buckets b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.gfx .ar-bucket-link { font-size: 12px; color: var(--navy); }
.gfx .ar-facts { display: flex; gap: 16px 36px; flex-wrap: wrap; padding: 4px 0; }
.gfx .ar-facts dt { font-size: 12px; color: var(--muted); }
.gfx .ar-facts dd { margin: 4px 0 0; font-size: 16px; }
.gfx .jobs-overview button:focus-visible, .gfx .ar-overview button:focus-visible, .gfx .summary-details summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
@media (max-width: 1000px) {
  .gfx .jobs-overview-body { grid-template-columns: 1fr; gap: 28px; }
  .gfx .jobs-overview .pp-xtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .gfx .jobs-overview, .gfx .ar-overview { padding: 18px; }
  .gfx .ar-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .gfx .ar-totals > :first-child { grid-column: 1 / -1; }
  .gfx .ar-totals strong { font-size: 25px; }
  .gfx .ar-aging .pp-band span { display: none; }
  .gfx .ar-buckets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
  .gfx .jobs-overview .pp-xtiles { gap: 20px 14px; }
  .gfx .jobs-issue-counts button { min-height: 44px; }
}

/* The SWO toolbar (search + tech + age + hint + PDF) ran 147px off a 402px phone; .gfx-actions
   now wraps (index.html) and on a phone the search takes its own row (audit Tier 2, 2026-09-23). */
@media (max-width: 520px) {
  .gfx-search-wrap { flex: 1 1 100%; }
  .gfx-search { width: 100%; }
  .gfx-agehint { white-space: normal; }
}

/* ── 14. Touch targets the 2026-10-09 emulator click-through audit measured under 44px. ──
   Download PDF 34.7px, the technician and age selects 34px, "View chart data as a table"
   14px, the Users Set / Reset buttons 23.6px. Grok's pass the same night: the AR by Age
   bands 38px tall (Future 28px wide) and the Open Inspections priority select about 22px.
   Phones and any touch screen. */
@media (pointer: coarse), (max-width: 700px) {
  .gfx-pdf-btn { min-height: 44px; }
  .gfx-tech-select { height: 44px; }
  .gfx .chart-data-alternative summary { padding-block: 15px; }
  #admin-user-table button { min-height: 44px; }
  .gfx .pp-aging-bar { height: 44px; }
  .gfx .pp-band { min-width: 44px; line-height: 44px; }
  .nw-insp-priority { min-height: 44px; }
}


/* Local dashboard simplification: presentation only. */
.gfx .pp-tile:not(.is-ua) { box-shadow:none; border-radius:4px; }
.gfx .pp-xtile { box-shadow:none; border-radius:4px; }
.gfx .pp-xl { text-transform:none; letter-spacing:normal; }


.sidebar-brand, .nav-label, .admin-table th, .login-stat-lbl { text-transform:none; letter-spacing:normal; }
.gfx:not(#viewer-ar):not(#viewer-jobs) { background:#F5F7FA; }
.gfx:not(#viewer-ar):not(#viewer-jobs) .card, .gfx:not(#viewer-ar):not(#viewer-jobs) .kpi, .gfx:not(#viewer-ar):not(#viewer-jobs) .ikpi, .gfx:not(#viewer-ar):not(#viewer-jobs) .gfx-summary { box-shadow:none; border-radius:4px; }
.gfx:not(#viewer-ar):not(#viewer-jobs) .card-head, .gfx:not(#viewer-ar):not(#viewer-jobs) .k-label, .gfx:not(#viewer-ar):not(#viewer-jobs) .gs-title, .gfx:not(#viewer-ar):not(#viewer-jobs) .dtable th, .gfx:not(#viewer-ar):not(#viewer-jobs) .ptable th { text-transform:none; letter-spacing:normal; }

.hybrid-hero { background:#003D79; border-radius:6px; box-shadow:none; }
.hybrid-hero-kicker { text-transform:none; letter-spacing:normal; }
.hybrid-card { border:0; border-radius:0; box-shadow:none; }
.hybrid-card-actions button, .hybrid-saved { border-radius:4px; }
.hybrid-crew { border-radius:4px; background:#fff; }
.quotes-tabs button { border-radius:4px; }

/* ── Dark mode (Bob, 2026-11-10: "leave it as is and if people want dark mode they can hit a
   button that goes to dark mode"). Here rather than in index.html for the same 1000-line reason.
   Light stays the default for everyone, even a phone set to dark: only the Menu's "Dark mode"
   button (shared/theme.js) sets data-theme="dark", and the shell sets it only on the sign-in
   screens and on views marked data-theme-ready (Quote Status, Quick Quotes, Quotes), whose pages
   have a dark look (dashboard-shell.js). Every other view stays light, so a page is never half
   dark; the navy menu is the same in both. --link is navy used AS text or an edge (links,
   outline buttons, focus), which dark lightens; --accent / --navy stay the navy behind white
   text. The other names are fills of hybrid-command-center.css and the phone Favorites sheet
   (mobile-toolbar.css), which carry their light values as var() fallbacks. ── */
:root { --link: #003D79; --ctl-soft: #f8fafc; --ctl-hover: #f0f6fc; --tab-line: #b9cbe0; }
.theme-toggle-note { margin: 0 0 8px; font-size: 11px; line-height: 1.35; color: var(--sidebar-muted); }
@media screen {
  html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0f1722; --surface: #18222f; --border: #2f3d50; --border-strong: #44556c; --heading: #f1f5f9; --line: #2f3d50;
    --text: #e5ecf4; --muted: #a6b4c5; --danger: #ff8a96;
    --link: #8cc4ff; --ctl-soft: #1f2b3b; --ctl-hover: #1c2d44; --tab-line: #44556c;
    --kbd-line: #44556c; --kbd-ink: #a6b4c5; --result-hover: #1c2d44; --loading-veil: rgba(15,23,34,.86);
    --fav-line: #2f3d50; --fav-rule: #263445; --fav-btn-line: #44556c; --fav-press: #1c2d44; --fav-off: #8494a8; --fav-empty: #a6b4c5;
  }
  /* Display > Contrast: High darkens --muted and --border for a light page; on dark it lightens them. */
  html[data-theme="dark"][data-nw-contrast="high"] { --muted: #d0d9e4; --border: #6b7f99; }
  html[data-theme="dark"] .login-box a { color: var(--link); }
  html[data-theme="dark"] .login-box { box-shadow: 0 10px 30px rgba(0,0,0,0.45); }
  /* The browser's grey hint text read 3.9:1 in the dark sign-in boxes (visual audit 2026-11-11). */
  html[data-theme="dark"] ::placeholder { color: var(--muted); opacity: 1; }
}