@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/OpenSans-Regular.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/OpenSans-Bold.woff2) format("woff2"); }

/* Voice Forms: one paper-like sheet; the question being answered is marked like a highlighter pen.
   Tokens live on .vf-root so they never collide with a theme. Add .vf-auto-dark to follow the OS dark mode. */
.vf-root {
  --vf-bg: #F5F1ED;
  --vf-sheet: #FFFEFC;
  --vf-field-bg: #FFFFFF;
  --vf-ink: #222326;
  --vf-muted: #5C5850;
  --vf-line: #E0D8CB;
  --vf-soft: #EFE9E0;
  --vf-accent: #2443B8;
  --vf-accent-ink: #FFFFFF;
  --vf-mark: #FFE36E;
  --vf-rec: #C42B39;
  --vf-ok: #1D7A4E;
  --vf-warn: #9C4317;
  --vf-paper: #FFFFFF;
  --vf-pass: #1B6B45;
  --vf-pass-bg: #E4F1E8;
  --vf-fail: #A8231C;
  --vf-fail-bg: #FBE7E3;
  --vf-na: #4F4B44;
  --vf-na-bg: #E6E1D7;
  --vf-f-body: "Open Sans", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --vf-f-display: "Open Sans", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --vf-f-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  color: var(--vf-ink);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .vf-root.vf-auto-dark {
    --vf-bg: #0E121A; --vf-sheet: #161B26; --vf-field-bg: #10141D; --vf-ink: #E6E9F0; --vf-muted: #98A1B3;
    --vf-line: #2B3343; --vf-soft: #1E2536; --vf-accent: #8FA7FF; --vf-accent-ink: #0E121A; --vf-mark: #6B5A12;
    --vf-rec: #FF6B76; --vf-ok: #5ED39A; --vf-warn: #F2A57C; --vf-pass: #3FAE78; --vf-pass-bg: #123326; --vf-fail: #E0574D; --vf-fail-bg: #3A1614; --vf-na: #B9B2A6; --vf-na-bg: #2A2E38; color-scheme: dark;
  }
}
:root[data-theme="dark"] .vf-root.vf-auto-dark {
  --vf-bg: #0E121A; --vf-sheet: #161B26; --vf-field-bg: #10141D; --vf-ink: #E6E9F0; --vf-muted: #98A1B3;
  --vf-line: #2B3343; --vf-soft: #1E2536; --vf-accent: #8FA7FF; --vf-accent-ink: #0E121A; --vf-mark: #6B5A12;
  --vf-rec: #FF6B76; --vf-ok: #5ED39A; --vf-warn: #F2A57C; --vf-pass: #3FAE78; --vf-pass-bg: #123326; --vf-fail: #E0574D; --vf-fail-bg: #3A1614; --vf-na: #B9B2A6; --vf-na-bg: #2A2E38; color-scheme: dark;
}

.vf-root, .vf-root * { box-sizing: border-box; }
.vf-root [hidden] { display: none !important; }
.vf { --vf-pad: clamp(16px, 4vw, 40px); background: var(--vf-sheet); border: 1px solid var(--vf-line); border-radius: 10px; padding: 28px var(--vf-pad) 0; color: var(--vf-ink); font-family: var(--vf-f-body); font-size: 16px; line-height: 1.5; text-align: left; }
.vf p { margin: 0; }
.vf-eyebrow { margin: 0 0 4px; font: 500 12px/1.4 var(--vf-f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--vf-muted); }
.vf-title { margin: 0; font-family: var(--vf-f-display); font-weight: 800; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; color: var(--vf-ink); }
.vf-desc { margin-top: 8px !important; color: var(--vf-muted); max-width: 62ch; }
.vf-form { display: grid; gap: 8px; margin: 20px 0 0; }
.vf-form[hidden], .vf-field[hidden], .vf-done[hidden] { display: none !important; }
.vf-sec { border: 0; margin: 0; padding: 0; display: grid; gap: 2px; min-width: 0; }
.vf-sec + .vf-sec { margin-top: 18px; }
.vf-sec-title { padding: 0 0 8px; margin-bottom: 4px; width: 100%; border-bottom: 1px solid var(--vf-line); font-family: var(--vf-f-display); font-weight: 700; font-size: 15px; line-height: 1.3; letter-spacing: .04em; text-transform: uppercase; color: var(--vf-ink); }
.vf-field { display: grid; gap: 8px; padding: 14px 12px; margin: 0 -12px; border-radius: 8px; scroll-margin: 120px; min-width: 0; transition: background-color .2s; }
.vf-field.is-current { background: var(--vf-soft); }
.vf-info { padding-block: 10px; }
.vf-info-title { font-weight: 600; }
.vf-info-text { color: var(--vf-muted); max-width: 70ch; }
.vf-info-text + .vf-info-text { margin-top: 8px !important; }
.vf-lab { display: flex; gap: 10px; align-items: baseline; }
.vf-num { flex: none; min-width: 2.4em; font: 500 12px/1 var(--vf-f-mono); color: var(--vf-muted); font-variant-numeric: tabular-nums; }
.vf-field.is-filled .vf-num { color: var(--vf-ok); }

.vf-label { font-weight: 600; font-size: 17px; line-height: 1.35; color: var(--vf-ink); margin: 0; }
.vf-field.is-current .vf-label { background: linear-gradient(transparent 52%, var(--vf-mark) 52%); }
.vf-req { color: var(--vf-warn); text-decoration: none; border: 0; margin-left: 3px; }
.vf-help { margin: -4px 0 0 calc(2.4em + 10px) !important; font-size: 14px; color: var(--vf-muted); }
.vf-ctl { margin-left: calc(2.4em + 10px); min-width: 0; }
@media (max-width: 520px) { .vf-ctl, .vf-help { margin-left: 0 !important; } }
.vf-input { width: 100%; max-width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--vf-line); border-radius: 6px; background: var(--vf-field-bg); color: var(--vf-ink); margin: 0; }
textarea.vf-input { resize: vertical; min-height: 96px; }
.vf-input:focus-visible, .vf-opt:has(input:focus-visible), .vf-btn:focus-visible, .vf-file-btn:has(input:focus-visible), .vf-mic:focus-visible, .vf-sig-pad:focus-visible { outline: 2px solid var(--vf-accent); outline-offset: 2px; }
.vf-field.is-missing .vf-input, .vf-field.is-missing .vf-opt, .vf-field.is-missing .vf-sig-pad, .vf-field.is-missing .vf-photos { border-color: var(--vf-warn); }
.vf-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.vf-opt { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--vf-line); border-radius: 6px; background: var(--vf-field-bg); cursor: pointer; margin: 0; font-weight: 400; color: var(--vf-ink); }
.vf-opt:has(input:checked) { border-color: var(--vf-accent); background: var(--vf-soft); }
.vf-opt input { margin: 0; accent-color: var(--vf-accent); width: 18px; height: 18px; }

.vf-photos { display: grid; gap: 10px; padding: 12px; border: 1px dashed var(--vf-line); border-radius: 8px; background: var(--vf-field-bg); }
.vf-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.vf-thumbs:empty { display: none; }
.vf-thumb { position: relative; aspect-ratio: 3 / 4; max-width: 100%; border: 1px solid var(--vf-line); border-radius: 6px; overflow: hidden; background: var(--vf-soft); }
.vf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vf-thumb button { position: absolute; right: 4px; top: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; padding: 0; background: var(--vf-ink); color: var(--vf-sheet); cursor: pointer; font-size: 16px; line-height: 1; }
.vf-photo-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vf-file-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; }
.vf-file-btn input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; font-size: 0; }
.vf-photo-count { font: 500 13px/1 var(--vf-f-mono); color: var(--vf-muted); }

.vf-sig { display: grid; gap: 8px; }
.vf-sig-pad { display: block; width: 100%; max-width: 560px; aspect-ratio: 900 / 280; height: auto; background: var(--vf-paper); border: 1px solid var(--vf-line); border-radius: 6px; touch-action: none; cursor: crosshair; }
.vf-sig-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; max-width: 560px; justify-content: space-between; }
.vf-sig-hint { font-size: 14px; color: var(--vf-muted); }

.vf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.vf-submit-row { display: flex; justify-content: flex-end; padding-top: 16px; }

.vf-btn { display: inline-flex; align-items: center; justify-content: center; font: 600 15px/1 var(--vf-f-body); padding: 12px 16px; border-radius: 6px; border: 1px solid var(--vf-line); background: var(--vf-sheet); color: var(--vf-ink); cursor: pointer; margin: 0; text-transform: none; letter-spacing: normal; box-shadow: none; min-height: 44px; }
.vf-btn:hover { border-color: var(--vf-accent); }
.vf-primary { background: var(--vf-accent); border-color: var(--vf-accent); color: var(--vf-accent-ink); }
.vf-btn:disabled { opacity: .5; cursor: not-allowed; }

.vf-done { margin-top: 20px; padding: 18px; border: 1px solid var(--vf-ok); border-radius: 8px; }
.vf-done h3 { margin: 0 0 10px; font-family: var(--vf-f-display); font-weight: 700; font-size: 18px; line-height: 1.2; color: var(--vf-ink); }
.vf-done-text { margin-bottom: 14px !important; }
.vf-done dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 6px 16px; margin: 0 0 14px; }
.vf-done dt { color: var(--vf-muted); }
.vf-done dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .vf-done dl { grid-template-columns: minmax(0, 1fr); } .vf-done dd { margin-bottom: 6px; } }
.vf-done-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.vf-done-msg { margin-top: 10px !important; font-size: 14px; color: var(--vf-muted); }
.vf-done textarea { width: 100%; margin-top: 10px; font: 13px/1.4 var(--vf-f-mono); }

.vf-bar { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 5; margin: 12px 0 0; padding: 12px 16px; background: var(--vf-sheet); border: 1px solid var(--vf-line); border-radius: 12px; box-shadow: 0 8px 24px rgba(20, 18, 14, .10); display: grid; gap: 8px; color: var(--vf-ink); font-family: var(--vf-f-body); font-size: 16px; line-height: 1.5; }
.vf-bar-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vf-mic { flex: none; width: 52px; height: 52px; padding: 0; border-radius: 50%; border: 0; background: var(--vf-accent); color: var(--vf-accent-ink); display: grid; place-items: center; cursor: pointer; position: relative; }
.vf-mic svg { width: 24px; height: 24px; }
.vf-mic.is-on { background: var(--vf-rec); }
@media (prefers-reduced-motion: no-preference) {
  .vf-mic.is-on::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--vf-rec); animation: vf-pulse 1.6s ease-out infinite; }
}
@keyframes vf-pulse { from { opacity: .8; transform: scale(.92); } to { opacity: 0; transform: scale(1.25); } }
.vf-bar-text { flex: 1 1 200px; min-width: 0; }
.vf-status { font-size: 15px; line-height: 1.35; }
.vf-status.is-warn { color: var(--vf-warn); }
.vf-status.is-ok { color: var(--vf-ok); }
.vf-heard { font: 500 13px/1.4 var(--vf-f-mono); color: var(--vf-muted); min-height: 1.4em; overflow-wrap: anywhere; }
.vf-nav { display: flex; gap: 8px; align-items: center; }
.vf-pos { font: 500 12px/1 var(--vf-f-mono); color: var(--vf-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vf-hints { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 13px; color: var(--vf-muted); }
.vf-bar:not(.is-listening) .vf-hints-cmds { display: none; }
.vf-hints-cmds { display: contents; }
.vf-hints b { font: 500 12px/1 var(--vf-f-mono); color: var(--vf-ink); background: var(--vf-soft); padding: 4px 6px; border-radius: 4px; }
.vf-hints label { display: inline-flex; gap: 6px; align-items: center; margin: 0; cursor: pointer; font-size: 13px; color: var(--vf-muted); }
.vf-login { padding: 16px; border: 1px solid var(--vf-line); border-radius: 8px; background: var(--vf-sheet); }
@media (max-width: 520px) {
  .vf-bar { padding-top: 10px; gap: 6px; }
  .vf-bar-row { gap: 10px; }
  .vf-mic { width: 46px; height: 46px; }
  .vf-bar-text { flex-basis: calc(100% - 60px); }
  .vf-status { font-size: 14px; }
  .vf-heard:empty { display: none; }
  .vf-nav { width: 100%; }
  .vf-nav .vf-btn { flex: 1; }
}

/* Today button, signed-in line, locked answers */
.vf-date { display: flex; gap: 8px; align-items: stretch; max-width: 420px; }
.vf-date .vf-input { flex: 1; min-width: 0; }
.vf-user { margin-top: 10px !important; font-size: 14px; color: var(--vf-muted); }
.vf-user a { color: var(--vf-accent); }
.vf-locked { margin-top: 6px !important; font: 500 12px/1.3 var(--vf-f-mono); color: var(--vf-muted); }
.vf-input[readonly] { background: var(--vf-soft); }
.vf-photo-tip { font-size: 13px; color: var(--vf-muted); }

/* Searchable list (projects) */
.vf-lookup { position: relative; }
.vf-lookup-list { position: absolute; z-index: 6; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--vf-sheet); border: 1px solid var(--vf-line); border-radius: 8px; box-shadow: 0 8px 24px rgba(15, 20, 30, .14); max-height: 300px; overflow-y: auto; }
.vf-lookup-list li { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; border-radius: 6px; cursor: pointer; margin: 0; }
.vf-lookup-list li:hover, .vf-lookup-list li[aria-selected="true"] { background: var(--vf-soft); }
.vf-lookup-n { flex: none; font: 500 12px/1 var(--vf-f-mono); color: var(--vf-accent-ink); background: var(--vf-accent); border-radius: 4px; padding: 4px 6px; }
.vf-lookup-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.vf-lookup-code { flex: none; font: 500 12px/1 var(--vf-f-mono); color: var(--vf-muted); }
.vf-lookup-note { margin-top: 6px !important; font: 500 12px/1.3 var(--vf-f-mono); color: var(--vf-muted); min-height: 1.3em; }

/* Clone report, under the project once it is picked */
.vf-clone { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 10px 0 0; padding: 12px 14px; border: 1px solid var(--vf-accent); border-radius: 10px; background: var(--vf-soft); }
.vf-clone-text { margin: 0 !important; display: grid; gap: 2px; min-width: 0; flex: 1 1 220px; }
.vf-clone-text span { color: var(--vf-muted); font-size: 14px; }
.vf-clone .vf-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.vf-clone .vf-btn .vf-ico { width: 18px; height: 18px; }
.vf-clone.is-done { border-color: var(--vf-line); }
@media (max-width: 600px) { .vf-clone .vf-btn { width: 100%; justify-content: center; } }

/* Sign-in box */
.vf-login { padding-bottom: 28px; max-width: 480px; }
.vf-login-form { display: grid; gap: 8px; margin-top: 18px; }
.vf-login-form .vf-label { font-size: 15px; margin-top: 6px; }
.vf-login-form .vf-btn { margin-top: 10px; width: 100%; font-size: 16px; }
.vf-remember { margin-top: 8px; justify-self: start; }
.vf-login-error { margin-top: 14px !important; padding: 10px 12px; border: 1px solid var(--vf-warn); border-radius: 6px; color: var(--vf-warn); }
.vf-login-help { margin-top: 6px !important; font-size: 14px; }
.vf-login-help a { color: var(--vf-accent); }

/* Section progress in the heading */
.vf-sec-title { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.vf-sec-progress { font: 500 12px/1 var(--vf-f-mono); letter-spacing: 0; text-transform: none; color: var(--vf-muted); white-space: nowrap; }
.vf-sec-progress.is-complete { color: var(--vf-ok); }

/* Inspection checks */
.vf-check .vf-num { font-weight: 600; color: var(--vf-ink); }
.vf-look { margin: -2px 0 0 calc(2.4em + 10px) !important; font-size: 14px; line-height: 1.45; color: var(--vf-muted); max-width: 68ch; }
.vf-reg { margin: 0 0 0 calc(2.4em + 10px) !important; font-size: 13px; line-height: 1.4; color: var(--vf-muted); }
@media (max-width: 520px) { .vf-look, .vf-reg { margin-left: 0 !important; } }
.vf-result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 460px; }
.vf-res { position: relative; display: flex; align-items: center; justify-content: center; min-height: 52px; border: 1.5px solid var(--vf-line); border-radius: 8px; background: var(--vf-field-bg); font-weight: 600; font-size: 17px; cursor: pointer; margin: 0; color: var(--vf-ink); user-select: none; }
.vf-res input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.vf-res:has(input:focus-visible) { outline: 2px solid var(--vf-accent); outline-offset: 2px; }
.vf-res-pass:has(input:checked) { background: var(--vf-pass-bg); border-color: var(--vf-pass); color: var(--vf-pass); }
.vf-res-fail:has(input:checked) { background: var(--vf-fail-bg); border-color: var(--vf-fail); color: var(--vf-fail); }
.vf-res-na:has(input:checked) { background: var(--vf-soft); border-color: var(--vf-na); color: var(--vf-na); }
.vf-extras, .vf-failbox, .vf-notes-wrap { display: grid; gap: 10px; margin-top: 12px; max-width: 560px; }
.vf-failbox { padding: 12px; border: 1px solid var(--vf-fail); border-radius: 8px; background: var(--vf-fail-bg); }
.vf-failnote { font-size: 13px; color: var(--vf-fail); }
.vf-sub { display: grid; gap: 4px; min-width: 0; }
.vf-sub-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vf-sub-row .vf-sub-narrow { max-width: 110px; }
@media (max-width: 420px) { .vf-sub-row { grid-template-columns: minmax(0, 1fr); } .vf-sub-row .vf-sub-narrow { max-width: none; } }
.vf-sublabel { font-size: 14px; font-weight: 600; color: var(--vf-ink); margin: 0; }
.vf-opts-small .vf-opt { padding: 8px 14px; }
.vf-check-more { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 10px; }
.vf-linkbtn { background: none; border: 0; padding: 6px 0; font: 600 14px/1.2 var(--vf-f-body); color: var(--vf-accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.vf-linkbtn[hidden] { display: none; }
.vf-photos-compact { padding: 0; border: 0; background: none; gap: 8px; }
.vf-photos-compact .vf-btn { min-height: 38px; padding: 8px 12px; font-size: 14px; }
.vf-photos-compact .vf-thumbs { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }

/* Action log */
.vf-actions { display: grid; gap: 10px; }
.vf-actions-empty { color: var(--vf-muted); font-size: 14px; }
.vf-actions-carried, .vf-actions-fails, .vf-actions-manual { display: grid; gap: 10px; }
.vf-actions-carried:empty, .vf-actions-fails:empty, .vf-actions-manual:empty { display: none; }
.vf-arow { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--vf-line); border-radius: 8px; background: var(--vf-field-bg); }
.vf-arow-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vf-aref { font: 600 13px/1 var(--vf-f-mono); }
.vf-atitle { font-size: 14px; font-weight: 600; color: var(--vf-ink); }
.vf-atext { font-weight: 600; }
.vf-ameta { font-size: 13px; color: var(--vf-muted); }
.vf-chip { font-size: 12.5px; font-weight: 600; line-height: 1; padding: 5px 8px; border-radius: 999px; background: var(--vf-soft); color: var(--vf-muted); }
.vf-chip-warn { background: var(--vf-mark); color: var(--vf-ink); }
.vf-chip-fail { background: var(--vf-fail-bg); color: var(--vf-fail); }

/* Totals */
.vf-tally { display: flex; flex-wrap: wrap; gap: 8px; }
.vf-tally-n { padding: 10px 14px; border: 1px solid var(--vf-line); border-radius: 8px; font-size: 14px; color: var(--vf-muted); }
.vf-tally-n b { display: block; font-size: 22px; line-height: 1.1; color: var(--vf-ink); font-variant-numeric: tabular-nums; }
.vf-t-pass b { color: var(--vf-pass); }

/* HAVs points: one row per operative, coloured by how close they are to the limits */
.vf-havs { display: grid; gap: 8px; }
.vf-havs-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 14px; border: 1px solid var(--vf-line); border-left: 4px solid var(--vf-pass); border-radius: 8px; }
.vf-havs-who b { display: block; font-size: 15px; }
.vf-havs-who small { display: block; font-size: 13px; color: var(--vf-muted); overflow-wrap: anywhere; }
.vf-havs-pts { font-size: 14px; color: var(--vf-muted); text-align: right; }
.vf-havs-pts b { display: block; font-size: 22px; line-height: 1.1; color: var(--vf-ink); font-variant-numeric: tabular-nums; }
.vf-havs-say { grid-column: 1 / -1; font-size: 13.5px; font-weight: 600; color: var(--vf-pass); }
.vf-havs-row.is-action { border-left-color: var(--vf-warn); }
.vf-havs-row.is-action .vf-havs-say { color: var(--vf-warn); }
.vf-havs-row.is-limit, .vf-havs-row.is-over { border-left-color: var(--vf-fail); background: var(--vf-fail-bg); }
.vf-havs-row.is-limit .vf-havs-say, .vf-havs-row.is-over .vf-havs-say, .vf-havs-row.is-over .vf-havs-pts b { color: var(--vf-fail); }
.vf-havs-none { margin: 0; font-size: 14px; color: var(--vf-muted); }
.vf-t-fail b, .vf-progress .vf-t-fail b { color: var(--vf-fail); }
.vf-t-todo b { color: var(--vf-warn); }

/* Progress strip above the voice bar, and draft notice */
.vf-progress { display: flex; gap: 14px; font: 500 12px/1 var(--vf-f-mono); color: var(--vf-muted); }
.vf-progress b { color: var(--vf-ink); }
.vf-draftnote { margin-top: 10px !important; font-size: 14px; color: var(--vf-muted); }

/* ---------- Steps: one section at a time ---------- */
.vf { container-type: inline-size; container-name: vf; }
.vf-layout { display: block; }
.vf-main { min-width: 0; }
.vf-step[hidden] { display: none !important; }
.vf-layout.has-steps .vf-form:not(.is-last-step) .vf-submit-row { display: none; }
.vf-step-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 18px; margin-top: 8px; border-top: 1px solid var(--vf-line); }
.vf-step-foot .vf-btn { max-width: 100%; }
.vf-step-foot .vf-btn:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf-layout.has-steps .vf-submit-row { padding-top: 12px; }

/* Section menu: a ☰ bar on phones, a sidebar on wide screens */
.vf-steps { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 7; margin: 16px calc(-1 * var(--vf-pad)) 0; padding: 0 var(--vf-pad); background: var(--vf-sheet); border-bottom: 1px solid var(--vf-line); }
.vf-steps-toggle { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 0; border: 0; background: none; color: var(--vf-ink); font: inherit; text-align: left; cursor: pointer; }
.vf-steps-toggle:focus-visible { outline: 2px solid var(--vf-accent); outline-offset: 2px; }
.vf-burger { flex: none; display: grid; gap: 4px; width: 22px; }
.vf-burger i { display: block; height: 2.5px; border-radius: 2px; background: var(--vf-ink); }
.vf-steps-now { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; }
.vf-steps-count { grid-column: 1; font: 500 11px/1.3 var(--vf-f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--vf-muted); }
.vf-steps-now b { grid-column: 1; font-weight: 700; font-size: 16px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vf-steps-mini { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 500 13px/1 var(--vf-f-mono); color: var(--vf-muted); }
.vf-steps-list { display: none; list-style: none; margin: 0 0 12px; padding: 0; gap: 4px; }
.vf-steps.is-open .vf-steps-list { display: grid; }
.vf-steps-list li { margin: 0; }
.vf-step-btn { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--vf-ink); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.vf-step-btn:hover { background: var(--vf-soft); }
.vf-step-btn:focus-visible { outline: 2px solid var(--vf-accent); outline-offset: 1px; }
.vf-step-btn.is-current { border-color: var(--vf-accent); background: var(--vf-soft); font-weight: 600; }
.vf-step-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--vf-line); font: 500 12px/1 var(--vf-f-mono); color: var(--vf-muted); }
.vf-step-btn.is-done .vf-step-n { background: var(--vf-pass); border-color: var(--vf-pass); color: #fff; }
.vf-step-btn.is-current .vf-step-n { border-color: var(--vf-accent); color: var(--vf-accent); }
.vf-step-btn.is-done.is-current .vf-step-n { color: #fff; }
.vf-step-name { min-width: 0; overflow-wrap: anywhere; }
.vf-step-state { font: 500 12px/1 var(--vf-f-mono); color: var(--vf-muted); white-space: nowrap; }
.vf-step-btn.is-done .vf-step-state { color: var(--vf-pass); }
.vf-step-btn.has-fail .vf-step-state { color: var(--vf-fail); }

/* ---------- The cursor: where the next answer goes ---------- */
.vf-root .vf-cursor { outline: 3px solid var(--vf-accent); outline-offset: 3px; border-radius: 8px; box-shadow: 0 0 0 7px color-mix(in srgb, var(--vf-accent) 18%, transparent); transition: outline-color .15s, box-shadow .15s; }
.vf-sub:has(.vf-cursor) > .vf-sublabel, .vf-notes-wrap:has(.vf-cursor) .vf-sublabel { background: linear-gradient(transparent 52%, var(--vf-mark) 52%); }
.vf-field.is-current:not(:has(.vf-cursor:not(.vf-result))) .vf-label { background: linear-gradient(transparent 52%, var(--vf-mark) 52%); }
.vf-field.is-current:has(.vf-cursor:not(.vf-result)) .vf-label { background: none; }
@media (prefers-reduced-motion: reduce) { .vf-root .vf-cursor { transition: none; } }

/* ---------- Wide screens (laptop, desktop, tablet landscape) ---------- */
@container vf (min-width: 880px) {
  .vf { --vf-pad: 36px; padding-top: 32px; }
  .vf-layout.has-steps { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 0 36px; align-items: start; margin-top: 20px; }
  .vf-steps { position: sticky; top: calc(16px + env(safe-area-inset-top, 0px)); margin: 0; padding: 0; border: 0; background: none; }
  .vf-steps-toggle { display: none; }
  .vf-steps-list { display: grid; margin: 0; }
  .vf-layout.has-steps .vf-form { margin-top: 0; }
  .vf-field { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 28px; align-items: start; padding: 16px 14px; margin: 0 -14px; }
  .vf-field > * { grid-column: 1; }
  .vf-field > .vf-ctl { grid-column: 2; grid-row: 1 / span 6; margin-left: 0 !important; }
  .vf-field.vf-info, .vf-field.vf-tally-field { grid-template-columns: minmax(0, 1fr); }
  .vf-field.vf-info > *, .vf-field.vf-tally-field > * { grid-column: 1; }
  .vf-field.vf-tally-field > .vf-ctl { grid-row: auto; }
  .vf-help, .vf-look, .vf-reg { margin-left: calc(2.4em + 10px) !important; }
  .vf-field[data-type="actions"] { grid-template-columns: minmax(0, 1fr); }
  .vf-field[data-type="actions"] > .vf-ctl { grid-column: 1; grid-row: auto; }
  .vf-result { max-width: none; }
  .vf-sec-title { font-size: 17px; }
  .vf-submit-row { padding-top: 20px; }
  .vf-date { max-width: 380px; }
}
@container vf (min-width: 1200px) {
  .vf-layout.has-steps { grid-template-columns: 280px minmax(0, 1fr); gap: 0 48px; }
}

/* ---------- Searchable dropdowns (client, site) ---------- */
.vf-lookup-box { position: relative; }
.vf-lookup-drop .vf-input { padding-right: 46px; cursor: pointer; }
.vf-lookup-drop .vf-input:focus { cursor: text; }
.vf-caret { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 6px; background: none; color: var(--vf-muted); font-size: 18px; cursor: pointer; padding: 0; }
.vf-caret:hover { background: var(--vf-soft); color: var(--vf-ink); }
.vf-input:disabled { background: var(--vf-soft); color: var(--vf-muted); cursor: not-allowed; }
.vf-lookup-list li[aria-selected="true"] { background: var(--vf-soft); font-weight: 600; }
.vf-lookup-name small { display: block; font-size: 13px; font-weight: 400; color: var(--vf-muted); }
.vf-lookup-drop .vf-lookup-list { max-height: min(60vh, 420px); }
.vf-near { margin-top: 8px; gap: 6px; }
.vf-pin { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.vf-locate { display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; }

/* ---------- Scan the paperwork, and suggestions to confirm ---------- */
.vf-scan-go { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.vf-scan-state { font: 500 13px/1.3 var(--vf-f-mono); color: var(--vf-muted); }
.vf-scan-note { margin-top: 10px !important; font-size: 14px; color: var(--vf-muted); max-width: 62ch; }
.vf-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 8px; padding: 8px 10px; border: 1px dashed var(--vf-accent); border-radius: 8px; background: color-mix(in srgb, var(--vf-accent) 7%, var(--vf-sheet)); }
.vf-suggest-text { flex: 1 1 200px; min-width: 0; font-size: 14px; color: var(--vf-ink); overflow-wrap: anywhere; }
.vf-suggest-text b { color: var(--vf-accent); }
.vf-suggest-text i { color: var(--vf-warn); font-style: normal; }
.vf-suggest .vf-btn { min-height: 36px; padding: 7px 12px; font-size: 14px; }
.vf-conf-low { border-color: var(--vf-warn); }
.vf-ai-warn { margin-top: 10px !important; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--vf-warn) 45%, var(--vf-line)); border-radius: 8px; background: color-mix(in srgb, var(--vf-warn) 7%, var(--vf-sheet)); font-size: 14px; color: var(--vf-ink); }


/* ---------- Voice choice ---------- */
.vf-voice-set { display: inline-flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-left: auto; }
.vf-voice-set label { margin: 0; }
.vf-voice, .vf-rate { max-width: 220px; font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid var(--vf-line); border-radius: 6px; background: var(--vf-field-bg); color: var(--vf-ink); }

.vf-scan-toggle { margin-top: 12px; }
.vf-scan-go[hidden] { display: none !important; }


/* ======================================================================
   Polish pass: legible outdoors, one-handed, and recognisably the company's own.
   ====================================================================== */

/* Drawn icons */
.vf-ico { width: 18px; height: 18px; flex: none; }
.vf-btn { gap: 8px; }
.vf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Browser surfaces carry the palette too */
.vf-root ::selection { background: color-mix(in srgb, var(--vf-accent) 22%, transparent); color: var(--vf-ink); }
.vf-root input, .vf-root textarea { caret-color: var(--vf-accent); }
.vf-root .vf-lookup-list, .vf-root .vf-steps-list { scrollbar-color: var(--vf-line) transparent; scrollbar-width: thin; }
.vf-root .vf-input:focus-visible { border-color: var(--vf-accent); }

/* Header: the company's logo, then the title. No kicker label. */
.vf-head { display: grid; gap: 6px; }
.vf-logo { display: block; height: 46px; width: auto; max-width: 70%; object-fit: contain; margin-bottom: 10px; }
.vf-user a { display: inline-block; padding: 12px 6px; margin: -12px -6px; color: var(--vf-accent); }

/* Pass / Fail / N/A: the one judgement on every row, readable in glare */
.vf-res { gap: 8px; min-height: 56px; border-width: 2px; font-size: 17px; background: var(--vf-field-bg); }
.vf-res-ico { display: inline-grid; opacity: .45; }
.vf-res-ico .vf-ico { width: 20px; height: 20px; }
.vf-res:hover { border-color: var(--vf-ink); }
.vf-res:has(input:checked) .vf-res-ico { opacity: 1; }
.vf-res-pass:has(input:checked) { background: var(--vf-pass); border-color: var(--vf-pass); color: #fff; }
.vf-res-fail:has(input:checked) { background: var(--vf-fail); border-color: var(--vf-fail); color: #fff; }
.vf-res-na:has(input:checked) { background: var(--vf-na-bg); border-color: var(--vf-na); color: var(--vf-ink); }
.vf-check.is-fail { background: color-mix(in srgb, var(--vf-fail) 5%, var(--vf-sheet)); }
.vf-check.is-fail.is-current { background: color-mix(in srgb, var(--vf-fail) 8%, var(--vf-soft)); }

/* Number badge says the state: tick when done, cross for a fail, dash for N/A */
.vf-num { display: inline-flex; align-items: center; gap: 4px; }
.vf-field.is-filled .vf-num::after,
.vf-check.is-fail .vf-num::after,
.vf-check.is-na .vf-num::after { content: ""; width: 13px; height: 13px; background: currentColor;
  -webkit-mask: var(--vf-mark-ico) center / contain no-repeat; mask: var(--vf-mark-ico) center / contain no-repeat; }
.vf-field.is-filled .vf-num { --vf-mark-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.vf-check.is-fail .vf-num { color: var(--vf-fail); --vf-mark-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11'/%3E%3C/svg%3E"); }
.vf-check.is-na .vf-num { color: var(--vf-na); --vf-mark-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); }
.vf-check.is-fail:not(.is-filled) .vf-num::after, .vf-check.is-fail .vf-num::after { display: inline-block; }

/* Quiet buttons replace text links; every target at least 44px */
.vf-btn-quiet { background: transparent; border-color: var(--vf-line); color: var(--vf-ink); font-weight: 600; font-size: 14px; min-height: 44px; padding: 10px 14px; }
.vf-btn-quiet:hover { border-color: var(--vf-accent); color: var(--vf-accent); }
.vf-btn-icon { padding: 0; width: 44px; min-width: 44px; }
.vf-linkbtn { min-height: 44px; display: inline-flex; align-items: center; }
.vf-photos-compact .vf-btn, .vf-suggest .vf-btn { min-height: 44px; }
.vf-caret { width: 44px; height: 44px; right: 2px; display: grid; place-items: center; }
.vf-thumb button { width: 32px; height: 32px; display: grid; place-items: center; }
.vf-thumb button .vf-ico { width: 16px; height: 16px; }
.vf-hints label { min-height: 44px; }
.vf-hints input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--vf-accent); margin: 0; }
.vf-voice, .vf-rate { min-height: 44px; }
.vf-file-btn .vf-ico { width: 18px; height: 18px; }

/* Guidance folds away so the first check is on screen */
.vf-guide { padding: 0; margin: 4px 0 8px; border: 1px solid var(--vf-line); border-radius: 10px; background: var(--vf-sheet); display: block; }
.vf-guide > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; cursor: pointer; list-style: none; font-weight: 600; }
.vf-guide > summary::-webkit-details-marker { display: none; }
.vf-guide > summary .vf-ico { transition: transform .2s ease-out; color: var(--vf-muted); }
.vf-guide[open] > summary .vf-ico { transform: rotate(180deg); }
.vf-guide > summary small { margin-left: auto; font-weight: 400; color: var(--vf-muted); font-size: 13px; }
.vf-guide .vf-info-text { padding: 0 14px; margin-bottom: 10px !important; }
.vf-guide[open] { padding-bottom: 6px; }
@media (prefers-reduced-motion: reduce) { .vf-guide > summary .vf-ico { transition: none; } }

/* Errors sit with the question */
.vf-err { margin: 0 0 10px !important; padding: 8px 12px; border-radius: 8px; background: color-mix(in srgb, var(--vf-warn) 10%, var(--vf-sheet)); color: var(--vf-warn); font-size: 14px; font-weight: 600; }
.vf-field.is-missing .vf-result .vf-res { border-color: var(--vf-warn); }

/* Signature: room for a gloved finger */
.vf-sig-pad { aspect-ratio: 900 / 420; max-width: 620px; }
.vf-sig-row { max-width: 620px; }
.vf-sig-btns { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.vf-sig-typed { display: grid; gap: 4px; max-width: 420px; }

/* Action log: close or keep open with one tap */
.vf-arow-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.vf-arow-acts .vf-btn { min-height: 44px; font-size: 14px; }
.vf-arow-acts .vf-btn.is-on { background: var(--vf-pass); border-color: var(--vf-pass); color: #fff; }
.vf-arow-acts .vf-btn[data-keep-open].is-on { background: var(--vf-na-bg); border-color: var(--vf-na); color: var(--vf-ink); }
.vf-arow-more > summary { cursor: pointer; font-size: 14px; color: var(--vf-muted); padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
.vf-arow-more[open] > summary { margin-bottom: 6px; }

/* Totals: a tidy grid on phones */
@container vf (max-width: 600px) { .vf-tally { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Section steps: quieter in-page buttons, readable titles */
.vf-step-foot { flex-wrap: nowrap; align-items: center; }
.vf-step-back { min-width: 0; flex: 0 1 auto; }
.vf-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.vf-step-done { margin-left: auto; flex: none; }
.vf-steps-now b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vf-step-state .vf-ico { width: 16px; height: 16px; vertical-align: -3px; }
.vf-step, .vf-field, .vf-sub, .vf-result, .vf-input { scroll-margin-top: 88px; scroll-margin-bottom: 120px; }
.vf-nav-label { white-space: nowrap; }

/* The receipt: an official record, not a toast */
.vf-receipt { padding: 22px; border-color: var(--vf-pass); background: color-mix(in srgb, var(--vf-pass) 5%, var(--vf-sheet)); }
.vf-receipt-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.vf-receipt-head > .vf-ico { width: 40px; height: 40px; color: var(--vf-pass); }
.vf-receipt-head h3 { margin-bottom: 4px; font-size: 20px; }
.vf-receipt dl { padding-top: 12px; border-top: 1px solid var(--vf-line); }

/* Phones: the voice bar is tucked away behind a mic button and slides up when wanted */
.vf-fab, .vf-bar-grab { display: none; }
.vf-bar-close { display: grid; place-items: center; }
.vf-toast { position: fixed; z-index: 9; right: calc(84px + env(safe-area-inset-right, 0px)); bottom: calc(26px + env(safe-area-inset-bottom, 0px)); max-width: min(62vw, 300px); padding: 10px 12px; border-radius: 10px; background: var(--vf-ink); color: var(--vf-sheet); font-size: 14px; line-height: 1.35; box-shadow: 0 6px 20px rgba(20, 18, 14, .25); }
.vf-toast.is-warn { background: var(--vf-warn); color: #fff; }
.vf-toast[hidden] { display: none !important; }
@media (max-width: 600px) {
  .vf-fab { display: grid; place-items: center; position: fixed; z-index: 9; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--vf-accent); color: var(--vf-accent-ink); box-shadow: 0 6px 18px rgba(20, 18, 14, .28); cursor: pointer; }
  .vf-fab svg { width: 26px; height: 26px; }
  .vf-fab.is-on { background: var(--vf-rec); }
  .vf-fab:focus-visible { outline: 3px solid var(--vf-ink); outline-offset: 3px; }
  .vf-bar { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; border-radius: 14px 14px 0 0; box-shadow: 0 -8px 24px rgba(20, 18, 14, .14);
    padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    transform: translateY(110%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); visibility: hidden; }
  .vf-bar.is-open { transform: none; visibility: visible; }
  .vf-bar.is-open ~ .vf-fab { display: none; }
  .vf-bar-close { display: grid; place-items: center; }
  .vf-bar-row { flex-wrap: nowrap; gap: 8px; }
  .vf-mic { width: 44px; height: 44px; }
  .vf-bar-text { flex: 1 1 auto; min-width: 0; }
  .vf-status { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vf-heard, .vf-progress, .vf-pos { display: none !important; }
  .vf-nav { width: auto; gap: 6px; flex: none; }
  .vf-nav .vf-btn { flex: none; padding: 0 12px; min-height: 44px; }
  .vf-nav [data-act="prev"] .vf-nav-label { display: none; }
  .vf-nav [data-act="prev"] { width: 44px; padding: 0; }
  .vf-bar:not(.is-settings) .vf-hints { display: none; }
  .vf-hints { padding-top: 8px; border-top: 1px solid var(--vf-line); }
  .vf-form { padding-bottom: 84px; }
  /* With the bar tucked away, the in-page Section done is the main way on. */
  .vf-step-done { background: var(--vf-accent); border-color: var(--vf-accent); color: var(--vf-accent-ink); }
}
@media (min-width: 601px) {
  .vf-voiceopts { display: none; }
}
@media (prefers-reduced-motion: reduce) { .vf-bar { transition: none; } }

/* The bar never grows wider than the screen to fit a long status line */
.vf-bar { grid-template-columns: minmax(0, 1fr); }
.vf-bar-row { min-width: 0; }

/* Pull handle on phones */
@media (max-width: 600px) {
  .vf-bar { touch-action: none; }
  .vf-bar-grab { display: grid; place-items: center; width: 100%; height: 22px; margin: -6px 0 2px; padding: 0; border: 0; background: none; cursor: grab; }
  .vf-bar-grab span { width: 44px; height: 5px; border-radius: 3px; background: var(--vf-line); }
  .vf-bar-grab:focus-visible { outline: 2px solid var(--vf-accent); outline-offset: 2px; border-radius: 6px; }
  .vf-bar .vf-bar-row, .vf-bar .vf-hints { touch-action: manipulation; }
}
/* Desktop: the bar can be hidden too; the mic button brings it back */
@media (min-width: 601px) {
  .vf-root.is-bar-tucked > .vf-bar { display: none; }
  .vf-root.is-bar-tucked > .vf-fab { display: grid; place-items: center; position: fixed; z-index: 9; right: 24px; bottom: 24px; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--vf-accent); color: var(--vf-accent-ink); box-shadow: 0 6px 18px rgba(20, 18, 14, .28); cursor: pointer; }
  .vf-root.is-bar-tucked > .vf-fab svg { width: 26px; height: 26px; }
  .vf-root.is-bar-tucked > .vf-fab.is-on { background: var(--vf-rec); }
}

/* Breathing room under the section buttons (and clear of the mic button on phones) */
.vf-step-foot { margin-bottom: 28px; }
@media (max-width: 600px) { .vf-step-foot { margin-bottom: 40px; } .vf-form { padding-bottom: 72px; } }
.vf-head .vf-logo + .vf-desc { margin-top: 0 !important; }

/* The form card carries the title (with the logo), so the theme's page title is hidden on form pages */
.vf-page .wp-block-post-title, .vf-page .entry-title, .vf-page .page-title { display: none; }

/* "Start again?" when the client or site changes part-way through */
.vf-dialog { border: 0; border-radius: 14px; padding: 22px 22px 18px; max-width: min(440px, calc(100vw - 32px)); background: var(--vf-sheet, #FFFEFC); color: var(--vf-ink, #222326); box-shadow: 0 18px 50px rgba(20, 18, 14, .28); font: inherit; }
.vf-dialog::backdrop { background: rgba(28, 25, 20, .5); }
.vf-dialog h3 { margin: 0 0 8px; font-size: 1.2rem; line-height: 1.3; }
.vf-dialog p { margin: 0 0 18px; color: var(--vf-muted, #5C5850); line-height: 1.5; }
.vf-dialog-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.vf-dialog .vf-danger { background: var(--vf-fail, #A8231C); border-color: var(--vf-fail, #A8231C); color: #fff; }
@media (max-width: 600px) { .vf-dialog-btns { flex-direction: column-reverse; } .vf-dialog-btns .vf-btn { width: 100%; } }

.vf-dialog-say { margin-top: -8px !important; font-size: .95rem; }
.vf-field { scroll-margin-top: var(--vf-stick, 88px); }

/* Back to the top, bottom left, once scrolled down */
.vf-totop { position: fixed; z-index: 8; left: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--vf-line); background: var(--vf-sheet); color: var(--vf-ink); box-shadow: 0 4px 14px rgba(20, 18, 14, .18); cursor: pointer; }
.vf-totop[hidden] { display: none; }
.vf-totop svg { width: 22px; height: 22px; }
.vf-totop:hover { background: var(--vf-soft); }
.vf-totop:focus-visible { outline: 3px solid var(--vf-ink); outline-offset: 3px; }
@media (max-width: 600px) { .vf-bar.is-open ~ .vf-totop { display: none; } }
@media (min-width: 601px) { .vf-totop { left: 24px; bottom: 24px; } }

/* Date boxes: phones draw their own date control, which can spill past the box's edge */
.vf-input[type="date"], .vf-input[type="datetime-local"], .vf-input[type="time"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; width: 100%; min-height: 46px; line-height: 1.4; text-align: left; }
.vf-input[type="date"]::-webkit-date-and-time-value, .vf-input[type="datetime-local"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.vf-input[type="date"]::-webkit-calendar-picker-indicator { margin-left: auto; }
@container vf (max-width: 520px) { .vf-sub-row { grid-template-columns: minmax(0, 1fr); } .vf-sub-row .vf-sub-narrow { max-width: none; } }

/* Words still being heard show in the box, a shade lighter until they settle */
.vf-input.vf-live { color: var(--vf-muted); }

/* Less space above the form: the theme's page title is hidden on form pages */
.vf-page main#wp--skip-link--target { margin-top: 0 !important; }
.vf-page main#wp--skip-link--target > .wp-block-group:first-child { padding-top: clamp(12px, 3vw, 28px) !important; }
.vf-page .wp-block-post-content { margin-block-start: 0 !important; }
.vf-page .wp-block-post-title + .wp-block-post-content { margin-top: 0 !important; }

/* Forms dashboard */
.vf-dash-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 18px; }
.vf-dash-head .vf-logo { margin: 0; }
.vf-dash-hello { margin: 0; color: var(--vf-muted); font-size: 15px; }
.vf-dash-hello a { color: inherit; }
.vf-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@container vf (min-width: 620px) { .vf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vf-tiles li { margin: 0; }
.vf-tile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; height: 100%; box-sizing: border-box; padding: 16px; border: 1px solid var(--vf-line); border-radius: 12px; background: var(--vf-sheet); color: var(--vf-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.vf-tile:hover { border-color: var(--vf-accent); box-shadow: 0 4px 16px rgba(20, 18, 14, .08); }
.vf-tile:focus-visible { outline: 3px solid var(--vf-ink); outline-offset: 2px; }
.vf-tile-badge { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--vf-soft); color: var(--vf-accent); }
.vf-tile-ico { width: 30px; height: 30px; }
.vf-tile-body { display: grid; gap: 3px; min-width: 0; }
.vf-tile-title { font-weight: 700; font-size: 17px; line-height: 1.3; }
.vf-tile-desc { color: var(--vf-muted); font-size: 15px; line-height: 1.4; }
.vf-tile-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--vf-muted); margin-top: 2px; }
.vf-tile-draft { color: var(--vf-ink); font-weight: 600; }
.vf-tile-go { width: 22px; height: 22px; color: var(--vf-muted); }
.vf-tile.has-draft .vf-tile-badge { background: var(--vf-accent); color: var(--vf-accent-ink, #fff); }

/* Never let one wide thing push the form past the screen edge */
.vf-form { grid-template-columns: minmax(0, 1fr); }
.vf-step, .vf-sec, .vf-field, .vf-ctl { min-width: 0; }
fieldset.vf-sec { min-inline-size: 0; }

/* Video */
.vf-video { display: grid; gap: 10px; }
.vf-video-stage { position: relative; border-radius: 10px; overflow: hidden; background: #111; aspect-ratio: 16 / 9; max-height: 60vh; }
.vf-video-stage video { display: block; width: 100%; height: 100%; object-fit: contain; background: #111; }
.vf-video-stage video[hidden] { display: none; }
.vf-video-time { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 99px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 14px; font-variant-numeric: tabular-nums; }
.is-recording .vf-video-time::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #e5372b; vertical-align: 1px; }
.vf-video-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.vf-video-btns [hidden] { display: none; }
.is-recording [data-vid-rec] { background: var(--vf-fail); border-color: var(--vf-fail); color: #fff; }
.vf-video-tip, .vf-video-lognote { margin: 0; color: var(--vf-muted); font-size: 14px; }
.vf-video-log { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--vf-line); border-radius: 10px; background: var(--vf-soft); }
.vf-video-log[hidden] { display: none; }
.vf-chip .vf-ico { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }

/* Fill it for me (testing) */
.vf-testfill { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 10px 0 0; }
.vf-testfill-note { color: var(--vf-muted); font-size: 13px; }

/* Correcting a report */
.vf-fixbox { display: grid; gap: 8px; margin: 14px 0 0; padding: 14px; border: 1px solid #d9b35b; border-radius: 10px; background: #fff7e3; }
.vf-fix-title { margin: 0; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.vf-fix-title .vf-ico { width: 18px; height: 18px; }
.vf-fix-why, .vf-fix-note { margin: 0; color: var(--vf-muted); font-size: 15px; }
.vf-askfix { display: grid; gap: 8px; margin-top: 14px; }
.vf-askfix[hidden] { display: none; }

/* Reports inbox */
.vf-inbox-tabs { display: flex; gap: 6px; margin: 0 0 16px; border-bottom: 1px solid var(--vf-line); }
.vf-inbox-tabs a { padding: 10px 14px; color: var(--vf-muted); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.vf-inbox-tabs a[aria-current] { color: var(--vf-ink); border-color: var(--vf-accent); }
.vf-inbox-search { display: grid; gap: 8px; margin-bottom: 12px; }
.vf-inbox-q { display: flex; gap: 8px; }
.vf-inbox-q .vf-input { flex: 1; min-width: 0; }
.vf-inbox-more summary { cursor: pointer; color: var(--vf-muted); font-weight: 600; padding: 4px 0; }
.vf-inbox-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 10px 0; align-items: end; }
.vf-inbox-filters label > span { display: block; font-size: 13px; color: var(--vf-muted); margin-bottom: 3px; }
.vf-inbox-count { margin: 4px 0 10px; color: var(--vf-muted); font-size: 14px; }
.vf-inbox-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vf-inbox-list li { margin: 0; }
.vf-inbox-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--vf-line); border-radius: 10px; background: var(--vf-sheet); color: var(--vf-ink); text-decoration: none; }
.vf-inbox-row:hover { border-color: var(--vf-accent); }
.vf-inbox-row:focus-visible { outline: 3px solid var(--vf-ink); outline-offset: 2px; }
.vf-inbox-row.is-unread .vf-inbox-title { font-weight: 800; }
/* Finalised, grouped by client then project */
.vf-inbox-groups { display: grid; gap: 10px; }
.vf-ig > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 14px 12px 40px; position: relative; cursor: pointer; list-style: none; border-radius: 10px; }
.vf-ig > summary::-webkit-details-marker { display: none; }
.vf-ig > summary::before { content: ""; position: absolute; left: 16px; top: 18px; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); color: var(--vf-muted); transition: transform .15s ease; }
.vf-ig[open] > summary::before { transform: rotate(45deg); top: 16px; }
.vf-ig > summary:focus-visible { outline: 2px solid var(--vf-ink); outline-offset: 2px; }
.vf-ig-client { border: 1px solid var(--vf-line); border-radius: 12px; background: var(--vf-sheet); }
.vf-ig-client > summary .vf-ig-name { font-family: var(--vf-f-display); font-weight: 700; font-size: 17px; }
.vf-ig-project > summary { padding-top: 10px; padding-bottom: 10px; }
.vf-ig-project > summary .vf-ig-name { font-weight: 700; }
.vf-ig-name { min-width: 0; overflow-wrap: anywhere; color: var(--vf-ink); }
.vf-ig-meta { color: var(--vf-muted); font-size: 13.5px; }
.vf-ig-meta b { color: var(--vf-ink); }
.vf-ig-body { display: grid; gap: 2px; padding: 0 10px 10px; }
.vf-ig-project + .vf-ig-project { border-top: 1px solid var(--vf-line); }
.vf-inbox .vf-ig-project ul.vf-inbox-list { padding: 0 0 8px 26px !important; }
@media (max-width: 600px) { .vf-ig-body { padding: 0 6px 8px; } .vf-inbox .vf-ig-project ul.vf-inbox-list { padding-left: 8px !important; } }
@media (prefers-reduced-motion: reduce) { .vf-ig > summary::before { transition: none; } }
.vf-inbox-main { display: grid; gap: 3px; min-width: 0; }
.vf-inbox-title { font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.vf-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--vf-accent); flex: none; }
.vf-inbox-sub { color: var(--vf-muted); font-size: 14px; }
.vf-inbox-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 3px; }
.vf-inbox-tally { color: var(--vf-muted); font-size: 13px; }
.vf-inbox-pages { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 16px 0; color: var(--vf-muted); }
.vf-inbox-notice { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: #e7f2ea; color: #17402a; }
.vf-inbox-notice.is-warn { background: #fff4d6; color: #5a4100; }
.vf-inbox-back { margin: 0 0 10px; }
.vf-report-head { display: grid; gap: 6px; margin-bottom: 12px; }
.vf-report-title { margin: 0; font-size: 22px; line-height: 1.25; }
.vf-report-actions, .vf-report-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.vf-report-tools { margin: 6px 0 18px; }
.vf-report-tool summary { list-style: none; }
.vf-report-tool summary::-webkit-details-marker { display: none; }
.vf-report-tool[open] { flex-basis: 100%; }
.vf-report-tool form { display: grid; gap: 8px; margin-top: 10px; padding: 12px; border: 1px solid var(--vf-line); border-radius: 10px; background: var(--vf-soft); max-width: 520px; }
.vf-report-sec { margin: 22px 0 8px; font-size: 17px; }
.vf-report-rows { border: 1px solid var(--vf-line); border-radius: 10px; overflow: hidden; }
.vf-report-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 4px 14px; padding: 10px 12px; border-top: 1px solid var(--vf-line); }
.vf-report-row:first-child { border-top: 0; }
.vf-report-row.is-fail { background: #fbeceb; }
.vf-report-q { color: var(--vf-muted); font-size: 15px; }
.vf-report-a { min-width: 0; overflow-wrap: anywhere; }
.vf-report-a video { width: 100%; max-height: 360px; background: #111; border-radius: 8px; }
.vf-res-pass { color: var(--vf-pass); } .vf-res-fail { color: var(--vf-fail); } .vf-res-na { color: var(--vf-muted); }
.vf-report-act { color: var(--vf-fail); }
.vf-report-photos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vf-report-photos img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; border: 1px solid var(--vf-line); display: block; }
.vf-report-photos.is-sig img { width: 220px; height: auto; object-fit: contain; background: #fff; }
.vf-report-actlist { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.vf-muted { color: var(--vf-muted); }
.vf-report-versions { margin: 0; padding-left: 18px; }
@container vf (max-width: 520px) { .vf-report-row { grid-template-columns: minmax(0, 1fr); } }

/* Size on screen */
.vf-head { position: relative; }
.vf-zoom { position: absolute; top: 0; right: 0; display: flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--vf-line); border-radius: 999px; background: var(--vf-sheet); }
.vf-zoom-btn { min-width: 40px; height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--vf-ink); font: 700 16px/1 var(--vf-f-body, inherit); cursor: pointer; }
.vf-zoom-btn small { font-size: 12px; margin-left: 1px; }
.vf-zoom-btn:hover:not(:disabled) { background: var(--vf-soft); }
.vf-zoom-btn:disabled { opacity: .35; cursor: default; }
.vf-zoom-btn:focus-visible { outline: 3px solid var(--vf-ink); outline-offset: 1px; }
.vf-zoom-val { min-width: 40px; text-align: center; font-size: 13px; color: var(--vf-muted); font-variant-numeric: tabular-nums; }
.vf-head .vf-logo { margin-right: 150px; }

/* Searchable dropdown */
.vf-combo-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.vf-combo { position: relative; }
.vf-combo .vf-lookup-list li.is-active { background: var(--vf-soft); }
.vf-combo-none { color: var(--vf-muted); padding: 10px 12px; }

/* Mark up a photo */
.vf-thumb-mark { position: absolute; left: 4px; bottom: 4px; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 9px; border: 0; border-radius: 999px; background: rgba(20, 18, 14, .78); color: #fff; font: 600 12.5px/1 inherit; cursor: pointer; }
.vf-thumb .vf-thumb-mark { width: auto; right: auto; top: auto; }
.vf-thumb-mark .vf-ico { width: 14px; height: 14px; }
.vf-thumb.is-marked { border-color: var(--vf-accent); box-shadow: 0 0 0 1px var(--vf-accent); }
html.vf-noscroll, html.vf-noscroll body { overflow: hidden; }
.vf-markup { position: fixed; inset: 0; z-index: 100000; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto auto; gap: 8px; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px calc(12px + env(safe-area-inset-bottom, 0px)); background: #15130f; color: #fff; }
.vf-mk-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vf-mk-top b { font-size: 17px; }
.vf-mk-top .vf-btn-quiet { color: #fff; border-color: rgba(255, 255, 255, .3); }
.vf-mk-stage { display: grid; place-items: center; min-height: 0; }
.vf-mk-stage canvas { max-width: 100%; max-height: 100%; touch-action: none; border-radius: 6px; cursor: crosshair; background: #000; }
.vf-mk-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.vf-mk-tools .vf-btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); color: #fff; }
.vf-mk-tools .vf-btn.is-on { background: #fff; color: #15130f; border-color: #fff; }
.vf-mk-colours { display: inline-flex; gap: 8px; padding: 0 6px; }
.vf-mk-colour { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); cursor: pointer; padding: 0; }
.vf-mk-colour.is-on { outline: 3px solid #fff; outline-offset: 2px; }
.vf-mk-caption { display: grid; gap: 6px; max-width: 640px; width: 100%; justify-self: center; }
.vf-mk-caption[hidden] { display: none; }
.vf-mk-caption .vf-sublabel { color: #fff; }
.vf-mk-caprow { display: flex; gap: 8px; }
.vf-mk-caprow .vf-input { flex: 1; min-width: 0; }
.vf-mk-caprow .vf-btn-quiet { color: #fff; border-color: rgba(255, 255, 255, .3); }
.vf-mk-tip { margin: 0; text-align: center; color: rgba(255, 255, 255, .7); font-size: 14px; }

/* Photo captions under the thumbnails, and the editor's extra bars */
.vf-photo-notes { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 3px; font-size: 14px; }
.vf-photo-notes[hidden] { display: none; }
.vf-photo-notes b { color: var(--vf-muted); font-weight: 600; margin-right: 4px; }
.vf-mk-cropbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.vf-mk-cropbar[hidden] { display: none; }
.vf-mk-cropbar .vf-btn-quiet { color: #fff; border-color: rgba(255, 255, 255, .3); }
.vf-mk-say { flex: none; color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }
.vf-mk-say.is-on { background: var(--vf-rec, #E5372B); border-color: var(--vf-rec, #E5372B); }
.vf-report-capt { margin: 6px 0 0; font-size: 14px; color: var(--vf-fail); }
.vf-report-capt b { color: var(--vf-muted); font-weight: 600; margin-right: 4px; }

.vf-stamp-pref { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 14px; color: var(--vf-muted); cursor: pointer; }
.vf-stamp-pref input { width: 20px; height: 20px; accent-color: var(--vf-accent); }
.vf-mk-tools .vf-btn-quiet.is-on { background: #fff; color: #15130f; border-color: #fff; }

.vf-cloud-status { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 2px 0; font-size: 14px; }
.vf-chip-ok { background: #e3f1e8; color: #17402a; }
.vf-chip-ok a { color: inherit; }

/* Note and photo row under a check: buttons in one line, photos as an even strip underneath */
.vf-check-more { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 12px; }
.vf-check-more > [data-addnote] { grid-row: 1; grid-column: 1; }
.vf-check-more .vf-photos-compact { display: contents; }
.vf-check-more .vf-photo-actions { grid-row: 1; grid-column: 2 / -1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.vf-check-more .vf-thumbs { grid-row: 2; grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.vf-check-more .vf-thumbs:empty { display: none; }
.vf-check-more .vf-photo-notes { grid-row: 3; grid-column: 1 / -1; margin: 0; }
.vf-photo-count { font: 500 13px/1.2 var(--vf-f-body, inherit); color: var(--vf-muted); white-space: nowrap; }

/* Photo tiles */
.vf-thumbs .vf-thumb { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 1px solid var(--vf-line); background: var(--vf-soft); }
.vf-check-more .vf-thumb { width: 112px; height: 112px; flex: none; }
.vf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vf-thumb [data-rm] { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(20, 18, 14, .72); color: #fff; cursor: pointer; }
.vf-thumb [data-rm] .vf-ico { width: 16px; height: 16px; }
.vf-thumb .vf-thumb-mark { position: absolute; left: 0; right: 0; bottom: 0; top: auto; width: auto; height: 34px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 8px; border: 0; border-radius: 0; background: linear-gradient(to top, rgba(20, 18, 14, .82), rgba(20, 18, 14, .55)); color: #fff; font: 600 13px/1 var(--vf-f-body, inherit); cursor: pointer; }
.vf-thumb .vf-thumb-mark .vf-ico { width: 15px; height: 15px; flex: none; }
.vf-thumb .vf-thumb-mark:hover { background: rgba(20, 18, 14, .9); }
.vf-thumb [data-rm]:focus-visible, .vf-thumb .vf-thumb-mark:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.vf-thumb.is-marked { border-color: var(--vf-accent); box-shadow: 0 0 0 1px var(--vf-accent); }
.vf-thumb.is-marked .vf-thumb-mark span::after { content: " again"; }
@media (max-width: 600px) { .vf-check-more .vf-thumb { width: 96px; height: 96px; } .vf-thumb .vf-thumb-mark { height: 32px; font-size: 12.5px; } }

/* ---------- Home page (forms dashboard) and sign-in, in the heritage colours ---------- */
.vf-dash-root, .vf-inbox-root, .vf-root:has(.vf-login) { --vf-heritage: var(--vf-brand, #1F2937); --vf-heritage-2: var(--vf-brand-2, #1F3B6B); --vf-gold: var(--vf-brand-accent, #C9A24D); --vf-accent: var(--vf-brand, #1F2937); --vf-accent-ink: #FFFEFC; }
.vf-page .wp-block-post-content > .vf-dash-root, .vf-page .wp-block-post-content > .vf-inbox-root, .vf-page .wp-block-post-content > .vf-root:has(.vf-login) { max-width: 880px; margin-inline: auto; }
/* The theme keeps page content to a narrow column; a form gets about half a big screen, and all of a small one. */
.wp-block-post-content > .vf-root:not(:has(.vf-login)), .entry-content > .vf-root:not(:has(.vf-login)) { max-width: min(max(645px, 94%), 1680px) !important; margin-inline: auto !important; }
.vf-dash { padding: 0 0 26px; overflow: hidden; }

.vf-hero { position: relative; display: flex; align-items: center; gap: 20px; padding: 28px 28px 30px; background: var(--vf-heritage); color: #FFFEFC; }
.vf-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--vf-gold); }
.vf-hero-logo { flex: none; display: grid; place-items: center; padding: 10px 14px; border-radius: 10px; background: #FFFEFC; }
.vf-hero-logo img { display: block; max-height: 53px; width: auto; max-width: 219px; }
.vf-hero-text { min-width: 0; flex: 1; }
.vf-hero-hello { margin: 0; font-size: clamp(22px, 4.2vw, 30px); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; color: inherit; }
.vf-hero-date { margin: 6px 0 0; font-size: 15px; color: rgba(255, 254, 252, .78); }
.vf-hero-out { align-self: flex-start; color: rgba(255, 254, 252, .85); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.vf-hero-out:hover { color: #fff; }

.vf-dash > :not(.vf-hero) { margin-left: 24px; margin-right: 24px; }
.vf-stats { list-style: none; padding: 0; margin-top: 22px; margin-bottom: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.vf-stat { margin: 0; padding: 14px 16px; border: 1px solid var(--vf-line); border-radius: 10px; background: var(--vf-soft); display: grid; gap: 2px; }
.vf-stat b { font-size: 28px; line-height: 1; color: var(--vf-heritage); font-variant-numeric: tabular-nums; }
.vf-stat span { font-size: 14px; color: var(--vf-muted); }
.vf-stat.is-warn b { color: var(--vf-fail); }

.vf-dash-h { margin-top: 28px; margin-bottom: 10px; font-size: 17px; font-weight: 700; color: var(--vf-ink); }
.vf-dash .vf-tiles { grid-template-columns: minmax(0, 1fr); }
.vf-tile-form { grid-template-columns: auto minmax(0, 1fr) auto; padding: 18px; border-radius: 12px; }
.vf-tile-form .vf-tile-badge { width: 64px; height: 64px; border-radius: 14px; background: var(--vf-heritage); color: #FFFEFC; }
.vf-tile-form .vf-tile-ico { width: 34px; height: 34px; }
.vf-tile-form .vf-tile-title { font-size: 19px; }
.vf-tile-cta { display: inline-flex; align-items: center; gap: 6px; padding: 11px 16px; border-radius: 999px; background: var(--vf-heritage); color: #FFFEFC; font-weight: 700; font-size: 15px; white-space: nowrap; }
.vf-tile-cta .vf-tile-go { width: 18px; height: 18px; color: inherit; }
.vf-cta-draft { display: none; }
.vf-tile-form.has-draft .vf-cta-new { display: none; }
.vf-tile-form.has-draft .vf-cta-draft { display: inline; }
.vf-tile-form.has-draft .vf-tile-cta { background: var(--vf-gold); color: #222326; }
.vf-tile-form:hover { border-color: var(--vf-heritage); }
.vf-tile-form:hover .vf-tile-cta { background: var(--vf-heritage-2); }
.vf-tile-form.has-draft:hover .vf-tile-cta { background: #D6B25F; }
.vf-dash .vf-tile-inbox { margin-top: 10px; }
.vf-tile-inbox .vf-tile-badge { background: var(--vf-soft); color: var(--vf-heritage); }

.vf-recent { list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; border: 1px solid var(--vf-line); border-radius: 12px; overflow: hidden; }
.vf-recent li { margin: 0; border-top: 1px solid var(--vf-line); }
.vf-recent li:first-child { border-top: 0; }
.vf-recent-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; color: var(--vf-ink); text-decoration: none; background: var(--vf-sheet); }
a.vf-recent-row:hover { background: var(--vf-soft); }
.vf-recent-main { display: grid; gap: 2px; min-width: 0; }
.vf-recent-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vf-recent-sub { font-size: 13.5px; color: var(--vf-muted); }


@media (max-width: 600px) {
  .vf-hero { flex-wrap: wrap; padding: 22px 18px 24px; gap: 14px; }
  .vf-hero-text { flex-basis: 100%; order: 2; }
  .vf-hero-out { position: absolute; top: 18px; right: 18px; }
  .vf-dash > :not(.vf-hero) { margin-left: 14px; margin-right: 14px; }
  .vf-tile-form { grid-template-columns: auto minmax(0, 1fr); }
  .vf-tile-form .vf-tile-badge { width: 52px; height: 52px; }
  .vf-tile-cta { grid-column: 1 / -1; justify-content: center; }
}

/* Sign-in card */
.vf-login { max-width: 460px; margin: 24px auto 32px; padding: 0 0 26px !important; overflow: hidden; border-radius: 14px !important; box-shadow: 0 10px 30px rgba(20, 18, 14, .08); }
.vf-login::before { content: ""; display: block; height: 8px; background: linear-gradient(to right, var(--vf-brand, #1F2937) 0 82%, var(--vf-brand-accent, #C9A24D) 82%); }
.vf-login > :not(.vf-login-logo) { margin-left: 26px; margin-right: 26px; }
.vf-login-logo { display: block; max-height: 64px; width: auto; max-width: 253px; margin: 26px 26px 18px; }
.vf-login .vf-title { margin-top: 0; font-size: 24px; }
.vf-login .vf-primary { background: var(--vf-brand, #1F2937); border-color: var(--vf-brand, #1F2937); color: #FFFEFC; }
.vf-login .vf-primary:hover { background: var(--vf-brand-2, #1F3B6B); }
.vf-login-help a { color: var(--vf-brand, #1F2937); }
@media (max-width: 600px) { .vf-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .vf-stat { padding: 10px; } .vf-stat b { font-size: 24px; } .vf-stat span { font-size: 12.5px; } }

/* No logo in the band (the site header has it): the greeting leads. */
.vf-hero:not(:has(.vf-hero-logo)) .vf-hero-hello { font-size: clamp(24px, 4.6vw, 32px); }
.vf-login:not(:has(.vf-login-logo)) .vf-title { margin-top: 24px; }

/* Actions register */
.vf-reg-filters { gap: 10px; }
.vf-seg { display: inline-flex; border: 1px solid var(--vf-line); border-radius: 999px; padding: 3px; background: var(--vf-soft); width: max-content; }
.vf-seg-btn { padding: 7px 16px; border-radius: 999px; color: var(--vf-muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.vf-seg-btn.is-on { background: var(--vf-sheet); color: var(--vf-ink); box-shadow: 0 1px 3px rgba(20, 18, 14, .12); }
.vf-reg-site { max-width: 220px; }
.vf-reg-overdue { width: max-content; }
.vf-reg { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vf-reg-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; margin: 0; padding: 14px 16px; border: 1px solid var(--vf-line); border-radius: 12px; background: var(--vf-sheet); }
.vf-reg-row.is-overdue { border-color: #E3B9B4; background: #FDF6F5; }
.vf-due-add { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; padding: 16px; border: 1px solid var(--vf-line); border-radius: 12px; background: var(--vf-sheet); }
.vf-due-add p { margin: 0; display: grid; gap: 4px; min-width: 0; }
.vf-due-add .vf-report-sec, .vf-due-add .vf-due-wide { grid-column: 1 / -1; margin: 0; }
.vf-due-add .vf-btn { grid-column: 1 / -1; justify-self: start; }
@container vf (max-width: 520px) { .vf-due-add { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
/* Forms due: the week at a glance */
.vf-due-sum { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.vf-due-num { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--vf-line); border-radius: 12px; background: var(--vf-sheet); color: inherit; text-decoration: none; min-height: 44px; }
.vf-due-num b { font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.vf-due-num span { font-size: .82rem; color: var(--vf-muted); }
.vf-due-num.is-warn { border-color: var(--vf-fail, #b3261e); }
.vf-due-num.is-warn b { color: var(--vf-fail, #b3261e); }
.vf-due-num:hover, .vf-due-num:focus-visible { border-color: var(--vf-ink, currentColor); }
@container vf (max-width: 640px) { .vf-due-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vf-due-sum li:first-child { grid-column: 1 / -1; } }
.vf-due-add-wrap { margin: 0 0 16px; }
.vf-due-add-wrap > summary { list-style: none; display: inline-flex; cursor: pointer; margin: 0 0 12px; }
.vf-due-add-wrap > summary::-webkit-details-marker { display: none; }
.vf-due-add-wrap[open] > summary { display: none; }
.vf-due-seg { margin: 0 0 12px; flex-wrap: wrap; width: auto; max-width: 100%; border-radius: 14px; }
.vf-due-day { margin: 18px 0 8px; font-size: .95rem; font-weight: 600; }
.vf-due-day span { color: var(--vf-muted); font-weight: 400; }
.vf-due-day.is-late { color: var(--vf-fail, #b3261e); }
.vf-reg-row.is-done { background: var(--vf-soft); }
/* A behind-the-scenes count of rows (Add another / Remove do the work) */
.vf-field.vf-slot-count { display: none !important; }

/* PAT register */
.vf-pat-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.vf-pat-bar .vf-due-seg { margin: 0; }
.vf-pat-find { flex: 1 1 220px; max-width: 320px; }
.vf-pat-set { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--vf-line); }
.vf-pat-set .vf-input { width: auto; }
.vf-pat-set .vf-inbox-sub { flex-basis: 100%; margin: 0; }
/* Faulty equipment */
.vf-fault-sum { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vf-fault-what { margin: 0; }
.vf-fault-more { margin-top: 6px; }
.vf-fault-more > summary { cursor: pointer; font-weight: 600; color: var(--vf-accent, var(--vf-ink)); min-height: 44px; display: flex; align-items: center; width: max-content; }
.vf-fault-log { margin: 4px 0 12px; padding-left: 18px; display: grid; gap: 4px; font-size: .92rem; }
.vf-fault-log time, .vf-fault-by { color: var(--vf-muted); }
.vf-fault-form { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--vf-line); border-radius: 10px; background: var(--vf-sheet); }
.vf-fault-form p { margin: 0; display: grid; gap: 4px; }
.vf-fault-form .vf-btn { justify-self: start; }
.vf-fault-to { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.vf-fault-to legend { padding: 0; margin-bottom: 4px; width: 100%; }
.vf-fault-opt { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
@container vf (max-width: 640px) { .vf-fault-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vf-fault-sum li:first-child { grid-column: auto; } }
.vf-reg-row.is-done .vf-reg-title { color: var(--vf-muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.vf-reg-main { min-width: 0; display: grid; gap: 4px; }
.vf-reg-title { margin: 0; font-weight: 600; font-size: 16px; line-height: 1.35; }
.vf-reg-title .vf-aref { margin-right: 8px; }
.vf-reg-sub { margin: 0; color: var(--vf-muted); font-size: 14px; }
.vf-reg-note { margin: 2px 0 0; font-size: 14px; }
.vf-reg-link { font-size: 13px; color: var(--vf-muted); }
.vf-reg-act form { margin: 0; }
.vf-reg-done summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.vf-reg-done summary::-webkit-details-marker { display: none; }
.vf-reg-done summary .vf-ico { width: 18px; height: 18px; }
.vf-reg-done[open] { grid-column: 1 / -1; }
.vf-reg-row:has(.vf-reg-done[open]) { grid-template-columns: minmax(0, 1fr); }
.vf-reg-done form { display: grid; gap: 6px; margin-top: 10px; padding: 12px; border: 1px solid var(--vf-line); border-radius: 10px; background: var(--vf-soft); max-width: 420px; }
.vf-reg-done form .vf-btn { margin-top: 6px; justify-self: start; }
@container vf (max-width: 520px) { .vf-reg-row { grid-template-columns: minmax(0, 1fr); } }

/* Inbox in the heritage colours */
.vf-inbox { padding: 22px 24px 26px; }
.vf-inbox-tabs a[aria-current] { border-color: var(--vf-heritage); }
.vf-inbox .vf-dot { background: var(--vf-heritage); }
.vf-inbox .vf-inbox-count a, .vf-inbox-back a, .vf-inbox-more a { color: var(--vf-heritage); }
.vf-inbox-row:hover, .vf-reg-row:hover { border-color: var(--vf-heritage); }
@media (max-width: 600px) { .vf-inbox { padding: 16px 14px 20px; } }
.vf-inbox ul.vf-reg, .vf-inbox ul.vf-inbox-list { padding-left: 0 !important; margin-left: 0 !important; }
.vf-reg-overdue.vf-opt { border: 0; background: none; padding: 2px 0; min-height: 0; }

.vf-voice-set { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.vf-voice-pick { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--vf-muted); }
.vf-voice-pick select { font: inherit; font-size: 14px; color: var(--vf-ink); padding: 6px 8px; border: 1px solid var(--vf-line); border-radius: 6px; background: var(--vf-sheet); max-width: 230px; }

.vf-mine-title { margin-bottom: 2px; }
.vf-inbox .vf-mine-title + .vf-inbox-sub { margin: 0 0 14px; }

/* Face ID sign-in and the home screen offer */
.vf-pk-login { display: grid; gap: 10px; margin: 6px 0 4px; }
.vf-pk-login[hidden], .vf-pk-offer[hidden] { display: none !important; }
.vf-pk-btn { width: 100%; gap: 10px; min-height: 52px; font-size: 16px; background: var(--vf-ink); border-color: var(--vf-ink); color: var(--vf-sheet); }
.vf-pk-btn:hover { border-color: var(--vf-ink); opacity: .92; }
.vf-pk-or { display: flex; align-items: center; gap: 12px; margin: 4px 0 0; color: var(--vf-muted); font-size: 14px; }
.vf-pk-or::before, .vf-pk-or::after { content: ""; flex: 1; height: 1px; background: var(--vf-line); }
.vf-pk-msg { margin: 0; font-size: 14px; color: var(--vf-muted); }
.vf-pk-msg:empty { display: none; }
.vf-pk-msg.is-warn { color: var(--vf-fail); }
.vf-pk-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 18px; padding: 14px 16px; border: 1px solid var(--vf-line); border-left: 4px solid var(--vf-gold, var(--vf-accent)); border-radius: 10px; background: var(--vf-sheet); }
.vf-pk-offer-text { flex: 1 1 240px; display: grid; gap: 2px; min-width: 0; }
.vf-pk-offer-text b { font-size: 16px; }
.vf-pk-offer-text span { font-size: 14px; color: var(--vf-muted); }
.vf-pk-offer-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.vf-pk-offer-btns[hidden] { display: none; }
.vf-pk-offer .vf-pk-msg { flex-basis: 100%; }
.vf-pk-later { background: transparent; }

/* Stats tab */
.vf-st-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 16px; }
.vf-st-pick { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--vf-muted); }
.vf-st-pick select { font: inherit; font-size: 15px; font-weight: 400; color: var(--vf-ink); padding: 9px 10px; min-height: 44px; border: 1px solid var(--vf-line); border-radius: 6px; background: var(--vf-sheet); max-width: 260px; }
.vf-st-scope { margin: 0 0 10px auto; font-size: 13px; color: var(--vf-muted); }
.vf-st-tiles { margin: 16px 0 0; }
.vf-stat.is-warn b { color: var(--vf-fail); }
.vf-st-card { margin-top: 16px; padding: 16px 18px 18px; border: 1px solid var(--vf-line); border-radius: 12px; background: var(--vf-sheet); min-width: 0; }
.vf-st-h { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.vf-st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 16px; }
.vf-st-key { display: flex; align-items: center; gap: 6px 8px; margin: -6px 0 10px; font-size: 13px; color: var(--vf-muted); }
.vf-st-sw { width: 12px; height: 12px; border-radius: 3px; background: var(--vf-heritage, var(--vf-accent)); }
.vf-st-sw.is-fail { background: var(--vf-fail); margin-left: 8px; }
.vf-st-bars { list-style: none; margin: 0; padding: 18px 0 0 !important; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; align-items: end; }
.vf-st-bars li { margin: 0; display: grid; gap: 6px; min-width: 0; }
.vf-st-col { position: relative; height: 150px; display: flex; flex-direction: column-reverse; border-bottom: 1px solid var(--vf-line); }
.vf-st-col i { display: block; flex: none; background: var(--vf-heritage, var(--vf-accent)); }
.vf-st-col i.is-fail { background: var(--vf-fail); }
.vf-st-col em { position: absolute; left: 0; right: 0; bottom: calc(var(--h, 0%) + 2px); font-style: normal; font-size: 12px; font-weight: 700; text-align: center; color: var(--vf-ink); font-variant-numeric: tabular-nums; }
.vf-st-wk { font-size: 11px; color: var(--vf-muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.vf-st-bars[style*="--n:26"] .vf-st-wk, .vf-st-bars[style*="--n:52"] .vf-st-wk { visibility: hidden; }
.vf-st-bars[style*="--n:26"] li:nth-child(4n+1) .vf-st-wk, .vf-st-bars[style*="--n:52"] li:nth-child(8n+1) .vf-st-wk { visibility: visible; overflow: visible; }
.vf-st-bars[style*="--n:26"] em, .vf-st-bars[style*="--n:52"] em { display: none; }
.vf-st-none { margin: 0; color: var(--vf-muted); }
.vf-st-none.is-ok { color: var(--vf-pass); font-weight: 600; }
.vf-st-list, .vf-st-hbars { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: 2px; }
.vf-st-list li { margin: 0; display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--vf-soft); font-size: 15px; }
.vf-st-list small, .vf-st-table small { display: block; color: var(--vf-muted); font-size: 12.5px; font-weight: 400; }
.vf-st-when { flex: none; font-size: 13px; color: var(--vf-fail); }
.vf-st-hbars li { margin: 0; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) 2.2em; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; }
.vf-st-hl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vf-st-hb { height: 10px; border-radius: 5px; background: var(--vf-soft); overflow: hidden; }
.vf-st-hb i { display: block; height: 100%; background: var(--vf-fail); border-radius: 5px; }
.vf-st-hbars b { text-align: right; font-variant-numeric: tabular-nums; }
.vf-st-dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vf-st-dl div { padding: 10px 12px; border-radius: 8px; background: var(--vf-soft); }
.vf-st-dl dt { font-size: 13px; color: var(--vf-muted); }
.vf-st-dl dd { margin: 2px 0 0; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vf-st-dl .is-warn dd { color: var(--vf-fail); }
.vf-st-more { margin: 10px 0 0; font-size: 14px; }
.vf-st-more a { color: var(--vf-heritage, var(--vf-accent)); }
.vf-st-scroll { overflow-x: auto; }
.vf-st-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.vf-st-table th, .vf-st-table td { padding: 9px 8px; border-bottom: 1px solid var(--vf-soft); text-align: right; white-space: nowrap; }
.vf-st-table th[scope="row"], .vf-st-table thead th:first-child { text-align: left; white-space: normal; min-width: 150px; }
.vf-st-table thead th { font-size: 12.5px; font-weight: 600; color: var(--vf-muted); border-bottom-color: var(--vf-line); }
.vf-st-table td.is-fail { color: var(--vf-fail); font-weight: 700; }
.vf-st-table a { color: var(--vf-heritage, var(--vf-accent)); }
@media (max-width: 600px) { .vf-st-col { height: 110px; } .vf-st-bars { gap: 2px; } .vf-st-bars em { display: none; } .vf-st-wk { visibility: hidden; } .vf-st-bars li:nth-child(3n+1) .vf-st-wk { visibility: visible; overflow: visible; } .vf-st-scope { margin-left: 0; } }

/* A phone that has used Face ID here: Face ID first, the password behind a link */
.vf-pk-pw { justify-self: center; border: 0; background: none; padding: 8px 4px; min-height: 44px; font: inherit; font-size: 15px; color: var(--vf-heritage, var(--vf-accent)); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.vf-pk-pw[hidden] { display: none; }
.vf-login.is-pk-first .vf-login-form, .vf-login.is-pk-first .vf-pk-or { display: none; }

/* Size control: phones and tablets only */
html.vf-site:not(.vf-phone) .vf-zoom { display: none; }
html.vf-site:not(.vf-phone) .vf-head .vf-logo { margin-right: 0; }
.vf-zoom.vf-zoom-menu { position: static; display: inline-flex; background: transparent; border-color: #E0D8CB; padding: 3px; }
.vf-zoom-menu .vf-zoom-btn { min-width: 52px; height: 44px; font-size: 20px; color: #222326; }
.vf-zoom-menu .vf-zoom-val { min-width: 48px; font-size: 15px; color: #5C5850; }

/* The app look: phones and tablets (html.vf-phone is set in the page head) */
.vf-tabbar, .vf-app-back, .vf-more { display: none; }
html.vf-phone, html.vf-phone body { background: #F5F1ED; overscroll-behavior-y: none; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
html.vf-phone a, html.vf-phone button, html.vf-phone label, html.vf-phone select { touch-action: manipulation; }
html.vf-phone button, html.vf-phone .vf-tile, html.vf-phone .vf-tab { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html.vf-phone #wpadminbar { display: none; }
html.vf-phone { margin-top: 0 !important; }
html.vf-phone footer.wp-block-template-part { display: none; }
html.vf-phone header.wp-block-template-part .wp-block-group.alignwide { padding-top: calc(8px + env(safe-area-inset-top, 0px)) !important; padding-bottom: 8px !important; }
/* Filling in a form: the back button sits top left, so the logo goes back to the middle and the menu steps aside. */
html.vf-phone body:has(.vf-root[data-vf]) header.wp-block-template-part .wp-block-group.alignwide { justify-content: center !important; }
html.vf-phone body:has(.vf-root[data-vf]) header.wp-block-template-part .wp-block-navigation { display: none; }
html.vf-phone header.wp-block-template-part .wp-block-site-logo img { max-height: 44px; width: auto; }
html.vf-phone main { margin-top: 0 !important; padding-left: 10px !important; padding-right: 10px !important; }
html.vf-phone .vf-hero-out, html.vf-phone .vf-tile-inbox { display: none; }
html.vf-phone .vf-hero { padding: 20px 20px 22px; }

html.vf-phone .vf-tabbar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: flex; padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 254, 252, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid #E0D8CB; view-transition-name: vf-tabbar; }
html.vf-phone body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
.vf-tab { flex: 1 1 0; min-width: 0; min-height: 50px; display: grid; justify-items: center; align-content: center; gap: 2px; padding: 2px 0; border: 0; background: none; color: #6B655B; font-family: inherit; font-size: 11.5px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; }
.vf-tab svg { width: 25px; height: 25px; }
.vf-tab.is-on { color: var(--vf-brand, #1F2937); }
.vf-tab.is-on svg { stroke-width: 2.3; }
.vf-tab:active { opacity: .55; }

/* Filling in a form is a task of its own: no tab bar, a back button instead */
html.vf-phone body:has(.vf-root[data-vf]) { padding-bottom: 0; }
html.vf-phone body:has(.vf-root[data-vf]) .vf-tabbar { display: none; }
html.vf-phone body:has(.vf-root[data-vf]) .vf-app-back { position: absolute; z-index: 20; top: calc(6px + env(safe-area-inset-top, 0px)); left: 4px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px 0 2px; color: var(--vf-brand, #1F2937); font-size: 16px; font-weight: 600; text-decoration: none; }
.vf-app-back svg { width: 24px; height: 24px; }

html.vf-phone .vf-more:not([hidden]) { position: fixed; z-index: 60; inset: 0; display: block; }
.vf-more-shade { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: rgba(20, 18, 14, .4); }
.vf-more-sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 18px calc(16px + env(safe-area-inset-bottom, 0px)); border-radius: 16px 16px 0 0; background: #FFFEFC; color: #222326; box-shadow: 0 -10px 30px rgba(20, 18, 14, .18); animation: vf-sheet-up .22s ease-out; }
.vf-more-sheet::before { content: ""; display: block; width: 38px; height: 4px; margin: 0 auto 12px; border-radius: 2px; background: #E0D8CB; }
@keyframes vf-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
.vf-more-who { margin: 0 0 6px; font-size: 14px; color: #5C5850; }
.vf-more-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; border-top: 1px solid #EAE3D8; font-size: 16px; font-weight: 600; color: #222326; text-decoration: none; }
.vf-more-out { color: #A8231C; }
@media (pointer: coarse) and (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
@media (prefers-reduced-motion: reduce) { .vf-more-sheet { animation: none; } }

/* Logos 15% bigger than the theme's setting */
html.vf-site .wp-block-site-logo img { width: 196px; max-width: 100%; height: auto; }

/* The recent reports list: a chip stays on one line */
.vf-recent-state { flex: none; }
.vf-chip { white-space: nowrap; }

/* Asking for a name */
.vf-name-card { display: grid; gap: 6px; margin-top: 18px; padding: 14px 16px; border: 1px solid var(--vf-line); border-left: 4px solid var(--vf-gold, var(--vf-accent)); border-radius: 10px; background: var(--vf-sheet); }
.vf-name-card > b { font-size: 16px; }
.vf-name-card > span { font-size: 14px; color: var(--vf-muted); }
.vf-name-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 6px 0; }
.vf-name-boxes label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.vf-name-card .vf-btn { justify-self: start; }

/* Add to home screen, in the More sheet */
.vf-more-add { width: 100%; padding: 0; border: 0; border-top: 1px solid #EAE3D8; background: none; font-family: inherit; text-align: left; cursor: pointer; }
.vf-more-add[hidden], .vf-more-steps[hidden] { display: none; }
.vf-more-steps { margin: -6px 0 12px; font-size: 14px; color: #5C5850; }

/* Reports waiting for signal */
.vf-outbox { --vf-line: #E0D8CB; --vf-sheet: #FFFEFC; --vf-ink: #222326; --vf-accent: var(--vf-brand, #1F2937); display: grid; gap: 8px; max-width: 880px; margin: 0 auto 12px; padding: 12px 14px; border: 1px solid #E0D8CB; border-left: 4px solid var(--vf-brand-accent, #C9A24D); border-radius: 10px; background: #FFFEFC; color: #222326; font-size: 15px; }
.vf-outbox-head { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; }
.vf-outbox-head b { flex: 1 1 100%; font-size: 16px; }
.vf-outbox-head span { flex: 1 1 180px; font-size: 14px; color: #5C5850; }
.vf-outbox ul { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: 6px; }
.vf-outbox li { margin: 0; display: grid; gap: 4px; }
.vf-outbox small { color: #5C5850; white-space: nowrap; }
.vf-outbox-bad { font-size: 14px; color: #A8231C; }
.vf-outbox-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.vf-receipt.is-queued { border-color: var(--vf-brand-accent, #C9A24D); }

/* iPhones zoom in when a box with text under 16px is tapped, and leave the page loose so it drags
   sideways. Every box is kept at 16px or more on screen, whatever the size setting. */
html.vf-phone input:not([type=checkbox]):not([type=radio]):not([type=range]), html.vf-phone textarea, html.vf-phone select { font-size: max(16px, calc(16px / var(--vf-z, 1))) !important; }
html.vf-phone, html.vf-phone body { overflow-x: clip; max-width: 100%; }

/* Attachments on a question */
.vf-attach { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 10px; }
.vf-attach .vf-photos { flex: 0 1 auto; min-width: 0; margin: 0; }
.vf-docs-wrap { flex: 1 1 auto; display: grid; gap: 6px; justify-items: start; }
.vf-docs { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: 4px; width: 100%; }
.vf-docs:empty { display: none; }
.vf-docs li { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--vf-line); border-radius: 8px; background: var(--vf-soft); font-size: 15px; }
.vf-doc-name { min-width: 0; overflow-wrap: anywhere; }
/* The Files section: a drop zone on a computer, a plain button on a phone. */
.vf-drop { width: 100%; justify-items: stretch; }
.vf-drop-zone { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 14px 16px; border: 1.5px dashed var(--vf-line); border-radius: 10px; background: var(--vf-field-bg, transparent); transition: border-color .15s ease, background-color .15s ease; }
.vf-drop-zone > .vf-ico { width: 22px; height: 22px; color: var(--vf-muted); flex: none; }
.vf-drop-hint { color: var(--vf-muted); font-size: 15px; display: none; }
.vf-drop-kinds { flex-basis: 100%; color: var(--vf-muted); font-size: 13px; }
.vf-drop.is-over .vf-drop-zone { border-color: var(--vf-accent); background: var(--vf-soft); }
@media (hover: hover) and (pointer: fine) {
  .vf-drop-zone { padding: 22px 20px; justify-content: center; text-align: center; }
  .vf-drop-hint { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .vf-drop-zone { transition: none; } }
.vf-report-docs a { color: var(--vf-heritage, var(--vf-accent)); }

/* Saved signature and passing a whole page */
.vf-sig-save { display: flex; align-items: center; gap: 8px; margin-top: 8px; min-height: 44px; font-size: 15px; }
.vf-sig-save[hidden] { display: none; }
.vf-passall-row { display: flex; justify-content: flex-end; margin: 8px 0 4px; }
.vf-passall svg { width: 20px; height: 20px; }

/* The report preview: a book you flip through */
html.vff-open, html.vff-open body { overflow: hidden; }
.vff { position: fixed; inset: 0; z-index: 100001; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--vf-brand-deep, #0D1B33); color: #F8F5F1; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); font-size: 16px; }
.vff-head { display: flex; align-items: center; gap: 12px; padding: 8px 12px; }
.vff-head b { font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vff-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 14px; border: 1px solid rgba(247, 244, 238, .35); border-radius: 8px; background: transparent; color: inherit; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.vff-btn:disabled { opacity: .35; cursor: default; }
.vff-round { width: 44px; padding: 0; font-size: 24px; line-height: 1; }
.vff-stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; perspective: 2200px; }
.vff-wait { margin: 0; font-size: 16px; color: rgba(247, 244, 238, .8); }
.vff-wait[hidden], .vff-book[hidden] { display: none; }
.vff-frame { width: 100%; height: 100%; border: 0; background: #fff; }
.vff-book { position: relative; transform-style: preserve-3d; transition: transform .7s ease; cursor: pointer; }
.vff-book.is-start { transform: translateX(-25%); }
.vff-book.is-end { transform: translateX(25%); }
.vff-leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.45, .05, .35, 1); }
.vff-leaf.is-over { transform: rotateY(-180deg); }
.vff-face { position: absolute; inset: 0; overflow: hidden; background: #fff; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 6px 22px rgba(0, 0, 0, .4); }
.vff-face::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, rgba(0, 0, 0, .16), transparent 7%); }
.vff-back { transform: rotateY(180deg); }
.vff-back::after { background: linear-gradient(to left, rgba(0, 0, 0, .16), transparent 7%); }
.vff-face img { display: block; width: 100%; height: 100%; object-fit: contain; }
.vff.is-single .vff-leaf { left: 0; width: 100%; transition: transform .9s cubic-bezier(.45, .05, .35, 1), opacity .25s linear .55s; }
.vff.is-single .vff-leaf.is-over { transform: rotateY(-115deg); opacity: 0; }
.vff.is-single .vff-back { display: none; }
.vff.is-still .vff-leaf, .vff.is-still .vff-book { transition: none; }
.vff-bar { display: grid; gap: 8px; padding: 8px 12px 12px; }
.vff-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.vff-count { min-width: 74px; text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; }
.vff-link { color: inherit; font-size: 15px; text-underline-offset: 3px; padding: 8px 4px; }
.vff-msg { margin: 0; color: #FFB4A9; font-size: 15px; text-align: center; }
.vff-msg:empty { display: none; }
.vff-send { width: 100%; max-width: 560px; justify-self: center; min-height: 52px; border: 0; border-radius: 10px; background: #5C655F; color: #D9DDD9; font: inherit; font-size: 17px; font-weight: 700; cursor: not-allowed; }
.vff-send.is-ready:not(:disabled) { background: var(--vf-brand-accent, #C9A24D); color: var(--vf-brand-deep, #0D1B33); cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .vff-leaf, .vff-book { transition: none; } }

/* One draft per project */
.vf-drafts { margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--vf-line); border-left: 4px solid var(--vf-brand-accent, #C9A24D); border-radius: 10px; background: var(--vf-soft); }
.vf-drafts h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.vf-drafts ul { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: 8px; }
.vf-drafts li { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.vf-draft-name { font-weight: 600; min-width: 0; }
.vf-draft-name small { display: block; font-weight: 400; font-size: 13px; color: var(--vf-muted); }
.vf-draft-btns { display: flex; gap: 8px; }

/* Lists you choose from look and open like a dropdown, with a search box and the choice ticked */
.vf-lookup-list { max-height: 300px; overflow-y: auto; }
.vf-lookup-list li[aria-selected="true"] .vf-lookup-name::after { content: " \2713"; color: var(--vf-accent); font-weight: 700; }

/* Open Sans across the whole site, including the theme's own text */
html.vf-site body, html.vf-site h1, html.vf-site h2, html.vf-site h3, html.vf-site h4, html.vf-site .wp-block-navigation, html.vf-site input, html.vf-site select, html.vf-site textarea, html.vf-site button, .vf-root { font-family: "Open Sans", "Segoe UI", Roboto, "Helvetica Neue", sans-serif; }

/* Aurora and glass (html.vf-fx, Settings > Brand colours). Questions and their boxes stay solid, so forms read well outdoors. */
html.vf-fx { background: #F5F1ED; }
html.vf-fx body, html.vf-fx.vf-phone body { background: transparent !important; }
html.vf-fx body::before { content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none; background:
  radial-gradient(40% 35% at 18% 12%, rgba(180, 162, 115, .42), transparent 70%),
  radial-gradient(34% 30% at 84% 16%, rgba(226, 208, 160, .46), transparent 70%),
  radial-gradient(44% 40% at 72% 84%, rgba(180, 162, 115, .34), transparent 70%),
  radial-gradient(34% 30% at 20% 80%, rgba(20, 40, 75, .1), transparent 70%);
  filter: blur(30px); animation: vf-aurora 26s ease-in-out infinite alternate; }
@keyframes vf-aurora { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.08); } }
html.vf-fx .vff { background: radial-gradient(60% 90% at 80% 0%, rgba(180, 162, 115, .3), transparent 70%), radial-gradient(50% 80% at 10% 100%, rgba(180, 162, 115, .18), transparent 70%), var(--vf-brand-deep, #0D1B33); }
html.vf-fx .vf-dash, html.vf-fx .vf-inbox, html.vf-fx .vf-login { background: rgba(255, 255, 255, .62); border-color: rgba(255, 255, 255, .75); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); box-shadow: 0 10px 36px rgba(20, 40, 75, .12); }
html.vf-fx .vf:not(.vf-dash):not(.vf-inbox):not(.vf-login) { background: rgba(255, 255, 255, .92); border-color: rgba(255, 255, 255, .8); box-shadow: 0 10px 36px rgba(20, 40, 75, .1); }
html.vf-fx .vf-stat, html.vf-fx .vf-tile, html.vf-fx .vf-recent-row, html.vf-fx .vf-st-card, html.vf-fx .vf-inbox-row, html.vf-fx .vf-reg-row, html.vf-fx .vf-drafts, html.vf-fx .vf-due-add, html.vf-fx .vf-pk-offer, html.vf-fx .vf-name-card, html.vf-fx .vf-outbox { background: rgba(255, 255, 255, .58); border-color: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
html.vf-fx.vf-phone .vf-tabbar { background: rgba(255, 255, 255, .6); border-top-color: rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); }
html.vf-fx .vf-more-sheet { background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); }
@media (prefers-reduced-motion: reduce) { html.vf-fx body::before { animation: none; } }

/* Gold leads; the dark blue is for text. Gold is too pale for white text, so it always carries dark text. */
html.vf-site .vf-root { --vf-accent: var(--vf-brand-accent, #9AA8BD) !important; --vf-accent-ink: var(--vf-brand, #1F2937) !important; --vf-heritage-2: var(--vf-gold-deep, #8C7A4C); }
.vf-hero, html.vf-fx .vf-hero { background: radial-gradient(70% 140% at 88% 0%, rgba(255, 244, 214, .55), transparent 70%), radial-gradient(60% 130% at 45% 120%, rgba(255, 255, 255, .22), transparent 70%), var(--vf-brand-accent, #9AA8BD); color: var(--vf-brand, #1F2937); }
.vf-hero::after { background: var(--vf-brand, #1F2937); }
.vf-hero-date, .vf-hero-out { color: var(--vf-brand, #1F2937); }
.vf-tile-form .vf-tile-badge, .vf-tile-cta, .vf-tile-badge { background: var(--vf-brand-accent, #9AA8BD); color: var(--vf-brand, #1F2937); }
.vf-tile-form:hover .vf-tile-cta { background: var(--vf-gold-deep, #8C7A4C); color: #fff; }
.vf-tile-form.has-draft .vf-tile-cta { background: var(--vf-brand, #1F2937); color: #fff; }
.vf-tile-ico { stroke-width: 2.2; }
.vf-tab.is-on { color: var(--vf-gold-deep, #8C7A4C); }
.vf-tab svg { fill: currentColor; stroke: none; }
.vf-linkbtn, .vf-pk-pw, .vf-inbox .vf-inbox-count a, .vf-inbox-back a, .vf-inbox-more a { color: var(--vf-gold-deep, #8C7A4C); }
.vf-inbox-tabs a[aria-current] { border-color: var(--vf-brand-accent, #9AA8BD); }
.vf-reg-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vf-st-col i:not(.is-fail), .vf-st-sw:not(.is-fail) { background: var(--vf-brand-accent, #9AA8BD); }

/* The dashboard at the top of a report: press one to show only those */
.vf-report-dash { margin: 14px 0 0; }
button.vf-stat { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; border-left-width: 4px; }
button.vf-stat:disabled { cursor: default; opacity: .6; }
button.vf-stat:not(:disabled):hover { border-color: var(--vf-brand-accent, #9AA8BD); }
.vf-stat.is-pass { border-left-color: var(--vf-pass); } .vf-stat.is-pass b { color: var(--vf-pass); }
.vf-stat.is-fail { border-left-color: var(--vf-fail); } .vf-stat.is-fail b { color: var(--vf-fail); }
.vf-stat.is-na { border-left-color: var(--vf-muted); } .vf-stat.is-na b { color: var(--vf-muted); }
.vf-stat.is-actions { border-left-color: var(--vf-fail); } .vf-stat.is-actions b { color: var(--vf-fail); }
.vf-stat[aria-pressed="true"] { background: var(--vf-brand-accent, #9AA8BD) !important; }
.vf-stat[aria-pressed="true"] b, .vf-stat[aria-pressed="true"] span { color: var(--vf-brand, #1F2937); }
.vf-report-showing { margin: 10px 0 0; font-size: 15px; }
.vf-report-showing[hidden], .vf-report-row[hidden], .vf-report-rows[hidden], .vf-report-sec[hidden] { display: none; }
@media (max-width: 600px) { .vf-report-dash { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Sharing and the Sent tab */
.vf-wa { background: #25D366; border-color: #25D366; color: #0B2E18; }
.vf-wa:hover { border-color: #128C7E; }
.vf-done-warn { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: var(--vf-fail-bg); color: var(--vf-fail); font-weight: 600; }
.vf-receipt dd { overflow-wrap: anywhere; }
.vf-reg-sub { overflow-wrap: anywhere; }
.vf-reg-title a { color: inherit; }

/* The Email again popup */
.vf-email-pop { width: min(560px, calc(100vw - 32px)); max-width: none; }
.vf-email-pop form { display: grid; gap: 6px; }
.vf-email-pop .vf-input { width: 100%; box-sizing: border-box; }
.vf-email-pop .vf-dialog-btns { margin-top: 8px; }


/* Reports tabs: swipe along when they do not all fit */
.vf-inbox-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.vf-inbox-tabs a { flex: none; white-space: nowrap; }

/* Nothing sits over the signature box, and a finger on it never scrolls the page */
.vf-sig-pad { position: relative; z-index: 1; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }


/* Clients and projects from a spreadsheet (Reports > Clients and projects). */
.vf-imp { max-width: 760px; }
.vf-imp-card { margin: 14px 0; padding: 16px; border: 1px solid var(--vf-line); border-radius: 10px; background: var(--vf-sheet); }
.vf-imp-card h3 { margin: 0 0 8px; font-size: 17px; }
.vf-imp-card p { margin: 0 0 10px; }
.vf-imp-check { border-color: var(--vf-accent); border-width: 2px; }
.vf-imp-go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
@media (max-width: 600px) { .vf-imp-go .vf-btn { flex: 1 1 100%; } }
.vf-imp-counts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.vf-imp-counts li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 10px 12px; border-radius: 8px; background: var(--vf-soft, #f4f1ea); }
.vf-imp-counts b { min-width: 80px; }
.vf-imp-counts span { color: var(--vf-muted); font-size: 14px; }
.vf-imp-counts em { font-style: normal; font-weight: 700; font-size: 17px; color: var(--vf-ink); font-variant-numeric: tabular-nums; }
.vf-imp-note { font-size: 14px; }
.vf-imp-problems { margin: 0 0 10px; font-size: 14px; }
.vf-imp-problems summary { cursor: pointer; font-weight: 600; color: var(--vf-warn, #8a5a00); min-height: 32px; display: flex; align-items: center; }
.vf-imp-problems ul { margin: 6px 0 0 18px; padding: 0; }
.vf-imp-tick { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; font-size: 15px; }
.vf-imp-tick input { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.vf-imp-file { display: grid; gap: 6px; font-weight: 600; }
.vf-imp-file input { font: inherit; font-weight: 400; max-width: 100%; }
.vf-imp-more { font-size: 14px; color: var(--vf-muted); margin: 4px 0 6px; }
.vf-imp-more summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.vf-imp-small { font-size: 13px; color: var(--vf-muted); margin: 8px 0 0; }

/* Adding a client or project that isn't on the list (0.42.0). */
.vf-lookup-list li.vf-lookup-add { border-top: 1px solid var(--vf-line); margin-top: 4px; padding-top: 12px; color: var(--vf-ink); font-weight: 600; align-items: center; }
.vf-lookup-list li.vf-lookup-add:first-child { border-top: 0; margin-top: 0; padding-top: 10px; }
.vf-lookup-plus { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--vf-accent); color: var(--vf-accent-ink, #fff); font: 700 18px/1 var(--vf-f-body); }
.vf-dialog.vf-add { width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; }
.vf-add-form { display: grid; gap: 12px; }
.vf-add-form h3, .vf-add-form p { margin-bottom: 0; }
.vf-add-row { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.vf-add-row small { font-weight: 400; color: var(--vf-muted); }
.vf-add-row .vf-input { font-weight: 400; }
.vf-add-row textarea.vf-input { min-height: 64px; }
.vf-add-here { justify-self: start; gap: 6px; margin-top: -4px; font-size: 14px; min-height: 40px; }
.vf-add-here .vf-pin { width: 18px; height: 18px; }
.vf-add .vf-dialog-btns { margin-top: 4px; }
@media (max-width: 600px) { .vf-dialog.vf-add { padding: 18px 16px 14px; } .vf-add-here { justify-self: stretch; } }

/* New ones to check, on the Clients and projects tab. */
.vf-imp-new { border-color: var(--vf-accent); }
.vf-imp-newlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vf-imp-newlist li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 12px; border-radius: 8px; background: var(--vf-soft, #f4f1ea); }
.vf-imp-newlist li > div:first-child { min-width: 0; flex: 1 1 240px; }
.vf-imp-newlist small { display: block; color: var(--vf-muted); font-size: 13px; overflow-wrap: anywhere; }
.vf-imp-newlist .vf-imp-go { margin-top: 0; }
.vf-imp-tag { font: 500 11px/1 var(--vf-f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--vf-muted); border: 1px solid var(--vf-line); border-radius: 4px; padding: 3px 5px; margin-left: 4px; vertical-align: 2px; }
.vf-imp-fix { flex: 1 1 100%; }
.vf-imp-fix summary { cursor: pointer; min-height: 36px; display: inline-flex; align-items: center; font-weight: 600; font-size: 14px; color: var(--vf-ink); }
.vf-imp-fix form { display: grid; gap: 6px; margin-top: 6px; padding: 12px; border-radius: 8px; background: var(--vf-sheet); border: 1px solid var(--vf-line); }
.vf-imp-fix label { font-weight: 600; font-size: 14px; margin-top: 4px; }
.vf-imp-fix textarea.vf-input { min-height: 60px; }

/* Earlier report (e.g. the PUWER inspection) to attach */
.vf-linked-pick { display: grid; gap: 10px; max-width: 560px; }
.vf-linked-none { margin: 0; color: var(--vf-muted); font-size: 14.5px; }
.vf-linked-out { font-size: 14.5px; }
.vf-linked-out ul { margin: 4px 0 0; padding-left: 20px; }
.vf-linked-out li { margin: 2px 0; color: var(--vf-fail); }
.vf-linked-head { margin: 0; font-weight: 600; color: var(--vf-fail); }
.vf-linked-ok { margin: 0; color: var(--vf-pass); font-weight: 600; }

/* Repeated rows: take one out, or add another */
.vf-slot-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 10px; grid-column: 1 / -1; }
.vf-slot-tools [hidden] { display: none; }
.vf-slot-rm { color: var(--vf-muted); }

/* Last week's fails, one at a time after a clone */
.vf-clone-fails { display: grid; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--vf-line); }
.vf-clone-fails p { margin: 0; line-height: 1.6; }
.vf-clone-fails .vf-linkbtn { color: var(--vf-fail); }
.vf-failnav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: var(--vf-fail-bg); border-left: 4px solid var(--vf-fail); }
.vf-failnav-text { margin: 0; display: grid; gap: 2px; font-size: 14px; }
.vf-failnav-text b { color: var(--vf-fail); font-size: 15px; }
.vf-failnav-btns { display: flex; gap: 8px; }
@media (max-width: 600px) { .vf-failnav-btns { width: 100%; } .vf-failnav-btns .vf-btn { flex: 1; justify-content: center; } }

/* 0.54.0: each person's own phone alerts (Pushover) on the home page. */
.vf-push-card { margin-top: 26px; border: 1px solid var(--vf-line); border-radius: 10px; background: var(--vf-sheet); }
.vf-push-card > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 12px 16px; cursor: pointer; list-style: none; }
.vf-push-card > summary::-webkit-details-marker { display: none; }
.vf-push-card > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--vf-muted); border-bottom: 2px solid var(--vf-muted); transform: rotate(45deg); margin-left: auto; flex: none; }
.vf-push-card[open] > summary::after { transform: rotate(-135deg); }
.vf-push-h { font-weight: 700; font-size: 16px; }
.vf-push-card > :not(summary) { margin-left: 16px; margin-right: 16px; }
.vf-push-form { padding-bottom: 14px; }
.vf-push-form .vf-input { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.vf-push-own { margin: 4px 0 8px; }
.vf-push-own > summary { cursor: pointer; font-size: 14px; color: var(--vf-muted); min-height: 36px; display: flex; align-items: center; }
.vf-push-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* 0.57.0: Clients and jobs screen for Managers. */
.vf-clients .vf-c-lines { width: 100%; min-height: 160px; font: inherit; line-height: 1.5; }
.vf-c-mode { border: 0; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.vf-c-mode select { flex: 1 1 220px; min-width: 0; }
.vf-c-search { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 10px; }
.vf-c-search input[type=search] { flex: 1 1 220px; min-width: 0; }
.vf-c-clients, .vf-c-jobs, .vf-c-check { list-style: none; margin: 0; padding: 0; }
.vf-c-clients > li { border-top: 1px solid var(--vf-line); }
.vf-c-clients summary { display: flex; align-items: center; gap: 8px; min-height: 48px; cursor: pointer; padding: 6px 0; }
.vf-c-name { font-weight: 600; }
.vf-c-count { margin-left: auto; color: var(--vf-muted); font-size: 14px; white-space: nowrap; }
.vf-c-item { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.vf-c-item .vf-c-n { flex: 1 1 200px; min-width: 0; }
.vf-c-item .vf-c-code { flex: 0 1 110px; min-width: 0; }
.vf-c-jobs { margin-left: 14px; padding-left: 12px; border-left: 2px solid var(--vf-line); }
.vf-c-check li { padding: 10px 0; border-top: 1px solid var(--vf-line); }
.vf-c-check label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.vf-c-check input[type=checkbox] { width: 22px; height: 22px; }
.vf-c-line { font-weight: 600; }
.vf-c-why { flex-basis: 100%; padding-left: 32px; font-size: 14px; color: var(--vf-muted); }
.vf-c-check .is-close .vf-c-why { color: #7a4f00; }
.vf-c-check .is-same { opacity: .65; }

/* 0.58.0: the header. Logo hard left, the menu a "Menu" button with a drop-down list on the right. */
html.vf-site header.wp-block-template-part .wp-block-group.alignwide { max-width: none !important; width: 100%; margin-left: 0 !important; margin-right: 0 !important; justify-content: space-between !important; align-items: center; padding-left: clamp(12px, 2.5vw, 32px) !important; padding-right: clamp(12px, 2.5vw, 32px) !important; box-sizing: border-box; }
html.vf-site header.wp-block-template-part > .wp-block-group, html.vf-site header.wp-block-template-part > .wp-block-group > .wp-block-group { padding-left: 0 !important; padding-right: 0 !important; max-width: none !important; }
html.vf-site header.wp-block-template-part .wp-block-site-logo { margin: 0; }
html.vf-site header .wp-block-navigation { position: relative; }
html.vf-site header .wp-block-navigation__responsive-container-open { display: inline-flex !important; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid #E0D8CB; border-radius: 999px; background: #FFFEFC; color: var(--vf-brand, #1F2937); font: 600 15px/1 inherit; cursor: pointer; }
html.vf-site header .wp-block-navigation__responsive-container-open::after { content: "Menu"; }
html.vf-site header .wp-block-navigation__responsive-container-open svg { width: 22px; height: 22px; }
html.vf-site header .wp-block-navigation__responsive-container-open[aria-expanded="true"] { border-color: var(--vf-brand, #1F2937); }
html.vf-site.has-modal-open { overflow: visible !important; }
html.vf-site header .wp-block-navigation__responsive-container.is-menu-open { position: absolute !important; inset: auto !important; top: calc(100% + 8px) !important; right: 0 !important; z-index: 100; width: min(300px, calc(100vw - 24px)); height: auto !important; max-height: 70vh; overflow: auto; padding: 6px 0 !important; border: 1px solid #E0D8CB; border-radius: 12px; background: #FFFEFC !important; color: #222326 !important; box-shadow: 0 14px 34px rgba(20, 18, 14, .16); animation: vf-drop .16s ease-out; }
@keyframes vf-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
html.vf-site header .is-menu-open .wp-block-navigation__responsive-close { max-width: none; margin: 0; }
html.vf-site header .is-menu-open .wp-block-navigation__responsive-dialog { margin: 0 !important; padding: 0 !important; }
html.vf-site header .is-menu-open .wp-block-navigation__responsive-container-close { display: none; }
html.vf-site header .is-menu-open .wp-block-navigation__responsive-container-content { padding: 0 !important; margin: 0 !important; align-items: stretch !important; gap: 0 !important; }
html.vf-site header .is-menu-open .wp-block-navigation__container, html.vf-site header .is-menu-open .wp-block-page-list { flex-direction: column; align-items: stretch !important; gap: 0 !important; width: 100%; }
html.vf-site header .is-menu-open .wp-block-navigation-item { width: 100%; align-items: stretch !important; text-align: left; }
html.vf-site header .is-menu-open .wp-block-navigation-item__content { justify-content: flex-start !important; text-align: left !important; }
html.vf-site header .is-menu-open .wp-block-navigation-item__content { display: flex !important; align-items: center; min-height: 48px; padding: 0 18px !important; font-size: 16px; font-weight: 600; color: #222326; text-decoration: none; border-top: 1px solid #F0EAE0; }
html.vf-site header .is-menu-open .wp-block-navigation-item:first-child > .wp-block-navigation-item__content { border-top: 0; }
html.vf-site header .is-menu-open .wp-block-navigation-item__content:hover, html.vf-site header .is-menu-open .wp-block-navigation-item__content:focus-visible { background: #F5F1ED; }
html.vf-site header .is-menu-open .current-menu-item > .wp-block-navigation-item__content, html.vf-site header .is-menu-open [aria-current="page"] { color: var(--vf-brand, #1F2937); box-shadow: inset 3px 0 0 var(--vf-brand-accent, #9AA8BD); }
@media (prefers-reduced-motion: reduce) { html.vf-site header .wp-block-navigation__responsive-container.is-menu-open { animation: none; } }

/* 0.62.0: report type chips above the inbox list. */
.vf-type-chips { display: flex; gap: 8px; margin: 4px 0 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
.vf-type-chips::-webkit-scrollbar { display: none; }
.vf-type-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--vf-line); border-radius: 999px; background: var(--vf-sheet); color: var(--vf-ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.vf-type-chip b { font-weight: 700; color: var(--vf-muted); font-variant-numeric: tabular-nums; }
.vf-type-chip:hover { border-color: var(--vf-brand, #1F2937); }
.vf-type-chip.is-on { background: var(--vf-brand, #1F2937); border-color: var(--vf-brand, #1F2937); color: #fff; }
.vf-type-chip.is-on b { color: rgba(255, 255, 255, .8); }

/* 0.64.0: AI spell check note under a text box. */
.vf-spell { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 6px 0 0; padding: 6px 10px; border-radius: 8px; background: #EEF5EF; color: #17402a; font-size: 14px; line-height: 1.4; animation: vf-drop .16s ease-out; }
.vf-spell s { color: #6B655B; }
.vf-spell .vf-linkbtn { min-height: 32px; font-weight: 700; color: #17402a; }

/* ---------- Team / Your work dashboard (0.66.0) ---------- */
.vf-tb { --tb-late: var(--vf-fail, #A8231C); --tb-ok: var(--vf-pass, #1B6B45); --tb-mid: var(--vf-warn, #9C4317); --tb-soon: var(--vf-brand, #1F2937); --tb-gold: var(--vf-brand-accent, #9AA8BD); }
.vf-tb-back { margin: 0 0 12px; font-size: .9rem; }
.vf-tb-back a::before { content: "\2190\00a0"; }
.vf-tb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin: 0 0 18px; padding: 0 0 14px; border-bottom: 2px solid var(--tb-gold); }
.vf-tb-head .vf-report-title { margin: 0 0 4px; }
.vf-tb-head .vf-inbox-sub { margin: 0; max-width: 60ch; }
.vf-tb-asof { margin: 0; font-size: .8rem; color: var(--vf-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.vf-tb-sum { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.vf-tb-tile { position: relative; display: grid; gap: 1px; padding: 14px 16px 13px 18px; border: 1px solid var(--vf-line); border-radius: 12px; background: var(--vf-sheet); overflow: hidden; }
.vf-tb-tile::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--vf-line); }
.vf-tb-tile b { font-size: 2rem; line-height: 1.05; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vf-tb-tile span { font-size: .9rem; font-weight: 600; }
.vf-tb-tile small { font-size: .76rem; color: var(--vf-muted); }
.vf-tb-tile.is-soon::before { background: var(--tb-soon); }
.vf-tb-tile.is-open::before { background: var(--tb-gold); }
.vf-tb-tile.is-rate::before { background: var(--tb-ok); }
.vf-tb-tile.is-late { border-color: color-mix(in srgb, var(--tb-late) 45%, var(--vf-line)); background: var(--vf-fail-bg, #FBEDEB); }
.vf-tb-tile.is-late::before { background: var(--tb-late); }
.vf-tb-tile.is-late b { color: var(--tb-late); }
.vf-tb-tile.is-low b { color: var(--tb-mid); }
.vf-tb-tile.is-low::before { background: var(--tb-mid); }

.vf-tb-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vf-tb-card { border: 1px solid var(--vf-line); border-radius: 14px; background: var(--vf-sheet); overflow: hidden; }
.vf-tb-card.has-late { box-shadow: inset 4px 0 0 var(--tb-late); }
.vf-tb-card > details > summary { list-style: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px 14px; padding: 14px 16px 14px 18px; cursor: pointer; min-height: 64px; }
.vf-tb-card > details > summary::-webkit-details-marker { display: none; }
.vf-tb-card > details > summary:hover { background: var(--vf-soft); }
.vf-tb-card > details > summary:focus-visible { outline: 2px solid var(--vf-accent); outline-offset: -2px; }
.vf-tb-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--tb-soon); color: #fff; font-weight: 700; font-size: .9rem; letter-spacing: .03em; box-shadow: inset 0 0 0 2px var(--tb-gold); }
.vf-tb-who { display: grid; min-width: 0; }
.vf-tb-who b { font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vf-tb-who span { font-size: .74rem; color: var(--vf-muted); text-transform: uppercase; letter-spacing: .06em; }
.vf-tb-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.vf-tb-chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--vf-soft); color: var(--vf-ink); white-space: nowrap; }
.vf-tb-chip.is-late { background: var(--vf-fail-bg, #FBEDEB); color: var(--tb-late); }
.vf-tb-chip.is-clear { background: var(--vf-pass-bg, #E6F2EB); color: var(--tb-ok); }

.vf-tb-ring { --p: 0; --c: var(--tb-ok); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--vf-soft) 0); position: relative; flex: none; }
.vf-tb-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--vf-sheet); }
.vf-tb-ring b { position: relative; font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.vf-tb-ring small { font-size: .62rem; font-weight: 600; }
.vf-tb-ring.is-mid { --c: var(--tb-mid); }
.vf-tb-ring.is-low { --c: var(--tb-late); }
.vf-tb-ring.is-empty b { color: var(--vf-muted); }

.vf-tb-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--vf-line); }
.vf-tb-part { padding: 14px 16px 16px 18px; min-width: 0; }
.vf-tb-part + .vf-tb-part { border-left: 1px solid var(--vf-line); }
.vf-tb-part h3 { margin: 0 0 10px; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--vf-muted); font-weight: 700; }
.vf-tb-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--vf-soft); gap: 2px; }
.vf-tb-bar span, .vf-tb-key i { background: var(--vf-line); }
.vf-tb-bar .is-ontime, .vf-tb-key .is-ontime i { background: var(--tb-ok); }
.vf-tb-bar .is-overran, .vf-tb-key .is-overran i { background: var(--tb-gold); }
.vf-tb-bar .is-missed, .vf-tb-key .is-missed i { background: color-mix(in srgb, var(--tb-late) 50%, var(--vf-sheet)); }
.vf-tb-bar .is-late, .vf-tb-key .is-late i { background: var(--tb-late); }
.vf-tb-bar .is-soon, .vf-tb-key .is-soon i { background: color-mix(in srgb, var(--tb-soon) 35%, var(--vf-sheet)); }
.vf-tb-key { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 4px; font-size: .78rem; color: var(--vf-muted); font-variant-numeric: tabular-nums; }
.vf-tb-key span { display: inline-flex; align-items: center; gap: 5px; }
.vf-tb-key i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.vf-tb-none { margin: 0; font-size: .88rem; color: var(--vf-muted); }

.vf-tb-group { margin: 14px 0 0; }
.vf-tb-group h4 { margin: 0 0 6px; font-size: .86rem; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.vf-tb-group h4 span { font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--vf-soft); color: var(--vf-muted); font-variant-numeric: tabular-nums; }
.vf-tb-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.vf-tb-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--vf-bg); color: inherit; text-decoration: none; min-height: 44px; box-sizing: border-box; }
a.vf-tb-row:hover, a.vf-tb-row:focus-visible { background: var(--vf-soft); box-shadow: inset 0 0 0 1px var(--vf-line); }
.vf-tb-main { display: grid; min-width: 0; }
.vf-tb-what { font-size: .9rem; font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vf-tb-where { font-size: .78rem; color: var(--vf-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vf-tb-tag { flex: none; font-size: .74rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--vf-sheet); border: 1px solid var(--vf-line); color: var(--vf-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vf-tb-tag.is-late { background: var(--vf-fail-bg, #FBEDEB); border-color: transparent; color: var(--tb-late); }
.vf-tb-tag.is-done { background: var(--vf-pass-bg, #E6F2EB); border-color: transparent; color: var(--tb-ok); }
.vf-tb-tag.is-overran { background: color-mix(in srgb, var(--tb-gold) 24%, var(--vf-sheet)); border-color: transparent; color: var(--vf-ink); }
.vf-tb-more { font-size: .8rem; color: var(--vf-muted); padding: 2px 10px; }
.vf-tb-empty { padding: 28px 20px; text-align: center; border: 1px dashed var(--vf-line); border-radius: 14px; background: var(--vf-sheet); }
.vf-tb-empty b { font-size: 1.05rem; }
.vf-tb-empty p { margin: 6px auto 0; max-width: 46ch; color: var(--vf-muted); font-size: .9rem; }
.vf-tb-foot { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }

@container vf (max-width: 720px) {
  .vf-tb-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vf-tb-body { grid-template-columns: minmax(0, 1fr); }
  .vf-tb-part + .vf-tb-part { border-left: 0; border-top: 1px solid var(--vf-line); }
  .vf-tb-card > details > summary { grid-template-columns: auto minmax(0, 1fr) auto; }
  .vf-tb-chips { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
}
@media (prefers-reduced-motion: no-preference) {
  .vf-tb-card > details[open] .vf-tb-body { animation: vf-tb-in .2s ease-out; }
}
@keyframes vf-tb-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Tidy up duplicates (0.67.0) ---------- */
.vf-mg-groups { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.vf-mg-group fieldset { margin: 0; padding: 10px 12px 6px; border: 1px solid var(--vf-line); border-radius: 10px; background: var(--vf-bg); min-width: 0; }
.vf-mg-group legend { padding: 0 4px; }
.vf-mg-group .vf-c-why { padding: 0; color: #7a4f00; font-size: 14px; }
.vf-mg-row { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--vf-line); min-height: 52px; }
.vf-mg-row:first-of-type { border-top: 0; }
.vf-mg-in { display: grid; place-items: center; width: 44px; min-height: 44px; flex: none; }
.vf-mg-in input, .vf-mg-keep input { width: 22px; height: 22px; margin: 0; }
.vf-mg-keep { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.vf-mg-keep span { display: grid; min-width: 0; flex: 1; }
.vf-mg-keep b { overflow-wrap: anywhere; }
.vf-mg-keep small { color: var(--vf-muted); font-size: 13px; }
.vf-mg-keep em { font-style: normal; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; color: var(--vf-muted); background: var(--vf-soft); visibility: hidden; }
.vf-mg-keep:has(input:checked) { background: var(--vf-pass-bg, #E6F2EB); }
.vf-mg-keep:has(input:checked) em { visibility: visible; color: var(--vf-pass, #1B6B45); background: var(--vf-sheet); }
.vf-mg-row:has(.vf-mg-in input:not(:checked)) .vf-mg-keep { opacity: .5; }
.vf-mg-recent { margin-top: 12px; border-top: 1px solid var(--vf-line); padding-top: 8px; }
.vf-mg-recent summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.vf-mg-list { list-style: none; margin: 0; padding: 0; }
.vf-mg-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--vf-line); }
.vf-mg-list li > span { min-width: 0; overflow-wrap: anywhere; }
.vf-mg-list small { display: block; color: var(--vf-muted); font-size: 13px; }

/* ---------- Asset register (0.68.0) ---------- */
.vf-asset-pick { grid-column: 1 / -1; padding: 10px 12px; border-radius: 10px; background: var(--vf-soft); border: 1px dashed var(--vf-line); }
.vf-asset-pick .vf-input { width: 100%; }
.vf-as-tile { color: inherit; text-decoration: none; }
.vf-as-tile:hover, .vf-as-tile:focus-visible { box-shadow: inset 0 0 0 1px var(--vf-line), 0 1px 0 var(--vf-line); }
.vf-as-tile.is-on { outline: 2px solid var(--vf-accent, #14284B); outline-offset: -2px; }
.vf-as-add { margin: 0 0 14px; }
.vf-as-add > summary { display: inline-flex; list-style: none; }
.vf-as-add > summary::-webkit-details-marker { display: none; }
.vf-as-form { margin-top: 12px; padding: 16px; border: 1px solid var(--vf-line); border-radius: 12px; background: var(--vf-sheet); }
.vf-as-grid { border: 0; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 14px; min-width: 0; }
.vf-as-grid legend, .vf-as-checks legend { grid-column: 1 / -1; padding: 0; margin: 6px 0 4px; }
.vf-as-grid p, .vf-as-notes { margin: 0 0 10px; min-width: 0; }
.vf-as-grid .vf-input, .vf-as-notes .vf-input { width: 100%; box-sizing: border-box; }
.vf-as-checks { border: 0; margin: 0 0 6px; padding: 0; min-width: 0; }
.vf-as-check { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--vf-line); }
.vf-as-check-name { font-weight: 600; font-size: .92rem; }
.vf-as-check .vf-input { width: 100%; box-sizing: border-box; min-width: 0; }
.vf-as-found { margin: 0 0 14px; }
.vf-as-found > summary { cursor: pointer; display: grid; gap: 2px; min-height: 44px; list-style: none; }
.vf-as-found > summary small { color: var(--vf-muted); font-size: .85rem; }
.vf-as-found-list { list-style: none; margin: 10px 0; padding: 0; }
.vf-as-found-list li, .vf-as-item summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vf-as-found-list li { padding: 8px 0; border-top: 1px solid var(--vf-line); flex-wrap: wrap; }
.vf-as-found-list li > span, .vf-as-main { display: grid; min-width: 0; }
.vf-as-found-list small, .vf-as-main small { color: var(--vf-muted); font-size: .82rem; overflow-wrap: anywhere; }
.vf-as-found-list form { display: flex; gap: 6px; }
.vf-as-backfill { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.vf-as-backfill small { color: var(--vf-muted); font-size: .82rem; flex: 1 1 260px; }
.vf-as-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.vf-as-filter input[type=search] { flex: 2 1 240px; min-width: 0; }
.vf-as-filter select { flex: 1 1 160px; min-width: 0; }
.vf-as-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vf-as-item { border: 1px solid var(--vf-line); border-radius: 12px; background: var(--vf-sheet); overflow: hidden; }
.vf-as-item > details > summary { list-style: none; cursor: pointer; padding: 12px 16px; min-height: 56px; box-sizing: border-box; }
.vf-as-item > details > summary::-webkit-details-marker { display: none; }
.vf-as-item > details > summary:hover { background: var(--vf-soft); }
.vf-as-main b { font-size: 1rem; overflow-wrap: anywhere; }
.vf-as-body { padding: 4px 16px 16px; border-top: 1px solid var(--vf-line); }
.vf-as-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 16px; margin: 12px 0; }
.vf-as-facts dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--vf-muted); font-weight: 700; }
.vf-as-facts dd { margin: 2px 0 0; font-size: .92rem; }
.vf-as-links { font-size: .9rem; margin: 0 0 10px; }
.vf-as-edit > summary { display: inline-flex; list-style: none; }
.vf-as-edit > summary::-webkit-details-marker { display: none; }
.vf-as-log { margin-top: 10px; }
.vf-as-log summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; font-size: .92rem; }
.vf-as-log ol { margin: 0; padding-left: 18px; font-size: .88rem; }
.vf-as-log li { margin: 0 0 4px; }
.vf-as-log time { color: var(--vf-muted); font-variant-numeric: tabular-nums; margin-right: 4px; }
.vf-as-log small { color: var(--vf-muted); }
.vf-as-del { color: var(--vf-fail, #A8231C); }
.vf-as-import { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vf-as-import .vf-sublabel, .vf-as-import p { flex-basis: 100%; margin: 0; }
@container vf (max-width: 720px) {
  .vf-as-item > details > summary { flex-direction: column; align-items: flex-start; }
  .vf-as-check { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .vf-as-check-name { grid-column: 1 / -1; }
}

/* ---------- Photo mark-up on phones (0.68.1): the photo never covers the tools ---------- */
.vf-markup { height: 100vh; height: 100dvh; bottom: auto; overflow: hidden; }
.vf-mk-stage { overflow: hidden; }
.vf-mk-stage canvas { display: block; }
.vf-mk-top, .vf-mk-tools, .vf-mk-caption, .vf-mk-cropbar { position: relative; z-index: 1; }
@media (max-width: 560px) {
  .vf-markup { gap: 6px; padding-left: 8px; padding-right: 8px; }
  .vf-mk-tools { gap: 6px; }
  .vf-mk-tools .vf-btn { min-height: 44px; padding: 6px 10px; font-size: 14px; gap: 5px; }
  .vf-mk-colours { gap: 6px; padding: 0 2px; }
  .vf-mk-colour { width: 30px; height: 30px; }
  .vf-mk-tip { font-size: 13px; }
}
@media (max-height: 720px) { .vf-mk-tip { display: none; } }

/* ---------- Sent: a box nobody can miss (0.68.1) ---------- */
.vf-done:focus { outline: none; }
.vf-receipt-banner { display: flex; align-items: center; gap: 14px; margin: -22px -22px 18px; padding: 20px 22px; border-radius: 7px 7px 0 0; background: var(--vf-pass, #1B6B45); color: #fff; }
.vf-receipt-banner > .vf-ico { flex: none; width: 52px; height: 52px; color: #fff; stroke-width: 2.4; }
.vf-receipt-banner b { display: block; font-family: var(--vf-f-display); font-size: 30px; line-height: 1.05; letter-spacing: -.01em; }
.vf-receipt-banner span { display: block; margin-top: 4px; font-size: 15px; opacity: .92; }
.vf-receipt.is-queued .vf-receipt-banner { background: var(--vf-brand, #1F2937); }
.vf-receipt { border-width: 2px; }
.vf-receipt-head h3 { font-size: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .vf-receipt-banner > .vf-ico { animation: vf-sent-pop .35s cubic-bezier(.2, .9, .3, 1.3) both; }
}
@keyframes vf-sent-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* Background glow in the company's own colours (0.69.0). The gold rgba() rules above stay for
   browsers without color-mix(). */
@supports (color: color-mix(in srgb, red 50%, transparent)) {
  html.vf-fx body::before { background:
    radial-gradient(40% 35% at 18% 12%, color-mix(in srgb, var(--vf-brand-accent) 42%, transparent), transparent 70%),
    radial-gradient(34% 30% at 84% 16%, color-mix(in srgb, color-mix(in srgb, var(--vf-brand-accent) 55%, #fff) 46%, transparent), transparent 70%),
    radial-gradient(44% 40% at 72% 84%, color-mix(in srgb, var(--vf-brand-accent) 34%, transparent), transparent 70%),
    radial-gradient(34% 30% at 20% 80%, color-mix(in srgb, var(--vf-brand) 10%, transparent), transparent 70%); }
  html.vf-fx .vff { background: radial-gradient(60% 90% at 80% 0%, color-mix(in srgb, var(--vf-brand-accent) 30%, transparent), transparent 70%), radial-gradient(50% 80% at 10% 100%, color-mix(in srgb, var(--vf-brand-accent) 18%, transparent), transparent 70%), var(--vf-brand-deep, #0D1B33); }
  .vf-hero, html.vf-fx .vf-hero { background: radial-gradient(70% 140% at 88% 0%, color-mix(in srgb, color-mix(in srgb, var(--vf-brand-accent) 25%, #fff) 55%, transparent), transparent 70%), radial-gradient(60% 130% at 45% 120%, rgba(255, 255, 255, .22), transparent 70%), var(--vf-brand-accent, #9AA8BD); }
}

/* "Set a reminder for the next one?" on the sent screen. */
.vf-repeat { margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--vf-line); border-left: 4px solid var(--vf-brand-accent, #9AA8BD); border-radius: 8px; background: var(--vf-soft, transparent); }
.vf-repeat h4 { margin: 0 0 6px; font-size: 1.05em; }
.vf-repeat p { margin: 0 0 12px; }
.vf-repeat .vf-repeat-msg { margin: 8px 0 0; font-weight: 600; }
.vf-repeat .vf-repeat-msg:empty { display: none; }
.vf-repeat.is-set { border-left-color: var(--vf-pass, #1B6B45); background: var(--vf-pass-bg, transparent); }
.vf-repeat .vf-btn { min-height: 48px; }
