/* Synaptic Showcase in BushidoPay dark (0.1.8).
   Colours, type, radii and buttons follow the BushidoPay Brand Protocol v1.0, sections 3-9:
   near-black grounds, off-white ink, one signature red for every action, Geist type. */

@font-face { font-family: "Geist"; src: url("/static/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/static/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900; font-display: swap; }

:root {
  /* Grounds (protocol §4) */
  --bg: #0A0A0B; --bg-deep: #050506; --panel: #0E0E10; --raised: #0D0D0F;
  /* Ink and neutrals */
  --ink: #F5F5F6; --lead: #CBD5E1; --muted: #94A3B8; --quiet: #64748B;
  --line: rgba(255, 255, 255, .08); --line-strong: rgba(255, 255, 255, .16);
  /* Red system (protocol §3) */
  --accent: #E11D2E; --accent-bright: #FF2D3E; --accent-deep: #8F1220; --accent-soft: #FF8A95;
  --gradient: linear-gradient(135deg, #FF2D3E 0%, #E11D2E 44%, #8F1220 100%);
  /* Status (readable on dark) */
  --ok: #34D399; --bad: #FF8A95; --wait: #FBBF24; --grey: #64748B;
  --shadow: 0 22px 58px rgba(0, 0, 0, .55);
  --glow: 0 16px 30px rgba(225, 29, 46, .35);
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--ink);
  font: 16px/1.55 Geist, Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 420px at 85% -120px, rgba(225, 29, 46, .16), transparent 70%),
    radial-gradient(700px 360px at -10% 0, rgba(255, 255, 255, .04), transparent 70%),
    var(--bg); }
a { color: var(--ink); text-decoration-color: rgba(225, 29, 46, .6); text-underline-offset: 3px; }
a:hover { color: var(--accent-bright); }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; }

/* Header and footer (0.1.9: Synaptic Showcase leads, "for BushidoPay" beside it) */
.top { display: flex; align-items: center; gap: 18px; padding: 12px 24px; border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 6, .72); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.ss-mark { display: block; height: 40px; width: auto; }
.wordmark { font-weight: 500; font-size: 1.08rem; letter-spacing: .06em; color: var(--ink); white-space: nowrap; }
.for-client { display: inline-flex; align-items: center; gap: 10px; padding-left: 18px;
  border-left: 1px solid var(--line-strong); color: var(--quiet); font-size: .8rem; letter-spacing: .08em; }
.for-client img { display: block; height: 33px; width: auto; }
.top-quiet { display: none; }
.login-mark { text-align: center; margin: 4px 0 22px; }
.login-mark img { display: block; width: 150px; height: auto; margin: 0 auto 14px;
  filter: drop-shadow(0 18px 40px rgba(36, 87, 245, .35)); }
.login-mark .wordmark { margin: 0; font-size: 1.15rem; }
main { width: 100%; max-width: 820px; margin: 0 auto; padding: 40px 16px 24px; flex: 1; }
footer { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 16px;
  color: var(--quiet); font-size: .8rem; padding: 28px 16px 32px; border-top: 1px solid var(--line); }
footer .tagline { color: var(--muted); font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  font-size: .72rem; }
.signout { display: inline; }
button.link { background: none; border: 0; padding: 0; color: var(--muted); font-weight: 400;
  text-decoration: underline; cursor: pointer; font-size: inherit; box-shadow: none; }
button.link:hover { color: var(--accent-bright); background: none; }

/* Type (protocol §5) */
h1 { margin: 0 0 10px; font-size: 1.875rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
@media (min-width: 700px) { h1 { font-size: 2.25rem; } }
.eyebrow { margin: 0 0 10px; font-size: .75rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--quiet); }
.hero .eyebrow { color: var(--accent-soft); }
.lead { color: var(--lead); font-size: 1.125rem; line-height: 1.75; margin: 0 0 28px; max-width: 40em; }
.hero { margin-bottom: 8px; }
.back { margin: 0 0 18px; font-size: .9rem; }
.back a { color: var(--muted); text-decoration: none; }
.back a:hover { color: var(--accent-bright); }
.tag { display: inline-block; margin: 0 0 10px; padding: 3px 10px; border-radius: 12px;
  border: 1px solid rgba(225, 29, 46, .55); color: var(--accent-soft); background: rgba(225, 29, 46, .08);
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

/* Panels (protocol §6: cards 24px, signature shadow, used sparingly) */
.card { background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0)) , var(--panel);
  border: 1px solid var(--line); border-radius: 24px; padding: 24px 28px; margin-bottom: 20px;
  box-shadow: var(--shadow); }
.card h2 { margin: 0 0 14px; font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.hint { color: var(--muted); font-size: .875rem; margin: 8px 0 0; }
.error { color: var(--bad); font-weight: 600; margin: 0 0 8px; }
.said, .when { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px;
  overflow-wrap: anywhere; }

/* Buttons (protocol §9) */
button, .button { display: inline-block; font: inherit; font-weight: 600; font-size: 1rem;
  padding: 12px 22px; border-radius: 16px; border: 0; color: var(--ink); cursor: pointer;
  background: var(--gradient); box-shadow: var(--glow); text-decoration: none;
  transition: filter .15s, box-shadow .15s; }
button:hover, .button:hover { filter: brightness(1.08); color: var(--ink); }
button:disabled { opacity: .6; cursor: progress; filter: none; }
.button.secondary, button.secondary { background: transparent; box-shadow: none;
  border: 1px solid var(--line-strong); color: var(--ink); padding: 11px 21px; }
.button.secondary:hover { border-color: var(--accent); color: var(--ink); filter: none; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* Make a deck */
.make-form { display: grid; gap: 6px; }
.make-form label { font-weight: 600; margin-top: 12px; font-size: .95rem; }
.make-form label:first-child { margin-top: 0; }
.make-form .opt { font-weight: 400; color: var(--muted); font-size: .85rem; margin-left: 4px; }
.make-form input[type=text], .make-form textarea, .make-form input[type=number],
.login input[type=password] {
  font: inherit; color: var(--ink); padding: 11px 14px; width: 100%;
  background: var(--bg-deep); border: 1px solid var(--line-strong); border-radius: 16px; }
.make-form textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.make-form input::placeholder, .make-form textarea::placeholder { color: var(--quiet); }
.make-form input:focus, .make-form textarea:focus, .login input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(225, 29, 46, .25); }
.make-form input.short { width: 7em; font-family: var(--mono); }
.make-form input[type=file] { color: var(--muted); font-size: .9rem; }
.make-form input[type=file]::file-selector-button { font: inherit; font-weight: 600; color: var(--ink);
  background: transparent; border: 1px solid var(--line-strong); border-radius: 12px; padding: 7px 14px;
  margin-right: 12px; cursor: pointer; }
.make-form input[type=file]::file-selector-button:hover { border-color: var(--accent); }
.make-form fieldset.scheme { border: 0; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.make-form legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: 8px; }
.make-form label.choice { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 500;
  padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--bg-deep);
  cursor: pointer; }
.make-form label.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(225, 29, 46, .18); }
.make-form label.choice input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.sw { width: 30px; height: 14px; border-radius: 7px; flex: none; border: 1px solid var(--line-strong); }
.sw-bushido { background: var(--accent); }
.sw-target { background: conic-gradient(from 90deg, #2457F5, #16C5EF, #34D399, #FBBF24, #7438E8, #2457F5); }
.sw-blend { background: linear-gradient(90deg, var(--accent) 0 50%, #2457F5 50% 100%); }
.swatches { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.swatch { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-strong); }
/* Lead warmth slider (0.2.1) */
.make-form fieldset.warmth { border: 0; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.make-form input[type=range] { width: 100%; accent-color: var(--accent); margin: 4px 0 0; height: 28px; cursor: pointer; }
.warmth-scale { list-style: none; margin: 0; padding: 0; position: relative; height: 1.6em;
  font-size: .8rem; color: var(--muted); }
.warmth-scale li { position: absolute; top: 0; transform: translateX(-50%); cursor: pointer; padding: 2px 0;
  white-space: nowrap; }
.warmth-scale li:nth-child(2) { left: 25%; }
.warmth-scale li:nth-child(3) { left: 50%; }
.warmth-scale li:nth-child(4) { left: 75%; }
.warmth-scale li:first-child { left: 0; transform: none; }
.warmth-scale li:last-child { right: 0; transform: none; }
.warmth-scale li.on { color: var(--ink); font-weight: 600; }
@media (max-width: 520px) {
  .warmth-scale { font-size: .7rem; }
  .warmth-scale li:not(.on):not(:first-child):not(:last-child) { visibility: hidden; }
}
.make-form button { justify-self: start; margin-top: 20px; padding: 14px 30px; font-size: 1.05rem; }

/* Lists of decks */
.decks { list-style: none; margin: 0; padding: 0; }
.decks li { display: grid; grid-template-columns: 1fr auto 96px; gap: 12px; padding: 11px 0;
  border-bottom: 1px solid var(--line); align-items: baseline; }
.decks li:last-child { border-bottom: 0; }
.decks a { text-decoration: none; font-weight: 600; }
.decks .when { margin: 0; }
.decks .status { font-size: .8rem; font-weight: 600; text-align: right; letter-spacing: .04em; }
.decks .done .status { color: var(--ok); }
.decks .failed .status { color: var(--bad); }
.decks .queued .status, .decks .running .status { color: var(--wait); }

/* Examples */
.example-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.example-grid a { display: flex; flex-direction: column; height: 100%; text-decoration: none;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg-deep);
  transition: border-color .15s, transform .15s; }
.example-grid a:hover, .example-grid a:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.example-grid img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.example-grid .tag { align-self: flex-start; margin: 14px 16px 0; }
.ex-title { padding: 8px 16px 0; font-weight: 600; line-height: 1.35; color: var(--ink); }
.ex-meta { padding: 6px 16px 16px; color: var(--muted); font-size: .8rem; margin-top: auto; }

/* System checks and spending: tucked away, opened automatically if something is missing */
details.system { margin-top: 28px; }
details.system > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap;
  align-items: baseline; gap: 6px 14px; padding: 14px 20px; border: 1px solid var(--line);
  border-radius: 16px; color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
details.system > summary::-webkit-details-marker { display: none; }
details.system > summary::before { content: "+"; font-family: var(--mono); color: var(--accent-bright); }
details.system[open] > summary::before { content: "−"; }
details.system > summary:hover { border-color: var(--line-strong); color: var(--ink); }
.system-state { font-weight: 600; }
.system-state.ok { color: var(--ok); }
.system-state.bad { color: var(--bad); }
.system-spend { margin-left: auto; font-family: var(--mono); font-size: .82rem; }

/* Readiness and connections */
.checks, .lights { list-style: none; margin: 0; padding: 0; }
.checks li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; padding: 9px 0;
  border-bottom: 1px solid var(--line); align-items: baseline; }
.checks li:last-child, .lights li:last-child { border-bottom: 0; }
.mark { font-weight: 700; }
.ok .mark, .summary.ok { color: var(--ok); }
.bad .mark, .summary.bad { color: var(--bad); }
.detail { color: var(--muted); font-size: .875rem; text-align: right; }
.summary { margin: 16px 0 0; font-weight: 600; }
.lights li { display: grid; grid-template-columns: 22px 90px 110px 1fr; gap: 8px; padding: 12px 0;
  border-bottom: 1px solid var(--line); align-items: baseline; }
.light { width: 12px; height: 12px; border-radius: 50%; background: var(--grey);
  display: inline-block; transform: translateY(1px); }
.lights .ok .light { background: var(--ok); box-shadow: 0 0 0 3px rgba(52, 211, 153, .18); }
.lights .bad .light { background: var(--accent-bright); box-shadow: 0 0 0 3px rgba(255, 45, 62, .22); }
.lights .wait .light { background: var(--wait); box-shadow: 0 0 0 3px rgba(251, 191, 36, .18); }
.lights .label { font-weight: 600; }
.lights .state { font-size: .875rem; font-weight: 600; }
.lights .ok .state { color: var(--ok); }
.lights .bad .state { color: var(--bad); }
.lights .wait .state { color: var(--wait); }
.lights .unchecked .state { color: var(--grey); }
.message { font-size: .92rem; color: var(--lead); }
.check-form { margin-top: 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.check-form button { background: transparent; box-shadow: none; border: 1px solid var(--line-strong);
  padding: 10px 18px; font-size: .95rem; }
.check-form button:hover { border-color: var(--accent); }
.check-form .hint { margin: 0; }

/* Money and progress */
.spend-total { margin: 0 0 10px; }
.bar { height: 8px; background: rgba(255, 255, 255, .07); border-radius: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--gradient); min-width: 2px;
  box-shadow: 0 0 12px rgba(225, 29, 46, .6); transition: width .6s ease; }
.charges { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .875rem; }
.charges th, .charges td { text-align: left; padding: 7px 4px; border-bottom: 1px solid var(--line); }
.charges th { color: var(--quiet); font-weight: 600; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; }
.charges .num { text-align: right; white-space: nowrap; font-family: var(--mono);
  font-variant-numeric: tabular-nums; }

/* The deck page */
.stages { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: stage; }
.stages li { padding: 5px 0; color: var(--quiet); }
.stages li.done { color: var(--ok); }
.stages li.now { color: var(--ink); font-weight: 600; }
.stages li.failed { color: var(--bad); font-weight: 600; }
.progress-line { margin: 14px 0 0; color: var(--lead); }
.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
.facts dt { color: var(--quiet); font-size: .8rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; padding-top: 3px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.thumbs { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.thumbs a { display: block; }
.thumbs img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--line); }
.thumbs a:hover img, .thumbs a:focus-visible img { outline: 2px solid var(--accent); outline-offset: 3px; }
.thumbs .num { color: var(--muted); font-size: .85rem; }
.notes-list { margin: 0; padding-left: 20px; color: var(--lead); }
.notes-list li { margin: 6px 0; }
.notes-list strong { color: var(--ink); }
.sources { margin: 0; padding-left: 22px; font-size: .9rem; color: var(--muted); }
.sources li { margin: 4px 0; }
details.speaker { margin-top: 8px; font-size: .875rem; color: var(--muted); }
details.speaker summary { cursor: pointer; }
details.speaker p { white-space: pre-line; margin: 8px 0 0; color: var(--lead); }

/* Sign-in */
.login { max-width: 400px; margin: 6vh auto 0; }
.login h1 { font-size: 1.875rem; }
.login label { font-weight: 600; font-size: .95rem; }
.login input[type=password] { margin: 8px 0 18px; }
.login form { margin-top: 20px; }
.login button { width: 100%; }

@media (max-width: 560px) {
  main { padding-top: 28px; }
  .card { padding: 20px 18px; border-radius: 20px; }
  .top { padding: 10px 16px; }
  .ss-mark { height: 34px; }
  .wordmark { font-size: .95rem; letter-spacing: .03em; }
  .for-client { padding-left: 12px; gap: 6px; }
  .for-client img { height: 26px; }
  .for-client span { display: none; }
  .checks li { grid-template-columns: 28px 1fr; }
  .detail { grid-column: 2; text-align: left; }
  .lights li { grid-template-columns: 22px 1fr auto; }
  .lights .message { grid-column: 2 / 4; }
  .charges th:nth-child(3), .charges td:nth-child(3) { display: none; }
  .decks li { grid-template-columns: 1fr auto; }
  .decks .when { grid-column: 1; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
  .system-spend { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Versions (0.2.2) */
.flash { margin: 0 0 20px; padding: 12px 16px; border-radius: 16px; color: var(--ink);
  border: 1px solid rgba(225, 29, 46, .45); background: rgba(225, 29, 46, .08); }
.versions { width: 100%; border-collapse: collapse; font-size: .9rem; }
.versions th, .versions td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line);
  vertical-align: top; }
.versions th { color: var(--quiet); font-weight: 600; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; }
.versions tr.current td { background: rgba(255, 255, 255, .03); }
.versions .said { display: inline; }
.versions .actions-col { white-space: nowrap; }
.versions a { color: var(--lead); }
.badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; font-size: .72rem;
  color: var(--accent-soft); border: 1px solid rgba(225, 29, 46, .55); }
form.inline { display: inline; margin-left: 8px; }
button.small { font-size: .82rem; padding: 5px 12px; border-radius: 12px; }
@media (max-width: 700px) {
  .versions thead { display: none; }
  .versions tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .versions td { display: block; border: 0; padding: 3px 6px; }
  .versions .actions-col { white-space: normal; }
  form.inline { display: block; margin: 8px 0 0; }
}

/* The edit sidebar (0.2.3): slides on the left, changes on the right */
main.wide { max-width: 1240px; }
.card { scroll-margin-top: 84px; }
.workbench .changes:focus { outline: none; }
main.wide > .card, main.wide > .lead, main.wide > h1 { max-width: none; }
.workbench { display: grid; gap: 20px; align-items: start; margin-bottom: 20px; }
.workbench > .card { margin-bottom: 0; }
@media (min-width: 980px) {
  .workbench.with-sidebar { grid-template-columns: minmax(0, 1fr) 380px; }
  .workbench.with-sidebar .thumbs { grid-template-columns: 1fr 1fr; }
  .workbench .changes { position: sticky; top: 88px; max-height: calc(100vh - 108px); overflow-y: auto; }
}
.change-form { display: grid; gap: 8px; }
.change-form label { font-weight: 600; font-size: .95rem; }
.change-form textarea { font: inherit; color: var(--ink); padding: 11px 14px; width: 100%; min-height: 92px;
  resize: vertical; line-height: 1.5; background: var(--bg-deep); border: 1px solid var(--line-strong);
  border-radius: 16px; }
.change-form textarea::placeholder { color: var(--quiet); }
.change-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(225, 29, 46, .25); }
.change-form button { justify-self: start; }
.working { padding: 12px 14px; border-radius: 16px; border: 1px solid rgba(225, 29, 46, .45);
  background: rgba(225, 29, 46, .08); }
.working p { margin: 0; }
.working .hint { margin-top: 6px; }
.pulse { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-bright);
  margin-right: 4px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.change-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; }
.change { padding: 14px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.change .asked { margin: 0 0 4px; color: var(--ink); font-weight: 600; }
.change .asked .said { font-weight: 400; }
.change .outcome { margin: 0 0 4px; color: var(--muted); font-size: .85rem; }
.change .outcome.ok { color: var(--ok); }
.change .outcome.bad { color: var(--bad); font-weight: 600; }
.change .undone { color: var(--muted); }
.change .reply { margin: 4px 0 8px; color: var(--lead); }
.diff { margin: 6px 0 0; }
.diff dt { margin: 8px 0 2px; color: var(--quiet); font-weight: 600; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; }
.diff dd { margin: 0 0 6px; line-height: 1.5; }
.diff .part { display: block; color: var(--muted); font-size: .8rem; }
.diff del { color: var(--quiet); text-decoration-color: rgba(255, 138, 149, .7); }
.diff ins { color: var(--ink); text-decoration: none; background: rgba(52, 211, 153, .12); border-radius: 4px;
  padding: 0 3px; }
.diff details summary { color: var(--muted); cursor: pointer; font-size: .85rem; }
.diff details p { margin: 6px 0 0; color: var(--lead); white-space: pre-line; }
.declined { margin: 8px 0 0; padding-left: 18px; color: var(--wait); }
.declined li { margin: 2px 0; }
.declined strong { color: var(--ink); font-weight: 600; }
.change-action { margin-top: 8px; }
.examples-hint q { color: var(--lead); }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

/* Picture changes in the sidebar (0.2.4) */
.working .progress-now { margin-top: 6px; color: var(--ink); font-size: .9rem; }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0; }
.before-after a { display: grid; gap: 3px; color: var(--muted); text-decoration: none; }
.before-after img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg-deep); }
.before-after a:hover img, .before-after a:focus-visible img { border-color: var(--accent); }
.before-after small { font-size: .75rem; }

/* 0.2.6: upload a PowerPoint you changed */
.upload-form { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.upload-form label { font-weight: 600; font-size: .95rem; }
.upload-form input[type=file] { color: var(--muted); font-size: .9rem; max-width: 100%; }
.upload-form input[type=file]::file-selector-button { font: inherit; font-weight: 600; color: var(--ink);
  background: var(--bg-deep); border: 1px solid var(--line-strong); border-radius: 12px; padding: 8px 14px;
  margin-right: 10px; cursor: pointer; }
.upload-form input[type=file]::file-selector-button:hover { border-color: var(--accent); }
.upload-form button { justify-self: start; }
.upload-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; font-size: .88rem; color: var(--muted);
  border: 1px solid var(--line-strong); background: var(--bg-deep); }
.uploaded-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); border: 1px solid var(--line-strong); border-radius: 999px; padding: 1px 8px; margin-right: 4px;
  vertical-align: 1px; }

/* 0.2.7: the quality check card */
#quality h3 { font-size: 0.95rem; margin: 1rem 0 0.4rem; color: var(--ink); }
#quality h3:first-of-type { margin-top: 0.4rem; }
.quality-list.fixed li { color: var(--lead); }

/* Bushido facts (0.3.1) */
.top-nav { margin-left: auto; display: flex; gap: 18px; }
.top-nav a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500;
  padding: 4px 0; }
.top-nav a:hover { color: var(--ink); }
.top-nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.facts-form textarea { min-height: 0; }
.facts-form .actions { margin-top: 14px; align-items: center; }
.facts-form textarea { overflow-y: hidden; }
.flash.draft { border-color: var(--line-strong); background: rgba(255, 255, 255, .04); }
.facts-lines li.fresh { color: var(--ink); }
@media (max-width: 560px) { .top-nav .long { display: none; } }

/* Sources on every fact (0.3.2) */
details.speaker .sources-head { margin: 12px 0 4px; font-weight: 600; color: var(--ink);
  white-space: normal; }
.fact-sources { margin: 0; padding-left: 20px; color: var(--lead); }
.fact-sources li { margin: 6px 0; overflow-wrap: anywhere; }
.fact-sources .quote { display: block; color: var(--muted); font-style: italic; }
.fact-sources .said-inline { color: var(--muted); font-size: .8rem; }
.fact-sources .check, .to-check-tag { color: #FBBF24; font-weight: 600; }
.fact-sources .check { display: block; }
.to-check-tag { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
  margin-left: 6px; }
.fact-sources li.to-check { border-left: 3px solid #FBBF24; padding-left: 8px; margin-left: -11px; }

/* Partner logos and colours (0.3.3) */
.partner-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.partner { display: flex; gap: 16px; align-items: flex-start; padding: 14px; border-radius: 18px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02); scroll-margin-top: 84px; }
.partner.just-saved { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(225, 29, 46, .18); }
.partner h3 { margin: 0 0 2px; font-size: 1.05rem; }
.partner p { margin: 2px 0; }
.partner .hint { margin-top: 6px; }
.partner-text { min-width: 0; overflow-wrap: anywhere; }
.logo-tile { flex: none; width: 132px; height: 84px; border-radius: 12px; background: #0A0A0B;
  border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center;
  padding: 10px; }
.logo-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-tile .no-logo { color: var(--muted); font-size: .8rem; }
.partner-colour { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.partner-form .colour-row { display: flex; gap: 10px; align-items: center; }
.partner-form .colour-row input[type=text] { flex: 1; }
.partner-form input[type=color] { width: 46px; height: 42px; padding: 2px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--raised); cursor: pointer; flex: none; }
.partner-form .current-logo { display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 6px 0 2px; }
.partner-form .current-logo label.choice { margin: 0; }
.partner-form .actions { margin-top: 16px; align-items: center; }
.remove-partner { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.deck-partner { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.deck-partner .logo-tile { width: 84px; height: 48px; padding: 6px; border-radius: 8px; }
@media (max-width: 560px) { .partner { flex-direction: column; } .logo-tile { width: 100%; } }
/* Two header links (0.3.3): on the narrowest phones the emblem stands in for the name. */
@media (max-width: 430px) {
  .top { gap: 12px; }
  .top .brand .wordmark { display: none; }
  .top-nav { gap: 14px; }
}

/* Share links (0.4.1) */
.share-form { display: grid; gap: 6px; max-width: 560px; }
.share-form label { font-weight: 600; font-size: .95rem; margin-top: 10px; }
.share-form label:first-child { margin-top: 0; }
.share-form .opt { font-weight: 400; color: var(--muted); font-size: .85rem; margin-left: 4px; }
.share-form input[type=text], .share-form select, .share-link input {
  font: inherit; color: var(--ink); padding: 10px 14px; width: 100%;
  background: var(--bg-deep); border: 1px solid var(--line-strong); border-radius: 16px; }
.share-form select { width: auto; min-width: 12em; }
.share-form input:focus, .share-form select:focus, .share-link input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(225, 29, 46, .25); }
.share-form input::placeholder { color: var(--quiet); }
.share-form label.tick { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.share-form label.tick input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.share-form button[type=submit] { justify-self: start; margin-top: 12px; }
.note-pc { margin: 0 0 16px; padding: 10px 14px; border-radius: 16px; font-size: .9rem; color: var(--lead);
  border: 1px solid rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .07); }
#sharing h3 { margin: 24px 0 8px; font-size: 1rem; }
.share-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.share { padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--raised); }
.share.gone { border-color: var(--line); opacity: .75; }
.share-name { margin: 0 0 8px; }
.share-link { display: flex; gap: 8px; align-items: center; }
.share-link input { flex: 1; min-width: 0; font-family: var(--mono); font-size: .82rem; padding: 7px 12px;
  border-radius: 12px; color: var(--lead); }
.share-link .button.small { font-size: .82rem; padding: 5px 12px; border-radius: 12px; }
.share .said { margin-top: 6px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.share-actions form { margin: 0; }
.badge.quiet { color: var(--muted); border-color: var(--line-strong); text-decoration: none; }
.old-shares { margin-top: 16px; }
.old-shares summary { cursor: pointer; color: var(--muted); }
.old-shares .share-list { margin-top: 10px; }
@media (max-width: 560px) {
  .share-link { flex-wrap: wrap; }
  .share-link input { flex-basis: 100%; }
}

/* Email when ready (0.4.2): the test email on the Connections card, and the Email box on the
   deck page. */
.email-test, .email-form { display: grid; gap: 6px; max-width: 620px; margin-top: 22px;
  padding-top: 18px; border-top: 1px solid var(--line); }
.email-form { margin-top: 10px; padding-top: 0; border-top: 0; }
.email-test label, .email-form label { font-weight: 600; font-size: .95rem; }
.email-form .opt { font-weight: 400; color: var(--muted); font-size: .85rem; margin-left: 4px; }
.email-test-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.email-test-row input { flex: 1 1 260px; min-width: 0; padding: 10px 14px; border-radius: 16px;
  border: 1px solid var(--line-strong); background: var(--bg-deep); color: var(--ink); font: inherit; }
.email-test-row input:focus { outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(225, 29, 46, .25); }
.email-test-row button { background: transparent; box-shadow: none; border: 1px solid var(--line-strong); }
.email-test-row button:hover { border-color: var(--accent); }
.email-test .hint, .email-form .hint { margin: 2px 0 0; }
.email-test .flash, .email-test .error, .email-form .error { margin: 6px 0 0; }
.email-box { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.email-box h3 { margin: 0 0 8px; font-size: 1rem; }
.email-box .flash { margin: 0 0 10px; }
.email-list { list-style: none; margin: 0 0 6px; padding: 0; color: var(--lead); font-size: .92rem; }
.email-list li { padding: 3px 0; }
.email-bad { color: var(--bad); }
.said-inline { color: var(--muted); font-size: .8rem; }

/* 0.4.3: backups and the test copy */
.backups .button.small { font-size: .82rem; padding: 5px 12px; border-radius: 12px; white-space: nowrap; }
.backups td { vertical-align: top; }
.backups .bad-text { color: var(--bad); font-weight: 600; }
.backups .said { display: block; }
.test-copy-banner { margin: 0; padding: 10px 24px; background: #3a2a05; color: #FDE68A;
  border-bottom: 1px solid rgba(251, 191, 36, .4); font-size: .92rem; }
.backups th.num, .backups td.num { padding-left: 14px; white-space: nowrap; }

/* Lauren's narration (0.5.1) */
details.lauren-says { margin-top: 4px; }
details.lauren-says p { font-style: italic; }
details.lauren-says audio { width: 100%; height: 36px; margin-top: 8px; }
form.narration-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 0; }
#narration .said { margin-left: 4px; }

/* Lauren's intro video on the deck page (0.5.2) */
form.intro-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 0; }
video.intro-player { display: block; width: 100%; max-width: 480px; aspect-ratio: 16 / 9;
  margin: 8px 0 0; border-radius: 8px; background: #000; }
.intro-making { font-weight: 600; }

/* Approving Lauren's intro words (0.5.4) */
#intro p { margin: 0 0 8px; }
.intro-lead { color: var(--ink); }
.intro-note { padding: 8px 12px; border-left: 3px solid var(--ok); background: var(--raised);
  border-radius: 0 10px 10px 0; font-size: .9rem; color: var(--lead); max-width: 640px; }
.intro-note.bad { border-left-color: var(--bad); }
.intro-play-all { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
ol.intro-script { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 10px;
  max-width: 640px; }
.intro-part { padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 14px;
  background: var(--bg-deep); }
.intro-script.quiet .intro-part { border-color: var(--line); background: transparent; opacity: .8; }
#intro .intro-part p { margin: 0 0 6px; }
.intro-part-head strong { margin-right: 6px; }
.intro-part audio { display: block; width: 100%; height: 36px; margin: 2px 0 8px; }
#intro .intro-words { font-style: italic; color: var(--ink); line-height: 1.5; margin: 0; }
details.intro-edit { margin-top: 6px; }
details.intro-edit summary, details.intro-approved summary { cursor: pointer; color: var(--lead);
  font-size: .85rem; }
details.intro-edit form { display: grid; gap: 8px; margin-top: 8px; }
details.intro-edit form button { justify-self: start; }
details.intro-edit textarea, .intro-ask input { font: inherit; color: var(--ink); padding: 9px 12px;
  width: 100%; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px; }
details.intro-edit textarea { resize: vertical; line-height: 1.5; min-height: 80px; }
details.intro-edit textarea:focus, .intro-ask input:focus { outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(225, 29, 46, .25); }
.intro-ask input::placeholder { color: var(--quiet); }
form.intro-ask { display: grid; gap: 6px; max-width: 640px; margin: 0 0 12px; }
form.intro-ask label { font-weight: 600; font-size: .9rem; }
.intro-ask-row { display: flex; gap: 8px; align-items: center; }
.intro-ask-row input { flex: 1; min-width: 0; }
.intro-decide { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 4px; }
.intro-decide form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.intro-decide .said-inline { max-width: 34ch; }
.note-intro { border-color: rgba(251, 191, 36, .35); }

/* Ask Lauren on the deck page (0.5.5) */
.lauren-lead { margin: 0 0 6px; }
.lauren-total { margin: 6px 0; }
table.lauren-links { width: 100%; border-collapse: collapse; font-size: .85rem; margin: 4px 0; }
table.lauren-links th, table.lauren-links td { text-align: left; padding: 4px 8px 4px 0;
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, .08)); vertical-align: top; }
table.lauren-links .num { text-align: right; white-space: nowrap; }
table.lauren-links .said { display: inline; }
.ok-word { color: var(--ok); font-weight: 600; }

/* Before a demo (0.5.6) */
.system-demo { font-weight: 600; font-size: .9rem; }
.system-demo.ok { color: var(--ok); }
.system-demo.look { color: var(--wait); }
.system-demo.bad { color: var(--bad); }
.look .mark, .summary.look { color: var(--wait); }
.demo-checks li { grid-template-columns: 28px minmax(170px, 15em) 1fr; }
.demo-checks .detail { text-align: left; }
.demo-checks .detail a { white-space: nowrap; }
@media (max-width: 700px) {
  .demo-checks li { grid-template-columns: 28px 1fr; }
  .demo-checks .detail { grid-column: 2; }
  .system-demo { display: none; }
}

/* Cost and time (0.5.6) */
.print-only { display: none; }
.top-nav .short { display: none; }
@media (max-width: 560px) { .top-nav .long { display: none; } .top-nav .short { display: inline; } }
.ev-actions { margin: -12px 0 24px; }
.ev-tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-bottom: 22px; }
.ev-tile { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 18px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.ev-label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.ev-big { font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2;
  font-variant-numeric: tabular-nums; }
.ev-arrow { color: var(--accent-bright); font-weight: 400; }
.ev-sub { color: var(--lead); font-size: .875rem; line-height: 1.5; }
.ev-table td:first-child { color: var(--lead); }
.ev-table .ev-total td { font-weight: 600; color: var(--ink); border-top: 1px solid var(--line-strong); }
.charges tr.current td { color: var(--ink); font-weight: 600; }
.ev-two { display: grid; gap: 0 24px; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
@media (max-width: 980px) { .ev-two { grid-template-columns: 1fr; } }
.ev-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ev-bars li { display: grid; grid-template-columns: 9.5em 1fr auto; gap: 10px; align-items: center; }
.ev-bars .num { font-family: var(--mono); font-size: .82rem; color: var(--lead); }
.ev-bar { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.ev-bar span { display: block; height: 100%; background: var(--gradient); border-radius: 6px; }
.ev-cases { list-style: none; margin: 0 0 6px; padding: 0; }
.ev-cases li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.ev-cases li:last-child { border-bottom: 0; }
.ev-cases .said { display: block; margin: 4px 0 0; }
.badge.ev-pass { background: rgba(52, 211, 153, .14); color: var(--ok); }
.badge.ev-look { background: rgba(251, 191, 36, .14); color: var(--wait); }
.badge.ev-fail { background: rgba(255, 45, 62, .16); color: var(--bad); }
.badge.ev-none { color: var(--muted); }
.ev-first { margin: 0 0 14px; }
.ev-form { display: grid; gap: 4px; max-width: 640px; }
.ev-form label { font-weight: 600; margin-top: 12px; }
.ev-form label .opt { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin: 2px 0 0; }
.ev-input { display: flex; align-items: center; gap: 8px; }
.ev-input input { max-width: 9em; font-family: var(--mono); }
.ev-input .unit { color: var(--muted); }
.ev-form label.choice { font-weight: 400; display: flex; gap: 10px; align-items: center; margin-top: 16px; }
.ev-form .actions { margin-top: 16px; align-items: center; }
@media (max-width: 560px) {
  .ev-big { font-size: 1.35rem; }
  .ev-bars li { grid-template-columns: 1fr auto; }
  .ev-bars .ev-bar { grid-column: 1 / 3; grid-row: 2; }
}
@media print {
  :root { --ink: #111; --lead: #333; --muted: #555; --line: #ccc; --line-strong: #999;
    --panel: #fff; --ok: #0a7a4b; --wait: #8a6200; --bad: #b0101f; }
  html, body { background: #fff !important; color: #111; }
  .top-nav, .for-client, footer, .back, .ev-actions, #manual form, .test-copy-banner, .flash { display: none !important; }
  .top { background: none !important; border: 0 !important; box-shadow: none !important;
    position: static !important; }
  .card { background: #fff !important; box-shadow: none !important; border: 1px solid #ccc; }
  .ev-tile, .charges tr, .ev-bars li, .ev-cases li { break-inside: avoid; }
  .print-only { display: block; }
  .ev-tile { background: #fff; border-color: #ccc; }
  .ev-bar { background: #eee; }
  .ev-bar span { background: #E11D2E; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  main.wide { max-width: none; padding: 0; }
  a { color: #111; }
}
@media (max-width: 980px) { .ev-two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  /* The usual phone rule hides a table's third column; here every column counts. */
  .evidence .charges th:nth-child(3), .evidence .charges td:nth-child(3) { display: table-cell; }
  #decks-measured th:nth-child(5), #decks-measured td:nth-child(5) { display: none; }
  #after th:nth-child(2), #after td:nth-child(2) { display: none; }
  .evidence .charges th, .evidence .charges td { padding-left: 6px; padding-right: 6px; }
}
@media (max-width: 420px) {
  .evidence .charges th { white-space: normal; letter-spacing: .02em; }
  .evidence .charges td { font-size: .82rem; }
  #decks-measured td:nth-child(2), #decks-measured th:nth-child(2) { display: none; }
}
/* Time saved (costs hidden, 0.5.6): the measured tables are narrower */
.charges.ev-times { max-width: 640px; }

/* Settings page (0.5.6) */
@media (max-width: 560px) { .top-nav .nav-settings { display: none; } }
footer .footer-link { color: var(--muted); }
footer .footer-link:hover { color: var(--ink); }
.switches { display: grid; gap: 4px; }
.switch-row { padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.switch-row:last-of-type { border-bottom: 0; }
.toggle { display: flex; align-items: center; gap: 14px; cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle .track { position: relative; flex: none; width: 46px; height: 26px; border-radius: 13px;
  background: rgba(255, 255, 255, .12); border: 1px solid var(--line-strong); transition: background .15s; }
.toggle .knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); transition: transform .15s; }
.toggle input:checked + .track { background: var(--accent); border-color: var(--accent); }
.toggle input:checked + .track .knob { transform: translateX(20px); }
.toggle input:focus-visible + .track { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.switch-row .hint { margin: 8px 0 0 60px; }
.switch-row .said { margin: 6px 0 0 60px; }
.switch-row:has(input:checked) .switch-off, .switch-row:not(:has(input:checked)) .switch-on { display: none; }
.switches .actions { margin-top: 12px; }
@media (max-width: 560px) { .switch-row .hint, .switch-row .said { margin-left: 0; } }

/* 0.6.1 People and prices */
.login input[type=email] { display: block; width: 100%; margin: 8px 0 18px; }
.login .flash p { margin: 0 0 6px; }
.login details.admin-password { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 14px; }
.login details.admin-password summary { cursor: pointer; color: var(--muted); font-size: .88rem; }
.login details.admin-password form { margin-top: 10px; }
footer .signed-in-as { color: var(--muted); }
.admin-tabs { display: flex; gap: 6px; margin: 0 0 14px; flex-wrap: wrap; }
.admin-tabs a { color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: 500;
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; }
.admin-tabs a:hover { color: var(--ink); border-color: var(--line-strong); }
.admin-tabs a[aria-current] { color: var(--ink); border-color: var(--accent); }
.people-list td { vertical-align: top; }
.people-list .num, .price-table .num { text-align: right; }
.people-list .actions-col { white-space: normal; }
.people-list .actions-col form.inline { margin: 4px 6px 0 0; display: inline-block; }
.person-change summary { cursor: pointer; color: var(--lead); font-size: .85rem; }
.person-change[open] { margin-bottom: 10px; }
.person-form label { display: block; font-weight: 600; font-size: .9rem; margin-top: 10px; }
.person-form input[type=text], .person-form input[type=email] { display: block; width: 100%;
  max-width: 420px; margin-top: 6px; }
.person-form fieldset.roles { border: 0; padding: 0; margin: 12px 0 6px; }
.person-form fieldset.roles legend { font-weight: 600; font-size: .9rem; padding: 0; margin-bottom: 4px; }
.person-form .choice { display: block; margin: 6px 0; font-weight: 400; }
.add-person button { margin-top: 14px; }
.price-table input.money-in { width: 7.5em; text-align: right; }
.price-table td { vertical-align: middle; }
.price-form .switch-row { margin-bottom: 16px; }
.price-hint { color: var(--lead); }
ul.price-now { margin: 0; padding-left: 1.1em; color: var(--lead); }
ul.price-now li { margin: 4px 0; }
@media (max-width: 640px) {
  .people-list thead { display: none; }
  .people-list tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .people-list td { display: block; border: 0; padding: 4px 0; }
  .people-list td.num { text-align: left; }
  .people-list td.num::before { content: "Decks: "; color: var(--muted); }
}
.login input[type=email], .person-form input[type=text], .person-form input[type=email],
.price-table input.money-in {
  font: inherit; color: var(--ink); padding: 10px 14px;
  background: var(--bg-deep); border: 1px solid var(--line-strong); border-radius: 14px; }
.login input[type=email]:focus, .person-form input:focus, .price-table input:focus {
  outline: none; border-color: var(--accent); }
.people-list .said, .price-table .said { display: block; margin-top: 3px; }
.people-list td:first-child { overflow-wrap: anywhere; }

/* 0.6.2 Keeping it running: Status page, alerts, restore */
.nav-alert { display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; line-height: 18px;
  text-align: center; vertical-align: 1px; }
.tab-count { display: inline-block; min-width: 16px; margin-left: 3px; padding: 0 4px; border-radius: 8px;
  background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; line-height: 16px;
  text-align: center; }
.status-lead.ok strong { color: var(--ok); }
.status-lead.bad strong { color: var(--bad); }
.status-lead .said { margin-top: 6px; }
.alert-list { list-style: none; margin: 0 0 14px; padding: 0; }
.alert-item { padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--raised);
  border-radius: 0 12px 12px 0; margin-bottom: 10px; }
.alert-head { margin: 0 0 4px; }
.alert-detail { margin: 0 0 6px; color: var(--lead); }
.alert-items { margin: 0 0 6px; padding-left: 18px; font-size: .9rem; }
.badge.alert-kind { margin-left: 0; margin-right: 4px; color: var(--muted); border-color: var(--line-strong); }
.status-table th { width: 30%; text-align: left; font-weight: 500; color: var(--muted); vertical-align: top; }
.status-table td { overflow-wrap: anywhere; }
.levels-form { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; }
.levels-form label { color: var(--lead); }
.levels-form .level-input { display: inline-flex; align-items: center; gap: 6px; justify-self: end; }
.levels-form input { width: 6.5em; text-align: right; }
.levels-form .actions { grid-column: 1 / -1; }
.failures td, .earlier td { vertical-align: top; }
.failures details summary { cursor: pointer; }
.log-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.log-pick select { max-width: 100%; }
.log-lines { max-height: 420px; overflow: auto; margin: 0; padding: 12px 14px; border-radius: 12px;
  background: var(--bg-deep); border: 1px solid var(--line); font-family: var(--mono); font-size: .76rem;
  line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--lead); }
.restore-now h2, .restore-now h1 { display: flex; align-items: center; gap: 10px; }
.restore-result.ok { border-color: rgba(52, 211, 153, .35); }
.restore-result.ok h2 { color: var(--ok); }
.restore-result.bad h2 { color: var(--bad); }
.restore-problems { margin: 0 0 8px; padding-left: 18px; color: var(--bad); }
.restore-steps { margin: 0 0 10px; padding-left: 20px; color: var(--lead); }
.restore-steps li { margin-bottom: 6px; }
.restore-form .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.restoring-page main { max-width: 640px; margin: 12vh auto 0; }
.restoring-page .restore-now img { display: block; margin-bottom: 12px; }
@media (max-width: 560px) {
  .levels-form { grid-template-columns: 1fr; }
  .levels-form .level-input { justify-self: start; }
  .status-table th { width: auto; }
}
