/* Components: every reusable piece. Each block here matches a component in src/README.md.
 * Page-specific rules do NOT go in this file. They go in css/pages/<name>.css. */

.icon { flex: none; vertical-align: -0.125em; }

/* ---------------------------------------------------------------- buttons */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--target);
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn--small { min-height: 40px; padding: 0 14px; font-size: 0.9375rem; }
.btn .icon--arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }

/* ---------------------------------------------------------------- status chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px 2px 8px;
  border: 1px solid var(--chip-line, var(--planned-line));
  border-radius: 999px;
  background: var(--chip-bg, var(--planned-bg));
  color: var(--chip-fg, var(--planned-fg));
  font-size: var(--fs--1);
  font-weight: 700;
  line-height: 1.45;
  white-space: nowrap;
}
.chip::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  box-sizing: border-box;
  background: currentColor;
  border-radius: 50%;
}
.chip--live, .chip--part-live { --chip-fg: var(--live-fg); --chip-bg: var(--live-bg); --chip-line: var(--live-line); }
.chip--built, .chip--part-built { --chip-fg: var(--built-fg); --chip-bg: var(--built-bg); --chip-line: var(--built-line); }
.chip--planned { --chip-fg: var(--planned-fg); --chip-bg: var(--planned-bg); --chip-line: var(--planned-line); }
/* The little shape differs by status as well as the colour, so colour is never the only signal. */
.chip--built::before { border-radius: 2px; transform: rotate(45deg); }
.chip--planned::before { background: transparent; border: 2px solid currentColor; }
.chip--part-live::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); border: 1.5px solid currentColor; }
.chip--part-built::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); border: 1.5px solid currentColor; border-radius: 2px; transform: rotate(45deg); }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chip-legend { display: grid; gap: var(--s-3) var(--s-6); }
.chip-legend__row { display: flex; align-items: flex-start; gap: var(--s-3); }
.chip-legend dt { flex: none; min-width: 9.5rem; }
.chip-legend dd { margin: 0; color: var(--muted); font-size: var(--fs-0); }
@media (max-width: 519.98px) { .chip-legend__row { flex-direction: column; gap: var(--s-1); } }
@media (min-width: 860px) { .chip-legend { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- type helpers */
.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: var(--fs--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lede { color: var(--ink); font-size: var(--fs-1); max-width: 60ch; }

/* ---------------------------------------------------------------- layout: section, hero, grid, split */
.section { padding-block: var(--s-7); }
@media (min-width: 720px) { .section { padding-block: var(--s-8); } }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
/* Coming soon: one dashed, clearly labelled block per product page (founder's decision, 17 Nov 2026). */
.section--soon .wrap { border: 2px dashed var(--built-line); border-radius: var(--radius); padding: var(--s-6) var(--s-5); background: var(--surface); }
.soon-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--built-bg); color: var(--built-fg); border: 1px solid var(--built-line); letter-spacing: 0.06em; }
.section--soon .card { background: var(--bg); }
.section--narrow > .wrap { max-width: calc(780px + 2 * var(--gutter)); }
.section__head { display: grid; gap: var(--s-2); margin-bottom: var(--s-6); max-width: 68ch; }

.hero {
  padding-block: var(--s-7) var(--s-7);
  background: linear-gradient(180deg, var(--surface-2), transparent 85%);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) { .hero { padding-block: var(--s-8); } }
.hero__grid { display: grid; gap: var(--s-6); align-items: center; }
.hero__copy { display: grid; gap: var(--s-3); justify-items: start; }
.hero__copy h1 { max-width: 22ch; }
.hero__chip { margin: 0; }
.hero__body { display: grid; gap: var(--s-3); }
.hero__body .lede { font-size: var(--fs-1); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s-3); }
.hero__visual {
  min-width: 0;
  padding: var(--s-4);
  background: color-mix(in srgb, var(--surface) 40%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (min-width: 900px) {
  .hero--split .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--s-7); }
  .hero--visual-first .hero__visual { order: -1; }
}
/* Narrow screens stack the hero: the picture goes first, so it is what a visitor sees on opening. */
@media (max-width: 899px) { .hero--split .hero__visual { order: -1; } }

.grid { display: grid; gap: var(--s-4); }
.grid--1 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.split { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7); }
  .split--reverse > .split__a { order: 2; }
}

/* ---------------------------------------------------------------- cards */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t-fast) ease, box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.card__meta { margin: 0; }
.card__title { font-size: var(--fs-1); }
.card__body { display: grid; gap: var(--s-2); color: var(--ink-2); }
/* A small line icon on a card that has no link or chip of its own: an inline svg.card__icon placed as the
 * first thing inside .card__body. The card lifts it above the title. Decoration only (aria-hidden). */
.card__icon {
  order: -1;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  margin-bottom: var(--s-1);
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card:has(> .card__body > .card__icon) > .card__body { display: contents; }
.card__link { color: var(--ink); text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card__link:hover { color: var(--accent); }
.card:has(.card__link:hover) { border-color: var(--accent); box-shadow: var(--shadow); }
.card:has(.card__link:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.card__link:focus-visible { outline: none; }

.product-card { gap: var(--s-2); min-height: 8.5rem; }
.product-card__short { color: var(--muted); font-size: var(--fs-0); }
.product-card__needs {
  margin-top: auto;
  padding-top: var(--s-2);
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: var(--fs--1);
}
.product-card__needs-label { color: var(--ink-2); font-weight: 700; }
.product-index__group { padding-block: var(--s-5); }
.product-index__head { display: grid; gap: 2px; margin-bottom: var(--s-4); }
.product-index__head h2 a, .product-index__head h3 a { color: var(--ink); text-decoration: none; }
.product-index__head h2 a:hover, .product-index__head h3 a:hover { color: var(--accent); }
.product-index__head p { color: var(--muted); }

/* ---------------------------------------------------------------- product block, features, parts */
.product-block {
  padding-block: var(--s-6);
  border-top: 1px solid var(--line);
}
.product-block:first-of-type { border-top: 0; }
.product-block__head { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
.product-block__chip { margin: 0; }
.product-block__short { color: var(--muted); font-size: var(--fs-1); }
.product-block__body { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
.product-block__sub { margin: var(--s-5) 0 var(--s-3); font-size: var(--fs-0); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.feature-list__item {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.feature-list__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--s-3); }
.feature-list__name { font-size: var(--fs-0); }
.feature-list__desc { color: var(--ink-2); }
.feature-list__note { color: var(--muted); font-size: var(--fs-0); }
.part-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.part-list__item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: var(--fs-0); }
.part-list__name { color: var(--ink); }
.part-list__note { color: var(--muted); font-size: var(--fs-0); }

/* ---------------------------------------------------------------- notice */
.notice {
  display: grid;
  gap: 4px;
  padding: var(--s-3) var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
}
.notice__title { margin: 0; font-weight: 600; }
.notice__body { display: grid; gap: var(--s-2); color: var(--ink-2); }
.notice--info { border-left-color: var(--accent); }
.notice--note { border-left-color: var(--planned-line); }
.notice--warning { border-left-color: var(--built-line); background: var(--built-bg); }
.notice--warning .notice__title, .notice--warning .notice__body { color: var(--built-fg); }
.notice--sample, .notice--illustration { border-style: dashed; border-left-style: solid; border-left-color: var(--planned-line); }
.notice--stub { border-style: dashed; border-left-color: var(--built-line); }

/* ---------------------------------------------------------------- tables */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); }
.table caption { text-align: left; }
.table th, .table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--surface-2); font-size: var(--fs--1); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.table tbody th { font-weight: 600; }
.table td.num { text-align: right; }
@media (max-width: 719.98px) {
  .table--equipment, .table--equipment tbody, .table--equipment tr, .table--equipment th, .table--equipment td { display: block; }
  .table--equipment thead { display: none; }
  .table--equipment tr { margin-bottom: var(--s-3); padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--radius-sm); }
  .table--equipment th, .table--equipment td { padding: 4px 0; border: 0; }
  .table--equipment td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
  .table--equipment tbody th { font-size: var(--fs-1); }
}

/* ---------------------------------------------------------------- FAQ */
.faqs { display: grid; gap: 10px; max-width: 780px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: var(--target);
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q .icon { color: var(--muted); transition: transform var(--t-fast) var(--ease); }
.faq[open] .faq__q .icon { transform: rotate(180deg); }
.faq__a { display: grid; gap: var(--s-2); padding: 0 16px 16px; color: var(--ink-2); }

/* ---------------------------------------------------------------- figures and stats */
.figure img { display: block; border-radius: var(--radius-sm); }
.figure figcaption { margin-top: 8px; color: var(--muted); font-size: var(--fs-0); }

.stats { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stat {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat__value { font-size: var(--fs-4); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.stat__label { font-weight: 600; }
.stat__note { color: var(--muted); font-size: var(--fs-0); }
.stat__asof { color: var(--muted); font-size: var(--fs--1); }

/* ---------------------------------------------------------------- what happens next */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps__item {
  display: grid;
  gap: var(--s-2);
  align-content: start;
  padding: var(--s-5);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.steps__item p { color: var(--muted); }
.steps__n {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.next-steps__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: var(--s-6); max-width: none; }

/* ---------------------------------------------------------------- mailto call to action */
.mailto-cta { display: grid; gap: var(--s-3); justify-items: start; }
.mailto-cta__address { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.mailto-cta__note { color: var(--muted); font-size: var(--fs-0); max-width: 56ch; }

/* ---------------------------------------------------------------- filter bar */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: var(--s-4) 0 var(--s-5); }
.filter-chip {
  appearance: none;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-0);
  font-weight: 600;
  cursor: pointer;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filter-bar__note { color: var(--muted); font-size: var(--fs-0); }

/* ---------------------------------------------------------------- tabs */
.tabs__panel + .tabs__panel { margin-top: var(--s-6); }
.tabs__title { margin-bottom: var(--s-3); }
.tabs.is-enhanced .tabs__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.tabs.is-enhanced .tabs__panel + .tabs__panel { margin-top: 0; }
.tabs__list { display: flex; gap: 4px; margin-bottom: var(--s-5); overflow-x: auto; border-bottom: 1px solid var(--line); }
.tabs__tab {
  appearance: none;
  flex: none;
  min-height: var(--target);
  padding: 0 18px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.tabs__tab:hover { color: var(--ink); }
.tabs__tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------------------------------------------------------------- stepper (the day walkthrough) */
.stepper__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); counter-reset: step; }
.stepper__step {
  counter-increment: step;
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stepper__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px var(--s-3); margin-bottom: var(--s-3); }
.stepper__head h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.stepper__time { color: var(--accent); font-weight: 700; font-size: var(--fs-1); }
.stepper__body { display: grid; gap: var(--s-3); color: var(--ink-2); }

.stepper.is-enhanced {
  padding: var(--s-4);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface-2);
  background: color-mix(in srgb, color-mix(in srgb, var(--day-a), var(--day-b) calc(min(var(--t, 0) * 2, 1) * 100%)), var(--day-c) calc(max(var(--t, 0) * 2 - 1, 0) * 100%));
  transition: background var(--t-slow) ease;
}
.stepper__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: var(--s-4);
  padding: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.stepper__scrub { display: flex; align-items: center; flex: 1 1 200px; min-width: 160px; }
.stepper__scrub input { width: 100%; min-height: var(--target); accent-color: var(--accent); }
.stepper__out { flex: 1 1 100%; color: var(--ink-2); font-size: var(--fs-0); }
@media (min-width: 720px) { .stepper__out { flex: 0 1 auto; } }

/* ---------------------------------------------------------------- contents list and prose */
.toc { padding: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.toc__title { margin: 0 0 var(--s-2); font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.toc__list { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.toc__list a { color: var(--ink); text-decoration: none; }
.toc__list a:hover, .toc__list a[aria-current="true"] { color: var(--accent); text-decoration: underline; }
.toc__list a[aria-current="true"] { font-weight: 700; }

.prose { max-width: 70ch; display: grid; gap: var(--s-3); }
.prose > * + h2 { margin-top: var(--s-6); }
.prose > * + h3 { margin-top: var(--s-5); }
.prose ul, .prose ol { display: grid; gap: 6px; }
.prose li > p { max-width: none; }

/* ---------------------------------------------------------------- demo video slot */
.demo-video { margin: 0 0 var(--s-6); }
.demo-video video { display: block; width: 100%; height: auto; border-radius: var(--radius); background: #000; }
.demo-video figcaption { margin-top: 8px; color: var(--muted); font-size: var(--fs-0); }

/* The contact form (see {{enquiry-form}}). The honeypot is moved off screen, never display:none, so a
   robot that fills every visible-looking field still fills it; people never see or reach it. */
.enquiry { display: grid; gap: var(--s-4); max-width: 40rem; }
.enquiry__form { display: grid; gap: var(--s-4); }
.enquiry__form[hidden], .enquiry__done[hidden], [data-enquiry-plain][hidden] { display: none; }
.enquiry__field { display: grid; gap: 6px; }
.enquiry__field label { font-weight: 600; }
.enquiry__hint { color: var(--muted); font-size: var(--fs-0); margin: 0; }
.enquiry input[type="text"], .enquiry input[type="email"], .enquiry select, .enquiry textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
.enquiry textarea { resize: vertical; min-height: 9rem; }
.enquiry input:focus-visible, .enquiry select:focus-visible, .enquiry textarea:focus-visible,
.enquiry input[type="checkbox"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.enquiry [aria-invalid="true"] { border-color: var(--built-fg); }
.enquiry__error { color: var(--built-fg); font-size: var(--fs-0); margin: 0; }
.enquiry__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.enquiry__check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.enquiry__check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.enquiry__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.enquiry__status { margin: 0; min-height: 1.5em; }
.enquiry__status--bad { color: var(--built-fg); }
.enquiry__fallback { margin: 0; }
.enquiry__done { display: grid; gap: var(--s-3); padding: var(--s-5, 24px); border: 1px solid var(--live-line); border-left: 6px solid var(--live-line); border-radius: 12px; background: var(--live-bg); color: var(--live-fg); }
.enquiry__done:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.enquiry__done p, .enquiry__done h3, .enquiry__done h4, .enquiry__done ol { margin: 0; }
.enquiry__done-title { font-size: 1.375rem; }
.enquiry__done-steps { padding-left: 1.25rem; display: grid; gap: 6px; }
.enquiry__done-note { font-size: var(--fs-0); }

/* ---------------------------------------------------------------- diagrams
   Drawings made in code (build/diagrams.mjs) rather than generated as pictures:
   the figures on them are real text, so they stay sharp at every zoom and a
   wrong number is a one-line fix instead of a regenerated image. Colour comes
   from the theme tokens so one drawing serves light and dark. */
.dgm { width: 100%; height: auto; display: block; font-family: inherit; }
.dgm__card { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.dgm__card--alt { fill: var(--surface-2); }
.dgm__rule { stroke: var(--line); stroke-width: 1.5; fill: none; }
.dgm__title { fill: var(--ink); font-size: 22px; font-weight: 600; }
.dgm__sub { fill: var(--muted); font-size: 14px; }
.dgm__label { fill: var(--ink); font-size: 16px; }
.dgm__amount { fill: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; }
.dgm--strong { font-weight: 600; font-size: 19px; }
.dgm__band { fill: var(--accent-soft); }
.dgm__band--good { fill: var(--live-bg); }
.dgm__btn { fill: var(--accent); }
.dgm__btn-text { fill: var(--accent-ink); font-size: 16px; font-weight: 600; }
.dgm__tick-disc { fill: var(--live-line); }
.dgm__tick { stroke: var(--surface); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dgm__good { fill: var(--live-fg); font-size: 16px; font-variant-numeric: tabular-nums; }
.dgm__good-sub { fill: var(--live-fg); font-size: 13px; opacity: 0.85; }
.dgm__chip { fill: var(--accent-soft); }
.dgm__chip-text { fill: var(--accent); font-size: 13px; font-weight: 600; }
.dgm__arrow { stroke: var(--line-strong); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dgm__count { fill: var(--accent); }
.dgm__count-text { fill: var(--accent-ink); font-size: 24px; font-weight: 600; }
.dgm__tiny { fill: var(--muted); font-size: 13px; }
.dgm__today { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4 4; fill: none; }
.dgm__target { stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 5 5; fill: none; }
.dgm__person { fill: var(--accent); }
.dgm__tick-bg { fill: #2f9e6e; }
.dgm__tick { fill: none; stroke: #ffffff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dgm__wait { fill: #f6b24a; }
.dgm__num { fill: var(--ink); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dgm__btn-ghost { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.dgm__btn-ghost-text { fill: var(--ink-2); font-size: 15px; font-weight: 600; }
.dgm__foot { fill: var(--ink-2); font-size: 16px; }
.dgm__foot--quiet { fill: var(--muted); font-size: 14px; }
.dgm__track { stroke: var(--line); stroke-width: 6; fill: none; stroke-linecap: round; }
.dgm__track-on { stroke: var(--accent); stroke-width: 6; fill: none; stroke-linecap: round; }
.dgm__stop { fill: var(--surface); stroke: var(--line-strong); stroke-width: 2.5; }
.dgm__stop--on { fill: var(--accent); stroke: var(--accent); }
.dgm__band--hold { fill: var(--surface-2); }
.dgm-wrap { margin-top: var(--s-4); max-width: 44rem; }
.dgm__tile { fill: var(--surface-2); }
.dgm__tile-icon { fill: var(--accent-soft); }
.dgm__glyph { color: var(--accent); }
.dgm__step { fill: var(--accent-ink); font-size: 15px; font-weight: 600; }
.dgm__card--none { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 6 5; }
.dgm__frame { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.dgm__dot { fill: var(--line-strong); }
.dgm__mini--a { fill: var(--accent); }
.dgm__mini--b { fill: #56bdb9; }
.dgm__mini--c { fill: #f6b24a; }
.dgm__mini--d { fill: #9d8ef2; }
.dgm__mini--line { fill: var(--surface-2); }

/* A card that explains one case, with a drawn scene above the heading. The art is decorative, so it
   sits on a tinted panel and gets no accessible name - the heading and the words carry the meaning. */
.card--art { padding-top: 0; overflow: hidden; }
.card__art { background: var(--surface-2); padding: var(--s-3) 0; display: flex; justify-content: center; }
.card__art svg { width: 100%; max-width: 200px; height: auto; }
.card__art .g-fill { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; }
.card__art .g-fill-tail { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.card__art .g-muted { fill: var(--surface); stroke: var(--line-strong); stroke-width: 2; }
.card__art .g-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card__art .g-line-soft { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-linecap: round; }
.card__art .g-line-soft-dot { fill: var(--line-strong); }
.card__art .g-band { fill: var(--accent); }
.card__art .g-text { fill: var(--accent-ink); font-size: 13px; font-weight: 600; }
.card__art .g-disc { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.card__art .g-dot { fill: var(--live-line); }
.card__art .g-tick { fill: none; stroke: var(--surface); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.card__art .g-arrow { fill: none; stroke: var(--line-strong); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dgm__rail { fill: var(--surface-2); }
.dgm__win-title { fill: var(--muted); font-size: 13px; }
.dgm__row { fill: transparent; }
.dgm__row--unread { fill: var(--accent-soft); }
.dgm__row--on { fill: var(--accent-soft); }
.dgm__unread { fill: var(--accent); }
.dgm__from { fill: var(--ink); font-size: 13px; font-weight: 600; }
.dgm__subject { fill: var(--muted); font-size: 13px; }
.dgm__when { fill: var(--muted); font-size: 13px; }
.dgm__folder { fill: var(--ink-2); font-size: 13px; }
.dgm__count-pill { fill: var(--accent); font-size: 13px; font-weight: 600; }
.dgm__col { fill: var(--muted); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.dgm__doc { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.4; }
.dgm__doc-fold { fill: none; stroke: var(--accent); stroke-width: 1.4; }
.dgm__bubble { fill: var(--surface-2); }
.dgm__bubble--mine { fill: var(--accent); }
.dgm__msg { fill: var(--ink); font-size: 13px; }
.dgm__msg--mine { fill: var(--accent-ink); }
.dgm__tiny--mine { fill: var(--accent-ink); opacity: 0.8; }
.dgm__initial { fill: var(--accent); font-size: 13px; font-weight: 700; }

/* ------------------------------------------------------------------- zoom
   A closer look at a picture or a drawing. The button is the affordance: a
   figure is not a control, so the picture itself is not made one. */
.zoom-open {
  position: absolute; right: 10px; bottom: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--ink-2);
  box-shadow: 0 1px 4px rgb(0 0 0 / 12%);
  cursor: pointer;
}
.zoom-open:hover { color: var(--accent); border-color: var(--accent); }
.is-zoomable { cursor: zoom-in; }

.zoom {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px;
  background: color-mix(in srgb, var(--ink) 72%, transparent);
}
.zoom__inner { position: relative; width: min(1400px, 100%); max-height: 100%; display: flex; }
.zoom__art {
  width: 100%; height: auto; max-height: calc(100vh - 32px);
  object-fit: contain; border-radius: var(--radius-md); background: var(--surface);
}
.zoom__close {
  position: absolute; top: -4px; right: -4px; transform: translate(50%, -50%);
  padding: 8px 14px; border: 0; border-radius: 999px;
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 600;
  box-shadow: 0 2px 8px rgb(0 0 0 / 25%); cursor: pointer;
}
@media (max-width: 30rem) {
  .zoom__close { top: 8px; right: 12px; transform: none; }
}
.dgm__big { fill: var(--ink); font-size: 22px; font-weight: 600; }
.dgm__on-solid { fill: var(--accent-ink); font-size: 15px; font-weight: 600; }
.dgm__on-solid-sm { fill: var(--accent-ink); font-size: 13px; opacity: 0.85; }
.dgm__spark { fill: var(--accent); }
