:root {
  --demo-ink: #132b45;
  --demo-navy: #082f62;
  --demo-blue: #1766d1;
  --demo-red: #d52b2b;
  --demo-muted: #687b90;
  --demo-line: #e1e8f0;
  --demo-paper: #f4f7fb;
  --demo-green: #14805e;
}

body.cm-demo-page { margin: 0; min-height: 100vh; color: var(--demo-ink); background: var(--demo-paper); font-family: var(--font-family-ui, Inter, Arial, sans-serif); }
.cm-demo-page *, .cm-demo-page *::before, .cm-demo-page *::after { box-sizing: border-box; }
.cm-demo-page button, .cm-demo-page input, .cm-demo-page select { font: inherit; }
.cm-demo-page button { cursor: pointer; }
.cm-demo-page a { color: inherit; }
.demo-skip-link { position: fixed; z-index: 50; top: -60px; left: 16px; padding: 10px 14px; border: 2px solid var(--demo-blue); border-radius: 8px; background: #fff; color: var(--demo-navy); font-weight: 700; }
.demo-skip-link:focus { top: 12px; }
.demo-topbar { display: flex; min-height: 78px; align-items: center; gap: 22px; padding: 12px max(24px, calc((100vw - 1440px) / 2 + 32px)); border-bottom: 1px solid var(--demo-line); background: #fff; }
.demo-brand { display: inline-flex; flex: 0 0 auto; align-items: center; }
.demo-brand img { width: 172px; height: auto; }
.demo-topbar-label { display: inline-flex; align-items: center; gap: 8px; margin: 0 auto 0 0; color: #35516e; font-size: .69rem; font-weight: 850; letter-spacing: .1em; }
.demo-topbar-label span { width: 8px; height: 8px; border-radius: 50%; background: var(--demo-red); }
.demo-topbar-back { color: #4e657f !important; font-size: .8rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.demo-topbar-cta, .demo-main-cta, .demo-sidebar-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 9px; background: var(--demo-red); color: #fff !important; font-size: .82rem; font-weight: 800; text-decoration: none; box-shadow: 0 7px 18px rgba(213,43,43,.16); transition: transform .18s ease, background .18s ease; }
.demo-topbar-cta { min-height: 42px; padding: 10px 15px; white-space: nowrap; }
.demo-topbar-cta:hover, .demo-main-cta:hover, .demo-sidebar-cta:hover { transform: translateY(-1px); background: #bb2026; }
.demo-page-shell { width: min(100%, 1504px); margin: 0 auto; padding: 26px 32px 54px; }
.demo-safety-note { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid #cbdcf0; border-radius: 11px; background: #edf5ff; color: #345473; }
.demo-safety-icon { display: grid; width: 23px; height: 23px; flex: 0 0 23px; place-items: center; border-radius: 50%; background: #d8e9ff; color: var(--demo-blue); font-family: Georgia, serif; font-weight: 800; }
.demo-safety-note p { flex: 1; margin: 0; font-size: .78rem; line-height: 1.5; }
.demo-safety-note strong { color: var(--demo-navy); }
.demo-synthetic-tag, .demo-synthetic-label { padding: 6px 8px; border-radius: 5px; background: #fff; color: #54708d; font-size: .58rem; font-weight: 850; letter-spacing: .08em; white-space: nowrap; }
.demo-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 39px 4px 30px; }
.demo-eyebrow, .demo-kicker { margin: 0 0 8px; color: #2d66a9; font-size: .64rem; font-weight: 850; letter-spacing: .11em; }
.demo-intro h1 { margin: 0; color: var(--demo-navy); font-family: var(--font-family-display, Inter, Arial, sans-serif); font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -.052em; line-height: 1.07; }
.demo-intro h1 span { color: var(--demo-red); }
.demo-intro > div > p:last-child { max-width: 650px; margin: 12px 0 0; color: #5b6f85; font-size: .94rem; line-height: 1.6; }
.demo-main-cta { min-height: 48px; margin-bottom: 3px; padding: 12px 17px; }
.demo-app-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.demo-sidebar, .demo-panel { border: 1px solid var(--demo-line); border-radius: 13px; background: #fff; box-shadow: 0 5px 22px rgba(20,48,80,.035); }
.demo-sidebar { position: sticky; top: 14px; overflow: hidden; padding: 13px; }
.demo-profile-card { display: flex; align-items: center; gap: 9px; padding: 10px 8px 15px; border-bottom: 1px solid #edf1f5; }
.demo-avatar { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 10px; background: #e7f0ff; color: #145ba9; font-size: .72rem; font-weight: 850; }
.demo-profile-card > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.demo-profile-card strong { overflow: hidden; color: var(--demo-ink); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.demo-profile-card small { color: var(--demo-muted); font-size: .65rem; }
.demo-account-tag { margin-left: auto; padding: 4px 5px; border-radius: 4px; background: #fff0f0; color: #b3272e; font-size: .52rem; font-weight: 850; letter-spacing: .06em; }
.demo-nav { display: grid; gap: 4px; padding: 12px 0; }
.demo-nav-item { display: flex; min-height: 42px; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: #536981; font-size: .77rem; font-weight: 700; text-align: left; }
.demo-nav-item > span { display: grid; width: 21px; place-items: center; color: #72869b; font-size: 1rem; }
.demo-nav-item b { display: grid; min-width: 21px; height: 20px; margin-left: auto; place-items: center; border-radius: 6px; background: #f0f3f7; color: #5b7086; font-size: .62rem; }
.demo-nav-item:hover { background: #f2f6fb; color: var(--demo-navy); }
.demo-nav-item.is-active { background: #eaf2ff; color: var(--demo-navy); }
.demo-nav-item.is-active > span { color: var(--demo-blue); }
.demo-sidebar-foot { display: flex; gap: 9px; align-items: start; padding: 12px 8px; border-top: 1px solid #edf1f5; }
.demo-live-dot { width: 8px; height: 8px; flex: 0 0 8px; margin-top: 4px; border-radius: 50%; background: #24a477; box-shadow: 0 0 0 3px #e8f7f1; }
.demo-sidebar-foot p { margin: 0; color: var(--demo-muted); font-size: .64rem; line-height: 1.5; }
.demo-sidebar-foot strong { color: #305a4d; font-size: .62rem; }
.demo-sidebar-cta { display: flex; min-height: 40px; padding: 9px 10px; font-size: .68rem; }
.demo-content { min-width: 0; }
.demo-view { min-width: 0; }
.demo-view[hidden] { display: none !important; }
.demo-view-heading { display: flex; min-height: 65px; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.demo-view-heading .demo-kicker { margin-bottom: 5px; }
.demo-view-heading h2 { margin: 0; color: var(--demo-navy); font-family: var(--font-family-display, Inter, Arial, sans-serif); font-size: clamp(1.36rem, 2.2vw, 1.8rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.2; }
.demo-view-heading > div > p:last-child { margin: 6px 0 0; color: #697d92; font-size: .79rem; line-height: 1.45; }
.demo-date-chip { padding: 8px 11px; border: 1px solid var(--demo-line); border-radius: 7px; color: #60758c; font-size: .66rem; font-weight: 650; white-space: nowrap; }
.demo-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 15px; }
.demo-metric { display: flex; min-width: 0; align-items: center; gap: 11px; padding: 15px; border: 1px solid var(--demo-line); border-radius: 11px; background: #fff; }
.demo-metric-icon { display: grid; width: 37px; height: 37px; flex: 0 0 37px; place-items: center; border-radius: 9px; font-size: 1rem; font-weight: 800; }
.demo-metric-icon.blue, .demo-tool-symbol.blue { background: #eaf2ff; color: #1766d1; }
.demo-metric-icon.red, .demo-tool-symbol.red { background: #fff0f0; color: #c7353a; }
.demo-metric-icon.green { background: #eaf7f1; color: #13805d; }
.demo-metric > div { min-width: 0; flex: 1; }
.demo-metric p { overflow: hidden; margin: 0 0 4px; color: #6b7e92; font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.demo-metric strong { display: block; color: var(--demo-navy); font-family: var(--font-family-display, Inter, Arial, sans-serif); font-size: 1.35rem; line-height: 1.1; }
.demo-metric small { color: #8292a2; font-size: .6rem; }
.demo-metric-trend { align-self: start; padding: 5px 6px; border-radius: 5px; background: #eef8f3; color: #187754; font-size: .61rem; font-weight: 800; white-space: nowrap; }
.demo-metric-trend small { display: block; margin-top: 2px; color: #688477; font-size: .52rem; font-weight: 600; }
.demo-overview-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); gap: 14px; }
.demo-panel { min-width: 0; padding: 18px; }
.demo-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.demo-panel-heading h3 { margin: 0; color: var(--demo-ink); font-size: .88rem; font-weight: 800; }
.demo-panel-heading p { margin: 4px 0 0; color: #8290a0; font-size: .65rem; }
.demo-text-action { border: 0; background: none; color: #175ca8; font-size: .65rem; font-weight: 750; white-space: nowrap; }
.demo-mini-row { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #edf1f5; }
.demo-car-art { display: grid; width: 45px; height: 38px; flex: 0 0 45px; place-items: center; border-radius: 7px; background: linear-gradient(145deg,#eaf2fa,#f7f9fb); color: #45627f; }
.demo-car-art img { width: 30px; height: 24px; object-fit: contain; }
.demo-mini-car-copy { display: grid; min-width: 0; flex: 1; gap: 3px; }
.demo-mini-car-copy strong { overflow: hidden; color: #243c55; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.demo-mini-car-copy small { color: #8290a0; font-size: .6rem; }
.demo-status-pill { padding: 5px 7px; border-radius: 5px; background: #eaf7f1; color: #247455; font-size: .56rem; font-weight: 750; white-space: nowrap; }
.demo-status-pill.reserved { background: #fff5e5; color: #92631a; }
.demo-status-pill.draft { background: #f0f3f7; color: #63768b; }
.demo-activity-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.demo-activity-list li { display: flex; gap: 9px; align-items: flex-start; padding: 12px 0; border-top: 1px solid #edf1f5; }
.demo-activity-mark { display: grid; width: 26px; height: 26px; flex: 0 0 26px; place-items: center; border-radius: 7px; font-size: .75rem; font-weight: 800; }
.demo-activity-mark.red { background: #fff0f0; color: var(--demo-red); }
.demo-activity-mark.blue { background: #eaf2ff; color: var(--demo-blue); }
.demo-activity-mark.green { background: #eaf7f1; color: var(--demo-green); }
.demo-activity-list li div { display: grid; gap: 4px; }
.demo-activity-list strong { color: #314a63; font-size: .65rem; line-height: 1.4; }
.demo-activity-list small { color: #8290a0; font-size: .59rem; }
.demo-inline-hint { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border: 1px solid #d9e8f9; border-radius: 9px; background: #f5f9ff; }
.demo-inline-hint > span { color: #2471cb; font-size: 1rem; }
.demo-inline-hint p { flex: 1; margin: 0; color: #5d738a; font-size: .68rem; line-height: 1.5; }
.demo-inline-hint strong { color: #284967; }
.demo-inline-hint button { border: 0; background: none; color: #135cae; font-size: .66rem; font-weight: 800; white-space: nowrap; }
.demo-content-footer { display: flex; justify-content: space-between; gap: 14px; margin-top: 18px; padding: 13px 3px 0; border-top: 1px solid #e1e8f0; color: #8290a0; font-size: .62rem; }
.demo-content-footer a { color: #526e8a; font-weight: 700; text-decoration: none; }
.demo-content-footer .demo-content-register { color: #b3272e; font-weight: 800; }
.demo-nav { max-height: min(68vh, 690px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.demo-module-preview { max-width: 760px; padding: clamp(22px, 4vw, 38px); }
.demo-module-preview h3 { margin: 0 0 9px; color: var(--demo-navy); font-family: var(--font-family-display, Inter, Arial, sans-serif); font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.demo-module-preview > p:not(.demo-kicker) { max-width: 620px; color: #536b84; line-height: 1.6; }
.demo-module-preview-note { display: grid; gap: 5px; margin: 22px 0; padding: 15px 17px; border: 1px solid #d9e8f9; border-radius: 9px; background: #f5f9ff; color: #536b84; line-height: 1.55; }
.demo-module-preview-note strong { color: var(--demo-navy); }
.demo-module-register { width: fit-content; text-decoration: none; }
.cm-demo-page a.demo-primary-button { color: #fff; }
.cm-demo-page a.demo-primary-button:hover { color: #fff; background: #124c8d; }
.demo-inventory-panel { padding: 15px; }
.demo-inventory-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 15px; }
.demo-search { display: flex; min-width: min(100%, 230px); min-height: 38px; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #dce4ed; border-radius: 7px; color: #8190a0; }
.demo-search > span:first-child { font-size: 1.1rem; }
.demo-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--demo-ink); font-size: .72rem; }
.demo-search:focus-within { border-color: #5591d2; box-shadow: 0 0 0 3px rgba(23,102,209,.12); }
.demo-filter-group { display: flex; flex-wrap: wrap; gap: 5px; }
.demo-filter-group button { min-height: 34px; padding: 6px 9px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #6c7e91; font-size: .64rem; font-weight: 700; }
.demo-filter-group button span { margin-left: 4px; color: #8c9bab; }
.demo-filter-group button[aria-pressed="true"] { border-color: #dce7f4; background: #f1f6fc; color: #164c83; }
.demo-vehicle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.demo-vehicle-card { overflow: hidden; border: 1px solid #e4eaf0; border-radius: 9px; background: #fff; }
.demo-vehicle-visual { display: grid; height: 118px; place-items: center; background: linear-gradient(135deg,#eaf1f8,#f7f9fc); }
.demo-vehicle-visual img { width: 92px; height: 62px; object-fit: contain; opacity: .86; }
.demo-vehicle-copy { padding: 12px; }
.demo-vehicle-title-row { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.demo-vehicle-title-row h3 { margin: 0; color: #203a56; font-size: .79rem; line-height: 1.35; }
.demo-vehicle-copy > p { margin: 6px 0 10px; color: #75869a; font-size: .63rem; }
.demo-vehicle-price { color: var(--demo-navy); font-size: .88rem; font-weight: 850; }
.demo-vehicle-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 9px; color: #75869a; font-size: .59rem; }
.demo-status { min-height: 1.2em; margin: 12px 2px 0; color: #73869a; font-size: .66rem; }
.demo-empty-state { grid-column: 1 / -1; padding: 26px; border: 1px dashed #d6e0eb; border-radius: 9px; color: #708398; font-size: .76rem; text-align: center; }
.demo-pipeline-summary { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 13px; }
.demo-pipeline-summary > span { display: inline-flex; min-height: 34px; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--demo-line); border-radius: 7px; background: #fff; color: #667b91; font-size: .64rem; }
.demo-pipeline-summary b { color: var(--demo-navy); }
.pipeline-dot { width: 7px; height: 7px; border-radius: 50%; background: #98a6b4; }
.pipeline-dot.new { background: #d99024; }
.pipeline-dot.active { background: #2872c3; }
.pipeline-dot.visit { background: #288664; }
.demo-contact-list { display: grid; gap: 9px; }
.demo-contact-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(155px,.45fr); align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--demo-line); border-radius: 10px; background: #fff; }
.demo-contact-person { display: flex; align-items: center; gap: 11px; min-width: 0; }
.demo-contact-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 50%; background: #edf2f8; color: #536d86; font-size: .72rem; font-weight: 800; }
.demo-contact-info { display: grid; min-width: 0; gap: 4px; }
.demo-contact-info strong { color: #283f58; font-size: .77rem; }
.demo-contact-info small { overflow: hidden; color: #77899c; font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.demo-contact-action { display: grid; gap: 5px; }
.demo-contact-action label { color: #697d92; font-size: .61rem; font-weight: 750; }
.demo-contact-action select, .demo-field input, .demo-field select { width: 100%; min-height: 39px; padding: 8px 10px; border: 1px solid #d6e0ea; border-radius: 7px; background: #fff; color: #29425d; font-size: .72rem; }
.demo-contact-action select:focus, .demo-field input:focus, .demo-field select:focus { outline: 3px solid rgba(23,102,209,.16); border-color: #2874cc; }
.demo-tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; }
.demo-tool-card { padding: 20px; }
.demo-tool-symbol { display: grid; width: 37px; height: 37px; margin-bottom: 17px; place-items: center; border-radius: 9px; font-size: .89rem; font-weight: 850; }
.demo-tool-card .demo-kicker { margin-bottom: 6px; }
.demo-tool-card h3 { margin: 0; color: var(--demo-navy); font-size: .97rem; }
.demo-tool-card > p:not(.demo-kicker) { margin: 7px 0 16px; color: #718397; font-size: .7rem; line-height: 1.5; }
.demo-field { display: grid; min-width: 0; gap: 6px; margin: 11px 0; }
.demo-field label { color: #435a72; font-size: .66rem; font-weight: 750; }
.demo-primary-button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; margin-top: 7px; padding: 9px 13px; border: 0; border-radius: 7px; background: var(--demo-navy); color: #fff; font-size: .72rem; font-weight: 800; }
.demo-primary-button:hover { background: #124c8d; }
.demo-generated-output { margin-top: 14px; padding: 12px; border: 1px solid #e1e8f0; border-radius: 8px; background: #f7f9fc; }
.demo-generated-output .demo-kicker { margin-bottom: 6px; font-size: .57rem; }
.demo-generated-output > p:last-child { margin: 0; color: #435b73; font-size: .72rem; line-height: 1.55; }
.demo-finance-result { display: grid; gap: 6px; margin-top: 16px; padding: 14px; border: 1px solid #dce8f6; border-radius: 8px; background: #f4f8fd; }
.demo-finance-result > span { color: #526b84; font-size: .66rem; }
.demo-finance-result strong { color: var(--demo-navy); font-family: var(--font-family-display, Inter, Arial, sans-serif); font-size: 1.65rem; line-height: 1; }
.demo-finance-result small { color: #7a8da1; font-size: .6rem; }
.demo-publish-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px,.76fr); align-items: start; gap: 14px; }
.demo-publish-form { padding: 20px; }
.demo-field-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.demo-form-note { display: flex; gap: 8px; margin: 16px 0 10px; color: #687e94; font-size: .65rem; line-height: 1.5; }
.demo-form-note span { display: grid; width: 16px; height: 16px; flex: 0 0 16px; place-items: center; border-radius: 50%; background: #eaf2ff; color: #1766d1; font-weight: 800; }
.demo-listing-preview { overflow: hidden; padding: 0; }
.demo-preview-label { display: flex; align-items: center; gap: 7px; padding: 12px 15px; border-bottom: 1px solid var(--demo-line); color: #697f96; font-size: .59rem; font-weight: 850; letter-spacing: .08em; }
.demo-preview-label span { color: #2874c5; }
.demo-preview-art { display: grid; height: 180px; place-items: center; background: linear-gradient(135deg,#e6eef7,#f6f8fb); }
.demo-preview-art img { width: 140px; height: 100px; object-fit: contain; }
.demo-preview-copy { display: grid; gap: 7px; padding: 16px; }
.demo-preview-copy .demo-kicker { margin: 0; font-size: .57rem; }
.demo-preview-copy h3 { margin: 0; color: var(--demo-navy); font-size: 1.07rem; }
.demo-preview-copy > p:not(.demo-kicker) { margin: 0; color: #72859a; font-size: .68rem; }
.demo-preview-copy > strong { margin-top: 4px; color: var(--demo-navy); font-size: 1.15rem; }
.demo-preview-pill { justify-self: start; margin-top: 3px; padding: 5px 7px; border-radius: 5px; background: #fff0f0; color: #a8292e; font-size: .55rem; font-weight: 850; letter-spacing: .06em; }
.cm-demo-page :focus-visible { outline: 3px solid #3785d6; outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1050px) {
  .demo-page-shell { padding-inline: 22px; }
  .demo-app-layout { grid-template-columns: 240px minmax(0,1fr); gap: 14px; }
  .demo-topbar { padding-inline: 22px; }
  .demo-sidebar { padding: 10px; }
  .demo-overview-grid { grid-template-columns: 1fr; }
  .demo-metrics { gap: 8px; }
  .demo-metric { gap: 8px; padding: 11px; }
  .demo-metric-trend { display: none; }
}
@media (max-width: 760px) {
  .demo-topbar { min-height: 66px; gap: 10px; padding-inline: 16px; }
  .demo-brand img { width: 145px; }
  .demo-topbar-label { margin-right: auto; font-size: .58rem; }
  .demo-topbar-back { display: none; }
  .demo-topbar-cta { min-height: 39px; padding: 9px 10px; font-size: .68rem; }
  .demo-page-shell { padding: 15px 16px 36px; }
  .demo-safety-note { align-items: flex-start; gap: 9px; padding: 11px; }
  .demo-safety-note p { font-size: .69rem; }
  .demo-synthetic-tag { display: none; }
  .demo-intro { align-items: flex-start; flex-direction: column; gap: 16px; padding: 29px 2px 22px; }
  .demo-intro h1 { font-size: clamp(2rem, 8vw, 2.7rem); }
  .demo-intro > div > p:last-child { margin-top: 9px; font-size: .84rem; }
  .demo-main-cta { min-height: 44px; }
  .demo-app-layout { grid-template-columns: 1fr; gap: 13px; }
  .demo-sidebar { position: static; padding: 8px; }
  .demo-profile-card, .demo-sidebar-foot, .demo-sidebar-cta { display: none; }
  .demo-nav { display: flex; overflow-x: auto; gap: 4px; padding: 0; scrollbar-width: thin; }
  .demo-nav-item { min-height: 40px; flex: 0 0 auto; gap: 6px; padding: 8px 10px; font-size: .68rem; white-space: nowrap; }
  .demo-nav-item > span { width: auto; }
  .demo-view-heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 13px; }
  .demo-view-heading h2 { font-size: 1.42rem; }
  .demo-date-chip { font-size: .61rem; }
  .demo-metrics { grid-template-columns: 1fr; gap: 7px; }
  .demo-metric { padding: 10px 12px; }
  .demo-metric-trend { display: block; margin-left: auto; }
  .demo-overview-grid, .demo-tools-grid, .demo-publish-grid { grid-template-columns: 1fr; }
  .demo-inline-hint { align-items: flex-start; flex-wrap: wrap; }
  .demo-inline-hint p { flex-basis: calc(100% - 35px); }
  .demo-inline-hint button { margin-left: 28px; }
  .demo-content-footer { flex-direction: column; }
  .demo-inventory-tools { align-items: stretch; }
  .demo-search { width: 100%; }
  .demo-filter-group { overflow-x: auto; flex-wrap: nowrap; }
  .demo-filter-group button { flex: 0 0 auto; }
  .demo-vehicle-grid { gap: 8px; }
  .demo-vehicle-visual { height: 95px; }
  .demo-vehicle-title-row { flex-direction: column; }
  .demo-contact-card { grid-template-columns: 1fr; gap: 12px; }
  .demo-contact-action select { min-height: 42px; }
  .demo-pipeline-summary { gap: 6px; }
  .demo-pipeline-summary > span { font-size: .59rem; }
}
@media (max-width: 420px) {
  .demo-topbar { flex-wrap: wrap; }
  .demo-topbar-label { font-size: .53rem; }
  .demo-topbar-cta { font-size: .62rem; }
  .demo-page-shell { padding-inline: 12px; }
  .demo-vehicle-grid { grid-template-columns: 1fr; }
  .demo-field-row { grid-template-columns: 1fr; gap: 0; }
  .demo-filter-group button { padding-inline: 7px; font-size: .59rem; }
  .demo-panel { padding: 14px; }
  .demo-listing-preview { padding: 0; }
  .demo-content-footer { font-size: .59rem; }
}

/* Contrast and hierarchy pass for small labels and secondary copy. */
.demo-app-layout { grid-template-columns: 300px minmax(0, 1fr); }
.demo-preview-label, .demo-content-footer, .demo-panel-heading p,
.demo-mini-car-copy small, .demo-metric small, .demo-activity-list small,
.demo-vehicle-copy > p, .demo-vehicle-meta, .demo-status,
.demo-contact-info small, .demo-contact-action label, .demo-finance-result small,
.demo-preview-copy > p:not(.demo-kicker) { color: #536981; }
.demo-view-heading > div > p:last-child, .demo-tool-card > p:not(.demo-kicker),
.demo-form-note, .demo-filter-group button, .demo-pipeline-summary > span,
.demo-search, .demo-search input { color: #536981; }
.demo-filter-group button span { color: #526981; }
.demo-empty-state { color: #536981; }
.demo-metric-trend small { color: #3f6557; }
.demo-status-pill.reserved { color: #79500e; }
.cm-demo-page .demo-primary-button { color: #fff; }
.cm-demo-page .demo-primary-button:hover { color: #fff; background: #124c8d; }
.cm-demo-page a.demo-primary-button, .cm-demo-page a.demo-primary-button:visited,
.cm-demo-page a.demo-primary-button:hover, .cm-demo-page a.demo-primary-button:focus-visible { color: #fff; }

@media (max-width: 1050px) {
  .demo-app-layout { grid-template-columns: 240px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .demo-app-layout { grid-template-columns: 1fr; }
  .demo-sidebar { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-topbar-cta, .demo-main-cta, .demo-sidebar-cta { transition: none; }
}

/* Demo reading scale: keep utility labels compact, but comfortably legible. */
.demo-topbar-label { font-size: .75rem; }
.demo-topbar-back { font-size: .9rem; }
.demo-topbar-cta, .demo-main-cta, .demo-sidebar-cta { font-size: .9rem; }
.demo-safety-note p, .demo-intro > div > p:last-child { font-size: .95rem; }
.demo-synthetic-tag, .demo-synthetic-label, .demo-eyebrow, .demo-kicker,
.demo-preview-copy .demo-kicker, .demo-generated-output .demo-kicker { font-size: .75rem; }
.demo-profile-card strong { font-size: .9rem; }
.demo-profile-card small, .demo-account-tag, .demo-nav-item b { font-size: .75rem; }
.demo-nav-item { font-size: .9rem; }
.demo-sidebar-foot p, .demo-sidebar-foot strong { font-size: .8rem; }
.demo-view-heading > div > p:last-child { font-size: .95rem; }
.demo-date-chip { font-size: .8rem; }
.demo-metric p, .demo-metric-trend, .demo-panel-heading p, .demo-text-action,
.demo-mini-car-copy small, .demo-status-pill, .demo-activity-list small,
.demo-inline-hint button, .demo-search input, .demo-filter-group button,
.demo-vehicle-copy > p, .demo-vehicle-meta, .demo-status,
.demo-pipeline-summary > span, .demo-contact-info small, .demo-contact-action label,
.demo-field label, .demo-primary-button, .demo-finance-result > span,
.demo-form-note, .demo-preview-label, .demo-preview-copy > p:not(.demo-kicker),
.demo-preview-pill, .demo-content-footer { font-size: .8rem; }
.demo-metric small, .demo-metric-trend small, .demo-panel-heading h3,
.demo-mini-car-copy strong, .demo-activity-list strong, .demo-inline-hint p,
.demo-vehicle-title-row h3, .demo-contact-info strong,
.demo-generated-output > p:last-child, .demo-finance-result small { font-size: .88rem; }
.demo-contact-action select, .demo-field input, .demo-field select,
.demo-search input { font-size: .92rem; }

@media (max-width: 760px) {
  .demo-topbar-label { font-size: .7rem; }
  .demo-topbar-cta { font-size: .82rem; }
  .demo-safety-note p { font-size: .88rem; }
  .demo-nav-item { min-height: 44px; font-size: .88rem; }
  .demo-date-chip, .demo-pipeline-summary > span { font-size: .78rem; }
  .demo-content-footer { font-size: .82rem; }
}
@media (max-width: 420px) {
  .demo-topbar-label { font-size: .68rem; }
  .demo-topbar-cta { font-size: .78rem; }
}
