:root {
  color-scheme: light;
  --ink: #18332e;
  --muted: #5f7066;
  --green: #12634e;
  --accent: #b8edba;
  --dark: #102a27;
  --canvas: #f4f5ef;
  --paper: #fff;
  --line: #e0e5db;
  --danger: #9e3934;
  --amber: #865c14;
  --radius: 19px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, .button { cursor: pointer; min-height: 44px; }
button:disabled { cursor: wait; opacity: .55; }
a { color: var(--green); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #3086b9; outline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 750; letter-spacing: -.055em; line-height: 1.2; }
h2 { font-size: 1.18rem; letter-spacing: -.025em; }
h3 { font-size: 1rem; letter-spacing: -.01em; }
svg { width: 20px; height: 20px; flex-shrink: 0; }
.skip-link { position: fixed; top: -80px; left: 12px; z-index: 50; background: white; padding: 14px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 246px; background: var(--dark); color: white; padding: 32px 18px; display: flex; flex-direction: column; z-index: 5; }
.brand { display: flex; gap: 10px; align-items: center; color: white; text-decoration: none; font-size: 1rem; font-weight: 650; }
.brand-mark { background: var(--accent); color: var(--dark); display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; font-size: 1.9rem; font-weight: 800; position: relative; }
.brand-mark span { position: absolute; right: 7px; bottom: 0; }
.brand-light { font-weight: 400; color: #c9d7cf; }
.brand small { display: block; font-size: .58rem; letter-spacing: .15em; color: #91afa0; margin-top: 2px; }
.sidebar-label { margin: 45px 12px 13px; font-size: .65rem; color: #8ca89b; letter-spacing: .17em; font-weight: 700; }
.sidebar nav { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; min-height: 0; }
.nav-button { border: 0; background: transparent; color: #b3c8bc; padding: 12px 14px; display: flex; gap: 13px; align-items: center; border-radius: 12px; text-align: left; }
.nav-button[aria-current="page"] { background: var(--accent); color: var(--dark); font-weight: 650; }
.nav-button:hover:not([aria-current="page"]) { background: #ffffff0b; color: white; }
.nav-count { margin-left: auto; border-radius: 99px; font-size: .72rem; min-width: 23px; text-align: center; padding: 1px 6px; background: #ffffff19; }
.nav-section { padding: 13px 14px 3px; color: #8ca89b; font-size: .62rem; letter-spacing: .14em; font-weight: 700; }
.sidebar-footer { margin: auto 12px 0; padding-top: 25px; font-size: .8rem; color: #c1d6c7; }
.sidebar-footer small { display: block; color: #849e90; margin: 5px 0 0 15px; font-size: .7rem; }
.privacy-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; }
.workspace { margin-left: 246px; }
.topbar { position: sticky; top: 0; z-index: 4; min-height: 83px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 40px; background: #fafbf7; }
.breadcrumb { min-width: 0; flex: 1 1 0; }
.breadcrumb span { display: block; font-size: .6rem; letter-spacing: .16em; color: var(--muted); }
.breadcrumb strong { font-size: .85rem; overflow-wrap: anywhere; }
.topbar-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 14px; }
.connection { font-size: .75rem; display: flex; align-items: center; gap: 7px; color: var(--muted); }
.connection::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #b6c4bb; flex-shrink: 0; }
.connection.saved::before { background: #388c61; }
.connection.error::before { background: #c37233; }
.connection.busy::before { background: #cca334; }
.icon-button { border: 1px solid var(--line); border-radius: 12px; background: white; display: grid; place-items: center; width: 44px; height: 44px; padding: 9px; color: var(--ink); font-size: 1.7rem; }
main { max-width: 1260px; margin: 0 auto; padding: 35px 40px 12px; outline: none; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 27px; flex-wrap: wrap; }
.eyebrow { display: block; color: var(--green); font-size: .67rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 750; margin-bottom: 8px; }
.lead { color: var(--muted); font-size: .9rem; margin-top: 9px; max-width: 650px; }
.button { border: 1px solid #cfd9ce; border-radius: 11px; background: white; color: var(--ink); padding: 10px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-size: .84rem; font-weight: 650; }
.button.primary { background: var(--green); border-color: var(--green); color: white; }
.button.lime { background: var(--accent); border-color: var(--accent); color: var(--dark); }
.button.ghost { border-color: transparent; background: transparent; }
.button.danger { color: var(--danger); background: #fff5f3; border-color: #efdad5; }
.button.small { padding: 7px 11px; font-size: .75rem; }
.button.full { width: 100%; }
.button:hover { filter: brightness(.97); }
.actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 23px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.card-head h2 { min-width: 0; overflow-wrap: anywhere; }
.card-subtitle { color: var(--muted); font-size: .8rem; margin: 5px 0 15px; }
.grid { display: grid; gap: 19px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 21px; }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.journey { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0 0 24px; }
.journey-step { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px; text-align: left; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 13px; }
.journey-step[aria-current="step"] { border-color: var(--green); background: #eaf3e5; }
.journey-step strong, .journey-step small { display: block; overflow-wrap: anywhere; }
.journey-step strong { font-size: .76rem; }
.journey-step small { color: var(--muted); font-size: .67rem; margin-top: 2px; }
.journey-number { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; background: #edf2e8; color: var(--green); font-size: .72rem; font-weight: 750; }
.journey-step[aria-current="step"] .journey-number { background: var(--green); color: white; }
.overview-route { padding: 24px; border-radius: var(--radius); background: #e7eee2; }
.overview-route .journey { margin: 0; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 21px; align-items: start; }
.profile-shortcuts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 21px; }
[id^="profile-"], [id^="report-"] { scroll-margin-top: 125px; }
.plan-preview { border: 1px solid var(--line); background: #f7faf4; border-radius: 12px; padding: 13px 15px; overflow-wrap: anywhere; }
.plan-preview p { color: var(--muted); font-size: .8rem; margin-top: 5px; }
.disclosure { margin-top: 16px; }
.stack > .disclosure { margin-top: 0; }
.disclosure > summary, .checklist-category > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.disclosure > summary::-webkit-details-marker, .checklist-category > summary::-webkit-details-marker { display: none; }
.disclosure > summary::after, .checklist-category > summary::after { content: "+"; display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: #edf2e8; color: var(--green); font-size: 1.3rem; }
.disclosure[open] > summary::after, .checklist-category[open] > summary::after { content: "−"; }
.disclosure > summary strong, .checklist-category > summary strong { display: block; font-size: 1rem; }
.disclosure > summary small, .checklist-category > summary small { display: block; color: var(--muted); font-size: .75rem; margin-top: 3px; }
.disclosure-content { margin-top: 20px; }
.disclosure-content > .card { padding: 0; border: 0; }
.disclosure-content > .card.spaced { margin-top: 0; }
.checklist-intro { color: var(--muted); font-size: .83rem; margin-top: 20px; }
.checklist-category { margin-bottom: 12px; }
.checklist-category > summary { padding: 15px 18px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.checklist-category[open] > summary { margin-bottom: 10px; background: #eaf3e5; border-color: #d3e4d1; }
.spaced { margin-top: 21px; }
#main > .card + .card, #main > .note + .card, #main > .disclosure + .card { margin-top: 21px; }
#main > .grid.four.spaced + .card { margin-top: 28px; }
.hero { background: var(--dark); color: white; border: 0; display: flex; align-items: stretch; gap: 22px; min-height: 238px; position: relative; overflow: hidden; }
.hero-text { flex: 1; min-width: 0; position: relative; z-index: 1; }
.hero .eyebrow { color: #a0cba9; }
.hero h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -.04em; max-width: 420px; overflow-wrap: anywhere; }
.hero-details { display: flex; gap: 7px 16px; flex-wrap: wrap; color: #bccfc3; font-size: .82rem; margin: 13px 0 20px; }
.hero-picture { width: 40%; align-self: center; max-height: 215px; object-fit: cover; border-radius: 15px; }
.car-art { align-self: center; color: #c1e4b9; width: 43%; height: 170px; flex-shrink: 1; }
.hero-empty { font-size: .86rem; color: #c3d4c8; margin: 12px 0 19px; }
.vehicle-card { padding: 0; overflow: hidden; }
.vehicle-thumbnail { display: block; width: 100%; height: 180px; object-fit: cover; background: #e9eee5; }
.vehicle-card-content { padding: 21px; }
.vehicle-card-content .card-head { align-items: flex-start; }
.vehicle-card-content .card-head h2 { overflow-wrap: anywhere; }
.vehicle-actions { width: 100%; }
.vehicle-actions .button:first-child { flex: 1; }
.vehicle-stats { display: flex; flex-wrap: wrap; gap: 7px 14px; padding: 12px 0; margin: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .74rem; }
.listing-snapshot { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fafbf7; }
.listing-snapshot-text { width: 100%; min-height: 170px; resize: vertical; border: 1px solid var(--line); border-radius: 9px; padding: 12px; color: var(--ink); background: white; font: inherit; white-space: pre-wrap; }
.listing-import { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.listing-import .button { min-height: 46px; justify-self: start; }
.stat { padding: 19px; }
.stat-label { color: var(--muted); font-size: .75rem; display: flex; align-items: center; gap: 7px; }
.stat-value { font-size: 1.7rem; font-weight: 730; letter-spacing: -.055em; margin-top: 9px; line-height: 1.2; overflow-wrap: anywhere; }
.stat-note { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.stat.alert .stat-value { color: var(--danger); }
.stat.accent { background: #eaf3e5; border-color: #dce9d4; }
.phase-link { width: 100%; background: none; border: 0; color: var(--ink); padding: 13px 0; display: flex; align-items: center; gap: 12px; text-align: left; border-top: 1px solid var(--line); }
.phase-link:first-child { border-top: 0; }
.phase-number { border-radius: 11px; width: 37px; height: 37px; flex-shrink: 0; background: #f0f3eb; display: grid; place-items: center; color: var(--green); font-weight: 700; }
.phase-text { flex: 1; }
.phase-text small { display: block; font-size: .73rem; color: var(--muted); margin-top: 2px; }
.progress { background: #edf1e8; border-radius: 99px; height: 7px; overflow: hidden; margin-top: 15px; }
.progress progress { display: block; width: 100%; height: 7px; border: 0; appearance: none; }
progress::-webkit-progress-bar { background: #edf1e8; }
progress::-webkit-progress-value { background: var(--green); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--green); }
.metric-row { display: flex; align-items: center; justify-content: space-between; font-size: .85rem; gap: 8px; }
.metric-row strong { font-size: 1.2rem; white-space: nowrap; }
.muted { color: var(--muted); }
.tiny { font-size: .8rem; }
.note { background: #f1f5eb; color: #536643; border: 1px solid #e1e8d7; border-radius: 12px; padding: 13px 15px; font-size: .82rem; }
.note.warning { background: #fff6e2; color: #785315; border-color: #f0e0b9; }
.note.danger { background: #fff0ec; color: var(--danger); border-color: #efd5cc; }
.notice { margin: 18px 40px 0; padding: 13px 16px; border-radius: 12px; border: 1px solid #e9d6aa; background: #fff5dc; color: #725118; font-size: .85rem; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.notice.info { background: #e7f1ed; border-color: #cedfd7; color: var(--green); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .78rem; color: #52685d; }
.field input, .field select, .field textarea { min-height: 46px; width: 100%; border: 1px solid #d5ded2; background: #fcfdf9; border-radius: 10px; padding: 11px 12px; color: var(--ink); font-size: 16px; }
.field textarea { min-height: 95px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { background: white; border-color: #72a68a; }
.field input.invalid { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .74rem; min-height: 1em; }
.field-help { font-size: .8rem; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .wide { grid-column: 1 / -1; }
.checkbox { display: flex; align-items: center; gap: 9px; font-size: .83rem; min-height: 44px; cursor: pointer; }
.checkbox input { width: 20px; height: 20px; accent-color: var(--green); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 18px 0; }
.filter { border: 1px solid var(--line); background: white; border-radius: 99px; font-size: .75rem; padding: 9px 13px; color: var(--muted); }
.filter[aria-pressed="true"] { background: var(--dark); color: white; border-color: var(--dark); }
.search { flex: 1; min-width: 180px; min-height: 44px; background: white; border: 1px solid var(--line); border-radius: 11px; padding: 10px 13px; font: inherit; }
.checklist-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.category-head { margin: 23px 0 11px; display: flex; justify-content: space-between; align-items: center; color: #466154; }
.category-head:first-child { margin-top: 0; }
.category-head span { font-size: .74rem; color: var(--muted); }
.check-item { background: white; border: 1px solid var(--line); border-radius: 15px; margin-bottom: 10px; overflow: hidden; }
.check-item.flagged { border-left: 4px solid #c88752; }
.check-item.critical { border-left: 4px solid #ba5144; }
.item-top { display: flex; gap: 12px; align-items: flex-start; padding: 17px 18px 12px; }
.item-index { font-size: .73rem; color: #90a093; margin-top: 2px; min-width: 20px; }
.item-title { flex: 1; min-width: 0; }
.item-title h3 { overflow-wrap: anywhere; }
.item-title p { color: var(--muted); font-size: .78rem; margin-top: 4px; }
.item-top .icon-button { width: 44px; min-height: 44px; height: 44px; padding: 8px; border-color: transparent; background: #f4f6ef; }
.status-group { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding: 0 18px 16px; }
.status-button { display: flex; gap: 5px; justify-content: center; align-items: center; padding: 8px 5px; min-height: 43px; border: 1px solid #e0e5dc; border-radius: 8px; background: #fcfdf9; color: var(--muted); font-size: .72rem; }
.status-button svg { width: 15px; height: 15px; }
.status-button[aria-pressed="true"] { border-color: #c6d3bf; color: var(--ink); background: #e9efdf; font-weight: 650; }
.status-button.good[aria-pressed="true"] { background: #e8f4e8; color: #237441; border-color: #bbd9be; }
.status-button.bad[aria-pressed="true"] { background: #fff0e4; color: #a25826; border-color: #edcfb6; }
.status-button.skipped[aria-pressed="true"] { background: #eceefa; color: #59658c; border-color: #d0d5e9; }
.item-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 18px; border-top: 1px solid #edf0e8; background: #fafbf7; font-size: .73rem; }
.item-bottom .button { min-height: 44px; font-size: .8rem; padding: 6px 10px; }
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 4px 9px; font-size: .7rem; font-weight: 600; background: #eff2e9; color: #647455; }
.pill.bad { background: #ffefe4; color: #955629; }
.pill.warning { background: #fff5dc; color: #785315; }
.pill.critical { background: #ffeae7; color: #9e3934; }
.pill.good { background: #e5f3e5; color: #2e7944; }
.pill.skipped { background: #eceefa; color: #59658c; }
.empty { text-align: center; border: 1px dashed #ccd8c7; border-radius: 15px; padding: 32px 20px; background: #fafcf6; }
.empty svg { width: 39px; height: 39px; color: #7fa38b; margin-bottom: 9px; }
.empty h3 { margin: 4px 0 7px; }
.empty p { color: var(--muted); font-size: .83rem; max-width: 430px; margin: 0 auto 15px; }
.attachment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.attachment { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 0; background: white; }
.attachment img { width: 100%; height: 150px; object-fit: cover; display: block; }
.attachment-delete { position: absolute; top: 6px; right: 6px; color: var(--danger); background: #fff; box-shadow: 0 2px 8px #0003; }
.attachment-delete svg { width: 18px; height: 18px; }
.document-cover { height: 110px; display: grid; place-items: center; background: #f1f4eb; color: #6c896d; }
.document-cover svg { width: 38px; height: 38px; }
.carvertical-viewer { width: 100%; height: min(78vh, 1050px); min-height: 480px; border: 1px solid var(--line); border-radius: 12px; background: #f1f4eb; }
.attachment-body { padding: 10px; }
.attachment-name { font-size: .78rem; font-weight: 650; overflow-wrap: anywhere; }
.attachment-caption { font-size: .74rem; color: var(--muted); margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }
.attachment-actions { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.attachment-actions .button { font-size: .75rem; min-height: 44px; padding: 6px 8px; }
.timeline { border-left: 2px solid #dce5d5; margin: 10px 0 0 8px; padding-left: 23px; }
.timeline-entry { position: relative; padding-bottom: 24px; }
.timeline-entry::before { content: ""; position: absolute; left: -30px; top: 6px; width: 12px; height: 12px; background: #80b68a; border: 3px solid white; box-shadow: 0 0 0 2px #dce5d5; border-radius: 50%; }
.timeline-date { color: var(--muted); font-size: .74rem; margin-bottom: 6px; }
.timeline-entry p { white-space: pre-wrap; font-size: .83rem; color: var(--muted); margin-top: 6px; overflow-wrap: anywhere; }
.timeline-entry .actions { margin-top: 10px; }
.argument { border: 1px solid var(--line); border-radius: 13px; padding: 16px; background: #fcfdf9; }
.argument.disabled { opacity: .7; }
.argument-head { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; margin-bottom: 12px; }
.argument-head h3 { overflow-wrap: anywhere; }
.argument-head p { font-size: .74rem; color: var(--muted); margin-top: 4px; }
.price-panel { background: var(--dark); color: white; }
.price-panel .eyebrow { color: #acd0ae; }
.price-panel .price-big { font-size: 2.25rem; letter-spacing: -.05em; font-weight: 750; margin: 7px 0 20px; }
.price-panel .metric-row { border-top: 1px solid #ffffff1d; padding: 12px 0; color: #bccfc3; }
.price-panel .metric-row strong { color: white; font-size: 1rem; text-align: right; }
.price-panel .tiny { color: #adc4b4; margin-top: 13px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.text-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.data-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 20px; }
.data-list dt { font-size: .73rem; color: var(--muted); }
.data-list dd { margin: 3px 0 0; font-size: .86rem; font-weight: 600; overflow-wrap: anywhere; }
.report-section { margin-top: 24px; }
.report-item { padding: 15px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.report-item p { font-size: .82rem; margin-top: 5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.report-photos { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.report-photos img { max-width: 180px; height: 130px; object-fit: cover; border-radius: 9px; }
.template-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); }
.template-row:first-child { border-top: 0; }
.template-row p { font-size: .75rem; color: var(--muted); margin-top: 3px; }
.loading { text-align: center; padding: 80px 20px; }
.loading h1 { font-size: 1.6rem; margin: 20px 0 12px; }
.loading p { color: var(--muted); }
.loader { display: inline-block; width: 35px; height: 35px; border: 3px solid #d3dfcd; border-top-color: var(--green); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-footer { max-width: 1260px; padding: 30px 40px 35px; margin: 0 auto; font-size: .72rem; color: #7c8c7d; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.mobile-nav { display: none; }
dialog { padding: 0; border: 1px solid var(--line); border-radius: 21px; width: min(680px, calc(100% - 24px)); max-height: calc(100dvh - 32px); color: var(--ink); background: white; }
dialog::backdrop { background: #102a2780; backdrop-filter: blur(4px); }
#modal-form { padding: 25px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.modal-head h2 { font-size: 1.3rem; }
.modal-head .icon-button { flex-shrink: 0; border: 0; background: #f0f4ea; }
.modal-actions { position: sticky; bottom: 0; z-index: 1; background: white; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 22px; padding: 12px 0; }
.form-error { color: var(--danger); background: #fff0ec; padding: 12px; border-radius: 9px; font-size: .82rem; margin-top: 14px; }
.modal-help { color: var(--muted); font-size: .83rem; margin-bottom: 17px; }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.menu-tile { border: 1px solid var(--line); border-radius: 13px; padding: 18px 12px; background: #f9fbf5; color: var(--ink); display: flex; align-items: center; gap: 10px; font-size: .85rem; text-align: left; }
.toast { position: fixed; bottom: 24px; left: calc(50% + 123px); transform: translateX(-50%); z-index: 30; max-width: calc(100% - 32px); padding: 13px 19px; border-radius: 12px; background: var(--dark); color: white; box-shadow: 0 8px 24px #102a2730; font-size: .84rem; }
.toast.error { background: #833b2e; }
@media (max-width: 1150px) {
  .sidebar { width: 218px; padding-left: 13px; padding-right: 13px; }
  .workspace { margin-left: 218px; }
  .topbar { padding-left: 25px; padding-right: 25px; }
  main { padding-left: 25px; padding-right: 25px; }
  .notice { margin-left: 25px; margin-right: 25px; }
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .profile-layout { grid-template-columns: 1fr; }
  .hero { min-height: 218px; }
  .car-art { width: 35%; }
}
@media (max-width: 850px) {
  .sidebar { display: none; }
  .workspace { margin-left: 0; padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .topbar { padding: calc(14px + env(safe-area-inset-top)) 20px 14px; min-height: 73px; }
  .mobile-nav { position: fixed; z-index: 10; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #ffffffed; backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 4px; }
  .mobile-nav button { border: 0; background: transparent; color: #50675b; font-size: .72rem; min-height: 53px; border-radius: 11px; padding: 6px 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
  .mobile-nav button[aria-current="page"] { background: #eaf3e3; color: var(--green); font-weight: 700; }
  .mobile-nav svg { width: 21px; height: 21px; }
  .toast { left: 50%; bottom: calc(83px + env(safe-area-inset-bottom)); }
  .page-footer { padding: 24px; }
  .template-row { flex-direction: column; align-items: stretch; }
  .template-row .actions { justify-content: flex-start; }
}
@media (max-width: 620px) {
  main { padding: 25px 16px 12px; }
  .topbar { padding-left: 17px; padding-right: 17px; }
  .breadcrumb span { font-size: .55rem; }
  .topbar-actions { gap: 9px; }
  .connection { font-size: .7rem; max-width: 90px; }
  .notice { margin: 14px 16px 0; }
  .page-head { margin-bottom: 21px; }
  .carvertical-page-head .actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .carvertical-page-head .actions > * { width: 100%; }
  .lead { font-size: .83rem; }
  .card { padding: 19px; border-radius: 16px; }
  .split { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .journey { grid-template-columns: repeat(5, minmax(155px, 1fr)); overflow-x: auto; padding-bottom: 5px; }
  .journey-step { padding: 10px; gap: 7px; }
  .journey-step strong { white-space: nowrap; }
  .journey-step small { display: none; }
  .overview-route { padding: 19px; }
  .save-global { padding: 8px 10px; font-size: .75rem; }
  .grid { gap: 12px; }
  .grid.three { grid-template-columns: 1fr; }
  .grid.two:not(.keep-two) { grid-template-columns: 1fr; }
  .grid.two.keep-two { grid-template-columns: 1fr; }
  .hero { padding: 22px; min-height: 220px; gap: 6px; }
  .hero h2 { font-size: 1.7rem; }
  .car-art { width: 34%; position: absolute; right: -20px; bottom: -18px; opacity: .35; }
  .hero-text { width: 100%; }
  .hero-picture { width: 90px; height: 110px; align-self: flex-start; }
  .vehicle-thumbnail { height: 155px; }
  .vehicle-card-content { padding: 18px; }
  .hero-details { gap: 5px 12px; font-size: .75rem; }
  .listing-import { grid-template-columns: 1fr; }
  .listing-import .button { width: 100%; }
  .template-row .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; align-items: stretch; }
  .template-row .actions .button { min-width: 0; padding: 7px; text-align: center; }
  .stat { padding: 16px; }
  .stat-value { font-size: 1.5rem; }
  .stat-label { font-size: .7rem; }
  .form-grid { grid-template-columns: 1fr; gap: 15px; }
  .field.mobile-wide { grid-column: 1 / -1; }
  .status-group { padding: 0 12px 13px; gap: 4px; }
  .status-button { font-size: .75rem; gap: 3px; padding: 8px 3px; flex-direction: column; }
  .item-top { padding: 15px 13px 11px; gap: 8px; }
  .item-index { min-width: 15px; font-size: .65rem; }
  .item-title h3 { font-size: .92rem; }
  .item-bottom { padding: 9px 12px; }
  .attachment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .attachment img { height: 130px; }
  .carvertical-viewer { height: 70vh; min-height: 380px; }
  .search { width: 100%; }
  .price-panel .price-big { font-size: 2rem; }
  #modal-form { padding: 20px; }
  dialog { max-height: calc(100dvh - 20px); border-radius: 17px; }
  .page-footer { padding-left: 17px; padding-right: 17px; font-size: .65rem; }
  .data-list { grid-template-columns: 1fr; }
}
@media print {
  :root { font-size: 11px; }
  body { background: white; }
  .sidebar, .topbar, .mobile-nav, .page-footer, .notice, .skip-link, .toast, dialog, .no-print { display: none !important; }
  .workspace { margin: 0; padding: 0; }
  main { padding: 0; max-width: none; }
  .card { box-shadow: none; border: 1px solid #ccc; padding: 15px; border-radius: 6px; }
  .page-head { margin-bottom: 18px; }
  .grid.four { grid-template-columns: repeat(4, 1fr); }
  .report-section h2 { break-after: avoid; }
  .report-item, .timeline-entry, .data-list { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  .report-photos img { max-width: 135px; height: 95px; }
  @page { size: A4; margin: 15mm; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}
