/* tallycon.com, set like Tallycon's own answer sheet (frontend/src/components/ask/Schedule.tsx,
   AnswerCard.tsx): one column on paper, sections numbered like notes to accounts and separated
   by hairline rules, tabular figures, a Total row between a rule and a double rule. Black ink and
   one accent, used for links and the page's single filled button. Light is the designed scheme;
   dark follows the same tokens. */

@font-face { font-family: 'Source Serif 4'; font-weight: 400; font-display: swap; src: url(/assets/fonts/serif-400.02194deb92.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-weight: 600; font-display: swap; src: url(/assets/fonts/serif-600.f2b7e1cf1d.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url(/assets/fonts/sans-400.3b646991d3.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-display: swap; src: url(/assets/fonts/sans-600.8960851d69.woff2) format('woff2'); }

:root {
  --paper: hsl(45 22% 97%);
  --sheet: hsl(0 0% 100%);
  --ink: hsl(0 0% 9%);
  --muted: hsl(0 0% 36%);
  --hair: hsl(40 8% 80%);
  --rule: hsl(0 0% 9%);
  --shade: hsl(40 12% 93%);
  --accent: hsl(174 81% 23%);
  --accent-hover: hsl(174 81% 16%);
  --on-accent: hsl(0 0% 100%);
  --error: hsl(3 71% 38%);
  --error-soft: hsl(6 78% 95%);
  --success: hsl(140 61% 26%);
  --success-soft: hsl(136 39% 92%);
  --warning: hsl(35 100% 22%);
  --warning-soft: hsl(40 84% 88%);
  --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --col: 760px;
  --figure: 920px;
  --hero-sheet: 1040px;
  --gutter: 24px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: hsl(40 6% 8%);
    --sheet: hsl(40 6% 11%);
    --ink: hsl(40 14% 90%);
    --muted: hsl(40 6% 64%);
    --hair: hsl(40 5% 24%);
    --rule: hsl(40 14% 90%);
    --shade: hsl(40 6% 15%);
    --accent: hsl(172 50% 56%);
    --accent-hover: hsl(172 50% 66%);
    --on-accent: hsl(173 69% 8%);
    --error: hsl(5 100% 75%);
    --error-soft: hsl(5 46% 16%);
    --success: hsl(138 51% 63%);
    --success-soft: hsl(138 39% 13%);
    --warning: hsl(38 84% 70%);
    --warning-soft: hsl(40 60% 16%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  font-variant-numeric: tabular-nums lining-nums;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
main:focus { outline: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.3rem, 2vw, 1.55rem); }
h3 { font-size: 1.1rem; }
p, ul, ol { margin: 0 0 1em; }
strong { font-weight: 600; }

/* One column at the figure width: headings, rules, figures and tables span it, prose keeps a
   760px measure on the same left edge. Only a hero sheet (the home schedule, the product
   screenshot) runs wider, centred on the column, because its table needs the room. */
.wrap, .col { margin: 0 auto; padding: 0 var(--gutter); }
.wrap { max-width: calc(var(--figure) + 2 * var(--gutter)); }
.col { max-width: calc(var(--figure) + 2 * var(--gutter)); }
.col > p, .col > ul, .col > ol, .col > blockquote, .col > .actions, .col > form { max-width: var(--col); }
.col > .schedule, .col > #shot-2 {
  --w: min(var(--hero-sheet), calc(100vw - 2 * var(--gutter)));
  width: var(--w);
  max-width: none;
  margin-left: calc((100% - var(--w)) / 2);
  margin-right: calc((100% - var(--w)) / 2);
}
.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--sheet); padding: 8px 14px; border: 1px solid var(--rule); }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

.draft-ribbon {
  background: var(--warning-soft); color: var(--warning);
  font-size: 0.85rem; text-align: center; padding: 6px 16px; border-bottom: 1px solid var(--hair);
}
mark.ph { background: var(--warning-soft); color: var(--warning); padding: 0 0.2em; outline: 1px dashed currentColor; }

/* ---------- header: text links and one bordered action ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 1.2rem var(--serif); }
.brand:hover { color: var(--ink); }
.brand img { display: block; }
.site-header ul { list-style: none; margin: 0; padding: 0; }
.nav-desktop { display: flex; align-items: center; gap: 28px; }
.nav-desktop > ul { display: flex; gap: 24px; align-items: center; }
.nav-desktop a:not(.nav-action), .dropdown summary {
  color: var(--ink); text-decoration: none; font-size: 0.95rem; padding: 6px 0; cursor: pointer;
}
.nav-desktop a:not(.nav-action):hover, .dropdown summary:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.nav-desktop a[aria-current], .dropdown summary[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.nav-action {
  display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px;
  border: 1px solid var(--ink); border-radius: 2px; color: var(--ink); text-decoration: none; font: 600 0.95rem var(--sans);
}
.nav-action:hover { background: var(--ink); color: var(--paper); }
.dropdown { position: relative; }
.dropdown summary { list-style: none; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary::after { content: ''; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.dropdown ul {
  position: absolute; top: calc(100% + 10px); left: -14px; min-width: 200px;
  background: var(--sheet); border: 1px solid var(--rule); padding: 6px 0;
}
.dropdown li a { display: block; padding: 8px 14px; }
.dropdown li a:hover { background: var(--shade); }
.nav-mobile { display: none; }

@media (max-width: 880px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
  .nav-mobile summary {
    list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 12px; border: 1px solid var(--ink); border-radius: 2px; min-height: 44px;
  }
  .nav-mobile summary::-webkit-details-marker { display: none; }
  .burger, .burger::before, .burger::after { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; }
  .burger::before, .burger::after { content: ''; position: absolute; left: 0; }
  .burger::before { top: -5px; }
  .burger::after { top: 5px; }
  .nav-mobile nav {
    position: absolute; left: 0; right: 0; top: 60px; background: var(--paper);
    border-bottom: 1px solid var(--rule); padding: 4px var(--gutter) 24px; max-height: calc(100vh - 60px); overflow: auto;
  }
  .nav-mobile li a:not(.nav-action) { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hair); }
  .nav-mobile li a[aria-current] { font-weight: 600; }
  .nav-mobile .nav-group { display: block; padding: 14px 0 2px; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
  .nav-mobile li ul a { padding-left: 14px !important; }
  .nav-mobile .nav-action { margin-top: 18px; width: 100%; justify-content: center; min-height: 44px; }
}

/* ---------- actions: text links, and one filled button a page ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 10px 22px; border-radius: 2px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--on-accent); font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.button[disabled] { opacity: 0.7; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin: 1.4em 0; }
a.action { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
a.action::after { content: ' →'; }
a.action:hover { border-bottom-width: 2px; }
a.more { font-weight: 600; text-decoration: none; white-space: nowrap; }
a.more:hover { text-decoration: underline; }

/* ---------- hero and numbered sections ---------- */
.hero { padding: 56px 0 8px; }
.hero h1 { max-width: 24ch; }
.hero .lead { font: 400 clamp(1.15rem, 1.8vw, 1.35rem)/1.45 var(--serif); max-width: 46ch; }
.hero .col > p { max-width: 64ch; }
.note > .col { padding-top: 36px; padding-bottom: 36px; }
.note > .col > h2:first-child { border-top: 1px solid var(--rule); padding-top: 14px; margin-bottom: 1em; }
.note h2 .no { font-family: var(--sans); font-weight: 600; font-size: 0.8em; margin-right: 0.35em; }
.note ul { padding-left: 1.2em; }
.note li { margin-bottom: 0.35em; }
.note li::marker { color: var(--muted); }

/* Steps are set as numbered notes, (1) to (4), not circles. */
.note ol { list-style: none; padding: 0; counter-reset: step; }
.note ol > li { counter-increment: step; position: relative; padding-left: 2.6em; margin-bottom: 0.6em; }
.note ol > li::before { content: '(' counter(step) ')'; position: absolute; left: 0; font-weight: 600; }

/* "**Point.** Text" paragraphs: the point in the margin, the text beside it, ruled between. */
.notes { margin: 0 0 1em; }
.notes > div { display: grid; grid-template-columns: 13rem 1fr; gap: 0 24px; padding: 14px 0; border-top: 1px solid var(--hair); }
.notes > div:last-child { border-bottom: 1px solid var(--hair); }
.notes dt { font: 600 1.05rem/1.4 var(--serif); }
.notes dd { margin: 0; }
.notes dd p:last-child { margin: 0; }
@media (max-width: 600px) { .notes > div { grid-template-columns: 1fr; gap: 4px; } }

/* Closing: one line and one link after a rule. */
.closing > .col { padding-top: 8px; padding-bottom: 56px; }
.closing p { border-top: 1px solid var(--rule); padding-top: 14px; margin: 0; }
.closing strong { font: 600 1.15rem/1.4 var(--serif); }

/* ---------- tables, set like the app's schedules ---------- */
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; }
.table-wrap:focus-visible { outline-offset: 4px; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hair); }
thead th { font: 600 0.75rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border-bottom: 1px solid var(--rule); }
tbody tr:last-child > * { border-bottom: 1px solid var(--rule); }
td:first-child { min-width: 9rem; }
.num { text-align: right; white-space: nowrap; }
td.actions { display: table-cell; }

/* The three status words, and nothing else, read as marks in tables. */
.status { display: inline-block; font: 600 0.75rem/1.5 var(--sans); text-transform: uppercase; letter-spacing: 0.06em; padding: 0 6px; border: 1px solid currentColor; border-radius: 2px; margin-right: 6px; }
.status-available { color: var(--success); }
.status-coming { color: var(--muted); }
.status-requested { color: var(--warning); }

/* ---------- pricing: one rate card ---------- */
.rate-card table { min-width: 0; }
.rate-card th[scope='row'] { font-weight: 400; width: 40%; }
.rate-card .plan { display: block; font: 600 1.15rem/1.3 var(--serif); }
.rate-card .plan-for { display: block; color: var(--muted); font-size: 0.9rem; }
.rate-card .plan-incl { display: block; font-size: 0.85rem; margin-top: 6px; max-width: 46ch; }
.rate-card td.num .amount { display: block; font: 600 1.1rem/1.3 var(--sans); }
.rate-card td.num .terms { display: block; font-size: 0.82rem; color: var(--muted); white-space: normal; }
.rate-card tbody tr:last-child > * { border-bottom: 3px double var(--rule); }
.footnotes { font-size: 0.88rem; color: var(--muted); }
.footnotes p { margin: 0; }
.rate-action { margin: 1.4em 0 0; }
@media (max-width: 720px) {
  .rate-card thead { display: none; }
  .rate-card table, .rate-card tbody, .rate-card tr, .rate-card th, .rate-card td { display: block; width: auto; }
  .rate-card tr { border-bottom: 1px solid var(--rule); padding: 12px 0; }
  .rate-card tbody tr:last-child { border-bottom: 3px double var(--rule); }
  .rate-card th, .rate-card td, .rate-card tbody tr:last-child > * { border: 0; padding: 4px 0; }
  .rate-card td { display: grid; grid-template-columns: 9rem 1fr; gap: 12px; text-align: left; }
  .rate-card td::before { content: attr(data-label); color: var(--muted); font-size: 0.85rem; }
  .rate-card td.num { white-space: normal; }
  .rate-card th[scope='row'] { width: auto; }
  .rate-card .plan-incl { max-width: none; }
}

/* ---------- screenshots and the diagram: flat, a 1px rule as frame ---------- */
.shot { margin: 1.4em 0 1.2em; }
.shot img { display: block; border: 1px solid var(--rule); }
.shot-box {
  aspect-ratio: 16 / 10; display: flex; flex-direction: column; justify-content: center; gap: 10px;
  padding: 24px clamp(16px, 4vw, 48px); border: 1px dashed var(--muted); background: var(--sheet); color: var(--muted);
}
.shot-id { font: 600 0.8rem var(--sans); text-transform: uppercase; letter-spacing: 0.08em; }
.shot-what { font-size: 0.95rem; max-width: 70ch; }
@media (max-width: 600px) { .shot-box { aspect-ratio: auto; min-height: 220px; } }

.diagram { border: 1px solid var(--rule); padding: 16px; background: var(--sheet); }
.diagram svg { display: block; margin: 0 auto; }
.dia-tall { display: none !important; max-width: 340px; }
@media (max-width: 640px) { .dia-wide { display: none !important; } .dia-tall { display: block !important; } }
.diagram .office rect { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 4 4; }
.diagram .node rect { fill: var(--sheet); stroke: var(--ink); stroke-width: 1; }
.diagram text { fill: var(--ink); font-family: var(--sans); }
.diagram .t-title { font: 600 17px var(--serif); fill: var(--ink); }
.diagram .t-sub { font-size: 13px; fill: var(--muted); }
.diagram .t-zone { font-size: 13px; font-weight: 600; fill: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.diagram .t-note { font-size: 13px; fill: var(--muted); }
.diagram .t-key { font-size: 14px; font-weight: 600; fill: var(--ink); }
.diagram .link { stroke: var(--ink); stroke-width: 1.5; }
.diagram .link.enc { stroke: var(--accent); stroke-width: 2.5; }
.diagram .bracket { fill: none; stroke: var(--ink); stroke-width: 1; }

/* ---------- document pages ---------- */
.doc { max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: 48px var(--gutter) 72px; }
.doc h1 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.doc section { margin-top: 2em; border-top: 1px solid var(--rule); padding-top: 14px; }
.doc h2 { font-size: 1.35rem; }
.doc ul, .doc ol { padding-left: 1.3em; }
.crumbs { margin-bottom: 0.6em; font-size: 0.95rem; }
.crumbs a::after { content: ' /'; color: var(--muted); }
.tag { display: inline-block; font: 600 0.75rem/1.5 var(--sans); text-transform: uppercase; letter-spacing: 0.06em; padding: 0 6px; border: 1px solid currentColor; border-radius: 2px; color: var(--muted); margin-right: 6px; }
.status-note { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 10px 0; }
code { font: 0.88em var(--mono); background: var(--shade); padding: 0.1em 0.3em; }
blockquote { margin: 1em 0; padding: 0.2em 1em; border-left: 1px solid var(--rule); color: var(--muted); }

/* ---------- demo form ---------- */
.demo-form { display: grid; gap: 18px; }
.form-note { color: var(--muted); font-size: 0.92rem; margin: 0; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
input[type='text'], input[type='email'], input[type='tel'], select, textarea {
  width: 100%; font: 400 1rem var(--sans); color: var(--ink); background: var(--sheet);
  border: 1px solid var(--muted); border-radius: 2px; padding: 10px 12px; min-height: 44px;
}
textarea { resize: vertical; min-height: 110px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
[aria-invalid='true'] { border-color: var(--error) !important; outline: 1px solid var(--error); }
.field-check { grid-template-columns: auto 1fr; align-items: start; gap: 10px 12px; }
.field-check input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--accent); }
.field-check label { font-weight: 400; }
.field-check .field-error { grid-column: 2; }
.help { color: var(--muted); font-size: 0.92rem; margin: 0; }
.field-error { color: var(--error); font-size: 0.92rem; font-weight: 600; margin: 0; }
.form-error { background: var(--error-soft); color: var(--ink); border-left: 2px solid var(--error); padding: 12px 16px; margin: 0; }
.form-error p { margin: 0 0 0.4em; }
.form-error p:last-child { margin: 0; }
.form-state { background: var(--success-soft); border-left: 2px solid var(--success); padding: 18px 22px; }
.demo-form .button { justify-self: start; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 28px 0 44px; color: var(--muted); font-size: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { color: var(--ink); }
.footer-line p { max-width: 80ch; margin: 0; }

@media (max-width: 600px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; }
  .hero { padding: 36px 0 4px; }
  .note > .col { padding-top: 24px; padding-bottom: 24px; }
  th, td { padding: 8px 10px 8px 0; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-header, .site-footer, .draft-ribbon, .skip { display: none; } }

/* ---------- screenshots: captions and callouts (appended to site.css by build.mjs) ---------- */
.shot-frame img { width: auto; max-width: 100%; height: auto; }
.shot figcaption, .schedule figcaption { margin-top: 0.75em; font-size: 0.9rem; color: var(--muted); max-width: 80ch; }
/* Callouts are boxed numbers like the answer number on the app's sheet, always in flow: beside
   their part on the typeset hero, and in the caption legend under a screenshot. Nothing is
   positioned over an image, so nothing drifts off it at phone width. */
.callout {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: 0.2em;
  width: 1.35rem; height: 1.35rem; margin-right: 0.55em; border-radius: 2px;
  font: 600 0.78rem/1 var(--sans); color: var(--paper); background: var(--ink);
}
.callout-legend { display: flex; flex-wrap: wrap; gap: 0.25em 1.6em; margin: 0.5em 0 0; padding: 0; list-style: none; counter-reset: callout; }
.note .callout-legend > li, .callout-legend > li { counter-increment: callout; padding-left: 0; margin: 0; }
.note .callout-legend > li::before, .callout-legend > li::before { content: counter(callout); position: static; display: inline-block; min-width: 1.3em; margin-right: 0.4em; text-align: center; font-weight: 600; color: var(--paper); background: var(--ink); border-radius: 2px; }

/* ---------- [SCHEDULE-1]: an answer typeset in the page, as the app sets it ---------- */
/* The hero's callouts are in flow beside each part (headline, summary, the line above the table,
   the slips' title), so they stay on their part at any width. */
.schedule .callout { letter-spacing: 0; text-transform: none; }
.schedule .sheet-headline .callout { vertical-align: 0.45em; }
.schedule .sheet-step .callout, .schedule .slips-label .callout { vertical-align: 0; }
@media (max-width: 600px) { .schedule .callout { width: 1.2rem; height: 1.2rem; font-size: 0.7rem; } }
.schedule { margin: 2em 0 1.4em; display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 0; align-items: start; }
.schedule figcaption { grid-column: 1 / -1; }
.sheet { background: var(--sheet); border: 1px solid var(--rule); padding: 20px 20px 22px; min-width: 0; }
.sheet p { margin: 0; }
.sheet-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.answer-no { border: 1px solid var(--accent); color: var(--accent); font: 11px/18px var(--mono); padding: 0 6px; }
.sheet-question { flex: 1 1 20rem; font: 600 1.3rem/1.35 var(--serif); }
.sheet-meta { font-size: 0.8rem; color: var(--muted); }
.sheet-label { margin-top: 16px !important; font: 600 0.72rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.sheet-headline { font: 600 2.1rem/1.15 var(--sans); letter-spacing: -0.015em; margin-top: 4px !important; }
.sheet-headline .side { font-size: 1.1rem; color: var(--muted); }
.sheet-headline .note { font: 400 0.9rem var(--sans); letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.sheet-exact { font: 0.8rem var(--mono); color: var(--muted); margin-top: 2px !important; }
.sheet-summary { margin-top: 14px !important; max-width: 66ch; font-size: 0.95rem; line-height: 1.6; }
.sheet-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 18px !important; padding-bottom: 8px; border-bottom: 1px solid var(--hair); font-size: 0.75rem; }
.sheet-proof > span:first-child { font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.proof-count { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); }
.proof-count svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sheet-proof .unit { margin-left: auto; color: var(--muted); }
.sheet-step { margin-top: 8px !important; font: 0.72rem/1.5 var(--mono); color: var(--muted); }
.sheet-table { margin: 10px 0 0; }
.sheet-table table { font-size: 0.82rem; min-width: 720px; }
.sheet-table th, .sheet-table td { padding: 7px 6px; }
.sheet-table th:first-child { padding-left: 8px; }
.sheet-table thead th { font-size: 0.64rem; letter-spacing: 0.04em; vertical-align: bottom; }
.sheet-table thead th.num { width: 4.6em; white-space: normal; }
.sheet-table thead th.num { text-align: right; }
.sheet-table tbody th { font-weight: 400; text-align: left; min-width: 8rem; }
.sheet-table tbody tr:last-child > * { border-bottom: 1px solid var(--rule); }
.sheet-table tfoot > tr > * { font-weight: 600; border-bottom: 3px double var(--rule); text-align: left; }
.sheet-table tfoot td.num { text-align: right; }
.sheet-table tr.selected > * { background: var(--shade); }
.sheet-table tr.selected > th { border-left: 2px solid var(--ink); padding-left: 6px; }
.sheet-table .vouched { white-space: nowrap; font-size: 0.8rem; }

.slips { border: 1px solid var(--rule); border-left: 0; background: var(--paper); padding: 16px 14px 14px; align-self: stretch; min-width: 0; }
.slips p { margin: 0; }
.slips-label { font: 600 0.68rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.slips-party { font: 600 1.05rem/1.3 var(--serif); margin-top: 2px !important; }
.slips-count { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); margin: 2px 0 10px !important; }
.slip { background: var(--sheet); border: 1px solid var(--hair); padding: 10px 12px; margin-bottom: 8px; font-size: 0.78rem; }
.slip-head { display: flex; align-items: baseline; gap: 6px; }
.slip-type { font-weight: 600; }
.slip-no { font: 0.68rem var(--mono); border: 1px solid var(--muted); padding: 0 4px; }
.slip-date { margin-left: auto; color: var(--muted); white-space: nowrap; }
.slip-party { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; margin: 4px 0 4px !important; font-size: 0.8rem; white-space: nowrap; }
.slip-lines { display: grid; grid-template-columns: 1fr auto; margin: 0; border-top: 1px solid var(--hair); }
.slip-lines dt, .slip-lines dd { margin: 0; padding: 3px 0; border-bottom: 1px dotted var(--hair); }
.slip-lines dd { text-align: right; font-family: var(--mono); font-size: 0.74rem; }
.slips-more { font-size: 0.78rem; color: var(--muted); }
.slips .num { font-family: var(--mono); }

@media (max-width: 960px) {
  .schedule { grid-template-columns: minmax(0, 1fr); }
  .slips { border-left: 1px solid var(--rule); border-top: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 10px; }
  .slips > p { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .sheet { padding: 16px 14px 18px; }
  .sheet-question { font-size: 1.12rem; }
  .sheet-headline { font-size: 1.75rem; }
  .sheet-proof .unit { margin-left: 0; }
  .slips .slip:nth-of-type(3) { display: none; }
}
