/* AutoSteward layout - the page frame, sidebar, header, tables, buttons, fields and type treatment.
 *
 * WHAT IT IS. "Bold flat" (direction B, the owner's pick on 2026-09-28) with a few things borrowed
 * from the two directions it beat, where they add polish without softening it:
 *   from B, kept whole: the preset's own sidebar with a SOLID accent block for the current page,
 *     heavy ink rules instead of boxes, UPPERCASE titles standing on a thick rule, big bold money in
 *     even-width figures, the out-the-door total in a solid ink box, ruled dashboard figures, and
 *     compact tables;
 *   from A: more room between sections and under page titles (still on the 2px rhythm), and the
 *     row under the pointer lighting up in a table - with the zebra stripes dropped for it;
 *   from C: solid status chips in tables (made solid and bold rather than pastel), and the layout
 *     fixes that measured the fewest flaws;
 *   corners: one 2px corner on cards, buttons and fields - nearly square, never round.
 * The dealership photo stays on the sign-in screen: a fresh install paints no photo behind the
 * working screens (Display > Branding, "Application after sign-in", defaults to Blank).
 *
 * It is LAYOUT, not colour: every colour is read from the chosen design preset's tokens (--ink,
 * --surface-strong, --accent, --sidebar-*), so each preset in StewardDesign.DESIGNS keeps its own
 * colours and fonts, light and dark. The exceptions are fixed fills that must carry white text in
 * both appearances: the status chips' green and amber, and the quiet-delete red.
 *
 * It applies to everyone, always: a plain stylesheet, so there is no attribute to set and nothing
 * to flash before first paint. Rules are written `html:root body ...` - the specificity the
 * preview layer had as `html[data-layout] body ...` - because that is what lets them out-rank
 * styles.css, design-themes.css and identity.css while loading BEFORE controls.css, which tests pin
 * as the last stylesheet.
 *
 * A handful of --L-* tokens drive it (set on html:root just below):
 *   --L-gutter / --L-stack / --L-top   page padding, gap between sections, space above the title
 *   --L-radius / --L-ctl-r             the corner of panels and of controls
 *   --L-row-y / --L-cell-x             table cell padding
 *   --L-rule / --L-rule-ctl / --L-heavy  hairline, control outline, heavy ink rule
 *   --L-cta / --L-cta-ink              the one colour that means "act on this" (the preset's accent)
 *
 * RULES THIS FILE KEEPS (CLAUDE.md, Render system): sizes only from the --fs-* scale with the paired
 * --lh-* step, weights 400/500/600/700 only, no font shorthand, spacing on the even 2px rhythm
 * (radii exempt). No markup and no behaviour live here. */

/* ---------------------------------------------------------------- tokens */
html:root{
  --L-gutter:32px;--L-stack:28px;--L-top:32px;
  --L-radius:2px;--L-ctl-r:2px;
  --L-row-y:8px;--L-cell-x:10px;
  --L-rule:color-mix(in srgb,var(--ink) 14%,transparent);
  --L-rule-ctl:color-mix(in srgb,var(--ink) 34%,transparent);
  --L-heavy:2px solid var(--ink);
  --L-panel-bg:var(--surface-strong);--L-panel-border:1px solid var(--L-rule);--L-panel-shadow:none;
  --L-title-fs:var(--fs-h1);--L-title-lh:var(--lh-h1);--L-title-case:uppercase;--L-title-track:.02em;
  --L-nav-h:40px;
  --L-cta:var(--accent);--L-cta-ink:var(--accent-ink);
  --L-danger-ink:#b42318;
  --L-th-rule:2px solid var(--ink);--L-th-rule-color:var(--ink);
  /* A table header is painted in its panel's own colour, never transparent: the header row is pinned while the
   * table scrolls (styles.css .table-wrap thead th {position:sticky}), and a transparent pinned row lets every
   * row scroll visibly THROUGH it (owner, 2026-10-19: "look at the table how it flies while scrolling"). The
   * fallback below stays transparent only for a design that deliberately sets this to transparent. */
  --L-th-bg:var(--L-panel-bg);
  /* Nearly square, one corner everywhere: re-point the app's own corner tokens too, so a component
   * that reads them gets the same 2px instead of the preset's 8-16px. */
  --radius:2px;--radius-sm:2px;--r-control:2px;--r-panel:2px;--r-card:2px;--r-stadium:2px;--r-surface:2px;
}
html:root[data-theme="dark"]{--L-danger-ink:#ff9b8f;--L-rule:color-mix(in srgb,var(--ink) 16%,transparent)}


/* ---------------------------------------------------------------- the shell: header */
html:root body .desktop-app-header{
  min-height:60px;gap:8px;padding:0 var(--L-gutter);
  box-shadow:none;backdrop-filter:none;
  background:var(--L-header-bg,var(--header-bg));
  border-bottom:1px solid var(--L-rule);
}
html:root body .desktop-app-header :is(button,.button){white-space:nowrap}
html:root body .breadcrumb-bar{min-width:0;font-size:var(--fs-small);line-height:var(--lh-small);color:var(--muted)}
html:root body .breadcrumb-bar span{color:var(--ink);font-weight:600}
/* One height for everything in the header, so the row reads as a row. */
html:root body .desktop-app-header :is(.header-search-button,.header-help-button,.header-ask-button,.manager-attention-button,.account-menu-button){
  min-height:44px;height:44px;padding:0 12px;gap:8px;
  font-size:var(--fs-small);line-height:var(--lh-small);font-weight:500;
  border-radius:var(--L-ctl-r);box-shadow:none;
}
html:root body .header-search-button{min-width:180px;justify-content:flex-start;color:var(--muted)}
html:root body .header-search-button kbd{margin-left:auto;font-size:var(--fs-micro);line-height:var(--lh-micro);padding:0 6px;border-radius:var(--L-radius)}
html:root body .header-search-icon{font-size:var(--fs-lead);line-height:var(--lh-lead)}
/* Manager Attention: a quiet button with a count, not a red slab, and a label that never wraps. Its
 * bell is the outline icon from design-icons.js, so it takes the text colour like every other icon. */
html:root body .manager-attention-button{color:var(--ink);background:transparent;border:1px solid var(--L-rule-ctl,var(--line))}
html:root body .header-manager-attention{flex:none}
html:root body .manager-attention-icon{flex:0 0 18px;width:18px;height:18px}
html:root body .manager-attention-count{min-width:22px;height:22px;padding:0 6px;border-radius:var(--L-radius);font-size:var(--fs-micro);line-height:22px;font-weight:700;color:#fff;background:var(--red-solid,#c9363e)}
html:root body .account-menu-button{border:0;background:transparent}
html:root body .account-avatar{width:30px;height:30px;font-size:var(--fs-small);line-height:30px}
html:root body .account-button-copy strong{font-size:var(--fs-small);line-height:var(--lh-small);font-weight:600}
html:root body .account-button-copy small{font-size:var(--fs-micro);line-height:var(--lh-micro);color:var(--muted)}

/* ---------------------------------------------------------------- the shell: sidebar */
html:root body .sidebar-brand{min-height:60px;padding:0 20px;gap:10px}
html:root body .sidebar-nav{padding:8px 12px 16px}
/* Expand all / Collapse all stay, as small text, so they stop competing with the pages. */
html:root body .sidebar-nav-tools{justify-content:flex-end;gap:8px;margin:0 0 4px;padding:0}
html:root body .sidebar-nav-tool{min-height:26px;padding:0 6px;font-size:var(--fs-micro);line-height:var(--lh-micro);font-weight:500;color:var(--sidebar-muted);background:transparent;border:0}
html:root body .sidebar-nav-group{margin:0 0 4px}
html:root body .sidebar-nav-group h2{margin:12px 0 2px;padding:0 8px}
html:root body .sidebar-group-toggle{min-height:28px;padding:0;font-size:var(--fs-micro);line-height:var(--lh-micro);font-weight:600;letter-spacing:.08em}
html:root body .sidebar-link{
  min-height:var(--L-nav-h);height:auto;margin:0 0 2px;padding:6px 12px;gap:12px;
  font-size:var(--fs-body);line-height:var(--lh-body);font-weight:500;
  border:0;box-shadow:none;
}
/* Icons: one family (design-icons.js draws every icon from its one line set), one size, one stroke. */
html:root body .sidebar-link-icon{flex:0 0 20px;width:20px;height:20px;color:var(--sidebar-muted)}
html:root body .sidebar-link-icon .dms-ico{width:20px;height:20px;stroke-width:1.75px}
html:root body .sidebar-link:hover{background:color-mix(in srgb,var(--sidebar-ink) 7%,transparent)}
html:root body .sidebar-link:hover .sidebar-link-icon{color:var(--sidebar-ink)}
html:root body .sidebar-link.active::before{display:none}
/* The version card becomes a quiet footnote. */
html:root body .sidebar-release{margin:0;padding:12px 20px 16px;border:0;border-top:1px solid color-mix(in srgb,var(--sidebar-ink) 10%,transparent);border-radius:0;background:transparent}
html:root body .sidebar-release strong{font-size:var(--fs-micro);line-height:var(--lh-micro);font-weight:600;color:var(--sidebar-muted)}
html:root body .sidebar-release span{font-size:var(--fs-micro);line-height:var(--lh-micro);color:var(--sidebar-muted)}
/* Where the data lives is unknown until the launcher answers: hidden, not "on this PC", on a hosted server's first second. */
html:not([data-where-known]) body .sidebar-release span,html:not([data-where-known]) body footer.footer{visibility:hidden}

/* ---------------------------------------------------------------- page frame and heading */
html:root body main.page-shell{padding:var(--L-top,28px) var(--L-gutter) 48px}
html:root body main.page-shell>*+*{margin-top:var(--L-stack)}
/* An empty mount point (a banner slot with nothing in it) takes no gap, or two gaps stack into one hole. */
html:root body main.page-shell>:empty{margin-top:0}
html:root body :is(.page-heading,.dashboard-heading){margin:0 0 var(--L-stack);padding:0;align-items:flex-end;gap:16px}
/* At 1100px and under the heading stacks into a column (styles.css), and flex-end then pushed the title to the right half
   of the page while the content stayed full width (QA 2026-10-21, measured at 1024px). A column starts at the left. */
@media(max-width:1100px){html:root body :is(.page-heading,.dashboard-heading){align-items:flex-start}}
/* The eyebrow repeats the title in capitals ("Inventory management" over "Vehicles"). */
html:root body .page-heading .eyebrow{display:none}
html:root body :is(.page-heading,.dashboard-heading) h1{
  margin:0;font-size:var(--L-title-fs);line-height:var(--L-title-lh);font-weight:700;
  text-transform:var(--L-title-case,none);letter-spacing:var(--L-title-track,0);
}
html:root body :is(.page-heading,.dashboard-heading) h1+p,
html:root body :is(.page-heading,.dashboard-heading)>div>p{
  /* Muted, but never below 4.5:1: the preset's --muted measured 4.23:1 on Alpine's page. */
  max-width:68ch;margin:4px 0 0;color:color-mix(in srgb,var(--muted) 72%,var(--ink));font-size:var(--fs-body);line-height:var(--lh-body);
}
html:root body .dashboard-heading .timestamp{font-size:var(--fs-small);line-height:var(--lh-small);color:var(--muted)}

/* ---------------------------------------------------------------- panels */
html:root body :is(.panel,.info-card){border-radius:var(--L-radius);box-shadow:var(--L-panel-shadow);border:var(--L-panel-border);background:var(--L-panel-bg)}
html:root body .panel-heading{padding:16px var(--L-cell-x);border-bottom:1px solid var(--L-rule);min-height:0}
html:root body .panel-heading h2{font-size:var(--fs-lead);line-height:var(--lh-lead);font-weight:600}

/* ---------------------------------------------------------------- buttons */
html:root body .button{
  min-height:var(--control-height);padding:0 16px;gap:8px;
  font-size:var(--fs-body);line-height:var(--lh-body);font-weight:600;
  border-radius:var(--L-ctl-r);
}
html:root body .button.compact{min-height:32px;padding:0 12px;font-size:var(--fs-small);line-height:var(--lh-small)}
html:root body .button.primary{color:var(--L-cta-ink);background:var(--L-cta);border-color:var(--L-cta);box-shadow:none}
html:root body .button.primary:hover:not(:disabled){color:var(--L-cta-ink);background:color-mix(in srgb,var(--L-cta) 86%,#000);border-color:color-mix(in srgb,var(--L-cta) 86%,#000)}
/* A delete stays behind its confirmation and stays quieter than the main action, but it is still a BUTTON:
 * a red outline and a faint red fill. Red text with no box read as a sentence (owner, 2026-10-18). */
html:root body .button.danger-outline{color:var(--L-danger-ink);background:color-mix(in srgb,var(--L-danger-ink) 7%,transparent);border:1px solid color-mix(in srgb,var(--L-danger-ink) 60%,transparent);box-shadow:none}
html:root body .button.danger-outline:hover:not(:disabled){color:var(--L-danger-ink);background:color-mix(in srgb,var(--L-danger-ink) 14%,transparent);border-color:var(--L-danger-ink)}
/* A text link must look like a link: the accent colour (measured 5.2:1 or better on every design, light and
 * dark) and an underline, which is what marks it on the near-black accent of the paper design. */
html:root body .link-btn{font-weight:600;color:var(--accent);text-decoration:underline;text-decoration-color:color-mix(in srgb,currentColor 45%,transparent);text-underline-offset:3px;text-decoration-thickness:1px}
html:root body .link-btn:hover:not(:disabled){text-decoration-color:currentColor}

/* ---------------------------------------------------------------- fields */
html:root body :is(.vehicle-filter-grid,.customer-search-bar) label>span,
html:root body label.sw-field>span,
html:root body .sw-field>legend{font-size:var(--fs-small);line-height:var(--lh-small);font-weight:600;color:var(--ink)}
html:root body .sw-field small,
html:root body .sw-field>span small{display:block;font-size:var(--fs-micro);line-height:var(--lh-micro);font-weight:400;color:var(--muted)}
html:root body #app :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select){
  min-height:var(--control-height);height:var(--control-height);border-radius:var(--L-ctl-r);box-shadow:none;
  font-size:var(--fs-body);line-height:var(--lh-body);
}

/* ---------------------------------------------------------------- tables */
html:root body .data-table{font-size:var(--fs-body)}
html:root body .data-table :is(th,td){padding:var(--L-row-y) var(--L-cell-x);line-height:var(--lh-body);border-left:0;border-right:0}
html:root body .data-table th{
  padding-top:10px;padding-bottom:10px;white-space:normal;vertical-align:bottom;
  font-size:var(--fs-micro);line-height:var(--lh-micro);font-weight:600;letter-spacing:.04em;
  color:var(--muted);background:var(--L-th-bg,transparent);
  border-top:0;border-bottom:var(--L-th-rule,1px solid var(--L-rule));
}
html:root body .data-table td{background:transparent;border-top:0;border-bottom:1px solid var(--L-rule)}
html:root body .data-table tbody tr:last-child td{border-bottom:0}
html:root body .data-table tbody tr:hover{background:color-mix(in srgb,var(--ink) 4%,transparent)}
html:root body .data-table tbody tr.selected{background:color-mix(in srgb,var(--accent) 10%,transparent)}
html:root body .data-table tbody tr:is(:hover,.selected) td{background:transparent}
html:root body .data-table tbody tr.selected td:first-child{box-shadow:inset 3px 0 0 var(--accent)}
html:root body .data-table .mono{font-size:var(--fs-small);line-height:var(--lh-small);letter-spacing:0;color:var(--muted)}
/* A link in a row is still a 28px target (26px is the harness's floor for a reliable hit). */
html:root body .data-table .link-btn{display:inline-flex;align-items:center;min-height:28px;padding:0;text-decoration:none}
html:root body .data-table .link-btn:hover{text-decoration:underline}
/* Money and counts line up on their decimal point. */
html:root body :is(.data-table td.column-number,.data-table td.column-money,.dash-tile-value,.sw-otd-summary dd,.dash-car-sub){font-variant-numeric:tabular-nums}
html:root body .veh-thumb{width:56px;height:40px;border-radius:calc(var(--L-radius) / 2);overflow:hidden}
/* Row actions: compact boxed buttons, so Edit / Archive read as buttons on every line (owner, 2026-10-18). */
html:root body .row-actions{gap:6px}
/* Row actions stay on one line INSIDE a table row; elsewhere (a form footer in a narrow column) they
 * wrap, or they spill across the next card and a click lands on it (measured on a customer record). */
html:root body .data-table .row-actions{flex-wrap:nowrap}
html:root body #app .row-actions .button.compact:not(.primary):not(.danger):not(.danger-outline){min-height:30px;padding:0 10px;background:var(--surface-strong);border:1px solid var(--L-rule-ctl);box-shadow:none;font-weight:600}
html:root body #app .row-actions .button.compact:not(.primary):not(.danger):not(.danger-outline):hover:not(:disabled){border-color:var(--ink)}

/* ---------------------------------------------------------------- inventory toolbar */
html:root body .vehicle-filter-panel{padding:0;border:0;box-shadow:none;background:transparent}
html:root body .vehicle-filter-panel .filter-title-row{padding:0 0 8px;border:0;background:transparent;min-height:0}
html:root body .vehicle-filter-panel .filter-title-row strong{font-size:var(--fs-small);line-height:var(--lh-small);font-weight:600;color:var(--muted)}
html:root body .vehicle-filter-panel .filter-title-row span{font-size:var(--fs-small);line-height:var(--lh-small);color:var(--muted)}
html:root body .vehicle-filter-grid{padding:0;gap:12px;align-items:end}
html:root body .vehicle-filter-grid label{gap:4px}
/* The one thing a dealer does most on this screen stays loud (primary); the rest are ordinary boxed
 * secondary buttons. A row of borderless words was not recognisable as buttons (owner, 2026-10-18). */
html:root body .vehicle-action-bar{padding:0;gap:6px;border:0;background:transparent;box-shadow:none;align-items:center}
html:root body #app .vehicle-action-bar .button:not(.primary):not(.danger):not(.danger-outline){
  min-height:34px;padding:0 12px;font-size:var(--fs-small);line-height:var(--lh-small);font-weight:600;
  color:var(--ink);background:var(--surface-strong);border:1px solid var(--L-rule-ctl);box-shadow:none;
}
html:root body #app .vehicle-action-bar .button:not(.primary):not(.danger):not(.danger-outline):hover:not(:disabled){border-color:var(--ink)}
html:root body #app .vehicle-action-bar .button.danger-outline{min-height:34px;padding:0 12px;font-size:var(--fs-small);line-height:var(--lh-small)}
html:root body #app .vehicle-action-bar .button.primary{margin-right:8px}
html:root body .vehicle-action-bar .action-divider{height:20px;margin:0 6px;background:var(--L-rule)}
html:root body .inventory-view-bar{padding:0;border:0;background:transparent;box-shadow:none;justify-content:flex-end}
html:root body .selection-strip{padding:0;border:0;background:transparent;font-size:var(--fs-small);line-height:var(--lh-small);color:var(--muted)}
html:root body .inv-views{padding:0;gap:6px;background:transparent;border:0;box-shadow:none}
html:root body .inv-view{min-height:30px;padding:0 14px;font-size:var(--fs-small);line-height:var(--lh-small);font-weight:600;border-radius:var(--L-ctl-r);border:0;box-shadow:none;background:transparent;color:var(--muted)}
html:root body .inv-view.active{background:color-mix(in srgb,var(--ink) 8%,transparent);color:var(--ink);box-shadow:none}

/* ---------------------------------------------------------------- customers toolbar */
html:root body .customer-search-bar{padding:0;gap:8px;border:0;background:transparent;box-shadow:none;align-items:end}
html:root body .customer-search-bar>span{margin-left:auto;align-self:center;font-size:var(--fs-small);line-height:var(--lh-small);color:var(--muted)}
html:root body #app #resetCustomerSearch{background:transparent;border-color:transparent;box-shadow:none}
html:root body #applyCustomerSearch:not(:hover){color:var(--ink);background:var(--surface-strong);border-color:var(--L-rule-ctl,var(--line))}
html:root body #applyCustomerSearch{box-shadow:none}
html:root body .customer-search-bar label{flex:0 1 480px}
html:root body .customer-search-bar>span{order:4}
html:root body #newCustomer{order:5;margin-left:16px}

/* ---------------------------------------------------------------- dashboard */
html:root body .dash-tile-label{font-size:var(--fs-micro);line-height:var(--lh-micro);font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
html:root body .dash-tile-value{font-size:var(--fs-display);line-height:var(--lh-display);font-weight:700}
html:root body .dash-tile-sub{font-size:var(--fs-small);line-height:var(--lh-small);color:var(--muted)}
html:root body .dash-system-head{font-size:var(--fs-micro);line-height:var(--lh-micro);font-weight:600;letter-spacing:.06em}
html:root body .dash-sys-tile strong{font-size:var(--fs-lead);line-height:var(--lh-lead);font-weight:700}
html:root body .dash-sys-tile small{font-size:var(--fs-small);line-height:var(--lh-small);color:var(--muted)}
html:root body .dash-lot-head h2,
html:root body .rf-lead{font-size:var(--fs-h3);line-height:var(--lh-h3);font-weight:700}
/* A car name that opens the car reads as a link: accent colour, underline on hover (owner, 2026-10-18). */
html:root body .dash-car-name{min-height:28px;font-size:var(--fs-body);line-height:var(--lh-body);font-weight:600;color:var(--accent)}
html:root body .dash-car-name:hover{text-decoration:underline;text-underline-offset:3px}
/* The CRM card opens on its name: the name carries the link colour so the card says where to click. */
html:root body .crm-card-open>strong{color:var(--accent)}
html:root body .crm-card-open:hover>strong{text-decoration:underline;text-underline-offset:3px}
html:root body .dash-car-sub{font-size:var(--fs-small);line-height:var(--lh-small)}
html:root body .dash-car-days{font-size:var(--fs-micro);line-height:var(--lh-micro);color:var(--muted)}
/* The quick-fix forms on a lot card (asking price, what you paid, smog) are kept, one tight row each. */
html:root body .dash-car-fix{gap:2px;margin-top:8px}
html:root body .dash-car-fixlabel{font-size:var(--fs-micro);line-height:var(--lh-micro);font-weight:600;color:var(--muted)}
html:root body .dash-car-fixrow{gap:6px}
html:root body .dash-car-fixrow :is(input,select){min-height:32px;height:32px}
html:root body .dash-car-fixrow .button.compact{min-height:32px}
html:root body .rf-signal h3{font-size:var(--fs-body);line-height:var(--lh-body);font-weight:600}
html:root body .rf-signal p{font-size:var(--fs-small);line-height:var(--lh-small);color:var(--muted)}
html:root body .quick-card strong{font-size:var(--fs-body);line-height:var(--lh-body);font-weight:600}

/* ---------------------------------------------------------------- the sale wizard */
html:root body .sw-veh-card{box-shadow:none}
html:root body .sw-veh-facts dt{font-size:var(--fs-micro);line-height:var(--lh-micro);font-weight:600;color:var(--muted)}
html:root body .sw-veh-facts dd{font-size:var(--fs-small);line-height:var(--lh-small);font-weight:500}
html:root body .sw-head h2{font-size:var(--fs-h2);line-height:var(--lh-h2);font-weight:700}
html:root body .sw-blurb{font-size:var(--fs-body);line-height:var(--lh-body);color:var(--muted)}
html:root body .sw-rail-title{font-size:var(--fs-small);line-height:var(--lh-small);font-weight:500}
html:root body .sw-money-block>h3{font-size:var(--fs-lead);line-height:var(--lh-lead);font-weight:700}
html:root body .sw-grid{gap:16px 20px}
/* THE FIGURE THE BUYER ASKS FOR is the biggest thing on the step. */
html:root body .sw-otd-summary dt{font-size:var(--fs-small);line-height:var(--lh-small);color:var(--muted)}
html:root body .sw-otd-summary dd{font-size:var(--fs-body);line-height:var(--lh-body);font-weight:600}
html:root body .sw-otd-summary .sw-otd-total dt{font-size:var(--fs-lead);line-height:var(--lh-lead);font-weight:700;color:var(--ink)}
html:root body .sw-otd-summary .sw-otd-total dd{font-size:var(--fs-h1);line-height:var(--lh-h1);font-weight:700}
html:root body .sw-tender{border-radius:var(--L-ctl-r)}
html:root body .sw-tender-name{font-size:var(--fs-small);line-height:var(--lh-small)}
html:root body .sw-choice strong{font-size:var(--fs-body);line-height:var(--lh-body);font-weight:700}
html:root body .sw-choice span{font-size:var(--fs-small);line-height:var(--lh-small)}

/* ---------------------------------------------------------------- phones */
@media (max-width:900px){
  html:root body .desktop-app-header{padding:0 12px}
  html:root body .header-search-button{min-width:0}
  html:root body main.page-shell{padding:20px 16px 40px}
  html:root body .account-button-copy{display:none}
}

/* ---------------------------------------------------------------- inventory: one tool row
 * The view switch (Table / Gallery / Board) sat alone on its own 50px row above the tool buttons.
 * It now shares the tool row, on the right, so the table starts 60px higher. Same controls. */
html:root body main.page-shell:has(>.vehicle-action-bar){display:flex;flex-wrap:wrap;align-content:flex-start;column-gap:16px}
html:root body main.page-shell:has(>.vehicle-action-bar)>*{flex:1 1 100%;order:10;min-width:0}
html:root body main.page-shell:has(>.vehicle-action-bar)>.page-heading{order:0}
html:root body main.page-shell:has(>.vehicle-action-bar)>.vehicle-filter-panel{order:1}
html:root body main.page-shell:has(>.vehicle-action-bar)>.vehicle-action-bar{order:2}
html:root body main.page-shell:has(>.vehicle-action-bar)>.selection-strip{order:3;flex:1 1 0;align-self:center}
html:root body main.page-shell:has(>.vehicle-action-bar)>.inventory-view-bar{order:4;flex:0 0 auto;align-self:center}
html:root body main.page-shell:has(>.vehicle-action-bar)>:is(.inventory-view-bar,.selection-strip){margin-top:12px}
/* WHAT COMES BEFORE THE HEADING STAYS BEFORE IT. The `order:10` above sends every unnamed child to the end, and that
 * caught the section tabs (Inventory / Workshop / Inventory Insights) and the trial or licence banner, which the
 * page puts ahead of its heading: on Inventory the tabs sat under the tool buttons, on Workshop at the top, so the
 * strip jumped as the dealer switched (owner 2026-11-03: "notice how the tab here switches places thats confusing").
 * Anything written before the heading keeps its place ahead of it, and the tabs lead on any page that lays its
 * children out as flex or grid, so a page added later cannot move them either. */
html:root body main.page-shell:has(>.vehicle-action-bar)>:has(~.page-heading){order:-1}
html:root body main.page-shell>.ws-tabs{order:-2}
/* Short identifiers never break mid-word ("Hond / a"). */
html:root body .inventory-width-profile td:is(.vehicle-column-make,.vehicle-column-model,.vehicle-column-trim){white-space:nowrap;overflow-wrap:normal}
/* THE INVENTORY TABLE FITS THE PAGE. Its colgroup gives every column a PERCENTAGE and every cell a
 * minimum in ch, and under table-layout:auto the browser then widens the whole table until the most
 * demanding ratio is met - Purchase Date's 12ch at 7% alone asks for a 1,480px table, which is why it
 * scrolled sideways on a 1440px screen. Letting the content size the columns, and letting long
 * headers take two lines, brings all fourteen columns inside the page. */
html:root body .inventory-width-profile col{width:auto}
html:root body .inventory-width-profile :is(th,td){min-width:0}
html:root body .inventory-width-profile th{white-space:normal}
html:root body .inventory-width-profile td.vehicle-column-vendor{overflow-wrap:normal}
/* A table always sits on a solid surface, even over a dealer's background photo. */
html:root body .panel.table-wrap{background:var(--surface-strong)}

/* No doubled gap where a flex page stacks the heading's margin on the next block's. */
html:root body main.page-shell:has(>.vehicle-action-bar)>.page-heading{margin-bottom:0}
html:root body main.page-shell:has(>.vehicle-action-bar)>.table-wrap{margin-top:16px}
/* Footnotes and guardrail notes: small print, not a grey box in the middle of the page. */
html:root body :is(.panel-footnote,main.page-shell>.rule-callout){max-width:72ch;padding:0;border:0;background:transparent;box-shadow:none;font-size:var(--fs-small);line-height:var(--lh-small);color:var(--muted)}
html:root body :is(.panel-footnote,main.page-shell>.rule-callout) strong{color:var(--ink);font-weight:600}
html:root body .dash-sys-tile>span{min-width:0}
html:root body .dash-sys-tile strong{white-space:normal;overflow:visible;text-overflow:clip}
html:root body #app .row-actions .button.compact:not(.primary):not(.danger){padding:0 8px}
html:root body .dash-sys-do.button.compact{min-height:28px;padding:0 8px;font-size:var(--fs-micro);line-height:var(--lh-micro)}
/* Toolbars and filter strips are open rows, not boxes - some dark-appearance rules still paint them. */
html:root body #app :is(.vehicle-filter-panel .filter-title-row,.vehicle-filter-grid,.vehicle-action-bar,.inventory-view-bar,.selection-strip){background:transparent;border-radius:0;box-shadow:none}
html:root body #app :is(.vehicle-filter-panel,.customer-search-bar){background:transparent;box-shadow:none}
html:root body #app main.page-shell>.rule-callout{background:transparent;box-shadow:none;border:0}
html:root body .button.compact.pricing-detail-button{min-height:44px}
/* The dark appearance paints these with !important (styles.css "dark patch"), so this file has to
 * answer in kind for its open rows to stay open in dark as well as light. */
html:root[data-theme="dark"] body #app :is(.selection-strip,.vehicle-action-bar,.panel-footnote,.dashboard-footer){background:transparent!important;border-color:transparent!important}
html:root[data-theme="dark"] body #app :is(.vehicle-filter-panel .filter-title-row,.vehicle-filter-grid){background:transparent!important}
html:root[data-theme="dark"] body #app :is(.vehicle-filter-panel,.customer-search-bar){background:transparent!important}
html:root[data-theme="dark"] body #app main.page-shell>.rule-callout{background:transparent!important;border-color:transparent!important}
/* Cells never paint; the row does (zebra, hover, selection). */
html:root body #app .data-table tbody tr td{background:transparent}
html:root[data-theme="dark"] body #app .data-table tbody tr:is(:hover,.selected) td{background:transparent!important}
html:root[data-theme="dark"] body #app .data-table{background:transparent!important}
html:root[data-theme="dark"] body #app .data-table th{background:var(--L-th-bg,transparent)!important;border-color:var(--L-rule)!important;border-bottom-color:var(--L-th-rule-color,var(--L-rule))!important}
html:root[data-theme="dark"] body #app .data-table td{background:transparent!important;border-color:var(--L-rule)!important}
/* Below 1280px the header gives the breadcrumb room: the search keeps its icon and label, the
 * shortcut hint and the account's name and role step aside (the avatar still opens the menu). */
@media (max-width:1279px){
  html:root body .header-search-button{min-width:0}
  html:root body .header-search-button kbd,
  html:root body .account-button-copy{display:none}
}
html:root body .pricing-detail-button b{font-weight:700}



/* CORNERS: one 2px corner on every card, button and field (radii are exempt from the spacing rhythm),
 * including the ones a preset or a component rounds further. Pieces that butt edge to edge - the ruled
 * figure strip, the housekeeping strip, the lot grid, segmented switches, the step rail - stay square,
 * because a rounded corner where two boxes meet leaves a notch. */
html:root body :is(.button,.panel,.info-card,input,select,textarea,.sw-veh-card,.sale-wizard,.sw-tender,.sw-choice,.status,.veh-thumb,.header-search-button,.manager-attention-button,.account-menu-button,.header-help-button,.sidebar-link,.dash-insight,.notice){border-radius:var(--L-radius)}
html:root body :is(.dash-tile,.dash-car,.dash-sys-tile,.quick-card,.inv-views,.inv-view,.rf-signal,.sw-rail-step button,.financing-type-segmented,.sw-finance-choice){border-radius:0}
html:root body .dms-ico{stroke-linecap:square;stroke-linejoin:miter}

/* ---- sidebar: the preset's own rail, square, the active page a solid accent block ---- */
html:root body .dms-sidebar{box-shadow:none;border-right:1px solid color-mix(in srgb,var(--sidebar-ink) 14%,transparent)}
html:root body .sidebar-brand{border-bottom:1px solid color-mix(in srgb,var(--sidebar-ink) 14%,transparent)}
html:root body .sidebar-nav-group h2 .sidebar-group-toggle{letter-spacing:.1em;font-weight:700}
html:root body .sidebar-link.active{color:var(--accent-ink);background:var(--accent);box-shadow:none;border-radius:var(--L-radius);font-weight:600}
html:root body .sidebar-link.active .sidebar-link-icon{color:var(--accent-ink)}

/* ---- header: flat, a single rule underneath ---- */
html:root body .desktop-app-header{border-bottom:1px solid var(--L-rule)}
html:root body .header-search-button{border:1px solid var(--L-rule-ctl);background:var(--surface-strong)}

/* ---- page heading: an uppercase title standing on a heavy rule ---- */
html:root body :is(.page-heading,.dashboard-heading){padding-bottom:16px;border-bottom:var(--L-heavy)}
html:root body .sw-page-heading{padding-bottom:0;border-bottom:0}
/* The car card heading keeps its own centred column, so it lines up with the wizard card under it
 * (the heading margin above resets margin-left/right to 0). */
html:root body .sw-page-heading{margin-left:auto;margin-right:auto}

/* ---- buttons: flat rectangles; the secondary ones an outline, never a bevel ---- */
html:root body .button:not(.primary):not(.danger):not(.danger-outline){background:var(--surface-strong);border:1px solid var(--L-rule-ctl);box-shadow:none}
html:root body .button:not(.primary):not(.danger):not(.danger-outline):hover:not(:disabled){border-color:var(--ink);background:var(--surface-strong)}
html:root body .button.primary{text-transform:none}

/* ---- panels: a hairline box, no shadow; tables inside it carry the heavy rule ---- */
html:root body .panel.table-wrap{border:0}
/* A long, wide table scrolls inside its own box, no taller than the window, so its sideways scrollbar is
 * always on screen. It used to be the page that scrolled down, and the table's scrollbar sat under the last
 * row: on a 300-customer list you scrolled to the bottom to scroll right (owner, 2026-10-17). The header
 * row is already sticky inside the box (styles.css), so the column names stay in view as well. */
html:root body :is(.table-wrap,.report-table-wrap){max-height:max(360px,calc(100vh - 180px));overflow:auto}
html:root body .data-table th{color:var(--ink);font-weight:700;letter-spacing:.06em;text-transform:uppercase}
/* No stripes: the hairline between rows already separates them, and a stripe competed with the one
 * thing that should light up - the row under the pointer. */
html:root body .data-table tbody tr:hover{background:color-mix(in srgb,var(--ink) 6%,transparent)}
html:root body .data-table tbody tr.selected{background:color-mix(in srgb,var(--accent) 14%,transparent)}
html:root body .data-table tbody tr.selected td:first-child{box-shadow:inset 4px 0 0 var(--accent)}
/* In a table the name IS the link: accent colour marks it clickable without underlining every row; the underline
 * comes back on hover (owner, 2026-10-18: things you can click must be noticeable). */
html:root body .data-table .link-btn{color:var(--accent);font-weight:700}
html:root body .data-table .link-btn:hover:not(:disabled){text-decoration:underline;text-underline-offset:3px}
/* STATUS CHIPS: solid and bold, so a column of them reads at a glance - green for a car you can sell
 * or a finished job, red for sold, amber for something half done, the preset's accent for everything
 * else (In Inventory, Pending...), and an outline for "not started". Every fill carries white or the
 * accent's own ink at 4.5:1 or better; --red-solid is the app's fill red that stays dark in dark. */
html:root body .data-table :is(.status,.sale-state,.forms-state,.severity){
  display:inline-flex;align-items:center;min-width:0;padding:2px 6px;
  font-size:var(--fs-micro);line-height:var(--lh-micro);font-weight:700;letter-spacing:.02em;white-space:nowrap;text-transform:uppercase;
  color:var(--accent-ink);background:var(--accent);border:1px solid transparent;
}
html:root body .data-table :is(.status.available,.forms-state.complete,.sale-state.active,.severity.low){color:#fff;background:#15803d}
html:root body .data-table :is(.status.sold,.status.error,.severity.high){color:#fff;background:var(--red-solid,#c9363e)}
html:root body .data-table :is(.status.attention,.status.warning,.status.suspended,.forms-state.partial,.sale-state.draft,.severity.medium){color:#fff;background:#b45309}
html:root body .data-table :is(.forms-state.not-started,.status.archived){color:var(--ink);background:transparent;border-color:var(--L-rule-ctl)}
/* The dark appearance paints every status with !important (styles.css), so the chips answer in kind. */
html:root[data-theme="dark"] body .data-table :is(.status,.sale-state,.forms-state,.severity){color:var(--accent-ink)!important;background:var(--accent)!important;border-color:transparent!important}
html:root[data-theme="dark"] body .data-table :is(.status.available,.forms-state.complete,.sale-state.active,.severity.low){color:#fff!important;background:#15803d!important}
html:root[data-theme="dark"] body .data-table :is(.status.sold,.status.error,.severity.high){color:#fff!important;background:var(--red-solid,#c9363e)!important}
html:root[data-theme="dark"] body .data-table :is(.status.attention,.status.warning,.status.suspended,.forms-state.partial,.sale-state.draft,.severity.medium){color:#fff!important;background:#b45309!important}
html:root[data-theme="dark"] body .data-table :is(.forms-state.not-started,.status.archived){color:var(--ink)!important;background:transparent!important;border-color:var(--L-rule-ctl)!important}
html:root body .veh-thumb{width:52px;height:36px}

/* ---- inventory: filters in one ruled bar, tools in one ruled row ---- */
html:root body .vehicle-filter-panel{padding:12px 0;border-bottom:1px solid var(--L-rule)}
html:root body .vehicle-filter-panel .filter-title-row strong{color:var(--ink);font-weight:700;letter-spacing:.06em;text-transform:uppercase;font-size:var(--fs-micro);line-height:var(--lh-micro)}
/* (The ruled, borderless tool row that stood here was replaced by boxed buttons above, 2026-10-18.) */
html:root body .vehicle-action-bar .action-divider{display:none}
html:root body .inv-views{gap:0}
html:root body .inv-view{border:1px solid var(--L-rule-ctl)}
html:root body .inv-view+.inv-view{border-left:0}
html:root body .inv-view.active{background:var(--ink);color:var(--surface-strong);border-color:var(--ink);box-shadow:none}
/* (A borderless row-button rule stood here; it also stripped the red Delete's outline. Row buttons are boxed above, 2026-10-18.) */
/* The inventory and sales tables carry eleven to fourteen columns; both are set one step smaller so
 * every column fits the page instead of scrolling the table sideways. */
html:root body :is(.vehicle-master-table,.sales-info-table){font-size:var(--fs-small)}
html:root body :is(.vehicle-master-table,.sales-info-table) :is(th,td){padding-left:6px;padding-right:6px}
html:root body :is(.vehicle-master-table,.sales-info-table) :is(th,td):first-child{padding-left:12px}
html:root body :is(.vehicle-master-table,.sales-info-table) :is(th,td):last-child{padding-right:12px}
html:root body #app .vehicle-action-bar{gap:8px}
html:root body :is(.vehicle-master-table,.sales-info-table) .link-btn{font-size:inherit;line-height:inherit}
html:root body :is(.vehicle-master-table,.sales-info-table) .mono{font-size:var(--fs-micro);line-height:var(--lh-micro)}
/* A name breaks between words, never inside one ("Tradei / n"); the VIN is set small enough to need no floor. */
html:root body .sales-info-table td:is(.sales-column-buyer,.sales-column-vehicle){overflow-wrap:normal}
html:root body .sales-info-table :is(th,td).sales-column-vin{min-width:0}
html:root body .vehicle-master-table .veh-thumb{width:44px;height:32px}
/* Fourteen uppercase headers: no tracking, so the column set fits at the Large text size too. */
html:root body .data-table.vehicle-master-table th{letter-spacing:0}
/* One step down from the table size the text setting picks (the app pins that size with !important). */
html:root body :is(.vehicle-master-table,.sales-info-table) td{font-size:var(--fs-small)!important;line-height:var(--lh-small)}
html:root body .data-table th{letter-spacing:.02em}

/* ---- dashboard: figures on a heavy rule, housekeeping as a ruled strip ---- */
html:root body .dash-tiles{gap:0;border-bottom:1px solid var(--L-rule)}
html:root body .dash-tile{padding:20px 24px 20px 0;margin:0;background:transparent;border:0;border-right:1px solid var(--L-rule);box-shadow:none}
html:root body .dash-tile+.dash-tile{padding-left:24px}
html:root body .dash-tile:last-child{border-right:0}
/* When the figures wrap (the strip is narrower than four 240px columns: a phone, a small window, a
 * big text size) a rule on the right of each tile and an indent on every tile but the first no longer
 * line up. There the figures stack on hairlines instead, all flush with the page title. */
html:root body .dash-tiles{container-type:inline-size}
@container (max-width:959px){
  html:root body .dash-tile,html:root body .dash-tile+.dash-tile{padding:16px 16px 16px 0;border-right:0;border-bottom:1px solid var(--L-rule)}
  html:root body .dash-tile:last-child{border-bottom:0}
}
html:root body .dash-tile-label{color:var(--ink);font-weight:700}
html:root body .dash-tile-value{font-size:var(--fs-display);line-height:var(--lh-display);letter-spacing:-.01em}
html:root body .dash-system{padding:0;background:transparent;border:0;box-shadow:none}
html:root body .dash-system-head{margin:0 0 8px;color:var(--ink);font-weight:700;text-transform:uppercase}
html:root body .dash-sys-row{gap:0;border:1px solid var(--L-rule)}
html:root body .dash-sys-tile{padding:12px 16px;background:var(--surface-strong);border:0;border-right:1px solid var(--L-rule);box-shadow:none}
html:root body .dash-sys-tile:last-child{border-right:0}
html:root body .dash-sys-tile.has-work{box-shadow:inset 0 3px 0 var(--amber-solid,#b45309)}
html:root body .dash-insight{padding:12px 16px;border:0;border-left:4px solid var(--amber-solid,#b45309);background:color-mix(in srgb,var(--amber-solid,#b45309) 8%,var(--surface-strong));box-shadow:none}
html:root body .dash-insight p{font-size:var(--fs-body);line-height:var(--lh-body);font-weight:600}
html:root body .dash-lot-head{padding-bottom:8px;border-bottom:var(--L-heavy)}
html:root body .dash-lot-head h2{text-transform:uppercase;letter-spacing:.02em}
html:root body .dash-car-grid{gap:0;border-left:1px solid var(--L-rule)}
html:root body .dash-car{border:0;border-right:1px solid var(--L-rule);border-bottom:1px solid var(--L-rule);box-shadow:none;background:var(--surface-strong)}
html:root body .dash-car-photo{border-radius:0}
html:root body .dash-car-sub{font-weight:700;color:var(--ink)}
html:root body .role-focus{padding:0;border:0;background:transparent;box-shadow:none}
html:root body .rf-head{padding-bottom:8px;border-bottom:var(--L-heavy)}
html:root body .rf-role{border-radius:0;font-size:var(--fs-micro);line-height:var(--lh-micro);font-weight:700;letter-spacing:.06em;text-transform:uppercase}
html:root body .rf-lead{text-transform:uppercase;letter-spacing:.02em}
html:root body .rf-signals{gap:0;background:transparent;border:0;box-shadow:none}
html:root body .rf-signal{padding:12px 0;margin:0;background:transparent;border:0;border-bottom:1px solid var(--L-rule);box-shadow:none}
html:root body .quick-card{min-height:0;padding:12px 16px;border:0;border-bottom:1px solid var(--L-rule);background:transparent;box-shadow:none}

/* ---- the sale wizard: ruled sections, a solid step rail, the total in a black box ---- */
html:root body .sale-wizard{border:1px solid var(--L-rule);box-shadow:none;background:var(--surface-strong)}
html:root body .sw-veh-card{border:1px solid var(--L-rule);border-top:var(--L-heavy);background:var(--surface-strong)}
html:root body .sw-veh-facts h1{text-transform:uppercase;letter-spacing:.02em}
html:root body .sw-head{padding-bottom:12px;border-bottom:var(--L-heavy)}
html:root body .sw-head h2{text-transform:uppercase;letter-spacing:.02em}
html:root body .sw-rail{gap:0;border:1px solid var(--L-rule)}
html:root body .sw-rail-step button{min-height:48px;border:0;border-right:1px solid var(--L-rule);background:var(--surface-strong);box-shadow:none}
html:root body .sw-rail-step:last-child button{border-right:0}
html:root body .sw-rail-step.sw-current button{background:var(--ink);color:var(--surface-strong);box-shadow:none}
html:root body .sw-rail-step.sw-current .sw-rail-num{background:var(--surface-strong);color:var(--ink)}
html:root body .sw-rail-num{border-radius:0}
html:root body .sw-money-block{padding:0 0 20px;border:0;border-bottom:1px solid var(--L-rule);background:transparent;box-shadow:none}
html:root body .sw-money-block>h3{padding-bottom:8px;margin-bottom:12px;border-bottom:var(--L-heavy);text-transform:uppercase;letter-spacing:.04em;font-size:var(--fs-body);line-height:var(--lh-body)}
html:root body .sw-otd-summary{padding:16px 20px;border:0;background:var(--ink);color:var(--surface-strong)}
html:root body .sw-otd-summary :is(dt,dd){color:var(--surface-strong)}
html:root body .sw-otd-summary dt{color:color-mix(in srgb,var(--surface-strong) 72%,var(--ink))}
html:root body .sw-otd-summary .sw-otd-total{padding-top:8px;border-top:1px solid color-mix(in srgb,var(--surface-strong) 30%,transparent)}
/* Not uppercased: text-transform changes innerText, and the walk (and anything else that reads the
 * total off the page) matches "Total out the door" as written. Measured: every sale flow failed on it. */
html:root body .sw-otd-summary .sw-otd-total dt{color:var(--surface-strong);font-size:var(--fs-lead);line-height:var(--lh-lead)}
html:root body .sw-tender{padding:8px 12px;border:1px solid var(--L-rule);background:var(--surface-strong);box-shadow:none}
/* The chosen payment tile. The rule above is more specific than styles.css [data-chosen], so it was
 * wiping the outline off the tile the dealer had just picked: the choice saved, but nothing on screen
 * said so, and "how they are paying does not work" was the report (owner, 2026-10-17). */
html:root body .sw-tender[data-chosen="1"]{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-glow)}
/* A payment tile we hold no artwork for shows its name, which takes two lines ("Cash App"); the tile
 * grows to hold them instead of cutting the second line off (measured: 8px hidden). Artwork tiles keep
 * their 22px. */
html:root body .sw-tender .pay-mark{height:auto;min-height:22px}
/* The "Example" caption on a stand-in photo is a small chip in the corner, not a band glued to three
 * edges of the tile, and the image is a block so it leaves no descender gap under itself (measured:
 * 6px of hidden overflow in every tile). */
html:root body .sw-veh-photo-stock img{display:block}
html:root body .sw-veh-photo-tag{left:8px;right:auto;bottom:8px;padding:0 6px}
html:root body .sw-choice>*{border-radius:0}
html:root body .sw-actions{padding-top:16px;border-top:var(--L-heavy)}

/* Inside the page, structure is square (a section, a strip, a table, a joined control) - including
 * shapes a component draws as a stadium or a circle - and the things a dealer reads as one object
 * (a card, a button, a field, a status, the out-the-door box) carry the one 2px corner. The #app
 * id is what lets both answer the component stylesheets, which round far more. */
html:root body #app :is(div,section,dl,details,summary,label,span,button,a,article,aside,fieldset,table,textarea,select,input:not([type=checkbox]):not([type=radio]),img){border-radius:0}
html:root body #app :is(.button,.panel,.info-card,.modal-card,input:not([type=checkbox]):not([type=radio]),select,textarea,.sw-veh-card,.sale-wizard,.sw-otd-summary,.sw-tender,.sw-choice>*,.sw-outside-finance,.notice,.dash-insight,.status,.sale-state,.forms-state,.severity,.veh-thumb){border-radius:var(--L-radius)}
html:root body .sw-outside-finance{border:1px solid var(--L-rule);background:var(--surface-strong)}
html:root body .sw-leave{border:0;background:transparent;box-shadow:none;text-decoration:underline}

/* Marketing's car list: a long listing title ("2016 AUDI Q5 2.0T PREMIUM SPORT UTILITY 4D") wraps
 * onto a second line instead of being cut off with no way to read the rest (the walk measured it
 * 106px wider than its 245px column at 1180 and 1440). */
html:root body .mk-row-main strong{white-space:normal;text-overflow:clip;overflow-wrap:normal}

/* ---------------------------------------------------------------- text boxes, one system (owner, 2026-10-07)
 * "Some elements of the UI feel basic": measured on the running app, the same kind of box came in
 * three paddings (6px 8px, 8px 10px, 8px 12px), placeholder text sat on the face at the same weight
 * as a value, and a text area was a different object from the input beside it. Geometry lives here;
 * the edge, the focus ring and the disabled face live in controls.css with the other control colours.
 * Height stays var(--control-height), which every text size already sets on a whole pixel. */
html:root body #app :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]),select){
  padding-left:12px;padding-right:12px;
}
html:root body #app select{padding-right:32px}
html:root body #app textarea{
  min-height:96px;padding:10px 12px;resize:vertical;
  font-size:var(--fs-body);line-height:var(--lh-body);
}
html:root body #app :is(input[type=checkbox],input[type=radio]){accent-color:var(--accent);width:18px;height:18px}
/* Help under a box, and the box's own error, in one voice each. */
html:root body #app :is(.field-help,.wz-field small,.crm-mailbox-help){font-size:var(--fs-small);line-height:var(--lh-small);font-weight:400}
html:root body #app :is(.field-error,.wz-field .field-error){display:block;margin-top:4px;font-size:var(--fs-small);line-height:var(--lh-small);font-weight:600;color:var(--L-danger-ink)}
/* The setup wizard's boxes read as label, box, help - stacked, with the label tied to the box. */
html:root body #app .wz-field{gap:6px}
html:root body #app .wz-field>label{font-size:var(--fs-small);line-height:var(--lh-small);font-weight:600;color:var(--ink)}
html:root body #app .wz-grid{gap:16px 20px}

/* A form nobody has typed into yet: a quiet prompt, not an error count (staging walk #11). */
html:root body #app .validation-summary.pending{color:var(--muted);background:transparent;border:1px solid var(--L-rule)}
html:root body #app .expense-validation.pending{color:var(--muted);background:transparent;border:1px dashed var(--L-rule-ctl)}

/* Empty states: a dashed hairline box with the message centred, the same everywhere. */
html:root body #app :is(.empty-state,.empty-inline){
  padding:24px 20px;text-align:center;color:var(--muted);
  background:transparent;border:1px dashed var(--L-rule-ctl);
  font-size:var(--fs-body);line-height:var(--lh-body);
}
html:root body #app .empty-tab h2{font-size:var(--fs-h3);line-height:var(--lh-h3);font-weight:700;color:var(--ink)}

/* ---------------------------------------------------------------- the sign-in panel
 * The fields, the button and the recovery link sat as three different widths with the main action
 * the smallest thing on the panel. Now: the AutoSteward mark over the title, full-width boxes with
 * their labels above them, one full-width Sign In, and the recovery link quietly underneath. */
html:root body .security-gate-card{gap:16px}
html:root body .security-gate-card>*{max-width:420px}
html:root body .security-brand::before{
  content:"";display:block;width:44px;height:44px;margin-bottom:20px;
  background:url("favicon.svg") center/contain no-repeat;
}
html:root body .security-brand p{margin:8px 0 0;font-size:var(--fs-body);line-height:var(--lh-body);color:var(--muted)}
html:root body .security-gate-card>label{display:grid;gap:6px;font-size:var(--fs-small);line-height:var(--lh-small);font-weight:600;color:var(--ink)}
html:root body .security-gate-card>label :is(input,.pw-field){width:100%}
html:root body .security-gate-card .modal-actions{display:grid;grid-template-columns:1fr;gap:12px;margin-top:4px;border:0;padding:0}
html:root body .security-gate-card .modal-actions .button.primary{order:-1;width:100%;min-height:var(--control-height)}
html:root body .security-gate-card .modal-actions .link-btn{justify-self:start}
html:root body .security-gate-card .modal-actions .button:not(.primary){width:100%}
html:root body .security-gate-footnote{font-size:var(--fs-small);line-height:var(--lh-small)}

/* Show / Hide on a password box (web/password-toggle.js). The button sits inside the box's right
 * edge, so the box keeps its full width and the text never runs under the button. */
html:root body .pw-field{position:relative;display:block}
html:root body #app .pw-field>input{width:100%;padding-right:72px}
html:root body .pw-toggle{
  position:absolute;top:50%;right:6px;transform:translateY(-50%);
  min-height:28px;padding:0 10px;border:0;background:transparent;cursor:pointer;
  font-size:var(--fs-small);line-height:var(--lh-small);font-weight:600;color:var(--accent);
  border-radius:var(--L-ctl-r);
}

/* ---------------------------------------------------------------- elevation pass (2026-10-14)
 * Measured on the running app at 1440px before any rule below existed:
 *   type       every design asked for Inter, which we do not ship and almost no PC has, so every
 *              dealer read the app in plain Segoe UI. design-themes.css now asks for Segoe UI
 *              Variable (ships with Windows 11); --font-display is its cut for large sizes.
 *   headers    table header labels were full ink at the same weight as the money under them, and
 *              the one-line labels floated in the middle of a two-line row. A header is a caption:
 *              smaller, quieter, sitting on its rule.
 *   inventory  the table was 1,225px inside a 1,102px panel, so Status scrolled out of sight: a
 *              no-wrap on Trim held "2.0T PREMIUM SPORT UTILITY 4D" on one line, 204px wide.
 *   custom     the selected "Custom" date button on Reports was white text on a white button.
 *   forms      on Add / Edit Vehicle the label sat in an 85px column beside its box, so "Confirmed
 *              Trim", "Vehicle Source", "Purchase Date" and five more broke onto two lines.
 *   reports    the report sheet was set in Courier New, a typewriter face, figures and all.
 *   tabs       the vehicle tab strip carried a vertical scrollbar for a 1px overhang. */

/* Titles and the big figures take the Display cut: drawn tighter for large sizes, so capitals read
 * as one word instead of a row of letters. */
html:root{--L-title-track:.03em}
html:root body :is(.page-heading,.dashboard-heading) h1,
html:root body :is(.dash-tile-value,.sw-veh-facts h1,.dash-lot-head h2){font-family:var(--font-display)}

/* Table headers: a caption over the column, not a second row of data. */
html:root body .data-table th{
  font-size:var(--fs-micro)!important;line-height:var(--lh-micro);font-weight:600;letter-spacing:.04em;
  color:color-mix(in srgb,var(--ink) 72%,transparent);vertical-align:bottom;text-wrap:balance;
}
html:root body .data-table.vehicle-master-table th{letter-spacing:.02em}
/* Every figure in a table lines up down its column, not just the ones marked as money. */
html:root body .data-table td{font-variant-numeric:tabular-nums}

/* Inventory: a long trim wraps between words like the other text columns, so the table fits - but
 * never past two lines (squeezed to the last pixel it stood four words tall). The 2px of cell padding
 * each side gives back pays for the room. */
html:root body .inventory-width-profile td.vehicle-column-trim{white-space:normal;overflow-wrap:normal;min-width:8.5em}
html:root body .vehicle-master-table :is(th,td):not(:first-child):not(:last-child){padding-left:4px;padding-right:4px}

/* At the two largest text sizes the inventory still ran 46px (Large) and 162px (Extra large) past its
 * panel. Measured, the width went to: a colour held on one line ("Magnetic Gray", 98px), status chips
 * carrying letter-spacing, a 32px page margin that does not shrink as the sidebar grows, and a VIN
 * set with extra tracking. A colour now wraps between words like the trim, the chips drop the
 * tracking, and the big sizes take a 24px margin. */
html:root body .inventory-width-profile td.vehicle-column-color{white-space:normal;overflow-wrap:normal}
html:root body .vehicle-master-table :is(.status,.sale-state,.forms-state,.severity){letter-spacing:0;padding-left:4px;padding-right:4px}
html:root body .vehicle-master-table .vin-cell{letter-spacing:0!important}
html:root:is([data-font-scale="large"],[data-font-scale="extra-large"]){--L-gutter:24px}
/* COMPACT TABLES WHEN THE ROOM RUNS OUT - decided by the width the table actually has, not by the
 * text setting. With every column at its narrowest the inventory still ran past its panel at Extra
 * large (102px at 1440 wide) and on a 1366px laptop at Standard, Large and Extra large (8, 65, 72px).
 * Below 1,120px of panel the two wide tables set their cells one step smaller and give a trim a
 * little less room, instead of hiding the photos or breaking dates over two lines. At Standard that
 * is 12px; at Extra large it is 14px, still above the 13px of a Standard table. */
html:root body :is(.vehicle-table-panel,.sales-table-wrap){container-type:inline-size}
@container (max-width:1119px){
  html:root body :is(.vehicle-master-table,.sales-info-table) td{font-size:var(--fs-micro)!important;line-height:var(--lh-micro)}
  html:root body .inventory-width-profile td.vehicle-column-trim{min-width:7em}
  html:root body .vehicle-master-table :is(th,td):first-child{padding-left:6px}
}
/* Second step, under 1,060px of panel (a 1366px laptop at Large or Extra large): a date may break
 * after its comma, a trim gets 6em, the cell padding drops to 2px a side (4px at the right edge, which
 * has no border to crowd) and the photo thumbnail to 36px. */
@container (max-width:1059px){
  html:root body .inventory-width-profile td.vehicle-column-purchase{white-space:normal}
  html:root body .inventory-width-profile td.vehicle-column-trim{min-width:6em}
  html:root body .sales-info-table td:is(.sales-column-date){white-space:normal}
  html:root body :is(.vehicle-master-table,.sales-info-table) :is(th,td):not(:first-child):not(:last-child){padding-left:2px;padding-right:2px}
  html:root body .vehicle-master-table .veh-thumb{width:36px;height:26px}
  html:root body :is(.vehicle-master-table,.sales-info-table) :is(th,td):last-child{padding-right:4px}
}

/* The selected date preset: the same solid ink block as the selected inventory view. */
html:root body .report-date-presets .button.active:not(.primary):not(.danger){color:var(--surface-strong);background:var(--ink);border-color:var(--ink)}

/* Add / Edit Vehicle: the label over its box, so no label breaks and every box gets the full cell. */
html:root body .vehicle-field{grid-template-columns:minmax(0,1fr);align-items:start;gap:4px}
html:root body .vehicle-field small{grid-column:1}

/* The vehicle tabs were one pixel taller than their strip, which hung a vertical scrollbar on it. */
html:root body .vehicle-tabs{overflow-y:hidden}

/* The report sheet in the app's own face, with even-width figures. Printing keeps its own size. */
html:root body .formal-report-sheet{font-family:var(--font-ui);font-variant-numeric:tabular-nums}
html:root body .formal-report-sheet :is(.formal-report-meta,.report-identity-grid) strong{font-weight:600;letter-spacing:.04em;color:var(--muted)}

/* THE CAR PAGE'S GENERAL TAB IN TWO COLUMNS (owner, 7 Nov 2026, with a mock-up: "i like this layout lets work it out with
 * how we have the car page now"). Vehicle and Pricing on the left, Market and Ready to list on the right (app.js generalTab,
 * web/vehicle-overview.js). Below 1180px the right column drops under the left as three even cards, below 760px one. Sizes
 * from the type scale only, weights 400-700, even-pixel spacing (CLAUDE.md render rules). */
html:root body .veh-overview{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start;margin-bottom:16px}
html:root body .veh-overview.veh-overview-new{grid-template-columns:minmax(0,1fr)}
html:root body :is(.veh-overview-main,.veh-overview-side){display:grid;gap:16px;align-content:start;min-width:0}
html:root body .veh-overview .editor-section{margin-bottom:0}
/* Grid children: a long word or a wide box must not push its card past the column. */
html:root body :is(.veh-card,.veh-side-card,.veh-market-card,.veh-ready-card){min-width:0}
html:root body .veh-check-label{min-width:0;overflow-wrap:anywhere}
html:root body .veh-overview .vehicle-form-grid.veh-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
html:root body .veh-overview .vehicle-form-grid.veh-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
html:root body .veh-overview .veh-card-pricing .vehicle-form-grid + .vehicle-form-grid{padding-top:0}
html:root body .veh-vin-row{display:grid;gap:8px;padding:12px;border-top:1px solid var(--line)}
html:root body .veh-vin-row .inline-tool{margin:0;padding:0}
html:root body .veh-subhead{margin:0;color:var(--ink);font-size:var(--fs-small);line-height:var(--lh-small);font-weight:600}
html:root body .veh-subnote{margin:0;color:var(--muted);font-size:var(--fs-small);line-height:var(--lh-small)}
html:root body .veh-card-pricing > .veh-subnote{padding:0 12px 12px}
html:root body .veh-price-row [data-draft-field="askingPrice"]{font-size:var(--fs-lead);line-height:var(--lh-lead);font-weight:700;font-variant-numeric:tabular-nums}
html:root body .veh-figures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0;padding:0 12px 8px}
html:root body .veh-figure{min-width:0;padding:10px 12px;border:1px solid var(--line);border-radius:var(--L-radius);background:var(--surface-soft,var(--soft))}
html:root body .veh-figure dt{color:var(--muted);font-size:var(--fs-small);line-height:var(--lh-small)}
html:root body .veh-figure dd{margin:2px 0 0;color:var(--ink);font-size:var(--fs-body);line-height:var(--lh-body);font-weight:600;font-variant-numeric:tabular-nums}
html:root body .veh-figure .veh-figure-none{color:var(--muted);font-size:var(--fs-small);line-height:var(--lh-small);font-weight:400}
html:root body .veh-card-head{flex-wrap:nowrap}
html:root body .veh-badge{flex:0 0 auto;padding:2px 8px;border-radius:var(--L-radius);background:var(--surface-soft,var(--soft));color:var(--muted);font-size:var(--fs-micro);line-height:var(--lh-micro);font-weight:600;white-space:nowrap}
html:root body .veh-badge.veh-badge-fair{background:color-mix(in srgb,var(--pui-ok,#0a6640) 16%,var(--surface));color:var(--pui-ok,#0a6640)}
html:root body :is(.veh-badge.veh-badge-high,.veh-badge.veh-badge-count){background:color-mix(in srgb,var(--pui-warn,#9a6700) 16%,var(--surface));color:var(--pui-warn,#9a6700)}
html:root body .veh-badge.veh-badge-low{background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent)}
html:root body .veh-card-body{display:grid;gap:10px;padding:12px 14px}
html:root body .veh-market-range{display:grid;gap:4px}
html:root body .veh-market-ends{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:var(--fs-micro);line-height:var(--lh-micro)}
html:root body .veh-market-ends.veh-market-figures strong{color:var(--ink);font-size:var(--fs-small);line-height:var(--lh-small);font-weight:600;font-variant-numeric:tabular-nums}
html:root body .veh-market-bar{position:relative;height:8px;margin:6px 0;border-radius:0;background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 30%,var(--surface)),var(--accent))}
html:root body .veh-market-marker{position:absolute;top:-6px;width:4px;height:20px;margin-left:-2px;border-radius:2px;background:var(--ink)}
html:root body .veh-market-text{margin:0;color:var(--ink);font-size:var(--fs-small);line-height:var(--lh-small)}
html:root body .veh-market-note{margin:0;color:var(--muted);font-size:var(--fs-micro);line-height:var(--lh-micro)}
html:root body .veh-card-actions{display:flex;justify-content:flex-end}
html:root body .veh-checks{margin:0;padding:0;list-style:none}
html:root body .veh-check{display:flex;align-items:flex-start;gap:10px;padding:10px 14px;border-bottom:1px solid var(--line)}
html:root body .veh-checks .veh-check:last-child{border-bottom:0}
html:root body .veh-check-mark{position:relative;flex:0 0 auto;box-sizing:border-box;width:18px;height:18px;border:2px solid var(--pui-warn,#9a6700);border-radius:var(--L-radius)}
html:root body .veh-check-done .veh-check-mark{border-color:var(--pui-ok,#0a6640);background:var(--pui-ok,#0a6640)}
html:root body .veh-check-done .veh-check-mark::after{content:"";position:absolute;left:4px;top:1px;width:4px;height:8px;border:solid var(--surface);border-width:0 2px 2px 0;transform:rotate(45deg)}
html:root body .veh-check-unknown .veh-check-mark{border-style:dashed;border-color:var(--muted)}
html:root body .veh-check-text{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;min-width:0;color:var(--ink);font-size:var(--fs-small);line-height:var(--lh-small)}
html:root body .veh-check-text .link-btn{font-size:var(--fs-small);line-height:var(--lh-small)}
html:root body .veh-check-group{margin:0;padding:10px 14px 4px;border-top:1px solid var(--line);color:var(--muted);font-size:var(--fs-micro);line-height:var(--lh-micro);font-weight:600;letter-spacing:.04em;text-transform:uppercase}
@media (max-width:1180px){
  html:root body .veh-overview{grid-template-columns:minmax(0,1fr)}
  /* Photos, Market and Ready to list: three across, never two and a lone one (owner: always symmetrical). */
  html:root body .veh-overview-side{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
}
@media (max-width:760px){
  html:root body .veh-overview-side{grid-template-columns:minmax(0,1fr)}
  html:root body .veh-overview .vehicle-form-grid:is(.veh-grid-3,.veh-grid-4){grid-template-columns:repeat(2,minmax(0,1fr))}
  html:root body .veh-figures{grid-template-columns:minmax(0,1fr)}
}

/* Parts results: how many came back, and Clear for when the dealer is done looking (owner, 7 Nov 2026). */
html:root body .parts-results-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:6px 0 0;color:var(--muted);font-size:var(--fs-small);line-height:var(--lh-small)}

/* The car's main photo at the top of the General tab's right column (owner's two-column layout, 7 Nov 2026). */
html:root body .veh-photo-card .vehicle-photo-hero.veh-side-photo{margin:0;padding:0;border:0;cursor:zoom-in}
html:root body .veh-photo-card .veh-side-photo img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
html:root body .veh-photo-card .vehicle-photo-media{margin:0;padding:0}
html:root body .veh-photo-card .photo-empty{margin:0;padding:12px 14px;color:var(--muted);font-size:var(--fs-small);line-height:var(--lh-small)}
html:root body .veh-check{align-items:center}
html:root body .veh-check-text .link-btn{padding:0;min-height:0}

/* UNDER THE CAR PAGE'S TWO COLUMNS, ONE EVEN ROW (UI sweep, 2026-11-07; owner: "keep pages in all app not long",
   "always make evrything symmetrical"). Who is asking about this car, Required / Important Fields and the Danger Zone
   were three full-width bands: the General tab measured 2.2 screens at 1440x900. Three cards of one height, side by side,
   the same 16px gap as the columns above; one per line on a narrow window. The Danger Zone's button sits at the foot of
   its card. A new car has only the required fields, so that card takes the row. */
html:root body .veh-below{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch;margin:0 0 16px}
html:root body .veh-below.veh-below-new{grid-template-columns:minmax(0,1fr)}
html:root body .veh-below>*{margin:0;min-width:0;height:100%}
html:root body .veh-below .section-title{flex-wrap:wrap;gap:8px}
html:root body .veh-below .veh-required{display:flex;flex-direction:column}
html:root body .veh-below .danger-zone{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:12px}
html:root body .veh-below .danger-zone>div{display:flex;flex-direction:column;gap:4px}
@media (max-width:899px){html:root body .veh-below{grid-template-columns:minmax(0,1fr)}}

/* THE DASHBOARD'S LAST TWO BLOCKS SIDE BY SIDE (UI sweep, 2026-11-07; owner: "keep pages in all app not long"). What
   needs you (this role's focus list) and Recent activity were stacked full width, each about 410px: the dashboard
   measured 2.5 screens at 1440x900. When both are on the page they share one row as two equal columns of one height;
   everything above keeps the full width. A role that has only one of them keeps it full width. Phones stack. */
@media (min-width:1100px){
  html:root body main.parity-dashboard:has(>.role-focus):has(>.dash-activity-only){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px;align-items:stretch}
  html:root body main.parity-dashboard:has(>.role-focus):has(>.dash-activity-only)>*{grid-column:1/-1;min-width:0}
  html:root body main.parity-dashboard:has(>.role-focus):has(>.dash-activity-only)>.role-focus{grid-column:1;margin:0 0 16px}
  html:root body main.parity-dashboard:has(>.role-focus):has(>.dash-activity-only)>.dash-activity-only{grid-column:2;margin:0 0 16px}
  html:root body main.parity-dashboard:has(>.role-focus):has(>.dash-activity-only)>.dash-activity-only .activity-panel{height:100%}
  /* The two read as a pair: the same panel frame, and a table row on one line (a wrapped name made each row two). */
  html:root body main.parity-dashboard:has(>.role-focus):has(>.dash-activity-only)>.role-focus{padding:12px 16px;border:1px solid var(--line);border-radius:var(--L-radius);background:var(--surface)}
  html:root body main.parity-dashboard:has(>.role-focus):has(>.dash-activity-only)>.dash-activity-only :is(th,td){padding:8px 12px}
  html:root body main.parity-dashboard:has(>.role-focus):has(>.dash-activity-only)>.dash-activity-only td:nth-child(-n+3){white-space:nowrap}
}

/* THE DASHBOARD IN TWO SCREENS (UI sweep part 3, 2026-11-07; owner: "keep pages in all app not long"). After the pair
   below, it still measured 2.2 screens at 1440x900. Four quieter savings, nothing removed:
   - Quick actions are ONE row of equal buttons, the icon beside the label (they were icon-over-label tiles, and auto-fit
     put six on a row and the seventh alone at 1280);
   - the month sparklines in the figure tiles are flatter;
   - the lot cards' photos are 2:1 instead of 16:10 (still a fixed window, object-fit:cover);
   - the What needs you rows are tighter, and an activity row stays one line (the event is cut with an ellipsis; the full
     log is one click away). */
html:root body .dash-quick-wrap{margin:0 0 12px}
html:root body .dash-quick-row{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
html:root body .dash-quick{flex-direction:row;gap:8px;min-height:48px;padding:6px 10px}
html:root body .dash-spark{height:28px}
html:root body .dash-spark-wrap{margin:6px 0 0}
html:root body .dash-tile{padding-top:14px;padding-bottom:14px}
html:root body .dash-car-photo{aspect-ratio:2/1}
html:root body .dash-sys-tile{padding-top:8px;padding-bottom:8px}
html:root body .dash-insight{padding-top:8px;padding-bottom:8px}
html:root body .dash-lot-head{margin-bottom:8px}
html:root body main.parity-dashboard .rf-signal{padding:8px 0}
html:root body main.parity-dashboard .rf-signal :is(h3,p){margin-top:0;margin-bottom:2px}
html:root body main.parity-dashboard .dash-activity-only td:last-child{max-width:0;width:34%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* A narrow window: the seven quick actions wrap, centred, so the last row is never one button alone on the left. */
@media (max-width:899px){
  html:root body .dash-quick-row{display:flex;flex-wrap:wrap;justify-content:center}
  html:root body .dash-quick{flex:0 0 calc((100% - 20px) / 3)}
}

/* PRICING ENDS EVEN FOR EVERY ROLE (UI sweep part 4, 2026-11-07; owner: "always make evrything symmetrical"). For a role
   that may not change New / Used or MSRP, the note saying so sat in the grid as if it were a field, which pushed Status
   onto a row of its own: Asking | New/Used | MSRP, then the note, then Status alone. The note now goes last, across the
   whole row, so the four boxes stay one full row. */
html:root body .veh-price-row>.vehicle-terms-note{grid-column:1/-1;order:9;margin:0}
/* The row under it (Purchase Date, Vehicle Source, Vendor / Seller) is three boxes on a four-column grid: Vendor takes the
   last two columns, so that row is full too and lines up with the one above. */
html:root body .veh-card-pricing .veh-grid-4:not(.veh-price-row)>.vehicle-field:last-child:nth-child(3){grid-column:span 2}

/* "Your AutoSteward server is starting up" (web/server-waiting.js; owner, 7 Nov 2026: the app looked frozen after a quiet
 * spell while a hosted server woke). One plain line, bottom centre, above everything, gone as soon as the server answers. */
html:root body .server-waiting-notice{position:fixed;left:50%;bottom:24px;z-index:2147483000;transform:translateX(-50%);max-width:min(640px,calc(100vw - 32px));padding:12px 18px;border:2px solid var(--ink);border-radius:var(--L-radius);background:var(--surface);color:var(--ink);font-size:var(--fs-small);line-height:var(--lh-small);font-weight:600}

/* A TAB'S PAGE IS ONE FRAMED CARD JOINED TO ITS TAB BAR (owner, 7 Nov 2026, on the sale's Paperwork tabs: "the three tabs
 * just keep stacking their pages on top of each other no separation looks sloppy"). Measured: only the chosen panel shows,
 * but it had no frame, no padding and a 16px gap under the bar, so its sections read as loose boxes piling up under it.
 * The same for the car page's sub-tabs (web/in-page-tabs.js). Sections inside are spaced by the grid, not their own margins. */
html:root body :is(.sw-paper-tabs,.ipt-tabs){margin-bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0}
html:root body :is(.sw-paper-panel,.ipt-panel):not([hidden]){display:grid;gap:16px;align-content:start;margin:0 0 16px;padding:16px;border:1px solid var(--line);border-top:0;background:color-mix(in srgb,var(--surface) 72%,var(--canvas,var(--surface)))}
html:root body :is(.sw-paper-panel,.ipt-panel) > *{margin-top:0;margin-bottom:0}
/* Bold words inside a step or a sentence stay in the sentence. .sw-forms strong is a section title (display:block), and
 * it was turning "Orders & payments -> Invoices -> Recurring series" into one word per line (the Square steps). */
html:root body .sw-forms :is(li,p) :is(strong,b){display:inline;margin:0;font-size:inherit;line-height:inherit}

/* Oil, tires & wheels (web/vehicle-specs.js, owner 8 Nov 2026). Two cards of equal width, side by side; one column on a
 * narrow screen. The type scale and colours are the app's own tokens. */
.vehicle-specs-section .vehicle-specs{margin-top:12px}
.vehicle-specs .vs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.vehicle-specs .vs-card{display:grid;align-content:start;gap:10px;padding:18px 20px;border:1px solid var(--line);border-radius:var(--L-radius);background:var(--surface)}
.vehicle-specs .vs-card h3{margin:0;color:var(--navy);font-size:var(--fs-h3);line-height:var(--lh-h3)}
.vehicle-specs .vs-engine{margin:0;color:var(--muted);font-size:var(--fs-body);line-height:var(--lh-body)}
.vehicle-specs .vs-code{display:inline-flex;margin-left:6px;padding:0 8px;border-radius:var(--L-radius);color:var(--chip-fg);background:var(--chip-bg);font-size:var(--fs-small);line-height:var(--lh-small);font-weight:600}
.vehicle-specs .vs-big{margin:0;color:var(--ink);font-size:var(--fs-h2);line-height:var(--lh-h2);font-weight:700}
.vehicle-specs .vs-big span{color:var(--muted);font-size:var(--fs-lead);line-height:var(--lh-lead);font-weight:600}
.vehicle-specs .vs-big.vs-unknown{color:var(--muted);font-size:var(--fs-lead);line-height:var(--lh-lead)}
.vehicle-specs .vs-facts{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;margin:0}
.vehicle-specs .vs-facts dt{color:var(--muted);font-size:var(--fs-small);line-height:var(--lh-small);font-weight:600;text-transform:uppercase;letter-spacing:.04em}
.vehicle-specs .vs-facts dd{margin:0;font-size:var(--fs-body);line-height:var(--lh-body)}
.vehicle-specs .vs-note{margin:0;color:var(--muted);font-size:var(--fs-small);line-height:var(--lh-small)}
.vehicle-specs .vs-note a{color:var(--blue);text-decoration:underline}
.vehicle-specs .vs-options{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.vehicle-specs .vs-options li{display:grid;gap:2px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--L-ctl-r)}
.vehicle-specs .vs-options strong{font-size:var(--fs-body);line-height:var(--lh-body);font-weight:700}
.vehicle-specs .vs-options span{color:var(--muted);font-size:var(--fs-small);line-height:var(--lh-small)}
.vehicle-specs .vs-trims{width:100%;border-collapse:collapse;font-size:var(--fs-small);line-height:var(--lh-small)}
.vehicle-specs .vs-trims :is(th,td){padding:6px 8px;border-bottom:1px solid var(--line);text-align:left;font-weight:400}
.vehicle-specs .vs-trims thead th,.vehicle-specs .vs-trims tbody th{font-weight:600}
.vehicle-specs .vs-form{display:grid;gap:10px}
.vehicle-specs .vs-form label{display:grid;gap:4px;font-size:var(--fs-small);line-height:var(--lh-small);font-weight:600}
.vehicle-specs .vs-form input{min-height:36px;padding:0 10px;border:1px solid var(--line);border-radius:var(--L-ctl-r);font-size:var(--fs-body);line-height:var(--lh-body)}
.vehicle-specs .vs-actions{display:flex;gap:8px;margin:0}
.vehicle-specs .vs-error{margin:0;color:var(--red);font-size:var(--fs-small);line-height:var(--lh-small)}
.vehicle-specs .vs-credit{margin:12px 0 0;color:var(--muted);font-size:var(--fs-small);line-height:var(--lh-small)}
@media(max-width:900px){.vehicle-specs .vs-grid{grid-template-columns:1fr}}
