/* Design tokens (docs/design/DESIGN.md). Every color and font in this
   stylesheet reads one of these. */
:root {
  /* Brand and surfaces */
  --vt-primary: #6a5acd;
  --vt-primary-hover: #5646b5;
  --vt-primary-soft: #efedfb;
  --vt-primary-line: #d4cfe8;
  --vt-background: #f8f7fd;
  --vt-surface: #fff;
  --vt-line: #e7e4f2;
  --vt-ink: #2a2745;
  --vt-muted: #6c6886;
  /* Client intake text stays near-black */
  --vt-intake-ink: #1b1b1f;
  --vt-intake-hint: #5c5c66;
  /* Accents */
  --vt-you: #c53030;
  --vt-you-soft: #fdf7f7;
  --vt-badge: #dc2626;
  --vt-progress: #2f8a4c;
  --vt-office: #b7791f;
  /* Feedback looks (DESIGN.md): errors, notices and attention */
  --vt-error-bg: #fbeceb;
  --vt-error: #8a3b34;
  --vt-error-line: #efc9c5;
  --vt-attention-bg: #faf0dd;
  /* Stage families: background / text */
  --vt-stage-intake-bg: #e6eefa;
  --vt-stage-intake: #3a6690;
  --vt-stage-prep-bg: #eeecf6;
  --vt-stage-prep: #5b5776;
  --vt-stage-filing-bg: #e3f3e8;
  --vt-stage-filing: #23703d;
  --vt-stage-amend-bg: #fdf1dc;
  --vt-stage-amend: #8a5a12;
  --vt-stage-stopped-bg: #fdecec;
  --vt-stage-stopped: #b42318;
  /* Phases (tab dots, stacked bars) */
  --vt-phase-available: #a39bd8;
  --vt-phase-preparation: #6a5acd;
  --vt-phase-client: #b7791f;
  --vt-phase-review: #0ea5e9;
  --vt-phase-filing: #5fb37a;
  --vt-phase-attention: #dc2626;
  --vt-phase-done: #23703d;
  --vt-phase-closed: #b9b4cc;
  /* Labels: dot / background / text / border */
  --vt-label-sky: #0ea5e9;
  --vt-label-sky-bg: #e0f2fe;
  --vt-label-sky-ink: #075985;
  --vt-label-sky-line: #bae6fd;
  --vt-label-amber: #f59e0b;
  --vt-label-amber-bg: #fef3c7;
  --vt-label-amber-ink: #92400e;
  --vt-label-amber-line: #fde68a;
  --vt-label-pink: #ec4899;
  --vt-label-pink-bg: #fce7f3;
  --vt-label-pink-ink: #9d174d;
  --vt-label-pink-line: #fbcfe8;
  --vt-label-green: #22c55e;
  --vt-label-green-bg: #dcfce7;
  --vt-label-green-ink: #166534;
  --vt-label-green-line: #bbf7d0;
  --vt-label-violet: #8b5cf6;
  --vt-label-violet-bg: #ede9fe;
  --vt-label-violet-ink: #5b21b6;
  --vt-label-violet-line: #ddd6fe;
  --vt-label-slate: #64748b;
  --vt-label-slate-bg: #f1f5f9;
  --vt-label-slate-ink: #334155;
  --vt-label-slate-line: #cbd5e1;
  /* Waiting time: under 3 days / 3–6 days / a week or more */
  --vt-age-fresh: #5fb37a;
  --vt-age-soon: #d69e2e;
  --vt-age-late: #dc2626;
  --vt-age-soon-ink: #8a5a12;
  --vt-age-late-ink: #b42318;
  /* Type and shape (Georgia headlines, decision D11) */
  --vt-serif: Georgia, "Times New Roman", serif;
  --vt-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --vt-radius: 12px;
  --vt-radius-sm: 8px;
  --vt-sidebar-width: 260px;
  --vt-tap: 44px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--vt-sans);
  color: var(--vt-ink);
  background: var(--vt-background);
  font-size: 16px;
  line-height: 1.5;
}
/* The restyled frames paint the page lavender; the body behind them must
   match, or the old canvas shows below the footer on short pages. */
body:has(.client-shell),
body:has(.app-shell) {
  background: var(--vt-background);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--vt-primary);
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--vt-primary);
  outline-offset: 1px;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -1.3px;
  font-weight: 600;
  margin-bottom: 14px;
}
h2 {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 17px;
}
p {
  color: #65747a;
}
strong {
  font-weight: 600;
}
small,
.small {
  font-size: 13px;
}
.muted {
  color: var(--vt-muted);
}
.block {
  display: block;
  margin-top: 12px;
}
.icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  vertical-align: middle;
}
.btn {
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: var(--vt-tap);
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 550;
  font-size: 15px;
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}
.btn.primary {
  background: var(--vt-primary);
  color: #fff;
  box-shadow: 0 1px 2px rgb(42 39 69 / 0.12);
}
.btn.primary:hover {
  background: var(--vt-primary-hover);
}
.btn.secondary {
  background: var(--vt-surface);
  border-color: var(--vt-primary-line);
  color: var(--vt-ink);
}
.btn.secondary:hover {
  background: var(--vt-background);
}
.btn.text {
  background: transparent;
  color: var(--vt-muted);
  padding: 10px 12px;
}
.btn.text:hover {
  background: var(--vt-primary-soft);
  color: var(--vt-ink);
}
.btn.inline,
.inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--vt-primary);
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  min-height: 30px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.inline .icon {
  width: 16px;
}
.full {
  width: 100%;
}
.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  background: white;
  padding: 10px;
  z-index: 100;
}
.skip:focus {
  top: 8px;
}
.brand-dot {
  color: #b29461;
}
.overline {
  display: block;
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: #82918f;
  margin-bottom: 13px;
}
.site-footer {
  padding: 28px max(32px, calc((100vw - 1280px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--vt-muted);
  font-size: 11px;
  background: var(--vt-background);
  border-top: 1px solid var(--vt-line);
  margin-bottom: 80px;
}
.landing {
  max-width: 1250px;
  margin: auto;
  padding: 67px 38px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 85px;
  min-height: calc(100vh - 237px);
}
.hero {
  padding-top: 31px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7a8d83;
  margin-bottom: 30px;
}
.eyebrow > span {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #6d9578;
}
.hero h1 {
  font-family: var(--vt-serif);
  font-size: 66px;
  font-weight: 400;
  line-height: 1.09;
  letter-spacing: -2.3px;
  margin-bottom: 25px;
}
.hero h1 em {
  color: #4e7463;
  font-weight: 400;
}
.hero-copy {
  font-size: 19px;
  line-height: 1.8;
  color: #758182;
  margin-bottom: 25px;
}
.trust-line {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #668178;
}
.trust-line .icon {
  width: 18px;
}
.welcome-panel {
  padding-top: 0;
  max-width: 495px;
}
.welcome-art {
  height: 176px;
  margin: 0 auto -12px;
  max-width: 470px;
}
.welcome-art svg {
  width: 100%;
  height: 100%;
}
.welcome-card {
  padding: 32px;
  background: #fff;
  border: 1px solid #e0e7e1;
  box-shadow: 0 12px 36px #38524708;
  border-radius: 16px;
}
.welcome-card h2 {
  font-size: 29px;
  margin-bottom: 26px;
  letter-spacing: -0.8px;
}
.entry-icon {
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f2f5f1;
  width: 41px;
  height: 45px;
  flex-shrink: 0;
  color: #6b8276;
}
.start-card .entry-icon {
  color: #dbe7dc;
  background: #ffffff12;
}
.start-card small {
  color: #bed0d1;
}
.start-card > .icon {
  color: #d8e3da;
}
.landing-bottom {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  margin-top: 45px;
  padding: 21px 0;
  font-size: 10px;
  letter-spacing: 0.3px;
  color: #98a19c;
}
.demo-bar {
  position: fixed;
  z-index: 20;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: 65px;
  background: #183d47;
  color: #e3eded;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 30px;
  gap: 18px;
  box-shadow: 0 -3px 15px #162c4210;
}
.demo-label {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.demo-label strong {
  font-size: 11px;
  font-weight: 500;
}
.demo-fiction {
  font-size: 10px;
  color: #91aaae;
  border-left: 1px solid #4d676d;
  padding-left: 12px;
  margin-left: 6px;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #9dcaaa;
  border-radius: 50%;
}
.demo-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.btn.demo {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 11px;
  background: #ffffff0d;
  border: 1px solid #ffffff16;
  color: #dbe7e7;
  border-radius: 6px;
}
.btn.demo:hover {
  background: #ffffff1c;
}
.btn.demo .icon {
  width: 14px;
  height: 14px;
}
.btn.demo.subtle {
  background: transparent;
  color: #a3babe;
  border-color: transparent;
}
.narrow {
  width: min(560px, 100%);
  padding: 48px 20px 55px;
  margin: auto;
  min-height: calc(100vh - 238px);
}
/* The 238px above assumed the old, taller header rule that has since been
   removed. The client bar is ~73px and the footer ~73px, so on client
   screens (the only place .narrow still renders — staff overrides this to 0
   via .app-main .narrow) the main column only needs to reserve that much to
   keep the footer at the bottom of a short page. */
.client-shell .narrow {
  min-height: calc(100vh - 147px);
}
.back-link {
  margin: 0 0 22px -12px;
}
.center-icon {
  width: 61px;
  height: 61px;
  border-radius: 18px;
  background: var(--vt-primary-soft);
  display: grid;
  place-items: center;
  margin: 0 auto 23px;
  color: var(--vt-primary);
}
.center-icon .icon {
  height: 27px;
  width: 27px;
}
.center-icon.success {
  border-radius: 50%;
  background: var(--vt-stage-filing-bg);
  color: var(--vt-progress);
}
.page-intro {
  margin-bottom: 29px;
}
.page-intro.centered {
  text-align: center;
}
.narrow h1 {
  font-size: 36px;
  letter-spacing: -1px;
}
.page-intro p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 0;
}
.panel {
  background: white;
  border: 1px solid var(--vt-line);
  border-radius: 13px;
  box-shadow: 0 2px 8px #29453603;
}
.access-panel {
  padding: 28px;
}
.field {
  display: block;
  margin-bottom: 22px;
}
.field > span {
  display: block;
  font-size: 14px;
  font-weight: 550;
  margin-bottom: 9px;
  color: #3b5158;
}
input:not([type="radio"]):not([type="checkbox"]),
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--vt-primary-line);
  border-radius: 7px;
  color: var(--vt-ink);
  background: #fff;
  font-size: 16px;
  min-height: var(--vt-tap);
}
input::placeholder,
textarea::placeholder {
  color: #a6afaf;
  font-size: 14px;
}
.field-note {
  font-size: 12px;
  line-height: 1.65;
  color: #8b9797;
  margin-top: -7px;
  margin-bottom: 23px;
}
.resend-row {
  font-size: 13px;
  color: var(--vt-intake-hint);
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}
.support-note {
  margin: 26px 10px;
  display: flex;
  gap: 13px;
  color: var(--vt-intake-hint);
}
.support-note strong {
  font-size: 13px;
  color: var(--vt-intake-ink);
}
.support-note p {
  font-size: 12px;
  margin: 4px 0;
}
.support-note .inline {
  font-size: 12px;
}
.reference-card {
  background: var(--vt-primary);
  color: #fff;
  border-radius: var(--vt-radius);
  padding: 27px;
  box-shadow: 0 12px 25px color-mix(in srgb, var(--vt-primary) 20%, transparent);
  position: relative;
  overflow: hidden;
}
.reference-card:after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 50%;
  right: -70px;
  top: -80px;
}
.reference-card > span {
  font-weight: 650;
  font-size: 21px;
}
.reference-card > span small {
  font-size: 11px;
  letter-spacing: 1px;
  margin-left: 9px;
  color: #fff;
}
.reference-card > p {
  font-size: 11px;
  letter-spacing: 2px;
  color: #fff;
  margin: 32px 0 9px;
}
.reference-card > strong {
  font-size: 27px;
  letter-spacing: 3px;
  font-weight: 500;
}
.reference-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 29px;
  font-size: 11px;
  color: #fff;
  border-top: 1px solid rgb(255 255 255 / 0.15);
  padding-top: 16px;
}
.card-tools {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 22px 0;
}
.card-tools .btn {
  font-size: 13px;
}
.footnote {
  text-align: center;
  font-size: 11px;
  color: var(--vt-intake-hint);
  margin-top: 21px;
  line-height: 1.9;
}
.workspace {
  display: grid;
  grid-template-columns: 280px 1fr;
  max-width: 1220px;
  margin: auto;
  min-height: calc(100vh - 238px);
}
.intake-sidebar,
.volunteer-sidebar {
  padding: 49px 35px 35px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.intake-sidebar {
  border-right: 1px solid var(--vt-line);
}
.intake-sidebar h2,
.volunteer-sidebar h2 {
  font-family: var(--vt-serif);
  font-size: 29px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 35px;
  letter-spacing: -0.5px;
}
.sidebar-help {
  padding-top: 25px;
  border-top: 1px solid var(--vt-line);
  margin-top: 50px;
}
.sidebar-help > .icon {
  color: var(--vt-primary);
  width: 19px;
}
.sidebar-help h3 {
  font-size: 13px;
  margin: 13px 0 5px;
}
.sidebar-help p {
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 10px;
}
.sidebar-help .inline {
  font-size: 12px;
}
.form-workspace {
  padding: 34px 52px 42px;
  max-width: 900px;
}
.application-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.6px;
  color: var(--vt-intake-hint);
  margin-bottom: 30px;
}
.save-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  letter-spacing: 0;
}
.save-status .icon {
  width: 12px;
  height: 12px;
}
.form-workspace .page-intro {
  margin-bottom: 29px;
}
.form-workspace h1 {
  font-size: 35px;
}
.form-workspace .page-intro p {
  font-size: 16px;
}
.info-note {
  display: flex;
  gap: 11px;
  background: #eef3ef;
  border: 1px solid #e2eae3;
  padding: 17px;
  border-radius: 8px;
  color: #7b9588;
  margin-bottom: 23px;
}
.info-note p {
  font-size: 12px;
  line-height: 1.75;
  color: #7c8d82;
  margin: 0;
}
.info-note strong {
  display: block;
  color: #486759;
  font-size: 13px;
  margin-bottom: 4px;
}
.info-note .btn {
  margin-top: 15px;
}
.info-note small {
  font-size: 10px;
  color: #8c9a92;
}
/* The intake form's own info notes read the client tokens; the same
   component in a shared dialog (help, sample data) keeps its neutral look. */
.client-shell .info-note {
  background: var(--vt-primary-soft);
  border-color: var(--vt-primary-line);
  color: var(--vt-intake-hint);
}
.client-shell .info-note p {
  color: var(--vt-intake-hint);
}
.client-shell .info-note strong {
  color: var(--vt-intake-ink);
}
.client-shell .info-note small {
  color: var(--vt-intake-hint);
}
.form-actions {
  border-top: 1px solid var(--vt-line);
  padding-top: 23px;
  margin-top: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.form-actions > div {
  display: flex;
  gap: 0;
}
.form-actions .btn.text {
  font-size: 13px;
}
/* 9.1's line beside its disabled Continue (gate-review-and-redesign-summary). */
.form-blocked {
  margin: 0 0 0 auto;
  font-size: 14px;
  color: var(--vt-intake-hint);
  text-align: right;
}
.notice {
  display: flex;
  gap: 13px;
  padding: 23px;
  border-radius: 10px;
  margin: 25px 0;
}
.notice.amber {
  background: #faf2e4;
  border: 1px solid #ebd8b5;
  color: #a58344;
}
/* Every error shares one look: the case page's in-place error, the dialogs'
   and the drawers'. */
.notice.error {
  background: var(--vt-error-bg);
  border: 1px solid var(--vt-error-line);
  color: var(--vt-error);
}
.notice.error h3,
.notice.error p {
  color: var(--vt-error);
}
.notice h3 {
  margin-bottom: 8px;
  color: #886428;
}
.notice p {
  font-size: 13px;
  color: #98815a;
  line-height: 1.8;
}
/* The intake form's own amber notice reads the client tokens; the same
   component on staff screens (problemNotice, corrections notices) keeps its
   existing look. */
.client-shell .notice.amber {
  background: var(--vt-stage-amend-bg);
  border-color: var(--vt-stage-amend);
  color: var(--vt-stage-amend);
}
.client-shell .notice.amber h3 {
  color: var(--vt-stage-amend);
}
.client-shell .notice.amber p {
  color: var(--vt-stage-amend);
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 21px;
}
.section-head h2,
.section-head h3 {
  margin: 0;
}
.detail-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  font-size: 13px;
}
.detail-row > span {
  color: #89998f;
  flex-shrink: 0;
}
.detail-row > strong {
  font-weight: 500;
  text-align: right;
}
.checkbox-row {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 14px;
  color: #51685d;
  margin: 20px 0;
}
.checkbox-row input {
  height: 17px;
  width: 17px;
  accent-color: var(--vt-primary);
  flex-shrink: 0;
}
.checkbox-row + .field-note {
  margin-top: -9px;
  font-size: 11px;
}
.client-shell .checkbox-row {
  color: var(--vt-intake-ink);
}
.client-shell .checkbox-row input {
  accent-color: var(--vt-primary);
}
.error {
  background: var(--vt-stage-stopped-bg);
  color: var(--vt-stage-stopped);
  padding: 14px;
  border-radius: 7px;
  font-size: 13px;
  margin-top: 17px;
}
.dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 46px 30px 50px;
  min-height: calc(100vh - 238px);
}
.dashboard-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 35px;
}
.dashboard-intro h1 {
  font-family: var(--vt-serif);
  font-size: 45px;
  font-weight: 400;
}
.dashboard-intro p {
  font-size: 15px;
}
.id-pill {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius-sm);
  padding: 15px 20px;
  background: var(--vt-surface);
}
.id-pill > .icon {
  color: var(--vt-primary);
}
.id-pill small {
  display: block;
  color: var(--vt-intake-hint);
  font-size: 8px;
  letter-spacing: 1.3px;
  margin-bottom: 4px;
}
.id-pill strong {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
}
.progress-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 26px;
}
.status-panel {
  padding: 27px 30px;
}
.section-head h2 {
  font-size: 19px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
/* Stage families (docs/design/DESIGN.md). The old tone names stay as aliases
   while the office screens still write them directly. */
.badge.intake,
.badge.blue {
  background: var(--vt-stage-intake-bg);
  color: var(--vt-stage-intake);
}
.badge.prep,
.badge.teal {
  background: var(--vt-stage-prep-bg);
  color: var(--vt-stage-prep);
}
.badge.amend,
.badge.amber {
  background: var(--vt-stage-amend-bg);
  color: var(--vt-stage-amend);
}
.badge.filing,
.badge.green {
  background: var(--vt-stage-filing-bg);
  color: var(--vt-stage-filing);
}
.badge.neutral {
  background: var(--vt-primary-soft);
  color: var(--vt-muted);
}
.progress-steps {
  display: flex;
  padding: 15px 0 23px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--vt-line);
}
.progress-steps > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  color: var(--vt-intake-hint);
}
.progress-steps > div:after {
  content: "";
  height: 1px;
  background: var(--vt-line);
  position: absolute;
  width: calc(100% - 40px);
  top: 17px;
  left: calc(50% + 20px);
}
.progress-steps > div:last-child:after {
  display: none;
}
.progress-steps > div > span {
  height: 35px;
  width: 35px;
  border: 1px solid var(--vt-line);
  background: var(--vt-surface);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.progress-steps small {
  font-size: 11px;
}
.progress-steps .current {
  color: var(--vt-intake-ink);
}
.progress-steps .current > span {
  background: var(--vt-primary);
  border-color: var(--vt-primary);
  color: #fff;
}
.progress-steps .done > span {
  background: var(--vt-progress);
  color: #fff;
  border-color: var(--vt-progress);
}
.progress-steps .icon {
  height: 15px;
  width: 15px;
}
.status-explanation {
  font-size: 13px;
  color: var(--vt-intake-hint);
  line-height: 1.75;
  margin: 0;
}
.action-card {
  margin-top: 22px;
  padding: 27px 30px;
  background: var(--vt-stage-amend-bg);
  border: 1px solid var(--vt-stage-amend);
  border-radius: var(--vt-radius);
}
.action-label {
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 1.4px;
  font-size: 9px;
  color: var(--vt-stage-amend);
  margin-bottom: 18px;
}
.action-label .icon {
  width: 16px;
}
.action-card h2 {
  font-size: 25px;
  color: var(--vt-stage-amend);
  margin-bottom: 11px;
}
.action-card p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--vt-stage-amend);
  max-width: 490px;
}
.action-card small {
  display: block;
  color: var(--vt-stage-amend);
  font-size: 10px;
  margin-top: 15px;
}
.received-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border: 1px solid #dce8da;
  background: #edf5ea;
  border-radius: 12px;
  padding: 27px 30px;
  margin-top: 22px;
}
.received-card h2 {
  font-size: 24px;
  margin-bottom: 8px;
}
.received-card p {
  font-size: 13px;
  color: #7f937d;
}
.success-icon {
  background: #dcead7;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #68965b;
  flex-shrink: 0;
}
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  background: #ffffff80;
  border: 1px solid #dce8d8;
  padding: 8px;
  border-radius: 6px;
}
.file-chip .icon {
  width: 15px;
}
.next-card {
  display: flex;
  gap: 17px;
  padding: 25px 30px;
  background: var(--vt-primary-soft);
  border: 1px solid var(--vt-primary-line);
  border-radius: var(--vt-radius);
  margin-top: 22px;
  color: var(--vt-intake-hint);
}
.sent-panel {
  padding: 27px 30px;
  margin-top: 22px;
}
.next-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--vt-intake-ink);
}
.next-card p {
  font-size: 12px;
  margin: 0;
  color: var(--vt-intake-hint);
}
.summary-panel {
  padding: 25px;
}
.summary-panel h3 {
  font-size: 17px;
  margin-bottom: 20px;
}
.summary-panel .detail-row {
  font-size: 12px;
  border-bottom: 1px solid var(--vt-line);
}
.gentle-note {
  margin-top: 22px;
  font-size: 10px;
  line-height: 1.8;
  color: var(--vt-intake-hint);
  display: flex;
  align-items: start;
  gap: 8px;
}
.gentle-note .icon {
  width: 14px;
  height: 14px;
  margin-top: 3px;
}
.help-card {
  border: 1px solid var(--vt-line);
  padding: 25px;
  background: var(--vt-primary-soft);
  border-radius: var(--vt-radius);
  margin-top: 22px;
}
.help-card-icon {
  background: var(--vt-surface);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--vt-primary);
  margin-bottom: 20px;
}
.help-card h3 {
  font-family: var(--vt-serif);
  font-size: 25px;
  font-weight: 400;
  margin-bottom: 9px;
  color: var(--vt-intake-ink);
}
.help-card p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--vt-intake-hint);
}
.help-card .btn {
  font-size: 12px;
  width: 100%;
  min-height: 42px;
}
.history-panel {
  padding: 26px 30px;
  margin-top: 22px;
}
.history-panel .section-head {
  margin-bottom: 25px;
}
.history-panel .small {
  font-size: 10px;
}
.timeline-item {
  display: flex;
  gap: 14px;
  position: relative;
  padding-bottom: 22px;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-dot {
  margin-top: 5px;
  height: 8px;
  width: 8px;
  border: 2px solid #b4c8b1;
  border-radius: 50%;
  flex-shrink: 0;
  background: #fff;
  z-index: 1;
}
.timeline-item:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 15px;
  bottom: 0;
  width: 1px;
  background: #e5ece1;
}
.timeline-item:last-child:before {
  display: none;
}
.timeline-item strong {
  font-size: 13px;
  display: block;
  font-weight: 500;
}
.timeline-item p {
  font-size: 11px;
  line-height: 1.75;
  margin: 4px 0 4px;
  color: #8e9c89;
}
.timeline-item small {
  font-size: 9px;
  color: #a3afa0;
}
/* The client history timeline reads the client tokens; the staff timeline
   (case history) keeps its existing look. */
.client-shell .timeline-dot {
  border-color: var(--vt-primary);
  background: var(--vt-surface);
}
.client-shell .timeline-item:before {
  background: var(--vt-line);
}
.client-shell .timeline-item p {
  color: var(--vt-intake-hint);
}
.client-shell .timeline-item small {
  color: var(--vt-intake-hint);
}
.volunteer-layout {
  max-width: 1340px;
  margin: auto;
  display: grid;
  grid-template-columns: 245px 1fr;
  min-height: calc(100vh - 238px);
}
.volunteer-nav {
  padding: 14px 13px;
  border-radius: 7px;
  background: #eaf0e8;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: #4e6e48;
}
.volunteer-nav .icon {
  height: 18px;
  width: 18px;
}
.volunteer-nav > span {
  margin-left: auto;
  background: #dae5d5;
  border-radius: 4px;
  padding: 0 7px;
  font-size: 10px;
}
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  height: 37px;
  width: 37px;
  background: #e6e9db;
  color: #8b966e;
  font-size: 10px;
  flex-shrink: 0;
}
.volunteer-main {
  padding: 43px 40px 45px;
}
.volunteer-main .page-intro h1 {
  font-size: 35px;
}
.volunteer-main .page-intro p {
  font-size: 14px;
}
.case-row {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 20px;
  border: 1px solid #93afa0;
  background: #f1f5ed;
  border-radius: 8px;
  margin-bottom: 23px;
}
.avatar.soft {
  background: #dde9d4;
  color: #6f8d58;
  height: 39px;
  width: 39px;
}
.case-row strong {
  font-size: 14px;
}
.case-row small {
  display: block;
  font-size: 10px;
  color: #95a284;
  margin-top: 5px;
}
.case-row .badge {
  margin-left: auto;
}
.case-age {
  font-size: 11px;
  color: #9aa38c;
  margin: 0 8px;
}
.case-row > .icon {
  width: 15px;
  color: #93a27f;
}
.case-detail {
  padding: 25px;
}
.case-detail .section-head > .btn {
  font-size: 12px;
  min-height: 42px;
}
.case-detail .overline {
  font-size: 8px;
  margin-bottom: 7px;
}
.case-detail .section-head h2 {
  font-size: 24px;
}
.document-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--vt-line);
}
.document-row > .icon {
  color: var(--vt-intake-hint);
  width: 18px;
}
.document-row > div {
  min-width: 0;
}
.document-row strong {
  display: block;
  font-size: 10px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.document-row small {
  display: block;
  font-size: 9px;
  color: var(--vt-intake-hint);
  margin-top: 5px;
}
.document-check {
  margin-left: auto;
  color: var(--vt-progress);
}
.document-check .icon {
  width: 14px;
  height: 14px;
}
.document-check.pending {
  color: var(--vt-stage-amend);
}
.request-summary {
  padding: 16px;
  background: #f8f4e7;
  border: 1px solid #ebe3c6;
  border-radius: 7px;
  margin-top: 16px;
}
.request-summary strong {
  display: block;
  font-size: 12px;
  color: #837741;
}
.request-summary p {
  font-size: 11px;
  color: #a39973;
  line-height: 1.7;
  margin: 7px 0;
}
.request-summary small {
  font-size: 9px;
  color: #aaa17c;
}
.empty-state {
  text-align: center;
  padding: 50px 35px;
}
.empty-state > .icon {
  height: 44px;
  width: 44px;
  color: var(--vt-primary-line);
  margin-bottom: 20px;
}
.empty-state h2 {
  font-size: 24px;
}
.empty-state p {
  font-size: 14px;
  color: var(--vt-muted);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgb(42 39 69 / 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 24px;
  overflow: auto;
}
.modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--vt-surface);
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius);
  color: var(--vt-ink);
  padding: 36px;
  box-shadow: 0 22px 80px #152c3230;
}
.modal h2 {
  font-family: var(--vt-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.25;
  margin: 16px 0;
}
.modal > p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--vt-muted);
}
.modal .field-note {
  font-size: 11px;
  margin-top: 15px;
  margin-bottom: 0;
}
.modal .overline {
  color: var(--vt-primary);
}
.close-btn {
  position: absolute;
  right: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  background: #f2f5ee;
  border-radius: 50%;
  color: var(--vt-muted);
}
.close-btn .icon {
  height: 16px;
  width: 16px;
}
.contact-option {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 21px 0;
  border-bottom: 1px solid var(--vt-line);
}
.contact-option > .icon {
  color: var(--vt-primary);
}
.contact-option strong {
  font-size: 14px;
}
.contact-option small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--vt-muted);
}
.contact-option + .info-note {
  margin-top: 24px;
  margin-bottom: 0;
}
.print-card {
  padding: 25px;
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius-sm);
  margin: 20px 0;
  background: var(--vt-background);
}
.print-card strong {
  display: block;
  font-size: 13px;
}
.print-card > span {
  display: block;
  letter-spacing: 1px;
  font-size: 9px;
  color: var(--vt-intake-hint);
  margin-top: 30px;
}
.print-card b {
  font-size: 24px;
  display: block;
  margin: 10px 0;
  letter-spacing: 2px;
  font-weight: 500;
}
.print-card p {
  font-size: 10px;
  color: var(--vt-intake-hint);
  margin-top: 20px;
}
.upload-zone {
  border: 1px dashed var(--vt-primary-line);
  border-radius: var(--vt-radius);
  background: var(--vt-primary-soft);
  text-align: center;
  padding: 30px 15px;
  margin: 22px 0;
}
.upload-zone > .icon {
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto 16px;
  color: var(--vt-primary);
}
.upload-zone strong {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.upload-zone > span {
  display: block;
  font-size: 11px;
  color: var(--vt-intake-hint);
  margin: 8px 0 18px;
}
.upload-zone .btn {
  font-size: 12px;
  min-height: 38px;
}
.upload-zone.has-file {
  border-style: solid;
  background: var(--vt-primary-soft);
}
.modal .checkbox-row.small {
  font-size: 11px;
  color: #9ba889;
}
/* The toast (design D4): bottom centre for clients, bottom right for staff,
   lifted above Add a case's bar. Hidden means out of the Tab order. */
.toast {
  position: fixed;
  bottom: calc(24px + var(--toast-lift, 0px));
  left: 50%;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: min(440px, calc(100vw - 32px));
  padding: 6px 6px 6px 18px;
  border-left: 4px solid var(--toast-edge, #6a5acd);
  border-radius: 10px;
  background: #fff;
  color: var(--vt-ink);
  box-shadow: 0 12px 32px rgb(42 39 69 / 0.18);
  font-size: 15px;
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s, transform 0.2s, visibility 0s linear 0.2s;
}
.toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.2s, transform 0.2s, visibility 0s;
}
.toast.toast-staff { left: auto; right: 24px; transform: translateY(12px); }
.toast.toast-staff.visible { transform: none; }
.toast[data-kind="success"] { --toast-edge: #2f8a4c; }
.toast[data-kind="info"] { --toast-edge: #6a5acd; }
.toast[data-kind="warning"] { --toast-edge: #a07c32; }
.toast .toast-icon-slot { display: flex; color: var(--toast-edge); }
.toast .toast-icon { width: 20px; height: 20px; }
/* The live region stays in the accessibility tree while the host is hidden
   (it is empty once the fade is over), so a toast's words are announced. */
.toast .toast-text { flex: 1; padding: 8px 0; visibility: visible; }
/* ...but never under the pointer once the toast is hidden. */
.toast:not(.visible) .toast-text { pointer-events: none; }
.toast .toast-dismiss {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6c6886;
  cursor: pointer;
}
.toast .toast-dismiss:hover,
.toast .toast-dismiss:focus-visible { background: var(--vt-primary-soft); }
.exception-banner,
.storage-banner {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  background: #faf1d8;
  padding: 10px 20px;
  color: #8b7744;
  font-size: 12px;
}
.exception-banner .icon {
  width: 16px;
}
.exception-banner .inline {
  font-size: 12px;
}
@media (min-width: 1500px) {
  .landing {
    padding-top: 100px;
  }
  .hero h1 {
    font-size: 74px;
  }
  .welcome-panel {
    padding-top: 25px;
  }
}
@media (max-width: 1150px) {
  .landing {
    gap: 35px;
    padding: 45px 35px 0;
  }
  .hero h1 {
    font-size: 57px;
  }
  .welcome-card {
    padding: 25px;
  }
  .demo-fiction {
    display: none;
  }
  .demo-bar {
    padding: 10px 16px;
    gap: 8px;
  }
  .btn.demo {
    padding: 7px 9px;
    font-size: 10px;
  }
  .workspace {
    grid-template-columns: 235px 1fr;
  }
  .intake-sidebar {
    padding-left: 25px;
  }
  .form-workspace {
    padding: 30px;
  }
  .progress-grid {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .volunteer-layout {
    grid-template-columns: 210px 1fr;
  }
  .volunteer-main {
    padding: 35px 25px;
  }
  .case-detail .section-head {
    align-items: flex-start;
  }
}
@media (max-width: 800px) {
  .landing {
    grid-template-columns: 1fr;
    max-width: 620px;
    padding: 25px 25px 0;
  }
  .hero {
    padding-top: 20px;
  }
  .hero h1 {
    font-size: 57px;
  }
  .hero-copy {
    font-size: 17px;
  }
  .desktop-only {
    display: none;
  }
  .welcome-panel {
    max-width: none;
    margin-top: 10px;
  }
  .welcome-art {
    height: 150px;
  }
  .landing-bottom {
    font-size: 9px;
    gap: 25px;
    margin-top: 25px;
  }
  .welcome-card {
    padding: 25px;
  }
  .welcome-card h2 {
    font-size: 27px;
  }
  .hero-copy br {
    display: none;
  }
  .hero-copy {
    max-width: 430px;
  }
  .hero-copy {
    margin-bottom: 19px;
  }
  .eyebrow {
    margin-bottom: 20px;
  }
  .site-footer {
    padding: 20px;
    font-size: 9px;
    margin-bottom: 116px;
  }
  .demo-bar {
    display: block;
    padding: 8px 12px;
  }
  .demo-label {
    margin-bottom: 7px;
    font-size: 10px;
  }
  .demo-actions {
    gap: 5px;
  }
  .demo-actions .btn {
    flex: 1;
    font-size: 9px;
    white-space: nowrap;
    padding: 6px 8px;
  }
  .demo-actions .subtle {
    flex: unset;
  }
  .demo-label strong {
    font-size: 10px;
  }
  .demo-fiction {
    display: block;
    font-size: 9px;
  }
  .workspace {
    display: block;
  }
  .intake-sidebar {
    padding: 24px 25px 8px;
    border: 0;
    display: block;
  }
  .sidebar-top > .overline,
  .sidebar-top > h2,
  .intake-sidebar .sidebar-help {
    display: none;
  }
  .form-workspace {
    padding: 22px 25px 30px;
    max-width: none;
  }
  .application-meta {
    margin-bottom: 25px;
  }
  .form-workspace h1 {
    font-size: 31px;
  }
  .form-workspace .page-intro p {
    font-size: 15px;
  }
  .field > span {
    font-size: 13px;
  }
  .form-actions > .btn {
    font-size: 12px;
    padding: 11px 15px;
  }
  .form-actions .btn.text {
    padding: 9px;
    font-size: 11px;
  }
  .form-blocked {
    font-size: 12px;
  }
  .dashboard {
    padding: 30px 22px;
  }
  .dashboard-intro {
    display: block;
  }
  .dashboard-intro h1 {
    font-size: 38px;
  }
  .id-pill {
    margin-top: 20px;
    padding: 12px 15px;
    display: inline-flex;
  }
  .progress-grid {
    display: block;
  }
  .right-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 23px;
  }
  .help-card {
    margin-top: 0;
  }
  .status-panel,
  .history-panel {
    padding: 23px;
  }
  .action-card,
  .received-card,
  .next-card {
    padding: 23px;
  }
  .section-head h2 {
    font-size: 17px;
  }
  .badge {
    font-size: 9px;
  }
  .history-panel .section-head .small {
    display: none;
  }
  .volunteer-layout {
    display: block;
  }
  .volunteer-main {
    padding: 30px 22px;
  }
  .case-row {
    padding: 14px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .case-row .badge {
    margin-left: auto;
  }
  .case-age,
  .case-row > .icon {
    display: none;
  }
  .case-detail {
    padding: 20px;
  }
  .case-detail .section-head h2 {
    font-size: 21px;
  }
  .case-detail .section-head > .btn {
    font-size: 10px;
    padding: 8px 11px;
  }
  .narrow {
    padding: 28px 22px;
  }
  .narrow h1 {
    font-size: 32px;
  }
  .page-intro p {
    font-size: 15px;
  }
  .modal {
    padding: 30px 24px;
  }
  .exception-banner {
    flex-wrap: wrap;
    font-size: 10px;
  }
  .exception-banner .inline {
    font-size: 10px;
  }
}
@media (max-width: 450px) {
  .hero h1 {
    font-size: 50px;
  }
  .hero {
    padding-top: 12px;
  }
  .hero-copy {
    font-size: 16px;
  }
  .welcome-art {
    height: 130px;
  }
  .welcome-card {
    padding: 21px;
  }
  .welcome-card .overline {
    font-size: 8px;
  }
  .entry-icon {
    height: 36px;
    width: 32px;
  }
  .hero .eyebrow {
    font-size: 8px;
  }
  .landing {
    padding-left: 22px;
    padding-right: 22px;
  }
  .landing-bottom {
    font-size: 8px;
  }
  .right-column {
    grid-template-columns: 1fr;
  }
  .reference-card > strong {
    font-size: 20px;
    letter-spacing: 2px;
  }
  .reference-bottom {
    font-size: 11px;
    gap: 10px;
  }
  .reference-card {
    padding: 23px;
  }
  .reference-card > span small {
    font-size: 11px;
  }
  .card-tools .btn {
    font-size: 11px;
    padding: 10px 15px;
  }
  .access-panel {
    padding: 22px;
  }
  .section-head {
    gap: 8px;
    flex-wrap: wrap;
  }
  .progress-steps small {
    font-size: 10px;
  }
  .action-card h2 {
    font-size: 22px;
  }
  .received-card {
    gap: 12px;
  }
  .received-card h2 {
    font-size: 23px;
  }
  .file-chip {
    font-size: 9px;
  }
  .site-footer {
    font-size: 8px;
  }
  .demo-actions .btn {
    font-size: 8px;
    gap: 5px;
    padding: 6px;
  }
  .demo-actions .btn .icon {
    width: 11px;
    height: 11px;
  }
  .demo-actions .btn.subtle {
    flex: 1;
  }
  .demo-actions {
    flex-wrap: nowrap;
  }
  .demo-bar {
    padding: 8px;
  }
  .demo-label {
    gap: 6px;
  }
  .demo-fiction {
    font-size: 8px;
  }
  .detail-row {
    font-size: 11px;
  }
  .modal-backdrop {
    padding: 15px;
  }
  .modal h2 {
    font-size: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  body {
    background: white;
  }
  #app > *:not(.modal-backdrop) {
    display: none;
  }
  .modal-backdrop {
    position: static;
    background: none;
    padding: 0;
    display: block;
    backdrop-filter: none;
  }
  .modal {
    box-shadow: none;
    border: 0;
    max-width: 100%;
    padding: 0;
  }
  .modal > *:not(.print-card) {
    display: none;
  }
  .print-card {
    margin: 20mm;
    width: 90mm;
    break-inside: avoid;
  }
}

/* Readability and compact-device refinements. */
.form-workspace .field > span {
  font-size: 16px;
}
.form-workspace input:not([type="radio"]):not([type="checkbox"]),
.form-workspace select {
  font-size: 18px;
}
.status-explanation {
  font-size: 15px;
  color: var(--vt-intake-hint);
}
.action-card p {
  font-size: 17px;
  color: var(--vt-stage-amend);
}
.timeline-item p {
  font-size: 12px;
  color: #75876c;
}
.client-shell .timeline-item p {
  font-size: 12px;
  color: var(--vt-intake-hint);
}
.summary-panel .detail-row {
  font-size: 13px;
}
.help-card p {
  font-size: 14px;
  color: var(--vt-intake-hint);
}
@media (max-width: 450px) {
  .demo-actions {
    flex-wrap: wrap;
  }
  .demo-actions .btn,
  .demo-actions .btn.subtle {
    flex: 1 1 44%;
    font-size: 10px;
    min-height: 31px;
  }
  .site-footer {
    margin-bottom: 160px;
  }
  .hero-copy br {
    display: initial;
  }
  .form-workspace .field > span {
    font-size: 15px;
  }
}

/* ------------------------------------------------------------------ */
/* ViTally client screens (Task 6). The prototype's fixed bottom bar is
   gone, so the mobile spacing it reserved is released here, and the new
   pieces reuse the existing tokens rather than introducing a palette. */
/* ------------------------------------------------------------------ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.connection-notice,
.problem-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 30px;
  font-size: 13px;
  border-bottom: 1px solid var(--vt-line);
}
.connection-notice {
  background: var(--vt-attention-bg);
  color: var(--vt-stage-amend);
}
.problem-banner {
  background: var(--vt-error-bg);
  color: var(--vt-error);
}
.connection-notice .icon,
.problem-banner .icon {
  flex: none;
  width: 18px;
  height: 18px;
}
.problem-banner .btn.inline {
  margin-left: auto;
  color: inherit;
}
.lookup-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.lookup-form .field {
  flex: 1 1 220px;
  margin: 0;
}
.application-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 22px;
}
.application-row {
  display: grid;
  grid-template-columns: minmax(120px, auto) auto 1fr 20px;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 15px 17px;
  background: var(--vt-surface);
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius-sm);
  color: inherit;
}
.application-row:hover {
  border-color: var(--vt-primary-line);
}
.application-row.static {
  cursor: default;
}
.application-reference {
  font-family: var(--vt-serif);
  font-size: 16px;
  letter-spacing: 0.4px;
}
.application-when {
  font-size: 12px;
  color: var(--vt-intake-hint);
}
.application-row > .icon {
  width: 18px;
  height: 18px;
  color: var(--vt-primary);
}
.start-row {
  border-top: 1px solid var(--vt-line);
  padding-top: 20px;
}
.start-row .field-note {
  text-align: center;
  margin-top: 12px;
}
.cooldown {
  display: block;
  width: 100%;
  font-size: 12px;
  color: var(--vt-intake-hint);
}
.save-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--vt-intake-hint);
}
.save-chip .icon {
  width: 14px;
  height: 14px;
}
.save-chip.unsaved {
  color: var(--vt-stage-amend);
}
.save-chip.failed {
  color: var(--vt-error);
  background: var(--vt-error-bg);
  border-radius: 7px;
  padding: 4px 10px;
  flex-wrap: wrap;
}
.save-chip.saved {
  color: var(--vt-stage-filing);
}
.fiction-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 11px 13px;
  margin-bottom: 20px;
  border: 1px dashed var(--vt-line);
  border-radius: var(--vt-radius-sm);
  background: var(--vt-background);
}
.fiction-tools .demo-fiction {
  border-left: 0;
  padding-left: 0;
  margin: 0 auto 0 0;
  color: var(--vt-intake-hint);
}
.fiction-tools .btn.demo {
  min-height: var(--vt-tap);
  background: var(--vt-surface);
  border-color: var(--vt-line);
  color: var(--vt-intake-ink);
}
.fiction-tools .btn.demo:hover {
  background: var(--vt-primary-soft);
}
.fiction-tools .btn.demo.subtle {
  border-color: transparent;
  color: var(--vt-intake-hint);
}
.conflict-panel {
  border-color: var(--vt-stage-amend);
  background: var(--vt-stage-amend-bg);
  margin-bottom: 20px;
  padding: 24px;
}
.conflict-panel > p {
  color: var(--vt-intake-ink);
}
.conflict-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 14px 0;
  color: var(--vt-intake-ink);
}
.conflict-table th,
.conflict-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--vt-line);
  vertical-align: top;
}
.conflict-table thead th {
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--vt-intake-hint);
}
.conflict-choices {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.client-shell .conflict-choices {
  margin-bottom: 16px;
}
.setup-panel pre {
  background: #f2f5f2;
  border: 1px solid var(--vt-line);
  border-radius: 7px;
  padding: 13px 15px;
  overflow-x: auto;
  font-size: 13px;
}
.setup-panel code {
  font-size: 13px;
}
/* Finish your setup: an uncleared staff member's screen. */
.setup-screen {
  padding: 28px;
  color: var(--vt-ink);
}
.setup-screen ul,
.setup-screen p {
  margin: 0 0 16px;
  line-height: 1.75;
}
.setup-screen ul {
  padding-left: 20px;
}
.setup-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 6px;
}
.review-panel {
  margin-bottom: 20px;
}
@media (max-width: 760px) {
  .connection-notice,
  .problem-banner {
    padding: 10px 18px;
  }
  .application-row {
    grid-template-columns: 1fr auto;
    row-gap: 7px;
  }
  .application-row > .icon {
    display: none;
  }
  .site-footer {
    margin-bottom: 30px;
  }
}

/* ---------------------------------------------------------------------------
   Staff work board and case workspace (Task 7)
   Built from the same custom properties as the client screens; nothing here
   carries meaning by colour alone — every badge and chip has its own words.
   --------------------------------------------------------------------------- */
.board-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--vt-line);
  margin-bottom: 18px;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.board-reference {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--vt-primary);
  cursor: pointer;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.board-reference .icon {
  width: 15px;
  height: 15px;
}
.board-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}
.staff-reason {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--vt-muted);
}
.staff-reason .icon {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 2px;
}
.staff-header p:first-of-type {
  margin-top: 0;
  color: var(--vt-muted);
}
.request-card {
  border: 1px solid var(--vt-line);
  border-left: 3px solid var(--vt-primary);
  border-radius: 8px;
  padding: 14px 15px;
  margin-bottom: 14px;
}
.request-card p {
  margin: 6px 0;
  font-size: 14px;
}
.document-list,
.followup-list,
.attempt-list,
.blocker-list,
.review-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
}
.document-list li,
.blocker-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--vt-muted);
}
.document-list small,
.attempt-list small {
  display: block;
  color: var(--vt-muted);
  font-size: 12px;
}
.followup-list > li,
.review-attempt {
  border: 1px solid var(--vt-line);
  border-radius: 8px;
  padding: 12px 14px;
}
.attempt-list {
  margin: 8px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--vt-line);
}
.staff-form {
  border-top: 1px solid var(--vt-line);
  padding-top: 15px;
  margin-top: 15px;
}
.staff-form h3 {
  margin: 0 0 12px;
  font-size: 15px;
}
.staff-form textarea {
  min-height: 78px;
}
@media (max-width: 760px) {
  .board-filters {
    gap: 8px 10px;
  }
}

/* ---------------------------------------------------------------------------
   The office workspace (Task 8): the follow-up and assistance screens. Built
   from the same custom properties as everything above, so there is one visual
   language and no new colour. Colour is never the only signal here either —
   every badge and every refusal carries its own words.
   --------------------------------------------------------------------------- */

.checkbox-row.small {
  font-size: 13px;
  margin: 10px 0;
  align-items: flex-start;
}
.checkbox-row.small input {
  margin-top: 1px;
}
.staff-form h4,
.followup-list h4 {
  margin: 14px 0 6px;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--vt-muted);
}
/* Two forms on one task: the attempt and the resolution are separate steps, so
   they are separated on screen as well as in the wording. */
.followup-list .staff-form + .staff-form {
  border-top-style: dashed;
}
.followup-list > li > .detail-row {
  border: none;
  padding: 2px 0;
}
/* The assistance cards reuse the request card, with room for their own note. */
.request-card + .request-card {
  margin-top: 12px;
}
.request-card .detail-row {
  border: none;
  padding: 3px 0;
  font-size: 13px;
}
.request-card .board-reference {
  padding: 0;
  font-size: inherit;
}
.staff-form .btn.secondary {
  margin-bottom: 12px;
}

/* The redesigned staff frame (appShell in views.mjs): a fixed-width sidebar
   beside the page, and a toggle held in the top-left corner so it stays in
   the same place whether the sidebar is open or closed. On narrow screens the
   sidebar lays over the page instead of pushing it. */
.app-shell {
  display: grid;
  grid-template-columns: var(--vt-sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  background: var(--vt-background);
  color: var(--vt-ink);
}
.app-shell.sidebar-closed {
  grid-template-columns: minmax(0, 1fr);
}
.sidebar-toggle {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 40;
  width: var(--vt-tap);
  height: var(--vt-tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius-sm);
  background: var(--vt-surface);
  color: var(--vt-muted);
}
.sidebar-toggle:hover {
  color: var(--vt-primary);
  border-color: var(--vt-primary-line);
}
.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 68px 12px 16px;
  background: var(--vt-surface);
  border-right: 1px solid var(--vt-line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.app-sidebar[hidden] {
  display: none;
}
.app-main {
  min-width: 0;
  padding: 24px 32px;
}
.sidebar-closed .app-main {
  padding-left: 76px;
}
.app-main .narrow {
  width: 100%;
  max-width: 1240px;
  padding: 8px 0 40px;
  min-height: 0;
}
@media (max-width: 800px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(var(--vt-sidebar-width), 85vw);
    z-index: 30;
    box-shadow: 0 12px 40px rgb(42 39 69 / 0.18);
  }
  .app-main,
  .sidebar-closed .app-main {
    padding: 72px 16px 24px;
  }
}

/* Sidebar peek (spec 2026-10-04 §8): a collapsed sidebar shown over the page
   while the mouse rests on its toggle or in it. It never pushes the page;
   app.mjs adds .sidebar-peek in place. */
.app-shell.sidebar-closed.sidebar-peek .app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(var(--vt-sidebar-width), 85vw);
  z-index: 30;
  box-shadow: 0 12px 40px rgb(42 39 69 / 0.18);
}
/* end sidebar peek */

.btn.chip {
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 13px;
  min-height: var(--vt-tap);
  background: var(--vt-surface);
  border: 1px solid var(--vt-line);
  color: var(--vt-ink);
}
.btn.chip.selected {
  background: var(--vt-ink);
  border-color: var(--vt-ink);
  color: #fff;
}

/* ---- Staff sidebar (part 1) ---- */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
}
.sidebar-wordmark {
  font-weight: 700;
  font-size: 18px;
  color: var(--vt-ink);
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.btn.nav-link {
  justify-content: flex-start;
  background: transparent;
  color: var(--vt-muted);
  font-weight: 500;
  padding: 8px 12px;
}
.btn.nav-link:hover {
  background: var(--vt-background);
  color: var(--vt-ink);
}
.btn.nav-link.current {
  background: var(--vt-primary-soft);
  color: var(--vt-primary);
  font-weight: 600;
}
.sidebar-account {
  margin-top: auto;
  border-top: 1px solid var(--vt-line);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-account .btn.text {
  justify-content: flex-start;
}
.account-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 10px;
}
.account-row strong {
  display: block;
  color: var(--vt-ink);
}
.account-row small {
  display: block;
  color: var(--vt-muted);
  font-size: 12px;
}

/* ---- The volunteer work board ---- */
.staff-board {
  padding: 20px 22px;
  border-color: var(--vt-line);
  border-radius: var(--vt-radius);
}
.board-search {
  display: flex;
  gap: 8px;
  margin: 4px 0 16px;
  max-width: 460px;
}
.board-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--vt-line);
  margin-bottom: 14px;
  overflow-x: auto;
}
.btn.tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 10px 0;
  color: var(--vt-muted);
  font-weight: 500;
  white-space: nowrap;
}
.btn.tab:hover {
  color: var(--vt-ink);
  transform: none;
}
.btn.tab.selected {
  border-bottom-color: var(--vt-primary);
  color: var(--vt-primary);
  font-weight: 600;
}
/* `.board-tabs` scrolls horizontally, which clips a focus ring drawn outside
   the button; pull it inside the button's own box so the whole ring shows. */
.btn.tab:focus-visible {
  outline-offset: -3px;
}
.tab-count {
  margin-left: 2px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--vt-primary-soft);
  font-size: 12px;
}
/* A Language cell's letters: the names are on hover (allow-multiple-service-languages). */
.language-letters {
  white-space: nowrap;
  cursor: help;
}
.board-table-wrap {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius);
}
.board-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.board-table thead th {
  background: var(--vt-background);
  color: var(--vt-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 10px 12px;
  white-space: nowrap;
}
.board-table td,
.board-table tbody th {
  padding: 12px;
  border-top: 1px solid var(--vt-line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}
.board-table .board-row {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: var(--vt-surface);
}
.board-table .board-row:hover {
  background: var(--vt-background);
}
.board-table .board-row.own {
  background: var(--vt-you-soft);
}
.board-table .board-reference {
  color: var(--vt-primary);
}
.board-table .board-actions {
  white-space: normal;
}
.board-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.board-row-actions .staff-reason {
  margin: 0;
  max-width: 260px;
  white-space: normal;
}
.you {
  color: var(--vt-you);
}
.unassigned {
  color: var(--vt-muted);
  font-style: italic;
}
.board-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 0;
}

/* ---- The case page (restyle PR 2) ---- */
.staff-header {
  padding: 20px 22px;
  border-color: var(--vt-line);
  border-radius: var(--vt-radius);
}
.case-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.case-title-row h2 {
  margin: 0;
  font-family: var(--vt-serif);
  font-size: 30px;
  font-weight: 400;
  color: var(--vt-ink);
}
.case-people {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.name-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--vt-line);
  border-radius: 999px;
  background: var(--vt-surface);
  font-size: 13px;
}
.name-pill small {
  color: var(--vt-muted);
}
.lifecycle {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 18px 0 8px;
  overflow-x: auto;
}
.lifecycle-step {
  flex: 1 0 96px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--vt-muted);
  text-align: center;
}
.lifecycle-step::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--vt-line);
}
.lifecycle-step:first-child::before {
  display: none;
}
.lifecycle-dot {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--vt-surface);
  border: 2px solid var(--vt-primary-line);
}
.lifecycle-step.done .lifecycle-dot,
.lifecycle-step.done::before,
.lifecycle-step.current::before {
  background: var(--vt-progress);
  border-color: var(--vt-progress);
}
.lifecycle-step.current .lifecycle-dot {
  border-color: var(--vt-primary);
  background: var(--vt-primary);
  box-shadow: 0 0 0 4px var(--vt-primary-soft);
}
.lifecycle-step.current .lifecycle-label {
  color: var(--vt-ink);
  font-weight: 600;
}
.lifecycle-step.amend .lifecycle-dot {
  border-color: var(--vt-stage-amend);
  background: var(--vt-stage-amend);
  box-shadow: 0 0 0 4px var(--vt-stage-amend-bg);
}
/* A closed case: the steps before Closed are neither done nor still to come. */
.lifecycle-step.neutral {
  color: var(--vt-muted);
}
.lifecycle-step.neutral .lifecycle-dot {
  border-color: var(--vt-line);
  background: var(--vt-surface);
}
.lifecycle-step.neutral::before,
.lifecycle-step.neutral + .lifecycle-step.current::before {
  background: var(--vt-line);
}
.case-tabs {
  display: flex;
  gap: 22px;
  margin: 22px 0 16px;
  border-bottom: 1px solid var(--vt-line);
  overflow-x: auto;
}
.case-tab {
  min-height: var(--vt-tap);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 0;
  color: var(--vt-muted);
  font-weight: 500;
  white-space: nowrap;
}
.case-tab:hover {
  color: var(--vt-ink);
}
.case-tab.selected {
  border-bottom-color: var(--vt-primary);
  color: var(--vt-primary);
  font-weight: 600;
}
.case-tab:focus-visible {
  outline-offset: -3px;
}
.case-panel {
  display: grid;
  gap: 16px;
}
/* The author `display: grid` above beats the browser's own [hidden] rule, so an
   inactive tab would still show without this (the same trap as the PR 1
   sidebar). */
.case-panel[hidden] {
  display: none;
}
.case-panel:focus-visible {
  outline: 2px solid var(--vt-primary);
  outline-offset: 4px;
}
.case-panel > .panel {
  padding: 18px 20px;
  border-color: var(--vt-line);
  border-radius: var(--vt-radius);
}
.case-panel > .next-step {
  /* Same specificity as `.case-panel > .panel`, and later, so the accent wins. */
  border-left: 4px solid var(--vt-primary);
}
.next-step-waiting {
  color: var(--vt-muted);
  margin: 0 0 12px;
}
.next-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.case-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}
.case-details .section-head {
  grid-column: 1 / -1;
}
.case-panel .detail-row {
  border-bottom-color: var(--vt-line);
}
.case-panel .detail-row span {
  color: var(--vt-muted);
}
.case-panel .detail-row strong {
  color: var(--vt-ink);
}
@media (max-width: 800px) {
  .case-details {
    grid-template-columns: minmax(0, 1fr);
  }
  .case-people {
    margin-left: 0;
  }
}

/* ---- Client frame (restyle PR 3) ---- */
.client-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding: 10px 28px;
  background: var(--vt-surface);
  border-bottom: 1px solid var(--vt-line);
}
.client-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--vt-tap);
  background: none;
  border: 0;
  padding: 0;
  color: var(--vt-intake-ink);
}
.client-wordmark {
  font-weight: 700;
  font-size: 19px;
}
.client-bar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.language-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius-sm);
  background: var(--vt-background);
}
.language-switch .lang {
  min-height: var(--vt-tap);
  padding: 4px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--vt-intake-hint);
  font-size: 14px;
}
.language-switch .lang.current {
  background: var(--vt-surface);
  color: var(--vt-primary);
  font-weight: 700;
  box-shadow: 0 1px 2px rgb(42 39 69 / 0.12);
}
.client-shell {
  color: var(--vt-intake-ink);
  background: var(--vt-background);
}
.client-shell .field-note,
.client-shell .page-intro p {
  color: var(--vt-intake-hint);
}
.client-shell .overline,
.client-shell .detail-row > span,
.client-shell .muted {
  color: var(--vt-intake-hint);
}
.client-shell .field > span {
  color: var(--vt-intake-ink);
}
.client-shell input,
.client-shell select,
.client-shell textarea {
  color: var(--vt-intake-ink);
}
.client-shell .support-note p,
.client-shell .sidebar-help p,
.client-shell .review-panel p {
  color: var(--vt-intake-hint);
}
.office-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
}
.office-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--vt-tap);
  color: var(--vt-intake-ink);
  font-weight: 600;
  text-decoration: none;
  word-break: normal;
  overflow-wrap: break-word;
}
.office-contact a:hover {
  color: var(--vt-primary);
}
.office-contact .icon {
  color: var(--vt-primary);
}
/* Inline buttons are real actions on client screens (Resend code, Try
   again, Dismiss, Get help from the office), so they meet the 44px client
   floor here. Staff screens keep the shared 30px
   style. The banners come right after the client bar in page(). */
.client-shell .btn.inline,
.client-bar ~ .connection-notice .btn.inline,
.client-bar ~ .problem-banner .btn.inline {
  min-height: var(--vt-tap);
}
.client-shell .resend-row .btn.inline:disabled {
  opacity: 1;
  color: var(--vt-intake-hint);
}
@media (max-width: 800px) {
  .client-bar {
    padding: 10px 16px;
  }
}

/* PR 4: office screens */
/* Everything below is scoped to the office's own containers (Follow-ups,
   the drawer, Add a case, the case pool) or to the shared modal notes, and
   reads the --vt-* tokens only. */

/* ---- The page header's actions (Add a case) ---- */
.page-intro:has(> .page-actions) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 24px;
}
.page-intro:has(> .page-actions) > * {
  grid-column: 1;
}
.page-intro:has(> .page-actions) > .page-actions {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
}
.page-intro .page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
@media (max-width: 800px) {
  .page-intro:has(> .page-actions) > .page-actions {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
    margin-top: 16px;
  }
}

/* ---- Follow-ups: the office queue ---- */
/* The Invite a client panel sits under the queue as a card of the same shape. */
.invite-client {
  margin-top: 16px;
}
.invite-client .section-head {
  margin-bottom: 12px;
}
.office-queue,
.case-pool,
.invite-client {
  padding: 20px 22px;
  border-color: var(--vt-line);
  border-radius: var(--vt-radius);
}
.office-queue .section-head {
  flex-wrap: wrap;
  align-items: baseline;
  margin-bottom: 16px;
}
.office-queue .section-head > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.office-queue .section-head h2,
.invite-client .section-head h2 {
  font-size: 17px;
  letter-spacing: 0;
}
.office-queue .muted,
.office-queue .staff-reason,
.office-queue .board-note,
.case-pool .board-note {
  color: var(--vt-muted);
}
.office-queue .board-filters {
  border-bottom-color: var(--vt-line);
}
.office-queue .board-filters:has(+ .board-filters) {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 10px;
}
.office-queue .filter-group,
.case-pool .filter-group {
  flex-wrap: wrap;
}
/* A count inside a selected (dark) chip keeps its own light pill. */
.office-queue .btn.chip .tab-count,
.case-pool .btn.chip .count {
  margin-left: 2px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--vt-primary-soft);
  color: var(--vt-ink);
  font-size: 12px;
}
.office-queue .queue-table td,
.office-queue .queue-table tbody th {
  vertical-align: top;
  padding: 12px 10px;
}
.office-queue .queue-table thead th {
  padding: 10px;
  white-space: normal;
}
.office-queue .queue-table td {
  white-space: normal;
}
.office-queue .queue-table tbody th .board-reference {
  display: flex;
  width: max-content;
  margin-bottom: 6px;
}
.office-queue .queue-needed {
  min-width: 200px;
  max-width: 340px;
}
.office-queue .queue-needed small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--vt-muted);
}
.office-queue .queue-waiting {
  white-space: nowrap;
  font-weight: 600;
}
.office-queue .queue-waiting.aging {
  color: var(--vt-stage-amend);
}
.office-queue .queue-waiting.late {
  color: var(--vt-stage-stopped);
}
.office-queue .queue-action {
  text-align: right;
  white-space: nowrap;
}
.office-queue .queue-action .btn {
  min-height: var(--vt-tap);
  padding: 6px 12px;
  gap: 6px;
  font-size: 13px;
  white-space: nowrap;
}
.office-queue .queue-action .btn .icon {
  width: 16px;
  height: 16px;
}
.office-queue .queue-action .staff-reason {
  margin: 0 0 0 auto;
  max-width: 240px;
  text-align: left;
  white-space: normal;
}

/* The task kind: an icon and words, each on its own soft pair. */
.kind-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.kind-pill .icon {
  width: 14px;
  height: 14px;
  flex: none;
}
.kind-pill.intake,
.kind-pill.screening {
  background: var(--vt-stage-intake-bg);
  color: var(--vt-stage-intake);
}
.kind-pill.call,
.kind-pill.rejected {
  background: var(--vt-stage-amend-bg);
  color: var(--vt-stage-amend);
}
.kind-pill.help {
  background: var(--vt-primary-soft);
  color: var(--vt-primary-hover);
}
.kind-pill.unclaimed,
.kind-pill.signing,
.kind-pill.result,
.kind-pill.efiling {
  background: var(--vt-background);
  border-color: var(--vt-line);
  color: var(--vt-muted);
}

/* ---- The office drawer: the modal frame at the right edge ---- */
.modal-backdrop:has(.office-drawer) {
  justify-content: flex-end;
  align-items: stretch;
  padding: 0;
}
.modal.office-drawer {
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  border-radius: var(--vt-radius) 0 0 var(--vt-radius);
  border-right: 0;
  overflow-y: auto;
  padding: 32px 28px;
}
.office-drawer h2 {
  font-size: 28px;
}
.office-drawer .drawer-case {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-weight: 600;
  margin-bottom: 8px;
}
.office-drawer .drawer-case .btn.text {
  margin-left: auto;
}
.office-drawer .drawer-task {
  border-top: 1px solid var(--vt-line);
  padding-top: 18px;
  margin-top: 18px;
}
.office-drawer .drawer-task h3 {
  font-size: 17px;
  margin-bottom: 4px;
}
.office-drawer .detail-row > span,
.office-drawer h4,
.office-drawer .field-note,
.office-drawer .muted,
.office-drawer .staff-reason,
.office-drawer .attempt-list small {
  color: var(--vt-muted);
}
.office-drawer .staff-form,
.office-drawer .attempt-list {
  border-color: var(--vt-line);
}
.office-drawer .notice.error {
  background: var(--vt-error-bg);
  border: 1px solid var(--vt-error-line);
  color: var(--vt-error);
  margin: 16px 0;
}
.office-drawer .notice.error h3,
.office-drawer .notice.error p {
  color: var(--vt-error);
}

/* Volunteers: the Roster */
/* The page reuses .board-table and the drawer .office-drawer; these are only
   what they lack. The chips are neutral on purpose: the records grant nothing,
   so no colour may read as cleared or missing. */
.volunteer-roster {
  padding: 20px 22px;
  border-color: var(--vt-line);
  border-radius: var(--vt-radius);
}
.volunteer-roster h2 {
  font-size: 17px;
  letter-spacing: 0;
  margin-bottom: 14px;
}
.volunteer-roster .board-foot {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--vt-muted);
}
.volunteer-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 14px;
}
.volunteer-toolbar .pool-filter {
  flex: 0 1 220px;
  min-width: 0;
  margin: 0;
}
.volunteer-toolbar .pool-filter > span {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--vt-muted);
}
.volunteer-toolbar #volunteer-search {
  flex: 1 1 240px;
  min-width: 0;
}
.volunteer-roster .volunteer-row th {
  font-weight: 600;
}
.volunteer-roster .volunteer-contact {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  color: var(--vt-muted);
}
/* "Signed in as …" under the account status, on its own line like the contact line. */
.volunteer-roster td .volunteer-signed-in {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--vt-muted);
}
.volunteer-roster .board-table td,
.volunteer-roster .board-table tbody th {
  white-space: normal;
}
.volunteer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}
.volunteer-chip {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--vt-line);
  border-radius: 999px;
  background: var(--vt-background);
  color: var(--vt-ink);
  font-size: 12px;
  white-space: nowrap;
}
.remote-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--vt-primary-soft);
  color: var(--vt-primary-hover);
  font-size: 11px;
  font-weight: 600;
  vertical-align: 1px;
}
#volunteer-form .check-group {
  margin: 4px 0 18px;
}
/* `.field` sets `display: block`, which beats the browser's own [hidden]. */
#volunteer-form .field[hidden] {
  display: none;
}
.office-drawer .drawer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 18px;
}
/* Uploads to review (change add-clearance-uploads, design D7): the Roster's
   note stands out from the muted missing list, in the attention colours the
   Workload's stalled chip uses; the drawer's sent line keeps its Mark reviewed
   beside the text. */
.volunteer-to-review {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--vt-attention-bg);
  color: var(--vt-age-soon-ink);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.volunteer-sent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 6px 0 12px;
}
/* end Volunteers */

/* Volunteers: the Workload */
/* The Workload tab (change add-volunteer-workload) reuses .board-table, the
   Roster's toolbar and the drawer .office-drawer. Every colour is a token, so
   it follows the theme; the bar carries no text (its numbers are in its
   aria-label and in the columns beside it), so only its two segments and the
   track need to stand apart. */
.volunteer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--vt-line);
}
.volunteer-tab {
  margin-bottom: -1px;
  padding: 8px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--vt-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.volunteer-tab:hover {
  color: var(--vt-ink);
}
.volunteer-tab.current {
  border-bottom-color: var(--vt-primary);
  color: var(--vt-primary-hover);
}
.volunteer-tab:focus-visible,
.workload-sort:focus-visible,
.workload-toggle:focus-visible {
  outline: 2px solid var(--vt-primary);
  outline-offset: 2px;
}
.volunteer-workload {
  padding: 20px 22px;
  border-color: var(--vt-line);
  border-radius: var(--vt-radius);
}
.volunteer-workload h2 {
  font-size: 17px;
  letter-spacing: 0;
  margin-bottom: 14px;
}
.volunteer-workload .board-foot {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--vt-muted);
}
.volunteer-toolbar #workload-search {
  flex: 1 1 240px;
  min-width: 0;
}
.workload-note {
  margin-top: 6px;
}
/* The headers are buttons that look like the board's headers. */
.workload-sort {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.workload-table th[aria-sort="ascending"] .workload-sort,
.workload-table th[aria-sort="descending"] .workload-sort {
  color: var(--vt-ink);
}
.workload-table th[aria-sort="ascending"] .workload-sort::after {
  content: " \2191";
}
.workload-table th[aria-sort="descending"] .workload-sort::after {
  content: " \2193";
}
.workload-table td[data-col]:not([data-col="bar"]) {
  font-variant-numeric: tabular-nums;
}
.workload-row th {
  font-weight: 600;
  white-space: normal;
}
.workload-unassigned {
  background: var(--vt-background);
}
.workload-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--vt-ink);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.workload-toggle .icon {
  flex: none;
  transition: transform 0.15s ease;
  transform: rotate(-90deg);
}
.workload-toggle[aria-expanded="true"] .icon {
  transform: none;
}
.workload-sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  color: var(--vt-muted);
}
.volunteer-not-cleared,
.workload-stalled,
.workload-role-removed,
.assign-current {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.volunteer-not-cleared {
  background: var(--vt-background);
  border: 1px solid var(--vt-line);
  color: var(--vt-muted);
}
.workload-role-removed {
  background: var(--vt-error-bg);
  border: 1px solid var(--vt-error-line);
  color: var(--vt-error);
}
.workload-stalled {
  background: var(--vt-attention-bg);
  color: var(--vt-age-soon-ink);
}
.workload-bar {
  display: flex;
  min-width: 80px;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--vt-line);
}
.workload-bar-preparing {
  background: var(--vt-phase-preparation);
}
.workload-bar-review {
  background: var(--vt-phase-review);
}
.workload-cases-row td {
  padding-top: 0;
  border-top: 0;
  white-space: normal;
}
.workload-cases {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.workload-case {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 8px 12px;
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius-sm);
  background: var(--vt-surface);
}
.workload-case-ref {
  color: var(--vt-primary);
  font-weight: 600;
}
.workload-case-name {
  color: var(--vt-ink);
}
.workload-slot {
  color: var(--vt-muted);
  font-size: 13px;
}
.workload-case-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
/* The assign drawer's list. */
.assign-slot {
  margin: 0 0 10px;
}
#assign-search {
  width: 100%;
  margin: 0 0 12px;
}
.assign-list {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.assign-person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius-sm);
  background: var(--vt-surface);
}
.assign-person.is-current {
  background: var(--vt-primary-soft);
  border-color: var(--vt-primary-line);
}
.assign-person-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.assign-languages,
.assign-roles,
.assign-open {
  font-size: 12px;
  color: var(--vt-muted);
}
.assign-current {
  background: var(--vt-primary-soft);
  color: var(--vt-primary-hover);
}
.assign-hidden {
  margin: 0 0 12px;
}
/* end Workload */

/* ---- Add a case ---- */
/* Only Add a case emits the pill, so the class is its own scope. */
.fiction-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  padding: 2px 6px 2px 12px;
  border: 1px dashed var(--vt-primary-line);
  border-radius: 999px;
  background: var(--vt-primary-soft);
  color: var(--vt-ink);
  font-size: 13px;
  margin: 0 0 20px;
}
.fiction-pill > .icon {
  width: 14px;
  height: 14px;
  color: var(--vt-primary);
}
.fiction-pill .btn.text {
  min-height: var(--vt-tap);
  margin: -6px 0;
  padding: 4px 8px;
  font-size: 13px;
  color: var(--vt-primary-hover);
  text-decoration: underline;
}

/* ---- The case pool ---- */
.case-pool h2 {
  font-size: 17px;
  letter-spacing: 0;
  margin-bottom: 14px;
}
.case-pool > .filter-group {
  margin-bottom: 16px;
}
.case-pool .pool-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 14px;
}
.case-pool .pool-filter {
  flex: 1 1 160px;
  min-width: 0;
  margin: 0;
}
.case-pool .pool-filter > span {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--vt-muted);
}
.case-pool .pool-filter select {
  height: 44px;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--vt-ink);
}
.case-pool .pool-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 13px;
  color: var(--vt-muted);
  margin: 0 0 12px;
}
.case-pool .pool-summary .field-note {
  margin: 0;
  color: var(--vt-muted);
}
.case-pool .pool-phase {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--vt-muted);
}
.case-pool .pool-table td,
.case-pool .pool-table tbody th {
  vertical-align: top;
}

/* ---- Every dialog's notes ---- */
.modal .info-note {
  background: var(--vt-primary-soft);
  border-color: var(--vt-line);
  color: var(--vt-muted);
}
.modal .info-note > .icon {
  color: var(--vt-primary);
  flex: none;
}
.modal .info-note p {
  color: var(--vt-muted);
}
.modal .info-note strong {
  color: var(--vt-ink);
}
/* ---- The staff frame on tokens: the page overline ---- */
/* These change every staff screen (work board, case page, office screens) on
   purpose: part 1 ends with the whole staff frame on the --vt-* tokens. */
.app-main .page-intro .overline,
.app-main .muted,
.app-main .field-note {
  color: var(--vt-muted);
}
/* end PR 4 */

/* Part 2: client numbers */
.client-number {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--vt-ink);
}
.client-number.none {
  font-weight: 400;
  font-style: italic;
  font-size: 12px;
  color: var(--vt-muted);
}
/* After the heading in the DOM (so heading navigation reads it next), but
   lifted onto its own line above the heading inside the wrapping flex row.
   The negative margin takes the row gap (10px) back down to 4px. */
.case-client-number {
  order: -1;
  flex-basis: 100%;
  margin: 0 0 -6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--vt-muted);
}
.client-shell .id-pill > div + div {
  margin-left: 12px;
}
.application-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.application-number {
  font-weight: 700;
  color: var(--vt-intake-ink);
}
/* end part 2 */

/* Part 4b: intake v2 */
/* The client's nine-step form (spec 2026-09-30 §3.2), styled from the step-2
   and step-6 designs. Tokens only. */

/* ---- The top bar's Senior version switch ---- */
.senior-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--vt-tap);
  padding: 4px 12px;
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius-sm);
  background: var(--vt-surface);
  color: var(--vt-intake-ink);
  font-size: 14px;
  font-weight: 600;
}
.senior-switch .switch-track {
  position: relative;
  width: 32px;
  height: 18px;
  border-radius: 9px;
  background: var(--vt-primary-line);
  flex-shrink: 0;
  transition: background 0.15s;
}
.senior-switch .switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.15s;
}
.senior-switch[aria-pressed="true"] .switch-track {
  background: var(--vt-primary);
}
.senior-switch[aria-pressed="true"] .switch-thumb {
  left: 16px;
}

/* ---- The save chip: shown errors need checking ---- */
.save-chip.checking {
  color: var(--vt-age-late-ink);
  font-weight: 600;
}

/* ---- The rail ---- */
.rail-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-height: var(--vt-tap);
  padding: 6px 4px;
  border: 0;
  border-radius: var(--vt-radius-sm);
  background: transparent;
  color: var(--vt-intake-hint);
  text-align: left;
  font-size: 14px;
}
.rail-link:hover {
  background: var(--vt-primary-soft);
}
.rail-here {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--vt-primary);
}
/* The mark is keyed on the status span's class alone, so an in-place class
   change (spec §2.4 rule 2) restyles it. */
.rail-status {
  font-size: 12px;
  font-weight: 600;
}
.rail-status.is-done {
  color: var(--vt-stage-filing);
}
.rail-status.is-needs {
  color: var(--vt-age-soon-ink);
}
.rail-status.is-none {
  color: var(--vt-intake-hint);
}
.rail-progress {
  margin-top: 22px;
}
.rail-progress p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--vt-intake-hint);
}
.rail-bar {
  display: block;
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 3px;
  background: var(--vt-line);
  appearance: none;
  overflow: hidden;
}
.rail-bar::-webkit-progress-bar {
  background: var(--vt-line);
  border-radius: 3px;
}
.rail-bar::-webkit-progress-value {
  background: var(--vt-primary);
  border-radius: 3px;
}
.rail-bar::-moz-progress-bar {
  background: var(--vt-primary);
  border-radius: 3px;
}
/* The office card sits right under the progress bar (spec §3.2), not at the
   foot of a tall page. */
.intake-v2 .intake-sidebar {
  justify-content: flex-start;
}
.intake-v2 .sidebar-help {
  margin-top: 28px;
}

/* ---- Sections and question cards ---- */
.q-section {
  margin-bottom: 28px;
}
.q-intro {
  font-size: 15px;
  color: var(--vt-intake-hint);
  margin-bottom: 14px;
}
.q-intro p,
.q-tip p {
  margin: 0 0 6px;
}
.q-intro ul,
.q-tip ul {
  margin: 4px 0 8px;
  padding-left: 20px;
}
.q-card {
  margin-top: 14px;
  padding: 24px;
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius);
  background: var(--vt-surface);
}
.q-heading {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--vt-line);
  font-size: 17px;
  color: var(--vt-intake-ink);
}
.q {
  display: block;
  min-width: 0;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}
.q:last-child {
  margin-bottom: 0;
}
.q-label {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--vt-intake-ink);
}
.q-range {
  font-weight: 400;
  color: var(--vt-intake-hint);
}
.q-signature {
  font-family: var(--vt-serif);
  font-style: italic;
}
.q-tips {
  margin-top: 8px;
  font-size: 14px;
  color: var(--vt-intake-hint);
}
.q-tip + .q-tip {
  margin-top: 6px;
}

/* ---- The note and the count: fixed containers, filled in place ---- */
.q-note {
  margin: 8px 0 0;
  padding: 2px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.q-note.is-missing {
  color: var(--vt-age-soon-ink);
}
.q-note.is-invalid {
  color: var(--vt-age-late-ink);
  border-left: 3px solid var(--vt-phase-attention);
  padding-left: 8px;
}
.q-count {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--vt-intake-hint);
}
/* Empty, they take no room, but they stay rendered: an aria-live region that
   is display:none when its text arrives is not announced reliably. */
.q-note:empty,
.q-count:empty {
  margin: 0;
  padding: 0;
  border: 0;
}

/* ---- Choices: radio cards ---- */
.q-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.q-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--vt-tap);
  padding: 8px 14px;
  border: 1px solid var(--vt-primary-line);
  border-radius: var(--vt-radius-sm);
  background: var(--vt-surface);
  color: var(--vt-intake-ink);
  cursor: pointer;
}
.q-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--vt-primary);
}
.q-option:has(input:checked) {
  border-color: var(--vt-primary);
  background: var(--vt-primary-soft);
}

/* ---- Yes / No / Not sure: a segmented radio group ---- */
.q-segmented {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2px;
  max-width: 100%;
  padding: 3px;
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius-sm);
  background: var(--vt-background);
}
.q-segmented .q-option,
.q-segmented .q-option:has(input:checked) {
  position: relative;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
/* Hidden from sight, never from the keyboard or the accessibility tree. */
.q-segmented input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
.q-segmented .q-option span {
  display: inline-flex;
  align-items: center;
  min-height: var(--vt-tap);
  padding: 0 18px;
  border-radius: 6px;
  color: var(--vt-intake-hint);
  font-weight: 600;
}
.q-segmented .q-option:hover span {
  background: var(--vt-primary-soft);
}
.q-segmented input:checked + span {
  background: var(--vt-primary);
  color: #fff;
}
.q-segmented input:focus-visible + span {
  outline: 3px solid var(--vt-primary);
  outline-offset: 2px;
}

/* ---- Several answers: checkbox chips ---- */
.q-chips {
  flex-direction: row;
  flex-wrap: wrap;
}
.q-chip {
  border-radius: 999px;
  padding: 8px 16px;
}
.q-chip:has(input:checked) {
  color: var(--vt-primary);
}

/* ---- Dates: Month / Day / Year (年 / 月 / 日 in Chinese); the year box is the wide one ---- */
.q-date {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.q-date-part {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--vt-intake-hint);
}
.q-date-part input.q-input {
  width: 76px;
  text-align: center;
}
.q-date-part.is-year input.q-input {
  width: 108px;
}

/* ---- The household: one card per person ---- */
.hh-cards {
  display: grid;
  gap: 16px;
  margin-bottom: 14px;
}
.hh-cards:empty {
  margin: 0;
}
.hh-card {
  padding: 18px;
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius);
  background: var(--vt-background);
}
.hh-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.hh-card-title {
  margin: 0;
  font-size: 17px;
  color: var(--vt-intake-ink);
}

/* ---- After submission: the read-only answers ---- */
.answers-v2 {
  padding: 8px 24px 16px;
  margin-bottom: 20px;
}
.answer-step {
  padding-top: 16px;
}
.answer-step + .answer-step {
  border-top: 1px solid var(--vt-line);
}
.answer-step h2 {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--vt-intake-ink);
}
.answers-v2 .detail-row > span {
  flex-shrink: 1;
  color: var(--vt-intake-hint);
}
.answers-v2 .detail-row > strong {
  min-width: 40%;
  overflow-wrap: anywhere;
  color: var(--vt-intake-ink);
}

/* ---- Narrow screens: no sideways scroll at 390px ---- */
@media (max-width: 800px) {
  .intake-v2 .rail-link {
    width: auto;
    padding: 0;
  }
  .intake-v2 .rail-progress {
    margin-top: 12px;
  }
  .q-card {
    padding: 18px 16px;
  }
  .hh-card {
    padding: 14px 12px;
  }
  .q-date {
    gap: 8px;
  }
  .q-date-part input.q-input {
    width: 64px;
  }
  .q-date-part.is-year input.q-input {
    width: 92px;
  }
  .q-segmented .q-option span {
    padding: 0 14px;
  }
  .answers-v2 {
    padding: 8px 16px 16px;
  }
  .answers-v2 .detail-row {
    flex-direction: column;
    gap: 2px;
  }
  .answers-v2 .detail-row > strong {
    text-align: left;
  }
}
/* Long version-2 answers wrap inside the conflict table, so it never scrolls
   sideways at 390px. */
.conflict-table td {
  overflow-wrap: anywhere;
}
/* end part 4b */

/* Part 4b2: intake redesign */
/* The sub-step form (spec 2026-10-04 §3–§6): the rail tree and its phone bar,
   the page header, document cards, the bring list, Review & submit, the
   summary print and the progress page's open documents. Tokens only. Every
   mark is an icon and a word: the icon is a glyph drawn before the word, so
   the marks differ by shape and never by colour alone. */

/* ---- The rail tree ---- */
.rail-tree,
.rail-subs {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rail-tree {
  display: grid;
  gap: 4px;
}
.rail-step-head {
  display: flex;
  align-items: flex-start;
  gap: 2px;
}
.rail-toggle {
  display: grid;
  place-items: center;
  width: var(--vt-tap);
  height: var(--vt-tap);
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: var(--vt-radius-sm);
  background: transparent;
  color: var(--vt-intake-hint);
}
.rail-toggle:hover {
  background: var(--vt-primary-soft);
  color: var(--vt-primary);
}
.rail-toggle .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.15s;
}
.rail-toggle[aria-expanded="false"] .icon {
  transform: rotate(-90deg);
}
.rail-tree .rail-link {
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 10px;
}
.rail-step-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 1px solid var(--vt-line);
  border-radius: 50%;
  background: var(--vt-surface);
  font-size: 12px;
  color: var(--vt-intake-hint);
}
.rail-step.is-current .rail-step-num {
  border-color: var(--vt-primary);
  background: var(--vt-primary);
  color: #fff;
}
.rail-step-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.rail-step-title {
  line-height: 1.35;
  font-weight: 600;
  color: var(--vt-intake-ink);
}
.rail-subs {
  display: grid;
  gap: 2px;
  margin: 2px 0 8px 46px;
}
.rail-subs[hidden] {
  display: none;
}
.rail-sublink {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  min-height: var(--vt-tap);
  padding: 6px 10px;
  border: 0;
  border-left: 2px solid var(--vt-line);
  background: transparent;
  color: var(--vt-intake-hint);
  text-align: left;
  font-size: 14px;
  line-height: 1.35;
}
.rail-sublink:hover {
  background: var(--vt-primary-soft);
}
.rail-sublink.is-locked,
.rail-link.is-locked {
  opacity: 0.55;
  cursor: not-allowed;
}
.rail-sublink[aria-current="step"] {
  border-left-color: var(--vt-primary);
  background: var(--vt-primary-soft);
  color: var(--vt-primary);
  font-weight: 600;
}

/* ---- Marks: a glyph, then the word ---- */
.rail-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.rail-status::before {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.rail-status.is-done::before {
  content: "\2713";
  content: "\2713" / "";
  background: var(--vt-stage-filing-bg);
  color: var(--vt-stage-filing);
}
.rail-status.is-needs::before {
  content: "!";
  content: "!" / "";
  background: var(--vt-stage-amend-bg);
  color: var(--vt-age-soon-ink);
}
.rail-status.is-docs {
  color: var(--vt-stage-intake);
}
.rail-status.is-docs::before {
  content: "\2191";
  content: "\2191" / "";
  border-radius: 3px;
  background: var(--vt-stage-intake-bg);
  color: var(--vt-stage-intake);
}

/* ---- The phone bar: shown at phone width only ---- */
.rail-phone {
  display: none;
}

/* ---- The page header and the lead line ---- */
.substep-count {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--vt-intake-hint);
}
.q-lead {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: var(--vt-intake-ink);
}
.q-intro-extra {
  margin: 8px 0 0;
  font-weight: 600;
  color: var(--vt-intake-ink);
}

/* ---- Document cards ---- */
.doc-list {
  display: grid;
  gap: 16px;
}
.doc-list[hidden] {
  display: none;
}
.doc-card {
  padding: 22px 24px;
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius);
  background: var(--vt-surface);
}
.doc-card:focus-visible,
.doc-status:focus-visible {
  outline: 3px solid var(--vt-primary);
  outline-offset: 2px;
}
.doc-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.35;
  color: var(--vt-intake-ink);
}
.doc-owner {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--vt-intake-hint);
}
.doc-why,
.doc-hint {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--vt-intake-hint);
}
.doc-why .inline {
  padding: 4px 0;
  text-align: left;
  text-decoration: underline;
}
.doc-upload,
.doc-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.doc-note {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--vt-intake-hint);
}
.doc-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.doc-status .icon {
  width: 14px;
  height: 14px;
}
.doc-status.is-not_done {
  background: var(--vt-stage-amend-bg);
  color: var(--vt-stage-amend);
}
.doc-status.is-later {
  background: var(--vt-stage-intake-bg);
  color: var(--vt-stage-intake);
}
.doc-status.is-none {
  background: var(--vt-stage-prep-bg);
  color: var(--vt-stage-prep);
}
/* Issue 157: the client's report waits for staff; staff's confirmation is done. */
.doc-status.is-sent {
  background: var(--vt-stage-intake-bg);
  color: var(--vt-stage-intake);
}
.doc-status.is-received,
.doc-status.is-verified {
  background: var(--vt-stage-filing-bg);
  color: var(--vt-stage-filing);
}
/* The upload notes inside a document request keep their small size. */
.action-card .doc-note {
  font-size: 13px;
  line-height: 1.5;
}
.doc-maybe {
  margin-top: 20px;
}
.doc-maybe-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: var(--vt-tap);
  padding: 8px 14px;
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius-sm);
  background: var(--vt-background);
  color: var(--vt-intake-ink);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}
.doc-maybe-toggle::before {
  content: "\25B8";
  content: "\25B8" / "";
  color: var(--vt-primary);
}
.doc-maybe-toggle[aria-expanded="true"]::before {
  content: "\25BE";
  content: "\25BE" / "";
}
.doc-maybe > .doc-list {
  margin-top: 16px;
}

/* ---- Same-day: the bring list, a checklist that prints ---- */
.bring-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bring-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px 12px 46px;
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius-sm);
  background: var(--vt-surface);
  break-inside: avoid;
}
.bring-item::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 16px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--vt-primary-line);
  border-radius: 3px;
}
.bring-item strong {
  color: var(--vt-intake-ink);
}
.bring-item .doc-owner {
  margin: 0;
}
.bring-item .doc-hint {
  margin: 0;
  font-size: 13px;
}
.bring-maybe {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--vt-stage-amend);
}

/* ---- Review your application: alerts and warnings ---- */
.review-intro p {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--vt-intake-ink);
}
.alerts-panel {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius);
  background: var(--vt-surface);
}
.alerts-panel h2 {
  margin: 0 0 6px;
  font-size: 21px;
  color: var(--vt-intake-ink);
}
.alerts-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.alerts-block h3,
.warnings-block h3 {
  margin: 18px 0 4px;
  font-size: 16px;
}
.alerts-block h3 {
  color: var(--vt-age-late-ink);
}
.warnings-block h3 {
  color: var(--vt-stage-amend);
}
.alerts-step h4 {
  margin: 12px 0 4px;
  font-size: 14px;
  color: var(--vt-intake-hint);
}
.alert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: var(--vt-tap);
  padding: 8px 4px;
  border: 0;
  border-bottom: 1px solid var(--vt-line);
  background: transparent;
  color: var(--vt-intake-ink);
  text-align: left;
  font-size: 15px;
}
.alert-item:hover {
  background: var(--vt-primary-soft);
}
.alert-q {
  flex: 1;
  min-width: 0;
}
.alert-flag {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
}
.alert-item.is-missing .alert-flag {
  color: var(--vt-age-soon-ink);
}
.alert-item.is-invalid .alert-flag {
  color: var(--vt-age-late-ink);
}
.alert-item .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--vt-primary);
}
.warning-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--vt-line);
}
.warning-doc {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.warning-doc small {
  font-size: 13px;
  color: var(--vt-intake-hint);
}
.warning-maybe {
  padding: 10px 0;
}
.alerts-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  font-weight: 600;
  color: var(--vt-stage-filing);
}
.alerts-empty::before {
  content: "\2713";
  content: "\2713" / "";
}

/* ---- Your application summary ---- */
.summary-print {
  display: grid;
  gap: 16px;
}
.summary-meta,
.summary-step {
  padding: 8px 24px 16px;
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius);
  background: var(--vt-surface);
}
.summary-step h2 {
  margin: 12px 0 4px;
  font-size: 19px;
  color: var(--vt-intake-ink);
}
.summary-sub,
.answer-sub {
  padding-top: 8px;
}
.summary-sub + .summary-sub {
  border-top: 1px solid var(--vt-line);
}
.summary-sub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.summary-sub-head h3,
.answer-sub h3 {
  margin: 0;
  font-size: 15px;
  color: var(--vt-intake-ink);
}
.answer-sub h3 {
  margin-top: 8px;
}
.summary-sub-head .inline {
  min-height: var(--vt-tap);
  padding: 0 8px;
}
.summary-none {
  margin: 4px 0 8px;
  font-size: 14px;
  color: var(--vt-intake-hint);
}
.summary-print .detail-row > span {
  flex-shrink: 1;
  color: var(--vt-intake-hint);
}
.summary-print .detail-row > strong {
  min-width: 40%;
  overflow-wrap: anywhere;
  color: var(--vt-intake-ink);
}
.summary-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.draft-languages {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--vt-intake-hint);
}
.draft-ready {
  flex-basis: 100%;
  margin: 0;
  font-size: 14px;
}

/* The 13614-C shaded section's download / upload (add-preparer-13614c-fields). */
.shaded-tools .shaded-upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.shaded-tools input[type="file"] {
  max-width: 100%;
}
.shaded-browsers {
  margin-top: 8px;
}
.shaded-download-note {
  flex-basis: 100%;
  margin: 0;
}
.shaded-review {
  flex-basis: 100%;
  margin-top: 8px;
}
.shaded-review ul {
  margin: 8px 0;
  padding-left: 20px;
}
.shaded-review li + li {
  margin-top: 4px;
}
.shaded-review-label {
  font-weight: 600;
}
.shaded-review-value {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.shaded-review-warning {
  font-weight: 600;
}

/* The shaded-section editor (design D7): a full-screen layer beside #app,
   with the toolbar on top and the form's pages below. */
.shaded-editor {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: var(--vt-muted);
  color: var(--vt-ink);
}
.shaded-editor:focus {
  outline: none;
}
.shaded-editor-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 12px 16px;
  background: var(--vt-surface);
  border-bottom: 1px solid var(--vt-line);
}
.shaded-editor-heading {
  flex: 1 1 280px;
  min-width: 0;
}
.shaded-editor-heading h2 {
  margin: 0;
  font-size: 18px;
}
.shaded-editor-hint {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--vt-muted);
}
.shaded-editor-status {
  flex: 1 1 220px;
  margin: 0;
  font-size: 14px;
  color: var(--vt-progress);
}
.shaded-editor-status.error {
  color: var(--vt-error);
}
.shaded-editor-actions {
  display: flex;
  gap: 8px;
}
.shaded-editor-pages {
  flex: 1;
  overflow: auto;
  padding: 16px;
}
.shaded-editor-page {
  position: relative;
  margin: 0 auto 16px;
  background: #fff;
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.3);
}
.shaded-editor-page canvas {
  display: block;
}
.shaded-editor-confirm {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgb(42 39 69 / 0.45);
}
.shaded-editor-confirm[hidden] {
  display: none;
}
.shaded-editor-confirm-box {
  max-width: 400px;
  padding: 24px;
  border-radius: var(--vt-radius);
  background: var(--vt-surface);
  box-shadow: 0 22px 80px rgb(21 44 50 / 0.19);
}
.shaded-editor-confirm-box p {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
}

/* pdf.js's annotation layer, the part of its viewer stylesheet the editor
   uses (pdfjs-dist 6.4.299, web/pdf_viewer.css): the fields sit over the
   drawn page, and a box shows its own ticked or unticked drawing. */
.shaded-editor .annotationLayer {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  transform-origin: 0 0;
  color-scheme: only light;
}
.shaded-editor .annotationLayer section {
  position: absolute;
  text-align: initial;
  pointer-events: auto;
  box-sizing: border-box;
  transform-origin: 0 0;
  user-select: none;
}
.shaded-editor .annotationLayer .textWidgetAnnotation :is(input, textarea),
.shaded-editor .annotationLayer .buttonWidgetAnnotation.checkBox input {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  /* The page's own field rule (padding 13px 14px, min-height --vt-tap, a
     7px radius) reaches these inputs too. A field is as tall as its box on
     the form, so each is set back here, or a 16px box is 44px tall and its
     text lands on the row below. */
  min-height: 0;
  margin: 0;
  padding: 0 2px;
  vertical-align: top;
  border: 2px solid transparent;
  border-radius: 0;
  background: rgb(0 54 255 / 0.13);
  font: calc(9px * var(--total-scale-factor, 1)) sans-serif;
  line-height: normal;
  color: black;
}
.shaded-editor .annotationLayer .textWidgetAnnotation textarea {
  resize: none;
}
.shaded-editor .annotationLayer .textWidgetAnnotation :is(input, textarea):hover,
.shaded-editor .annotationLayer .buttonWidgetAnnotation.checkBox input:hover {
  border-color: var(--vt-ink);
  border-radius: 2px;
}
.shaded-editor .annotationLayer .textWidgetAnnotation :is(input, textarea):focus,
.shaded-editor .annotationLayer .buttonWidgetAnnotation.checkBox input:focus {
  background: none;
  border: 2px solid Highlight;
  border-radius: 2px;
  outline: 1px solid Canvas;
}
.shaded-editor .annotationLayer .buttonWidgetAnnotation.checkBox input {
  appearance: none;
}
.shaded-editor .annotationLayer .buttonWidgetAnnotation.checkBox:has([data-canvas-name="checked"]) input:checked,
.shaded-editor .annotationLayer .buttonWidgetAnnotation.checkBox:has([data-canvas-name="unchecked"]) input:not(:checked) {
  background: none;
}
.shaded-editor .annotationLayer .buttonWidgetAnnotation.checkBox [data-canvas-name="checked"]:has(~ input:not(:checked)),
.shaded-editor .annotationLayer .buttonWidgetAnnotation.checkBox [data-canvas-name="unchecked"]:has(~ input:checked) {
  display: none;
}
.shaded-editor .annotationLayer .annotationContent {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.shaded-editor .annotationLayer .hasOwnCanvas:not(.sandboxModified) :is(input, textarea) {
  display: none;
}
.shaded-editor .annotationLayer .hasOwnCanvas.sandboxModified canvas.annotationContent {
  display: none;
}
@media (forced-colors: active) {
  .shaded-editor .annotationLayer .textWidgetAnnotation :is(input, textarea),
  .shaded-editor .annotationLayer .buttonWidgetAnnotation.checkBox input {
    border-color: ActiveText;
  }
}

/* 1.5's read-only details (add-form-14446-consent). */
.sign-details {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}
.sign-signer {
  padding: 8px 24px 16px;
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius);
  background: var(--vt-surface);
}
.sign-signer dl {
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
  gap: 4px 12px;
  margin: 0;
}
.sign-signer dt {
  color: var(--vt-intake-hint);
}
.sign-signer dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
  color: var(--vt-intake-ink);
}
/* The summary page (gate-review-and-redesign-summary): intro, tools, fold, sections. */
.summary-intro p {
  margin: 0 0 10px;
  color: var(--vt-intake-ink);
}
.summary-intro + .summary-tools {
  margin-top: 12px;
}
.summary-fold {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin: 12px 0 8px;
}
.summary-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--vt-tap);
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.summary-toggle .icon {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.15s;
}
.summary-toggle[aria-expanded="false"] .icon {
  transform: rotate(-90deg);
}
.summary-body[hidden] {
  display: none;
}

/* ---- The progress page's open documents ---- */
.open-documents {
  padding: 27px 30px;
  margin-top: 22px;
}
.open-documents .doc-list,
.open-documents .bring-list {
  margin-top: 12px;
}
.open-documents .doc-card {
  background: var(--vt-background);
}

/* ---- Phone width: the rail folds into a bar with "All steps" ---- */
@media (max-width: 800px) {
  .rail-phone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0 10px;
    font-weight: 600;
    color: var(--vt-intake-ink);
  }
  .rail-tree:not(.is-open) {
    display: none;
  }
  .rail-tree.is-open {
    margin-bottom: 12px;
    padding: 8px;
    border: 1px solid var(--vt-line);
    border-radius: var(--vt-radius);
    background: var(--vt-surface);
  }
  /* Part 4b's phone rules shrink its old rail's links; the tree's keep their words. */
  .intake-v2 .rail-tree .rail-link {
    width: auto;
    padding: 6px 4px;
  }
  .open-documents {
    padding: 23px;
  }
  .doc-card,
  .alerts-panel,
  .summary-meta,
  .summary-step {
    padding: 16px;
  }
  .warning-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .summary-print .detail-row {
    flex-direction: column;
    gap: 2px;
  }
  .summary-print .detail-row > strong {
    text-align: left;
  }
}

/* ---- Print: only the summary, while the body carries print-summary ---- */
@media print {
  body.print-summary #app > * { display: block; }
  body.print-summary * { visibility: hidden; }
  body.print-summary .summary-print, body.print-summary .summary-print * { visibility: visible; }
  body.print-summary .summary-print { position: absolute; inset: 0 auto auto 0; width: 100%; }
  body.print-summary .summary-tools { display: none; }
  body.print-summary .summary-sub-head .inline { display: none; }
  .summary-print .summary-body[hidden] { display: block; }
  .summary-toggle .icon { display: none; }
  body.print-summary .summary-meta,
  body.print-summary .summary-step {
    border: 0;
    padding: 0;
  }
}
/* end part 4b2 */

/* Part 4c: staff views */
/* The version-2 answers, read by step and sub-step. */
.answers-v2 .wording-used {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--vt-muted);
}
.answers-step {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--vt-line);
}
.answers-step > h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.answers-sub {
  margin-top: 10px;
}
.answers-sub > h4 {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--vt-muted);
}
.answers-v2 .detail-row {
  flex-wrap: wrap;
  border-bottom: 1px solid var(--vt-line);
}
.answers-v2 .detail-row > span,
.contact-card .detail-row > span {
  flex-shrink: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
/* A client phone (D5, DESIGN.md §8): masked first. An allowed viewer's
   number is in the page but clipped like .sr-only (screen readers read it)
   until hover or focus; focus stays after a click, so it can be copied. */
.phone-mask {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
  border-radius: 4px;
}
.phone-mask .icon {
  width: 16px;
  height: 16px;
  color: var(--vt-phase-available);
}
.phone-mask .phone-full {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.phone-mask:not(.is-locked):hover .phone-full,
.phone-mask:not(.is-locked):focus-within .phone-full {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip-path: none;
}
.phone-mask:not(.is-locked):hover .phone-dots,
.phone-mask:not(.is-locked):focus-within .phone-dots {
  display: none;
}
/* A click focuses the mask and holds the number open (DESIGN.md §8): a light
   outline shows why it stays; keyboard focus gets the full ring below. */
.phone-mask[tabindex]:focus {
  outline: 2px solid var(--vt-primary-line);
  outline-offset: 2px;
}
.phone-mask[tabindex]:focus-visible {
  outline: 3px solid var(--vt-primary);
  outline-offset: 2px;
}
.phone-mask.is-locked,
.phone-mask.is-locked .icon {
  color: var(--vt-muted);
  font-weight: 400;
}
.phone-mask.is-locked {
  cursor: help;
}
.answers-v2 .detail-row > strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
/* A required answer nobody gave: the words say it, the colour only helps. */
.detail-row.is-missing > strong {
  color: var(--vt-stage-stopped);
}
.detail-row.is-missing {
  background: var(--vt-stage-stopped-bg);
  padding-inline: 8px;
  border-radius: var(--vt-radius-sm);
}
/* "Not sure": an icon and the words, never colour alone. */
.detail-row.is-not-sure {
  background: var(--vt-stage-amend-bg);
  padding-inline: 8px;
  border-radius: var(--vt-radius-sm);
}
.not-sure-flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--vt-stage-amend);
  background: var(--vt-surface);
  color: var(--vt-stage-amend);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}
.not-sure-flag .icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.not-sure-count {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--vt-stage-amend);
  border-radius: var(--vt-radius-sm);
  background: var(--vt-stage-amend-bg);
  color: var(--vt-stage-amend);
  font-size: 13px;
  font-weight: 600;
}
.not-sure-count .icon {
  flex-shrink: 0;
}

/* The contact card and the materials card. */
.contact-card .btn,
.materials-card .btn {
  margin-top: 12px;
}
.contact-card .staff-form .btn + .btn {
  margin-left: 8px;
}
.check-group {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.check-group > legend {
  padding: 0;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--vt-ink);
}
.check-group .checkbox-row.small {
  min-height: var(--vt-tap);
  margin: 0;
  align-items: center;
}
.check-group .checkbox-row input {
  height: 20px;
  width: 20px;
}
.check-group .checkbox-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.material-recorded {
  display: block;
  color: var(--vt-muted);
  font-size: 12px;
}
.materials-card .staff-form {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
@media (max-width: 480px) {
  .contact-card .staff-form .btn {
    width: 100%;
  }
  .contact-card .staff-form .btn + .btn {
    margin-left: 0;
  }
  .not-sure-flag {
    margin-left: 0;
    margin-top: 4px;
  }
}
/* The staff document checklist (Documents tab). */
.doc-checklist h3 {
  margin: 20px 0 8px;
  font-size: 15px;
}
.doc-rows {
  display: grid;
  gap: 10px;
}
.doc-row {
  padding: 14px 16px;
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius);
  background: var(--vt-surface);
}
.doc-row:focus-visible,
.doc-row .doc-status:focus-visible {
  outline: 3px solid var(--vt-primary);
  outline-offset: 2px;
}
.doc-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
}
.doc-label {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--vt-ink);
}
.doc-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--vt-muted);
}
.doc-group .icon {
  width: 14px;
  height: 14px;
}
.doc-group.is-needed {
  color: var(--vt-stage-prep);
}
.doc-row .doc-owner,
.doc-row .doc-why {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--vt-muted);
}
.doc-row .doc-status {
  margin-top: 8px;
}
.doc-row .doc-marks {
  margin-top: 10px;
}
@media (max-width: 480px) {
  .doc-row .doc-marks .btn {
    flex: 1 1 100%;
  }
}
/* The version-2 Add a case: step headings, one accordion per part, the
   side column and the bottom bar. */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 6px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--vt-muted);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
}
.breadcrumb .btn.inline {
  min-height: var(--vt-tap);
}
.add-case-v2 .application-meta {
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--vt-muted);
}
.add-case-v2 .add-case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}
/* Not sticky: the materials card is taller than a laptop screen, and its
   Save button must be reachable without scrolling to the end of the form. */
.add-case-v2 .add-case-side {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.add-case-v2 .add-case-side .panel {
  padding: 18px 20px;
}
.add-case-v2 .add-case-side h2 {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vt-muted);
}
.add-case-v2 .materials-card input:disabled + span {
  color: var(--vt-muted);
}
.add-step {
  margin: 0 0 24px;
}
.add-step > h2 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--vt-ink);
}
.add-sub {
  margin: 0 0 10px;
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius);
  background: var(--vt-surface);
}
.add-sub-head {
  margin: 0;
  font-size: inherit;
}
.add-sub-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: var(--vt-tap);
  padding: 12px 16px;
  border: 0;
  border-radius: var(--vt-radius);
  background: none;
  font: inherit;
  font-weight: 600;
  text-align: left;
  color: var(--vt-ink);
  cursor: pointer;
}
.add-sub-toggle:focus-visible {
  outline: 3px solid var(--vt-primary);
  outline-offset: 2px;
}
.add-sub-toggle > .icon {
  flex-shrink: 0;
  transform: rotate(-90deg);
}
.add-sub-toggle[aria-expanded="true"] > .icon {
  transform: none;
}
.add-sub-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
/* "Needs answers": a glyph and the words, never colour alone. */
.add-sub-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  font-size: 13px;
}
.add-sub-status.is-needs {
  color: var(--vt-age-soon-ink);
}
.add-sub-status.is-needs::before {
  content: "!";
  content: "!" / "";
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--vt-stage-amend-bg);
  font-size: 10px;
  font-weight: 700;
}
.add-sub-summary {
  margin: 0;
  padding: 0 16px 12px 42px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  color: var(--vt-muted);
}
.add-sub-body {
  padding: 0 16px 16px;
}
.add-sub-body .q-card {
  margin-top: 10px;
  padding: 16px;
}
.add-sub-body .q-heading {
  font-size: 16px;
}
.add-docs-title {
  margin: 16px 0 8px;
  font-size: 15px;
}
.add-sub-body .doc-list {
  display: grid;
  gap: 10px;
}
.add-case-v2 .doc-marks .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
/* The bar follows the page down and settles after the last part, so it never
   covers the last control; on a phone it simply sits there. */
.add-case-v2 .add-case-bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 16px;
  padding: 14px 22px;
  border-top: 1px solid var(--vt-line);
  background: var(--vt-surface);
}
.add-case-count {
  flex: 1 1 160px;
  margin: 0;
  font-weight: 600;
  color: var(--vt-ink);
}
.add-case-count:focus-visible {
  outline: 3px solid var(--vt-primary);
  outline-offset: 2px;
}
.add-case-confirm {
  flex: 1 1 260px;
  min-width: 0;
}
.add-case-confirm .checkbox-row {
  min-height: var(--vt-tap);
  margin: 0;
  align-items: center;
}
.add-case-confirm .field-note {
  margin: 2px 0 0;
  font-size: 12px;
}
.add-case-v2 .add-case-bar .btn {
  margin: 0;
}
/* Above 760px the bar is sticky and covers the foot of the window, so the
   browser's own scroll-into-view on Tab would leave the focused field under
   it. Measured at its widest wrap (761-800px) the bar is 173px tall; 12.5rem
   (200px) clears it with a margin and grows with the reader's text size. */
@media (min-width: 761px) {
  html:has(.add-case-v2) {
    scroll-padding-bottom: 12.5rem;
  }
}
@media (max-width: 1024px) {
  .add-case-v2 .add-case-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .add-case-v2 .add-case-bar {
    position: static;
    padding: 12px 16px;
  }
  .add-case-v2 .add-case-bar .btn {
    flex: 1 1 100%;
  }
  .add-sub-toggle {
    padding: 12px;
  }
  .add-sub-summary {
    padding: 0 12px 12px;
  }
  .add-sub-body {
    padding: 0 12px 12px;
  }
}
/* end part 4c */

/* Part 4d: Chinese on screen (spec 2026-10-05 §5). System fonts only, through
   the two font variables every rule already uses; each script gets its own
   regional glyphs; spacing that suits Latin is undone. */
html:lang(zh-Hans) {
  --vt-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --vt-serif: Georgia, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
html:lang(zh-Hant) {
  --vt-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  --vt-serif: Georgia, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}
/* Same specificity as `.narrow h1`, `.hero h1` and `.welcome-card h2`, and
   later, so these win. The other selectors are the client screens' captions
   that carry Latin tracking: the action card's label, the ID pill's and the
   reference card's captions, the rail's "you are here" and the same-day
   list's "maybe" note. */
:lang(zh) .overline,
:lang(zh) h1,
:lang(zh) h2,
:lang(zh) .action-label,
:lang(zh) .id-pill small,
:lang(zh) .reference-card > p,
:lang(zh) .reference-card > span small,
:lang(zh) .rail-here,
:lang(zh) .bring-maybe {
  letter-spacing: 0;
}
:lang(zh) p,
:lang(zh) li,
:lang(zh) .field-note {
  line-height: 1.75;
}

/* The language switch: hover as the client bar's text buttons do; the focus
   ring sits close, so it never spills onto the next button. */
.language-switch .lang:not(.current):hover {
  background: var(--vt-primary-soft);
  color: var(--vt-ink);
}
.language-switch .lang:focus-visible {
  position: relative;
  outline-offset: 1px;
}

/* Whose words the office's request is, above its title and its message. */
.request-label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--vt-stage-amend);
}
/* end part 4d */

.loading-line,
.unloaded-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0;
  color: #6c6886;
  font-size: 15px;
}
.loading-line .icon,
.unloaded-line .icon { flex: none; width: 20px; height: 20px; }
.unloaded-line { color: var(--vt-error); }
@keyframes vt-spin { to { transform: rotate(360deg); } }
.icon.spin { animation: vt-spin 0.9s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .icon.spin { animation: none; }
}

/* The pressed button while its press runs (design D5). */
.btn.is-busy { cursor: progress; }
.btn.is-busy .icon.spin { width: 16px; height: 16px; margin-right: 6px; }

/* ---- The contact log (change add-contact-log): the Log contact form's
   button groups, the Contacts tab's entries, and the task's own list. The
   groups are real radios inside a fieldset; only the dot is hidden, so the
   keyboard and screen readers get native radio groups. ---- */
.contact-form .seg-group {
  border: 0;
  margin: 0 0 12px;
  padding: 0;
  min-width: 0;
}
.contact-form .seg-group[hidden],
.contact-form [data-other-name][hidden] {
  display: none;
}
.contact-form .seg-group legend {
  padding: 0;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--vt-ink);
}
.seg-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
}
.seg {
  position: relative;
  display: inline-flex;
  max-width: 100%;
}
.seg input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
.seg span {
  display: inline-flex;
  align-items: center;
  min-height: var(--vt-tap);
  padding: 0 14px;
  border: 1px solid var(--vt-primary-line);
  border-radius: var(--vt-radius-sm);
  background: var(--vt-surface);
  color: var(--vt-ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.seg:hover span {
  background: var(--vt-primary-soft);
}
.seg input:checked + span {
  border-color: var(--vt-primary);
  background: var(--vt-primary);
  color: #fff;
}
.seg input:focus-visible + span {
  outline: 3px solid var(--vt-primary);
  outline-offset: 2px;
}
.contact-form input[type="datetime-local"] {
  max-width: 100%;
}
.contact-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.contact-list,
.contact-task-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
}
.contact-entry {
  border: 1px solid var(--vt-line);
  border-radius: 8px;
  padding: 12px 14px;
  overflow-wrap: anywhere;
}
.contact-entry:focus-visible {
  outline: 3px solid var(--vt-primary);
  outline-offset: 2px;
}
.contact-line {
  margin: 0;
}
.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 6px 0 0;
  color: var(--vt-muted);
  font-size: 12px;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.contact-actions .btn,
.contacts-panel .section-head .btn {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}
.contact-versions {
  margin-top: 8px;
  font-size: 13px;
}
.contact-versions summary {
  cursor: pointer;
  color: var(--vt-muted);
}
.contact-versions summary:focus-visible {
  outline: 3px solid var(--vt-primary);
  outline-offset: 2px;
}
.contact-versions ol {
  margin: 6px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}
.contact-versions small {
  display: block;
  color: var(--vt-muted);
  font-size: 12px;
}
.contact-task-list {
  margin: 8px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--vt-line);
  overflow-wrap: anywhere;
}
.office-drawer .contact-task-list,
.office-drawer .contact-form {
  border-color: var(--vt-line);
}
@media (max-width: 420px) {
  .seg span {
    padding: 0 10px;
    font-size: 13px;
  }
}

/* The preparer and reviewer questionnaires, inline in "Your next step".
   Showing and hiding is CSS alone: the payload builders drop an answer that
   is hidden, so a stale value is never sent. */
.q-form .field,
.q-form .check-group {
  margin-top: 12px;
}
.q-when-yes,
.q-when-in-person {
  display: none;
}
.staff-form:has(input[name="wentOver"][value="yes"]:checked) .q-when-yes,
.staff-form:has(input[name="signMethod"][value="in_person"]:checked) .q-when-in-person {
  display: block;
}
.q-exit-group {
  border: 1px solid var(--vt-line);
  border-radius: 8px;
  padding: 0 12px;
  margin-top: 8px;
}
.q-exit-group > summary {
  cursor: pointer;
  min-height: var(--vt-tap);
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
}
.q-exit-group-body {
  padding-bottom: 12px;
}
/* An Exit Form group shows only what its Result needs (#108). */
.q-exit-when-amount,
.q-exit-when-refund,
.q-exit-when-owe,
.q-exit-when-debit {
  display: none;
}
.q-exit-group-body:has(input[name$=".result"][value="refund"]:checked) .q-exit-when-amount,
.q-exit-group-body:has(input[name$=".result"][value="owe"]:checked) .q-exit-when-amount,
.q-exit-group-body:has(input[name$=".result"][value="refund"]:checked) .q-exit-when-refund,
.q-exit-group-body:has(input[name$=".result"][value="owe"]:checked) .q-exit-when-owe,
.q-exit-group-body:has(input[name$=".result"][value="owe"]:checked):has(input[name$=".oweBy"][value="direct_debit"]:checked)
  .q-exit-when-debit {
  display: block;
}
.q-compare {
  margin-bottom: 8px;
  overflow-x: auto;
}
.q-compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.q-compare th,
.q-compare td {
  text-align: left;
  vertical-align: top;
  padding: 6px 8px;
  border-bottom: 1px solid var(--vt-line);
}
.q-compare thead th {
  color: var(--vt-muted);
  font-weight: 600;
}
.q-changed {
  background: var(--vt-stage-amend-bg);
  color: var(--vt-stage-amend);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 600;
}
.review-attempt h4 {
  margin: 12px 0 4px;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--vt-muted);
}

/* Auto-fill fictional data (demo-fill.mjs): small, out of the way, dashed so
   it reads as a demo helper rather than a step of the work. */
.btn.demo-fill {
  display: inline-flex;
  margin: 0 0 12px;
  border-style: dashed;
  font-size: 0.85em;
}

/* ---- Case labels (change add-case-labels) ---- */
.case-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
}
.board-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 0;
}
.case-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--vt-line);
  border-radius: 999px;
  background: var(--vt-surface);
  color: var(--vt-ink);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
}
.case-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vt-muted);
}
.case-label[data-color="sky"] {
  background: var(--vt-label-sky-bg);
  color: var(--vt-label-sky-ink);
  border-color: var(--vt-label-sky-line);
}
.case-label[data-color="sky"]::before {
  background: var(--vt-label-sky);
}
.case-label[data-color="amber"] {
  background: var(--vt-label-amber-bg);
  color: var(--vt-label-amber-ink);
  border-color: var(--vt-label-amber-line);
}
.case-label[data-color="amber"]::before {
  background: var(--vt-label-amber);
}
.case-label[data-color="pink"] {
  background: var(--vt-label-pink-bg);
  color: var(--vt-label-pink-ink);
  border-color: var(--vt-label-pink-line);
}
.case-label[data-color="pink"]::before {
  background: var(--vt-label-pink);
}
.case-label[data-color="green"] {
  background: var(--vt-label-green-bg);
  color: var(--vt-label-green-ink);
  border-color: var(--vt-label-green-line);
}
.case-label[data-color="green"]::before {
  background: var(--vt-label-green);
}
.case-label[data-color="violet"] {
  background: var(--vt-label-violet-bg);
  color: var(--vt-label-violet-ink);
  border-color: var(--vt-label-violet-line);
}
.case-label[data-color="violet"]::before {
  background: var(--vt-label-violet);
}
.case-label[data-color="slate"] {
  background: var(--vt-label-slate-bg);
  color: var(--vt-label-slate-ink);
  border-color: var(--vt-label-slate-line);
}
.case-label[data-color="slate"]::before {
  background: var(--vt-label-slate);
}
.case-label-remove {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
  margin-right: -4px;
  min-width: 24px;
  min-height: 24px;
  cursor: pointer;
  border-radius: 50%;
}
.case-label-remove:hover {
  background: rgb(0 0 0 / 0.08);
}
.btn.label-add {
  min-height: 32px;
  padding: 4px 10px;
  font-size: 13px;
  border: 1px dashed var(--vt-line);
  border-radius: 999px;
}
.label-menu {
  margin-top: 10px;
  max-width: 420px;
  padding: 12px 14px;
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius);
  background: var(--vt-surface);
  box-shadow: 0 6px 20px rgb(42 39 69 / 0.12);
}
.label-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.label-search input,
.label-form-name input {
  width: 100%;
  min-height: var(--vt-tap);
  padding: 8px 12px;
  border: 1px solid var(--vt-line);
  border-radius: 8px;
  font: inherit;
}
.label-menu-list {
  list-style: none;
  margin: 8px 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.label-menu-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.label-toggle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: var(--vt-tap);
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.label-toggle:hover {
  background: var(--vt-background);
}
.label-toggle[aria-pressed="true"] {
  border-color: var(--vt-primary-line);
  background: var(--vt-primary-soft);
}
.label-toggle-state {
  font-size: 12px;
  color: var(--vt-muted);
}
.label-form {
  display: grid;
  gap: 10px;
}
.label-form-name {
  display: grid;
  gap: 4px;
  font-size: 13px;
}
.label-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.label-color-choice {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.label-color-choice:has(input:checked) .case-label {
  outline: 2px solid var(--vt-primary);
  outline-offset: 1px;
}
.label-form-actions {
  display: flex;
  gap: 8px;
}
.label-error {
  margin: 0;
  color: var(--vt-phase-attention);
  font-size: 13px;
}

/* ---- Posted updates (change add-posted-updates) ---- */
/* The sidebar's Notifications entry and its unread badge. */
.btn.nav-link.nav-notifications .nav-label {
  flex: 1 1 auto;
  text-align: left;
}
.nav-count {
  font-weight: 700;
}

.nav-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--vt-badge);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

/* The Notifications panel: one card per update, tinted while it is unread or
   waits for a confirmation. Never colour alone: the button or the
   Confirmed line says the same. */
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.feed-item {
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius);
  background: var(--vt-surface);
  padding: 14px 16px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.feed-item.is-unread {
  background: var(--vt-primary-soft);
  border-color: var(--vt-primary-line);
  box-shadow: inset 3px 0 0 var(--vt-primary);
}
.feed-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--vt-muted);
}
.feed-poster {
  font-weight: 600;
  color: var(--vt-ink);
}
.feed-kind,
.update-tag {
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.feed-kind.kind-irs_policy,
.update-tag.kind-irs_policy {
  background: var(--vt-stage-intake-bg);
  color: var(--vt-stage-intake);
}
.feed-kind.kind-office_notice,
.update-tag.kind-office_notice {
  background: var(--vt-stage-amend-bg);
  color: var(--vt-stage-amend);
}
.feed-flag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--vt-ink);
}
.feed-flag .icon {
  width: 14px;
  height: 14px;
}
.feed-date {
  margin-left: auto;
}
.office-drawer .feed-title,
.feed-title {
  font-size: 16px;
  line-height: 1.35;
  margin: 0 0 4px;
  color: var(--vt-ink);
}
.feed-message {
  margin: 0;
  white-space: pre-line;
  color: var(--vt-ink);
}
.feed-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 8px;
}
.feed-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--vt-primary);
  font-weight: 600;
}
.feed-link .icon {
  width: 16px;
  height: 16px;
}
.btn.feed-confirm {
  padding: 6px 14px;
  font-size: 14px;
  color: var(--vt-primary);
}
.feed-confirmed {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  color: var(--vt-progress);
  font-weight: 600;
}
.feed-confirmed .icon {
  width: 16px;
  height: 16px;
}
.feed-empty {
  margin: 12px 0;
  color: var(--vt-muted);
}
.feed-stale {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
  font-size: 13px;
  color: var(--vt-muted);
}
.feed-footer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--vt-line);
  font-size: 12px;
  color: var(--vt-muted);
}
.feed-footer .icon,
.feed-stale .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Post an update: the form beside its preview, stacked below 900px. */
.update-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}
@media (max-width: 900px) {
  .update-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
.update-form-panel,
.update-preview-panel,
.posted-updates {
  padding: 20px 22px;
  border-radius: var(--vt-radius);
  min-width: 0;
}
.update-form-panel h2,
.update-preview-panel h2,
.posted-updates h2 {
  font-size: 17px;
  letter-spacing: 0;
  margin-bottom: 16px;
}
.update-preview-panel h2 small {
  font-weight: 400;
  color: var(--vt-muted);
  margin-left: 6px;
}
/* Another admin's version after a save conflict: their message keeps its
   line breaks, and a long one wraps instead of widening the form. */
.update-conflict p + p {
  margin-top: 6px;
}
.update-conflict .update-conflict-message {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.update-conflict p span {
  font-weight: 600;
}
.update-form fieldset {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.update-form legend {
  padding: 0;
  margin-bottom: 9px;
  font-size: 14px;
  font-weight: 550;
  color: #3b5158;
}
.update-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.update-choice,
.update-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius);
  cursor: pointer;
  min-width: 0;
}
.update-choice:has(input:checked) {
  border-color: var(--vt-primary);
  background: var(--vt-primary-soft);
}
.update-choice input,
.update-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--vt-primary);
}
.update-choice span,
.update-check span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.update-choice small,
.update-check small {
  color: var(--vt-muted);
  font-size: 12px;
}
.update-check {
  margin-bottom: 12px;
}
.update-form .field {
  margin-bottom: 8px;
}
.update-form .field + .field-note {
  margin: 0 0 8px;
  font-size: 12px;
}
.update-form .field-error {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--vt-error);
}
.update-form [aria-invalid="true"] {
  border-color: var(--vt-error);
}
.update-link-field,
.update-row-fields {
  margin-bottom: 14px;
}
.update-row-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 16px;
}
.update-audience-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
}
.update-audience .checkbox-row,
.update-roles .checkbox-row {
  margin: 0;
  min-height: var(--vt-tap);
}
.update-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
  margin-top: 4px;
  padding-left: 4px;
}
.update-roles[hidden],
.update-link-field[hidden] {
  display: none;
}
.update-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--vt-line);
}
.feed-sample {
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius);
  padding: 12px 14px;
}
.feed-sample-head {
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--vt-ink);
}
.feed-sample .feed-item {
  background: var(--vt-primary-soft);
}
.update-shown-to {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--vt-muted);
}

/* The Posted updates table: counts with bars. */
.posted-updates .board-foot {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--vt-muted);
}
.updates-table .update-row-title {
  display: block;
  min-width: 180px;
  white-space: normal;
  font-weight: 500;
}
.updates-table .update-audience-cell {
  white-space: normal;
  min-width: 100px;
}
.btn.update-count {
  min-height: var(--vt-tap);
  padding: 4px 6px;
  gap: 8px;
  background: transparent;
  color: var(--vt-ink);
  font-weight: 500;
}
.btn.update-count:hover {
  background: var(--vt-primary-soft);
}
.update-count meter {
  width: 64px;
  height: 6px;
}
.update-count meter::-webkit-meter-bar {
  background: var(--vt-line);
  border: 0;
  border-radius: 999px;
  height: 6px;
}
.update-count meter::-webkit-meter-optimum-value {
  background: var(--vt-primary);
  border-radius: 999px;
}
.update-count meter::-moz-meter-bar {
  background: var(--vt-primary);
  border-radius: 999px;
}
.update-status {
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 600;
  background: var(--vt-stage-prep-bg);
  color: var(--vt-stage-prep);
}
.update-status.unpublished {
  background: var(--vt-stage-stopped-bg);
  color: var(--vt-stage-stopped);
}
.update-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
}
.update-row-actions .btn.text {
  color: var(--vt-primary);
  padding: 8px 10px;
}
@media (max-width: 480px) {
  .update-form-panel,
  .update-preview-panel,
  .posted-updates {
    padding: 16px 14px;
  }
  .update-actions .btn {
    flex: 1 1 auto;
  }
}

/* Season settings (change add-season-settings): the season card with its two
   links and the SIDN row, and the Site coordinators card. One column at any
   width; long links and emails wrap instead of widening the page. */
.season-settings {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.settings-card {
  padding: 20px 22px;
  border-radius: var(--vt-radius);
  min-width: 0;
  overflow-wrap: anywhere;
}
.settings-card .card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 16px;
}
.settings-card .card-head h2 {
  font-size: 17px;
  letter-spacing: 0;
  margin: 0;
}
.settings-card .card-head h2 .badge {
  margin-left: 6px;
  vertical-align: middle;
}
.settings-card .field-error {
  margin: -14px 0 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--vt-error);
}
.settings-notice,
.settings-readonly {
  margin: 0 0 16px;
  padding: 12px 14px;
  font-size: 14px;
}
.settings-readonly {
  background: var(--vt-primary-soft);
  color: var(--vt-muted);
}
.settings-actions {
  display: flex;
  justify-content: flex-end;
}
.settings-value {
  margin-bottom: 18px;
}
.settings-label {
  display: block;
  font-size: 14px;
  font-weight: 550;
  margin-bottom: 6px;
  color: #3b5158;
}
.settings-link {
  margin: 0 0 12px;
}
.settings-sidn {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--vt-line);
}
.settings-sidn h3 {
  font-size: 15px;
  margin: 0 0 8px;
}
.settings-sidn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 14px;
}
.settings-sidn-row p {
  margin: 0;
}
.settings-sidn .field-note {
  margin: 0;
}
.sc-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.sc-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--vt-line);
}
.sc-person {
  min-width: 0;
}
.sc-person small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--vt-muted);
}
.sc-list .danger-text {
  color: var(--vt-error);
  flex: none;
}
.sc-add {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.sc-add select {
  flex: 1 1 220px;
  width: auto;
  min-width: 0;
}
.sc-log summary {
  cursor: pointer;
  font-weight: 550;
  min-height: var(--vt-tap);
  display: flex;
  align-items: center;
}
.sc-log ul {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  font-size: 14px;
}
.sc-log li {
  padding: 6px 0;
}
#sidn-form .drawer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
#sidn-form .field-error {
  margin: -14px 0 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--vt-error);
}
@media (max-width: 480px) {
  .settings-card {
    padding: 16px 14px;
  }
  .sc-add .btn {
    flex: 1 1 auto;
  }
}

/* Volunteers: the Mark reviewed reason row and the setup screen's reason (change add-my-profile) */
.volunteer-review {
  margin: 0 0 12px;
}
.setup-reason {
  margin: 4px 0 0;
}
/* My profile (change add-my-profile): the sidebar's account link and the screen */
.account-row .btn.account-link {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 2px 8px;
  text-align: left;
  color: var(--vt-ink);
  font-weight: 600;
}
.account-row .btn.account-link .account-name {
  font-weight: 400;
}
/* A cleared window's account row is one link (icon, "My profile", the name):
   the whole row takes the hover and current colours, like the nav links above
   it, instead of a pill around the text beside a loose icon. The button's
   ::after covers the row, so the icon is part of the target too. */
.account-row:has(.account-link) {
  position: relative;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s;
}
.account-row:has(.account-link:hover) {
  background: var(--vt-background);
}
.account-row:has(.account-link.current) {
  background: var(--vt-primary-soft);
}
.account-row:has(.account-link) > svg {
  flex: none;
  color: var(--vt-muted);
}
.account-row:has(.account-link.current) > svg {
  color: var(--vt-primary);
}
.account-row .btn.nav-link.account-link,
.account-row .btn.nav-link.account-link:hover,
.account-row .btn.nav-link.account-link.current {
  min-height: 0;
  padding: 0;
  gap: 1px;
  background: transparent;
  color: var(--vt-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  transform: none;
}
.account-row .btn.nav-link.account-link.current {
  color: var(--vt-primary);
}
.account-row .btn.account-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
}
.account-row .btn.account-link .account-name {
  font-size: 12px;
  font-weight: 400;
  color: var(--vt-muted);
}
/* The sections are cards like Season settings': inner padding, a smaller
   heading, and no extra rule above the form, since the card already frames it. */
.my-profile-section {
  margin-bottom: 20px;
  padding: 20px 22px;
  border-radius: var(--vt-radius);
  min-width: 0;
  overflow-wrap: anywhere;
}
.my-profile-section h2 {
  margin: 0 0 16px;
  font-size: 17px;
  letter-spacing: 0;
}
.my-profile-section .staff-form {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
/* The email is the sign-in and can't be changed here: show it as read-only. */
.my-profile-section input[readonly] {
  background: var(--vt-background);
  color: var(--vt-muted);
  cursor: default;
}
.my-profile-status {
  margin: 0 0 22px;
  font-size: 14px;
}
/* `.field` sets `display: block`, which beats the browser's own [hidden]:
   without this, "Other language" shows before Other is ticked. */
.my-profile-section .field[hidden] {
  display: none;
}
/* Short choices sit side by side and wrap, so Works, Languages and Usual days
   don't make a long single column. Each keeps its full tap height. */
.my-profile-section .check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin-bottom: 18px;
}
/* My profile's "This season" card: the office's records as label / value rows
   (Roles, Certificates), and "Managed by the office" as the card's subtitle. */
#my-profile-season > h2 {
  margin-bottom: 2px;
}
#my-profile-season > p {
  margin: 0;
  font-size: 14px;
}
#my-profile-season > p.muted:first-of-type {
  margin-bottom: 16px;
  font-size: 13px;
}
#my-profile-season > p:has(> span.muted:first-child) {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--vt-line);
}
#my-profile-season > p > span.muted:first-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--vt-muted);
}
#my-profile-season .volunteer-chips {
  gap: 6px;
}
#my-profile-season .volunteer-chip {
  padding: 3px 10px;
  border-color: var(--vt-primary-line);
  background: var(--vt-primary-soft);
  color: var(--vt-primary);
  font-size: 13px;
  font-weight: 600;
}
/* Inside the app the page column is up to 1240px wide; a one-column form
   that wide is hard to read, so the My profile cards stop at 720px. */
.my-profile-section {
  max-width: 720px;
}
#my-profile-send .setup-upload > span {
  font-size: 14px;
  color: var(--vt-muted);
}
#my-profile-send .setup-reason {
  margin: 0 0 12px;
  font-size: 14px;
}
