/* The Mehtagent kit's tokens, for the docs visuals only (22 Nov 2026). Values are copied from logbook/site/style.css (light, and dark in both
   forms the app uses), so a docs chip, box or button reads as the app's. This is the one file in the docs visuals that holds a colour value;
   every rule in diagram.css and tour.css wears a token (tests/test_docs_visuals_tokens.py). Since 23 Nov 2026 it is the docs site's one
   token file: set on :root, linked first by every page, so the page and its visuals share one palette. Colour meaning, per docs/BRAND.md: ok = passed or done, bad = failed or overdue, warn = needs a look soon, accent = something
   you can press or the one selected thing. A word always sits beside a colour. */
:root {
  --bg: #fbfaf8; --code-bg: #16181e; --code-text: #e6e9ee; --red: #dc2626; --green: #16a34a;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; --mono: ui-monospace, Menlo, monospace;
  --panel: #fffefb; --panel-alt: #eeece5; --border: #e6e8eb; --border-strong: #d6d9dd;
  --text: #1b1f24; --text-soft: #57606a; --text-faint: #59616b;
  --accent: #4f46e5; --accent-soft: #eef0fd; --accent-text: #4338ca;
  --ok-soft: #e6f6ec; --ok-text: #137539; --ok-line: #bbf7d0;
  --bad-soft: #fdecec; --bad-text: #b91c1c; --bad-line: #f3c9c9;
  --warn-soft: #fdf3e0; --warn-text: #8a5300; --warn-line: #f0dcb4;
  --scrim: rgba(16, 22, 26, 0.45);
  --alt: var(--panel-alt); --faint: var(--text-faint); --soft: var(--text-soft);
  /* Marks drawn over an app still in a docs scene (scene.css, 23 Nov 2026). The stills are the app's dark theme in either
     page theme, so these stay one set; the values are the home scenes' (scroll/assets/home.css .fx-*). */
  --still-bg: #16181e; --still-mark: #8f98fa; --still-ink: #eef0f6; --still-halo: rgba(10, 11, 15, 0.92); --still-dim: rgba(12, 13, 17, 0.68);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0f13; --code-bg: #0a0b0e; --red: #f87171; --green: #4ade80;
    --panel: #16191f; --panel-alt: #1d2128; --border: #2a2f38; --border-strong: #3a414c;
    --text: #e3e7ed; --text-soft: #aab3bf; --text-faint: #9ba4b0;
    --accent: #8f98fa; --accent-soft: #252a4b; --accent-text: #b4baff;
    --ok-soft: #12281b; --ok-text: #67d391; --ok-line: #22492f;
    --bad-soft: #2e1a1c; --bad-text: #ff958d; --bad-line: #5b2b2e;
    --warn-soft: #2b2313; --warn-text: #eab552; --warn-line: #4d3f1d;
    --scrim: rgba(0, 0, 0, 0.55);
  }
}
:root[data-theme="dark"] {
  --bg: #0e0f13; --code-bg: #0a0b0e; --red: #f87171; --green: #4ade80;
  --panel: #16191f; --panel-alt: #1d2128; --border: #2a2f38; --border-strong: #3a414c;
  --text: #e3e7ed; --text-soft: #aab3bf; --text-faint: #9ba4b0;
  --accent: #8f98fa; --accent-soft: #252a4b; --accent-text: #b4baff;
  --ok-soft: #12281b; --ok-text: #67d391; --ok-line: #22492f;
  --bad-soft: #2e1a1c; --bad-text: #ff958d; --bad-line: #5b2b2e;
  --warn-soft: #2b2313; --warn-text: #eab552; --warn-line: #4d3f1d;
  --scrim: rgba(0, 0, 0, 0.55);
}
/* The app's chip (logbook/site/screens/kit.css .kit-chip): 26 px high, 8 px side padding, round, 12 px words. */
.kit-chip { display: inline-flex; align-items: center; box-sizing: border-box; height: 26px; padding: 0 8px; border-radius: 999px;
  font: 400 12px/16px var(--sans); border: 1px solid var(--border); background: var(--panel-alt); color: var(--text-soft); white-space: nowrap; }
.kit-chip.is-ok { background: var(--ok-soft); color: var(--ok-text); border-color: var(--ok-line); }
.kit-chip.is-bad { background: var(--bad-soft); color: var(--bad-text); border-color: var(--bad-line); }
.kit-chip.is-warn { background: var(--warn-soft); color: var(--warn-text); border-color: var(--warn-line); }
.kit-chip.is-accent { background: var(--accent-soft); color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
/* The colour key (`@key`): one row of the app's chips, each with its word and its meaning beside it. */
.dkey { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 16px 0 0; font-size: 14px; line-height: 20px; color: var(--text-soft); }
.dkey-i { display: inline-flex; align-items: center; gap: 8px; }
@media (forced-colors: active) { .kit-chip { border-color: CanvasText; forced-color-adjust: none; color: CanvasText; background: Canvas; } }
/* The collapsed panel (`@details <summary words>` ... `@enddetails` in build_docs.py): a page's technical detail, closed by
   default, opened by its 44 px summary line. One markup for every docs page (23 Nov 2026). */
.more { margin: 32px 0 0; border-top: 1px solid var(--border); }
.more > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0; cursor: pointer; list-style: none;
  font: 600 16px/24px var(--sans); color: var(--text); }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--text-soft); border-bottom: 2px solid var(--text-soft);
  transform: rotate(-45deg); transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1); flex-shrink: 0; }
.more[open] > summary::before { transform: rotate(45deg); }
.more > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.more > :not(summary) { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .more > summary::before { transition: none; } }
