/* ============================================================
   Staff skin: "Graphite and signal red".
   Loads last, on the staff pages only. It changes how things look and
   never where they are: colours, type, borders, corners, shadows and
   motion. No layout property is set here, and every rule sits inside
   @media screen, so anything printed from these pages prints as before.
   The red is the logo's red. The logo itself is never touched.
   ============================================================ */
@media screen{

/* ---------- tokens ----------
   The existing names are redefined so every component that already uses
   them follows. The light set is also written onto the panels that open
   inside the dark band (the More menu, inputs), so they stay white. */
:root,
.fileband .fb-menu,
.fileband input,
.fileband select,
.fileband textarea{
  --paper:#ECEEF1;
  --surface:#FFFFFF;
  --surface-2:#F4F5F7;
  --ink:#0D131A;
  --ink-2:#38414C;
  --muted:#5B6470;
  --rule:#DCE0E5;
  --rule-2:#C3C9D1;
  --accent:#BE1622;
  --accent-soft:#FCECEE;
  --brass:#7D5A0B;
  --brass-soft:#F6F0DF;
  --ok:#1D6847;
  --ok-soft:#E2F1E9;
  --g-exc:#1D6847; --g-exc-bg:#E2F1E9;
  --g-vg:#245E70;  --g-vg-bg:#E0ECF0;
  --g-good:#7D5A0B;--g-good-bg:#F6F0DF;
  --g-fair:#9A4F0E;--g-fair-bg:#F9EADC;
  --g-poor:#A8202A;--g-poor-bg:#FAE7E8;
  --g-na:#5B6470;  --g-na-bg:#EBEDF0;
}
:root{
  --accent-strong:#9E1019;
  --signal:#BE1622;
  --ring:rgba(190,22,34,.28);
  --row-hover:#F6F7F9;
  --field-hover:#8E97A2;

  /* the white app bar and footer */
  --deep:#FFFFFF;
  --deep-2:#F4F5F7;
  --deep-ink:#0D131A;
  --deep-ink-2:#38414C;
  --deep-muted:#5B6470;
  --deep-rule:#DCE0E5;

  --shadow-sm:0 1px 2px rgba(13,19,26,.06);
  --shadow:0 1px 2px rgba(13,19,26,.04), 0 10px 28px -18px rgba(13,19,26,.22);
  --shadow-lg:0 2px 6px rgba(13,19,26,.06), 0 28px 60px -28px rgba(13,19,26,.38);

  /* the graphite band */
  --band:#111820;
  --band-2:#18212B;
  --band-ink:#F5F7FA;
  --band-ink-2:#D4DAE1;
  --band-muted:#A9B3BF;
  --band-rule:rgba(255,255,255,.12);
  --band-cell:rgba(255,255,255,.05);
  --band-red:#FF6B74;
  --band-signal:#E5383F;
}

/* ---------- base ---------- */
body,.app{background:var(--paper);color:var(--ink)}
::selection{background:rgba(190,22,34,.16)}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}

/* Page titles: the dashboard's count and the vehicle on an appraisal. */
.fb-veh{font-weight:800;letter-spacing:-.03em;font-size:clamp(1.5rem,3.4vw,2.125rem);line-height:1.08}
.wizhead h2{font-weight:800;letter-spacing:-.03em}
.panel-head h2{font-weight:750;letter-spacing:-.022em}
.panel-head p{color:var(--ink-2)}

/* ============================================================
   A. The white app bar. Stays white for the logo; the hard rule under
   it becomes a soft shadow line, and the navigation becomes pills.
   ============================================================ */
.appbar{background:#FFFFFF;border-bottom-color:transparent;
  box-shadow:0 1px 0 rgba(13,19,26,.07), 0 8px 22px -18px rgba(13,19,26,.45)}
.adminnav a{border-radius:999px;color:var(--ink-2)}
.adminnav a:hover{color:var(--ink);background:var(--surface-2)}
.adminnav a[aria-current="page"],
.adminnav a[aria-current="page"]:hover{background:#0D131A;color:#FFFFFF}
.appbar-who{color:var(--ink-2)}
.appbar-who .av{background:#E3E7EC;color:#0D131A;font-family:var(--sans);font-weight:750;letter-spacing:.02em}

/* ============================================================
   B. The band: the header block under the app bar, as deep graphite.
   The text, rule and surface tokens are redefined inside it so the
   existing pieces flip on their own; the rest is fixed below.
   ============================================================ */
.fileband,
.console-app .ctabs-bar{
  --ink:var(--band-ink);
  --ink-2:var(--band-ink-2);
  --muted:var(--band-muted);
  --rule:var(--band-rule);
  --rule-2:rgba(255,255,255,.24);
  --surface:transparent;
  --surface-2:var(--band-cell);
  --paper:var(--band);
  --accent:var(--band-red);
  --accent-soft:rgba(255,107,116,.14);
  --brass:#E3B341;
  --brass-soft:rgba(227,179,65,.14);
  --ok:#5CCB8F;
  --ok-soft:rgba(92,203,143,.14);
  --g-exc:#5CCB8F;
  color:var(--band-ink);
}
.fileband{background:linear-gradient(180deg,var(--band) 0%,var(--band-2) 100%);border-bottom-color:var(--band-2)}
.console-app .ctabs-bar{background:var(--band-2);border-bottom-color:var(--band-2)}
/* A band with no tab row ends on text, so it takes a little more ground
   under the title. */
body:not(.console-app) .fileband:not(:has(.ctabs)),
body:not(.console-app) .fileband:not(:has(.ctabs)) .fileband-in{padding-bottom:4px}

/* the back link, the eyebrow and the appraisal number */
.fileband .fb-id > a:first-child{font-family:var(--sans) !important;font-size:.6875rem !important;
  font-weight:650;letter-spacing:.08em !important;color:var(--band-muted)}
.fileband .fb-id > a:first-child:hover{color:var(--band-ink) !important}
.fb-num{font-family:var(--sans);font-weight:750;font-size:.75rem;letter-spacing:.09em}
#fb-num{font-family:var(--mono);font-weight:600;letter-spacing:.08em}
.fileband .fb-num{color:var(--band-red)}
.fb-num .chip{font-family:var(--sans);font-weight:700;font-size:.625rem;letter-spacing:.05em;border-radius:999px}
.fileband .fb-num .chip{background:rgba(255,107,116,.13);border-color:rgba(255,107,116,.5);color:var(--band-red)}

/* who it is for, and the tags under it */
.fileband .fb-who .nm{font-weight:650}
.fileband .fb-who .sep{color:#8A95A2}
.fileband .fb-who a:hover{color:#FFFFFF}
.fileband .fb-who .kind{font-family:var(--sans);font-weight:700;letter-spacing:.07em;border-radius:999px}
.fileband .fb-tags .tag{color:var(--band-ink-2)}
.fileband .fb-tags button.tag{font-family:var(--sans);font-size:.8125rem;font-weight:600;color:var(--band-ink);
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.26);border-radius:999px;padding:2px 10px;cursor:pointer}
.fileband .fb-tags button.tag:hover{background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.4)}
/* never shorter than it was on a phone */
.fileband .fb-tags button.tag{min-height:1.3125rem}

/* buttons on the band: light outlines; the red one stays red */
.fileband .btn-ghost{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.26);color:var(--band-ink);box-shadow:none}
.fileband .btn-ghost:hover{background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.42);color:#FFFFFF}
.fileband .btn-primary{box-shadow:inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.4)}

/* the stat strip reads as a row of gauges */
.fileband .metarow{background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.13);border-radius:12px}
.fileband .metarow > div{background:color-mix(in srgb,#FFFFFF 5%,var(--band-2))}
.fileband .metarow dt{color:var(--band-muted)}
.fileband .metarow dd{color:#FFFFFF;font-weight:700;font-size:.9375rem;line-height:1.4rem;letter-spacing:-.01em}
/* the VIN is an identifier, so it keeps the typewriter face, sized to fit its gauge */
.console-app .fileband .metarow > div:nth-child(2) dd{font-family:var(--mono);font-size:.8125rem;font-weight:600;letter-spacing:0}

/* tabs: quiet until chosen, then white with a signal-red bar */
.fileband .ctabs,
.console-app .ctabs-bar .ctabs{background:transparent;border-bottom-color:transparent;box-shadow:none}
.fileband .ctabs button,
.console-app .ctabs-bar .ctabs button{color:var(--band-muted);box-shadow:none}
.fileband .ctabs button:hover,
.console-app .ctabs-bar .ctabs button:hover{color:#FFFFFF}
.fileband .ctabs button[aria-selected="true"],
.console-app .ctabs-bar .ctabs button[aria-selected="true"]{color:#FFFFFF;border-bottom-color:transparent;
  box-shadow:inset 0 -3px 0 var(--band-signal)}
.fileband .ctabs button:focus-visible,
.console-app .ctabs-bar .ctabs button:focus-visible{outline-offset:-3px}
.fileband .ctabs .dot,
.console-app .ctabs-bar .ctabs .dot{background:#E3B341}
.fileband .ctabs .dot.ok,
.console-app .ctabs-bar .ctabs .dot.ok{background:#5CCB8F}
.fileband .ctabs::-webkit-scrollbar-thumb,
.console-app .ctabs-bar .ctabs::-webkit-scrollbar-thumb{background:rgba(255,255,255,.28)}

/* A field opened on the band itself (the customer deadline) is white with
   dark text; its focus ring takes the red that reads on graphite. */
.fileband .fb-tags input:focus-visible{outline-color:var(--band-red)}

/* Anything that opens inside the band is a normal white panel. */
.fileband .fb-menu{color:var(--ink);background:#FFFFFF;border-color:var(--rule-2);border-radius:10px;
  box-shadow:0 2px 6px rgba(13,19,26,.08), 0 24px 48px -16px rgba(0,0,0,.45)}
.fb-menu a,.fb-menu button{border-radius:6px}
.fb-menu a:hover,.fb-menu button:hover{background:var(--surface-2)}
.fb-menu select{background:#FFFFFF;border-radius:6px}

/* ============================================================
   C. The canvas: cool light graphite, white cards with soft corners.
   ============================================================ */
.fblock,.optcol,.notebox,.importbar,.cflag,.detectbar,.overall,.rpbar,.searching,.doclist,
.health-issue,.imp-done,.invlist,.invpane,.rv-status,.market-search,.bn-card,.bn-hl,.phdrop,.stub{
  border-radius:12px}
.fblock,.optcol,.notebox,.importbar,.cflag,.detectbar,.overall,.rpbar,.searching,.doclist,
.health-issue,.imp-done,.invlist,.invpane,.rv-status,.market-search,.bn-hl{
  border-color:var(--rule);box-shadow:var(--shadow)}
.fblock,.importbar,.cflag,.detectbar,.overall,.rpbar,.searching,.health-issue,.imp-done,.invpane,.market-search{background:var(--surface)}

/* Cards with a coloured left edge keep it, on a squarer left side. */
.fblock.vinlead,.cflag.crit,.cflag.warn,.cflag.good,.detectbar,.overall,.rpbar,.sidenote,.tlcomp-guide{
  border-top-left-radius:6px;border-bottom-left-radius:6px}
.fblock.vinlead,.tlcomp-guide{border-left-color:var(--signal)}
.sidenote{border-radius:6px 12px 12px 6px;border-color:var(--rule);border-left-color:var(--brass);box-shadow:var(--shadow)}

/* On the new-appraisal steps the blocks stand one on another, so the
   stack reads as one card with soft outer corners. */
.wizpanel > .fblock:has(+ .fblock:not([hidden])){border-bottom-left-radius:0;border-bottom-right-radius:0}
.wizpanel > .fblock:not([hidden]) + .fblock{border-top-left-radius:0;border-top-right-radius:0}

.alertband{border-radius:12px;box-shadow:0 10px 26px -20px rgba(190,22,34,.5)}
.selbar{border-radius:10px;background:var(--surface-2);border-color:var(--rule)}
.imp-past li{border-radius:10px;border-color:var(--rule)}
.imp-bar,.nl-bar,.ppi-bar,.rv-pickbar{border-radius:12px;border-color:var(--rule)}
.pslot,.phcard{border-radius:10px}
.pslot.empty{border-color:var(--rule-2)}
.bn-bulk{border-radius:10px}
.nl-note,.dvp-words,.condprog,.vinmsg,.paymsg,.invmsg{border-radius:8px}
.notebox > header{background:var(--surface)}
.notebox.private > header{background:var(--accent-soft)}
.notebox.prints > header{background:var(--ok-soft)}
.optcol > header{background:var(--surface-2)}
.optcol li:hover{background:var(--accent-soft);color:var(--accent-strong)}
.sheetcard,.cfm,.rv-sheet{border-radius:14px;border-color:var(--rule);box-shadow:var(--shadow-lg)}
.sheethead,.sheetfoot{background:var(--surface-2)}
.sheetfacts,.sheetimg{border-radius:10px}
.bn-ask-card{background:#FFFFFF;border-radius:14px;box-shadow:var(--shadow-lg)}
.rpick-card{border-radius:10px}
.rpick-card[aria-pressed="true"]{background:var(--surface-2)}
.wizwrap .pick{border-radius:10px;box-shadow:var(--shadow-sm)}
.wizwrap .pick:hover{border-color:var(--field-hover)}
.wizwrap .pick[aria-pressed="true"]{border-color:var(--signal);background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--signal)}

/* The open and close lines look like something you can press. The tint
   is drawn with a spread shadow so nothing shifts. */
details > summary{border-radius:6px;cursor:pointer}
details > summary:hover{background:var(--surface-2);box-shadow:0 0 0 4px var(--surface-2)}
.fileband details > summary:hover{background:transparent;box-shadow:none}

/* ---------- small labels, set in the face rather than a typewriter ---------- */
.metarow dt,.kpi dt,.pstage .l,.dtable th,.comptable th,.bn-adjtable th,.invtable th,.lntable th,
.f > label,.overall-l .lbl,.valuebox .lbl,.bn-hl-lbl,.bn-hl-why label,.rpbar-lbl,.rpick-head,
.sumrow dt,.sheetfacts dt,.sheethead .sub,.sheetload,.selbar .c,.archhead,.quickgrade .lbl,
.stepwhere,.recomputed,.fb-menu label,.docrefile label,.overridewrap label,.statusline label,
.optcol > header h3,.progress-row .pl,.filehead-meta span,.p-day,.health-detail dt,.dr-kicker,
.wizstep .n,.pslot .cap span,.phcount,.paymode,.field label{
  font-family:var(--sans);font-size:.65625rem;font-weight:650;letter-spacing:.065em;text-transform:uppercase;line-height:1.35}
/* Field labels and tile labels share a row with their neighbours, so they
   are set a touch tighter and never take a second line they did not have. */
.f > label{letter-spacing:.05em}
.kpi dt{font-size:.625rem;letter-spacing:.05em}
.rpick-head.warn{font-size:.8125rem;font-weight:500;letter-spacing:.01em;text-transform:none;line-height:1.5}
/* These sit in a row beside buttons, so they keep the width they had. */
.recomputed{font-size:.625rem;font-weight:600;letter-spacing:.08em;font-variant-numeric:tabular-nums}
.wizstep .n{font-variant-numeric:tabular-nums;font-weight:750}
.dtable th,.comptable th{color:var(--muted)}

/* card and section eyebrows */
.fblock > h3,#build-block .bb-head h3,.dvp-h,.cond-sec > h3,.condgroup h3,.sidenote h4,.fieldset > legend{
  font-family:var(--sans);font-size:.6875rem;font-weight:750;letter-spacing:.09em;line-height:1}
.skipbox > summary{font-family:var(--sans);font-size:.75rem;font-weight:700;letter-spacing:.07em}
.skipbox > summary:hover{color:var(--ink)}

/* the lines of advice under fields */
.f .hint{font-family:var(--sans);font-size:.78125rem;line-height:1.45;letter-spacing:0;color:var(--muted)}
/* The hint beside the Add a document button sets how wide its column is,
   and so where the button sits. It keeps its old measure so the button
   stays exactly where he knows it. */
.photobar .f .hint{font-family:var(--mono);font-size:.5625rem;letter-spacing:.08em;line-height:inherit}
.comp-search-guidance .f .hint,.comp-search-guidance .hint{font-size:.875rem;line-height:1.5}
.wizhint,.importbar .l span,.intake-foot p,.kpi .sub,.form-note{
  font-family:var(--sans);font-size:.78125rem;line-height:1.45;letter-spacing:0}
.phprogress,.searching .el,.sheetload{font-family:var(--sans);font-variant-numeric:tabular-nums}

/* on a phone, the labels beside stacked table values */
.comptable td.n:before,.dtable td.n:before,.bn-adjtable td[data-l]::before,
#imp-rows td[data-l]:not(.who):not(.tick)::before,
#nl-list td[data-l]:not(.who)::before,#nl-log td[data-l]:not(.who)::before{
  font-family:var(--sans);font-size:.625rem;font-weight:650;letter-spacing:.07em}

/* ============================================================
   D. Tables, status pills and filter chips.
   ============================================================ */
.scroll:has(> .dtable),.scroll:has(> .comptable){background:var(--surface);border:1px solid var(--rule);
  border-radius:12px;box-shadow:var(--shadow)}
.dtable th,.comptable th{background:var(--surface-2);border-bottom-color:var(--rule)}
.dtable td,.comptable td{border-bottom-color:var(--rule)}
.dtable tbody tr:hover,.comptable tbody tr:hover{background:var(--row-hover)}
.dtable .who{color:var(--ink);font-weight:600}
.dtable .n,.comptable .n,.lntable td.n{font-family:var(--sans);font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.005em}
/* The appraisal lists size their columns from their headings and figures,
   so these two are tracked to keep each column where it was. */
.dtable th{font-size:.625rem;letter-spacing:.04em}
.dtable .n{letter-spacing:.05em}
.comptable tfoot td{background:var(--surface-2)}
.due{font-family:var(--sans);font-size:.75rem;font-variant-numeric:tabular-nums;letter-spacing:.01em}
.bn-adjtable th,.bn-adjtable td{border-bottom-color:var(--rule)}
/* Amounts and read-out figures carry an inline typewriter face; they are
   figures, not identifiers, so they take the tabular face. */
.bn-adjtable td.n,.bn-adjtable td.n b,.f > div[style*="font-family:var(--mono)"]{
  font-family:var(--sans) !important;font-variant-numeric:tabular-nums}
.bn-adjtable td.n{font-weight:600}
.doc-meta{font-family:var(--sans);font-size:.625rem;font-weight:700;letter-spacing:.08em}
.invtable th,.invtable td,.lntable th,.lntable td{border-bottom-color:var(--rule)}

.status{font-family:var(--sans);font-size:.6875rem;font-weight:700;letter-spacing:.06em;border-radius:999px}
.stat,.rpchip,.req-must,.fb-who .kind{font-family:var(--sans);font-weight:700;letter-spacing:.06em;border-radius:999px}
.stat{padding:.12rem .5rem}
.paymode{border-radius:999px}
.det .conf{font-family:var(--sans);font-size:.625rem;font-weight:700;letter-spacing:.06em;border-radius:999px}
.det .num,.optcol li .n,.pick .pf{font-family:var(--sans);font-variant-numeric:tabular-nums;font-weight:700}
.src{font-family:var(--sans);font-size:.6875rem;font-weight:700;letter-spacing:.06em}

/* Chips share a wrapping row, so their spacing is set to keep each one as
   wide as it was and nothing in the row slides along. */
.chip{font-family:var(--sans);font-size:.6875rem;font-weight:600;letter-spacing:.055em;border-radius:999px;
  background:var(--surface);border-color:var(--rule-2);color:var(--ink-2)}
.chip:hover{border-color:var(--field-hover);color:var(--ink);background:var(--surface-2)}
.chip[aria-pressed="true"],.chip[aria-pressed="true"]:hover{background:#0D131A;border-color:#0D131A;color:#FFFFFF}

/* invoices: the list and its money */
.invrow .amt{font-family:var(--sans);font-weight:650;font-variant-numeric:tabular-nums}
.invrow:hover{background:var(--row-hover)}
.invrow[aria-current="true"]{background:#F1F3F6;box-shadow:inset 3px 0 0 var(--signal)}
.invtotal{background:#0D131A;color:#FFFFFF;border-radius:10px}
.invtotal b{font-family:var(--sans);font-weight:800;letter-spacing:-.02em}
.invmsg{font-family:var(--sans)}
.picks{border-radius:10px;background:var(--surface)}
.pickbar input{background:var(--surface);border-radius:8px}

/* ============================================================
   E. Dashboard tiles and the stage strip.
   ============================================================ */
.kpis,.pipeline{border-radius:12px;border-color:var(--rule);background:var(--rule);box-shadow:var(--shadow)}
.kpi dd{font-weight:800;font-size:1.85rem;letter-spacing:-.04em}
.kpi .sub{color:var(--muted)}
.kpi.alert .sub{color:var(--accent)}
.pstage .c{font-weight:800;letter-spacing:-.035em}
.pstage .v{font-family:var(--sans);font-weight:650;font-variant-numeric:tabular-nums}
.pstage.hot{background:#FDF3F4}
.pstage.warm{background:#FBF6EA}
.pstage.done{background:#EFF7F2}
.pstage.hot:hover:not(:disabled){background:#FAE6E8}
.pstage.warm:hover:not(:disabled){background:#F6EDD6}
.pstage.done:hover:not(:disabled){background:#E2F1E9}
.pstage.hot,.pstage.warm,.pstage.done{box-shadow:inset 0 1px 0 currentColor}
.pstage.hot{color:var(--accent)} .pstage.warm{color:var(--brass)} .pstage.done{color:var(--g-exc)}
.pstage.warm .c{color:var(--ink)}
.pstage .l{color:var(--muted)}
.pstage:not(.idle) .l{color:var(--ink-2)}

/* ============================================================
   F. Buttons.
   ============================================================ */
.btn{border-radius:8px}
.btn-primary{background:var(--signal);border-color:var(--signal);color:#FFFFFF;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18), 0 1px 2px rgba(158,16,25,.22), 0 6px 14px -8px rgba(190,22,34,.55)}
.btn-primary:hover{background:var(--accent-strong);border-color:var(--accent-strong)}
.btn-ghost,.vinmsg .btn,.rc-toggle .btn{background:var(--surface);border-color:var(--rule-2);color:var(--ink);box-shadow:var(--shadow-sm)}
.btn-ghost:hover,.vinmsg .btn:hover,.rc-toggle .btn:hover{background:var(--surface-2);border-color:var(--field-hover)}
.rc-toggle .btn[aria-pressed="true"],.nl-view .btn[aria-pressed="true"]{background:#0D131A;border-color:#0D131A;color:#FFFFFF}
.btn:active:not(:disabled){transform:translateY(1px)}
.btn-primary:active:not(:disabled){box-shadow:inset 0 1px 2px rgba(0,0,0,.18)}
.btn:disabled,.btn[aria-disabled="true"]{opacity:.5;box-shadow:none;cursor:not-allowed}
.iconbtn{border-radius:8px;border-color:var(--rule-2)}
.iconbtn:hover{background:var(--surface-2)}

/* The graphite Use press on each comparable. */
.bn-use{border-radius:8px;font-family:var(--sans);font-weight:650;color:var(--ink-2);border-color:var(--rule-2);box-shadow:var(--shadow-sm)}
.bn-use:hover{background:var(--surface-2);border-color:var(--field-hover)}
.bn-use[aria-pressed="true"],.bn-use[aria-pressed="true"]:hover{background:#0D131A;border-color:#0D131A;color:#FFFFFF;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1), 0 4px 10px -6px rgba(13,19,26,.6)}
.ppi-seg,.rp-tell{border-radius:8px}
.ppi-opt[aria-checked="true"],.rp-tell-opt[aria-checked="true"]{background:#0D131A}
.ppi-opt[data-result="attention"][aria-checked="true"]{background:var(--signal)}

/* ============================================================
   G. Form fields.
   ============================================================ */
.f input,.f select,.f textarea,.field input,.field select,.field textarea,.bs-form input,.bs-form select,.bs-form textarea,
.dvp input,.ppi-note input,.vinrow input,.statusline select,.condacts select,.overridewrap select,.docrefile select,
.invadd select,.invtable input,.invtable select,.lntable input,.lntable select,.bn-hl-why textarea,.market-search input{
  border-radius:8px;border-color:var(--rule-2);background-color:var(--surface)}
.intake .field input,.intake .field select,.intake .field textarea{border-radius:8px;border-color:var(--rule-2)}
.vinrow input{border-width:1px;border-style:solid}
/* The border is a pixel thinner than the browser's, so the padding takes
   that pixel back and the field and its button keep their height. */
.vinlead .vinrow input{padding:calc(.7rem + 1px) calc(.8rem + 1px)}
/* The note to the other appraiser is a bare text box; it joins the fields. */
#rp-opposing-text{border:1px solid var(--rule-2);border-radius:8px;background-color:var(--surface);padding:6px}
#rp-opposing-text:hover{border-color:var(--field-hover)}
.f input:hover,.f select:hover,.f textarea:hover,.vinrow input:hover,.field input:hover,.intake .field input:hover{border-color:var(--field-hover)}
.f input:focus,.f select:focus,.f textarea:focus,.field input:focus,.field select:focus,.field textarea:focus,
.intake .field input:focus,.bs-form input:focus,.bs-form select:focus,.bs-form textarea:focus,.dvp input:focus,
.ppi-note input:focus,.vinrow input:focus,.statusline select:focus,.condacts select:focus,.overridewrap select:focus,
.docrefile select:focus,.invadd select:focus,.invtable input:focus,.invtable select:focus,.lntable input:focus,.lntable select:focus,
.pickbar input:focus,.bn-hl-why textarea:focus,.market-search input:focus,.fb-menu select:focus,#rp-opposing-text:focus{
  border-color:var(--accent);box-shadow:0 0 0 3px var(--ring);outline:2px solid transparent;outline-offset:0}
.f input[readonly],.f textarea[readonly]{background-color:var(--surface-2);color:var(--muted)}
.ci select{font-family:var(--sans);font-weight:700;letter-spacing:.05em;border-radius:8px;min-height:1.75rem}
.ci select:focus{box-shadow:0 0 0 3px var(--ring);outline:2px solid transparent}
.ck input,.pickcell input,.rp-links input{accent-color:var(--signal)}
/* Fields and tick boxes the lists above do not name (control audit, 28
   October 2026: the invoice line drop-down, the Appraisals list tick boxes,
   the desktop review boxes). The same corners, border, focus ring and red
   tick, at the lowest weight. The Notes boxes inside their card and the
   fields in the dark band are left out by name, so they keep their own look
   at rest and when clicked into (on-screen review, 28 October 2026). */
:where(select:not(.fileband *),textarea:not(.notebox textarea):not(.fileband *),input:is(:not([type]),[type="text"],[type="email"],[type="tel"],
  [type="number"],[type="date"],[type="search"],[type="url"],[type="password"]):not(.fileband *)){
  border-radius:8px;border-color:var(--rule-2)}
:where(select:not(.fileband *),textarea:not(.notebox textarea):not(.fileband *),input:is(:not([type]),[type="text"],[type="email"],[type="tel"],
  [type="number"],[type="date"],[type="search"],[type="url"],[type="password"]):not(.fileband *)):focus{
  border-color:var(--accent);box-shadow:0 0 0 3px var(--ring);outline:2px solid transparent;outline-offset:0;border-radius:8px}
:where(input[type="checkbox"],input[type="radio"]){accent-color:var(--signal)}
/* The desktop review boxes carry their own corners in desktop-review.css. */
.desktop-review textarea{border-radius:8px;border-color:var(--rule-2)}
.desktop-review textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--ring);outline:2px solid transparent;outline-offset:0}

/* ============================================================
   H. Comps and value.
   ============================================================ */
.market-evidence .bn-card{border-color:var(--rule);box-shadow:var(--shadow)}
.market-evidence .bn-card.is-open{border-color:var(--rule-2)}
.bn-thumb{border-radius:8px}
.bn-row-n{font-family:var(--sans);font-variant-numeric:tabular-nums}
.bn-row-n strong{font-weight:750;letter-spacing:-.01em}
.bn-price-label{font-weight:600;letter-spacing:.02em}
.bn-strip-range,.bn-hl-range .v{font-family:var(--sans);font-weight:700;font-variant-numeric:tabular-nums}
.bn-point{font-family:var(--sans);font-weight:800;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
.bn-chip{font-family:var(--sans);font-weight:700;letter-spacing:.03em;background:color-mix(in srgb,currentColor 8%,transparent)}
/* The match line: its colour is the band it falls in, so the pill takes
   its tint from that colour. */
.bn-match{font-family:var(--sans) !important;font-weight:700;letter-spacing:.02em;border-radius:999px;padding:0 .55rem;max-width:max-content;
  background:color-mix(in srgb,currentColor 9%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 32%,transparent)}
.bn-evidence-state,.bn-report-tag,.bn-estimate-tag{border-radius:999px}
.bn-hl{border-color:var(--rule)}
.market-value .bn-hl{border-color:var(--rule);border-top-color:var(--signal);box-shadow:var(--shadow)}
.market-value .bn-hl.stale{border-top-color:var(--brass)}
.bn-hl-fig{font-weight:800;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
.bn-hl-why textarea{background-color:var(--surface)}
.valuebox{border-radius:12px}
.valuebox .big{font-weight:800;letter-spacing:-.035em}
.comp-search-guidance #comp-search-guidance-count{font-family:var(--sans);font-weight:700;font-variant-numeric:tabular-nums}
/* The search row and the group counts carry inline type, so these few
   lines have to insist. */
.market-search input{border-radius:8px !important}
.market-search input:focus{border-color:var(--accent) !important}
#lv-year,.bn-group-n{font-family:var(--sans) !important;font-variant-numeric:tabular-nums}
.bn-group-n{font-weight:650}

/* ============================================================
   I. The pinned Continue bar on the Comps tab.
   ============================================================ */
[data-panel="comps"] .stepnav{background:rgba(255,255,255,.92);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  border-top-color:var(--rule);box-shadow:0 -12px 28px -22px rgba(13,19,26,.45)}
.stepnav{border-top-color:var(--rule)}
.wizsteps{border-bottom-color:var(--rule)}
.wizstep[data-state="current"]{border-bottom-color:var(--signal)}
/* Steps still to come are shown quieter by colour, not by fading, so their
   captions stay readable. */
.wizstep{opacity:1}
.wizstep:not([data-state="current"]):not([data-state="done"]) .n,
.wizstep:not([data-state="current"]):not([data-state="done"]) .t{color:var(--muted)}
.wizfoot{border-top-color:var(--rule)}

/* ============================================================
   J. Sign in and password pages: the card stays white around the logo,
   on a graphite ground.
   ============================================================ */
main.intake{background:linear-gradient(180deg,var(--band) 0%,var(--band-2) 100%)}
main.intake .intake-card{border-color:transparent;border-radius:16px;
  box-shadow:0 2px 6px rgba(0,0,0,.2), 0 40px 80px -30px rgba(0,0,0,.7)}
main.intake .intake-foot{background:var(--surface-2)}
main.intake .lede{font-family:var(--sans)}
main.intake .intake-card a:not(.btn):hover{color:var(--accent-strong);text-decoration:underline;text-underline-offset:.18em}

/* the review card tools */
.rc-bar{box-shadow:0 1px 0 rgba(13,19,26,.06), 0 8px 22px -18px rgba(13,19,26,.45);border-bottom-color:transparent}

/* footer */
.sitefoot{background:#FFFFFF;border-top-color:var(--rule)}
.footlaw p{font-family:var(--sans);font-size:.6875rem;font-weight:600;letter-spacing:.07em;color:var(--muted)}

/* ---------- phone sizes the rules above would otherwise override ---------- */
@media (max-width:760px){
  .fb-veh{font-size:1.2rem}
  .fileband .metarow dd{font-size:.875rem}
  .kpi dd{font-size:1.65rem}
  /* The invoice line headings set the column widths on a phone, so they
     stay as narrow as before and the Remove press stays on the screen. */
  .invtable th{font-size:.5625rem;letter-spacing:.04em}
  .chip{letter-spacing:.035em}
}

/* ============================================================
   K. Motion: short colour fades, none when motion is switched off.
   ============================================================ */
.btn,.chip,.adminnav a,.ctabs button,.bn-use,.pstage,.iconbtn,.fb-menu a,.fb-menu button,details > summary,
.dtable tbody tr,.invrow,.f input,.f select,.f textarea,.vinrow input,.field input,.wizwrap .pick,.fb-tags button.tag{
  transition:color .15s ease,background-color .15s ease,border-color .15s ease,box-shadow .15s ease}
.btn{transition:color .15s ease,background-color .15s ease,border-color .15s ease,box-shadow .15s ease,transform .12s ease}
@media (prefers-reduced-motion:reduce){
  .btn,.chip,.adminnav a,.ctabs button,.bn-use,.pstage,.iconbtn,.fb-menu a,.fb-menu button,details > summary,
  .dtable tbody tr,.invrow,.f input,.f select,.f textarea,.vinrow input,.field input,.wizwrap .pick,.fb-tags button.tag{transition:none}
  .btn:active:not(:disabled){transform:none}
}

}
