/* Sophos Automotive — shared application design system.
   Black, white and quiet rules; local fonts keep the preview self-contained. */
@font-face { font-family: "Inter"; src: url("../assets/fonts/Inter-Variable.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/Inter-Italic-Variable.ttf") format("truetype"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "BadScript"; src: url("../assets/fonts/BadScript-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../assets/fonts/JetBrainsMono-Variable.ttf") format("truetype"); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
    /* Secondary text keeps its size/spacing hierarchy without reducing contrast. */
    --ink: #000000;
    --ink-1b: #000000;
    --ink-2: #000000;
    --ink-3: #000000;
    --line: #d8d8d8;
    --line-soft: #e8e8e8;
    --bg: #ffffff;
    --bg-soft: #ffffff;
    --bg-soft-2: #ffffff;
    --paper: #ffffff;
    --surface-muted: #f7f7f7;
    --surface-hover: #f2f2f2;
    --accent: #000000;
    --accent-ink: #ffffff;
    --chrome: #0a0a0a;
    --chrome-2: #1a1a1a;
    --chrome-line: #30302e;
    --chrome-txt: #ffffff;
    --chrome-dim: #ffffff;
    /* Compatibility names retained for existing component consumers. */
    --blue: var(--accent);
    --blue-hi: #343432;
    --blue-press: #000000;
    --blue-soft: #ededed;
    --blue-hover-soft: #dfdfdf;
    --blue-link: #000000;
    --blue-ring: rgba(10,10,10,0.18);
    --brand-orange: var(--accent);
    --green: #32322f;
    --amber: #5f5c55;
    --red: #262522;
    --red-soft: #efefef;
    --r-sm: 4px;
    --r-md: 6px;
    --r-lg: 10px;
    --r-xl: 14px;
    --sh-1: none;
    --sh-2: 0 3px 14px rgba(10,10,10,0.06);
    --sh-3: 0 14px 40px rgba(10,10,10,0.12);
    --nav-w: 260px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    --font-display: "Inter", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    --font-wordmark: "BadScript", cursive;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    height: 100%;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg-soft);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button { font-family: inherit; color: inherit; }
input, select, textarea { font-family: inherit; color: inherit; }
/* Native disabled controls and placeholders must remain as readable as labels. */
:is(button,input,select,textarea):disabled { -webkit-text-fill-color: currentColor; }
input::placeholder, textarea::placeholder { color: var(--ink); opacity: 1; }

#root { height: 100%; }

/* ============================================================
   APP SHELL
   ============================================================ */

.shell {
    display: grid;
    grid-template-columns: var(--nav-w) minmax(0, 1fr);
    height: 100%;
    overflow: hidden;
}


/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
    background: var(--chrome);
    color: var(--chrome-txt);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-right: 1px solid #000;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 24px 20px;
    letter-spacing: -0.01em;
}
.brand-mark {
    width: 30px; height: 30px;
    border-radius: 2px;
    background: var(--brand-orange);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 17px; color: #fff;
    flex: 0 0 auto;
}
.brand-name { font-family: var(--font-wordmark); font-size: 34px; font-weight: 400; line-height: 1.3; letter-spacing: 0; }
.brand-name .plus { color: var(--brand-orange); margin: 0 1px; }
.brand-sub {
    font-family: var(--font-mono); font-size: 9px; color: var(--chrome-dim);
    letter-spacing: 0.16em; text-transform: uppercase;
    margin-top: 1px;
}

.nav {
    flex: 1;
    overflow-y: auto;
    padding: 6px 14px 18px;
}
.nav::-webkit-scrollbar { width: 0; }

.nav-group-label {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--chrome-dim);
    padding: 18px 12px 8px;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--chrome-txt);
    text-align: left;
    padding: 9px 12px;
    border-radius: 2px;
    font-size: 14.5px;
    font-weight: 450;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    position: relative;
}
.nav-item:hover { background: rgba(255,255,255,0.07); }
.nav-item.active {
    background: rgba(255,255,255,0.12);
    font-weight: 550;
}
.nav-item.active::before {
    content: "";
    position: absolute;
    left: -14px; top: 50%; transform: translateY(-50%);
    width: 3px; height: 20px; border-radius: 0 3px 3px 0;
    background: var(--chrome-txt);
}
.nav-item .ico { width: 18px; height: 18px; flex: 0 0 auto; opacity: 1; }
.nav-item .label { flex: 1; }
.nav-item .count {
    font-size: 11.5px;
    color: var(--chrome-dim);
    background: rgba(255,255,255,0.08);
    padding: 1px 7px;
    border-radius: 2px;
    font-variant-numeric: tabular-nums;
}
.nav-item.active .count { color: #fff; background: var(--blue); }

.nav-user {
    border-top: 1px solid var(--chrome-line);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 11px;
}
.avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, #3a3a3c, #58585c);
    color: #fff; font-weight: 600; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 auto;
}
.nav-user .who { line-height: 1.25; min-width: 0; }
.nav-user .who .nm { font-size: 13.5px; font-weight: 550; }
.nav-user .who .em { font-size: 12px; color: var(--chrome-dim);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   MAIN COLUMN
   ============================================================ */

.main {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--bg-soft);
}

.topbar {
    height: 60px;
    flex: 0 0 auto;
    background: rgba(255,255,255,0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 28px;
    z-index: 5;
}
.topbar .crumb { font-size: 14px; color: var(--ink-2); }
.topbar .crumb b { color: var(--ink); font-weight: 600; }
.topbar .spacer { flex: 1; }

.env-pill {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12.5px; font-weight: 550;
    padding: 5px 12px; border-radius: 2px;
    border: 1px solid var(--line);
    background: #fff; color: var(--ink-2);
}
.env-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.env-pill.training .dot { background: var(--amber); }
.env-pill.training { color: var(--ink); border-color: #dedede; background: #f7f7f7; }

.search-box {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-soft); border: 1px solid var(--line);
    border-radius: 2px; padding: 7px 14px;
    width: 240px; transition: all 0.15s ease;
}
.search-box:focus-within { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-ring); }
.search-box input { border: 0; background: transparent; outline: none; font-size: 14px; width: 100%; color: var(--ink); }
.search-box svg { color: var(--ink-3); flex: 0 0 auto; }

.scroll {
    flex: 1;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */

.eyebrow {
    font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--blue);
}
.h-hero { font-size: 48px; font-weight: 600; letter-spacing: -0.022em; line-height: 1.05; }
.h-1 { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }
.h-2 { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; }
.h-3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.muted { color: var(--ink-2); }
.tnum { font-variant-numeric: tabular-nums; }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid transparent;
    border-radius: 2px;
    padding: 10px 20px;
    font-size: 14.5px; font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    color: var(--ink);
    background: transparent;
}
.btn:disabled { opacity: 1; cursor: not-allowed; border-style: dashed; border-color: currentColor; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--blue-hi); }
.btn-primary:active:not(:disabled) { background: var(--blue-press); }
.btn-secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-secondary:hover:not(:disabled) { border-color: #b9b9c0; background: var(--surface-hover); }
.btn-ghost { color: var(--blue); }
.btn-ghost:hover { background: var(--blue-soft); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover:not(:disabled) { background: #000; }
.btn-lg { padding: 13px 26px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--blue); font-size: 15px; font-weight: 500;
    cursor: pointer; background: none; border: 0; padding: 0;
}
.link-arrow svg { transition: transform 0.15s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ============================================================
   CARDS
   ============================================================ */

.card {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-1);
}

/* ============================================================
   FORM CONTROLS
   ============================================================ */

.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 13px; font-weight: 550; color: var(--ink); }
.field-label .req { color: var(--blue); margin-left: 2px; }

.input, .select, .textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--r-md);
    padding: 12px 14px;
    font-size: 15px;
    color: var(--ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); opacity: 1; }
.input:focus, .select:focus, .textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px var(--blue-ring);
}
.textarea { resize: none; line-height: 1.5; }
.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236e6e73' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 38px;
    cursor: pointer;
}

.checkrow { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; padding: 4px 0; }
.checkrow input { position: absolute; opacity: 0; pointer-events: none; }
.checkbox {
    width: 20px; height: 20px; border-radius: 2px;
    border: 1.5px solid var(--line); background: #fff;
    flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
    transition: all 0.15s ease; margin-top: 1px;
}
.checkrow input:checked + .checkbox { background: var(--blue); border-color: var(--blue); }
.checkrow input:checked + .checkbox svg { opacity: 1; }
.checkbox svg { opacity: 0; color: #fff; }
.checkrow input:focus-visible + .checkbox { box-shadow: 0 0 0 4px var(--blue-ring); }
.checkrow .ck-text { font-size: 14px; color: var(--ink); line-height: 1.45; }

/* ============================================================
   SHARED SUMMARY TILES
   ============================================================ */

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.metric {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    padding: 22px 24px;
    box-shadow: var(--sh-1);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.metric:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.metric .m-label { font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.metric .m-value { font-size: 44px; font-weight: 600; letter-spacing: -0.02em; margin-top: 6px; line-height: 1; }
.metric .m-foot { font-size: 12.5px; margin-top: 12px; display: flex; align-items: center; gap: 6px; }
.metric .m-foot .trend { font-weight: 600; }
.metric .m-foot .trend.up { color: var(--ink); }
.metric .m-foot .trend.down { color: var(--ink); }
.metric.feature { background: var(--ink); color: #fff; border-color: var(--ink); }
.metric.feature .m-label { color: #fff; }
.metric.feature .m-value { color: #fff; }
.metric.feature:not(.grey) .m-foot .trend { color: #fff; }
.metric.feature.blue { background: var(--blue); border-color: var(--blue); }
.metric.feature.orange { background: var(--brand-orange); border-color: var(--brand-orange); }
.metric.feature.grey { background: var(--bg-soft); border-color: var(--line-soft); color: var(--ink); }
.metric.feature.grey .m-label { color: var(--ink-2); }
.metric.feature.grey .m-value { color: var(--ink); }
.metric.feature.grey .m-foot { color: var(--ink-3); }
.eyebrow-orange { color: var(--brand-orange); }

/* Shared field/filter section heading used by multiple media modules. */
.rail-h {
    font-size: 12px; font-weight: 600; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px;
}

/* ============================================================
   PAGE LAYOUT HELPERS
   ============================================================ */

.page { padding: 36px 44px 60px; max-width: 1180px; margin: 0 auto; width: 100%; }
.page-head { margin-bottom: 28px; }
.section-gap { margin-top: 36px; }

@container (max-width: 820px) {
    .page { padding: 28px 28px 50px; }
}

/* Home module cards */
.module-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.module-card {
    position: relative;
    border-radius: var(--r-xl);
    padding: 30px 32px;
    min-height: 200px;
    cursor: pointer;
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--line-soft);
    background: #fff;
}
.module-card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.module-card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.module-card.soft { background: #fff; }
.module-card .mc-ico {
    width: 44px; height: 44px; border-radius: 2px;
    background: var(--blue-soft); color: var(--blue);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.module-card.dark .mc-ico { background: rgba(255,255,255,0.12); color: #fff; }
.module-card .mc-title { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.module-card .mc-desc { font-size: 14.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.5; max-width: 90%; }
.module-card.dark .mc-desc { color: #fff; }
.module-card .mc-stat { margin-top: auto; padding-top: 22px; display: flex; align-items: baseline; gap: 8px; }
.module-card .mc-stat .v { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.module-card .mc-stat .l { font-size: 13px; color: var(--ink-2); }
.module-card.dark .mc-stat .l { color: #fff; }
.module-card .mc-cta {
    position: absolute; top: 30px; right: 30px;
    color: var(--blue); opacity: 0; transform: translateX(-4px);
    transition: all 0.2s ease;
}
.module-card.dark .mc-cta { color: #fff; }
.module-card:hover .mc-cta { opacity: 1; transform: translateX(0); }

.coming-soon {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 80px 20px; gap: 14px;
}
.coming-soon .cs-ico {
    width: 64px; height: 64px; border-radius: 2px;
    background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--sh-1);
    display: flex; align-items: center; justify-content: center; color: var(--blue);
}

/* Entrance polish — never animates opacity, so content is always visible
   (capture/throttled contexts can freeze the animation clock at frame 0) */
.fade-in { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
    .fade-in { animation: fadeIn 0.4s ease; }
    @keyframes fadeIn { from { transform: translateY(8px); } to { transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
    .metric, .module-card { transition: none !important; }
}

/* ---- design-system type ---- */
.h-hero, .h-1 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.035em; }
.eyebrow { letter-spacing: 0.06em; }
a { color: var(--blue-link); }
a:hover { color: var(--ink); }

/* Main navigation owns channel/provider selection. */
.sophos-nav-tree { display: flex; flex-direction: column; gap: 2px; }
.nav-channel-row { display: flex; align-items: center; gap: 2px; }
.nav-channel-row > .nav-item { flex: 1; min-width: 0; }
.nav-expand { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; height: 38px; border: 0; border-radius: 4px; color: var(--chrome-dim); background: transparent; cursor: pointer; }
.nav-expand:hover, .nav-expand:focus-visible { color: var(--chrome-txt); background: rgba(255,255,255,0.1); }
.nav-providers[hidden] { display: none; }
.nav-providers { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 10px 22px; padding-left: 10px; border-left: 1px solid var(--chrome-line); }
.nav-provider { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 36px; border: 0; border-radius: 4px; padding: 8px 9px; background: transparent; color: var(--chrome-dim); cursor: pointer; text-align: left; font-size: 12px; line-height: 1.35; }
.nav-provider:hover, .nav-provider.active { color: var(--chrome-txt); background: rgba(255,255,255,0.09); }
.nav-provider.active { font-weight: 600; }
.nav-provider-status { flex: 0 0 auto; max-width: 76px; font-family: var(--font-mono); font-size: 8px; line-height: 1.5; letter-spacing: 0.03em; text-transform: uppercase; color: var(--chrome-dim); }
.sidebar-mobile-toggle { display: none; align-items: center; justify-content: center; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); color: var(--ink); cursor: pointer; font-size: 12px; }
.sidebar-backdrop { display: none; }
.provider-onboarding { width: 100%; max-width: 1100px; margin: 0 auto; padding: 42px; overflow-y: auto; }
.provider-onboarding h1 { margin: 10px 0 16px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.04em; }
.provider-onboarding p { max-width: 70ch; color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.provider-status { display: inline-flex; align-items: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; background: var(--bg); color: var(--ink-2); }
.provider-plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0; }
.provider-plan-step { padding: 22px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); }
.provider-plan-step h2, .provider-plan-step h3 { margin: 8px 0 12px; font-size: 17px; letter-spacing: -0.02em; }
.provider-plan-step p { font-size: 13px; }
.demo-context-note { padding: 10px 14px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink-2); font-size: 12px; line-height: 1.55; }
.eyebrow, .nav-group-label, .field-label, .rail-h { text-wrap: pretty; }
.eyebrow, .nav-group-label { font-family: var(--font-mono); }
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sidebar :focus-visible { outline-color: var(--chrome-txt); }
.main { min-width: 0; }
.topbar { min-width: 0; }
::selection { background: var(--ink); color: var(--paper); }
@media (max-width: 1100px) {
    .topbar { height: auto; min-height: 60px; padding: 12px 20px; gap: 8px 12px; flex-wrap: wrap; }
    .topbar > .crumb { flex: 0 0 auto; white-space: nowrap; }
    .topbar > .topbar-slot { flex: 0 1 auto; min-width: 0; max-width: 100%; }
    .topbar > .topbar-slot:has(.tc-crumb select) { order: 2; flex: 1 1 100%; }
    .topbar > .topbar-slot:empty { display: none; }
    .topbar > .spacer { display: none; }
    .topbar > .env-pill { flex: 0 0 auto; margin-left: auto; white-space: nowrap; }
    .topbar .topbar-crumbs, .topbar .topbar-selectors { flex-wrap: wrap; min-width: 0; max-width: 100%; gap: 6px 8px; }
    .topbar .topbar-crumbs > .tc-crumb { min-width: 0; max-width: min(360px, 100%); }
    .topbar .topbar-crumbs .tc-crumb select { min-width: 0; max-width: 100%; box-sizing: border-box; text-overflow: ellipsis; }
    .topbar .topbar-crumbs > .tc-sep { flex: 0 0 auto; }
    .topbar .search-box { width: 180px; }
}
@media (max-width: 900px) {
    .shell { grid-template-columns: minmax(0, 1fr); position: relative; }
    .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(var(--nav-w), 86vw); z-index: 101; transform: translateX(-100%); visibility: hidden; transition: transform 180ms ease, visibility 180ms; }
    .shell.sidebar-open .sidebar { transform: translateX(0); visibility: visible; }
    .sidebar-mobile-toggle { display: inline-flex; flex: 0 0 auto; }
    .shell.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 100; border: 0; background: rgba(10,10,10,0.5); cursor: pointer; }
    .provider-plan { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .topbar { height: auto; min-height: 60px; padding: 12px 16px; gap: 8px; flex-wrap: wrap; }
    .topbar .search-box { order: 4; width: 100%; }
    .topbar-slot, .topbar-selectors, .topbar-crumbs { min-width: 0; max-width: 100%; flex-wrap: wrap; }
    .env-pill { font-size: 10px; padding: 5px 8px; }
    .page, .provider-onboarding { padding: 24px 18px 40px; }
    .module-grid, .metric-grid { grid-template-columns: 1fr; }
    .module-card { padding: 24px; min-height: 180px; }
    .h-hero { font-size: 36px; }
    .h-1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    .sidebar { transition: none; }
    .scroll { scroll-behavior: auto; }
}

.sidebar-close { margin-left: auto; color: var(--chrome-txt); background: transparent; border-color: var(--chrome-line); }

/* Dealership names can be long in personalized workspace navigation. */
.nav-group-label { overflow-wrap: anywhere; }
.topbar > .crumb { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
