/* Carbon — design system. White and dense, like a well-made CRM: one white page, 1px hairlines instead of
   boxes, small corners, Geist throughout. The colours are the Carbon brand's (brand/kit/GUIDELINES.md): ink
   #15161a for text, ember for the work colour (the main button, focus, the chosen answer), deepened a step on
   buttons and links so white text and small type stay readable. Status is a tinted tag or dot: amber draft,
   green submitted, blue edited after submission, grey not started, red required or wrong. Blue also draws the
   change bar beside each answer changed after the first submission. */
@font-face {
  font-family: "Geist";
  src: url("vendor/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: "Geist", "SF Pro Display", "Helvetica Neue", "Segoe UI", sans-serif;
  --font-serif: var(--font);
  --font-mono: "Geist Mono", "SF Mono", "Cascadia Mono", Consolas, monospace;

  /* brand ember #f2542d; the deeper step carries white text at 4.5:1 */
  --ember: #f2542d;
  --accent: #d4441e;
  --accent-strong: #b93a18;
  --accent-soft: rgba(242, 84, 45, .09);
  --accent-ring: rgba(242, 84, 45, .28);
  --on-accent: #ffffff;

  --ink: #15161a;
  --ink-2: #3c3d44;
  --muted: #6b6c74;
  --faint: #a4a5ad;
  --line: #e5e5e8;
  --line-hover: #d0d0d5;
  --line-soft: #efeff1;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f7f8;
  --surface-3: #eeeef0;

  /* status */
  --amend: #1f66d1;
  --amend-soft: #eaf1fc;
  --amend-line: #c6d8f5;
  --draft: #8a5a00;
  --draft-dot: #e0a21b;
  --draft-soft: #fdf4dd;
  --draft-line: #f0d9a0;
  --success: #1b7a43;
  --success-dot: #2fa463;
  --success-soft: #e8f5ed;
  --success-line: #bde0ca;
  --waiting: #6b6c74;
  --waiting-soft: #f1f1f3;
  --danger: #c4312b;
  --danger-soft: #fdeceb;
  --danger-line: #f1bdb9;
  --danger-ring: rgba(196, 49, 43, .2);
  /* the same in both modes: white text sits on these (the Submit bar, a toast) */
  --danger-fill: #c4312b;
  --success-fill: #1b7a43;
  --toast: #15161a;

  /* small corners: a tool, not a brochure */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(21, 22, 26, .06);
  --shadow-md: 0 2px 8px rgba(21, 22, 26, .08);
  --shadow-lg: 0 0 0 1px var(--line), 0 12px 32px -10px rgba(21, 22, 26, .18);
  /* depth for bordered-style buttons and chips: a transparent ring plus a faint drop, so it sits right on any
     background. Dividers and input outlines keep real borders. */
  --shadow-border: 0 0 0 1px oklch(0 0 0 / .08), 0 1px 2px -1px oklch(0 0 0 / .06), 0 2px 4px 0 oklch(0 0 0 / .04);
  --shadow-border-hover: 0 0 0 1px oklch(0 0 0 / .12), 0 1px 2px -1px oklch(0 0 0 / .08), 0 2px 4px 0 oklch(0 0 0 / .06);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-icon: cubic-bezier(.2, 0, 0, 1);
  --t: 180ms;

  --z-content: 1;
  --z-editbar: 5;
  --z-topbar: 20;
  --z-pop: 30;
  --z-panel: 40;
  --z-toast: 50;

  --topbar-h: 64px;

  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Dark mode (Mikey, Nov 3 2026): the brand's own reversed colours, ink for the page and paper for the text
   (brand/kit/GUIDELINES.md), with ember as the accent and ink text on it. theme.js sets data-theme on the page: what
   Windows is set to, unless Light or Dark was picked. Screen only: a print is always on white. */
@media screen {
  :root[data-theme="dark"] {
    --accent: #f2542d;
    --accent-strong: #ff6b47;
    /* tints are solid, worked out over the dark surface: see-through ones stacked (a tint over a ring) let the ring
       show through as a thick bright edge */
    --accent-soft: #3d2523;
    --accent-ring: rgba(242, 84, 45, .4);
    --on-accent: #15161a;

    --ink: #ecebe6;
    --ink-2: #c8c7c2;
    --muted: #9b9ca3;
    --faint: #6f7078;
    --line: #2e2f37;
    --line-hover: #3e3f48;
    --line-soft: #25262d;
    --bg: #15161a;
    --surface: #1b1c21;
    --surface-2: #212228;
    --surface-3: #2a2b32;

    --amend: #79a6f2;
    --amend-soft: #1c2b44;
    --amend-line: #3c4c6a;
    --draft: #e8b04a;
    --draft-soft: #372f20;
    --draft-line: #604b1f;
    --success: #55c285;
    --success-soft: #1e302b;
    --success-line: #23503a;
    --waiting: #9b9ca3;
    --waiting-soft: #25262d;
    --danger: #ff736a;
    --danger-soft: #3b2326;
    --danger-line: #723d3d;
    --danger-ring: rgba(255, 115, 106, .25);
    --toast: #2b2c33;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, .5);
    --shadow-lg: 0 0 0 1px var(--line), 0 12px 32px -10px rgba(0, 0, 0, .7);
    --shadow-border: 0 0 0 1px oklch(1 0 0 / .08);
    --shadow-border-hover: 0 0 0 1px oklch(1 0 0 / .13);

    color-scheme: dark;
  }
  /* the logos in paper and ember, as the brand kit draws them for dark backgrounds */
  :root[data-theme="dark"] img[src$="carbon-logo.svg"] { content: url("carbon-logo-dark.svg"); }
  :root[data-theme="dark"] img[src$="carbon-mark.svg"] { content: url("carbon-mark-dark.svg"); }
  /* the DBS logo and the forms' pictures are drawn for white paper: they keep a white card */
  :root[data-theme="dark"] .logo, :root[data-theme="dark"] .content-block img { padding: 8px 10px; border-radius: var(--r-md); background: #fff; }
  /* a photo's edge on a dark page: a faint white line */
  :root[data-theme="dark"] :is(img.thumb, img.photo-thumb) { outline-color: oklch(1 0 0 / .1); }
  :root[data-theme="dark"] select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b9ca3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); }
}

/* The theme switch (theme.js draws it), as in David: sun, screen, moon, and a highlight that slides to the choice */
.theme-pick {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px;
  border-radius: 9px; /* concentric: 6px tiles + 3px padding */ background: var(--line-soft); box-shadow: inset 0 0 0 1px var(--line);
}
.theme-pick button {
  position: relative; z-index: 1; display: grid; place-items: center; height: 30px; padding: 0; border: 0; border-radius: 6px;
  background: none; color: var(--faint); cursor: pointer; transition: color 250ms cubic-bezier(.22, 1, .36, 1);
}
.theme-pick button:hover, .theme-pick button[aria-checked="true"] { color: var(--ink); }
/* 30px tiles, 40px to click; side by side, so only up and down */
.theme-pick button::after { content: ""; position: absolute; inset: -5px -1px; }
.theme-pick button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-pick svg { width: 15px; height: 15px; }
.theme-pick .pill {
  position: absolute; top: 3px; left: 0; width: 0; height: 30px; border-radius: 6px; pointer-events: none;
  background: var(--bg); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px var(--line);
  transition: transform 250ms cubic-bezier(.22, 1, .36, 1), width 250ms cubic-bezier(.22, 1, .36, 1);
}
.menu-theme { display: grid; gap: 6px; padding: 6px 10px 8px; font-size: 12px; color: var(--muted); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { min-height: 100dvh; background: var(--bg); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
.app { position: relative; z-index: var(--z-content); }

/* top and left pin it to the corner of whatever holds it: left where it would sit in the flow, one far down a
   list or far along a board stretched the whole page, with a scrollbar into empty space (Sites in Oct, the Projects
   Board on Nov 4 2026). Screen readers read it where it is in the page all the same. */
.sr-only { position: absolute; top: 0; left: 0; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.btn.skip { position: absolute; left: 12px; top: -64px; z-index: var(--z-toast); }
.btn.skip:focus { top: 12px; }

/* One icon set, stroke matched to the text beside it: 1.5 next to regular text, 2 next to medium/semibold. */
.icon { width: 16px; height: 16px; flex: none; stroke-width: 1.5; }
.btn .icon, .alert-head .icon, .error .icon { stroke-width: 2; }

/* State-change icon: both glyphs stay in the DOM and cross-fade (scale .25 -> 1, blur 4px -> 0). */
.icon-swap { position: relative; display: inline-grid; flex: none; }
.icon-swap .icon { transition-property: opacity, scale, filter; transition-duration: 300ms; transition-timing-function: var(--ease-icon); }
.icon-swap .alt { position: absolute; inset: 0; }
.icon-swap .off { opacity: 0; scale: .25; filter: blur(4px); }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 520; letter-spacing: -.003em; white-space: nowrap;
  cursor: pointer; text-decoration: none;
  transition-property: background-color, border-color, color, box-shadow, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
/* press feedback; add .static to opt out */
.btn:active:not(.static) { scale: .96; }
/* while Carbon is saving or signing in, the button says it can't be pressed again */
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:disabled:active { scale: 1; }
/* hit area: 36px buttons reach 40px without changing their look (insets start inside the 1px border) */
.btn::after { content: ""; position: absolute; inset: -3px 0; }
/* optical alignment: a leading icon needs 2px less padding than the text side */
.btn:not(.icon-only):has(> .icon:first-child, > .icon-swap:first-child) { padding-left: 12px; }
.btn:focus-visible, .icon-btn:focus-visible, .toc a:focus-visible, .menu-item:focus-visible, .toast button:focus-visible, .segmented button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: none; font-weight: 600; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-secondary { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-border); }
.btn-secondary:hover { background: var(--surface-2); box-shadow: var(--shadow-border-hover); }
.btn-quiet { background: transparent; color: var(--ink-2); }
.btn-quiet:hover, .btn-quiet[aria-expanded="true"] { background: var(--surface-3); color: var(--ink); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-line); }
.btn-sm { height: 32px; padding: 0 10px; font-size: 12.5px; gap: 6px; }
.btn-sm::after { inset: -5px 0; }
.btn-sm:not(.icon-only):has(> .icon:first-child) { padding-left: 8px; }
.btn-lg { height: 44px; padding: 0 24px; font-size: 14.5px; }
.btn-lg::after { inset: 0; }
.btn.icon-only { width: 36px; padding: 0; }
.btn.icon-only::after { inset: -3px; } /* 40x40 (insets start inside the 1px border); neighbours sit 6px away */
.btn-sm.icon-only { width: 32px; }
.count {
  min-width: 20px; padding: 0 5px; border-radius: var(--r-xs);
  background: var(--line-soft); color: var(--ink-2);
  font-size: 11.5px; font-weight: 600; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums;
}
.icon-btn {
  position: relative;
  display: inline-grid; place-items: center; width: 28px; height: 28px;
  border: 0; border-radius: var(--r-xs); background: transparent; color: var(--muted); cursor: pointer;
  transition-property: background-color, color, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
/* 28px glyph button, 40px hit area */
.icon-btn::after { content: ""; position: absolute; inset: -6px; }
.icon-btn:hover { background: var(--accent-soft); color: var(--accent); }
.icon-btn:active { scale: .96; }
.icon-btn.danger:hover { background: var(--danger-soft); color: var(--danger); }
.icon-btn .icon { width: 15px; height: 15px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: var(--z-topbar); background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); }
.topbar a { color: inherit; }
.topbar .save-state, .topbar .progress-text { color: var(--muted); }
.topbar .progress-text strong { color: var(--ink); }
.topbar .progress-bar { background: var(--surface-3); }
.topbar .progress-bar span { background: var(--accent); }

.topbar-inner {
  /* the bars run the full width, so the brand, the breadcrumbs and the Sections list share one left edge */
  margin: 0 auto; min-height: 56px; /* fixed: --topbar-h is measured from this bar, so it must not feed back into it */
  padding: 10px 20px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 24px;
}
/* with the progress in the middle, the middle is the middle of the bar, whatever the brand and the actions weigh
   (narrow screens put the progress on its own row instead: see the 900px rule) */
@media (min-width: 901px) {
  .topbar-inner:has(> .progress) { grid-template-columns: minmax(0, 1fr) minmax(0, 300px) minmax(0, 1fr); }
  .topbar-inner:has(> .progress) > .actions { justify-self: end; }
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand > div { min-width: 0; }
.brand-name, .save-state { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.save-state { font-size: 12px; color: var(--muted); line-height: 1.3; font-variant-numeric: tabular-nums; }
.save-state .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--success); margin-right: 6px; vertical-align: 1px; }
.save-state .dot.busy { background: var(--draft-dot); }
.save-state .dot.bad { background: var(--danger); }

/* ---------- Carbon: which site and install this document belongs to ---------- */
.carbon-bar { position: relative; z-index: 1; border-bottom: 1px solid var(--line); background: var(--bg); }
.carbon-bar-inner { margin: 0 auto; padding: 8px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; }
.carbon-bar .crumbs { display: flex; flex-wrap: wrap; align-items: center; margin-right: auto; color: var(--ink-2); }
.carbon-bar .crumbs > * + *::before { content: "›"; color: var(--faint); margin: 0 8px; }
.carbon-bar .crumbs a { position: relative; color: var(--accent); text-decoration: none; }
/* 20px of text, 40px to click: the extra stays inside the bar and clear of the next link */
.carbon-bar .crumbs a::after { content: ""; position: absolute; inset: -10px -4px; }
.carbon-bar .crumbs a:hover { text-decoration: underline; }
.carbon-bar .crumbs span { font-weight: 600; color: var(--ink); }
/* who's signed in: plain text, so no hover or pointer that would make it look clickable */
.who { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; color: var(--ink-2); font-size: 12.5px; }
.who .icon { width: 13px; height: 13px; }
/* Where a document stands: a dot, or a small tinted label (shared with the site pages). */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--line-hover); }
.dot.st-draft { background: var(--draft-dot); }
.dot.st-submitted { background: var(--success-dot); }
.dot.st-edited { background: var(--amend); }
.status, .doc-state, .chip {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-xs);
  font-size: 12px; font-weight: 500; white-space: nowrap;
  background: var(--waiting-soft); color: var(--waiting);
}
.st-draft:is(.status, .doc-state, .chip) { background: var(--draft-soft); color: var(--draft); }
.status, .doc-state, .chip { box-shadow: inset 0 0 0 1px var(--line); }
.st-draft:is(.status, .doc-state, .chip) { box-shadow: inset 0 0 0 1px var(--draft-line); }
.st-submitted:is(.status, .doc-state, .chip) { box-shadow: inset 0 0 0 1px var(--success-line); }
.st-edited:is(.status, .doc-state, .chip) { box-shadow: inset 0 0 0 1px var(--amend-line); }
.st-submitted:is(.status, .doc-state, .chip) { background: var(--success-soft); color: var(--success); }
.st-edited:is(.status, .doc-state, .chip) { background: var(--amend-soft); color: var(--amend); }
/* a form's PDF found in the customer folder, from before Carbon: done, but not done in Carbon */
.st-share:is(.status, .doc-state, .chip) { background: var(--surface); color: var(--success); box-shadow: inset 0 0 0 1px var(--success-line); }

.progress { justify-self: center; width: min(300px, 100%); }
.progress-text { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.progress-text strong { color: var(--ink); font-weight: 600; }
.progress-bar { height: 4px; border-radius: 2px; background: var(--line-soft); overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--accent); transform-origin: left center; transition: transform 200ms ease-out; }

.actions { display: flex; align-items: center; gap: 6px; }

/* popovers: drafts + overflow menu */
.menu { position: relative; }
.pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: var(--z-pop);
  background: var(--surface); border-radius: 10px; /* concentric: 4px items + 6px padding */ box-shadow: var(--shadow-lg);
  padding: 6px; min-width: 240px;
  transform-origin: top right;
}
.pop-enter-active { transition: opacity 140ms ease-out, transform 140ms ease-out; }
.pop-leave-active { transition: opacity 100ms ease-out, transform 100ms ease-out; }
.pop-enter-from { opacity: 0; transform: translateY(-4px) scale(.98); }
.pop-leave-to { opacity: 0; transform: translateY(-2px); }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px;
  padding: 8px 10px; border: 0; border-radius: var(--r-xs); background: transparent;
  font-size: 13.5px; text-align: left; cursor: pointer; color: var(--ink);
  transition: background-color var(--t) var(--ease);
}
.menu-item:hover { background: var(--surface-2); color: var(--ink); }
.menu-item .icon { color: var(--muted); }
.menu-item:hover .icon { color: var(--ink-2); }
.menu-sep { height: 1px; background: var(--line-soft); margin: 6px 4px; border: 0; }

.drafts-pop { width: 380px; max-width: calc(100vw - 24px); padding: 0; }
.drafts-head { padding: 14px 16px 10px; border-bottom: 1px solid var(--line-soft); }
.drafts-head strong { display: block; font-weight: 620; }
.drafts-head span { font-size: 12px; color: var(--muted); }
.drafts-list { list-style: none; margin: 0; padding: 6px; max-height: 340px; overflow: auto; }
.draft { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px; padding: 6px 6px 6px 10px; border-radius: var(--r-xs); /* 10px popover - 6px list padding */ }
.draft:hover { background: var(--surface-2); }
/* .draft scoping outranks the generic input[type=text] rule, so the name reads as text until hovered */
.draft .draft-name {
  width: 100%; height: 32px; border: 1px solid transparent; border-radius: var(--r-xs); background: transparent;
  padding: 0 6px; margin-left: -7px; font-size: 14px; font-weight: 520;
}
.draft .draft-name:hover { border-color: var(--line); }
.draft .draft-name:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); background: var(--surface); }
/* every item gets an explicit cell: rows-only placement let auto-flow push the name to the last column */
.draft-name { grid-column: 1; grid-row: 1; }
.draft-time { grid-column: 1; grid-row: 2; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.draft .btn { grid-column: 2; grid-row: 1 / span 2; }
.draft .icon-btn { grid-column: 3; grid-row: 1 / span 2; }
.empty { padding: 26px 22px 24px; text-align: center; color: var(--muted); font-size: 13px; }
.empty .icon { width: 28px; height: 28px; color: var(--faint); margin-bottom: 8px; }
.empty strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.empty p { margin: 0 auto; max-width: 34ch; text-wrap: pretty; }

/* ---------- edit-mode bar ---------- */
.editbar {
  max-width: 1400px; margin: 16px auto 0; padding: 0 20px;
}
.editbar-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 12px 14px 12px 16px; border-radius: var(--r-md);
  background: var(--accent-soft); color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13.5px;
}
.editbar-inner p { margin: 0; flex: 1 1 360px; text-wrap: pretty; }
.editbar-inner strong { font-weight: 620; }
/* 8px row gap so the small buttons' 40px hit areas never overlap when they wrap */
.editbar-actions { display: flex; flex-wrap: wrap; gap: 8px 6px; }

/* ---------- page layout ---------- */
.layout {
  max-width: 1400px; margin: 0 auto; padding: 24px 20px 72px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px;
}
@media (min-width: 1180px) {
  /* the form in the middle of the screen, the sections at the left, their text under the breadcrumbs (Mikey, Oct 30 2026).
     The Sections list narrows to 190px before the form moves; the right column only balances the left one, so on a
     screen too narrow for both the form keeps its width and sits a little right of the middle */
  .layout { max-width: none; column-gap: 0; grid-template-columns: minmax(212px, 1fr) minmax(0, 940px) minmax(0, 1fr); }
  .layout > .toc { justify-self: start; width: min(232px, calc(100% - 22px)); margin-left: -10px; }
  .layout > .paper { grid-column: 2; }
  /* a form with no sections (Tax Verification) has nothing to navigate */
  .layout.no-toc { grid-template-columns: minmax(0, 940px); justify-content: center; }
  .layout.no-toc > .paper { grid-column: auto; }
}
/* While a side panel (History, the editor, Versions) is open, the form isn't covered by it. On a screen wide enough
   that the form, in the middle, already ends before the panel (1820px and up), nothing moves at all; on a narrower
   one the form moves into the middle of what's left, never against the left edge (Mikey, Nov 4 2026: "it puts the
   form all the way on the left... that makes sense on smaller screens but not mine"). */
@media (min-width: 1280px) and (max-width: 1819px) {
  .app.panel-open .layout { grid-template-columns: minmax(0, 940px); justify-content: center; padding-right: 440px; }
  .app.panel-open .layout > .paper { grid-column: auto; }
  .app.panel-open .toc { display: none; }
}

/* section navigator */
.toc { display: none; }
@media (min-width: 1180px) {
  .toc {
    display: block; position: sticky; top: calc(var(--topbar-h) + 24px); align-self: start;
    max-height: calc(100dvh - var(--topbar-h) - 48px); overflow: auto; padding: 4px 4px 12px 0;
  }
}
.toc-title { font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 10px 8px; letter-spacing: .01em; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: baseline; align-content: center; gap: 6px;
  min-height: 40px; padding: 6px 10px; border-radius: var(--r-sm);
  color: var(--ink-2); text-decoration: none; font-size: 13px; line-height: 1.35;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.toc a:hover { background: var(--surface-3); color: var(--ink); }
.toc a.current { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--accent); font-weight: 560; }
.toc-num { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.toc a.current .toc-num { color: var(--ink-2); }
.toc-edited { font-size: 11px; font-weight: 700; color: var(--amend); border-left: 2px solid var(--amend); padding: 0 0 0 5px; }
.toc-err { font-size: 11px; font-weight: 600; color: var(--danger); background: var(--danger-soft); border-radius: var(--r-xs); padding: 0 5px; font-variant-numeric: tabular-nums; }
.toc-hidden { opacity: .5; }

/* ---------- the form "paper" ---------- */
.paper {
  min-width: 0;
  background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line);
  padding: 40px 48px 48px;
}
.paper:focus { outline: none; }
.form-header { display: flex; align-items: center; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line-soft); }
.logo { width: 150px; height: auto; flex: none; }
.form-header h1 { margin: 0 0 6px; font-family: var(--font-serif); font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.form-header .desc { color: var(--muted); font-size: 13.5px; }
.h1-edit, .desc-edit { width: 100%; }
.h1-edit { font-size: 22px !important; font-weight: 620; height: 44px !important; margin-bottom: 6px; }

.jump { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.jump select { flex: 1; min-width: 0; max-width: 360px; }
@media (min-width: 1180px) { .jump { display: none; } }

/* grid rows from the Cognito layout (24 columns) */
.row { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); column-gap: 20px; }
.col { display: contents; }
.field-wrap, .content-block { grid-column: span 24; min-width: 0; }
.row > .section { min-width: 0; }

/* ---------- sections ---------- */
/* each section opens with a printed rule, as on a paper form */
.section { position: relative; margin: 40px 0 4px; padding-top: 20px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--topbar-h) + 16px); }
.sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 2px; }
.sec-num { font-size: 12.5px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.section-title { margin: 0; font-family: var(--font-serif); font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.section > .help { margin-top: 4px; }
/* nested sections read as grouped panels, not boxes-in-boxes */
.section .section { margin: 22px 0 6px; padding: 20px 22px 14px; border-top: 0; border-radius: var(--r-md); background: var(--surface-2); }
.section .section .section-title { font-size: 16px; letter-spacing: -.01em; }
.section .section .section { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-soft); }

/* rich text from the worksheet */
.content-block { margin: 14px 0 2px; color: var(--ink-2); font-size: 13.5px; overflow-wrap: anywhere; }
.content-block p { margin: 4px 0; max-width: 78ch; text-wrap: pretty; }
.content-block strong { color: var(--ink); font-weight: 620; }
.content-block em { color: var(--muted); }
/* a heading-only text block names the part of the form after it, like a section title */
.content-block.is-heading { margin: 40px 0 4px; padding-top: 20px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--topbar-h) + 16px); }
.content-block.is-heading h1, .content-block.is-heading h2, .content-block.is-heading h3 { margin: 0; font-family: var(--font-serif); font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; color: var(--ink); text-align: left !important; }
.content-block img { max-width: 100%; height: auto; }
.content-block a { word-break: break-all; }
.content-block .divider { height: 1px; background: var(--line-soft); margin: 30px 0 6px; }
/* a divider that sits right before a section is redundant: the section draws its own rule */
.only-divider:has(+ .section, + .table-wrap) { display: none; }

/* ---------- fields ---------- */
.field { margin: 16px 0 4px; scroll-margin-top: calc(var(--topbar-h) + 32px); }
.field-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.label { display: block; padding: 0; margin: 0 0 7px; font-size: 13.5px; font-weight: 560; letter-spacing: -.003em; color: var(--ink); overflow-wrap: anywhere; }
.req { color: var(--danger); margin-left: 2px; }
.help { margin-top: 7px; font-size: 12.5px; color: var(--muted); max-width: 72ch; text-wrap: pretty; overflow-wrap: anywhere; }
.help p { margin: 2px 0; }
.error { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 12.5px; font-weight: 520; color: var(--danger); }
.error .icon { width: 14px; height: 14px; }

input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=password], select, textarea {
  width: 100%; height: 38px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink);
  font-size: 14px;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease);
}
/* aligned digits where values are compared or stepped; not for phone numbers or free text */
input[type=number], input[type=date], input[type=time] { font-variant-numeric: tabular-nums; }
textarea { height: auto; min-height: 88px; padding: 9px 11px; line-height: 1.5; resize: vertical; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6c74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: var(--line-hover); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.field.invalid input:not([type=radio]):not([type=checkbox]), .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field.invalid input:focus, .field.invalid select:focus, .field.invalid textarea:focus { box-shadow: 0 0 0 3px var(--danger-ring); }
input[type=file] { font-size: 13px; color: var(--muted); }
input[type=file]::file-selector-button {
  height: 36px; margin-right: 12px; padding: 0 14px; border: 0; border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 520; cursor: pointer; box-shadow: var(--shadow-border);
  transition: background-color 150ms ease-out, box-shadow 150ms ease-out;
}
input[type=file]::file-selector-button:hover { background: var(--surface-2); box-shadow: var(--shadow-border-hover); }

.name { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.address { display: grid; gap: 10px; }
.address-row { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 10px; }
@media (max-width: 640px) { .address-row { grid-template-columns: 1fr 1fr; } .address-row > :first-child { grid-column: 1 / -1; } }
.t-number .control { display: flex; align-items: center; gap: 8px; }
.suffix { color: var(--muted); }
.other { margin-top: 8px; }

/* choices as tappable options — easier on tablets than bare radio dots */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 34px; padding: 6px 12px 6px 10px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  font-size: 13.5px; line-height: 1.3; cursor: pointer; overflow-wrap: anywhere;
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease), color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.choice:hover { border-color: var(--line-hover); background: var(--surface-2); }
/* 34px chips reach 40px (insets start inside the 1px border); rows wrap with an 8px gap, so 3px + 3px never overlaps */
.choice::after { content: ""; position: absolute; inset: -4px 0; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--accent-ring); }
.choice input { margin: 0; width: 15px; height: 15px; accent-color: var(--accent); flex: none; }
.choice input:focus { box-shadow: none; outline: none; }
.field.invalid .choice { border-color: var(--danger-line); }

/* a single short-choice question on one line: the question, then its choices */
.field-wrap.qrow .field { margin: 6px 0 2px; }
.qline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding: 8px 2px 10px; border-bottom: 1px solid var(--line-soft); }
.qline > .label { flex: 1 1 240px; margin: 0; }
.choices.compact { gap: 6px; }
.choices.compact .choice { min-height: 32px; padding: 4px 12px 4px 10px; }
.field.invalid .qline { border-bottom-color: var(--danger-line); }
/* follow-up questions sit under the answer that opened them */
.field-wrap.followup { position: relative; padding-left: 20px; }
.field-wrap.followup::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 6px; width: 2px; border-radius: 1px; background: var(--line); }

/* grids for repeated choices: a row per question, a column per choice */
/* a ruled table, as printed on the form: no box, a heavier rule under the column heads */
.gq { grid-column: 1 / -1; margin: 18px 0 6px; border-bottom: 1px solid var(--line); }
.gq-head, .gq-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(var(--gq-cols), var(--gq-w)); align-items: center; padding: 0 4px 0 10px; }
.gq-head { min-height: 34px; border-bottom: 1px solid var(--line-hover); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; line-height: 1.2; color: var(--muted); }
.gq-head span { text-align: center; padding: 6px 2px; }
.gq-row { position: relative; min-height: 42px; transition: background-color var(--t) var(--ease); scroll-margin-top: calc(var(--topbar-h) + 32px); }
.gq-row + .gq-row { border-top: 1px solid var(--line-soft); }
.gq-row:hover { background: var(--surface-2); }
.gq-row.invalid { background: var(--danger-soft); }
.gq-q { padding: 10px 12px 10px 0; font-size: 13.5px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.gq-q .help, .gq-q .error { margin-top: 3px; }
.gq-cells { display: contents; }
.gq-cell { display: grid; place-items: center; align-self: stretch; cursor: pointer; }
.gq-cell input { margin: 0; width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.gq-cell input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* the column header names each choice on wide screens; the label is for screen readers until it stacks */
.gq-opt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
@media (max-width: 640px) {
  .gq-head { display: none; }
  .gq-row { grid-template-columns: minmax(0, 1fr); padding: 4px 12px 12px; }
  .gq-q { padding: 8px 0 8px; }
  .gq-cells { display: flex; flex-wrap: wrap; gap: 6px; }
  .gq-cell { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 12px 6px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 13.5px; }
  .gq-cell:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
  .gq-opt { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}
@media print { .gq { box-shadow: inset 0 0 0 1px #ccc; } .gq-row { break-inside: avoid; } }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; padding-top: 4px; }
.switch::after { content: ""; position: absolute; inset: -7px -4px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { position: relative; width: 38px; height: 22px; border-radius: 11px; background: var(--surface-3); transition: background-color var(--t) var(--ease); }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(21, 22, 26, .25); transition: transform var(--t) var(--ease); }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px var(--accent-ring); }
.switch-text { font-size: 13.5px; color: var(--ink-2); }

.files { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.files li { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border-radius: 10px; /* 4px button + 6px padding */ background: var(--surface); box-shadow: var(--shadow-border); font-size: 13px; }
.files li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.files small { color: var(--muted); font-variant-numeric: tabular-nums; }

/* signature */
.sig { border: 1px solid var(--line); border-radius: 14px; /* 4px canvas + 10px padding */ background: var(--surface-2); padding: 10px; }
.field.invalid .sig { border-color: var(--danger); }
.sig-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.segmented { display: inline-flex; padding: 3px; border-radius: 7px; /* concentric: 4px buttons + 3px padding */ background: var(--line-soft); gap: 2px; }
.segmented button {
  position: relative;
  height: 32px; padding: 0 14px; border: 0; border-radius: 4px; /* concentric: 7px track - 3px padding */ background: transparent;
  font-size: 12.5px; font-weight: 520; color: var(--ink-2); cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out, box-shadow 150ms ease-out;
}
.segmented button::after { content: ""; position: absolute; inset: -4px 0; }
.segmented button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.sig-canvas { display: block; width: 100%; height: 160px; background: #fff; border: 1px dashed var(--line-hover); border-radius: 4px; touch-action: none; cursor: crosshair; }
.sig-typed { height: 56px !important; border-radius: 4px !important; font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 26px !important; }

/* ---------- repeating tables ---------- */
.table-wrap { margin: 30px 0 8px; scroll-margin-top: calc(var(--topbar-h) + 16px); }
.table-title { display: flex; align-items: baseline; gap: 12px; margin: 0 0 4px; }
.table-title h2, .table-title h3 { margin: 0; font-size: 16px; font-weight: 640; letter-spacing: -.01em; }
.table-field > .help { margin: 0 0 10px; }
/* Column tracks come from the worksheet's column weights, each with a sensible minimum.
   When the minimums don't fit, the table scrolls sideways instead of crushing its controls. */
.tbl { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-md); overflow-x: auto; overflow-y: hidden; background: var(--surface); }
.tbl-head, .tbl-row { display: grid; gap: 0 10px; align-items: start; padding: 6px 10px; min-width: min-content; }
.tbl-head { background: var(--surface-2); border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 12px; font-weight: 600; padding-top: 9px; padding-bottom: 9px; }
.tbl-row + .tbl-row { border-top: 1px solid var(--line-soft); }
.tbl-cell { min-width: 0; overflow-wrap: anywhere; }
.tbl-act { align-self: center; text-align: center; }
.field.in-table { margin: 4px 0; }
.field.in-table select { padding: 0 26px 0 9px; background-position: right 6px center; }
.field.in-table input[type=text], .field.in-table input[type=number] { padding: 0 9px; }
/* the column header already names a switch; its Yes/No caption only crowds narrow cells */
.field.in-table .switch-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.field.in-table .switch { padding-top: 8px; }
.field.in-table .choices { gap: 10px 6px; } /* 30px chips grow 5px each way to 40px; a 10px row gap keeps them apart */
.field.in-table .choice::after { inset: -6px 0; }
.field.in-table .choice { min-height: 30px; padding: 4px 9px 4px 8px; font-size: 12.5px; }
.add-row { margin-top: 10px; }
/* a repeating section ("Add Station") can have no items yet */
.tbl-empty { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

/* A page of a paged Cognito form adds no box of its own; it only hides its sections when a rule hides the page. */
.page { display: contents; }

/* ---------- alerts ---------- */
.alert { margin: 26px 0 4px; padding: 16px 18px; border: 1px solid; border-radius: var(--r-md); scroll-margin-top: calc(var(--topbar-h) + 16px); }
.alert:focus { outline: none; }
.alert-head { display: flex; align-items: center; gap: 10px; }
.alert-head .icon { width: 18px; height: 18px; }
.alert-head strong { font-weight: 620; }
.alert p { margin: 6px 0 0; max-width: 70ch; color: var(--ink-2); }
.alert-error { background: var(--danger-soft); border-color: var(--danger-line); }
.alert-error .alert-head { color: var(--danger); }
.err-groups { margin-top: 12px; max-height: 280px; overflow: auto; display: grid; gap: 12px; }
.err-section { font-size: 12px; font-weight: 620; color: var(--ink-2); margin-bottom: 4px; }
.err-groups ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.err-groups li { font-size: 13px; color: var(--muted); }
.err-groups a { color: var(--danger); font-weight: 520; }
.alert-success { background: var(--success-soft); border-color: var(--success-line); }
.alert-success .alert-head { color: var(--success); }
.alert-note { background: var(--surface-2); border-color: var(--line); }
.alert-note .alert-head { color: var(--ink); }

/* the form's questions: locked while the document loads, or when it couldn't, so nothing typed is wiped or lost */
.form-lock { min-width: 0; margin: 0; padding: 0; border: 0; }
.form-lock:disabled { opacity: .55; pointer-events: none; }

/* ---------- after a Submit that couldn't go through ---------- */
/* every question stopping it reads red, so they stand out while scrolling */
.field.invalid .label { color: var(--danger); }
/* the one the bar names: a tinted panel around the question, after a brief ring to catch the eye */
.field.err-focus:not(.in-table) {
  border-radius: var(--r-sm); background: var(--danger-soft);
  box-shadow: 0 0 0 10px var(--danger-soft), 0 0 0 11px var(--danger-line);
  animation: err-catch 700ms ease-out;
}
@keyframes err-catch { from { box-shadow: 0 0 0 10px var(--danger-soft), 0 0 0 17px var(--danger-ring); } }
.gq-row.err-focus { box-shadow: inset 0 0 0 2px var(--danger); }
.field.in-table.err-focus :is(input, select, textarea) { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-ring); }
/* the bar at the bottom of the screen: how many answers are left, which one this is, and the way to the next */
.fixbar {
  position: fixed; left: 50%; bottom: 24px; z-index: var(--z-toast); transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; width: max-content; max-width: min(760px, calc(100vw - 32px));
  padding: 8px 8px 8px 16px; border-radius: 12px; /* concentric: 4px buttons + 8px padding */
  background: var(--danger-fill); color: #fff; box-shadow: var(--shadow-lg); font-size: 13.5px; line-height: 1.4;
}
.fixbar.ok { background: var(--success-fill); }
.fixbar > .icon { width: 18px; height: 18px; stroke-width: 2; }
.fixbar-text { display: grid; gap: 2px; min-width: 0; padding: 4px 0; }
.fixbar-text strong { font-weight: 620; }
.fixbar-q {
  position: relative; padding: 0; border: 0; background: none; color: #fff; font: inherit; text-align: left; cursor: pointer;
  text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); text-underline-offset: 3px; text-wrap: pretty;
}
.fixbar-q::after { content: ""; position: absolute; inset: -8px -4px; }
.fixbar-q:hover { text-decoration-color: #fff; }
.fixbar-n { display: inline-block; margin-right: 8px; padding: 0 6px; border-radius: var(--r-xs); background: rgba(255, 255, 255, .18); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fixbar-nav { display: flex; gap: 4px; margin-left: auto; }
.fixbar-nav button, .fixbar-go {
  position: relative; flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--r-xs);
  background: rgba(255, 255, 255, .14); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
  transition-property: background-color, scale; transition-duration: 150ms; transition-timing-function: ease-out;
}
/* 36px buttons, 40px to click; 4px apart, so the areas just meet */
.fixbar-nav button::after, .fixbar-go::after { content: ""; position: absolute; inset: -2px; }
.fixbar-nav button:hover:not(:disabled) { background: rgba(255, 255, 255, .26); }
.fixbar-nav button:active:not(:disabled), .fixbar-go:active:not(:disabled) { scale: .96; }
.fixbar-nav button:disabled { opacity: .4; cursor: default; }
.fixbar-go { width: auto; margin-left: auto; padding: 0 16px; background: #fff; color: var(--success-fill); }
.fixbar-go:hover:not(:disabled) { background: var(--success-soft); }
.fixbar-go:disabled { opacity: .6; cursor: not-allowed; }
.fixbar button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* a toast shows above the bar, not on it */
body:has(.fixbar) .toast { bottom: 100px; }

/* ---------- Carbon: sections changed after the first submission ---------- */
.changes { margin: 10px 0 4px; }
/* change bars: a blue rule in the sheet's margin beside each answer changed after submission */
.gq-row.was-edited { background: var(--amend-soft); }
.gq-row.was-edited::before, .field.was-edited::before {
  content: ""; position: absolute; left: -18px; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--amend);
}
.field.was-edited { position: relative; }
/* the note beside a changed answer: what it was, who changed it, when */
.amend { margin-top: 4px; font-size: 12.5px; line-height: 1.4; color: var(--amend); }
.amend s { color: var(--muted); text-decoration-color: currentColor; }
/* an answer filled in from the install's other forms, until it's changed here */
.shared-from { margin-top: 4px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
/* the amendment slip under a changed section's heading; it opens into the full list of changes */
.changes-badge {
  position: relative; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; min-height: 30px; padding: 4px 12px 4px 10px;
  border: 0; border-left: 3px solid var(--amend); border-radius: 0 var(--r-xs) var(--r-xs) 0;
  background: var(--amend-soft); color: var(--amend); font-size: 13px; font-weight: 700; cursor: pointer; text-align: left;
}
/* a 30px slip, 40px to click */
.changes-badge::after { content: ""; position: absolute; inset: -5px 0; }
.changes-badge:hover { background: var(--amend-line); }
.changes-badge:focus-visible { outline: 2px solid var(--amend); outline-offset: 2px; }
.changes-badge .icon { width: 13px; height: 13px; stroke-width: 2; }
.changes-who { font-weight: 450; }
.changes-list { margin-top: 6px; padding: 12px 16px 14px; border-left: 3px solid var(--amend); background: var(--surface-2); font-size: 13px; }
.changes-head { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.changes-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.changes-q { font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.changes-list ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.changes-list .old { color: var(--muted); text-decoration: line-through; text-decoration-color: currentColor; }
.changes-list .arrow { margin: 0 6px; color: var(--faint); }
.changes-list .new { color: var(--amend); font-weight: 700; }
.changes-meta { margin-left: 10px; font-size: 12px; color: var(--muted); }

/* Carbon: a pictures field hands off to the install's photo upload */
.photo-link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 12.5px; color: var(--muted); }
/* an install with no Pictures folder: nowhere for photos to go, said before anyone tries */
.photo-link.no-folder { flex-wrap: nowrap; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--draft-soft); color: var(--draft); font-size: 13px; }
.photo-link.no-folder .icon { margin-top: 2px; }
.photo-link a { color: var(--accent); white-space: nowrap; }
/* a Pictures question: photos are added right here; dragging some over it shows where they'll land */
.photo-field { border-radius: var(--r-sm); transition: background-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.photo-field.over { background: var(--accent-soft); box-shadow: 0 0 0 8px var(--accent-soft), 0 0 0 9px var(--accent-ring); }
.photo-pick { cursor: pointer; }
.photo-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.photo-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; }
.photo-list li {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 8px 6px 6px;
  border-radius: 12px; /* concentric: 6px thumbnail + 6px padding */ background: var(--surface); box-shadow: var(--shadow-border);
}
/* a photo that didn't save takes the whole row, so its reason reads on one or two lines */
.photo-list li.failed { grid-column: 1 / -1; box-shadow: 0 0 0 1px var(--danger-line); }
.photo-thumb { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm); object-fit: cover; background: var(--surface-2); color: var(--faint); }
/* a photo's edge, whatever its colours: a neutral inset line */
img.photo-thumb { outline: 1px solid oklch(0 0 0 / .1); outline-offset: -1px; }
.photo-text { display: grid; flex: 1; min-width: 0; }
.photo-name { overflow: hidden; font-size: 13px; font-weight: 520; white-space: nowrap; text-overflow: ellipsis; }
.photo-text small { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.photo-text small .icon { width: 13px; height: 13px; flex: none; stroke-width: 2; }
.photo-text small.ok { color: var(--success); }
.photo-text small.err { align-items: flex-start; color: var(--danger); }

/* Carbon: who's signed in, in the bar; what they save goes under their name */
.who { font-size: 12.5px; font-weight: 560; color: var(--ink-2); white-space: nowrap; }

/* Carbon: the form's History, who changed which answers and when */
.history-intro { margin: 16px 0 4px; font-size: 12.5px; color: var(--muted); text-wrap: pretty; }
.history-intro + .history-intro { margin-top: 6px; }
.history-empty { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-2); }
.history-group { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.history-group:last-child { border-bottom: 0; }
.history-who, .history-submitted { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; font-weight: 620; color: var(--ink); }
.history-who time, .history-submitted time { margin-left: auto; font-size: 12px; font-weight: 450; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.history-submitted { align-items: center; font-weight: 450; color: var(--ink-2); }
.history-group ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
/* a line of text, 40px to click; the next answer's link is more than 40px below, so the areas never meet */
.history-q::after { content: ""; position: absolute; inset: -10px -4px; }
.history-q { position: relative; display: block; padding: 0; border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--ink-2); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.history-q:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.history-change { display: block; font-size: 13px; overflow-wrap: anywhere; white-space: pre-line; }
.history-change .old { color: var(--muted); text-decoration: line-through; }
.history-change .arrow { margin: 0 6px; color: var(--faint); }
.history-change .new { color: var(--ink); font-weight: 600; }
.alert-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.submit-note { margin-left: auto; font-size: 12.5px; color: var(--muted); }

/* ---------- edit mode ---------- */
.editing .field-wrap, .editing .content-block, .editing .section, .editing .table-wrap { position: relative; outline: 1px dashed transparent; outline-offset: 6px; border-radius: 4px; transition: outline-color var(--t) var(--ease); }
.editing .field-wrap:hover, .editing .content-block:hover, .editing .table-wrap:hover, .editing .section:hover { outline-color: var(--line-hover); }
.editing .is-selected, .editing .is-selected:hover { outline: 2px solid var(--accent); }
.editing .edit-hidden { opacity: .5; }
.editing .only-divider { display: block !important; }
/* Hover toolbar in edit mode. Hovering across fields is high-frequency, so it only fades (no slide),
   and while invisible it must not catch clicks meant for the field above it. */
.edit-bar {
  position: absolute; top: -20px; left: -4px; z-index: var(--z-editbar);
  display: flex; align-items: center; gap: 2px; padding: 3px;
  background: var(--surface); border-radius: 7px; /* 4px buttons + 3px padding */ box-shadow: var(--shadow-lg);
  font-size: 11px; opacity: 0; pointer-events: none;
  transition: opacity 120ms ease-out;
}
.edit-bar .tag { color: var(--muted); padding: 0 6px 0 5px; white-space: nowrap; }
.edit-bar .icon-btn { width: 38px; height: 34px; }
.edit-bar .icon-btn::after { inset: -3px -1px; } /* 40x40, buttons sit 2px apart so neighbours just touch */
.editing .field-wrap:hover > .edit-bar, .editing .content-block:hover > .edit-bar, .editing .table-wrap:hover > .edit-bar,
.editing .section:hover > .edit-bar, .editing .is-selected > .edit-bar, .edit-bar:focus-within { opacity: 1; pointer-events: auto; }
@media (hover: none) { .edit-bar { opacity: 1; pointer-events: auto; } }
/* dragging an item into place: the grip at the start of its toolbar; a bar marks where it lands */
.edit-bar .grip { position: relative; display: inline-grid; place-items: center; width: 22px; height: 34px; color: var(--muted); cursor: grab; }
.edit-bar .grip::after { content: ""; position: absolute; inset: -3px 0 -3px -4px; }   /* 26x40 to grab */
.edit-bar .grip:active { cursor: grabbing; }
.edit-bar .grip .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.editing .dragging { opacity: .35; }
.editing .drop-before { box-shadow: 0 -9px 0 -6px var(--accent); }
.editing .drop-after { box-shadow: 0 9px 0 -6px var(--accent); }
.editing .add-inside.drop-inside { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.add-inside { margin-top: 12px; }

/* slide-over editor */
.panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-panel);
  width: min(420px, 100vw); display: flex; flex-direction: column;
  background: var(--surface); box-shadow: var(--shadow-lg);
}
.panel-enter-active { transition: transform 240ms ease-out, opacity 240ms ease-out; }
.panel-leave-active { transition: transform 160ms ease-out, opacity 160ms ease-out; }
.panel-enter-from { transform: translateX(28px); opacity: 0; }
.panel-leave-to { transform: translateX(16px); opacity: 0; }
.panel-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line-soft); }
.panel-head > div { flex: 1; min-width: 0; }
.eyebrow { font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 2px; }
.panel-head h3 { margin: 0; font-size: 17px; font-weight: 640; letter-spacing: -.012em; overflow-wrap: anywhere; }
.panel-head code { display: inline-block; margin-top: 6px; }
.panel-body { flex: 1; overflow: auto; padding: 4px 22px 24px; }
.panel-foot { padding: 14px 22px; border-top: 1px solid var(--line-soft); display: flex; justify-content: flex-end; gap: 8px; }
.f-row { display: block; margin-top: 18px; font-size: 13px; font-weight: 560; color: var(--ink); }
.f-row > input, .f-row > select, .f-row > textarea { margin-top: 6px; font-weight: 400; }
.f-row.inline { display: flex; align-items: center; gap: 8px; font-weight: 450; }
.f-row.inline input { width: auto; height: auto; accent-color: var(--accent); }
.hint { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; text-wrap: pretty; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12px; background: var(--surface-2); border: 1px solid var(--line-soft); padding: 1px 5px; border-radius: var(--r-xs); color: var(--ink-2); overflow-wrap: anywhere; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: var(--z-toast);
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px; max-width: calc(100vw - 32px); min-height: 48px;
  padding: 8px 8px 8px 16px; border-radius: 12px; /* concentric: 4px button + 8px padding */
  background: var(--toast); color: #fff; box-shadow: var(--shadow-lg); font-size: 13.5px;
}
.toast-error { background: var(--danger-fill); }
.toast span { text-wrap: pretty; }
.toast button {
  position: relative;
  flex: none; height: 32px; padding: 0 12px; border: 0; border-radius: var(--r-xs);
  background: rgba(255, 255, 255, .12); color: #fff; font-weight: 600; font-size: 13px; cursor: pointer;
  transition-property: background-color, scale; transition-duration: 150ms; transition-timing-function: ease-out;
}
.toast button::after { content: ""; position: absolute; inset: -4px; }
.toast button:hover { background: rgba(255, 255, 255, .22); }
.toast button:active { scale: .96; }
.toast-enter-active { transition: opacity 200ms ease-out, transform 200ms ease-out; }
.toast-leave-active { transition: opacity 140ms ease-out, transform 140ms ease-out; }
.toast-enter-from { opacity: 0; transform: translate(-50%, 10px); }
.toast-leave-to { opacity: 0; transform: translate(-50%, 4px); }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .topbar-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .progress { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; width: auto; }
  .progress-text { margin-bottom: 4px; }
}
@media (max-width: 760px) {
  .topbar-inner { padding: 10px 14px; gap: 10px 12px; }
  .actions { gap: 4px; }
  /* keep the label for screen readers, show only the icon */
  .btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .pop { position: fixed; left: 12px; right: 12px; top: calc(var(--topbar-h) + 4px); width: auto; min-width: 0; }
  .drafts-pop { width: auto; max-width: none; }
  .layout { padding: 14px 10px 56px; }
  .paper { padding: 22px 18px 32px; border-radius: var(--r-md); }
  .form-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .logo { width: 130px; }
  .form-header h1 { font-size: 24px; }
  .row { display: block; }
  .section .section { padding: 16px 14px 10px; }
  .tbl { overflow-x: visible; }
  .tbl-head { display: none; }
  .tbl-row { display: block; padding: 10px 12px; min-width: 0; }
  .field.in-table .switch-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .tbl-cell::before { content: attr(data-label); display: block; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
  .tbl-act { text-align: right; }
  .tbl-act::before { content: none; }
  .submit-note { margin-left: 0; flex-basis: 100%; }
  .toast, .fixbar { left: 12px; right: 12px; transform: none; width: auto; max-width: none; }
  body:has(.fixbar) .toast { bottom: 124px; }
  .toast-enter-from { transform: translateY(10px); }
  .toast-leave-to { transform: translateY(4px); }
}

/* Touch: controls themselves grow to 44px; the pseudo-element extensions above are for mouse precision. */
@media (pointer: coarse) {
  .btn { height: 44px; }
  .btn.icon-only { width: 44px; }
  .btn::after, .btn-lg::after { inset: -1px 0; }
  .btn-sm { height: 40px; }
  .btn-sm::after { inset: -3px 0; }
  .icon-btn { width: 40px; height: 40px; }
  .icon-btn::after { inset: -2px; }
  .edit-bar .icon-btn { width: 44px; height: 44px; }
  .edit-bar .icon-btn::after { inset: 0; }
  .choice { min-height: 44px; }
  .choice::after, .field.in-table .choice::after { inset: -1px 0; }
  .field.in-table .choice { min-height: 44px; }
  .menu-item { min-height: 44px; }
  .segmented button { height: 40px; }
  .segmented button::after { inset: -2px 0; }
  .toast button { height: 40px; }
  .toast button::after { inset: -2px; }
}

@media (max-width: 480px) {
  .save-state { display: none; } /* the progress row below already shows status */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- print ---------- */
@media print {
  /* paper prints in the screen's own colours, so a changed answer is the same blue on both */
  .no-print, .topbar, .toc, .editbar, .edit-bar, .panel, .toast, .jump, .tbl-act, .submit-row, .add-row, .add-inside, .alert, .segmented, .sig-bar, .files .icon-btn { display: none !important; }
  body { background: #fff; }
  body::before { display: none; }
  .layout { display: block; padding: 0; max-width: none; }
  .paper { box-shadow: none; padding: 0; border-radius: 0; }
  .section, .field, .tbl-row { break-inside: avoid; }
  .section .section { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
  /* printed boxes double as write-in spaces; the dropdown caret means nothing on paper */
  input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time], select, textarea { border-color: #b8b9bf; box-shadow: none; }
  select { background-image: none; padding-right: 11px; }
  .tbl { overflow: visible; }
  .choice { border-color: #ddd; }
  .choice:has(input:checked) { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Carbon: the note under a submitted form's title, and whether its PDF is in the customer folder */
.submitted-line { margin: 18px 0 0; padding: 10px 14px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 13px; color: var(--ink-2); }
/* a client's form, from a link DBS sent (client.html): whose form it is, and that their answers keep */
.client-intro { margin: 18px 0 0; padding: 10px 14px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 14px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.client-intro strong { color: var(--ink); font-weight: 600; }
.submitted-line p { margin: 0; }
.filed-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px !important; padding-top: 8px; border-top: 1px solid var(--line); }
.filed-line .icon { width: 15px; height: 15px; color: var(--draft-dot); }
.filed-line .icon.ok { color: var(--success-dot); }
.filed-line a, .link-btn { position: relative; color: var(--accent); font-weight: 500; text-underline-offset: 3px; }
/* 20px of text, 40px to click: the extra stays inside the grey box around the line */
.filed-line a::after, .link-btn::after { content: ""; position: absolute; inset: -10px -4px; }
.link-btn { padding: 0; border: 0; background: none; font: inherit; font-weight: 500; text-decoration: underline; cursor: pointer; }
.link-btn:disabled { color: var(--muted); cursor: default; }
.filing-problem { color: var(--danger) !important; }
.topbar a.brand { text-decoration: none; }

/* ---------- a live meeting on a draft form (stage 2) ---------- */
.meeting-pop { width: min(360px, calc(100vw - 32px)); min-width: 0; padding: 16px; }
.meeting-title { margin: 0 0 6px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
.meeting-note { margin: 0 0 14px; font-size: 13px; color: var(--muted); line-height: 1.5; text-wrap: pretty; }
/* the button shows its popup is open, as the ⋯ button does */
.btn-secondary[aria-expanded="true"] { background: var(--surface-2); box-shadow: var(--shadow-border-hover); }
.meeting-pop .consent { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; line-height: 1.45; margin-bottom: 12px; cursor: pointer; transition: box-shadow 150ms ease-out, background-color 150ms ease-out; }
.meeting-pop .consent input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.meeting-pop .consent:has(input:checked) { background: var(--success-soft); box-shadow: inset 0 0 0 1px var(--success-line); }
.meeting-pop .consent:has(input:focus-visible) { box-shadow: inset 0 0 0 1px var(--line), 0 0 0 3px var(--accent-ring); }
.meeting-warn { display: flex; gap: 6px; align-items: center; margin: 0 0 12px; font-size: 13px; color: var(--danger); }
.meeting-warn .icon { width: 16px; height: 16px; }
.meeting-acts { display: flex; gap: 8px; }
/* Send to client, in the form's top bar: the link to copy (Mikey, Nov 5 2026). Tinted once a link is out. */
.send-btn.sent { color: var(--accent-strong); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-ring); }
.send-pop { width: min(420px, calc(100vw - 32px)); }
.send-url {
  display: block; width: 100%; height: 36px; margin: 6px 0 10px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink); font: inherit; font-family: var(--font-mono); font-size: 12.5px;
}
.send-url:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.meeting-acts .btn-primary { padding-left: 12px; }
.listen-bar { position: sticky; top: var(--topbar-h); z-index: calc(var(--z-topbar) - 1); display: flex; align-items: center; gap: 12px; padding: 8px 24px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 13.5px; flex-wrap: wrap; }
.listen-bar .done-icon { width: 18px; height: 18px; color: var(--success); flex: none; }
.listen-bar .done-icon.bad { color: var(--danger); }
/* the dot pulses in the theme's own red */
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: rec-pulse 1.4s infinite; flex: none; }
@keyframes rec-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger) 40%, transparent) } 70% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--danger) 0%, transparent) } 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger) 0%, transparent) } }
.listen-time { font-variant-numeric: tabular-nums; font-weight: 600; flex: none; }
/* the words as heard take the room left; the count and the buttons hold still at the right */
.listen-text { flex: 1 1 0; min-width: 0; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listen-count { color: var(--success); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; flex: none; }
.listen-err { flex-basis: 100%; color: var(--danger); font-size: 12.5px; }
.listen-bar .confirm-btn { color: var(--draft); box-shadow: inset 0 0 0 1px var(--draft-line); background: var(--draft-soft); font-variant-numeric: tabular-nums; }
.field.heard { position: relative; isolation: isolate; }
.field.heard::after, .gq-row.heard::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: var(--r-md);
  background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); animation: heard 6s ease-out forwards;
}
.field.heard::after { inset: -6px -12px; }
.gq-row.heard { isolation: isolate; }
.gq-row.heard::after { inset: 0 -8px; }
@keyframes heard { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
.suggest { display: flex; align-items: flex-start; gap: 8px; margin-top: 6px; padding: 8px 10px; border-radius: var(--r-md); background: var(--draft-soft); box-shadow: inset 0 0 0 1px var(--draft-line); font-size: 13px; flex-wrap: wrap; }
.suggest-text { flex: 1; min-width: 0; align-self: center; color: var(--draft); text-wrap: pretty; }
.gq-q .suggest { margin-right: 8px; } .suggest-text b { color: var(--ink); } .suggest-text i { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none } .field.heard::after, .gq-row.heard::after { animation: none } }

/* A dropdown listing people from the Projects page (the System Design form's Sales Rep, Nov 6 2026): "Add a person…"
   opens this box under it. In the builder, the setting's note. */
/* 16px corners: the name box's 6 plus the 10 around it, so the two curves run parallel */
.add-person { display: grid; gap: 8px; margin-top: 8px; padding: 10px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.add-person-fields { display: grid; }
.add-person-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.add-person-note { font-size: 12px; line-height: 1.4; color: var(--muted); text-wrap: pretty; }
.add-person .error { margin: 0; }
.f-note { margin-top: 2px; font-size: 12.5px; font-weight: 400; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
