/* Look v2 (design/v2/SPEC.md, D32): the tokens, the .v2 reset, type and the shared components ui.js draws. The tokens
   sit on :root since the cleanup (S10), all named --v-, so they never meet portal.css's and design.css's older --s5,
   --r-ctl and --content; #app carries .v2, and a layer appended to the body (a sheet, the viewer, toasts) carries its
   own. Component classes start v-. One white theme, no prefers-color-scheme, no gradients, Avenir Next and DIN
   Condensed only. */

:root {
  --v-ink: #0E1116;      /* 18.9 to 1: text, ink buttons, the track's and clock's time on site */
  --v-ink-2: #343A42;    /* 11.5 to 1: long body lines */
  --v-mute: #5C6570;     /* 5.9 to 1: secondary text, labels, counts, times; the floor for any text under 24 px */
  --v-soft: #8A929B;     /* 3.15 to 1: only the big figure's cents, the lede's second clause at 1024 and up, disabled text */
  --v-hair: #E6E8EB;     /* hairlines, the live card's ring, the empty track's ring */
  --v-hair-2: #D6DADF;   /* a white button's edge */
  --v-field: #8A929B;    /* 3.15 to 1: the edge of anything you type in or pick (WCAG 1.4.11) */
  --v-fill: #F6F7F8;     /* the desktop rail, skeletons, the empty part of the track */
  --v-arc: #E6E8EB;      /* the clock's time still to come */
  --v-white: #FFFFFF;
  --v-orange: #F25A1E;   /* fills only (rule 3) */
  --v-on-orange: #0E1116;/* 5.63 to 1 on orange (D18) */
  --v-green: #1F7A3F; --v-red: #B42318; --v-amber: #8A5A00;
  --v-approve: #1F7A3F; /* Approve, yes to this quote, the Paid dot's green: white on it 5.37 to 1 (AA) */
  --v-sans: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, sans-serif;
  --v-din: "DIN Condensed", "DIN Alternate", "Bahnschrift", "Avenir Next Condensed", var(--v-sans);
  --v-s1: 4px; --v-s2: 8px; --v-s3: 12px; --v-s4: 16px; --v-s5: 20px; --v-s6: 24px; --v-s7: 32px; --v-s8: 48px;
  --v-gut: 20px; --v-sec: 34px;
  --v-r-ctl: 8px;
  --v-r-surf: 12px;
  --v-r-sheet: 14px;
  --v-lift: 0 0 0 1px var(--v-hair), 0 8px 24px rgba(14, 17, 22, .06);
  --v-ease: cubic-bezier(.2, .8, .2, 1); --v-fast: 160ms; --v-med: 240ms; --v-slow: 420ms;
  --v-rail: 248px; --v-content: 1180px; --v-side: 340px; --v-doc: 320px;
  --v-tabs: calc(50px + env(safe-area-inset-bottom));
  --v-dock: var(--v-tabs);   /* what a docked action sits above: the tab bar under 1024, nothing at 1024 and up */
}
@media (min-width: 1024px) { :root { --v-gut: 40px; --v-dock: 0px; } }
@media (prefers-reduced-motion: reduce) { :root { --v-fast: 0ms; --v-med: 0ms; --v-slow: 0ms; } }

/* ---------------------------------------------------------------- the reset: old element rules never bleed in */
.v2 { font-family: var(--v-sans); color: var(--v-ink); font-size: 16px; line-height: 22px; font-weight: 500;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased; }
.v2 *, .v2 *::before, .v2 *::after { box-sizing: border-box; }
/* Element resets sit in :where() so they weigh no more than portal.css's own element rules (and, loading later, beat
   them), while any class, old or v2, still wins: an old piece inside a reskinned view keeps its look until restyled. */
:where(.v2) a { color: inherit; text-decoration: none; }
:where(.v2) a:hover { text-decoration: none; }
:where(.v2) :is(h1, h2, h3, h4) { margin: 0; font: inherit; letter-spacing: inherit; }
:where(.v2) :is(p, ol, ul, dl, dd, figure) { margin: 0; padding: 0; }
:where(.v2) :is(ol, ul) { list-style: none; }
:where(.v2) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
:where(.v2) button:disabled { cursor: default; }
:where(.v2) :is(input, select, textarea) { font: inherit; color: inherit; margin: 0; }
:where(.v2) :is(img, svg) { display: block; max-width: 100%; }
:where(.v2) table { border-collapse: collapse; width: 100%; }
.v2 [hidden] { display: none !important; }

/* Focus: nothing at load; after a real Tab press (core.js sets html.kbd) a 2 px ink ring, 2 px out. This outranks the
   old orange ring in portal.css (html.kbd :focus-visible). */
.v2 :focus, .v2:focus { outline: none; }
html.kbd .v2 :focus-visible, html.kbd .v2:focus-visible { outline: 2px solid var(--v-ink); outline-offset: 2px; }
html.kbd .v2 .v-btn-o:focus-visible, html.kbd .v2 .v-btn-g:focus-visible { box-shadow: inset 0 0 0 2px var(--v-white); }

/* A screen reader only line. */
.v2 .v-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- type (SPEC 3) */
.v2 .v-t-hero { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -.5px; text-wrap: balance; }
.v2 .v-t-title { font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -.3px; text-wrap: balance; }
.v2 .v-t-lede { font-size: 22px; line-height: 29px; font-weight: 600; letter-spacing: -.25px; text-wrap: pretty; }
.v2 .v-t-lede > .v-2nd { color: var(--v-mute); }
.v2 .v-t-lede2 { font-size: 22px; line-height: 29px; font-weight: 600; letter-spacing: -.25px; text-wrap: pretty; }
.v2 .v-t-lede2 > .v-2nd { color: var(--v-mute); }
.v2 .v-t-card { font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -.2px; }
.v2 .v-t-lab { font-size: 15px; line-height: 20px; font-weight: 600; }
.v2 .v-t-lab .v-n { margin-left: 6px; font-weight: 500; color: var(--v-mute); }
.v2 .v-t-row { font-size: 16px; line-height: 22px; font-weight: 600; }
.v2 .v-t-body { font-size: 16px; line-height: 24px; font-weight: 500; color: var(--v-ink-2); text-wrap: pretty; }
.v2 .v-t-sub { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--v-mute); }
.v2 .v-t-xs { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--v-mute); }
.v2 .v-n-big { font-family: var(--v-din); font-size: 52px; line-height: 50px; font-weight: 700; letter-spacing: -.2px; }
.v2 .v-n-big .v-c { font-size: 30px; color: var(--v-soft); }
.v2 .v-n-ref { font-family: var(--v-din); font-size: 16px; line-height: 18px; font-weight: 700; letter-spacing: .4px; color: var(--v-mute); }
.v2 .v-n-clock { font-family: var(--v-din); font-size: 60px; font-weight: 700; }
.v2 .v-amt { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.v2 .v-red { color: var(--v-red); }
@media (min-width: 1024px) {
  .v2 .v-t-hero { font-size: 40px; line-height: 46px; letter-spacing: -.8px; }
  .v2 .v-t-lede { font-size: 30px; line-height: 38px; }
  .v2 .v-t-lede > .v-2nd { color: var(--v-soft); }
  .v2 .v-t-lede2 { font-size: 24px; line-height: 31px; }
}

/* ---------------------------------------------------------------- buttons: 8 px rectangles (SPEC 6) */
.v2 .v-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; min-width: 44px;
  padding: 0 14px; border-radius: var(--v-r-ctl); font-size: 15px; line-height: 20px; font-weight: 600; white-space: nowrap;
  text-decoration: none; cursor: pointer; transition: background-color var(--v-fast) var(--v-ease), box-shadow var(--v-fast) var(--v-ease); }
.v2 .v-btn-o { background: var(--v-orange); color: var(--v-on-orange); }
.v2 .v-btn-o:hover { background: #DE4F17; }
.v2 .v-btn-k { background: var(--v-ink); color: var(--v-white); }
.v2 .v-btn-k:hover { background: #262B33; }
/* Approve is the one green button (UX_RULES 3, the owner's call Nov 2): yes to a quote, the way Jobber and Housecall Pro do it */
.v2 .v-btn-g { background: var(--v-approve); color: var(--v-white); }
.v2 .v-btn-g:hover { background: #1A6835; }
.v2 .v-btn-g:active { background: #155A2D; }
.v2 .v-btn-r { background: var(--v-red); color: var(--v-white); }
.v2 .v-btn-r:hover { background: #9A1E14; }
.v2 .v-btn-w { background: var(--v-white); color: var(--v-ink); box-shadow: inset 0 0 0 1px var(--v-hair-2); }
.v2 .v-btn-w:hover { box-shadow: inset 0 0 0 1px var(--v-field); }
/* outlined in ink: the second action under a filled one (Book an inspection under Order a repair, Close in the call sheet) */
.v2 .v-btn-line { background: var(--v-white); color: var(--v-ink); box-shadow: inset 0 0 0 1.5px var(--v-ink); }
.v2 .v-btn-line:hover { background: var(--v-fill); }
.v2 .v-btn-line:disabled { color: var(--v-soft); box-shadow: inset 0 0 0 1.5px var(--v-hair-2); }
/* a word on its own is still a 44 px target on a phone (Codex full review D2: Dates measured 41 px wide) */
.v2 .v-btn-link { min-width: 44px; padding: 0 2px; font-size: 14px; color: var(--v-ink); text-decoration: underline;
  text-decoration-color: var(--v-hair-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.v2 .v-btn-link:hover { text-decoration-color: var(--v-ink); }
.v2 .v-btn-l { min-height: 48px; padding: 0 18px; font-size: 16px; }
.v2 .v-btn-full { display: flex; width: 100%; }
.v2 .v-btn:disabled, .v2 .v-btn[aria-disabled="true"], .v2 .v-btn[aria-busy="true"] { cursor: default; }
.v2 .v-btn-o:disabled, .v2 .v-btn-k:disabled, .v2 .v-btn-g:disabled, .v2 .v-btn-r:disabled { background: var(--v-hair); color: var(--v-soft); }
.v2 .v-btn-w:disabled { color: var(--v-soft); }
.v2 .v-btn[aria-busy="true"] { opacity: .7; }
/* the switch: a 48 by 28 track, ink when on, its tap area 44 px tall */
.v2 .v-switch { position: relative; flex: none; width: 48px; height: 28px; border-radius: 14px; background: var(--v-field);
  transition: background-color var(--v-fast) var(--v-ease); }
.v2 .v-switch::after { content: ""; position: absolute; inset: -8px -4px; }
.v2 .v-switch-k { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--v-white);
  box-shadow: 0 1px 2px rgba(14, 17, 22, .2); transition: transform var(--v-fast) var(--v-ease); }
.v2 .v-switch[aria-checked="true"] { background: var(--v-ink); }
.v2 .v-switch[aria-checked="true"] .v-switch-k { transform: translateX(20px); }
.v2 .v-switch:disabled, .v2 .v-switch[aria-busy="true"] { opacity: .5; cursor: default; }
@media (prefers-reduced-motion: reduce) { .v2 .v-switch, .v2 .v-switch-k { transition: none; } }
.v2 .v-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none;
  border-radius: var(--v-r-ctl); color: var(--v-ink-2); }
.v2 .v-icon-btn:hover { background: var(--v-fill); }
@media (min-width: 1024px) {
  .v2 .v-btn { min-height: 36px; min-width: 36px; }
  .v2 .v-btn-l { min-height: 48px; }
  .v2 .v-btn-link { min-height: 24px; }
  .v2 .v-icon-btn { width: 36px; height: 36px; }
}
/* a touch screen at desktop width (an iPad across) keeps the phone's targets for a word */
@media (min-width: 1024px) and (pointer: coarse) { .v2 .v-btn-link { min-width: 44px; min-height: 44px; } }

/* ---------------------------------------------------------------- fields and choices */
.v2 .v-fld { display: block; margin-top: 18px; }
.v2 .v-fld-l { display: block; margin-bottom: 6px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--v-ink); }
.v2 .v-inp { display: block; width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: var(--v-r-ctl);
  background: var(--v-white); box-shadow: inset 0 0 0 1px var(--v-field); font-size: 16px; line-height: 22px; color: var(--v-ink);
  -webkit-appearance: none; appearance: none; transition: box-shadow var(--v-fast) var(--v-ease); }
.v2 textarea.v-inp { min-height: 100px; padding: 12px 14px; line-height: 24px; resize: vertical; }
.v2 .v-inp::placeholder { color: var(--v-mute); }
.v2 .v-inp:focus { box-shadow: inset 0 0 0 2px var(--v-ink); }
html.kbd .v2 .v-inp:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--v-ink), 0 0 0 2px var(--v-white), 0 0 0 4px var(--v-ink); }
.v2 .v-inp[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--v-red); }
.v2 .v-help { margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--v-mute); }
.v2 .v-err { margin-top: 6px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--v-red); }

.v2 .v-choices { border-top: 1px solid var(--v-hair); }
.v2 .v-choice { position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 56px; padding: 15px 0;
  border-bottom: 1px solid var(--v-hair); cursor: pointer; }
.v2 .v-choice > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.v2 .v-radio { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--v-field);
  transition: box-shadow var(--v-fast) var(--v-ease); }
.v2 .v-choice > input:checked + .v-radio { box-shadow: inset 0 0 0 6px var(--v-ink); }
html.kbd .v2 .v-choice > input:focus-visible { outline: none; }
html.kbd .v2 .v-choice > input:focus-visible + .v-radio { outline: 2px solid var(--v-ink); outline-offset: 2px; }
.v2 .v-choice-m { min-width: 0; }
.v2 .v-choice-t { display: block; font-size: 16px; line-height: 22px; font-weight: 600; }
.v2 .v-choice-s { display: block; margin-top: 2px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--v-mute); }
.v2 .v-choice > input:disabled ~ .v-choice-m { color: var(--v-soft); }

.v2 .v-seg { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; }
.v2 .v-seg-o { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 8px;
  box-shadow: inset 0 0 0 1px var(--v-hair-2); font-size: 15px; line-height: 20px; font-weight: 600; color: var(--v-mute);
  text-align: center; cursor: pointer; }
.v2 .v-seg-o + .v-seg-o { margin-left: -1px; }
.v2 .v-seg-o:first-child { border-radius: var(--v-r-ctl) 0 0 var(--v-r-ctl); }
.v2 .v-seg-o:last-child { border-radius: 0 var(--v-r-ctl) var(--v-r-ctl) 0; }
.v2 .v-seg-o > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.v2 .v-seg-o:has(> input:checked) { z-index: 1; color: var(--v-ink); box-shadow: inset 0 0 0 2px var(--v-ink); }
html.kbd .v2 .v-seg-o > input:focus-visible { outline: none; }
html.kbd .v2 .v-seg-o:has(> input:focus-visible) { outline: 2px solid var(--v-ink); outline-offset: 2px; z-index: 2; }

/* ---------------------------------------------------------------- status: a dot and an ink word (rule 4) */
.v2 .v-st { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--v-ink); white-space: nowrap; }
.v2 .v-st > i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--v-mute); }
.v2 .v-st-live > i { background: var(--v-orange); box-shadow: 0 0 0 4px rgba(242, 90, 30, .18); animation: v-halo 2.4s ease-in-out infinite; }
.v2 .v-st-you > i { background: var(--v-orange); }      /* the client's move, still (rule 3's dot) */
.v2 .v-st-go > i { background: var(--v-green); }
.v2 .v-st-stop > i { background: var(--v-red); }
.v2 .v-st-wait > i { background: var(--v-amber); }
.v2 .v-st-quiet > i { background: var(--v-field); }
@keyframes v-halo { 0%, 100% { box-shadow: 0 0 0 4px rgba(242, 90, 30, .18); } 50% { box-shadow: 0 0 0 7px rgba(242, 90, 30, .12); } }
@media (prefers-reduced-motion: reduce) { .v2 .v-st-live > i { animation: none; } }

/* ---------------------------------------------------------------- sections and rows (rule 1) */
.v2 .v-sec { margin-top: var(--v-sec); }
.v2 .v-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--v-ink); }
.v2 .v-sec-link { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; font-size: 14px; line-height: 20px;
  font-weight: 500; color: var(--v-mute); text-decoration: underline; text-decoration-color: var(--v-hair-2); text-underline-offset: 3px; }
.v2 .v-sec-link:hover { color: var(--v-ink); }

.v2 .v-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; align-items: start;
  min-height: 56px; padding: 14px 0 15px; border-bottom: 1px solid var(--v-hair); }
.v2 .v-row-k { grid-column: 1 / -1; margin-bottom: 3px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--v-mute); }
.v2 .v-row-k .v-st { font-size: 13px; line-height: 18px; }
.v2 .v-row-m { grid-column: 1; min-width: 0; }
.v2 .v-row-t { font-size: 16px; line-height: 22px; font-weight: 600; overflow-wrap: anywhere; }
.v2 .v-row-s { margin-top: 1px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--v-mute); overflow-wrap: anywhere; }
.v2 .v-row-e { grid-column: 2; text-align: right; }
.v2 .v-row-e .v-amt { font-size: 16px; line-height: 22px; }
.v2 .v-row-note { margin-top: 1px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--v-mute); white-space: nowrap; }
.v2 .v-row-note.v-red { color: var(--v-red); font-weight: 600; }
.v2 .v-row-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.v2 .v-row-x { grid-column: 1 / -1; }
/* A row that is a link: the title carries the link and its ::after covers the row; actions sit above it. */
.v2 .v-row-a::after { content: ""; position: absolute; inset: 0; }
.v2 .v-row-acts, .v2 .v-row-x { position: relative; z-index: 1; }
.v2 a.v-row-a:hover .v-row-t, .v2 .v-row:has(.v-row-a:hover) .v-row-t { text-decoration: underline; text-decoration-color: var(--v-hair-2); text-underline-offset: 3px; }
html.kbd .v2 .v-row-a:focus-visible { outline: none; }
html.kbd .v2 .v-row-a:focus-visible::after { outline: 2px solid var(--v-ink); outline-offset: -2px; border-radius: 4px; }
@media (min-width: 1024px) {
  .v2 .v-row { grid-template-columns: 96px minmax(0, 1fr) auto auto; min-height: 48px; padding: 15px 0 16px; }
  .v2 .v-row-k { grid-column: 1; grid-row: 1 / 3; margin: 0; padding-right: 12px; font-size: 14px; line-height: 22px; }
  .v2 .v-row-k .v-st { font-size: 14px; line-height: 22px; }
  .v2 .v-row-m { grid-column: 2; }
  .v2 .v-row-e { grid-column: 3; }
  .v2 .v-row-acts { grid-column: 4; grid-row: 1 / 3; margin: 0 0 0 18px; align-self: start; justify-content: flex-end; flex-wrap: nowrap; }
  .v2 .v-row-x { grid-column: 2 / -1; }
  .v2 .v-row.v-row-nok .v-row-m { grid-column: 1 / 3; }
}

/* ---------------------------------------------------------------- key and value rows, facts, tables, totals */
.v2 .v-kv { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0 13px;
  border-bottom: 1px solid var(--v-hair); font-size: 15px; line-height: 21px; }
.v2 .v-kv-k { color: var(--v-mute); font-weight: 500; }
.v2 .v-kv-v { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.v2 .v-facts { border-top: 1px solid var(--v-hair); }
.v2 .v-fr { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 12px; padding: 12px 0 13px;
  border-bottom: 1px solid var(--v-hair); font-size: 15px; line-height: 21px; }
.v2 .v-fr > dt { color: var(--v-mute); font-weight: 500; }
.v2 .v-fr > dd { color: var(--v-ink); font-weight: 500; overflow-wrap: anywhere; }
.v2 .v-tbl th, .v2 .v-tbl td { padding: 12px 0; border-bottom: 1px solid var(--v-hair); text-align: left; vertical-align: top;
  font-size: 15px; line-height: 21px; font-weight: 500; }
.v2 .v-tbl th { padding-top: 0; font-size: 13px; line-height: 18px; color: var(--v-mute); }
.v2 .v-tbl .v-r { text-align: right; padding-left: 16px; white-space: nowrap; }
.v2 .v-totals { border-top: 1px solid var(--v-ink); }
.v2 .v-tl { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0 12px;
  border-bottom: 1px solid var(--v-hair); font-size: 15px; line-height: 21px; }
.v2 .v-tl > span:first-child { color: var(--v-ink-2); font-weight: 500; overflow-wrap: anywhere; }
.v2 .v-tl > span:last-child { font-weight: 600; white-space: nowrap; }
.v2 .v-tl-sum > span:first-child { color: var(--v-mute); }
.v2 .v-tl-tot { border-bottom: 0; font-size: 16px; }
.v2 .v-tl-tot > span:first-child { color: var(--v-ink); font-weight: 600; }

/* ---------------------------------------------------------------- the flow bar */
.v2 .v-fbar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; min-height: 52px;
  padding: env(safe-area-inset-top) var(--v-gut) 0; }
.v2 .v-fbar > :first-child { grid-column: 1; justify-self: start; }
.v2 .v-fbar-mid { grid-column: 2; font-size: 16px; line-height: 22px; font-weight: 600; text-align: center; }
.v2 .v-fbar-end { grid-column: 3; justify-self: end; }
.v2 .v-fbar-step { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--v-mute); }
.v2 .v-fbar-back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin-left: -6px; font-size: 16px;
  line-height: 22px; font-weight: 500; color: var(--v-mute); }
.v2 .v-fbar-back:hover { color: var(--v-ink); }
@media (min-width: 1024px) { .v2 .v-fbar { min-height: 64px; padding: 0 32px; border-bottom: 1px solid var(--v-hair); } }

/* ---------------------------------------------------------------- overlays: the sheet and the flow sheet (SPEC 5) */
.v2.v-layer { position: fixed; inset: 0; z-index: 80; }
.v2 .v-dim { position: absolute; inset: 0; touch-action: none; background: rgba(14, 17, 22, .45); opacity: 0; transition: opacity var(--v-fast) linear; }
.v2.v-open .v-dim { opacity: 1; }
.v2 .v-sheet { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column;
  max-height: calc(100% - 48px - env(safe-area-inset-top)); background: var(--v-white);
  border-radius: var(--v-r-sheet) var(--v-r-sheet) 0 0; transform: translateY(100%); transition: transform var(--v-med) var(--v-ease); }
.v2.v-open .v-sheet { transform: none; }
.v2 .v-sheet:focus, html.kbd .v2 .v-sheet:focus-visible, html.kbd .v2.v-flow:focus-visible, html.kbd .v2.v-viewer:focus-visible { outline: none; }
.v2 .v-grab { flex: none; width: 36px; height: 5px; margin: 7px auto 0; border-radius: 3px; background: var(--v-hair-2); }
.v2 .v-sheet-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px;
  padding: 0 calc(var(--v-gut) - 10px) 0 var(--v-gut); }
.v2 .v-sheet-t { min-width: 0; font-size: 17px; line-height: 24px; font-weight: 600; }
.v2 .v-sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px var(--v-gut) 20px; }
.v2 .v-sheet-foot { flex: none; display: grid; gap: 8px; padding: 12px var(--v-gut) calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--v-hair); }
.v2 .v-sheet-foot:empty { display: none; }
@media (min-width: 1024px) {
  .v2 .v-sheet { top: 0; left: auto; width: 460px; max-height: none; border-radius: 0; box-shadow: -1px 0 0 var(--v-hair);
    transform: translateX(100%); }
  .v2 .v-grab { display: none; }
  .v2 .v-sheet-bar { min-height: 64px; padding: 0 18px 0 28px; border-bottom: 1px solid var(--v-hair); }
  .v2 .v-sheet-body { padding: 24px 28px; }
  .v2 .v-sheet-foot { padding: 16px 28px 24px; }
}

.v2.v-flow { position: fixed; inset: 0; z-index: 78; display: flex; flex-direction: column; background: var(--v-white);
  opacity: 0; transition: opacity var(--v-fast) linear; }
.v2.v-flow.v-open { opacity: 1; }
.v2.v-flow:focus { outline: none; }
.v2 .v-flow-bar { flex: none; }
.v2 .v-flow-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.v2 .v-flow-in { padding: 6px var(--v-gut) 0; }
.v2 .v-flow-aside { margin-top: var(--v-sec); }
.v2 .v-flow-aside:empty { display: none; }
/* The primary action docks above the home indicator on the phone; at 1024 it sits under the form. */
.v2 .v-flow-foot { position: sticky; bottom: 0; z-index: 2; display: grid; gap: 8px; margin: 24px calc(-1 * var(--v-gut)) 0;
  padding: 12px var(--v-gut) calc(12px + env(safe-area-inset-bottom)); background: var(--v-white); border-top: 1px solid var(--v-hair); }
.v2 .v-flow-foot:empty { display: none; }
@media (min-width: 1024px) {
  .v2 .v-flow-in { max-width: 500px; margin: 0 auto; padding: 56px 0 96px; }
  .v2 .v-flow-in.v-flow-split { max-width: none; display: grid; grid-template-columns: minmax(0, 560px) 340px; gap: 80px;
    justify-content: center; align-items: start; padding: 56px 40px 96px; }
  .v2 .v-flow-split .v-flow-aside { position: sticky; top: 32px; margin-top: 0; }
  .v2 .v-flow-foot { position: static; margin: 32px 0 0; padding: 0; border-top: 0; background: none; }
}

/* ---------------------------------------------------------------- the document's decision column */
.v2 .v-doc-fig { margin-top: 4px; }
.v2 .v-doc-rows { margin-top: 14px; }
.v2 .v-doc-acts { display: grid; gap: 8px; margin-top: 20px; }
.v2 .v-doc-after { margin-top: 10px; font-size: 14px; line-height: 20px; color: var(--v-mute); text-align: center; }
@media (max-width: 1279px) {
  /* Docked at the foot, above the tab bar under 1024, at the very foot from 1024 to 1279 (SPEC 4). */
  .v2 .v-doc-acts { position: sticky; z-index: 5; bottom: var(--v-dock); margin: 20px calc(-1 * var(--v-gut)) 0;
    padding: 12px var(--v-gut); background: var(--v-white); border-top: 1px solid var(--v-hair); }
}
@media (min-width: 1280px) { .v2 .v-doc { position: sticky; top: 28px; } }

/* ---------------------------------------------------------------- loading, empty and error */
.v2 .v-sk { display: grid; }
.v2 .v-sk-row { height: 56px; border-bottom: 1px solid var(--v-hair); position: relative; }
.v2 .v-sk-row::before, .v2 .v-sk-row::after { content: ""; position: absolute; left: 0; border-radius: 4px; background: var(--v-fill); }
.v2 .v-sk-row::before { top: 12px; width: 58%; height: 14px; }
.v2 .v-sk-row::after { top: 33px; width: 34%; height: 10px; }
.v2 .v-sk-card { height: 196px; margin-top: 22px; border-radius: var(--v-r-surf); background: var(--v-fill); }
.v2 .v-sk, .v2 .v-sk-card { animation: v-sk 1.4s ease-in-out infinite; }
@keyframes v-sk { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .v2 .v-sk, .v2 .v-sk-card { animation: none; } }
.v2 .v-empty, .v2 .v-error { display: grid; justify-items: start; gap: 12px; padding: 18px 0; }
.v2 .v-error > p { color: var(--v-ink); font-weight: 600; }
/* What core.js draws inside a v2 view (core.js is not reskinned): its failed block and its skeleton. */
.v2 .empty.failed { padding: 24px 0; max-width: 560px; }
.v2 .empty.failed h2 { margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; }
.v2 .empty.failed p { margin: 6px 0 0; font-size: 16px; line-height: 24px; color: var(--v-ink-2); }
.v2 .empty.failed .btn { margin-top: 14px; min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--v-r-ctl);
  background: var(--v-ink); color: var(--v-white); font-size: 15px; font-weight: 600; }
.v2 .skeleton { display: grid; }
.v2 .skeleton .sk-row { height: 56px; margin: 0; border-radius: 0; background: none; border-bottom: 1px solid var(--v-hair); position: relative; }
.v2 .skeleton .sk-row::before { content: ""; position: absolute; left: 0; top: 14px; width: 52%; height: 14px; border-radius: 4px; background: var(--v-fill); }

/* ---------------------------------------------------------------- the Nezam AI credit (D41) */
.v2 .v-credit { margin: 0; line-height: 0; }
/* the logo alone, as the brand kit draws it (never recoloured or faded): quiet by its size, a 44 px tall target */
.v2 .v-credit a { display: inline-flex; align-items: center; min-height: 44px; }
.v2 .v-credit img { display: block; width: 110px; height: auto; }

/* ---------------------------------------------------------------- Call Roundhouse (ui.callSheet, the design pass board 5)
   The sheet: its heading, the safety line, one black row that dials, an outlined Close; no corner Close, no rule over
   the foot. The call button is a plain 44 px icon in the phone's top row and on sign in. */
.v2 .v-call-btn { color: var(--v-ink); }
.v2.v-call .v-sheet-bar { min-height: 0; padding-top: 14px; }
.v2.v-call .v-sheet-t { font-size: 20px; line-height: 26px; font-weight: 700; letter-spacing: -.2px; }
.v2.v-call .v-sheet-body { padding-top: 4px; padding-bottom: 0; }
.v2.v-call .v-call-safe { margin: 0 0 14px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--v-mute); }
.v2 .v-call-row { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 14px; border-radius: var(--v-r-ctl);
  background: var(--v-ink); color: var(--v-white); text-decoration: none; }
.v2 .v-call-row:hover { background: #262B33; }
.v2 .v-call-ic { display: flex; flex: none; }
.v2 .v-call-m { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.v2 .v-call-t { font-size: 16px; line-height: 22px; font-weight: 700; white-space: nowrap; }
.v2 .v-call-s { font-size: 14px; line-height: 20px; font-weight: 500; color: rgba(255, 255, 255, .82); }
.v2 .v-call-row > .icon:last-child { flex: none; color: rgba(255, 255, 255, .82); }
html.kbd .v2 .v-call-row:focus-visible { outline: 2px solid var(--v-ink); outline-offset: 2px; }
.v2.v-call .v-sheet-foot { padding-top: 10px; border-top: 0; }
@media (min-width: 1024px) {
  .v2.v-call .v-sheet-bar { min-height: 64px; padding-top: 0; }
  .v2.v-call .v-sheet-body { flex: none; padding-top: 24px; }       /* Close stays under the row in the tall side panel */
  .v2.v-call .v-sheet-foot { padding-top: 12px; }
}

/* ================================================================ quiet money (slice 6, direction B, QUIET_MONEY.md)
   The one rule for an amount a client owes or pays, on every Home and money screen (firm, landlord, realtor):
     .v-amount        an amount inside a line of words: the line's own size, weight 500, tabular figures, never broken
     .v-amount-total  the one amount a page is about (a quote's or an invoice's total, what is due now): body face, 20 px
     .v-flag          overdue or failed: a small red mark beside calm grey words, never red money
     .v-row-e .v-amt  a row's amount sits at the weight of its words
   Buttons name the action ("Approve quote", "Pay invoice", "Pay balance"), the amount beside or above them and in the
   button's aria-label; exact cents stay wherever someone pays or approves. ui.amount() draws the first two. The DIN
   display figure (ui.bigMoney) is for Spend's history only, never for an amount owed. */
.v2 .v-amount { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.v2 .v-amount-total { font-family: var(--v-sans); font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -.1px;
  font-variant-numeric: tabular-nums; color: var(--v-ink); }
.v2 .v-row-e .v-amt { font-size: 15px; line-height: 22px; font-weight: 500; color: var(--v-ink-2); }
.v2 .v-flag { color: var(--v-mute); font-weight: 500; }
.v2 .v-flag::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--v-red); vertical-align: middle; }
.v2 .v-row-note.v-flag { font-weight: 500; }
