:root {
  --navy: #0E1A2B; --navy-2: #16263D; --bronze: #A67C52; --bronze-2: #8C653F;
  --ink: #1B2430; --muted: #5B6573; --line: #E2E5EA; --bg: #F5F6F8; --card: #FFFFFF;
  --ok: #1F7A4D; --ok-bg: #E6F4EC; --warn: #8A5A00; --warn-bg: #FFF4DC; --err: #A32020; --err-bg: #FBE9E9;
  --radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; }
a { color: var(--navy); }
h1 { font-size: 24px; margin: 0 0 4px; letter-spacing: -0.01em; }
h2 { font-size: 17px; margin: 0 0 12px; }
h3 { font-size: 14px; margin: 16px 0 6px; text-transform: uppercase; letter-spacing: .06em; color: var(--bronze-2); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; word-break: break-all; }

/* layout */
.shell { display: grid; grid-template-columns: 228px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #C9D1DC; padding: 22px 14px; position: sticky; top: 0; height: 100vh; }
.brand { color: #fff; font-weight: 700; letter-spacing: .28em; font-size: 17px; padding: 0 10px 2px; }
.brand-sub { color: var(--bronze); font-size: 10px; letter-spacing: .2em; padding: 0 10px 22px; text-transform: uppercase; }
.side nav a { display: block; color: #C9D1DC; text-decoration: none; padding: 9px 10px; border-radius: 8px; margin-bottom: 2px; }
.side nav a:hover { background: var(--navy-2); color: #fff; }
.side nav a.on { background: var(--navy-2); color: #fff; box-shadow: inset 3px 0 0 var(--bronze); }
.side .who { position: absolute; bottom: 18px; left: 14px; right: 14px; font-size: 12px; border-top: 1px solid #24364F; padding-top: 12px; }
.side .who button { background: none; border: 0; color: var(--bronze); padding: 0; cursor: pointer; font-size: 12px; }
main { padding: 28px 32px 60px; max-width: 1180px; width: 100%; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* cards & grid */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.grid { display: grid; gap: 16px; }
/* Tiles in a grid: the grid keeps the distance, so two rows of tiles (phone) are as far apart as two columns */
.grid:has(> .card) { margin-bottom: 18px; } .grid > .card { margin-bottom: 0; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
a.card.stat { display: block; color: inherit; text-decoration: none; } a.card.stat:hover { border-color: #C9CFD8; }
.stat .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stat .v { font-size: 26px; font-weight: 650; margin-top: 4px; font-variant-numeric: tabular-nums; }

/* tables */
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.t tr:last-child td { border-bottom: 0; }
.t td.car { min-width: 170px; }
/* A long word without spaces (a pasted link, a name typed as one word) wraps instead of pushing the page wide */
.card, .fu-group, .flash { overflow-wrap: break-word; }
.fu-group a, .fu-group div { overflow-wrap: anywhere; }
.t tr.link:hover td { background: #FAFBFC; cursor: pointer; }
.t th.num, .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.reg { display: inline-block; background: #F7D74A; color: #111; font-weight: 700; letter-spacing: .06em; padding: 1px 7px; border-radius: 4px; font-size: 13px; font-family: "Arial Narrow", Arial, sans-serif; }
dl.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; }

/* badges */
.badge { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 99px; background: #EEF0F3; color: var(--muted); white-space: nowrap; }
.b-draft { background: #EEF0F3; } .b-sent, .b-issued, .b-reserved { background: var(--warn-bg); color: var(--warn); }
.b-signed, .b-paid, .b-in_stock { background: var(--ok-bg); color: var(--ok); } .b-sold { background: #E8EDF6; color: var(--navy); }
.b-void, .b-archived { background: var(--err-bg); color: var(--err); }

/* forms */
form.f label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 4px; }
.field { margin-bottom: 14px; }
input[type=text], input[type=search], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #CDD2D9; border-radius: 8px; font: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(166,124,82,.35); border-color: var(--bronze); }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400 !important; }
.check input { margin-top: 4px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 3px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--navy); background: var(--navy); color: #fff; text-decoration: none; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--navy-2); }
.btn.ghost { background: #fff; color: var(--navy); border-color: #CDD2D9; }
.btn.ghost:hover { border-color: var(--navy); }
.btn.bronze { background: var(--bronze); border-color: var(--bronze); } .btn.bronze:hover { background: var(--bronze-2); }
.btn.danger { background: #fff; color: var(--err); border-color: #E6B8B8; }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.inline { display: inline; }

/* flashes */
.flash { padding: 11px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; }
.flash.success { background: var(--ok-bg); color: var(--ok); } .flash.error { background: var(--err-bg); color: var(--err); }
.flash.info { background: #E8EDF6; color: var(--navy); }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; }
.flash.warning { background: var(--warn-bg); color: var(--warn); }
.notice { background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: 12px 14px; font-size: 14px; margin-bottom: 18px; }

.tabs { display: flex; gap: 4px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs a { padding: 6px 12px; border-radius: 99px; text-decoration: none; color: var(--muted); font-size: 13px; border: 1px solid transparent; }
.tabs a.on { background: #fff; border-color: var(--line); color: var(--ink); font-weight: 600; }
.search { display: flex; gap: 8px; } .search input { max-width: 280px; }
@media (max-width: 600px) { .head .search { flex: 1 1 100%; } .head .search input { max-width: none; flex: 1; min-width: 0; } }

/* contract document */
.doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 38px; max-width: 820px; }
.doc .title { font-size: 22px; font-weight: 700; color: var(--navy); margin: 0; }
.doc .parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }
.doc .lbl { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--bronze); text-transform: uppercase; margin-bottom: 4px; }
.doc table.t td:first-child { color: var(--muted); width: 42%; }
.doc .clause h4 { margin: 16px 0 4px; font-size: 14px; color: var(--navy); }
.doc .clause p { margin: 0; font-size: 14px; }
.copy { display: flex; gap: 8px; } .copy input { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }

/* signature pad */
.sigpad { border: 1.5px dashed #B8BFC9; border-radius: 8px; background: #FCFCFD; touch-action: none; width: 100%; height: 170px; display: block; }
.sigwrap { position: relative; } .sigwrap .clear { position: absolute; right: 8px; top: 8px; }

/* auth & public */
.center { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--navy); }
.center .card { width: 100%; max-width: 420px; }
.authbrand { text-align: center; color: #fff; margin-bottom: 18px; letter-spacing: .3em; font-weight: 700; font-size: 20px; }
.public { max-width: 860px; margin: 0 auto; padding: 24px 16px 60px; }
.pubhead { display: flex; justify-content: space-between; align-items: center; padding: 10px 0 18px; border-bottom: 2px solid var(--bronze); margin-bottom: 20px; }

.lines td { padding: 6px 4px; } .lines input { padding: 7px 8px; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; align-content: start; }   /* short pages: no tall empty top bar */
  .side { position: static; height: auto; padding: 14px; }
  .side nav { display: flex; flex-wrap: wrap; gap: 4px; } .side .who { position: static; margin-top: 10px; }
  .brand-sub { padding-bottom: 10px; }
  main { padding: 18px 16px 40px; }
  .g2, .g3, .g4, .doc .parties { grid-template-columns: 1fr; }
  .doc { padding: 22px 18px; }
  dl.kv { grid-template-columns: 1fr; } dl.kv dt { margin-top: 6px; }
  .t { font-size: 13px; }
  .hide-sm { display: none; }
}

/* ---- additions: market packs, leads, reports ---- */
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.scroll { overflow-x: auto; }
.scroll.more-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
.scroll.more-left { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 48px), transparent); }
.scroll.more-left.more-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
.warn { color: var(--warn); font-weight: 600; }
.good { color: var(--ok); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius);
        text-decoration: none; color: var(--ink); background: #fff; min-height: 64px; }
.tile:hover { border-color: var(--bronze); box-shadow: 0 1px 0 var(--bronze); }
.badge.b-in_stock, .badge.b-lead-contacted { background: #EEF1F4; color: #475569; }
.badge.b-prep { background: #EDE9FE; color: #5B21B6; }
.badge.b-reserved, .badge.b-lead-offer { background: var(--warn-bg); color: var(--warn); }
.badge.b-sold, .badge.b-lead-bought { background: var(--ok-bg); color: var(--ok); }
.badge.b-incoming, .badge.b-lead-new { background: #E0ECFB; color: #1E4E8C; }
.badge.b-archived { background: #F1F1F1; color: #666; }
.badge.b-lead-lost { background: var(--err-bg); color: var(--err); }
.doc .dochead { display: flex; justify-content: space-between; align-items: center; background: var(--navy); color: #fff;
                padding: 12px 16px; border-radius: 8px; margin-bottom: 14px; }
.doc .dochead .small { color: #C9D1DC; }
.doc .pill { background: #fff; color: var(--navy); border-radius: 6px; padding: 3px 8px; font-size: 12px; font-weight: 600; }
.doc .meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; background: var(--bg); border-radius: 8px;
             padding: 10px; margin: 12px 0; }
@media (max-width: 700px) { .doc .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.doc .lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.doc .box { border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.doc .box.hl { background: var(--ok-bg); border-color: transparent; margin-top: 10px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 14px; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.legend { font-size: 13px; color: var(--muted); margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.sw.bought, .bar.bought { background: #6B7F99; }
.sw.sold, .bar.sold { background: var(--ok); }
.bars { display: flex; gap: 12px; align-items: flex-end; overflow-x: auto; padding-bottom: 4px; }
.bargroup { text-align: center; min-width: 54px; }
.bargroup .pair { display: flex; gap: 4px; align-items: flex-end; height: 150px; justify-content: center; }
.bar { width: 20px; border-radius: 3px 3px 0 0; min-height: 2px; }
.funnel { margin-bottom: 12px; }
.funnel .row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; }
.funnel .track { background: #EEF1F4; border-radius: 4px; height: 12px; }
.funnel .fill { background: var(--navy); height: 12px; border-radius: 4px; }
.funnel .fill.sold { background: var(--ok); }
.copy input.signlink { min-width: 0; }
/* plans */
.plans .plan { display: flex; flex-direction: column; gap: 6px; }
.plans .plan.on { outline: 2px solid var(--bronze, #b07a3c); }
.plans .plan ul { margin: 6px 0 10px; padding-left: 18px; flex: 1; }
.plans .plan .v { font-size: 1.6rem; font-weight: 700; }
/* market switch on login / signup */
.flags { display: flex; justify-content: center; gap: 10px; margin: 0 0 18px; }
.flag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 8px; color: rgba(255,255,255,.7);
        text-decoration: none; font-size: 13px; border: 1px solid rgba(255,255,255,.15); }
.flag img { height: 18px; width: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.flag:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.flag.on { color: #fff; border-color: var(--bronze); background: rgba(166,124,82,.18); }
.market-chosen { display: flex; align-items: center; gap: 8px; font-weight: 600; padding: 6px 0; }
/* plan picker on signup */
.plan-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0; }
.plan-option { display: flex; flex-direction: column; gap: 2px; border: 1px solid #d9dde3; border-radius: 10px; padding: 12px; cursor: pointer; font-weight: 400; position: relative; }
.plan-option input { position: absolute; top: 12px; right: 12px; }
.plan-option:has(input:checked) { border-color: var(--bronze); box-shadow: 0 0 0 2px rgba(166,124,82,.35); background: #fbf8f4; }
.plan-option .pname { font-weight: 700; padding-right: 22px; }
.plan-option .pprice { font-size: 20px; font-weight: 700; margin-top: 4px; }
.plan-option ul { margin: 8px 0 0; padding-left: 0; list-style: none; font-size: 12.5px; line-height: 1.5; }
.plan-option li::before { content: "✓ "; color: #2e7d4f; font-weight: 700; }
.plan-option li.no { color: #9aa1ab; text-decoration: line-through; }
.plan-option li.no::before { content: "– "; color: #9aa1ab; }
.trialnote { background: #eef6f0; color: #1f5f3a; border-radius: 8px; padding: 8px 10px; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
@media (max-width: 720px) { .plan-pick { grid-template-columns: 1fr; } }
.searchbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; }
.searchbar input[type=search] { flex: 1 1 260px; }
.searchbar select, .searchbar input[type=date] { flex: 0 0 auto; }
.vphotos figure { margin: 0; }
.vphotos figcaption { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 4px; min-height: 22px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--navy); text-decoration: underline; font-size: 12px; cursor: pointer; text-align: left; }
.linkbtn.danger { color: #b3261e; }
.authsub { display: block; color: var(--bronze); font-size: 11px; letter-spacing: .5em; font-weight: 600; margin-top: 6px; padding-left: .5em; }
.small-v { font-size: 18px; line-height: 1.3; }
.quote { font-style: italic; white-space: pre-line; }

/* mobile: collapsible menu, tables scroll inside their card instead of widening the page */
main { min-width: 0; }
main .card { overflow-x: auto; }
.menu-toggle { display: none; }
.topbar { display: flex; justify-content: space-between; align-items: center; }
.side .who a { color: var(--bronze); text-decoration: none; display: inline-block; margin: 4px 0; }
.side .who a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .menu-toggle { display: inline-block; background: var(--navy-2); color: #fff; border: 1px solid #24364F; border-radius: 8px;
                 padding: 8px 12px; font-size: 14px; cursor: pointer; }
  .side nav, .side .who { display: none; }
  .side.open nav { display: flex; } .side.open .who { display: block; }
  .head { flex-wrap: wrap; gap: 8px; }
  .head .actions, .head > div:last-child { flex-wrap: wrap; }
  .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card.stat { padding: 12px; } .card.stat .v { font-size: 20px; }
}
/* signup plan cards never overflow */
.plan-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan-option { min-width: 0; overflow-wrap: anywhere; }
.plan-option .pprice { font-size: 18px; padding-right: 20px; }
@media (max-width: 820px) { .plan-pick { grid-template-columns: 1fr; } }
.copy button, #org-lookup, .btn { white-space: nowrap; }

.signup-wrap { width: 100%; max-width: 820px; }
.center .signup-wrap .card { max-width: none; }
.signup-wrap form .field input[type=text], .signup-wrap form .field input[type=email], .signup-wrap form .field input[type=password] { max-width: none; }
.plan-pick .plan-option { display: flex !important; flex-direction: column; align-items: flex-start; }
.plan-option > span { display: block; }
.plan-option .pprice { margin-top: 6px; }

/* Number plates: UK yellow (default), Norway white with the blue EU strip, green for vans */
.reg.big { font-size: 20px; }
.mk-NO .reg { background: #fff; color: #111; border: 1.5px solid #111; border-radius: 4px; padding: 0 7px 0 0;
              display: inline-flex; align-items: stretch; overflow: hidden; line-height: 1.45; }
.mk-NO .reg::before { content: "N"; background: #003399; color: #fff; font-size: .62em; font-weight: 700; display: flex;
                      align-items: flex-end; padding: 0 4px 2px; margin-right: 6px; letter-spacing: 0; }
.mk-NO .reg.green { background: #1f7a3a; color: #111; }
.mk-NO .reg.green::before { background: #003399; }

.periodbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 14px; }
.daterange { display: inline-flex; gap: 6px; align-items: center; margin-left: 8px; flex-wrap: wrap; }
.daterange input[type=date] { width: auto; padding: 5px 8px; }

.legal .card { max-width: 820px; margin: 24px auto; } .legal h3 { margin-top: 20px; } .legal p, .legal li { line-height: 1.6; }

/* admin: figures per market */
.mstats .mhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mstats .mhead h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.mstats .stat { border: 1px solid var(--line, #e5e5e5); border-radius: 10px; padding: 12px 14px; }
.mstats .plans { margin: 12px 0; }
.mstats table.compact td, .mstats table.compact th { padding-top: 6px; padding-bottom: 6px; }

.req { color: #B42318; font-weight: 700; }

/* hosted lead form (shared link or iframe on the dealer's website) */
.leadform { max-width: 720px; margin: 32px auto; padding: 0 16px; }
.leadform.embed { margin: 0; padding: 0; max-width: none; }
body[data-embed] { background: transparent; }
.leadform.embed .card { border: 0; padding: 4px; background: transparent; }
.leadform h1 { margin: 4px 0 6px; font-size: 26px; }
.lf-dealer { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lf-send { width: 100%; justify-content: center; padding: 14px; font-size: 16px; }
.lf-foot { text-align: center; margin: 14px 0 0; }

/* ---------- public front page ---------- */
.lp { background: #fff; }
.lp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.lp-top { background: var(--navy); position: sticky; top: 0; z-index: 10; }
.lp-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.lp-logo { color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .28em; font-size: 16px; display: inline-flex; align-items: baseline; gap: 10px; }
.lp-logo span { color: var(--bronze); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.lp-nav { display: flex; align-items: center; gap: 18px; }
.lp-nav > a { color: #C9D1DC; text-decoration: none; font-size: 14px; }
.lp-nav > a:hover { color: #fff; }
.lp-nav .btn { color: #fff; }
.lp-flags { display: inline-flex; gap: 6px; }
.lp-flags a { opacity: .45; display: inline-flex; } .lp-flags a.on, .lp-flags a:hover { opacity: 1; }
.lp-flags img { border-radius: 2px; display: block; }
.btn.sm { padding: 7px 14px; font-size: 13px; }
.btn.lg { padding: 14px 24px; font-size: 16px; }
.lp-hero { background: linear-gradient(180deg, var(--navy) 0%, #13233A 100%); color: #fff; padding: 72px 0 84px; }
.lp-hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.lp-kicker { color: var(--bronze); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 700; margin: 0 0 14px; }
.lp-hero h1 { font-size: 46px; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 18px; }
.lp-lead { font-size: 18px; color: #C9D1DC; margin: 0 0 28px; max-width: 34em; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-cta .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
.lp-note { color: #9AA6B6; font-size: 13px; margin: 16px 0 0; }
.lp-doc { background: #fff; color: var(--ink); border-radius: 14px; padding: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.35); transform: rotate(1.5deg); }
.lp-doc-h { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.lp-doc-r { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.lp-doc-r span { color: var(--muted); }
.lp-sig { margin-top: 14px; padding: 12px; background: #FAF7F2; border-radius: 8px; }
.lp-sig i { font-family: "Snell Roundhand", "Brush Script MT", cursive; font-size: 26px; color: var(--navy); display: block; }
.lp-sig small { color: var(--muted); }
.lp-sec { padding: 76px 0; }
.lp-alt { background: var(--bg); }
.lp-h2 { font-size: 32px; letter-spacing: -.015em; margin: 0 0 10px; text-align: center; }
.lp-sub { text-align: center; color: var(--muted); margin: 0 0 36px; }
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.lp-f { border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.lp-f h3 { text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 17px; margin: 0 0 8px; }
.lp-f h3::before { content: ""; display: block; width: 28px; height: 3px; background: var(--bronze); margin-bottom: 14px; border-radius: 2px; }
.lp-f p { margin: 0; color: var(--muted); font-size: 15px; }
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.lp-steps span { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; }
.lp-steps h3 { text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 18px; margin: 12px 0 4px; }
.lp-steps p { margin: 0; color: var(--muted); }
.lp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.lp-plan { border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; position: relative; }
.lp-plan.hot { border: 2px solid var(--bronze); box-shadow: 0 12px 30px rgba(166,124,82,.18); }
.lp-tag { position: absolute; top: -12px; left: 26px; background: var(--bronze); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.lp-plan h3 { text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 20px; margin: 0 0 8px; }
.lp-price { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.lp-price span { font-size: 15px; font-weight: 400; color: var(--muted); }
.lp-year { font-size: 13px; color: var(--bronze-2); margin-bottom: 14px; }
.lp-plan ul { padding-left: 18px; margin: 0 0 22px; flex: 1; color: var(--ink); }
.lp-plan li { margin: 5px 0; }
.lp-plan .btn { justify-content: center; }
.lp-arch { text-align: center; color: var(--muted); margin: 28px auto 0; max-width: 46em; }
.lp-faq { max-width: 780px; }
.lp-faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin-bottom: 10px; }
.lp-faq summary { font-weight: 600; cursor: pointer; }
.lp-faq details p { color: var(--muted); margin: 10px 0 0; }
.lp-end { background: var(--navy); color: #fff; text-align: center; }
.lp-end h2 { font-size: 32px; margin: 0 0 8px; }
.lp-end p { color: #C9D1DC; margin: 0 0 24px; }
.lp-foot { background: #0A1422; color: #8B97A8; padding: 36px 0; font-size: 14px; }
.lp-foot a { color: #C9D1DC; }
.lp-foot .lp-logo { margin-bottom: 10px; }
@media (max-width: 900px) {
  .lp-hero-in, .lp-grid, .lp-plans, .lp-steps { grid-template-columns: 1fr; }
  .lp-hero h1 { font-size: 34px; }
  .lp-hero { padding: 48px 0 56px; }
  .lp-shot { display: none; }
  .lp-nav > a:not(.btn):not(.lp-login) { display: none; }
  .lp-sec { padding: 52px 0; }
  .lp-h2 { font-size: 26px; }
}
/* Free tools on the public website (tools/*.html) */
.tool-hero { padding: 56px 0 48px; }
.tool-hero h1 { font-size: 40px; }
.tool-sec { padding-top: 48px; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.tool-form { display: grid; gap: 18px; }
.tool-form label { display: grid; gap: 6px; font-weight: 600; color: var(--ink); }
.tool-form small { font-weight: 400; color: var(--muted); }
.tool-money { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.tool-money:focus-within { border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(166,124,82,.18); }
.tool-money i { font-style: normal; color: var(--muted); padding: 0 4px 0 14px; font-size: 18px; }
.tool-money input { border: 0; outline: 0; background: transparent; font-size: 20px; padding: 12px 14px 12px 4px; width: 100%; min-width: 0; }
.tool-out { border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; background: #fff; box-shadow: 0 12px 30px rgba(10,20,34,.06); }
.tool-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.tool-row span { color: var(--muted); } .tool-row small { color: var(--muted); font-size: 12px; margin-left: 4px; }
.tool-row b { font-size: 18px; font-variant-numeric: tabular-nums; }
.tool-vat b { color: var(--bronze-2); }
.tool-profit { border-bottom: 0; } .tool-profit span { color: var(--ink); font-weight: 600; } .tool-profit b { font-size: 26px; }
.tool-out b.neg { color: #B42318; }
.tool-warn { background: #FEF3F2; color: #912018; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 8px 0 0; }
.tool-target { margin-top: 14px; background: #FAF7F2; border-radius: 10px; padding: 14px 16px; display: grid; gap: 4px; }
.tool-target span { color: var(--muted); font-size: 14px; } .tool-target strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.tool-cta { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.tool-cta p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.tool-text { max-width: 780px; }
.tool-text h2 { font-size: 28px; margin: 0 0 12px; } .tool-text h3 { text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 18px; margin: 26px 0 8px; }
.tool-text p, .tool-text li { color: var(--ink); } .tool-text ul { padding-left: 20px; }
@media (max-width: 900px) { .tool-grid { grid-template-columns: 1fr; gap: 24px; } .tool-hero h1 { font-size: 32px; } }
@media (max-width: 420px) { .lp-nav { gap: 10px; } .lp-login { font-size: 13px; } .lp-nav .btn.sm { padding: 7px 10px; font-size: 13px; } .lp-flags img { height: 14px; } .lp-logo span { display: none; } }

/* FINN equipment list */
details.eqgroup { border-top: 1px solid var(--line, #e5e5e5); padding: 8px 0; }
details.eqgroup summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.eqgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; padding: 8px 0 4px; }
.eqgrid label.check { font-size: 14px; }

.newcust { background: var(--bg, #f6f6f4); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px 4px; margin: 4px 0 14px; }

/* Searchable select */
.ss { position: relative; }
.ss select.ss-native { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.ss .ss-input { width: 100%; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.ss-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); max-height: 280px; overflow-y: auto;
  background: var(--card, #fff); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 4px; }
.ss-item, .ss-none { padding: 8px 10px; border-radius: 6px; font-size: 14px; cursor: pointer; }
.ss-none { color: var(--muted); cursor: default; }
.ss-item.act { background: rgba(0,0,0,.06); }
.ss-item.on { font-weight: 600; }
.ss-item.ss-new { color: var(--bronze, #9a6b3f); font-weight: 600; border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0; margin-bottom: 2px; }

/* Preparation costs: description, VAT rate, net, gross */
.costform { display: grid; grid-template-columns: 90px 1fr 1fr auto; gap: 8px; margin-top: 12px; }
.costform .c-desc { grid-column: 1 / -1; }
.costform label { font-size: 12px; color: var(--muted); }

/* Photo manager */
.pm { border-radius: 10px; }
.pm.drop { outline: 2px dashed var(--bronze); outline-offset: 6px; }
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.pm-item { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #e9e9e6; cursor: grab; }
.pm-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-item.dragging { opacity: .4; }
.pm-item.busy { cursor: default; }
.pm-item.busy img { opacity: .45; filter: blur(1px); }
.pm-item.busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.6); border-top-color: var(--bronze); animation: pmspin .8s linear infinite; }
@keyframes pmspin { to { transform: rotate(360deg); } }
.pm-badge { display: none; position: absolute; left: 6px; bottom: 6px; background: var(--navy); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 10px; }
.pm-grid .pm-item:first-child .pm-badge { display: block; }
.pm-grid .pm-item:first-child .pm-main { display: none; }
.pm-del, .pm-main { position: absolute; top: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(14,26,43,.75); color: #fff; font-size: 15px; line-height: 26px; padding: 0; text-align: center; }
.pm-del { right: 6px; }
.pm-main { right: 38px; font-size: 13px; }
.pm-add { aspect-ratio: 4 / 3; border: 2px dashed var(--line); border-radius: 8px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; cursor: pointer; color: var(--muted); font-size: 13px; text-align: center; padding: 6px; }
.pm-add:hover { border-color: var(--bronze); color: var(--bronze-2); }
.pm-add input { display: none; }
.pm-add .pm-plus { font-size: 28px; line-height: 1; }
.pm-add[hidden] { display: none; }
.pm-msg { margin-top: 8px; font-size: 13px; color: var(--err); }
.f .pm-add, .pm .pm-add { display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0;
  font-weight: 400; font-size: 13px; color: var(--muted); }
.pm-add span, .pm-add small { display: block; }

.pm-bar { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.7); overflow: hidden; }
.pm-bar i { display: block; height: 100%; width: 0; background: var(--bronze); transition: width .2s; }
.pm-status { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ok, #1f7a4d); }
.pm-status.busy { color: var(--bronze-2); }
.pm-status.busy::before { content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 7px; vertical-align: -1px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--bronze); animation: pmspin .8s linear infinite; }
.pm-item.up .pm-badge { display: none !important; }

/* Long values in amount cells (account numbers) may wrap on small screens */
@media (max-width: 600px) { .num { white-space: normal; overflow-wrap: anywhere; } }

/* Staff access */
.perms .checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 16px; margin: 8px 0 14px; }
.perms label.check { font-size: 14px; }
details.permuser { border-top: 1px solid var(--line, #e5e7eb); padding: 10px 0; }
details.permuser summary { cursor: pointer; }
details.permuser form { margin-top: 10px; }
.tablewrap { overflow-x: auto; }
.t th a { color: inherit; text-decoration: none; } .t th a.on { color: var(--ink, inherit); }
.opsline { display:flex; gap:10px; align-items:center; flex-wrap:wrap; padding:12px 16px; }
.defects { margin: 6px 0 0; padding-left: 18px; } .defects li { margin-bottom: 4px; }
.cardhead { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; } .cardhead h2 { margin:0; } .cardhead + * { margin-top: 12px; }

.transfer + .transfer { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.checklist { margin: 8px 0 12px; padding-left: 18px; } .checklist li { margin-bottom: 4px; }
.num { white-space: nowrap; }
.daybars { gap: 3px; } .daybars .bargroup { flex: 1; min-width: 6px; } .daybars .pair { height: 150px; } .daybars .bar { width: 100%; max-width: 24px; }
.daybars .small { white-space: nowrap; overflow: visible; }

/* Dashboard: needs follow-up */
.bad { color: var(--err); font-weight: 600; }
.followups .fu-dot { width: 14px; padding-right: 0; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dot.bad { background: var(--err); } .dot.warn { background: #D9A23B; } .dot.info { background: #6B7F99; }
.stat .cmp { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }

/* Leads list: search and type switch */
.listbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.listbar .search { display: flex; gap: 8px; flex: 1; max-width: 460px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--card); }
.seg a { padding: 7px 12px; font-size: 13px; color: var(--muted); text-decoration: none; }
.seg a.on { background: var(--navy, #0E1A2B); color: #fff; }
.nowrap { white-space: nowrap; }
tr.note td { background: #FBFAF6; }

/* Stock: preparation checklist, price helper */
#prep .checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 16px; }
select.sm { padding: 6px 28px 6px 10px; font-size: 13px; width: auto; }
.listbar .inline { display: flex; gap: 8px; align-items: center; }

/* Agreements list: new-agreement buttons in the header, filters on one line, counts on tabs */
.searchbar select, .searchbar input[type=date] { width: auto; }
.searchbar input[type=date] { max-width: 150px; }
.tabs .cnt { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 3px; border-radius: 99px; background: #EEF0F3; color: var(--muted); font-size: 11px; font-weight: 600; text-align: center; }
.tabs .cnt.hot { background: var(--warn-bg); color: var(--warn); }
@media (max-width: 600px) {
  .newagr { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .newagr .btn { justify-content: center; padding: 8px 10px; }
  .searchbar input[type=search] { flex-basis: 100%; }
  .searchbar select { flex: 1 1 100%; }
  .searchbar input[type=date] { flex: 1 1 40%; min-width: 0; max-width: none; }
}
.sumbox { margin-top: 4px; padding: 12px 14px; border-radius: 8px; background: #F7F4EF; border: 1px solid #E8DFD2; font-size: 15px; }
.sumbox strong { font-size: 18px; margin-left: 6px; font-variant-numeric: tabular-nums; }
/* Agreement page: links to car and customer, checks before sending, next steps */
.linksline { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; } .linksline a { text-decoration: none; } .linksline a:hover { text-decoration: underline; }
.checkbox-warn { background: var(--warn-bg); color: #5C3D00; border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; }
.checkbox-warn .checklist { margin: 6px 0 0; }
.nextsteps .steps { list-style: none; margin: 0; padding: 0; }
.nextsteps .steps li { padding: 8px 0 8px 28px; border-bottom: 1px solid var(--line); position: relative; }
.nextsteps .steps li:last-child { border-bottom: 0; }
.nextsteps .steps li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #C5CBD3; }
.nextsteps .steps li.done { color: var(--muted); } .nextsteps .steps li.done::before { background: var(--ok); border-color: var(--ok); }
[data-party-row][hidden], [data-party-head][hidden], [data-add-party][hidden], [data-loan-toggle][hidden], .sumbox[hidden] { display: none; }
.show-sm { display: none; }
@media (max-width: 900px) { .show-sm { display: block; } }

/* Sold: follow-up badges, comparison, plain links */
.follow { display: flex; flex-wrap: wrap; gap: 4px; } .follow a.badge { text-decoration: none; }
a.plain { text-decoration: none; color: inherit; }
.stats .stat .cmp { margin-top: 8px; }
.t.sold th a { white-space: nowrap; }
@media (max-width: 900px) { .periodbar > a.btn { display: none; } .periodsel { display: block !important; } .daterange { margin-left: 0; } .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats .stat .v { font-size: 20px; } }
.periodsel { display: none; width: auto; }
.t.sold td, .t.sold th { padding-left: 7px; padding-right: 7px; }
.t.sold .follow { max-width: 150px; }
@media (max-width: 900px) {
  .daterange:not(.custom) { display: none; }
  .listbar .search { max-width: none; flex-basis: 100%; }
  .t.sold { font-size: 13px; } .t.sold td, .t.sold th { padding: 8px 4px; }
}

/* Reports: key figures in one block */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; }
.kpi { padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpi:nth-child(3n) { border-right: 0; }
.kpi .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.kpi .v { font-size: 22px; font-weight: 650; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi .cmp { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.mini .v { font-size: 22px; font-weight: 650; }
tr.quiet td { color: var(--muted); }
@media (max-width: 600px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi:nth-child(3n) { border-right: 1px solid var(--line); } .kpi:nth-child(2n) { border-right: 0; } .kpi { padding: 12px; } .kpi .v { font-size: 18px; } .kpi .k { min-height: 0; } }
@media (max-width: 600px) { .t.tight { font-size: 12.5px; } .t.tight td, .t.tight th { padding: 8px 4px; } .t.tight th { font-size: 10.5px; letter-spacing: .02em; } }

/* Settings: a choice with an explanation under each option */
label.check.opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; font-weight: 400; cursor: pointer; }
label.check.opt > span { display: flex; flex-direction: column; gap: 2px; }
label.check.opt:has(input:checked) { border-color: var(--bronze); background: #fbf8f4; }
/* Saved clauses: one line until ticked, then the whole text (the agreement prints the whole text either way). */
label.check.opt .clause-body { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
label.check.opt:has(input:checked) .clause-body { display: block; -webkit-line-clamp: unset; overflow: visible; }
.costform .c-file { grid-column: 1 / -1; color: var(--muted); }
.costform .c-file input { font-size: 13px; margin-left: 6px; }
form.rcpt { display: inline; } form.rcpt label { cursor: pointer; font-size: 12px; }
.costform .c-file .hint { display: block; margin-top: 4px; font-weight: 400; }
.dupcard { border-color: #E8C98A; background: #FFFBF2; }
/* Settings → Agreement texts: one saved text per row, the add box at the end */
.clause-row { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 18px; }
.clause-row:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.clause-row .ticks { display: flex; flex-direction: column; gap: 6px; padding-top: 26px; }
.addbox { margin-top: 18px; } .addbox summary { cursor: pointer; list-style: none; } .addbox summary::-webkit-details-marker { display: none; }
@media (max-width: 720px) { .clause-row .ticks { padding-top: 0; } }
@media print {
  .side, .noprint, .flash, .flashes { display: none !important; }
  .shell { display: block; } main { padding: 0; max-width: none; } body { background: #fff; }
  .card { border: 0; padding: 0; }
}

/* Export */
.exportgrid { align-items: start; }
.parts { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; margin: 4px 0 14px; }
.periods { flex-wrap: wrap; }
.notice-card { border-color: #E8C98A; background: #FFFBF2; }
@media (max-width: 600px) { .parts { grid-template-columns: 1fr; } }
h2.section { margin: 22px 0 10px; }
/* Dealer logo */
.doclogo { text-align: right; margin-bottom: 8px; } .doclogo img { max-height: 48px; max-width: 200px; }
.publogo { display: block; max-height: 44px; max-width: 200px; margin-bottom: 6px; }
.lf-logo { max-height: 48px; max-width: 220px; display: block; }
.logo-preview { max-height: 60px; max-width: 240px; display: block; margin: 6px 0; padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
pre.trace { white-space: pre-wrap; font-size: 11px; max-height: 300px; overflow: auto; background: #F7F8FA; padding: 8px; border-radius: 6px; }
.reply { margin-top: 6px; padding: 6px 8px; background: #F3F6FA; border-left: 3px solid var(--navy); border-radius: 4px; white-space: pre-line; }
dl.kv.lines-total { max-width: 320px; margin: 14px 0 0 auto; grid-template-columns: 1fr auto; text-align: right; }
dl.kv.lines-total [hidden] { display: none; }
@media (max-width: 640px) {
  .copy { flex-wrap: wrap; }
  .copy input.signlink { flex: 1 1 100%; min-width: 180px; }
}
/* Autotrader message thread on a lead */
.thread { display: flex; flex-direction: column; gap: 8px; }
.thread .msg { background: #F3F1EC; border-radius: 10px; padding: 8px 12px; max-width: 80%; }
.thread .msg.mine { background: #E8EEF6; align-self: flex-end; }

/* ---- UX review Nov 2026 (contrast, focus, touch, iOS zoom) ---- */
/* Bronze buttons: white text needs the darker bronze to reach 4.5:1 */
.btn.bronze { background: var(--bronze-2); border-color: var(--bronze-2); }
.btn.bronze:hover { background: #74532F; border-color: #74532F; }
/* A clear focus ring for keyboard users; white on the dark navy areas */
:focus-visible { outline: 2px solid #1E4E8C; outline-offset: 2px; }
.side :focus-visible, .lp-top :focus-visible, .lp-hero :focus-visible, .lp-end :focus-visible, .lp-foot :focus-visible,
.flags :focus-visible { outline-color: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--bronze-2); outline-offset: 0; border-color: var(--bronze-2); }
input[type=checkbox], input[type=radio] { accent-color: var(--navy); }
@media (max-width: 900px) {
  /* 16px stops iPhone from zooming in when a field is tapped */
  input, select, textarea { font-size: 16px !important; }
  /* Fingers need about 44px */
  .btn { min-height: 44px; } .btn.sm { min-height: 40px; }
  .tabs a, .seg a { min-height: 40px; display: inline-flex; align-items: center; }
  input[type=checkbox], input[type=radio] { width: 20px; height: 20px; flex: 0 0 auto; }
  .check input { margin-top: 1px; }
  .side nav a { padding: 11px 12px; }
  .side .who a { padding: 8px 0; }
  .side .who button { font-size: 14px; padding: 10px 0; }
  .linkbtn { padding: 6px 0; font-size: 13px; }
  .pm-del, .pm-main { width: 34px; height: 34px; line-height: 34px; } .pm-main { right: 46px; }
}

/* Front page: the product shown straight and on phones too; balanced headline; the hero fills the first screen */
.lp-doc { transform: none; }
.lp-hero h1, .lp-h2, .lp-end h2 { text-wrap: balance; }
@media (min-width: 901px) { .lp-hero { min-height: calc(100vh - 64px); display: flex; align-items: center; } .lp-hero > .lp-wrap { width: 100%; } }
@media (max-width: 900px) { .lp-shot { display: block; margin-top: 8px; } .lp-doc { padding: 16px; } }
/* Front page feature cards: a small piece of the real screen above each heading */
.lp-frag { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 16px;
           font-size: 13px; min-height: 128px; display: flex; flex-direction: column; justify-content: center; }
.lp-fr { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 0; }
.lp-fr + .lp-fr { border-top: 1px dashed var(--line); }
.lp-fr > span:first-child { color: var(--muted); }
.lp-fr b { font-variant-numeric: tabular-nums; white-space: nowrap; } .lp-fr.ok b { color: var(--ok); }
.lp-fr .badge { font-weight: 600; }
.lp-bars { display: flex; align-items: flex-end; gap: 8px; height: 80px; }
.lp-bars i { flex: 1; background: #6B7F99; border-radius: 3px 3px 0 0; } .lp-bars i:last-child { background: var(--ok); }
.lp-f .lp-frag + h3::before { display: none; }
.lp-login { white-space: nowrap; }
.lp-hero.tool-hero { min-height: 0; display: block; padding: 44px 0 40px; }   /* tool pages: the calculator must be on the first screen */
.tool-sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; background: var(--navy); color: #fff; text-decoration: none;
  border-radius: 12px; padding: 14px 18px; font-size: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.3); text-align: center; }
.tool-sticky b { font-variant-numeric: tabular-nums; } .tool-sticky b:last-child { color: #E8C9A6; }
@media (max-width: 900px) { .tool-hero .lp-lead { font-size: 16px; margin-bottom: 0; } }

/* ---------- Admin control centre ---------- */
.cc { --cc-c1: #9FB3CC; --cc-c2: var(--bronze); }
.cc-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cc-top h1 { font-size: 26px; margin: 0; }
.cc-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--bronze-2); }
.cc-health { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cc-light { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px;
  background: var(--card); font-size: 13px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.cc-light:hover { border-color: #C5CCD6; box-shadow: 0 1px 3px rgba(14,26,43,.08); }
.cc-light .k { font-weight: 600; } .cc-light .v { color: var(--muted); }
.cc-light .dot { background: var(--ok); } .cc-light.t-warn .dot { background: #D9A23B; } .cc-light.t-bad .dot { background: var(--err); }
.cc-light.t-off .dot { background: #B7BEC8; } .cc-light.t-bad { border-color: #E8B4B4; background: var(--err-bg); } .cc-light.t-bad .v { color: var(--err); }
.dot.ok { background: var(--ok); }
.cc-nav { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.cc-nav::-webkit-scrollbar { display: none; }
.cc-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; min-height: 44px; color: var(--muted); text-decoration: none;
  font-size: 14px; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.cc-nav a:hover { color: var(--ink); }
.cc-nav a.on { color: var(--ink); font-weight: 650; border-bottom-color: var(--bronze); }
.cc-nav .cnt { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 99px; font-size: 11px; font-weight: 700; text-align: center; background: #EEF0F3; }
.cc-nav .cnt.hot { background: var(--err-bg); color: var(--err); }
.cc-pagehead { margin: -4px 0 16px; } .cc-pagehead h2 { font-size: 22px; margin: 4px 0 0; }
.cc-back { font-size: 13px; color: var(--muted); text-decoration: none; } .cc-back:hover { color: var(--ink); }
.cc-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.cc-seg { display: inline-flex; background: #E9ECF0; border-radius: 9px; padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto; }
.cc-seg a { padding: 6px 12px; min-height: 34px; display: inline-flex; align-items: center; border-radius: 7px; font-size: 13px; color: var(--muted);
  text-decoration: none; white-space: nowrap; }
.cc-seg a:hover { color: var(--ink); }
.cc-seg a.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(14,26,43,.12); }
.cc-section { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 28px 0 12px; }

/* needs attention */
.cc-attn ul { list-style: none; margin: 0; padding: 0; }
.cc-attn li { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.cc-attn li:first-child { border-top: 0; }
.cc-attn li a { flex: 1; padding: 11px 0; text-decoration: none; color: var(--ink); font-weight: 500; }
.cc-attn li .go { color: var(--muted); } .cc-attn li:hover .go { color: var(--bronze-2); }
.cc-attn li.t-bad a { color: var(--err); }
.cc-allclear { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--ok); font-weight: 500; }

/* key figures */
.cc-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 18px; overflow: hidden; }
.cc-kpi { padding: 16px 18px; border-right: 1px solid var(--line); min-width: 0; }
.cc-kpi:last-child { border-right: 0; }
.cc-kpi .k { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 5px; }
.cc-kpi .v { font-size: 24px; font-weight: 650; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.cc-kpi .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cc-kpi .spark { display: block; margin-top: 6px; width: 100%; max-width: 160px; }
.cc-delta { display: inline-block; vertical-align: middle; font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: #EEF0F3;
  color: var(--muted); letter-spacing: 0; }
.cc-delta.up { background: var(--ok-bg); color: var(--ok); } .cc-delta.down { background: var(--err-bg); color: var(--err); }
.spark-line { fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.spark-area { fill: rgba(166,124,82,.14); stroke: none; } .spark-dot { fill: var(--bronze); }
.card .spark { width: 100%; height: 48px; margin-top: 12px; }
.cc-row { margin-bottom: 0; } .cc-row > .card { margin-bottom: 18px; }
.cc-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cc-mini > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc-mini .k { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.cc-mini b { font-size: 22px; font-variant-numeric: tabular-nums; }

/* funnel */
.cc-funnel { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; gap: 12px; }
.cc-funnel .row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.cc-funnel .num { font-size: 15px; }
.cc-funnel .track { height: 10px; background: #EEF0F3; border-radius: 99px; margin-top: 5px; overflow: hidden; }
.cc-funnel .fill { height: 100%; background: var(--navy); border-radius: 99px; }
.cc-funnel li:nth-child(2) .fill { background: #3C5577; } .cc-funnel li:nth-child(3) .fill { background: #8C653F; } .cc-funnel li:nth-child(4) .fill { background: var(--bronze); }
.cc-funnel .rate { margin-top: 3px; }

/* columns */
.cc-cols { display: flex; align-items: stretch; gap: 3px; height: 170px; padding-top: 6px;
  background: linear-gradient(to top, var(--line) 1px, transparent 1px) 0 0 / 100% 25%; }
.cc-cols .col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cc-cols .stack { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 1px; border-bottom: 1px solid #C5CCD6; }
.cc-cols .stack i { display: block; flex: 1; max-width: 14px; border-radius: 3px 3px 0 0; min-height: 0; }
.cc-cols .x { font-size: 10.5px; color: var(--muted); height: 16px; line-height: 16px; white-space: nowrap; overflow: visible; }
.c1 { background: var(--cc-c1); } .c2 { background: var(--cc-c2); }
.cc-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.cc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.cc-tiles .card { margin-bottom: 0; } .cc-tiles { margin-bottom: 18px; }

@media (max-width: 1100px) { .cc-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cc-kpi:nth-child(3n) { border-right: 0; } .cc-kpi:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 700px) {
  .cc-top h1 { font-size: 22px; }
  .cc-health { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 2px; scrollbar-width: none; }
  .cc-health::-webkit-scrollbar { display: none; }
  .cc-light { white-space: nowrap; }
  .cc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-kpi { padding: 12px 14px; } .cc-kpi .v { font-size: 20px; }
  .cc-kpi:nth-child(3n) { border-right: 1px solid var(--line); } .cc-kpi:nth-child(2n) { border-right: 0; }
  .cc-kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cc-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-cols { height: 130px; } .cc-cols .x { font-size: 9.5px; }
  .cc-bar .small.muted { display: none; }
}

/* Guide: starting a car dealership (Norway) */
.guide { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
.guide-toc { position: sticky; top: 88px; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: #fff; font-size: 14px; }
.guide-toc b { display: block; margin-bottom: 8px; }
.guide-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.guide-toc a { color: var(--ink); text-decoration: none; } .guide-toc a:hover { color: var(--bronze-2); text-decoration: underline; }
.guide-body { max-width: 720px; }
.guide-body h2 { display: flex; align-items: center; gap: 12px; font-size: 24px; margin: 40px 0 12px; scroll-margin-top: 84px; }
.guide-body h2 span { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.guide-body li { margin-bottom: 6px; }
.guide-sum { background: #FAF7F2; border-left: 3px solid var(--bronze); border-radius: 8px; padding: 16px 18px; margin: 0; }
.guide-tip { background: #F4F6F9; border-radius: 8px; padding: 12px 14px; font-size: 15px; }
.guide-cta { margin: 24px 0 8px; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; background: #fff; box-shadow: 0 12px 30px rgba(10,20,34,.06); }
.guide-cta p { margin: 0 0 14px; color: var(--muted); }
.demo-video { max-width: 960px; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #0e1a2b; box-shadow: 0 18px 44px rgba(10,20,34,.18); }
.tt-grid { grid-template-columns: repeat(2, 1fr); } .tt-note { margin-top: 18px; } .tt-steps { margin: 28px auto 0; }
@media (max-width: 900px) { .tt-grid { grid-template-columns: 1fr; } }
.demo-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; }
.demo-note { text-align: center; margin: 10px 0 0; }
.demo-top-cta { margin: 22px 0 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.demo-top-cta .btn { font-size: 17px; padding: 14px 24px; }
.demo-top-cta .small { color: #C9D1DC; }
.demo-video { position: relative; }
.demo-end { position: absolute; inset: 0; z-index: 2; background: rgba(14,26,43,.92); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 20px; }
.demo-end[hidden] { display: none; }
.demo-end p { margin: 0; font-size: 20px; font-weight: 600; }
.demo-end .btn { font-size: 17px; padding: 14px 24px; }
.demo-again { background: none; border: 0; color: #C9D1DC; text-decoration: underline; cursor: pointer; font: inherit; }
.demo-sticky { display: none; background: var(--bronze, #9C6B3E); font-weight: 600; }
@media (max-width: 900px) { .demo-sticky { display: block; } .demo-sec-pad { padding-bottom: 80px; } }
#demo { scroll-margin-top: 72px; }
.demo-contact { text-align: center; color: var(--muted); }
.guide-src li { margin-bottom: 4px; }
@media (max-width: 900px) {
  .guide { grid-template-columns: 1fr; gap: 24px; }
  .guide-toc { position: static; }
  .guide-body h2 { font-size: 21px; margin-top: 32px; }
}

/* profit calculator and answer pages */
.tool-sec [hidden], .tool-sticky[hidden] { display: none !important; }   /* .btn / .tool-row set display */
.tool-kind { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.tool-kind legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.tool-kind label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-weight: 500; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; background: #fff; cursor: pointer; min-height: 44px; }
.tool-kind label:has(input:checked) { border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(166,124,82,.14); }
.tool-kind input { accent-color: var(--bronze); width: 18px; height: 18px; margin: 0; }
.tool-kind small { flex-basis: 100%; padding-left: 28px; }
.tool-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tool-money i.suf { padding: 0 14px 0 4px; font-size: 16px; }
.tool-money input:first-child { padding-left: 14px; }
.answer-body { max-width: 760px; }
.answer-body h2 { font-size: 22px; margin: 34px 0 10px; }
.answer-body p, .answer-body li { font-size: 16px; line-height: 1.65; }
.answer-body .guide-sum { font-size: 18px; line-height: 1.6; }
.answer-next { margin-top: 18px; font-weight: 600; }
.lp-more { margin: -4px 0 0; font-size: 14px; }
.lp-f p a { color: inherit; }
@media (max-width: 520px) { .tool-two { grid-template-columns: 1fr; } .answer-body .guide-sum { font-size: 16.5px; } }
.cc-mini .cc-delta { align-self: flex-start; }

/* Admin: sections that are folded away until asked for */
.cc-more { margin: 18px 0; }
.cc-more > summary { cursor: pointer; font-weight: 600; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; list-style-position: inside; }
.cc-more[open] > summary { margin-bottom: 14px; }

/* Car page: tabs and the status list */
.cartabs { margin: 0 0 16px; }
[data-tab][hidden] { display: none !important; }
.carstatus { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 6px 24px; }
.carstatus li { display: flex; align-items: baseline; gap: 8px; font-size: 14px; padding: 4px 0; }
.carstatus .k { color: var(--muted); min-width: 108px; }
/* Vehicle status: the values are links, but quiet ones – no underline until hovered, an arrow says they go somewhere */
.statuscard .carstatus a { text-decoration: none; color: var(--ink, inherit); }
.statuscard .carstatus a::after { content: " →"; color: var(--bronze); }
.statuscard .carstatus a[target="_blank"]::after { content: ""; }
.statuscard .carstatus a:hover { text-decoration: underline; }
/* Internal notes: a one-line box until the first note is written or the box is clicked */
.notes-form.empty textarea { min-height: 0; height: 42px; resize: none; transition: height .15s; }
.notes-form.empty textarea:focus, .notes-form.empty textarea:not(:placeholder-shown) { height: 72px; resize: vertical; }
.carstatus .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #B6BDC7; position: relative; top: -1px; }
.carstatus .dot.ok { background: var(--ok); } .carstatus .dot.warn { background: #D99A1C; } .carstatus .dot.bad { background: var(--err); }

/* Stock list: choose several cars */
.t td.chk, .t th.chk { width: 30px; padding-right: 0; }
.bulkbar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; margin-bottom: 10px; background: #F4F1EC; border-radius: 8px; }
.bulkbar[hidden] { display: none; }

/* Dashboard: grouped follow-ups and the six-month chart */
.fu-group { border-top: 1px solid var(--line); padding: 8px 0; }
.fu-group:first-of-type { border-top: 0; }
.fu-group > summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 8px; list-style: none; }
.fu-group > summary::-webkit-details-marker { display: none; }
.fu-group > summary::after { content: "▾"; margin-left: auto; color: var(--muted); font-weight: 400; }
.fu-group[open] > summary::after { content: "▴"; }
.fu-group .cnt { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 99px; background: #EEF0F3; color: var(--muted); font-size: 12px; text-align: center; }
.fu-group table { margin-top: 6px; }
.dash-bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 18px; }
.dash-bars .bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.dash-bars .bar i { display: block; width: 100%; max-width: 44px; min-height: 3px; background: var(--bronze, #A67C52); border-radius: 5px 5px 0 0; }
.dash-bars .bar .n { font-size: 12px; font-weight: 600; }
.dash-bars .bar .m { font-size: 11px; color: var(--muted); text-transform: lowercase; }

/* Settings: tabs in named groups */
.settabs { align-items: center; row-gap: 6px; }
.settabs .tabgroup { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 2px 0 14px; }
.settabs .tabgroup:first-child { margin-left: 0; }
@media (max-width: 720px) { .settabs .tabgroup { flex-basis: 100%; margin: 8px 0 0; } .settabs .tabgroup:first-child { margin-top: 0; } }

/* A card that is folded until it is needed */
.foldcard > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.foldcard > summary::-webkit-details-marker { display: none; }
.foldcard > summary h2 { margin: 0; }
.foldcard > summary::after { content: "▾"; color: var(--muted); }
.foldcard[open] > summary { margin-bottom: 12px; }
.foldcard[open] > summary::after { content: "▴"; }
details.slipform[open] > summary { display: none; }
.navsearch { margin: 0 0 10px; flex-basis: 100%; }
.navsearch input { width: 100%; box-sizing: border-box; background: var(--navy-2); border: 1px solid rgba(255,255,255,.12); color: #fff; border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.navsearch input::placeholder { color: #8E9AAB; }
.navsearch input:focus { outline: 2px solid var(--bronze); outline-offset: 0; }
.noterow { padding: 10px 0; border-top: 1px solid var(--line, #E6E8EC); margin-top: 10px; }
.cc-today { display: block; color: inherit; text-decoration: none; margin-top: 6px; }
.cc-today:hover { text-decoration: underline; }


/* ===== Look 2026 (the logged-in app only; public pages and signing pages keep their own look) =====
   Same brand (navy + bronze), more depth and clearer hierarchy: soft shadows instead of flat grey boxes, menu icons,
   tinted table headers, segmented tabs, larger numbers. System fonts only (nothing is fetched from outside). */
.shell { --bg: #F2F4F8; --line: #E4E8EE; --radius: 14px;
         --shadow: 0 1px 2px rgba(16,24,40,.05), 0 6px 20px -8px rgba(16,24,40,.10);
         --shadow-up: 0 2px 4px rgba(16,24,40,.06), 0 14px 28px -10px rgba(16,24,40,.18);
         background: var(--bg); }
.shell main { padding-top: 32px; }
.shell h1 { font-size: 27px; font-weight: 700; letter-spacing: -0.022em; line-height: 1.2; }
.shell h2 { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.shell h3 { letter-spacing: .07em; font-size: 12px; }

/* menu */
.shell .side { background: linear-gradient(180deg, #0A1524 0%, #10203A 100%); border-right: 1px solid rgba(255,255,255,.04); }
.shell .brand { font-size: 18px; }
.shell .side nav a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; color: #B9C3D1; font-weight: 500;
                     transition: background .15s ease, color .15s ease; }
.shell .side nav a .ni { width: 18px; height: 18px; flex: none; opacity: .75; }
.shell .side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.shell .side nav a.on { background: rgba(255,255,255,.09); color: #fff; box-shadow: inset 3px 0 0 var(--bronze); }
.shell .side nav a.on .ni { color: #D9B48A; opacity: 1; }
.shell .menu-toggle { display: none; align-items: center; gap: 8px; }
.shell .menu-toggle .ni { width: 18px; height: 18px; }
.shell .navsearch input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.10); border-radius: 10px; padding: 9px 12px; }
@media (max-width: 900px) { .shell .menu-toggle { display: inline-flex; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); border-radius: 10px; } }

/* cards and tiles */
.shell .card { border-color: var(--line); box-shadow: var(--shadow); }
.shell .card.stat { position: relative; padding: 18px 20px; }
.shell .stat .k { font-size: 11.5px; font-weight: 600; letter-spacing: .07em; }
.shell .stat .v { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-top: 6px; }
.shell a.card.stat { transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.shell a.card.stat:hover { box-shadow: var(--shadow-up); transform: translateY(-1px); border-color: #D5DBE4; }
.shell .ti { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.shell .ti svg { width: 18px; height: 18px; }
.shell .ti-blue { background: #E4EEFC; color: #1E4E8C; } .shell .ti-navy { background: #E7EBF3; color: var(--navy); }
.shell .ti-green { background: var(--ok-bg); color: var(--ok); } .shell .ti-bronze { background: #F5ECE1; color: var(--bronze-2); }
.shell a.card.stat .k { padding-right: 40px; }

/* buttons */
.shell .btn { border-radius: 10px; font-weight: 600; box-shadow: 0 1px 2px rgba(16,24,40,.08);
              transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.shell .btn:hover { box-shadow: 0 3px 8px -2px rgba(16,24,40,.18); }
.shell .btn:active { transform: translateY(1px); box-shadow: none; }
.shell .btn.ghost { border-color: #D3D9E2; } .shell .btn.ghost:hover { background: #F6F8FB; border-color: #B9C2CF; }
.shell .btn:disabled, .shell .btn[disabled] { box-shadow: none; transform: none; }

/* forms */
.shell input[type=text], .shell input[type=search], .shell input[type=email], .shell input[type=tel], .shell input[type=password],
.shell input[type=number], .shell input[type=date], .shell select, .shell textarea { border-radius: 10px; border-color: #D3D9E2; transition: border-color .15s ease, box-shadow .15s ease; }
.shell main input:focus, .shell main select:focus, .shell main textarea:focus { outline: 0; border-color: var(--bronze-2); box-shadow: 0 0 0 3px rgba(140,101,63,.22); }
.shell .navsearch input { border-radius: 10px; }

/* tables */
.shell .t th { background: #F6F8FB; border-bottom: 1px solid var(--line); padding: 10px; font-size: 11.5px; }
.shell .t th:first-child { border-radius: 8px 0 0 8px; } .shell .t th:last-child { border-radius: 0 8px 8px 0; }
.shell .t td { border-bottom-color: #EEF1F5; }
.shell .t tr[data-href] { transition: background .12s ease; }
.shell .t tr[data-href]:hover td { background: #F7F9FC; cursor: pointer; }

/* tabs as a segmented control */
.shell .tabs { display: inline-flex; background: #E6EAF1; padding: 4px; border-radius: 12px; gap: 2px; max-width: 100%; }
.shell .tabs a { border: 0; border-radius: 9px; padding: 6px 13px; font-weight: 500; transition: background .15s ease, color .15s ease; }
.shell .tabs a:hover { color: var(--ink); }
.shell .tabs a.on { background: #fff; color: var(--ink); font-weight: 650; box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.shell .tabs .cnt { background: rgba(14,26,43,.08); }

/* badges with a status dot */
.shell .badge { font-weight: 600; padding: 3px 10px 3px 9px; }
.shell .badge[class*=" b-"]::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; opacity: .8; }
.shell .tabs .badge::before, .shell h2 .badge::before { display: none; }

/* messages */
.shell .flash, .shell .notice { border-radius: 12px; border: 1px solid transparent; }
.shell .flash.success { border-color: #BFE3CF; } .shell .flash.error { border-color: #F0C4C4; } .shell .notice, .shell .flash.warning { border-color: #F1DDAE; }

/* the dashboard chart and follow-up list */
.shell .dash-bars .bar i { background: linear-gradient(180deg, #B98D62 0%, #8C653F 100%); border-radius: 8px 8px 2px 2px; max-width: 48px; }
.shell .dash-bars .bar .n { font-weight: 700; }
.shell .fu-group .cnt { font-weight: 600; }
.shell .reg { box-shadow: 0 1px 0 rgba(0,0,0,.08); }

@media (max-width: 900px) {
  .shell .card.stat { padding: 14px; } .shell .card.stat .v { font-size: 22px; }
  .shell .ti { width: 28px; height: 28px; top: 12px; right: 12px; border-radius: 8px; } .shell .ti svg { width: 15px; height: 15px; }
  .shell h1 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { .shell * { transition: none !important; } .shell a.card.stat:hover, .shell .btn:active { transform: none; } }
@media (max-width: 600px) { .shell .ti { display: none; } .shell a.card.stat .k { padding-right: 0; letter-spacing: .04em; } }

/* A two-column row where the chosen tab shows only one card: let that card use the whole width */
.shell .g2 > :not([hidden]):not(:not([hidden]) ~ *):not(:has(~ :not([hidden]))) { grid-column: 1 / -1; }
/* Settings: many tabs in four groups – a white bar where the group names divide it, the chosen tab filled */
.shell .tabs.settabs { display: flex; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 12px; border-radius: 14px; gap: 4px 2px; margin-bottom: 18px; }
.shell .settabs .tabgroup { margin: 0 4px 0 12px; padding-left: 14px; border-left: 1px solid var(--line); font-size: 10.5px; line-height: 28px; }
.shell .settabs .tabgroup:first-child { margin-left: 2px; padding-left: 0; border-left: 0; }
.shell .settabs a.on { background: var(--navy); color: #fff; box-shadow: none; }
@media (max-width: 720px) { .shell .settabs .tabgroup { flex-basis: 100%; margin: 6px 0 0; padding-left: 2px; border-left: 0; line-height: 1.6; } .shell .settabs .tabgroup:first-child { margin-top: 0; } }
/* Free text typed by people (feedback, notes, history): a long word without spaces must wrap inside the card */
#feedback .t td, tr.note td, .t td.wrap { overflow-wrap: anywhere; }

/* Date-and-time, time and web-address fields look like the other fields; the file button looks like our buttons */
.shell input[type=datetime-local], .shell input[type=time], .shell input[type=url], .shell input[type=month] {
  width: 100%; padding: 9px 11px; border: 1px solid #D3D9E2; border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
.shell input[type=file] { font: inherit; font-size: 13px; color: var(--muted); max-width: 100%; }
.shell input[type=file]::file-selector-button { font: inherit; font-size: 13px; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid #D3D9E2;
  border-radius: 9px; padding: 7px 12px; margin-right: 10px; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.shell input[type=file]::file-selector-button:hover { background: #F6F8FB; border-color: #B9C2CF; }

/* Settings groups: a group name stays on the same line as its own tabs (the whole group moves down together) */
.shell .settabs .tabset { display: inline-flex; align-items: center; flex-wrap: nowrap; gap: 2px; }
.shell .settabs .tabset:first-child .tabgroup { margin-left: 2px; padding-left: 0; border-left: 0; }
@media (max-width: 720px) { .shell .settabs .tabset { display: flex; flex-wrap: wrap; flex-basis: 100%; } }
@media (min-width: 721px) { .shell .settabs .tabset:not(:first-child) .tabgroup { margin: 0 4px 0 12px; padding-left: 14px; border-left: 1px solid var(--line); } }
/* Low windows: the account block sits under the menu instead of on top of it (the menu scrolls if it must) */
@media (min-width: 901px) {
  .shell .side { display: flex; flex-direction: column; overflow-y: auto; }
  .shell .side .who { position: static; margin-top: auto; padding-top: 12px; }
  .shell .side nav { margin-bottom: 16px; }
}

/* ===== Help ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.helpsearch { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; }
.helpsearch > svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.helpsearch input[type=search] { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; font-size: 17px; padding: 10px 4px; background: transparent; }
.helpsearch input[type=search]:focus { outline: none; }
.helpsearch:focus-within { border-color: var(--bronze-2); box-shadow: 0 0 0 3px rgba(140,101,63,.18), var(--shadow, none); }
.helpsearch.small-search { padding: 6px 8px 6px 12px; }
.helpsearch.small-search input[type=search] { font-size: 14px; padding: 6px 2px; }
.helphits ul, .helpcats ul, .helplist { list-style: none; margin: 0; padding: 0; }
.helphits li { padding: 12px 0; border-top: 1px solid var(--line); }
.helphits li:first-child { border-top: 0; padding-top: 4px; }
.helphits li > a { font-weight: 650; font-size: 15.5px; }
.helphits .small { margin-top: 3px; }
.hcat { display: inline-block; margin-left: 8px; font-size: 11.5px; color: var(--muted); background: #EEF1F5; border-radius: 99px; padding: 1px 8px; vertical-align: 1px; }
.helphits mark, .helpdoc mark { background: #F7E7C9; color: inherit; border-radius: 3px; padding: 0 1px; }
.helppop { display: flex; flex-wrap: wrap; gap: 8px; }
.helppop a { text-decoration: none; color: var(--navy); background: #F3F5F9; border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; font-size: 14px; font-weight: 500; }
.helppop a:hover { background: #fff; border-color: #C9D1DC; }
.helpcats li, .helplist li { padding: 7px 0; border-top: 1px solid #EEF1F5; font-size: 14.5px; }
.helpcats li:first-child, .helplist li:first-child { border-top: 0; }
.helpcats a, .helplist a { text-decoration: none; color: var(--ink); }
.helpcats a:hover, .helplist a:hover { color: var(--navy); text-decoration: underline; }
.helpask { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.helpask h2 { margin-bottom: 4px; }
.crumbs { color: var(--muted); margin: 0 0 10px; } .crumbs a { color: var(--muted); }
.helpwrap { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; align-items: start; }
.helpdoc { padding: 28px 32px; font-size: 15.5px; line-height: 1.65; }
.helpdoc h1 { font-size: 25px; margin-bottom: 14px; }
.helpdoc h2 { font-size: 17px; margin: 22px 0 8px; }
.helpdoc p { margin: 0 0 12px; }
.helpdoc ol, .helpdoc ul { margin: 0 0 14px; padding-left: 22px; } .helpdoc li { margin-bottom: 6px; }
.helpdoc ol.steps { counter-reset: s; list-style: none; padding-left: 0; }
.helpdoc ol.steps > li { counter-increment: s; position: relative; padding-left: 38px; margin-bottom: 10px; }
.helpdoc ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.helpdoc .tip, .helpdoc .note { border-radius: 12px; padding: 12px 14px; margin: 14px 0; font-size: 14.5px; }
.helpdoc .tip { background: #F1F6FD; border: 1px solid #D6E4F7; }
.helpdoc .note { background: var(--warn-bg); border: 1px solid #F1DDAE; color: #5E4300; }
.helpdoc .tip strong:first-child, .helpdoc .note strong:first-child { display: block; margin-bottom: 2px; }
.helpdoc kbd { font: 12px ui-monospace, Menlo, monospace; background: #F3F5F9; border: 1px solid #D3D9E2; border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; }
.helpdoc .go { display: inline-block; margin-top: 4px; }
.helpside .card h2 { font-size: 14.5px; }
@media (max-width: 900px) { .helpwrap { grid-template-columns: 1fr; } .helpdoc { padding: 20px; } }
@media (max-width: 600px) { .helpsearch input[type=search] { font-size: 16px; } .helpsearch > svg { display: none; } }
/* "Help" next to a page title */
.helplink { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; margin-left: 8px; padding: 3px 10px 3px 7px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0; color: var(--navy); background: #EEF2F8; border: 1px solid #DCE3EE;
  border-radius: 99px; text-decoration: none; position: relative; top: -2px; }
.helplink svg { width: 15px; height: 15px; }
.helplink:hover { background: #fff; border-color: #B9C2CF; }

/* ===== Help panel (next to the page) ===== */
.helpdock { position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 100vw; z-index: 60; display: flex; flex-direction: column;
  background: #fff; border-left: 1px solid var(--line); box-shadow: -12px 0 32px -16px rgba(16,24,40,.25); }
.helpdock[hidden] { display: none; }
.hd-head { display: flex; align-items: center; gap: 4px; padding: 10px 10px 10px 14px; border-bottom: 1px solid var(--line); background: #F7F9FC; }
.hd-name { flex: 1; font-size: 15px; }
.hd-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer; text-decoration: none; }
.hd-btn:hover { background: #E9EDF3; color: var(--ink); }
.hd-btn svg { width: 18px; height: 18px; }
.hd-btn[hidden] { display: none; }
.hd-search { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.hd-search input { width: 100%; padding: 9px 12px; border: 1px solid #D3D9E2; border-radius: 10px; font: inherit; font-size: 15px; }
.hd-search input:focus { outline: 0; border-color: var(--bronze-2); box-shadow: 0 0 0 3px rgba(140,101,63,.18); }
.hd-body { flex: 1; overflow-y: auto; padding: 16px 18px 28px; overscroll-behavior: contain; }
.hd-body:focus { outline: none; }
.hd-title { font-size: 19px; line-height: 1.3; margin: 2px 0 12px; }
.hd-cat { margin-bottom: 2px; }
.hd-doc { padding: 0; font-size: 14.5px; line-height: 1.6; }
.hd-doc h2 { font-size: 15.5px; margin: 18px 0 6px; }
.hd-doc ol.steps > li { padding-left: 34px; } .hd-doc ol.steps > li::before { width: 23px; height: 23px; font-size: 12px; }
.hd-more { font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 20px 0 4px; }
.hd-hits { list-style: none; margin: 0; padding: 0; } .hd-hits li { padding: 10px 0; border-top: 1px solid #EEF1F5; } .hd-hits li:first-child { border-top: 0; padding-top: 0; }
.hd-hits a { font-weight: 650; }
.hd-ask { margin-top: 20px; }
.helppill { position: fixed; right: 16px; bottom: 16px; z-index: 59; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px);
  padding: 10px 16px 10px 12px; border-radius: 99px; border: 0; background: var(--navy); color: #fff; font: inherit; font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 24px -8px rgba(16,24,40,.45); cursor: pointer; }
.helppill[hidden] { display: none; }
.helppill svg { width: 18px; height: 18px; flex: none; }
.helppill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Wide screens: the page moves over, so the help and the page are side by side */

/* Phones: the panel comes up from the bottom and covers most of the screen */
@media (max-width: 900px) {
  .helpdock { top: auto; left: 0; width: 100%; height: 82vh; border-left: 0; border-top: 1px solid var(--line); border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 32px -12px rgba(16,24,40,.35); }
  .hd-head { border-radius: 16px 16px 0 0; }
}
@media print { .helpdock, .helppill { display: none !important; } }
/* With the help open beside the page there is less room: four tiles in a row become two (until the screen is very wide) */
@media (min-width: 1200px) { .helpdock { width: 380px; } body.hd-open .shell { margin-right: 380px; } }
@media (min-width: 1200px) and (max-width: 1679px) {
  body.hd-open .grid.g4, body.hd-open .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.hd-open .grid.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* «Get started» on the dashboard */
.getstarted h2 { display: flex; align-items: center; gap: 10px; }
.gs-count { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.gs-bar { height: 6px; background: #EEF1F5; border-radius: 99px; overflow: hidden; margin: 10px 0 6px; }
.gs-bar i { display: block; height: 100%; background: linear-gradient(90deg, #B98D62, #8C653F); border-radius: 99px; }
.gs-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.gs-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid #EEF1F5; }
.gs-dot { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700;
  background: #E7EBF3; color: var(--navy); margin-top: 1px; }
.gs-dot svg { width: 14px; height: 14px; }
.gs-list li.done .gs-dot { background: var(--ok-bg); color: var(--ok); }
.gs-list li.done strong { color: var(--muted); font-weight: 500; text-decoration: line-through; text-decoration-color: #C9D1DC; }
.gs-text { min-width: 0; }
@media (max-width: 760px) { .gs-list { grid-template-columns: 1fr; } }
/* Public help pages */
.helpsearch.pub { max-width: 640px; margin: 18px 0 0; padding: 8px 8px 8px 14px; }
.helppub .helpcats { margin-top: 6px; }
.helppub .helpwrap { margin-top: 6px; }
/* Videos in help articles */
.helpvideo { margin: 14px 0 18px; }
.helpvideo video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 12px; border: 1px solid var(--line); background: #0E1A2B; }
.helpvideo figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ===== Uploaded purchase agreement ===== */
.upbox { max-width: 760px; }
.upsteps { margin: 16px 0 0; padding-left: 20px; } .upsteps li { margin-bottom: 4px; }
.upstatus { margin: 10px 0 0; }
.upwarn ul { margin: 6px 0 0; padding-left: 20px; } .upwarn li { margin-bottom: 3px; }
.upreview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; align-items: start; }
.updoc { position: sticky; top: 16px; }
.docframe { display: block; width: 100%; height: 76vh; min-height: 420px; border: 1px solid var(--line); border-radius: 10px; background: #F3F5F9; }
.upactions { margin-bottom: 24px; }
.helppop a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (max-width: 1100px) {
  .upreview { grid-template-columns: 1fr; }
  .updoc { position: static; order: -1; }
  .updoc .docframe { height: 46vh; min-height: 300px; }
}
.upoffer { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: #F7F9FC; }
/* Cost form: what reading the receipt gave */
.c-read { display: block; font-size: 12.5px; margin-top: 4px; color: var(--muted); }
.c-read:empty { display: none; }
.c-read.ok { color: var(--ok); } .c-read.warn { color: var(--warn); } .c-read.busy { font-style: italic; }

/* Remove background on car photos */
.bgtool { margin-top: 12px; }
.bgtool > details > summary { list-style: none; display: inline-flex; }
.bgtool > details > summary::-webkit-details-marker { display: none; }
.bgbody { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #F7F9FC; }
.bgchoice { display: flex; gap: 14px; flex-wrap: wrap; margin: 6px 0 12px; }
.bgchoice label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.bgchoice .sw { width: 22px; height: 22px; border-radius: 6px; border: 1px solid #C9D1DC; }
.bgpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.bgthumb { position: relative; display: block; border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: #fff; }
.bgthumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bgthumb input { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; accent-color: var(--navy); }
.bgthumb:has(input:checked) { border-color: var(--navy); }
.bgthumb.edited::after, .pm-item.edited::after { content: "✓"; position: absolute; left: 6px; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ok); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.bgsel { margin-top: 8px; color: var(--muted); }
.bgstatus { margin-top: 8px; } .bgstatus.ok { color: var(--ok); } .bgstatus.warn { color: var(--warn); } .bgstatus.busy { font-style: italic; color: var(--muted); }
/* A long title or car variant wraps instead of making the page wider than the screen */
.head > div:first-child { min-width: 0; overflow-wrap: anywhere; }
/* Buttons that are hidden stay hidden (the button style sets its own display) */
.bgtool [hidden] { display: none !important; }
.bglabel { font-weight: 600; margin-top: 4px; }
.bgnote { margin: -4px 0 12px; }
.bgchoice .lp { width: 22px; height: 16px; border-radius: 4px; border: 1px solid #C9D1DC; background: #fff; position: relative; }
.bgchoice .lp::after { content: ""; position: absolute; width: 7px; height: 4px; border-radius: 1px; background: var(--ink, #1F2933); }
.lp-br::after { right: 2px; bottom: 2px; } .lp-bl::after { left: 2px; bottom: 2px; } .lp-tr::after { right: 2px; top: 2px; } .lp-tl::after { left: 2px; top: 2px; }

/* Stock form: fields that do not belong to the chosen vehicle type */
[data-only][hidden], [data-not][hidden] { display: none !important; }

/* Front page: trailers, motorhomes/caravans and motorbikes (links to the pages in app/kind_pages.py) */
.lp-kinds { padding-top: 0; } .lp-kinds .lp-arch { margin-top: 10px; }
.lp-kind { display: flex; flex-direction: column; color: inherit; text-decoration: none; background: #fff; transition: border-color .15s, box-shadow .15s; }
.lp-kind:hover, .lp-kind:focus-visible { border-color: var(--bronze); box-shadow: 0 8px 22px rgba(166,124,82,.14); }
.lp-kind p { flex: 1; } .lp-kind-more { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--bronze-2); }
.lp-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-left: auto; margin-right: auto; }
@media (max-width: 900px) { .lp-grid-2 { grid-template-columns: 1fr; } }

/* Signup: password with a Show button */
.pwbox { display: flex; gap: 8px; align-items: center; max-width: 420px; }
.pwbox input { flex: 1; min-width: 0; }
.signup-wrap .hint.warn { color: #9a6200; }
.signup-wrap { max-width: 520px; }

#car-notes { align-self: start; }
[data-not-on-tab][hidden], [data-prep-save][hidden] { display: none; }
.notes-form.empty textarea:not(:focus)::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Phone: list tables become one card per row (no sideways scrolling). A table opts in with class "cards";
   c-main = the first, full-width line; c-push = pushed to the right; c-last = a small line at the bottom;
   data-suffix = a word after the value that the hidden column heading used to give ("28 days"). ---- */
@media (max-width: 700px) {
  table.t.cards, table.t.cards tbody { display: block; }
  table.t.cards tr:has(> th) { display: none; }
  table.t.cards tr:has(> th > a) { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0 0 8px; border-bottom: 1px solid var(--line); }
  table.t.cards tr:has(> th > a) th { padding: 0; border: 0; } table.t.cards tr:has(> th > a) th:not(:has(a)) { display: none; }
  table.t.cards tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
  table.t.cards tr:last-child { border-bottom: 0; }
  table.t.cards td { display: block; padding: 0; border: 0; min-width: 0; text-align: left; }
  table.t.cards td.car { min-width: 0; }
  table.t.cards td.chk, table.t.cards td.hide-sm, table.t.cards td:empty { display: none; }
  table.t.cards td.c-main { flex: 1 1 100%; font-size: 14.5px; }
  table.t.cards td.c-push { margin-left: auto; }
  table.t.cards td.c-last { flex: 1 1 100%; order: 9; color: var(--muted); font-size: 12px; }
  table.t.cards td[data-suffix]::after { content: " " attr(data-suffix); color: var(--muted); }
  .scroll:has(> table.t.cards) { overflow: visible; -webkit-mask-image: none; mask-image: none; }
}
/* Phone: the key figures as small tiles, two per row, so the list starts on the first screen */
@media (max-width: 700px) {
  .shell .grid:has(> .card.stat) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
  .shell .card.stat { padding: 10px 12px; margin: 0; }
  .shell .card.stat .k { font-size: 10.5px; letter-spacing: .05em; padding-right: 0; }
  .shell .card.stat .v { font-size: 19px; margin-top: 2px; }
  .shell .card.stat .small { font-size: 11.5px; }
  .shell .card.stat .ti { display: none; }
}
/* Empty lists: what the page is for, and a button to start */
.empty { text-align: center; padding: 28px 12px 24px; max-width: 520px; margin: 0 auto; }
.empty h3 { margin: 0 0 6px; font-size: 17px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.empty p { margin: 0 0 16px; }
.empty-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
/* Overview figures: a heading that wraps to two lines does not push its number below the neighbours' */
@media (min-width: 901px) { .shell .dash-stats .stat .k { min-height: 2.9em; } }
/* Get started: the steps stand out, the "How?" links stay quiet until hovered */
.gs-list .gs-text strong a { text-decoration: none; color: var(--ink); }
.gs-list .gs-text strong a:hover { text-decoration: underline; }
.gs-list a.gs-how { color: var(--bronze); text-decoration: none; white-space: nowrap; }
.gs-list a.gs-how::after { content: " →"; }
.gs-list a.gs-how:hover { text-decoration: underline; }
@media (max-width: 700px) {
  table.t.cards tr td, table.t.cards tr:hover td { background: transparent; }
  table.t.cards tr[data-href]:active { background: #F5F7FA; }
}

dl.kv.dvla-facts { margin: 0 0 14px; } .dvla-facts .ok { color: var(--ok); font-weight: 600; } .dvla-facts a { margin-left: 6px; }

.lookup-btns { display: flex; flex-wrap: wrap; gap: 8px; } .papers-btn { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; } .papers-btn.busy { opacity: .6; pointer-events: none; }

.importcounts { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; } .importcounts .chip { border: 1px solid var(--line, #ddd); background: transparent; border-radius: 999px; padding: 4px 12px; cursor: pointer; font: inherit; font-size: 13px; } .importcounts .chip.on { background: var(--ink, #16202b); color: #fff; } .importmap select { min-width: 180px; } @media (max-width: 600px) { .importmap select { min-width: 0; max-width: 46vw; } }

/* Signup: what you get, who we are, and a «we set it up for you» way in (20 Nov 2026) */
.signup-points { list-style: none; padding: 0; margin: 10px 0 4px; font-size: 14px; }
.signup-points li { position: relative; padding-left: 22px; margin: 4px 0; }
.signup-points li::before { content: "✓"; position: absolute; left: 2px; color: #1f5f3a; font-weight: 700; }
.signup-us { font-size: 13px; color: var(--muted, #666); margin: 6px 0 12px; }
.center .signup-wrap .signup-setup { margin-top: 14px; }
.signup-setup h3 { margin: 0 0 6px; font-size: 16px; }
.signup-setup p { margin: 0 0 10px; font-size: 14px; }
.signup-who { text-align: center; margin: 14px 8px 0; line-height: 1.5; color: rgba(255,255,255,.7) !important; }
.signup-who a { color: rgba(255,255,255,.85); }

/* Signing page: a short summary on top and a button that follows on the phone until the signing box is in view */
.signsum { max-width: 820px; margin-bottom: 18px; }
.signsum .signsum-car { font-size: 20px; font-weight: 700; margin-top: 4px; }
.signsum table.t { margin: 10px 0 6px; }
.signsum td.num { text-align: right; white-space: nowrap; font-weight: 600; }
.signjump { display: none; }
@media (max-width: 760px) {
  .signjump { display: block; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,.25); }
  .signjump.gone { display: none; }
}

/* Stock list: who a car is reserved for wraps instead of widening the table */
.t .resv { max-width: 170px; overflow-wrap: anywhere; }

/* Get started on the phone: the steps already done fold away so the next step is on screen */
.gs-toggle { margin: 4px 0 2px; }
@media (min-width: 761px) { .gs-toggle { display: none !important; } }
@media (max-width: 760px) { .gs-list.gs-fold li.done { display: none; } }

/* Signup: fields as wide as the button */
.signup-wrap .pwbox { max-width: none; }

/* Add vehicle, before the lookup: only the registration, the lookup buttons and the type */
form.f.short > div:not(:first-of-type), form.f.short > button[type=submit],
form.f.short > div:first-of-type > h3, form.f.short > div:first-of-type > div.grid:not(:first-of-type),
form.f.short > div:first-of-type > div.grid:first-of-type > .field:nth-child(n+4) { display: none !important; }

/* the notice under every app page (base.html) and the IP note on login/sign-up */
.app-notice { font-size: 11px; line-height: 1.4; margin: 32px 0 8px; padding-top: 10px; border-top: 1px solid var(--line, #e5e2dc); max-width: 760px; }
.ip-note { font-size: 12px; margin: 8px 0 0; text-align: center; }
.tool-form .tool-sub { margin: 6px 0 -8px; padding-top: 14px; border-top: 1px solid var(--line); }
.tool-row b { white-space: nowrap; }
/* Autotrader equipment list */
fieldset.feat{border:1px solid var(--line,#e5e5e5);border-radius:8px;padding:8px 12px;margin:0 0 10px}
fieldset.feat legend{font-weight:600;font-size:.9rem;padding:0 4px}
fieldset.feat label.check{display:block;margin:4px 0}
ul.cols{columns:2;column-gap:24px;margin:8px 0 0;padding-left:18px}
@media (max-width:600px){ul.cols{columns:1}}
/* UK front page: Autotrader integration band */
.lp-at { padding-top: 0; }
.lp-at-in { display:flex; align-items:center; justify-content:space-between; gap:20px; background:var(--card,#fff); border:1px solid var(--line,#e5e2dc); border-left:4px solid var(--bronze,#b0895a); border-radius:12px; padding:18px 22px; }
.lp-at-in h2 { margin:6px 0 4px; font-size:1.25rem; }
.lp-at-in p { margin:0; color:var(--muted,#555); max-width:720px; }
@media (max-width:700px){ .lp-at-in { flex-direction:column; align-items:flex-start; } }
.lp-at-hero { margin-top:14px; color:#d9dee7; font-size:.95rem; }
.lp-at-hero a { color:#fff; text-decoration:underline; }

/* service book: check what was read against the picture (vehicles/service_book_review.html) */
.sbpage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; align-items: start; }
.sbpic { position: sticky; top: 12px; } .sbpic img { width: 100%; border-radius: 8px; border: 1px solid var(--line); display: block; }
.sbpic iframe { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 8px; }
.sbentry { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 0 0 14px; min-width: 0; }
.sbentry legend { padding: 0 6px; font-weight: 600; } .sbentry.blank { border-style: dashed; }
.sbentry.blank .grid, .sbentry.blank > .field, .sbentry.blank > p { display: none; }
.sbunsure input { background: #FFF4DC; border-color: #E8C98A; } .sbunsure .small { color: var(--warn); }
.sbitems { display: flex; flex-wrap: wrap; gap: 4px 14px; } .sbitems label { font-weight: 400 !important; margin: 0 !important; }
.sbok { background: var(--warn-bg); color: var(--warn); padding: 8px 10px; border-radius: 8px; }
@media (max-width: 900px) { .sbpage { grid-template-columns: 1fr; } .sbpic { position: static; } }

/* blacking out by hand */
.sbredact { position: relative; display: inline-block; max-width: 100%; touch-action: none; user-select: none; cursor: crosshair; }
.sbredact img { display: block; max-width: 100%; max-height: 80vh; }
.sbredact .box { position: absolute; background: #000; }

/* the car's tabs: something is waiting in the service history */
.tabs .cnt.warn { background: var(--warn-bg); color: var(--warn); }
