/* LLCAR Green: original green, calm daylight surfaces, clear evidence hierarchy. */
:root {
  --brand: #0e7a3b;
  --brand-hover: #086430;
  --brand-dark: #123e2b;
  --brand-soft: #e5f2e9;
  --brand-wash: #f0f7f2;
  --bg: #f6f8f7;
  --surface: #ffffff;
  --ink: #23352c;
  --muted: #5d6c64;
  --line: #dce4df;
  --line-soft: #eaf0ec;
  --warning: #875307;
  --warning-bg: #fff3dc;
  --info: #245f81;
  --info-bg: #eaf3f8;
  --error: #a1322c;
  --error-bg: #fbece9;
  --neutral-bg: #edf0ef;
  --radius: 12px;
  --radius-small: 8px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --z-sticky: 10;
  --z-toast: 40;
  --z-skip: 50;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { max-width: 100%; }
button, select, summary { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 3px solid #26884c; outline-offset: 4px; }
h1:focus, main:focus { outline: none; }
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -.025em; font-weight: 650; }
h2 { font-size: 1.375rem; line-height: 1.35; letter-spacing: -.015em; font-weight: 650; }
h3 { font-size: 1.1rem; line-height: 1.4; font-weight: 650; }
p { max-width: 75ch; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { margin-bottom: 16px; font-size: 1.15rem; font-weight: 650; }
code { overflow-wrap: anywhere; font-size: .875em; }
pre { max-width: 100%; overflow-x: auto; padding: 16px; background: var(--neutral-bg); border-radius: var(--radius-small); font-size: .8125rem; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: var(--z-skip); padding: 12px 18px; color: #fff; background: var(--brand-dark); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); color: #fff; }
.app-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.sidebar { display: flex; flex-direction: column; padding: 30px 18px 20px; background: var(--surface); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 9px; width: fit-content; margin: 0 15px 38px 12px; text-decoration: none; color: var(--brand-dark); }
.brand-wordmark { font-size: 1.58rem; letter-spacing: -.035em; font-weight: 750; line-height: 1; }
.brand-wordmark span { display: block; margin-top: 6px; color: var(--brand); font-size: .61rem; letter-spacing: .24em; font-weight: 650; }
.nav-label { margin: 0 13px 15px; font-size: .74rem; color: var(--muted); }
.main-nav { display: flex; flex-direction: column; gap: 5px; }
.main-nav a { display: flex; gap: 13px; align-items: center; min-height: 46px; padding: 10px 12px; border-radius: 8px; font-size: .88rem; color: var(--muted); text-decoration: none; font-weight: 500; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.main-nav a:hover { background: var(--bg); color: var(--ink); }
.main-nav a.active, .main-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.sidebar-bottom { margin-top: auto; padding-top: 42px; }
.sidebar-note { display: flex; align-items: center; gap: 10px; margin: 0 12px 24px; }
.sidebar-note p { font-size: .82rem; line-height: 1.6; color: var(--muted); }
.sidebar-note strong { color: var(--brand-dark); font-weight: 600; }
.sidebar-version { display: block; border-top: 1px solid var(--line-soft); padding: 17px 4px 0; font-size: .69rem; color: var(--muted); }
.workspace { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 75px; padding: 0 40px; background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.topbar-title { font-size: .88rem; font-weight: 550; }
.environment-mark { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .75rem; }
.environment-mark .icon { width: 16px; height: 16px; }
.sandbox-banner { display: flex; gap: 14px; align-items: baseline; background: #eef2ef; padding: 10px 40px; font-size: .72rem; color: #56655c; border-bottom: 1px solid var(--line-soft); }
.sandbox-banner strong { font-weight: 600; flex-shrink: 0; }
#app-status { margin: 20px 40px 0; padding: 12px 16px; background: var(--info-bg); border: 1px solid #bed2de; border-radius: 8px; color: var(--info); font-size: .875rem; overflow-wrap: anywhere; }
#app-status:empty { display: none; }
#app-status.error { background: var(--error-bg); color: var(--error); border-color: #e7b9b3; }
main { width: 100%; flex: 1; }
.page { max-width: 1550px; margin: 0 auto; padding: 36px 40px 40px; min-width: 0; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-bottom: 28px; }
.page-heading h1 + p { margin-top: 12px; color: var(--muted); font-size: .925rem; }
.page-context { margin-bottom: 9px; color: var(--brand); font-size: .76rem; font-weight: 550; }
.page-heading > .btn, .page-heading > .text-link { flex-shrink: 0; }
.workspace-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 25px; margin: 0 40px; padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .73rem; }
.workspace-footer > :first-child { color: var(--brand-dark); font-weight: 650; }
.workspace-footer a { margin-left: auto; color: var(--muted); }

/* Welcome: original artwork, useful paths, equally visible owner/fleet actions. */
.welcome-page { padding-top: 14px; }
.welcome-hero { display: grid; grid-template-columns: 1.13fr 1fr; gap: 12px; align-items: center; padding: 28px 0 32px; }
.hero-copy { position: relative; z-index: 1; padding: 8px 0 12px; }
.brand-intro { display: flex; align-items: center; gap: 7px; color: var(--brand); font-size: .79rem; margin-bottom: 22px; }
.welcome-hero h1 { font-size: clamp(2.2rem, 3.45vw, 3.8rem); line-height: 1.14; letter-spacing: -.035em; font-weight: 650; max-width: 13em; }
.welcome-hero h1 span { color: var(--brand); }
.hero-description { font-size: 1rem; line-height: 1.7; color: var(--muted); max-width: 47ch; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-footnote { font-size: .74rem; color: var(--muted); margin-top: 15px; }
.hero-art { position: relative; align-self: center; min-width: 0; padding: 0 0 32px; }
.hero-art > img { width: 100%; max-width: 495px; margin: 0 auto; mix-blend-mode: multiply; }
.hero-art figcaption { position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; width: max-content; max-width: 95%; color: var(--brand-dark); font-size: .68rem; line-height: 1.5; }
.small-leaf { display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; width: 25px; height: 25px; background: var(--brand-soft); border-radius: 50%; }
.care-path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 25px 0; gap: 13px; }
.care-path li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.path-step { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: .78rem; font-weight: 650; }
.care-path strong { display: block; font-size: .875rem; font-weight: 650; }
.care-path li div > span { display: block; margin-top: 2px; font-size: .65rem; color: var(--muted); }
.care-path .icon { color: #728477; width: 16px; margin-left: auto; }
.audience-section { padding: 42px 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
.section-heading p { margin-top: 6px; font-size: .85rem; }
.audience-split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 25px; }
.audience-split article { display: flex; gap: 18px; min-width: 0; }
.audience-fleet { border-left: 1px solid var(--line); padding-left: 34px; }
.audience-icon { width: 36px; height: 36px; display: flex; justify-content: center; align-items: center; color: var(--brand); flex-shrink: 0; }
.audience-icon .icon { width: 30px; height: 30px; }
.audience-split h3 { margin-bottom: 8px; }
.audience-split p { font-size: .84rem; line-height: 1.65; color: var(--muted); max-width: 44ch; }
.check-list { display: grid; gap: 8px; list-style: none; margin: 18px 0 21px; font-size: .79rem; color: var(--ink); }
.check-list li { padding-left: 19px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 650; }
.text-link { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: .83rem; font-weight: 600; }
.text-link .icon { width: 18px; height: 18px; transition: transform 160ms var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }
.welcome-evidence { display: grid; grid-template-columns: 1fr 1.1fr; gap: 45px; background: var(--brand-dark); color: #fff; padding: 32px 34px; border-radius: var(--radius); }
.welcome-evidence h2 { font-size: 1.65rem; line-height: 1.35; font-weight: 600; }
.welcome-evidence > div > p { color: #d1e4d7; font-size: .84rem; line-height: 1.7; margin-top: 13px; }
.evidence-principles { padding-top: 3px; }
.evidence-principles p + p { margin-top: 16px; }
.evidence-principles strong { display: block; font-size: .875rem; font-weight: 600; }
.evidence-principles span { display: block; color: #d1e4d7; margin-top: 3px; font-size: .79rem; line-height: 1.55; }
.evidence-principles a { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; color: #fff; font-size: .8rem; text-decoration: none; font-weight: 600; }
.evidence-principles a .icon { width: 17px; height: 17px; }

/* Functional vocabulary shared with the JS-generated controls. */
.dynamic-panel { min-width: 0; }
.dynamic-panel > * + * { margin-top: 22px; }
.panel, .card { padding: 24px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); min-width: 0; }
.panel > h2, .panel > h3, .card > h2, .card > h3 { margin-bottom: 15px; }
.panel > p + p, .card > p + p { margin-top: 10px; }
.panel > p + form, .panel > h2 + .form-grid { margin-top: 20px; }
.panel .panel, .card .card { border: 0; border-radius: 0; padding: 0; background: transparent; }
.grid, .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; min-width: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
label { display: block; font-size: .81rem; color: var(--ink); font-weight: 550; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #b8c6bd; border-radius: var(--radius-small); background: var(--surface); color: var(--ink); font-size: .875rem; transition: border-color 150ms var(--ease), background-color 150ms var(--ease); }
input:not([type="checkbox"]):not([type="radio"]):hover, select:hover, textarea:hover { border-color: #81988a; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
input::placeholder, textarea::placeholder { color: #63726a; opacity: 1; }
textarea { min-height: 100px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--brand); margin: 2px 8px 2px 0; vertical-align: middle; flex-shrink: 0; }
label:has(input[type="checkbox"]), label:has(input[type="radio"]) { display: flex; align-items: flex-start; line-height: 1.6; font-weight: 400; }
input[type="file"] { padding: 7px; background: var(--bg); }
input[type="file"]::file-selector-button { border: 0; padding: 6px 10px; border-radius: 5px; color: var(--brand-dark); background: var(--brand-soft); margin-right: 10px; cursor: pointer; }
[aria-invalid="true"] { border-color: var(--error) !important; background: #fff9f8 !important; }
.field-error { color: var(--error); font-size: .78rem; margin-top: 4px; }
.field small, .field .muted { font-size: .74rem; }
.btn, :where(button:not(.vehicle-card):not(.vehicle-option)) { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 42px; width: fit-content; padding: 10px 17px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: .82rem; font-weight: 600; line-height: 1.4; transition: background-color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease); }
.btn:hover, :where(button:not(.vehicle-card):not(.vehicle-option)):hover { color: var(--brand-dark); background: var(--brand-wash); border-color: #9cbaa6; }
.btn:active, button:active { transform: translateY(1px); }
.btn-primary, button.btn-primary, button[type="submit"] { color: #fff; background: var(--brand); border-color: var(--brand); }
.btn-primary:hover, button.btn-primary:hover, button[type="submit"]:hover { color: #fff; background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-secondary, button.btn-secondary { color: var(--brand-dark); background: var(--surface); border-color: #aac7b3; }
.btn-quiet, button.btn-quiet { background: transparent; border-color: transparent; color: var(--brand); }
.btn .icon { width: 17px; height: 17px; }
.hero-actions .btn { min-height: 47px; }
.actions, .toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.actions { margin-top: 20px; }
.form-grid > .actions { grid-column: 1 / -1; margin-top: 2px; }
.toolbar { justify-content: space-between; margin-bottom: 20px; }
.toolbar select { width: auto; min-width: 170px; }
.muted { color: var(--muted); }
.small { font-size: .78rem; }
.badge { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; padding: 5px 9px; border-radius: 5px; color: var(--muted); background: var(--neutral-bg); font-size: .7rem; font-weight: 600; line-height: 1.45; }
.badge.warning, .notice.warning { color: var(--warning); background: var(--warning-bg); }
.badge.info, .notice.info { color: var(--info); background: var(--info-bg); }
.badge.success, .notice.success { color: var(--brand-hover); background: var(--brand-soft); }
.badge.neutral, .notice.neutral { color: #53615a; background: var(--neutral-bg); }
.badge.error, .notice.error { color: var(--error); background: var(--error-bg); }
.notice { padding: 16px 18px; border-radius: var(--radius-small); color: var(--info); background: var(--info-bg); font-size: .84rem; line-height: 1.6; }
.notice strong { display: block; margin-bottom: 3px; }
.notice p + p { margin-top: 7px; }
.notice .btn { margin-top: 12px; }
.empty-state { padding: 26px; text-align: center; background: var(--bg); border: 1px dashed #b8c6bd; border-radius: var(--radius-small); color: var(--muted); font-size: .86rem; }
.empty-state strong { display: block; margin-bottom: 6px; color: var(--ink); }
.empty-state p { margin-left: auto; margin-right: auto; }
.table-wrap { overflow-x: auto; width: 100%; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .8rem; }
th, td { padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--line-soft); overflow-wrap: anywhere; }
th { font-size: .74rem; font-weight: 600; color: var(--muted); background: var(--bg); white-space: nowrap; }
td { min-width: 95px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f9fbfa; }
td select, td input, td textarea { min-width: 120px; }
td > .badge { white-space: nowrap; }
td .btn, td button { white-space: nowrap; }
td small { display: block; color: var(--muted); margin-top: 4px; }
.metric { padding: 16px 0; min-width: 0; }
.metric-value { display: block; font-size: 1.9rem; font-weight: 650; letter-spacing: -.025em; color: var(--ink); line-height: 1.2; font-variant-numeric: tabular-nums; }
.metric-label { display: block; margin: 0 0 7px; color: var(--muted); font-size: .77rem; }
.metric-value + small { display: block; margin-top: 8px; font-size: .72rem; line-height: 1.6; }
.metric-value small { font-size: .75rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.metric > .badge { margin-top: 8px; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 18px; border-block: 1px solid var(--line); margin-block: 20px; padding-block: 8px; }
.result-grid .metric + .metric { border-left: 1px solid var(--line); padding-left: 20px; }
.positive { color: var(--brand-hover); }
.negative { color: var(--error); }
.signal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.signal-grid > :first-child { grid-column: 1 / -1; }
.chart-panel { min-width: 0; padding: 22px 24px 17px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.chart-title { margin-bottom: 14px; font-size: 1rem; font-weight: 650; }
.chart-caption { color: var(--muted); font-size: .73rem; line-height: 1.55; margin-top: 9px; }
.chart-svg { display: block; width: 100%; height: auto; min-height: 180px; overflow: visible; font-family: inherit; }
.chart-svg text { font-size: 11px; fill: #5d6c64; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .73rem; color: var(--muted); }
.vehicle-picker-field { min-width: 260px; }
.vehicle-picker-field label { font-size: .71rem; margin-bottom: 6px; color: var(--muted); }
.vehicle-picker-field select { font-weight: 600; background: var(--surface); }
.vehicle-card, .vehicle-option { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-align: left; border-radius: var(--radius-small); min-width: 0; transition: border-color 160ms var(--ease), background-color 160ms var(--ease); }
.vehicle-card:hover, .vehicle-option:hover { border-color: #9cbaa6; background: var(--brand-wash); }
.vehicle-card.active, .vehicle-option.active, .vehicle-card[aria-pressed="true"], .vehicle-option[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-wash); }
.vehicle-card h3 { font-size: .94rem; }
.vehicle-card .muted { font-size: .75rem; }
.control-disclosures { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; margin-top: 26px; }
.disclosure { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); min-width: 0; }
.disclosure summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; list-style: none; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after { content: "+"; font-size: 1.25rem; line-height: 1; color: var(--brand); }
.disclosure[open] summary::after { content: "−"; }
.disclosure summary strong { display: block; font-size: .85rem; font-weight: 600; }
.disclosure summary span > span { display: block; color: var(--muted); font-size: .73rem; margin-top: 4px; }
.disclosure-content { border-top: 1px solid var(--line-soft); padding: 20px; }
.disclosure-content > p { font-size: .8rem; margin-bottom: 20px; }
.disclosure-content .form-grid { grid-template-columns: 1fr; gap: 14px; }
.disclosure-content .actions { margin-top: 6px; }
.page-footnote { font-size: .76rem; line-height: 1.65; color: var(--muted); margin-top: 23px; }
.method-note { display: flex; gap: 14px; align-items: flex-start; border: 1px solid #cddfd3; background: var(--brand-wash); padding: 17px 20px; border-radius: var(--radius-small); margin-bottom: 24px; }
.method-note > .icon { color: var(--brand); margin-top: 1px; }
.method-note p { max-width: none; color: var(--brand-dark); font-size: .82rem; line-height: 1.65; }
.method-note strong { font-weight: 600; }
.care-intro { display: grid; grid-template-columns: 1fr 200px; gap: 30px; align-items: center; padding: 26px 32px; margin-bottom: 26px; background: var(--brand-wash); border-radius: var(--radius); }
.care-intro h2 { font-size: 1.7rem; color: var(--brand-dark); }
.care-intro p { margin: 12px 0 17px; color: var(--muted); font-size: .87rem; max-width: 61ch; }
.care-intro > img { max-height: 200px; width: 200px; object-fit: contain; }
.mission-card { display: flex; flex-direction: column; gap: 13px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); min-width: 0; }
.mission-card h3 { margin-bottom: 0; }
.mission-card p { font-size: .85rem; color: var(--muted); }
.mission-card > .btn { flex-shrink: 0; }
.mission-card > button[type="submit"] { margin-top: auto; }
.mission-card > .field { width: 100%; }
.task-card { padding: 20px 0; border-bottom: 1px solid var(--line); }
.task-card:last-child { border-bottom: 0; }
progress { accent-color: var(--brand); width: 100%; height: 12px; border: 0; border-radius: 6px; overflow: hidden; background: var(--line-soft); }
progress::-webkit-progress-bar { background: var(--line-soft); border-radius: 6px; }
progress::-webkit-progress-value { background: var(--brand); border-radius: 6px; }
.pricing-note { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-bottom: 26px; }
.pricing-note p { color: var(--muted); font-size: .8rem; }
.pricing-care { display: flex; align-items: center; gap: 22px; padding: 30px 0 0; margin-top: 32px; border-top: 1px solid var(--line); }
.pricing-care > img { flex-shrink: 0; }
.pricing-care h2 { font-size: 1.2rem; }
.pricing-care p { margin-top: 7px; max-width: 64ch; font-size: .83rem; color: var(--muted); }
.pricing-care > .btn { flex-shrink: 0; margin-left: auto; }
.skeleton-panel { min-height: 145px; }
.skeleton-line { width: 32%; min-width: 130px; height: 18px; background: #e7eee9; border-radius: 4px; }
.skeleton-line.long { width: 72%; margin-top: 18px; height: 13px; }
.skeleton-chart { width: 100%; height: 180px; margin-top: 22px; background: #f2f5f3; border-radius: 6px; }
.skeleton-panel p { margin-top: 20px; font-size: .8rem; }
.noscript-message { position: fixed; bottom: 0; margin: 0; max-width: none; width: 100%; padding: 18px; background: var(--error-bg); color: var(--error); z-index: var(--z-toast); }
/* Dynamic content rhythm: forms contain their own grids; sections stay distinct. */
form.panel > * + * { margin-top: 20px; }
form.panel > .section-heading { margin-top: 0; }
form.mission-card > * + * { margin-top: 0; }
.panel > ol, .panel > ul { padding-left: 21px; font-size: .85rem; line-height: 1.65; }
.panel > ol li + li, .panel > ul li + li { margin-top: 8px; }
.panel > ol + .actions { margin-top: 22px; }
.panel > .signal-grid > .chart-panel { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 24px 0 4px; }
.signal-grid > :last-child { grid-column: 1 / -1; }
.chart-panel > details { margin-top: 15px; }
.chart-panel > details > summary { font-size: .72rem; color: var(--brand); padding: 5px 0; }
.chart-panel > details[open] > summary { margin-bottom: 10px; }
.signal-history > * + * { margin-top: 15px; }
.signal-history { max-width: 100%; min-width: 0; }
.comparison-result { margin-top: 26px; padding-top: 23px; border-top: 1px solid var(--line); }
.comparison-result > .notice { margin-top: 18px; }
.comparison-result .grid-3 { gap: 18px; }
#compare-panel > div > article + article { margin-top: 22px; }
#compare-panel fieldset.panel { padding-top: 19px; border-top: 1px solid var(--line); }
#compare-panel fieldset legend { font-size: 1rem; padding-right: 12px; }
#compare-panel .grid > fieldset .form-grid { grid-template-columns: 1fr; gap: 15px; }
#pricing-panel > .grid-3 > .panel { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
#pricing-panel > .grid-3 > .panel > h2 { margin-bottom: 0; }
#pricing-panel > .grid-3 > .panel > p { font-size: .84rem; }
#pricing-panel > .grid-3 > .panel > p.metric-value { font-size: 1.9rem; }
#pricing-panel > .grid-3 > .panel > p + p { margin-top: 0; }
#pricing-panel > .grid-3 > .panel > .btn { margin-top: auto; }
#pricing-panel > .grid-3 > .panel > ul { padding-left: 18px; font-size: .78rem; }
#care-panel .panel > .notice { margin-top: 20px; }
.checkbox-field { margin-block: 5px; }
[data-form-result] { grid-column: 1 / -1; font-size: .8rem; }

@media (min-width: 1650px) { .welcome-hero { gap: 55px; padding-top: 34px; padding-bottom: 45px; } .hero-art > img { max-width: 510px; } .page { padding-inline: 52px; } }
@media (max-width: 1180px) {
  .app-layout { grid-template-columns: 202px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .brand { margin-left: 10px; }
  .main-nav a { padding-inline: 10px; gap: 10px; font-size: .81rem; }
  .nav-label { font-size: .67rem; }
  .page { padding: 28px; }
  .topbar, .sandbox-banner { padding-inline: 28px; }
  .workspace-footer { margin-inline: 28px; }
  #app-status { margin-inline: 28px; }
  .welcome-page { padding-top: 10px; }
  .welcome-hero h1 { font-size: 2.75rem; }
  .hero-description { font-size: .925rem; }
  .hero-actions .btn { font-size: .75rem; padding-inline: 13px; }
  .care-path { gap: 10px; }
  .care-path li { gap: 8px; }
  .care-path .icon { display: none; }
  .care-path li div > span { font-size: .62rem; }
  .audience-split { gap: 24px; }
  .audience-fleet { padding-left: 24px; }
  .audience-split article { gap: 12px; }
  .welcome-evidence { gap: 28px; padding: 28px; }
  .page-heading { align-items: flex-start; gap: 20px; }
  .vehicle-picker-field { min-width: 220px; }
  .pricing-care { flex-wrap: wrap; }
  .pricing-care > .btn { margin-left: 78px; }
}
@media (max-width: 940px) {
  .welcome-hero h1 { font-size: 2.3rem; }
  .welcome-hero { grid-template-columns: 1.15fr 1fr; gap: 0; }
  .brand-intro { font-size: .69rem; }
  .hero-art figcaption { position: static; width: auto; transform: none; text-align: center; padding-left: 10px; }
  .hero-art figcaption .small-leaf { display: none; }
  .hero-art { padding: 0; }
  .hero-actions { gap: 8px; margin-top: 20px; }
  .hero-description { line-height: 1.65; }
  .care-path { grid-template-columns: 1fr 1fr; gap: 18px; }
  .care-path li div > span { font-size: .71rem; }
  .audience-split article { display: block; }
  .audience-icon { margin-bottom: 10px; }
  .welcome-evidence { grid-template-columns: 1fr; gap: 20px; }
  .welcome-evidence h2 br { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .page-heading { flex-direction: column; align-items: stretch; gap: 18px; }
  .vehicle-picker-field { max-width: 350px; }
  .control-disclosures { grid-template-columns: 1fr; }
  .disclosure-content .form-grid { grid-template-columns: 1fr 1fr; }
  .signal-grid { grid-template-columns: 1fr; }
  .care-intro { grid-template-columns: 1fr 140px; padding: 24px; gap: 20px; }
  .care-intro > img { width: 140px; }
  .care-intro h2 { font-size: 1.5rem; }
}
@media (max-width: 760px) {
  .app-layout { display: block; }
  .sidebar { position: static; height: auto; padding: 15px 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { margin: 0 0 15px; gap: 7px; }
  .brand > img { width: 35px; height: 35px; }
  .brand-wordmark { font-size: 1.37rem; }
  .brand-wordmark span { font-size: .5rem; margin-top: 4px; }
  .nav-label, .sidebar-bottom, .topbar { display: none; }
  .main-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding-bottom: 11px; }
  .main-nav a { justify-content: flex-start; font-size: .74rem; gap: 7px; padding: 10px 8px; min-height: 42px; }
  .main-nav .icon { width: 18px; height: 18px; }
  .sandbox-banner { padding: 10px 20px; align-items: flex-start; gap: 8px 12px; font-size: .68rem; }
  .sandbox-banner strong { padding-top: 1px; }
  .page { padding: 26px 20px 30px; }
  .welcome-page { padding-top: 0; }
  #app-status { margin: 16px 20px 0; }
  .welcome-hero { grid-template-columns: 1.1fr 1fr; padding-top: 24px; }
  .welcome-hero h1 { font-size: 2.5rem; }
  .workspace-footer { margin-inline: 20px; padding-block: 20px; font-size: .68rem; gap: 8px 16px; }
  .workspace-footer a { margin-left: 0; }
  .environment-mark { display: none; }
  .page-heading h1 { font-size: 1.8rem; }
  .page-heading h1 + p { font-size: .87rem; }
  .panel, .card { padding: 20px; }
  .chart-panel { padding: 20px; }
  .table-wrap { border-radius: 6px; }
  table { font-size: .77rem; }
  th, td { padding: 12px; }
  .result-grid { gap: 12px; }
  .metric-value { font-size: 1.65rem; }
}
@media (max-width: 560px) {
  .sidebar { padding-inline: 16px; }
  .main-nav a { font-size: .69rem; gap: 5px; padding: 9px 6px; }
  .main-nav .icon { width: 16px; height: 16px; }
  .sandbox-banner { display: block; padding: 10px 18px; }
  .sandbox-banner strong { display: block; margin-bottom: 3px; }
  .page { padding-inline: 18px; }
  #app-status { margin-inline: 18px; }
  .welcome-hero { grid-template-columns: 1fr; padding-top: 30px; padding-bottom: 18px; gap: 10px; }
  .hero-copy { padding: 0; }
  .brand-intro { font-size: .72rem; margin-bottom: 17px; }
  .welcome-hero h1 { font-size: clamp(1.75rem, 8.55vw, 2.6rem); max-width: 13em; line-height: 1.16; }
  .hero-description { font-size: .925rem; margin-top: 20px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { flex: 1; padding-inline: 10px; font-size: .76rem; }
  .hero-actions .icon { width: 16px; }
  .hero-footnote { font-size: .7rem; }
  .hero-art { max-width: 320px; width: 83%; margin: 0 auto; }
  .hero-art figcaption { margin-top: -12px; font-size: .64rem; justify-content: center; padding: 0 15px; }
  .care-path { padding: 22px 0; gap: 19px 12px; }
  .path-step { width: 27px; height: 27px; font-size: .72rem; }
  .care-path strong { font-size: .8rem; }
  .care-path li div > span { font-size: .65rem; }
  .audience-section { padding: 32px 0; }
  .section-heading { margin-bottom: 18px; }
  .section-heading h2 { font-size: 1.3rem; }
  .section-heading p { font-size: .8rem; }
  .audience-split { grid-template-columns: 1fr; gap: 24px; margin-top: 22px; }
  .audience-split article { display: flex; gap: 13px; }
  .audience-fleet { border-left: 0; border-top: 1px solid var(--line); padding: 23px 0 0; }
  .audience-icon { width: 30px; height: 30px; }
  .audience-icon .icon { width: 26px; height: 26px; }
  .audience-split h3 { font-size: 1rem; }
  .check-list { margin-block: 15px 18px; }
  .welcome-evidence { padding: 25px 22px; gap: 24px; }
  .welcome-evidence h2 { font-size: 1.45rem; }
  .grid, .form-grid, .grid-3, .disclosure-content .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .page-heading { gap: 18px; margin-bottom: 23px; }
  .page-context { font-size: .7rem; }
  .vehicle-picker-field { max-width: none; width: 100%; }
  .panel, .card { padding: 18px; }
  .panel > h2 { font-size: 1.2rem; }
  .dynamic-panel > * + * { margin-top: 18px; }
  .signal-grid { gap: 18px; margin-top: 18px; }
  .chart-panel { padding: 17px 14px 15px; }
  .chart-svg { min-height: 135px; }
  .chart-title { font-size: .91rem; }
  .chart-caption { font-size: .7rem; }
  .toolbar { align-items: stretch; gap: 12px; }
  .toolbar select { width: 100%; }
  .actions { align-items: stretch; }
  .actions .btn, .actions button { flex-grow: 1; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .result-grid .metric + .metric { padding-left: 0; border-left: 0; }
  .metric { padding-block: 10px; }
  .metric-value { font-size: 1.55rem; }
  .metric-label { font-size: .72rem; }
  .notice { padding: 14px 15px; font-size: .8rem; }
  .disclosure summary { padding: 17px 18px; }
  .disclosure-content { padding: 18px; }
  .method-note { padding: 14px; gap: 11px; }
  .method-note p { font-size: .78rem; }
  .care-intro { grid-template-columns: 1fr 90px; gap: 5px; padding: 21px 18px; align-items: start; }
  .care-intro > img { width: 100px; margin-top: 15px; }
  .care-intro h2 { font-size: 1.4rem; }
  .care-intro p { font-size: .79rem; margin-top: 10px; }
  .care-intro .badge { font-size: .65rem; }
  .mission-card { flex-direction: column; gap: 15px; }
  .pricing-care { gap: 14px; padding-top: 24px; margin-top: 26px; }
  .pricing-care > img { width: 38px; align-self: flex-start; }
  .pricing-care > div { flex: 1; }
  .pricing-care h2 { font-size: 1.1rem; }
  .pricing-care p { font-size: .79rem; }
  .pricing-care > .btn { margin-left: 52px; }
  .workspace-footer { margin-inline: 18px; }
  .workspace-footer > :nth-child(2) { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .sidebar, .topbar, .sandbox-banner, .workspace-footer, .control-disclosures, .skip-link { display: none !important; } .app-layout { display: block; } .page { padding: 0; max-width: none; } body { background: white; } .panel, .chart-panel { break-inside: avoid; } }
