/* ===== 00-tokens.css ===== */
/* Better Lansing Mechanics — design tokens.
   Official identity (2026-10-24): black navigation and footer, metallic gold accents and actions, white content
   surfaces, photography in dark bands. Components use the shared tokens; content areas remap them to light values. */
@font-face { font-family: 'BLM Text'; src: url('/assets/fonts/Inter-Regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'BLM Text'; src: url('/assets/fonts/Inter-Medium.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'BLM Text'; src: url('/assets/fonts/Inter-SemiBold.woff') format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'BLM Text'; src: url('/assets/fonts/InterDisplay-Bold.woff') format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'BLM Text'; src: url('/assets/fonts/InterDisplay-ExtraBold.woff') format('woff'); font-weight: 800; font-display: swap; }
/* Condensed display face derived from Inter Display (SIL OFL) — scripts/assets/make-condensed-font.py */
@font-face { font-family: 'BLM Condensed'; src: url('/assets/fonts/BLMCondensed-SemiBold.woff') format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'BLM Condensed'; src: url('/assets/fonts/BLMCondensed-ExtraBold.woff') format('woff'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'BLM Condensed'; src: url('/assets/fonts/BLMCondensed-Black.woff') format('woff'); font-weight: 900; font-display: swap; }

:root {
  /* ── Official brand (2026-10-24): black, metallic gold, white ──
     Gold was sampled from the warm light in the official logo (median #CC8E50) and moved toward the proposed
     #C9A44C: #C99A4E. Black text on it is 7.8:1. On white surfaces gold TEXT uses --gold (remapped to #7A5A1A,
     6.4:1); gold FILLS (buttons, badges) always use --gold-fill with --on-gold text. */
  --brand-black: #080808;
  --brand-gold: #C99A4E;
  --brand-white: #FFFFFF;
  --brand-gray-dark: #1C1C1C;
  --brand-gray-light: #F5F5F5;
  --gold-fill: #C99A4E;      /* button / badge backgrounds (theme-independent) */
  --gold-fill-hover: #D4AA5E;
  --on-gold: #080808;        /* text on gold fills */

  /* Dark theme values (header, footer, navigation, photo bands). Content areas remap these below. */
  --black: #080808;          /* surface */
  --black-2: #111111;        /* secondary surface: header bands, sidebars */
  --charcoal: #1C1C1C;       /* card */
  --graphite: #242424;       /* raised / hover */
  --line: #2E2E2E;           /* borders */
  --line-soft: #202020;
  --gold: #C99A4E;           /* gold accents and text on dark */
  --gold-soft: #D4AA5E;
  --gold-metal: #B98C45;     /* rules, icons, outlines */
  --gold-ink: #7A5A1A;       /* gold text on light surfaces */
  --gold-wash: rgba(201, 154, 78, 0.12);
  --white: #FFFFFF;          /* strongest text on dark */
  --text: #ECECEC;
  --muted: #B4B4B4;
  --dim: #9A9A9A;
  --light-card: #F5F5F5;
  --light-ink: #1C1C1C;
  --ok: #3FB56E;  --ok-ink: #062612;
  --warn: #C99A4E; --warn-ink: #231800;
  --bad: #D93F44;  --bad-ink: #FFFFFF;
  --info: #3B82F6; --info-ink: #FFFFFF;
  --violet: #7C5CE0; --violet-ink: #FFFFFF;
  --focus: #C99A4E;
  --btn-dark-bg: rgba(8, 8, 8, .55);
  --btn-dark-fg: #FFFFFF;
  --btn-dark-bd: rgba(255, 255, 255, .55);
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --font: 'BLM Text', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'BLM Condensed', 'Arial Narrow', 'BLM Text', ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

/* Content surfaces are white / near-white. The same token names are remapped so every component follows. */
main, dialog {
  --black: #FFFFFF;
  --black-2: #F5F5F5;
  --charcoal: #FFFFFF;
  --graphite: #F0F0EE;
  --line: #D9D9D6;
  --line-soft: #E8E8E5;
  --gold: #7A5A1A;
  --gold-soft: #8A6420;
  --gold-metal: #A07834;
  --gold-wash: rgba(201, 154, 78, 0.14);
  --white: #080808;
  --text: #1C1C1C;
  --muted: #4F535A;
  --dim: #5C6067;
  --light-card: #F5F5F5;
  --light-ink: #1C1C1C;
  --ok: #1E7A43;
  --bad: #B3261E;
  --focus: #7A5A1A;
  --btn-dark-bg: #080808;
  --btn-dark-fg: #FFFFFF;
  --btn-dark-bd: #080808;
  color-scheme: light;
  color: var(--text);
}
main { background: var(--black); display: flow-root; /* contain child margins so the page background never shows through */ }
body { background: var(--brand-black); }

/* Dark islands inside content: photography bands, navigation sidebars, brand banners. */
.theme-dark, .hero, .hero2, .svc-hero, .page-head-photo, .page-head-brand, .promo-band, .svc-card, .veh-card, .fleet-card, .pt-banner, .pt-vtile, .ops-hero, .ops-vhero-img, .ops-avatar, .app-side, .chat-panel {
  --black: #080808;
  --black-2: #111111;
  --charcoal: #1C1C1C;
  --graphite: #242424;
  --line: #2E2E2E;
  --line-soft: #202020;
  --gold: #C99A4E;
  --gold-soft: #D4AA5E;
  --gold-metal: #B98C45;
  --gold-wash: rgba(201, 154, 78, 0.12);
  --white: #FFFFFF;
  --text: #ECECEC;
  --muted: #B4B4B4;
  --dim: #9A9A9A;
  --ok: #3FB56E;
  --bad: #D93F44;
  --focus: #C99A4E;
  --btn-dark-bg: rgba(8, 8, 8, .55);
  --btn-dark-fg: #FFFFFF;
  --btn-dark-bd: rgba(255, 255, 255, .55);
  color-scheme: dark;
  color: var(--text);
}
/* Photo bands keep a black base behind their imagery (the page itself is white now). */
.theme-dark, .hero, .hero2, .svc-hero, .page-head-photo, .page-head-brand, .promo-band { background-color: #080808; }

/* ===== 10-base.css ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--black); color: var(--text); font: 400 16px/1.6 var(--font); font-feature-settings: 'cv11', 'ss01'; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold-fill); color: var(--on-gold); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--gold-fill); color: var(--on-gold); padding: 10px 16px; z-index: 100; font-weight: 600; border-radius: var(--radius-s); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.tnum { font-variant-numeric: tabular-nums; }

/* ── Type ── */
h1, h2, h3, h4 { font-family: var(--display); color: var(--white); margin: 0 0 .5em; line-height: 1.05; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 58ch; }
.kicker { color: var(--gold); font-weight: 600; font-size: .95rem; margin-bottom: .75rem; display: block; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ── Buttons ── */
.btn { --bg: transparent; --fg: var(--white); --bd: var(--line); display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .75rem 1.35rem; border-radius: var(--radius-s); border: 1px solid var(--bd); background: var(--bg); color: var(--fg); font: 600 1rem/1.1 var(--font); text-decoration: none; cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); white-space: nowrap; }
.btn:hover { border-color: var(--gold); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn-gold { --bg: var(--gold-fill); --fg: var(--on-gold); --bd: var(--gold-fill); }
.btn-gold:hover { --bg: var(--gold-fill-hover); color: var(--on-gold); border-color: var(--gold-soft); }
.btn-quiet { --bd: transparent; padding-inline: .5rem; color: var(--muted); }
.btn-danger { --bd: #5a2323; color: #ffb4b4; }
.btn-danger:hover { border-color: var(--bad); }
.btn-sm { min-height: 36px; padding: .45rem .85rem; font-size: .9rem; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(8, 8, 8, .88); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line-soft); }
.demo-ribbon { background: var(--gold-fill); color: var(--on-gold); text-align: center; font-size: .85rem; font-weight: 600; padding: 6px 12px; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--white); flex-shrink: 0; }
.brand:hover { color: var(--white); }
.brand-mark { width: 42px; height: 42px; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font-family: var(--display); font-weight: 800; font-size: 1.02rem; letter-spacing: .01em; }
.brand-word span { font-size: .72rem; color: var(--gold); letter-spacing: .32em; margin-top: 4px; font-weight: 600; }
.nav { display: flex; gap: .25rem; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); padding: .5rem .55rem; white-space: nowrap; border-radius: var(--radius-s); font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--white); }
.nav a[aria-current='page'] { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.lang-switch { color: var(--muted); text-decoration: none; font-size: .9rem; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: var(--radius-s); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--white); width: 48px; height: 48px; border-radius: var(--radius-s); cursor: pointer; }
.menu-btn svg { margin: auto; }
.mobile-nav { display: none; }
@media (max-width: 1240px) {
  .nav, .header-actions .hide-m { display: none; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .header-actions { margin-left: 0; }
  .mobile-nav[data-open='true'] { display: block; position: fixed; inset: 76px 0 0 0; background: var(--black); z-index: 49; overflow-y: auto; padding: 1rem var(--gutter) 3rem; border-top: 1px solid var(--line-soft); }
  .mobile-nav a { display: block; padding: 1rem 0; font-family: var(--display); font-size: 1.6rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line-soft); color: var(--white); }
  .mobile-nav .btn { margin-top: 1.5rem; width: 100%; font-family: var(--font); font-size: 1rem; border-bottom: 1px solid var(--gold); padding: 1rem; }
  .mobile-nav .btn:not(.btn-gold) { border: 1px solid var(--line); }
}
@media (max-width: 420px) { .brand-word b { font-size: .92rem; } .brand-mark { width: 36px; height: 36px; } .lang-switch { padding: .5rem .45rem; } }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.hero-art { position: absolute; inset: 0; z-index: 0; }
.hero-art svg { width: 100%; height: 100%; object-fit: cover; }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,8,.96) 0%, rgba(8,8,8,.86) 45%, rgba(8,8,8,.35) 100%); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(3rem, 7vw, 6rem); }
.hero h1 { max-width: 13ch; }
.hero h1 .line { display: block; }
.hero h1 .gold { color: var(--gold); }
.hero .lede { margin: 1.25rem 0 2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero-meta div { display: flex; flex-direction: column; gap: 2px; }
.hero-meta dt { color: var(--dim); font-size: .85rem; }
.hero-meta dd { margin: 0; color: var(--white); font-weight: 600; }
.art-credit { position: absolute; right: var(--gutter); bottom: 12px; z-index: 2; font-size: .75rem; color: var(--dim); }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } .hero-art::after { background: linear-gradient(180deg, rgba(8,8,8,.75), rgba(8,8,8,.95)); } }

/* The hours dial — the one bold element: a tachometer reading the shop's live hours. */
.dial { position: relative; width: min(100%, 420px); margin-inline: auto; aspect-ratio: 1; }
.dial svg { width: 100%; height: 100%; overflow: visible; }
.dial .needle { transform-origin: 200px 200px; transition: transform 1.6s var(--ease); }
.dial-readout { position: absolute; left: 22%; right: 22%; top: 60%; display: grid; justify-items: center; text-align: center; pointer-events: none; }
.dial-readout .state { font-family: var(--display); font-weight: 800; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.1; color: var(--white); letter-spacing: -0.02em; }
.dial-readout .state.open { color: var(--gold); }
.dial-readout .sub { color: var(--muted); font-size: .92rem; margin-top: .2rem; }
.dial-readout .clock { color: var(--dim); font-size: .8rem; margin-top: .6rem; }
@media (prefers-reduced-motion: reduce) { .dial .needle { transition: none; } }

/* ── Sections ── */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; border-bottom: 1px solid var(--line-soft); }
.section-tight { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; } }
.surface { background: var(--charcoal); }
.page-head { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line-soft); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 18ch; }
.crumbs { font-size: .875rem; color: var(--dim); margin-bottom: 1.25rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

/* ── Service index (grouped list, not a card grid) ── */
.svc-groups { display: grid; gap: 3rem; }
.svc-group { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.5rem 3rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.svc-group > h3 { color: var(--gold); font-size: 1.05rem; position: sticky; top: 100px; align-self: start; }
.svc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius-m); overflow: hidden; }
.svc { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem 1.4rem 1.25rem; background: var(--black); text-decoration: none; min-height: 168px; transition: background .25s var(--ease); }
.svc:hover { background: var(--charcoal); color: inherit; }
.svc .ico { width: 30px; height: 30px; color: var(--gold); }
.svc h4 { margin: .35rem 0 0; color: var(--white); }
.svc p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.svc .go { margin-top: auto; padding-top: .5rem; font-size: .85rem; color: var(--dim); display: flex; align-items: center; gap: .4rem; }
.svc:hover .go { color: var(--gold); }
.svc .fee { position: absolute; top: 1.25rem; right: 1.25rem; font-size: .75rem; color: var(--dim); border: 1px solid var(--line); border-radius: 99px; padding: 2px 8px; }
@media (max-width: 800px) { .svc-group { grid-template-columns: 1fr; } .svc-group > h3 { position: static; } }

/* ── Steps (a real sequence, so numbered) ── */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; padding: 1.75rem 1.25rem 0 0; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--gold); color: var(--gold); border-radius: 50%; font-family: var(--display); font-weight: 700; margin-bottom: 1rem; background: var(--black); }
.steps li::after { content: ''; position: absolute; top: calc(1.75rem + 20px); left: 48px; right: 8px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); opacity: .5; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .steps li { display: grid; grid-template-columns: 56px 1fr; padding-right: 0; } .steps li::before { grid-row: span 2; } .steps li::after { display: none; } }

/* ── Panels / generic ── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.panel { background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(1.25rem, 3vw, 2rem); }
.panel-gold { border-color: rgba(201, 154, 78,.45); background: linear-gradient(180deg, rgba(201, 154, 78,.07), rgba(201, 154, 78,0) 60%), var(--charcoal); }
.notice { border-left: 3px solid var(--gold); background: var(--gold-wash); padding: 1rem 1.25rem; border-radius: 0 var(--radius-m) var(--radius-m) 0; color: var(--text); }
.notice p:last-child { margin: 0; }
.notice-warn { border-color: var(--warn); background: rgba(240,180,41,.08); }
.notice-bad { border-color: var(--bad); background: rgba(255,107,107,.08); }
.notice-ok { border-color: var(--ok); background: rgba(76,195,138,.08); }
.ticks { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 1.75rem; color: var(--text); }
.ticks li::before { content: ''; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border: 2px solid var(--gold); border-radius: 50%; }
.cols-2 { columns: 2 280px; column-gap: 3rem; }
.tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-weight: 500; white-space: nowrap; }
.tag-gold { border-color: rgba(201, 154, 78,.5); color: var(--gold); }
.tag-ok { border-color: rgba(76,195,138,.5); color: var(--ok); }
.tag-warn { border-color: rgba(240,180,41,.5); color: var(--warn); }
.tag-bad { border-color: rgba(255,107,107,.5); color: var(--bad); }
.tag-info { border-color: rgba(124,183,255,.5); color: var(--info); }

/* Trust section — states of verification are shown honestly */
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.trust-grid > div { background: var(--black); padding: 2rem 1.75rem; }
.trust-grid h3 { font-size: 1.15rem; }
.trust-grid p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; position: relative; font-weight: 600; color: var(--white); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: translateY(-75%) rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { color: var(--muted); padding-bottom: 1.25rem; margin: 0; }

/* ── Forms ── */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; }
.field label, .field .label { font-weight: 600; font-size: .92rem; color: var(--white); }
.field .hint { font-size: .82rem; color: var(--dim); }
.field .err { font-size: .85rem; color: var(--bad); }
.input, select.input, textarea.input { width: 100%; min-height: 48px; padding: .7rem .9rem; background: var(--black); border: 1px solid var(--line); border-radius: var(--radius-s); color: var(--white); font: 400 1rem/1.4 var(--font); transition: border-color .15s; }
textarea.input { min-height: 120px; resize: vertical; }
.input:hover { border-color: var(--dim); }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 154, 78,.2); }
.input[aria-invalid='true'] { border-color: var(--bad); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); flex-shrink: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-s); font-size: .92rem; color: var(--muted); transition: all .15s; }
.choice input:checked + span { border-color: var(--gold); color: var(--white); background: var(--gold-wash); box-shadow: inset 0 0 0 1px var(--gold); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.choice input:disabled + span { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.form-error { color: var(--bad); font-weight: 600; }

/* ── Booking wizard ── */
.wizard { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.wizard-steps { list-style: none; margin: 0; padding: 0; position: sticky; top: 100px; display: grid; gap: .25rem; }
.wizard-steps li { display: flex; gap: .75rem; align-items: center; padding: .6rem 0; color: var(--dim); font-weight: 500; }
.wizard-steps li .n { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: .85rem; flex-shrink: 0; }
.wizard-steps li[aria-current='step'] { color: var(--white); }
.wizard-steps li[aria-current='step'] .n { border-color: var(--gold); color: var(--gold); }
.wizard-steps li.done { color: var(--muted); }
.wizard-steps li.done .n { background: var(--gold-fill); color: var(--on-gold); border-color: var(--gold); }
@media (max-width: 860px) { .wizard { grid-template-columns: 1fr; } .wizard-steps { position: static; display: flex; overflow-x: auto; gap: .5rem; } .wizard-steps li { flex-shrink: 0; } .wizard-steps li .t { display: none; } .wizard-steps li[aria-current='step'] .t { display: inline; } }
.slot-days { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: thin; }
.slot-day { flex: 0 0 auto; min-width: 84px; padding: .6rem .5rem; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--black); color: var(--muted); text-align: center; cursor: pointer; font: inherit; }
.slot-day b { display: block; color: var(--white); font-size: 1.25rem; font-family: var(--display); }
.slot-day[aria-pressed='true'] { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); background: var(--gold-wash); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .5rem; margin-top: 1rem; }
.slot { min-height: 44px; border: 1px solid var(--line); background: var(--black); color: var(--white); border-radius: var(--radius-s); cursor: pointer; font: 500 .95rem var(--font); }
.slot:hover:not(:disabled) { border-color: var(--gold); }
.slot[aria-pressed='true'] { background: var(--gold-fill); color: var(--on-gold); border-color: var(--gold); font-weight: 700; }
.slot:disabled { opacity: .3; cursor: not-allowed; text-decoration: line-through; }
.summary-list { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.25rem; margin: 0; }
.summary-list dt { color: var(--dim); }
.summary-list dd { margin: 0; color: var(--white); overflow-wrap: anywhere; }
.ref-code { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--gold); letter-spacing: .04em; }

/* Before/after compare: see 20-public.css (.cmp) */
.figure-cap { margin-top: .75rem; }
.figure-cap h3 { font-size: 1.05rem; margin-bottom: .25rem; }

/* Promotions */
.promo { border: 1px dashed rgba(201, 154, 78,.6); border-radius: var(--radius-m); padding: 1.5rem; display: grid; gap: .5rem; }
.promo code { font-family: var(--display); font-weight: 800; color: var(--gold); font-size: 1.3rem; letter-spacing: .06em; }

/* Map */
.map-frame { border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 4/3; background: var(--charcoal); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }

/* ── Footer ── */
.site-footer { padding: 4rem 0 2rem; background: var(--black); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.footer-grid h2 { font-size: 1rem; color: var(--gold); font-family: var(--font); font-weight: 600; letter-spacing: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-grid a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--dim); font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ── Chat widget ── */
.chat-launch { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: .5rem; border-radius: 99px; padding: .8rem 1.1rem; background: var(--gold-fill); color: var(--on-gold); border: 0; font: 600 .95rem var(--font); cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.chat-panel { position: fixed; right: 18px; bottom: 82px; z-index: 61; width: min(380px, calc(100vw - 36px)); max-height: min(580px, calc(100vh - 120px)); display: none; flex-direction: column; background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: 0 20px 60px rgba(0,0,0,.6); overflow: hidden; }
.chat-panel[data-open='true'] { display: flex; }
.chat-head { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: .5rem; align-items: start; }
.chat-head b { color: var(--white); display: block; }
.chat-head small { color: var(--dim); }
.chat-log { padding: 1rem; overflow-y: auto; flex: 1; display: grid; gap: .6rem; align-content: start; }
.chat-verify { padding: 0 1rem .6rem; }
.chat-verify[hidden] { display: none; }
.msg { padding: .65rem .85rem; border-radius: 12px; max-width: 88%; font-size: .93rem; line-height: 1.45; white-space: pre-wrap; }
.msg.bot { background: var(--graphite); color: var(--text); border-bottom-left-radius: 4px; }
.msg.me { background: var(--gold-fill); color: var(--on-gold); margin-left: auto; border-bottom-right-radius: 4px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .6rem; }
.chat-quick button { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 99px; padding: .35rem .7rem; font: 500 .82rem var(--font); cursor: pointer; }
.chat-quick button:hover { border-color: var(--gold); color: var(--white); }
.chat-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--line); }
.chat-form .input { min-height: 44px; }

/* ── App shell (portal + owner) ── */
.app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - 76px); }
.app-side { border-right: 1px solid var(--line-soft); padding: 1.25rem .75rem; position: sticky; top: 76px; height: calc(100vh - 76px); overflow-y: auto; background: var(--black); }
.app-side a { display: flex; align-items: center; gap: .65rem; padding: .55rem .75rem; border-radius: var(--radius-s); color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 500; }
.app-side a:hover { color: var(--white); background: var(--charcoal); }
.app-side a[aria-current='page'] { color: var(--white); background: var(--charcoal); box-shadow: inset 2px 0 0 var(--gold); }
.app-side a .count { margin-left: auto; background: var(--gold-fill); color: var(--on-gold); font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.app-side .group { color: var(--dim); font-size: .78rem; padding: 1rem .75rem .35rem; font-weight: 600; }
.app-main { padding: clamp(1rem, 3vw, 2.25rem); min-width: 0; }
.app-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.app-top h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.app-nav-toggle { display: none; }
@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-side { position: static; height: auto; display: none; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .app-side[data-open='true'] { display: block; }
  .app-nav-toggle { display: inline-flex; }
}
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat { background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1rem 1.15rem; }
.stat .v { font-family: var(--display); font-weight: 800; font-size: 1.9rem; color: var(--white); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .k { color: var(--muted); font-size: .88rem; }
.stat .d { color: var(--dim); font-size: .78rem; margin-top: .25rem; }
.card { background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.25rem; min-width: 0; }
.card + .card { margin-top: 1rem; }
.card h2 { font-size: 1.15rem; margin-bottom: .9rem; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.card-head h2 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 1100px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-weight: 600; color: var(--dim); font-size: .8rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); background: var(--black); white-space: nowrap; }
.table td { padding: .75rem .9rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--gold-wash); }
.table tbody tr.clickable { cursor: pointer; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.toolbar .input { min-height: 40px; width: auto; flex: 1 1 200px; max-width: 320px; }
.toolbar select.input { flex: 0 1 180px; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-m); }
.empty h3 { color: var(--white); font-size: 1.05rem; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 1.25rem 1.75rem; }
.timeline li::before { content: ''; position: absolute; left: 5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.timeline li::after { content: ''; position: absolute; left: 9px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done::before { background: var(--gold-fill); }
.timeline li.current::before { background: var(--gold-fill); box-shadow: 0 0 0 4px rgba(201, 154, 78,.25); }
.timeline li.todo { color: var(--dim); }
.timeline .when { color: var(--dim); font-size: .8rem; }
.progress-rail { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 3px; margin: .75rem 0; }
.progress-rail span { height: 6px; border-radius: 3px; background: var(--line); }
.progress-rail span.on { background: var(--gold-fill); }
dialog.modal { border: 1px solid var(--line); background: var(--charcoal); color: var(--text); border-radius: var(--radius-l); padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); }
dialog.modal::backdrop { background: rgba(0,0,0,.72); }
.modal-body { padding: 1.5rem; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: .5rem; padding: 1rem 1.5rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.toast-host { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: grid; gap: .5rem; width: min(480px, calc(100vw - 24px)); }
.toast { background: var(--brand-gray-dark); color: #FFFFFF; padding: .8rem 1rem; border-radius: var(--radius-m); font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.toast.bad { background: #ffdede; color: #5a0d0d; }
.cal { display: grid; grid-template-columns: 56px repeat(7, minmax(110px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: auto; font-size: .8rem; }
.cal-h { padding: .5rem; border-bottom: 1px solid var(--line); background: var(--black); color: var(--muted); text-align: center; position: sticky; top: 0; }
.cal-col { position: relative; border-left: 1px solid var(--line-soft); }
.cal-hour { height: 44px; border-bottom: 1px solid var(--line-soft); color: var(--dim); padding: 2px 4px; }
.cal-ev { position: absolute; left: 3px; right: 3px; border-radius: 4px; padding: 3px 5px; overflow: hidden; font-size: .74rem; line-height: 1.25; color: var(--on-gold); background: var(--gold-fill); border: 1px solid rgba(0,0,0,.3); cursor: pointer; text-align: left; font-family: var(--font); }
.cal-ev.pending { background: transparent; color: var(--gold); border: 1px dashed var(--gold); }
.cal-ev.block { background: repeating-linear-gradient(45deg, var(--line), var(--line) 6px, var(--line-soft) 6px, var(--line-soft) 12px); color: var(--muted); border-color: var(--line); }
.cal-ev.occupancy { background: var(--gold-wash); color: var(--gold); border-color: var(--gold); }
.cal-ev.ext { background: rgba(59, 130, 246, .12); color: var(--info); border-color: var(--info); }
.kv { display: grid; grid-template-columns: minmax(110px, max-content) 1fr; gap: .4rem 1rem; margin: 0; font-size: .93rem; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.line-items .input { min-height: 40px; padding: .45rem .6rem; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.loading { color: var(--dim); padding: 2rem 0; }
.badge-demo { background: var(--gold-fill); color: var(--on-gold); font-size: .72rem; font-weight: 700; border-radius: 4px; padding: 2px 6px; }
.login-box { max-width: 440px; margin: clamp(2rem, 8vw, 5rem) auto; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .chat-launch, .app-side { display: none !important; } body { background: #fff; color: #000; } }


/* ===== 20-public.css ===== */
/* ───────────── Public site — reference panels 1, 2, 3, 4 and 10 ───────────── */

/* Typography: condensed uppercase marketing headlines */
h1, h2 { text-transform: uppercase; letter-spacing: .005em; font-weight: 800; }
h3 { letter-spacing: 0; }
.gold { color: var(--gold); }
.gold-sub { color: var(--gold); font-weight: 600; margin: .25rem auto 0; max-width: 60ch; }
.center-head { text-align: center; margin: 0 auto clamp(1.75rem, 4vw, 2.75rem); }
.center-head h1, .center-head h2 { margin-bottom: .2em; }
.center-cta { text-align: center; margin: 2rem 0 0; }
.section-top0 { padding-top: 0; }
.section-alt { background: var(--black-2); }

/* Buttons */
.btn { font-weight: 700; letter-spacing: .01em; }
.btn-dark { --bg: var(--btn-dark-bg); --fg: var(--btn-dark-fg); --bd: var(--btn-dark-bd); }
.btn-dark:hover { --bd: var(--gold-fill); color: var(--gold); }
.btn-lg { min-height: 54px; padding: .9rem 1.6rem; font-size: 1.02rem; }
.btn .ico-s, .btn svg { width: 18px; height: 18px; }
.ico-s { width: 18px; height: 18px; }

/* Header (panel 1): badge left, centred nav, icons + gold Book Now right */
.site-header { background: rgba(8, 8, 8, .94); border-bottom: 1px solid var(--line); }
.header-inner { height: 84px; gap: 1.25rem; }
.brand-mark { width: 56px; height: 56px; }
.brand-word b { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; }
.nav { margin-inline: auto; gap: .1rem; }
.nav a { color: var(--white); font-weight: 600; font-size: .95rem; padding: .5rem .7rem; }
.nav a:hover { color: var(--gold); }
.nav a[aria-current='page'] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
.btn-book { min-height: 44px; padding-inline: 1.3rem; font-size: .98rem; }

/* Hero (panel 1 / panel 10) */
.hero2 { position: relative; isolation: isolate; min-height: clamp(560px, 78vh, 760px); display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero2-media, .hero2-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero2-media img { object-fit: cover; object-position: 70% 50%; z-index: -2; }
.hero2-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,8,8,.96) 0%, rgba(8,8,8,.86) 34%, rgba(8,8,8,.25) 66%, rgba(8,8,8,.05) 100%), linear-gradient(0deg, rgba(8,8,8,.85) 0%, rgba(8,8,8,0) 30%); }
.hero2-inner { padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 5vw, 3.5rem); }
.hero2-title { font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: .98; margin: 0 0 1.25rem; font-weight: 900; }
@media (min-width: 901px) { .hero2-title span { white-space: nowrap; } }
.hero2-title span { display: block; }
.hero2-lede { color: #D5D7DB; font-size: clamp(1.02rem, 1.5vw, 1.18rem); max-width: 46ch; margin: 0 0 1.75rem; }
.hero2-ctas { display: flex; flex-wrap: wrap; gap: .85rem; }
.trust-row { list-style: none; padding: 0; margin: clamp(2rem, 5vw, 3.25rem) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, max-content)); gap: 0; }
.trust-row li { display: flex; align-items: center; gap: .65rem; padding: .2rem 1.4rem; border-left: 1px solid var(--line); font-weight: 600; font-size: .92rem; line-height: 1.25; color: var(--white); max-width: 15rem; }
.trust-row li:first-child { padding-left: 0; border-left: 0; }
.trust-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--gold-metal); color: var(--gold); }
.trust-row-block { justify-content: center; margin: 0 auto 2rem; }
.art-credit { position: absolute; right: 12px; bottom: 10px; font-size: .7rem; color: rgba(247,247,247,.5); }

/* 5-step process strip */
.process-strip { background: var(--black-2); border-bottom: 1px solid var(--line); }
.process-list { list-style: none; margin: 0 auto; padding-block: 1.4rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; counter-reset: s; }
.process-list li { position: relative; display: flex; align-items: center; gap: .7rem; font-weight: 700; font-size: .95rem; }
.process-list li:not(:last-child)::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-metal), transparent); margin-right: .5rem; min-width: 12px; }
.process-num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold-fill); color: var(--on-gold); font: 800 1rem/1 var(--display); }
.process-label { white-space: nowrap; }

/* Service photo cards (panel 1 / panel 2) */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1rem; }
.svc-card, .veh-card { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line); background: var(--charcoal); text-decoration: none; color: var(--white); isolation: isolate; }
.svc-card[hidden] { display: none; }
.svc-card-img, .veh-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s var(--ease); }
.svc-card-shade, .veh-card-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,8,8,.94) 0%, rgba(8,8,8,.55) 38%, rgba(8,8,8,0) 70%); }
.svc-card:hover, .veh-card:hover { border-color: var(--gold); color: var(--white); }
.svc-card:hover .svc-card-img, .veh-card:hover .veh-card-img { transform: scale(1.05); }
.svc-card-body { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; padding: 1rem 1.05rem; }
.svc-card-title, .veh-card-title { font: 800 1.3rem/1.02 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.veh-card-title { position: absolute; left: 1rem; bottom: 1rem; right: 3.5rem; }
.svc-card-arrow { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold-fill); color: var(--on-gold); }
.veh-card .svc-card-arrow { position: absolute; right: 1rem; bottom: 1rem; }
.svc-card-fee { position: absolute; top: .75rem; left: .75rem; padding: .25rem .55rem; border-radius: 999px; background: rgba(8,8,8,.8); border: 1px solid var(--gold-metal); color: var(--gold); font-size: .75rem; font-weight: 700; }
.veh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1rem; }

/* Services filter chips (panel 2) */
.services-head { padding: clamp(2rem, 5vw, 3.5rem) 0 2rem; }
.services-head h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); }
.svc-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.svc-filter-btn { display: inline-flex; flex-direction: column; align-items: center; gap: .4rem; min-width: 112px; padding: .85rem .9rem .75rem; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--charcoal); color: var(--white); font: 700 .88rem/1.1 var(--font); cursor: pointer; }
.svc-filter-btn:hover { border-color: var(--gold-metal); }
.svc-filter-btn[aria-pressed='true'] { background: var(--gold-fill); border-color: var(--gold); color: var(--on-gold); }
.svc-filter-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid currentColor; color: var(--gold); }
.svc-filter-btn[aria-pressed='true'] .svc-filter-ico { color: var(--on-gold); }

/* Promo banner */
.promo-band { position: relative; isolation: isolate; margin-top: clamp(2rem, 5vw, 3rem); min-height: 210px; display: flex; align-items: center; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); background: var(--charcoal); }
.promo-band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 60%; z-index: -2; }
/* text on the dark left, Corvette on the right: a gradient sits behind the text only, the car is left untouched */
.promo-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,8,8,.92) 0%, rgba(8,8,8,.7) 32%, rgba(8,8,8,0) 52%); }
.promo-band-text { padding: 2rem clamp(1.25rem, 4vw, 3rem); max-width: 560px; }
.promo-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin: 0 0 1rem; }
.promo-band h2 span { display: block; }

/* Why choose us + shop photo band */
.why-band { position: relative; isolation: isolate; overflow: hidden; }
.why-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.why-item { padding: 1.5rem; border-radius: var(--radius-m); background: var(--charcoal); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.why-item h3 { font-size: 1.25rem; text-transform: uppercase; margin: 1rem 0 .4rem; }
.why-item p { margin: 0; color: var(--muted); font-size: .95rem; }
.why-ico, .feature-ico, .hl-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--gold-metal); color: var(--gold); background: var(--black); }
.trust-panel { margin-top: 1.5rem; padding: 1.25rem 1.5rem; border-radius: var(--radius-m); border: 1px dashed var(--line); background: rgba(8,8,8,.7); }
.trust-panel h3 { font-size: 1.1rem; text-transform: uppercase; margin-bottom: .35rem; }
.trust-panel p { margin: 0; color: var(--muted); }

/* Feature panels / fleet card */
.feature-panel { padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--radius-l); background: var(--charcoal); border: 1px solid var(--line); }
.feature-panel h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: .9rem 0 .5rem; }
.feature-panel > h2:first-child { margin-top: 0; }
.fleet-card { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 320px; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: var(--white); }
.fleet-card:hover { border-color: var(--gold); color: var(--white); }
.fleet-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.fleet-card-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,8,8,.95), rgba(8,8,8,.15) 70%); }
.fleet-card-text { display: grid; gap: .6rem; padding: 1.5rem; justify-items: start; }
.fleet-card-h { font: 800 clamp(1.6rem, 3vw, 2.2rem)/1 var(--display); text-transform: uppercase; }
.fleet-card-p { color: #D5D7DB; max-width: 46ch; }

.empty-dark { display: grid; justify-items: center; gap: .75rem; text-align: center; padding: clamp(2rem, 5vw, 3rem) 1.5rem; border: 1px dashed var(--line); border-radius: var(--radius-l); background: var(--charcoal); }
.empty-dark h3 { margin: 0; text-transform: uppercase; font-size: 1.35rem; }
.empty-dark p { margin: 0; color: var(--muted); max-width: 60ch; }
.notice-dark { background: var(--charcoal); border-color: var(--line); border-left: 3px solid var(--gold); }
.review-card { margin: 0; padding: 1.4rem; border-radius: var(--radius-m); background: var(--charcoal); border: 1px solid var(--line); }
.stars { color: var(--gold); letter-spacing: .15em; }
.contact-band { background: var(--black-2); }

/* Inner page heads with photo */
.page-head { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-head h1 { text-transform: uppercase; font-weight: 900; }
.page-head-photo { padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(2.5rem, 5vw, 3.5rem); }
.page-head-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-head-photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,8,8,.96) 0%, rgba(8,8,8,.82) 45%, rgba(8,8,8,.35) 100%); }
.page-head-photo .lede { color: #D5D7DB; }
.page-head-center { text-align: center; }
.page-head-center h1, .page-head-center .lede { margin-inline: auto; }
.page-head-center .crumbs { justify-content: center; }
.book-head { padding: 1.5rem 0 0; }

/* Service detail (panel 3) */
.svc-hero { position: relative; isolation: isolate; min-height: clamp(460px, 62vh, 600px); display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.svc-hero-img { position: absolute; inset: 0 0 0 auto; width: 62%; height: 100%; object-fit: cover; z-index: -2; }
.svc-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--black) 0%, var(--black) 38%, rgba(8,8,8,.55) 58%, rgba(8,8,8,0) 80%); }
.svc-hero-inner { padding-block: clamp(2rem, 5vw, 3.5rem); }
.svc-hero h1 { font-size: clamp(2.6rem, 5.8vw, 4.8rem); line-height: .95; max-width: 11ch; margin: 0 0 .7rem; font-weight: 900; }
.svc-hero h1 span { display: block; }
.svc-hero-tag { color: var(--gold); font-weight: 700; font-size: 1.1rem; margin: 0 0 .75rem; max-width: 40ch; }
.svc-hero-intro { color: #D5D7DB; max-width: 46ch; margin: 0 0 1.5rem; }
.svc-hero-fee { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .9rem; margin: 1rem 0 0; }
.svc-highlights { background: var(--black-2); border-bottom: 1px solid var(--line); }
.hl-row { list-style: none; margin: 0 auto; padding-block: 1.4rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.hl-row li { display: flex; align-items: center; gap: .85rem; font-weight: 700; line-height: 1.25; }
.hl-row li + li { border-left: 1px solid var(--line); padding-left: 1rem; }
.hl-ico { flex: none; width: 48px; height: 48px; }
.svc-tabs { margin: 2rem 0 2rem; }
.svc-panel { padding-bottom: 2.5rem; }
.svc-panel + .svc-panel { border-top: 1px solid var(--line-soft); padding-top: 2.5rem; }
.tabs-js .svc-panel + .svc-panel { border-top: 0; padding-top: 0; }
.svc-panel h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.svc-overview { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.sym-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .55rem; }
.sym-list-2 { grid-template-columns: repeat(2, 1fr); }
.sym-list li { display: flex; align-items: center; gap: .85rem; padding: .7rem .9rem; border-radius: var(--radius-m); background: var(--charcoal); border: 1px solid var(--line); font-weight: 500; }
.sym-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gold-fill); color: var(--on-gold); }
.proc-list { margin: 0; padding: 0; list-style: none; counter-reset: p; display: grid; gap: .6rem; }
.proc-list li { counter-increment: p; display: flex; gap: .85rem; align-items: baseline; }
.proc-list li::before { content: counter(p); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--gold-metal); color: var(--gold); font: 800 .9rem/1 var(--display); }

/* Booking wizard (panel 4) */
.bk { max-width: 1040px; margin: 0 auto; }
.bk-title { text-align: center; font-size: clamp(2rem, 4.4vw, 3.2rem); margin: .5rem 0 .3rem; }
.bk-sub { text-align: center; color: var(--muted); margin: 0 auto 2rem; max-width: 60ch; }
.bk-steps { list-style: none; margin: 0 auto 2.25rem; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); max-width: 860px; }
.bk-steps li { position: relative; display: grid; justify-items: center; gap: .5rem; text-align: center; font-size: .85rem; font-weight: 600; color: var(--dim); }
.bk-steps li::before { content: ''; position: absolute; top: 18px; left: calc(-50% + 22px); right: calc(50% + 22px); height: 2px; background: var(--line); }
.bk-steps li:first-child::before { display: none; }
.bk-steps li.done::before, .bk-steps li[aria-current='step']::before { background: var(--gold-fill); }
.bk-steps .n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line); background: var(--black); color: var(--muted); font: 800 1rem/1 var(--display); position: relative; }
.bk-steps li[aria-current='step'] { color: var(--white); }
.bk-steps li[aria-current='step'] .n { background: var(--gold-fill); border-color: var(--gold); color: var(--on-gold); }
.bk-steps li.done { color: var(--muted); }
.bk-steps li.done .n { background: var(--black); border-color: var(--gold); color: var(--gold); }
.bk-card { padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: var(--radius-l); background: var(--charcoal); border: 1px solid var(--line); }
.bk-sec { font: 800 1.25rem/1.1 var(--display); text-transform: uppercase; margin: 0 0 1rem; color: var(--white); }
.bk-sec + * { margin-top: 0; }
.bk-card .bk-sec:not(:first-child) { margin-top: 1.75rem; }
.bk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1.5rem; }
.bk-foot { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.bk-foot .btn { min-width: 150px; }
.bk-pills { display: inline-flex; gap: .5rem; }
.bk-pill { min-width: 72px; min-height: 42px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--black); color: var(--white); font: 700 .95rem/1 var(--font); cursor: pointer; }
.bk-pill[aria-pressed='true'] { background: var(--gold-fill); border-color: var(--gold); color: var(--on-gold); }
.bk-count { display: block; text-align: right; font-size: .8rem; color: var(--dim); margin-top: .3rem; }
.dropzone { display: grid; justify-items: center; gap: .4rem; padding: 1.75rem 1rem; border: 1.5px dashed var(--line); border-radius: var(--radius-m); background: var(--black); text-align: center; cursor: pointer; color: var(--muted); }
.dropzone:hover, .dropzone[data-over='true'] { border-color: var(--gold); color: var(--white); }
.dropzone b { color: var(--white); }
.dropzone-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--gold-metal); color: var(--gold); }
.thumbs { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .85rem; }
.thumb { position: relative; width: 84px; height: 84px; border-radius: var(--radius-s); overflow: hidden; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(8,8,8,.85); color: var(--white); cursor: pointer; display: grid; place-items: center; }
.svc-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: .6rem; }
.svc-pick .choice span { display: flex; align-items: center; gap: .6rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--black-2); }
.footer-grid h2 { font-size: 1rem; text-transform: uppercase; color: var(--gold); letter-spacing: .04em; }

/* Responsive (panel 10 mobile) */
@media (max-width: 1100px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 0; }
  .trust-row li:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 900px) {
  .process-list { grid-template-columns: 1fr 1fr; row-gap: .9rem; }
  .process-list li::after { display: none; }
  .svc-overview { grid-template-columns: 1fr; }
  .hl-row { grid-template-columns: 1fr 1fr; }
  .hl-row li + li { border-left: 0; padding-left: 0; }
  .svc-hero-img { width: 100%; opacity: .55; }
  .svc-hero-shade { background: linear-gradient(90deg, rgba(8,8,8,.96), rgba(8,8,8,.6)); }
  .bk-steps li span.lbl { display: none; }
  .bk-steps li[aria-current='step'] span.lbl { display: block; }
}
@media (max-width: 700px) {
  .header-inner { height: 70px; }
  .brand-mark { width: 46px; height: 46px; }
  .hero2 { min-height: 0; align-items: flex-end; }
  .hero2-inner { padding-top: 14rem; }
  .hero2-media img { object-position: 50% 20%; }
  .hero2-shade { background: linear-gradient(0deg, rgba(8,8,8,1) 0%, rgba(8,8,8,.92) 48%, rgba(8,8,8,.25) 78%, rgba(8,8,8,.1) 100%); }
  .hero2-title { font-size: clamp(2.3rem, 10.5vw, 3.2rem); }
  .hero2-ctas .btn { flex: 1 1 100%; }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .trust-row li { padding: 0 .5rem; font-size: .85rem; }
  .trust-row li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .why-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; gap: .65rem; }
  .svc-card-title { font-size: 1.05rem; }
  .svc-card-body { padding: .7rem; }
  .svc-card-arrow { width: 28px; height: 28px; }
  .svc-filter { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: .4rem; scrollbar-width: none; }
  .svc-filter-btn { min-width: 96px; flex: none; }

  .sym-list-2 { grid-template-columns: 1fr; }
  .bk-grid { grid-template-columns: 1fr; }
  .bk-foot .btn { min-width: 0; flex: 1; }
}
@media (max-width: 420px) {
  .svc-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
}
.pt-demo-note { margin: -.5rem 0 1rem; }
@media (max-width: 960px) { .pt-demo-note { display: none; } }
@media (max-width: 480px) {
  .header-inner { gap: .5rem; }
  .brand-word b { font-size: .98rem; }
  .header-actions { gap: .35rem; }
  .header-actions .hdr-icon { width: 36px; height: 36px; }
  .header-actions .lang-switch { padding-inline: .45rem; }
}
@media (max-width: 400px) {
  .brand-word { display: none; }
}
@media (max-width: 700px) {
  .hl-row { gap: .8rem; }
  .hl-row li { font-size: .84rem; gap: .6rem; }
  .hl-ico { width: 38px; height: 38px; }
  .hl-ico svg { width: 18px; height: 18px; }
}
/* Panel 10: on phones and tablets the photo sits above the headline instead of behind it, so the vehicle is never covered */
@media (max-width: 1100px) {
  .hero2 { display: block; min-height: 0; }
  .hero2-media { position: relative; display: block; height: clamp(300px, 52vw, 520px); }
  .hero2-media img { object-position: 50% 58%; }
  .hero2-shade { inset: 0 0 auto 0; height: clamp(300px, 52vw, 520px); background: linear-gradient(0deg, rgba(8,8,8,1) 0%, rgba(8,8,8,.35) 22%, rgba(8,8,8,0) 45%); }
  .hero2-inner { position: relative; padding-top: 0; margin-top: -3.5rem; }
  .art-credit { top: 8px; bottom: auto; }
}

/* ── Floating controls: never cover content ──
   Wide screens (≥1400px): compact round button parked in the empty right gutter outside the 1280px content column.
   Everything narrower: a solid bottom dock; the page reserves its height so nothing is ever underneath it. */
.chat-launch .chat-launch-label { white-space: nowrap; }
@media (min-width: 1400px) {
  .chat-launch { right: 14px; bottom: 18px; width: 54px; height: 54px; padding: 0; justify-content: center; border-radius: 50%; }
  .chat-launch .chat-launch-label { position: absolute; right: calc(100% + 8px); background: var(--gold-fill); color: var(--on-gold); padding: .45rem .8rem; border-radius: 99px; opacity: 0; pointer-events: none; transition: opacity .15s; }
  .chat-launch:hover .chat-launch-label, .chat-launch:focus-visible .chat-launch-label { opacity: 1; }
  body { padding-bottom: 0; }
}
@media (max-width: 1399px) {
  body:has(.chat-launch) { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .chat-launch { left: var(--dock-left, 0px); right: 0; bottom: 0; height: calc(56px + env(safe-area-inset-bottom, 0px)); padding: 0 1rem env(safe-area-inset-bottom, 0px); justify-content: center; border-radius: 0; background: var(--black-2); color: var(--gold); border-top: 1px solid var(--line); box-shadow: none; font-weight: 700; }
  .chat-launch:hover { background: var(--graphite); }
  .chat-panel { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); max-height: min(580px, calc(100vh - 150px)); }
}

.art-credit { display: none; }
.credit-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .6rem; }
.credit-list li { display: grid; gap: .2rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--charcoal); }
.credit-list span { color: var(--muted); font-size: .9rem; }
/* Owner-supplied vehicle images: keep the whole vehicle (grille, emblem, wheels) inside every crop */
.page-head-img { object-position: 50% 62%; }
@media (max-width: 700px) { .hero2-media img { object-position: 50% 58%; } }
/* Fleet card on phones: vehicle above, text below (text no longer sits on top of the van) */
@media (max-width: 700px) {
  .fleet-card { min-height: 0; flex-direction: column; align-items: stretch; padding-top: 220px; }
  .fleet-card-img { inset: 0 0 auto 0; height: 240px; object-position: 50% 62%; }
  .fleet-card-shade { background: linear-gradient(0deg, rgba(8,8,8,1) 0%, rgba(8,8,8,1) calc(100% - 250px), rgba(8,8,8,.15) calc(100% - 150px), rgba(8,8,8,0) 100%); }
  .fleet-card-text { padding-top: 0; }
}
/* Service-detail hero on phones/tablets: photo above the text (as on the homepage) so the vehicle or part is never hidden behind copy */
@media (max-width: 900px) {
  .svc-hero { display: block; min-height: 0; }
  .svc-hero-img { position: relative; display: block; width: 100%; height: clamp(240px, 56vw, 460px); opacity: 1; object-position: 50% 55%; }
  .svc-hero-shade { inset: 0 0 auto 0; height: clamp(240px, 56vw, 460px); background: linear-gradient(0deg, rgba(8,8,8,1) 0%, rgba(8,8,8,.3) 25%, rgba(8,8,8,0) 50%); }
  .svc-hero-inner { position: relative; padding-top: .5rem; }
}

/* Promo banner on phones and small tablets: Corvette above the headline, never behind it */
@media (max-width: 900px) {
  .promo-band { display: block; min-height: 0; }
  .promo-band-media, .promo-band-media img { display: block; }
  .promo-band-img { position: relative; inset: auto; height: clamp(190px, 46vw, 330px); object-position: 50% 72%; }
  .promo-band::after { inset: 0 0 auto 0; height: clamp(190px, 46vw, 330px); background: linear-gradient(0deg, rgba(23,25,28,1) 0%, rgba(23,25,28,0) 30%); }
  .promo-band-text { padding-top: 1rem; }
}

/* ───────────── Before/after comparison slider (reusable) ───────────── */
.cmp { margin: 0; display: grid; gap: .85rem; align-content: start; min-width: 0; }
.compare { --pos: 50%; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--charcoal);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; isolation: isolate; contain: layout paint; }
.compare .cmp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
.compare .layer { position: absolute; inset: 0; }
.compare .after { clip-path: inset(0 0 0 var(--pos)); }
.compare .bar { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--gold-fill); box-shadow: 0 0 0 1px rgba(8,8,8,.35); pointer-events: none; z-index: 2; }
.compare .knob { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; border-radius: 50%; background: var(--gold-fill); color: var(--on-gold); transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center; gap: 0; box-shadow: 0 0 0 4px rgba(8,8,8,.55), 0 6px 18px rgba(0,0,0,.5); transition: transform .15s var(--ease); }
.compare .knob svg { width: 16px; height: 16px; stroke-width: 2.4; margin: 0 -2px; }
.compare[data-dragging='true'] .knob { transform: translate(-50%, -50%) scale(1.08); }
/* keyboard / AT control: the range input covers the slider but is invisible; pointer handling lives on the container */
.compare .cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; z-index: 3; }
.compare:has(.cmp-range:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }
.compare:has(.cmp-range:focus-visible) .knob { box-shadow: 0 0 0 4px var(--white), 0 6px 18px rgba(0,0,0,.5); }
.compare .lbl { position: absolute; top: 10px; z-index: 2; padding: .25rem .6rem; background: rgba(8,8,8,.8); border: 1px solid rgba(247,247,247,.18); font: 700 .74rem/1.2 var(--font); border-radius: 99px; color: var(--white); letter-spacing: .02em; text-transform: uppercase; pointer-events: none; }
.compare .lbl.b { left: 10px; } .compare .lbl.a { right: 10px; color: var(--gold); }
.cmp-cap { display: grid; gap: .35rem; }
.cmp-title { margin: 0; font-size: 1.25rem; text-transform: uppercase; }
.cmp-cap p { margin: 0; color: var(--muted); font-size: .92rem; }
.cmp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
.cmp-meta a { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; color: var(--gold); text-decoration: none; }
.cmp-meta a:hover { text-decoration: underline; }
.cmp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 2rem 1.5rem; }
.cmp[hidden] { display: none; }
.cmp-note { margin-top: 2rem; text-align: center; max-width: 70ch; margin-inline: auto; }
[data-cmp-filter] { margin-bottom: .75rem; }
.svc-cmp { min-width: 0; }

/* Why-choose-us band: charcoal with subtle gold light (no photograph) */
.why-band { background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(201, 154, 78,.10), transparent 70%), radial-gradient(ellipse 50% 50% at 90% 100%, rgba(201, 154, 78,.06), transparent 70%), var(--black-2); }

/* Brand page head: charcoal/gold with a large BLM mark on the right (About, Gallery, Financing, Warranty, 404) */
.page-head-brand { background: radial-gradient(ellipse 55% 90% at 82% 50%, rgba(201, 154, 78,.13), transparent 70%), linear-gradient(180deg, #111214, #080808); padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 5vw, 3.5rem); }
.page-head-brand .wrap { position: relative; z-index: 1; }
.page-head-brand .wrap > h1, .page-head-brand .wrap > .lede { max-width: min(620px, 58%); }
.page-head-mark { position: absolute; right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); top: 50%; transform: translateY(-50%); width: clamp(180px, 22vw, 300px); height: clamp(180px, 22vw, 300px); z-index: 0; opacity: .95; filter: drop-shadow(0 0 40px rgba(201, 154, 78,.18)); pointer-events: none; }
.page-head-mark .brand-mark, .page-head-mark img { width: 100%; height: 100%; }
.page-head-center .page-head-mark { opacity: .12; right: 50%; transform: translate(50%, -50%); }
.page-head-center.page-head-brand .wrap > h1, .page-head-center.page-head-brand .wrap > .lede { max-width: none; }
@media (max-width: 760px) {
  .page-head-brand { display: flex; flex-direction: column; padding-top: 1.75rem; }
  .page-head-mark { position: relative; right: auto; top: auto; transform: none; width: 84px; height: 84px; margin: 0 var(--gutter) 1rem; align-self: flex-start; }
  .page-head-brand .wrap > h1, .page-head-brand .wrap > .lede { max-width: none; }
  .page-head-center .page-head-mark { display: none; }
}
.compare .cmp-range-native { pointer-events: auto; cursor: ew-resize; }
/* Photo page heads (Specials, Fleet) on phones: vehicle above the heading, shown whole, never behind text */
@media (max-width: 760px) {
  .page-head-photo { padding-top: 0; }
  .page-head-photo .page-head-img { position: relative; inset: auto; display: block; width: 100%; height: clamp(190px, 50vw, 320px); object-position: 100% 70%; margin-bottom: 1rem; }
  .page-head-photo::after { inset: 0 0 auto 0; height: clamp(190px, 50vw, 320px); background: linear-gradient(0deg, rgba(8,8,8,1) 0%, rgba(8,8,8,0) 35%); }
}

/* ===== 30-app.css ===== */
/* ── Application shell: customer portal + owner dashboard (reference panels 5–9) ── */
.app-owner, .app-portal { background: var(--black); }
.app-owner .site-header, .app-portal .site-header { position: sticky; }
.app-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: calc(100vh - 72px); background: var(--black); }
.app-side { border-right: 1px solid var(--line); padding: 1.1rem .8rem 2rem; position: sticky; top: 72px; height: calc(100vh - 72px); overflow-y: auto; background: var(--black-2); scrollbar-width: thin; }
.app-side .group { color: var(--dim); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 1rem .7rem .35rem; }
.app-side a, .app-side .side-btn { display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; margin: 2px 0; border-radius: 8px; color: #C9CBD0; text-decoration: none; font-size: .9rem; font-weight: 500; background: none; border: 0; width: 100%; cursor: pointer; font-family: var(--font); text-align: left; }
.app-side a .ui-ico, .app-side .side-btn .ui-ico { color: var(--gold-metal); flex-shrink: 0; }
.app-side a:hover, .app-side .side-btn:hover { background: var(--graphite); color: var(--white); }
.app-side a[aria-current='page'] { background: var(--gold-fill); color: #141000; font-weight: 700; box-shadow: none; }
.app-side a[aria-current='page'] .ui-ico { color: var(--on-gold); }
.app-side a .count { margin-left: auto; background: var(--gold-fill); color: #141000; font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.app-side a[aria-current='page'] .count { background: var(--on-gold); color: var(--gold-fill); }
.app-main { padding: clamp(1rem, 2.6vw, 2rem) clamp(1rem, 2.6vw, 2.25rem) 3rem; min-width: 0; }
.app-main h1, .app-main h2, .app-main h3, .app-main h4 { font-family: var(--font); text-transform: none; letter-spacing: -0.01em; }
.app-main h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; margin: 0; }
.app-main h2 { font-size: 1.05rem; font-weight: 700; }
.app-main h3 { font-size: .98rem; font-weight: 700; }
.app-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.app-top h1 { font-family: var(--font); text-transform: none; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.app-nav-toggle { display: none; }
.app-mobilebar { display: none; }
@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-side { position: static; height: auto; display: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .app-side[data-open='true'] { display: block; }
  .app-nav-toggle { display: inline-flex; }
  .app-mobilebar { display: flex; gap: .5rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
}

/* Page header */
.ui-pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.ui-pagehead-text { min-width: 0; }
.ui-pagehead-sub { color: var(--muted); margin-top: .35rem; font-size: .92rem; display: flex; flex-wrap: wrap; gap: .4rem .75rem; align-items: center; }
.ui-pagehead-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ui-back { display: inline-flex; align-items: center; gap: .25rem; color: var(--muted); font-size: .85rem; text-decoration: none; margin-bottom: .45rem; }
.ui-back:hover { color: var(--gold); }

/* Cards & panels */
.ui-panel, .card { background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.15rem 1.2rem; min-width: 0; }
.ui-panel + .ui-panel { margin-top: 1rem; }
.ui-panel-head, .card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .9rem; }
.ui-panel-head h2, .card-head h2 { margin: 0; font-size: 1.05rem; }
.ui-panel-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.ui-panel-actions a, .link-gold { color: var(--gold); font-weight: 600; font-size: .88rem; text-decoration: none; }
.ui-panel-actions a:hover, .link-gold:hover { text-decoration: underline; }

/* Metric cards (panel 6) */
.ui-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.ui-metric { display: block; background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1rem 1.15rem 1.05rem; text-decoration: none; color: inherit; min-width: 0; transition: border-color .2s; }
a.ui-metric:hover { border-color: var(--gold-metal); color: inherit; }
.ui-metric-label { color: var(--text); font-size: .86rem; font-weight: 500; display: flex; gap: .4rem; align-items: center; }
.ui-metric-value { font-family: var(--font); font-weight: 800; font-size: 2.15rem; line-height: 1.15; margin-top: .35rem; color: var(--white); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ui-metric-gold { color: var(--gold); }
.ui-metric-ok { color: var(--ok); }
.ui-metric-bad { color: var(--bad); }
.ui-metric-sub { color: var(--ok); font-size: .82rem; margin-top: .2rem; }
.ui-metric-sub.muted, .ui-metric .muted { color: var(--muted); }

/* Status badges (filled chips) */
.ui-badge, .tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 700; line-height: 1; padding: .38rem .6rem; border-radius: 5px; white-space: nowrap; text-transform: capitalize; letter-spacing: 0; border: 0; }
.ui-badge-ok, .tag-ok { background: var(--ok); color: var(--ok-ink); }
.ui-badge-warn, .tag-warn { background: var(--warn); color: var(--warn-ink); }
.ui-badge-gold, .tag-gold { background: var(--gold-fill); color: var(--warn-ink); }
.ui-badge-bad, .tag-bad { background: var(--bad); color: var(--bad-ink); }
.ui-badge-info, .tag-info { background: var(--info); color: var(--info-ink); }
.ui-badge-violet { background: var(--violet); color: var(--violet-ink); }
.ui-badge-neutral, .tag { background: var(--graphite); color: var(--muted); }
.badge-demo { background: var(--gold-fill); color: #141000; font-size: .66rem; font-weight: 800; border-radius: 4px; padding: 2px 6px; letter-spacing: .04em; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--charcoal); }
.table th { background: var(--black-2); color: var(--muted); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); }
.table td { border-bottom: 1px solid var(--line-soft); }
.table tbody tr:hover { background: rgba(201, 154, 78, .04); }

/* Inputs inside apps */
.app-main .input, .modal .input { background: var(--black); border-color: var(--line); border-radius: 8px; min-height: 44px; }
.app-main .input:focus, .modal .input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 154, 78, .18); }
.toolbar .input { min-height: 40px; }

/* Tabs (underline, panel 3 & 8) */
.ui-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-bottom: 1.2rem; }
.ui-tab { background: none; border: 0; color: var(--muted); font: 600 .9rem var(--font); padding: .8rem 1rem; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; gap: .4rem; align-items: center; }
.ui-tab:hover { color: var(--white); }
.ui-tab[aria-selected='true'] { color: var(--white); border-bottom-color: var(--gold); }
.ui-tab-count { background: var(--gold-fill); color: #141000; border-radius: 99px; font-size: .68rem; padding: 1px 6px; }

/* Segmented control (panel 7 Day/Week/Month) */
.ui-seg { display: inline-flex; background: var(--black-2); border: 1px solid var(--line); border-radius: 8px; padding: 3px; gap: 2px; }
.ui-seg button { background: none; border: 0; color: var(--muted); font: 600 .85rem var(--font); padding: .45rem .9rem; border-radius: 6px; cursor: pointer; }
.ui-seg button[aria-pressed='true'] { background: var(--brand-black); color: #FFFFFF; }

/* Empty + loading */
.ui-empty, .empty { text-align: center; padding: 2.4rem 1rem; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-m); background: rgba(255, 255, 255, .01); }
.ui-empty-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold-metal); color: var(--gold); margin-bottom: .6rem; }
.ui-empty h3 { color: var(--white); font-size: 1rem; margin: 0 0 .3rem; font-family: var(--font); text-transform: none; }
.ui-empty-body { font-size: .9rem; }
.ui-skeleton { display: grid; gap: .65rem; padding: 1rem 0; }
.ui-skel-row { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--line-soft) 0%, var(--line) 50%, var(--line-soft) 100%); background-size: 200% 100%; animation: ui-shimmer 1.4s infinite linear; }
@keyframes ui-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Schedule list (panel 6) */
.ui-sched { display: grid; gap: .55rem; }
.ui-sched-item { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: .9rem; align-items: center; background: var(--black-2); border: 1px solid var(--line); border-radius: 8px; padding: .8rem .95rem; text-decoration: none; color: inherit; }
a.ui-sched-item:hover { border-color: var(--gold-metal); color: inherit; }
.ui-sched-time { font-weight: 700; color: var(--white); font-variant-numeric: tabular-nums; }
.ui-sched-title { font-weight: 700; color: var(--white); }
.ui-sched-sub { color: var(--muted); font-size: .84rem; }
@media (max-width: 520px) { .ui-sched-item { grid-template-columns: 1fr auto; } .ui-sched-time { grid-column: 1 / -1; } }

/* Shop status (panel 6) */
.ui-shopstatus .state { font-family: var(--font); font-weight: 800; font-size: 2.1rem; line-height: 1.1; }
.ui-shopstatus .state.open { color: var(--ok); }
.ui-shopstatus .state.closed { color: var(--bad); }
.ui-mini { display: flex; align-items: center; gap: .8rem; background: var(--black-2); border: 1px solid var(--line); border-radius: 8px; padding: .8rem .9rem; margin-top: .6rem; }
.ui-mini b { font-size: 1.8rem; font-weight: 800; color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; }
.ui-mini span { color: var(--muted); font-size: .86rem; }

/* Activity feed (panel 6) */
.ui-acts { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.ui-act > a, .ui-act > div { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .6rem .8rem; background: var(--black-2); border: 1px solid var(--line-soft); border-radius: 8px; text-decoration: none; color: var(--text); font-size: .9rem; }
.ui-act > a:hover { border-color: var(--gold-metal); color: var(--white); }
.ui-act-ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid currentColor; }
.ui-act-ok { color: var(--ok); } .ui-act-warn, .ui-act-gold { color: var(--gold); } .ui-act-bad { color: var(--bad); } .ui-act-info { color: var(--info); } .ui-act-violet { color: var(--violet); } .ui-act-neutral { color: var(--muted); }
.ui-act-when { color: var(--dim); font-size: .8rem; white-space: nowrap; }
.ui-act-text { min-width: 0; overflow-wrap: anywhere; }

/* Repair timeline (panel 8) */
.ui-rtl { list-style: none; margin: 0; padding: 0; position: relative; }
.ui-rtl li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: .9rem; align-items: start; padding-bottom: 1.15rem; }
.ui-rtl li::before { content: ''; position: absolute; left: 13px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.ui-rtl li:last-child::before { display: none; }
.ui-rtl li.ui-rtl-done::before { background: var(--ok); }
.ui-rtl li.ui-rtl-current::before { background: linear-gradient(var(--gold), var(--line)); }
.ui-rtl-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 800 .8rem var(--font); border: 2px solid var(--dim); color: var(--dim); background: var(--black); position: relative; z-index: 1; }
.ui-rtl-done .ui-rtl-dot { border-color: var(--ok); color: var(--ok); }
.ui-rtl-current .ui-rtl-dot { background: var(--gold-fill); border-color: var(--gold); color: #141000; box-shadow: 0 0 0 4px rgba(201, 154, 78, .18); }
.ui-rtl-label { font-weight: 600; color: var(--white); padding-top: 3px; }
.ui-rtl-current .ui-rtl-label { color: var(--gold); }
.ui-rtl-todo .ui-rtl-label { color: var(--muted); font-weight: 500; }
.ui-rtl-at { color: var(--info); font-size: .8rem; margin-top: .1rem; }
.ui-rtl-done .ui-rtl-at { color: var(--info); }
.ui-rtl-current .ui-rtl-at { color: var(--gold-soft); }
.ui-rtl-todo .ui-rtl-at { color: var(--dim); }
.ui-rtl-action { padding-top: 1px; }

/* Estimate summary (panel 9) */
.ui-est { display: grid; gap: .4rem; }
.ui-est-rows { display: grid; }
.ui-est-group { color: var(--gold); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .7rem 0 .2rem; }
.ui-est-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line-soft); color: var(--text); font-size: .95rem; }
.ui-est-detail { display: block; color: var(--dim); font-size: .8rem; }
.ui-est-sub { border-top: 1px solid var(--line); margin-top: .2rem; }
.ui-est-sub .ui-est-row { border-bottom: 0; padding: .4rem 0; }
.ui-est-total { display: flex; justify-content: space-between; align-items: center; margin-top: .4rem; padding: .95rem 1.1rem; border-radius: 8px; background: var(--gold-wash); color: var(--white); font: 800 1.45rem/1 var(--display); text-transform: uppercase; border: 1.5px solid var(--gold); }
.ui-est-total .tnum { color: var(--gold); font-size: 1.7rem; }
.ui-approve-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-top: .9rem; }
@media (max-width: 560px) { .ui-approve-row { grid-template-columns: 1fr; } }
.btn-approve { --bg: #3FAE5E; --fg: #fff; --bd: #3FAE5E; }
.btn-approve:hover { --bg: #49BF69; border-color: #49BF69; color: #fff; }
.btn-decline { --bg: #D64045; --fg: #fff; --bd: #D64045; }
.btn-decline:hover { --bg: #E25257; border-color: #E25257; color: #fff; }
.btn-ghost { --bg: transparent; --fg: var(--white); --bd: var(--dim); }

/* Calendar blocks (panel 7) — status colours */
.cal-ev { border-radius: 6px; border: 0; color: #fff; font-weight: 600; padding: 4px 7px; box-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.cal-ev.st-confirmed { background: #3E9E5B; }
.cal-ev.st-pending { background: #D9901A; color: #fff; border: 0; }
.cal-ev.st-progress { background: #3B78D8; }
.cal-ev.st-multiday { background: #6C55C9; }
.cal-ev.st-blocked { background: repeating-linear-gradient(45deg, #8E2B2F, #8E2B2F 6px, #7A2428 6px, #7A2428 12px); }
.cal-ev.st-completed { background: #2F6E44; color: #DDEFE3; }
.cal-ev.st-external { background: var(--graphite); color: var(--muted); border: 1px dashed var(--dim); }
.cal-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .82rem; color: var(--muted); margin-top: .9rem; }
.cal-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.cal-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 2px solid currentColor; }

/* Portal (panel 5) */
.pt-banner { position: relative; overflow: hidden; border-radius: var(--radius-l); border: 1px solid var(--line); min-height: 220px; display: flex; align-items: flex-end; margin-bottom: 1.4rem; background: var(--black-2); }
.pt-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pt-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 8, 8, .92) 0%, rgba(8, 8, 8, .65) 45%, rgba(8, 8, 8, .1) 100%); }
.pt-banner-text { position: relative; z-index: 1; padding: clamp(1.2rem, 3vw, 2rem); max-width: 520px; }
.pt-banner h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.08; margin: 0 0 .5rem; }
.pt-banner p { color: #D9DADD; margin: 0 0 1rem; }
.pt-vehicles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .9rem; }
.pt-vcard { position: relative; background: var(--light-card); color: var(--light-ink); border-radius: var(--radius-m); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; border: 1px solid #DCDCD8; }
.pt-vcard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #E7E6E2; }
.pt-vcard .pt-vbody { padding: .75rem .9rem .9rem; }
.pt-vcard b { display: block; font-size: .95rem; color: var(--light-ink); }
.pt-vcard span { color: #5A5D63; font-size: .85rem; }
.pt-card { background: var(--light-card); color: var(--light-ink); border-radius: var(--radius-m); padding: .95rem 1rem; display: grid; gap: .35rem; text-decoration: none; border: 1px solid #DCDCD8; }
.pt-card + .pt-card { margin-top: .6rem; }
.pt-card:hover { color: var(--light-ink); border-color: var(--gold); }
.pt-card-title { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-weight: 700; }
.pt-card-sub { color: #55585E; font-size: .88rem; }
.pt-chip { display: inline-flex; width: fit-content; font-size: .76rem; font-weight: 700; border-radius: 5px; padding: .3rem .55rem; }
.pt-chip-warn { background: #FCE7AE; color: #6B4A00; }
.pt-chip-ok { background: #CDEFD8; color: #0E5A2B; }
.pt-chip-bad { background: #F8D2D3; color: #8A1C21; }
.pt-chip-info { background: #D6E5FB; color: #163E78; }
.pt-chip-neutral { background: #E4E4E1; color: #3D4046; }
.pt-section { margin-top: 1.4rem; }
.pt-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7rem; }
.pt-section-head h2 { margin: 0; font-size: 1.1rem; }

/* Header icons in app pages */
.hdr-icons { display: flex; align-items: center; gap: .5rem; }
.hdr-icon { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--white); background: var(--black-2); text-decoration: none; }
.hdr-icon:hover { border-color: var(--gold); color: var(--gold); }
.hdr-icon .dot { position: absolute; top: 6px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--bad); border: 2px solid var(--black); }

/* Dialogs & toasts */
dialog.modal { background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.modal-body h2 { font-family: var(--font); text-transform: none; }
.toast { background: var(--white); color: #111; border-left: 4px solid var(--ok); }
.toast.bad { background: #FFE3E3; color: #5A0D0D; border-left-color: var(--bad); }
.notice { border-left-color: var(--gold); }
.owner-meta { margin: -0.4rem 0 1rem; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }

/* ── Customer portal additions (panels 5 & 9) ── */
.pt-banner-img { z-index: 0; }
.pt-banner .app-top { display: block; margin: 0; border: 0; }
.pt-banner-cta { position: absolute; z-index: 1; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); }
.pt-section-head h2 { text-transform: uppercase; font-size: 1.3rem; }
.pt-section-head a { color: var(--gold); font-weight: 600; font-size: .9rem; text-decoration: none; }
.pt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: .9rem; }
.pt-cards-lg { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.pt-vcard:hover { border-color: var(--gold); color: var(--light-ink); }
.pt-vcard-body { padding: .8rem .95rem 1rem; display: grid; gap: .3rem; }
.pt-vcard-body h3 { margin: 0; color: var(--light-ink); font: 800 1.15rem/1.1 var(--display); text-transform: uppercase; }
.pt-vcard-body p { margin: 0; color: #55585E; font-size: .88rem; }
.pt-vcard-static .kv { color: var(--light-ink); font-size: .85rem; margin: .4rem 0 0; }
.pt-vcard-static .kv dt { color: #6A6D73; }
.pt-vcard-static .btn { --fg: var(--light-ink); --bd: #C9C9C4; }
.pt-vcard-static .btn-danger { color: #9B1C22; }
.pt-chip-gold { background: var(--gold-fill); color: #231800; }
.pt-two { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.4rem; }
.pt-two .pt-section { margin-top: 1.4rem; }
.pt-lcard { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border-radius: var(--radius-m); background: var(--light-card); color: var(--light-ink); border: 1px solid #DCDCD8; text-decoration: none; }
.pt-lcard:hover { border-color: var(--gold); color: var(--light-ink); }
.pt-lcard-body { flex: 1; min-width: 0; }
.pt-lcard-body h3 { margin: 0 0 .15rem; color: var(--light-ink); font: 700 1rem/1.2 var(--font); text-transform: none; }
.pt-lcard-body p { margin: 0; color: #55585E; font-size: .86rem; }
.pt-date { flex: none; display: grid; place-items: center; width: 58px; padding: .4rem 0; border-radius: 8px; background: var(--black); color: var(--gold); text-transform: uppercase; font-size: .72rem; font-weight: 700; }
.pt-date b { color: var(--white); font: 800 1.5rem/1 var(--display); }
.pt-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--black); color: var(--gold); }
.pt-right { display: grid; justify-items: end; gap: .3rem; }
.pt-right b { font-size: .95rem; }
.pt-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.pt-alert { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1.1rem; border-radius: var(--radius-m); background: var(--gold-wash); border: 1px solid rgba(201, 154, 78, .45); color: var(--white); margin-bottom: .6rem; }
.pt-alert .ui-ico { color: var(--gold); margin-top: 2px; }
.pt-alert p { margin: 0; }
.pt-est { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.pt-est .card + .card { margin-top: 0; }
.pt-est h2 { font-size: 1.2rem; text-transform: uppercase; margin-top: 1.1rem; }
.pt-est-veh { display: flex; align-items: center; gap: .6rem; color: var(--muted); padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.pt-est-veh .ui-ico { color: var(--gold); }
.pt-auth { position: sticky; top: 92px; }
.pt-auth h2 { margin-top: 0; }
.pt-terms { max-height: 180px; overflow-y: auto; padding: .8rem; border-radius: 8px; background: var(--black); border: 1px solid var(--line); color: var(--muted); }
.pt-actions { display: grid; gap: .6rem; margin-top: 1rem; }
.pt-actions .btn { width: 100%; }
.pt-notes { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.pt-notes li { padding: .7rem .9rem; border-radius: 8px; background: var(--black); border: 1px solid var(--line); }
.side-sep { height: 1px; background: var(--line); margin: .6rem .5rem; }
.app-side a.side-cta { color: var(--gold); font-weight: 600; }
.pt-form-card { max-width: 820px; }
@media (max-width: 1000px) {
  .pt-two, .pt-est { grid-template-columns: 1fr; }
  .pt-auth { position: static; }
}
@media (max-width: 640px) {
  .pt-banner { min-height: 260px; }
  .pt-banner-cta { position: relative; right: auto; bottom: auto; margin: 0 1.2rem 1.2rem; }
  .pt-banner { flex-direction: column; align-items: stretch; justify-content: flex-end; }
}
/* Portal banner: charcoal/gold with the BLM mark (no stand-in vehicle photo) */
.pt-banner { background: radial-gradient(ellipse 50% 100% at 85% 50%, rgba(201,154,78,.16), transparent 70%), linear-gradient(90deg, #0B0B0B, #161616); }
.pt-banner::after { display: none; }
.pt-banner-mark { position: absolute; right: clamp(1rem, 3vw, 1.75rem); top: clamp(1rem, 3vw, 1.5rem); width: clamp(84px, 11vw, 112px); height: clamp(84px, 11vw, 112px); opacity: .9; }
.pt-banner-mark .brand-mark, .pt-banner-mark img { width: 100%; height: 100%; }
/* Customer vehicle tile: type icon, never a stand-in car */
.pt-vtile { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9; background: radial-gradient(ellipse 60% 70% at 50% 60%, rgba(201, 154, 78,.16), transparent 70%), #16171A; color: var(--gold); }
@media (max-width: 640px) { .pt-banner-mark { top: 1rem; transform: none; width: 72px; height: 72px; } }
.pt-vtile .ui-ico { color: var(--gold); opacity: .9; }

/* ───────── Electronic signatures ───────── */
.es-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1rem; align-items: start; }
.es-side { position: sticky; top: 92px; }
.es-doc h2 { margin: 0 0 .4rem; font-size: 1.15rem; }
.es-doc h3 { margin: 1rem 0 .3rem; font-size: 1rem; }
.es-doc hr { border: 0; border-top: 1px solid var(--line); margin: .8rem 0; }
.es-kv { display: grid; gap: .25rem; margin: .6rem 0; }
.es-kv > div { display: grid; grid-template-columns: 160px 1fr; gap: .6rem; }
.es-kv dt { color: var(--muted); }
.es-kv dd { margin: 0; overflow-wrap: anywhere; }
.es-hash code { overflow-wrap: anywhere; font-size: .75rem; }
.es-consent { margin: .6rem 0 1rem; }
.es-consent summary { cursor: pointer; font-weight: 600; margin-bottom: .4rem; }
.es-fields .seg { display: flex; gap: 1rem; flex-wrap: wrap; margin: .4rem 0 .6rem; }
.es-typed { min-height: 64px; display: flex; align-items: center; padding: 0 1rem; border: 1px dashed var(--line); border-radius: 8px; background: #fff; color: #111; font: italic 1.6rem/1 Georgia, 'Times New Roman', serif; overflow: hidden; white-space: nowrap; }
.es-pad canvas { width: 100%; aspect-ratio: 10 / 3; display: block; background: #fff; border: 1px dashed var(--line); border-radius: 8px; touch-action: none; cursor: crosshair; }
.es-pad-bar { display: flex; justify-content: space-between; align-items: center; margin-top: .3rem; gap: .5rem; }
@media (max-width: 900px) {
  .es-wrap { grid-template-columns: 1fr; }
  .es-side { position: static; }
  .es-kv > div { grid-template-columns: 1fr; gap: 0; }
}

/* ===== 40-ops.css ===== */
/* ── Owner ops sections (sections-ops.tsx) — reference panels 6–9 ── */

/* Utilities */
.ops-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem .75rem; min-width: 0; }
.ops-chips { display: inline-flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.ops-block { display: block; }
.ops-nowrap { white-space: nowrap; }
.ops-mt { margin-top: 1rem; }
.ops-mt-sm { margin-top: .45rem; }
.ops-mb { margin-bottom: 1rem; }
.ops-bad { color: var(--bad); }
.ops-neg { color: var(--bad); }
.ops-gold { color: var(--gold); }
.ops-dim { color: var(--dim); margin-top: .3rem; }
.ops-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86rem; overflow-wrap: anywhere; }
.ops-hash { word-break: break-all; }
.ops-intro { margin: -.35rem 0 1rem; }
.ops-quote { background: var(--black-2); border: 1px solid var(--line-soft); border-left: 3px solid var(--gold-metal); border-radius: 0 8px 8px 0; padding: .75rem .9rem; margin: 0; color: var(--text); }
.ops-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--gold-fill); color: #141000; font-size: .74rem; font-weight: 800; }
.ops-list { list-style: none; margin: 0; padding: 0; }
.ops-list > li { padding: .7rem 0; border-bottom: 1px solid var(--line-soft); min-width: 0; overflow-wrap: anywhere; }
.ops-list > li:first-child { padding-top: 0; }
.ops-list > li:last-child { border-bottom: 0; padding-bottom: 0; }
.ops-h3 { font-size: .95rem; margin: 1.25rem 0 .55rem; color: var(--white); }
.ops-input-sm { min-height: 38px !important; padding: .35rem .55rem !important; font-size: .9rem !important; }
.ops-cb { width: 20px; height: 20px; accent-color: var(--gold); }
.ops-inline { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.ops-inline .field { flex: 1 1 160px; }
.ops-divided { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.ops-th-row { background: transparent !important; color: var(--text) !important; font-size: .9rem !important; text-transform: none !important; letter-spacing: 0 !important; }
.ops-kind { display: inline-flex; gap: .4rem; align-items: center; }
.ops-kind .ui-ico { color: var(--gold-metal); }
.ops-table-compact .table td, .ops-table-compact .table th { padding: .5rem .7rem; }
.ops-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.ops-photos figure { margin: 0; min-width: 0; }
.ops-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; background: var(--black); }
.ops-photos figcaption { font-size: .8rem; color: var(--muted); margin-top: .4rem; display: grid; gap: .3rem; justify-items: start; }
.app-main .kv { grid-template-columns: minmax(90px, max-content) minmax(0, 1fr); }
.app-main .grid-2 > .card + .card, .app-main .grid-3 > .card + .card { margin-top: 0; }
@media (max-width: 760px) { .table.adm-wide { min-width: 680px; } }

/* Buttons */
.ops-btns { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.1rem; }
.ops-btns .btn { min-height: 42px; font-weight: 700; }
.ops-btn-outline { --bg: transparent; --bd: var(--dim); --fg: var(--white); }
.ops-btn-outline:hover { border-color: var(--white); }
.ops-btn-outline-gold { --bg: transparent; --bd: var(--gold-fill); --fg: var(--gold); font-weight: 700; }
.ops-btn-outline-gold:hover { --bg: rgba(201, 154, 78, .12); color: var(--gold-soft); border-color: var(--gold-soft); }
.ops-iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--black-2); color: var(--gold); cursor: pointer; flex-shrink: 0; }
.ops-iconbtn:hover { border-color: var(--gold); }
.ops-toolbar { gap: .6rem; }
.ops-toolbar .ui-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ops-toolbar .ui-seg button { white-space: nowrap; }
.ops-toolbar select.input { flex: 0 1 200px; }

/* Layout grids */
.ops-grid-main { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.ops-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; align-items: start; }
.ops-col { display: grid; gap: 1rem; min-width: 0; }
.ops-col > .ui-panel + .ui-panel { margin-top: 0; }
.ops-mt-panel { margin-top: 1rem; }
@media (max-width: 1100px) { .ops-grid-main { grid-template-columns: minmax(0, 1fr); } .ops-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ops-grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* Key / value */
.ops-kv { display: grid; margin: 0; }
.ops-kv > div { display: grid; grid-template-columns: minmax(110px, 34%) minmax(0, 1fr); gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line-soft); }
.ops-kv > div:last-child { border-bottom: 0; }
.ops-kv dt { color: var(--muted); font-size: .88rem; }
.ops-kv dd { margin: 0; color: var(--text); overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 420px) { .ops-kv > div { grid-template-columns: minmax(0, 1fr); gap: .15rem; } }

/* People & vehicles */
.ops-avatar { display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #3A3D43, #1B1D21 70%); border: 2px solid var(--gold-metal); color: var(--gold); font-weight: 800; letter-spacing: .02em; line-height: 1; }
.ops-person { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.ops-person-text { min-width: 0; display: grid; gap: .1rem; }
.ops-person-name, .ops-person-name a { color: var(--white); font-weight: 700; font-size: 1.02rem; text-decoration: none; }
.ops-person-name a:hover, a.ops-person-name:hover { color: var(--gold); }
.ops-person-sub { color: var(--muted); font-size: .88rem; text-decoration: none; overflow-wrap: anywhere; }
.ops-person-sub:hover { color: var(--gold); }
.ops-titleperson { display: inline-flex; align-items: center; gap: .9rem; }
.ops-namecell { display: inline-flex; align-items: center; gap: .6rem; white-space: nowrap; }
.ops-namecell .ops-avatar { border-width: 1.5px; }
.ops-veh-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--black-2); border: 1px solid var(--line); color: var(--gold); flex-shrink: 0; }
.ops-veh-ico.sm { width: 30px; height: 30px; border-radius: 7px; }
.ops-cv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 640px) { .ops-cv { grid-template-columns: minmax(0, 1fr); } }
.ops-veh-mini { display: flex; gap: .85rem; align-items: flex-start; min-width: 0; }
.ops-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .7rem; }
.ops-vcard { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem .9rem; border-radius: 10px; background: var(--black-2); border: 1px solid var(--line); color: inherit; text-decoration: none; min-width: 0; }
.ops-vcard:hover { border-color: var(--gold-metal); color: inherit; }
.ops-vcard.is-archived { opacity: .6; }
.ops-vcard-body { min-width: 0; display: grid; gap: .15rem; }
.ops-vcard b { color: var(--white); }
.ops-vhero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem; margin-bottom: 1rem; }
.ops-vhero-img { position: relative; border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line); background: radial-gradient(circle at 50% 60%, #24272C, #0B0C0E 75%); min-height: 220px; }
.ops-vhero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ops-vhero-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); }
.ops-vhero-info { margin: 0; }
@media (max-width: 860px) { .ops-vhero { grid-template-columns: minmax(0, 1fr); } .ops-vhero-img { min-height: 170px; } }

/* ── Overview (panel 6) ── */
.ops-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ops-metrics .ui-metric { padding: 1.1rem 1.25rem 1.15rem; }
.ops-metrics .ui-metric-value { font-size: 2.4rem; }
.ops-metrics-sm { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ops-metrics-sm .ui-metric-value { font-size: 1.7rem; }
@media (max-width: 860px) { .ops-metrics, .ops-metrics-sm { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ops-metrics .ui-metric:first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .ops-metrics .ui-metric-value { font-size: 2rem; } .ops-metrics .ui-metric { padding: .9rem 1rem; } }
.ops-ov-row { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(250px, 1fr); gap: 1rem; margin-bottom: 1rem; align-items: start; }
.ops-ov-row > .ui-panel + .ui-panel { margin-top: 0; }
@media (max-width: 900px) { .ops-ov-row { grid-template-columns: minmax(0, 1fr); } }
.ops-ov-sched .ui-sched-item { grid-template-columns: 92px minmax(0, 1fr) auto; padding: .95rem 1rem; }
.ops-ov-sched .ui-sched-time { font-size: .98rem; }
.ops-ov-sched .ui-sched-title { font-size: .98rem; }
@media (max-width: 520px) { .ops-ov-sched .ui-sched-item { grid-template-columns: minmax(0, 1fr) auto; } }
.ui-shopstatus .state { font-size: 2.5rem; letter-spacing: -0.02em; }
.ops-shop-hours { color: var(--text); font-size: .95rem; margin: .35rem 0 .9rem; line-height: 1.45; }
.ops-ov-shop a.ui-mini { text-decoration: none; color: inherit; padding: 1rem; }
.ops-ov-shop a.ui-mini:hover { border-color: var(--gold-metal); }
.ops-ov-shop .ui-mini b { font-size: 2.1rem; min-width: 1.4ch; }
.ops-ov-shop .ui-mini span { display: block; color: var(--text); font-size: .9rem; }
.ops-ov-shop .ui-mini span .ui-ico { color: var(--gold-metal); vertical-align: -2px; }
.ops-ov-shop .ui-mini span .ops-block { color: var(--muted); font-size: .8rem; margin-top: .15rem; }
.ops-section-title { display: flex; align-items: center; gap: .55rem; margin: 2rem 0 .9rem; font-size: 1.15rem !important; }
.ops-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.ops-stat { display: grid; gap: .1rem; background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius-m); padding: .8rem .95rem; color: var(--text); text-decoration: none; }
.ops-stat:hover { border-color: var(--gold-metal); color: var(--text); }
.ops-stat b { font-size: 1.55rem; font-weight: 800; color: var(--dim); line-height: 1.1; font-variant-numeric: tabular-nums; }
.ops-stat.is-hot b { color: var(--gold); }
.ops-stat span { font-size: .86rem; font-weight: 600; }
.ops-stat small { color: var(--dim); font-size: .76rem; }
.ops-queues { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1rem; align-items: start; }
.ops-queues > .ui-panel + .ui-panel { margin-top: 0; }
.ops-queues .ui-empty { padding: 1.3rem 1rem; }
.ops-queues .ui-empty-ico { width: 34px; height: 34px; margin-bottom: .35rem; border-color: rgba(69, 192, 118, .5); color: var(--ok); }
.ops-queues .ui-empty h3 { font-size: .92rem; color: var(--muted); font-weight: 600; }

/* ── Appointment detail ── */
.ops-action-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.ops-action-grid .btn { flex: 1 1 180px; }
.ops-rtl-sub { display: block; color: var(--muted); font-weight: 500; font-size: .85rem; }
.ops-actions-panel { border-color: rgba(201, 154, 78, .35); }

/* ── Calendar (panel 7) ── */
.ops-cal-bar { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.ops-cal-bar .ops-cal-today { min-height: 40px; }
.ops-cal-period { flex: 1; text-align: center; margin: 0; font-size: 1.2rem !important; font-weight: 700; min-width: 0; }
.ops-cal-wrap { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--charcoal); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.ops-tg { --cols: 7; --hpx: 52px; --colmin: 118px; display: grid; grid-template-columns: 64px repeat(var(--cols), minmax(var(--colmin), 1fr)); min-width: calc(64px + var(--cols) * var(--colmin)); }
.ops-tg-corner { border-bottom: 1px solid var(--line); background: var(--black-2); }
.ops-tg-h { border-bottom: 1px solid var(--line); border-left: 1px solid var(--line-soft); background: var(--black-2); padding: .55rem .4rem; text-align: center; color: var(--muted); font-size: .82rem; display: grid; gap: .1rem; justify-items: center; }
.ops-tg-hbtn { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: .1rem .4rem; border-radius: 6px; display: inline-flex; gap: .35rem; align-items: baseline; }
.ops-tg-hbtn:hover { color: var(--white); }
.ops-tg-wd { font-weight: 600; }
.ops-tg-dn { font-weight: 800; font-size: 1rem; color: var(--white); }
.ops-tg-h.today .ops-tg-dn { background: var(--gold-fill); color: #141000; border-radius: 99px; padding: 0 .45rem; }
.ops-tg-h.today .ops-tg-wd { color: var(--gold); }
.ops-tg-sub { font-size: .7rem; color: var(--dim); }
.ops-tg-times { position: relative; border-right: 1px solid var(--line); }
.ops-tg-times span { position: absolute; right: 8px; transform: translateY(-50%); font-size: .74rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.ops-tg-times span:first-child { transform: none; top: 3px !important; }
.ops-tg-col { position: relative; border-left: 1px solid var(--line-soft); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--hpx) - 1px), var(--line) calc(var(--hpx) - 1px), var(--line) var(--hpx)); }
.ops-tg-col:first-of-type { border-left: 0; }
.cal-off { position: absolute; left: 0; right: 0; pointer-events: none; background: repeating-linear-gradient(135deg, var(--line-soft), var(--line-soft) 4px, transparent 4px, transparent 8px); }
.ops-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--bad); z-index: 3; pointer-events: none; }
.ops-now::before { content: ''; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); }
.cal-ev.ops-ev { position: absolute; display: flex; flex-direction: column; gap: .15rem; padding: 7px 10px; border-radius: 8px; overflow: hidden; color: #fff; text-decoration: none; font-size: .82rem; line-height: 1.25; z-index: 1; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); right: auto; }
.cal-ev.ops-ev.is-short { padding: 2px 8px; justify-content: center; }
.ops-ev-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ops-ev-time { font-weight: 500; opacity: .92; white-space: nowrap; }
.ops-ev-sub { font-weight: 500; opacity: .8; font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.cal-ev:hover, a.cal-ev:focus-visible { outline: 2px solid var(--white); outline-offset: 1px; z-index: 4; filter: brightness(1.08); color: #fff; }
.cal-ev.st-blocked { color: #FFE3E3; }
.cal-ev.st-external { color: #C9CBD0; }
/* Month grid */
.ops-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 560px; }
.ops-month-h { padding: .55rem; text-align: center; font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--black-2); border-bottom: 1px solid var(--line); }
.ops-mcell { min-height: 118px; padding: .4rem; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: .3rem; cursor: pointer; min-width: 0; }
.ops-mcell:nth-child(7n) { border-right: 0; }
.ops-mcell:hover { background: var(--gold-wash); }
.ops-mcell.out { background: var(--black-2); }
.ops-mcell.out .ops-mday { color: var(--dim); }
.ops-mcell.closed .ops-mday { color: var(--dim); }
.ops-mday { align-self: flex-start; background: none; border: 0; color: var(--white); font: 700 .86rem var(--font); min-width: 28px; height: 28px; border-radius: 99px; cursor: pointer; padding: 0 .35rem; }
.ops-mday:hover { background: var(--graphite); }
.ops-mcell.today .ops-mday { background: var(--gold-fill); color: #141000; }
.ops-mchips { display: grid; gap: 3px; min-width: 0; }
.cal-ev.ops-mchip { position: static; display: block; font-size: .72rem; line-height: 1.3; padding: 2px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; color: #fff; box-shadow: none; }
.ops-mchip-t { font-weight: 800; }
.ops-mmore { font-size: .72rem; color: var(--muted); font-weight: 600; padding-left: 4px; }
@media (max-width: 700px) {
  .ops-month { min-width: 0; }
  .ops-mcell { min-height: 72px; padding: .25rem; }
  .cal-ev.ops-mchip { font-size: 0; height: 6px; padding: 0; border-radius: 3px; }
  .ops-mmore { font-size: .64rem; padding: 0; }
  .ops-cal-period { font-size: 1rem !important; }
  .ops-tg-times span { font-size: .68rem; right: 5px; }
}
/* Legend (circles like the reference) */
.ops-legend { margin: 1rem 0 1.5rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--charcoal); gap: .5rem 1.4rem; }
i.ops-lg { display: inline-block; width: 13px; height: 13px; border-radius: 50%; flex-shrink: 0; border: 2.5px solid currentColor; }
i.ops-lg.st-pending { color: #E9A52A; }
i.ops-lg.st-confirmed { color: #45C076; }
i.ops-lg.st-progress { color: #3B82F6; }
i.ops-lg.st-multiday { color: #7C5CE0; }
i.ops-lg.st-blocked { color: #E5484D; }
i.ops-lg.st-completed { color: #2F8A52; background: #2F8A52; }
i.ops-lg.st-external { color: #8A8F97; border-style: dashed; }
i.ops-lg.ops-lg-closed { color: var(--dim); border-radius: 3px; background: repeating-linear-gradient(135deg, var(--line), var(--line) 2px, var(--black-2) 2px, var(--black-2) 4px); }
.ops-block-item { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .45rem; min-width: 0; }
.ops-cal-manage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.ops-cal-manage > .ui-panel + .ui-panel { margin-top: 0; }
.ops-cal-manage .ui-panel-head h2, .ops-mt-panel .ui-panel-head h2 { display: inline-flex; gap: .5rem; align-items: center; }
.ops-cal-manage .ui-panel-head .ui-ico, .ops-mt-panel .ui-panel-head .ui-ico { color: var(--gold-metal); }
@media (max-width: 960px) { .ops-cal-manage { grid-template-columns: minmax(0, 1fr); } }

/* ── Work order header band (panel 8) ── */
.ops-hero { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-l); background: radial-gradient(circle at 80% 40%, #2A241A 0%, #121314 55%, #0A0A0B 100%); min-height: 260px; margin: .3rem 0 1rem; display: flex; align-items: center; }
.ops-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.ops-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 8, 8, .97) 0%, rgba(8, 8, 8, .9) 34%, rgba(8, 8, 8, .45) 62%, rgba(8, 8, 8, .12) 100%); pointer-events: none; }
.ops-hero-body { position: relative; z-index: 1; padding: clamp(1.1rem, 3vw, 1.8rem); display: grid; gap: .7rem; max-width: 560px; min-width: 0; }
.ops-hero-body h1 { font-size: clamp(1.6rem, 3vw, 2.2rem) !important; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.ops-hero-body .ui-badge-gold { font-size: .8rem; padding: .42rem .65rem; }
.ops-hero-veh { color: var(--text); font-size: .98rem; line-height: 1.4; }
.ops-hero-veh a { color: var(--white); font-weight: 600; text-decoration: none; }
.ops-hero-veh a:hover { color: var(--gold); }
.ops-hero .ops-person { margin-top: .35rem; }
.ops-hero .ops-avatar { width: 56px !important; height: 56px !important; font-size: 1.15rem !important; }
@media (max-width: 640px) { .ops-hero::after { background: linear-gradient(180deg, rgba(8, 8, 8, .7) 0%, rgba(8, 8, 8, .92) 55%); } .ops-hero { min-height: 0; } }
.ops-now-state { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 .9rem; }
/* Timeline log */
.ops-log { list-style: none; margin: 0; padding: 0; }
.ops-log > li { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: .85rem; padding-bottom: 1rem; }
.ops-log > li::before { content: ''; position: absolute; left: 12px; top: 28px; bottom: 2px; width: 2px; background: var(--line); }
.ops-log > li:last-child::before { display: none; }
.ops-log .ui-act-ico { background: var(--charcoal); }
.ops-log-body { min-width: 0; display: grid; gap: .2rem; }
.ops-log-when { color: var(--dim); font-size: .8rem; }
.ops-est-right { display: inline-flex; flex-direction: column; align-items: flex-end; gap: .3rem; }

/* ── Estimate editor (panel 9) ── */
.ops-rev { color: var(--muted); font-weight: 600; font-size: .6em; margin-left: .4rem; }
.ops-est-veh { color: var(--text); font-weight: 600; }
.ops-est-status .ui-badge { font-size: .82rem; padding: .5rem .8rem; }
.ops-est-status .ui-badge-warn { background: #F7C97A; color: #2A1A00; }
.ops-preview { font-size: .88rem; }

/* ── Tracking board ── */
.ops-board { display: grid; grid-template-columns: repeat(5, minmax(196px, 1fr)); gap: .8rem; overflow-x: auto; padding: 1rem 0 .75rem; align-items: start; scrollbar-width: thin; }
.ops-board-col { --tone: var(--info); background: var(--black-2); border: 1px solid var(--line); border-top: 3px solid var(--tone); border-radius: var(--radius-m); padding: .8rem; min-width: 0; }
.ops-board-col.tone-gold { --tone: var(--gold); } .ops-board-col.tone-warn { --tone: #E9A52A; } .ops-board-col.tone-violet { --tone: var(--violet); } .ops-board-col.tone-ok { --tone: var(--ok); }
.ops-board-col h2 { font-size: .9rem !important; margin: 0 0 .8rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.ops-board-col h2 > span:first-child { display: inline-flex; gap: .45rem; align-items: center; }
.ops-board-col h2 .ui-ico { color: var(--tone); }
.ops-board-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ops-board-card { display: block; background: var(--charcoal); border: 1px solid var(--line); border-radius: 8px; padding: .75rem .85rem; color: var(--text); text-decoration: none; }
.ops-board-card:hover, .ops-board-card:focus-visible { border-color: var(--gold); color: var(--text); }
.ops-board-veh { color: var(--white); font-weight: 600; font-size: .92rem; margin-top: .2rem; }
.ops-board-empty { margin: .2rem 0; text-align: center; padding: 1rem 0; border: 1px dashed var(--line); border-radius: 8px; }
.ops-bays { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: .75rem; }
.ops-bay { border: 1px solid var(--line); border-left: 3px solid var(--ok); border-radius: 8px; padding: .8rem .9rem; background: var(--black-2); min-width: 0; }
.ops-bay.is-occ { border-left-color: var(--violet); }
.ops-bay.is-res { border-left-color: var(--gold); }
.ops-bay strong { display: inline-flex; gap: .4rem; align-items: center; }
.ops-bay strong .ui-ico { color: var(--gold-metal); }
.ops-bay-line { margin: .45rem 0 0; }
@media (max-width: 760px) { .ops-board { grid-template-columns: repeat(5, minmax(78vw, 1fr)); } }
.ops-name-input { min-width: 140px; }
.ops-table-compact input[type='time'] { min-width: 112px; }
.ops-ov-shop .ui-mini span .ui-ico { display: inline-block; margin-right: .2rem; }
@media (max-width: 560px) {
  .ops-acts .ui-act > a, .ops-acts .ui-act > div { grid-template-columns: 26px minmax(0, 1fr); row-gap: .15rem; }
  .ops-acts .ui-act-when { grid-column: 2; }
}

/* ===== 50-admin.css ===== */
/* ── Owner admin sections (sections-admin.tsx) ── */
.adm-env { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .9rem; }
.adm-env code, .adm-copy code { font-size: .85rem; overflow-wrap: anywhere; }
.adm-copy { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; background: var(--black); border: 1px solid var(--line); border-radius: var(--radius-s); padding: .5rem .6rem; }
.adm-copy code { flex: 1 1 200px; min-width: 0; }
.adm-code { background: var(--black); border: 1px solid var(--line); border-radius: var(--radius-s); padding: .75rem .9rem; font-size: .82rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto; margin: .5rem 0; color: var(--text); }
.adm-prompt { max-height: 420px; }
.adm-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; font-size: .93rem; }
.adm-list { list-style: none; margin: 0; padding: 0; }
.adm-list > li { padding: .75rem 0; border-bottom: 1px solid var(--line-soft); min-width: 0; }
.adm-list > li:last-child { border-bottom: 0; }
.adm-fu { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; align-items: flex-start; }
.adm-fu > :first-child { flex: 1 1 260px; }
.adm-detail { display: block; font-size: .8rem; overflow-wrap: anywhere; color: var(--muted); }
.adm-iframe { width: 100%; height: 480px; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; }
.adm-fieldset { border: 1px solid var(--line); border-radius: var(--radius-s); padding: .75rem 1rem; margin: 0; min-width: 0; }
.adm-fieldset legend { padding: 0 .35rem; font-weight: 600; font-size: .92rem; color: var(--white); }
.adm-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem 1rem; max-height: 260px; overflow-y: auto; padding: .25rem 0; }
.adm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.adm-gallery .card + .card { margin-top: 0; }
.adm-int { margin-top: 0 !important; }
.adm-bars { display: flex; align-items: flex-end; gap: 2px; height: 180px; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.adm-bar { flex: 1 1 0; min-width: 1px; height: 100%; display: flex; align-items: flex-end; }
.adm-bar span { display: block; width: 100%; background: var(--gold-fill); border-radius: 2px 2px 0 0; min-height: 0; }
.adm-bar span.zero { background: transparent; }
.adm-axis { display: flex; justify-content: space-between; margin-top: .35rem; }
.adm-cred { display: grid; gap: .5rem; padding: .75rem 0; border-bottom: 1px solid var(--line-soft); }
.adm-warranty { padding-top: .5rem; }
.adm-approve { margin-top: 1rem; padding: 1rem; border: 1px solid rgba(201, 154, 78,.4); border-radius: var(--radius-m); background: var(--gold-wash); display: grid; gap: .75rem; }
@media (max-width: 640px) { .adm-gallery { grid-template-columns: 1fr; } .adm-iframe { height: 380px; } }
.app-main .notice code, .app-main .kv code { overflow-wrap: anywhere; word-break: break-all; }


/* ── Admin redesign (reference panel 6 pattern applied to every admin screen) ── */
.adm-page { display: grid; gap: 1rem; min-width: 0; }
.adm-page > .ui-pagehead { margin-bottom: .2rem; }
.adm-page > * { min-width: 0; }
.adm-page .ui-panel + .ui-panel, .adm-stack .ui-panel + .ui-panel, .adm-grid2 .ui-panel + .ui-panel { margin-top: 0; }
.adm-page > .ui-metrics { margin-bottom: 0; }
.adm-page > .notice, .adm-stack > .notice { margin: 0; }
.adm-page > .ui-tabs { margin-bottom: 0; }
.adm-stack { display: grid; gap: 1rem; min-width: 0; }
.adm-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
@media (max-width: 1100px) { .adm-grid2 { grid-template-columns: 1fr; } }
.adm-anchor { scroll-margin-top: 90px; }
.adm-notice { margin-bottom: 1rem; }

/* Panel titles with metallic-gold icons */
.adm-pt { display: inline-flex; align-items: center; gap: .55rem; }
.adm-pt-ico { color: var(--gold-metal); flex-shrink: 0; }
.adm-tab-ico { color: var(--gold-metal); margin-right: .1rem; }
.ui-tab[aria-selected='true'] .adm-tab-ico { color: var(--gold); }
.ui-panel-actions { align-items: center; }
.ui-pagehead-actions .btn .ui-ico, .btn .ui-ico { flex-shrink: 0; }
.adm-page .ui-pagehead-actions .btn, .adm-page .btn-row .btn { display: inline-flex; align-items: center; gap: .4rem; }

/* Metric cards */
.adm-metrics { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.adm-metrics-dense { grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: .75rem; }
.adm-metrics-dense .ui-metric { padding: .85rem 1rem .9rem; }
.adm-metrics-dense .ui-metric-value { font-size: 1.75rem; }
.adm-metrics .ui-metric-sub .muted { color: var(--dim); }
.adm-metric-word { font-size: 1.65rem; display: inline-block; }
.adm-metric-word.is-ok { color: var(--ok); }
.adm-metric-word.is-warn { color: var(--gold); }
.adm-metric-word.is-off { color: var(--muted); }
.adm-metric-word + * { margin-top: .3rem; }
.adm-mgroup { display: grid; gap: .6rem; min-width: 0; }
.adm-mgroup-title { margin: .2rem 0 0; font-size: .95rem !important; color: var(--text); }

/* Compact selects in panel heads */
.app-main .input.adm-select-sm { min-height: 38px; padding-top: .35rem; padding-bottom: .35rem; width: auto; max-width: 220px; font-size: .9rem; }
.adm-cap, .adm-cap option { text-transform: capitalize; }
.adm-nowrap { white-space: nowrap; }
.adm-range { display: inline-flex; align-items: center; gap: .5rem; }

/* Env/secret checklist rows */
.adm-env { gap: .4rem; }
.adm-env li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; background: var(--black-2); border: 1px solid var(--line-soft); border-radius: 8px; padding: .5rem .7rem; min-width: 0; }
.adm-env-name { min-width: 0; overflow-wrap: anywhere; }
.adm-env code { color: var(--text); background: none; padding: 0; }
.adm-kv { margin-top: 1rem; }

/* Row lists (follow-ups, reviews, errors) styled like the reference schedule rows */
.adm-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.adm-row { background: var(--black-2); border: 1px solid var(--line); border-radius: 8px; padding: .85rem .95rem; min-width: 0; }
.adm-row-title { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .2rem; }
.adm-row-title strong { color: var(--white); margin-right: .2rem; }
.adm-stars { color: var(--gold); letter-spacing: .05em; }
.adm-fu .btn-row { gap: .4rem; }
.adm-actions { gap: .4rem !important; flex-wrap: wrap; }
.adm-codechip { background: var(--black-2); border: 1px solid var(--line); border-radius: 5px; padding: .15rem .4rem; font-size: .8rem; color: var(--gold-soft); white-space: nowrap; }
.adm-gold-num { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.adm-copy { background: var(--black-2); }
.adm-code { background: var(--black-2); }
.adm-sub h3 { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.adm-kicker { color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ui-panel .table-wrap { background: var(--charcoal); }
.ui-panel .table th { background: var(--black-2); }

/* Gallery cards */
.adm-gallery { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.adm-gitem { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.adm-gitem .compare { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
.adm-gitem-body { padding: .9rem 1rem 1rem; }
.adm-gitem-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; margin-bottom: .3rem; }
.adm-gitem-head h3 { margin: 0; }
.adm-chips { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-bottom: .8rem; }

/* Integrations card grid */
.adm-intgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; align-items: start; }
.adm-intgrid .ui-panel + .ui-panel { margin-top: 0; }
.adm-int { margin-top: 0 !important; }
.adm-int-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .85rem; }
.adm-int-head h2 { margin: 0; font-size: 1.02rem; flex: 1 1 auto; min-width: 0; }
.adm-int-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--gold-metal); background: rgba(201, 154, 78, .08); border: 1px solid rgba(201, 154, 78, .35); flex-shrink: 0; }
.adm-int .kv { font-size: .88rem; }
@media (max-width: 420px) { .adm-intgrid, .adm-gallery { grid-template-columns: minmax(0, 1fr); } }

/* Settings */
.adm-settings { display: grid; gap: 0; min-width: 0; }
.adm-settings .ui-tabs { margin-bottom: 1rem; }
.adm-pane[hidden] { display: none; }
.adm-narrow { max-width: 760px; }

/* Audit search */
.adm-search { display: flex; align-items: center; gap: .45rem; flex: 1 1 320px; position: relative; min-width: 0; }
.adm-search .input { padding-left: 2.1rem; min-height: 38px; flex: 1 1 auto; min-width: 0; width: 100%; max-width: 420px; }
.adm-search-ico { position: absolute; left: .7rem; color: var(--dim); pointer-events: none; }
.ui-panel-head .ui-panel-actions:has(.adm-search) { flex: 1 1 320px; justify-content: flex-end; }

/* Analytics chart: gold bars with y-axis gridlines and labeled x-axis */
.adm-chart-sum { color: var(--muted); font-size: .86rem; }
.adm-chart-sum b { color: var(--gold); font-variant-numeric: tabular-nums; }
.adm-chart { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: .5rem; height: 220px; padding-top: 18px; }
.adm-yaxis { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; color: var(--dim); font-size: .74rem; font-variant-numeric: tabular-nums; }
.adm-yaxis span { line-height: 0; }
.adm-plot { position: relative; min-width: 0; }
.adm-grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.adm-grid span { display: block; height: 0; border-top: 1px dashed var(--line); }
.adm-grid span:last-child { border-top: 1px solid var(--dim); }
.adm-plot .adm-bars { position: relative; height: 100%; gap: 3px; padding: 0; border-bottom: 0; }
.adm-bar span { position: relative; background: linear-gradient(180deg, var(--gold-soft), var(--gold) 60%, #C99312); border-radius: 3px 3px 0 0; }
.adm-bar:hover span { background: var(--gold-soft); }
.adm-bar span em { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .7rem; font-weight: 700; color: var(--text); padding-bottom: 2px; font-variant-numeric: tabular-nums; }
.adm-xaxis { position: relative; height: 1.4rem; margin: .4rem 0 0 calc(30px + .5rem); }
.adm-xaxis span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.adm-xaxis span.first { transform: none; left: 0 !important; }
.adm-xaxis span.last { transform: none; left: auto !important; right: 0; }
.adm-details { margin-top: .9rem; }
.adm-details summary { cursor: pointer; color: var(--gold); }
@media (max-width: 520px) {
  .adm-chart { height: 180px; }
  .adm-bar span em { display: none; }
  .adm-xaxis span:not(.first):not(.last) { display: none; }
}
@media (min-width: 761px) {
  .adm-page > .ui-pagehead { flex-wrap: nowrap; align-items: flex-start; }
  .adm-page > .ui-pagehead .ui-pagehead-text { flex: 1 1 auto; }
  .adm-page > .ui-pagehead .ui-pagehead-actions { flex-shrink: 0; padding-top: .35rem; }
}
.adm-metrics-dense { grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); }
@media (min-width: 900px) { .adm-int-wide .adm-env { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.adm-page > p { max-width: none; }
@media (max-width: 640px) {
  .adm-metrics, .adm-metrics-dense { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .adm-metrics .ui-metric { padding: .8rem .85rem .85rem; }
  .adm-metrics .ui-metric-value { font-size: 1.6rem; }
  .adm-metrics .ui-metric-label { font-size: .8rem; }
  .adm-metrics .ui-metric-sub { font-size: .74rem; }
  .adm-metric-word { font-size: 1.25rem; }
  table.adm-wide { min-width: 680px; }
  .adm-env li { flex-wrap: wrap; }
}
