/* Matrix design system v2, paper and ink: grounds are neutral, color is spent only on state. */
@font-face { font-family: Figtree; src: url('/figtree.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }
:root {
  --paper: #faf9f6; --sheet: #fff; --well: #f2f0eb; --rule: #e3e0d9; --rule-strong: #8d8a83;
  --ink: #0a0a0a; --ink-2: #4e4c47; --ink-3: #6c6a64; --on-ink: #fff;
  --human: #e0561f; --human-ink: #b23e0f; --alarm: #d0283a; --alarm-ink: #b3202f; --done: #2f9a5c;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b0b0a; --sheet: #151513; --well: #1c1b19; --rule: #2d2c29; --rule-strong: #5c5a55;
    --ink: #f5f2ec; --ink-2: #c9c6bf; --ink-3: #9d9a92; --on-ink: #0a0a0a;
    --human: #ff7a45; --human-ink: #ff8f5e; --alarm: #ff5c6a; --alarm-ink: #ff5c6a; --done: #4cc47f;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.5 Figtree, system-ui, sans-serif; }
main { max-width: 960px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-size: 30px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.01em; }
h2 { font-size: 22px; font-weight: 650; margin: 0 0 12px; }
h3 { font-size: 17px; font-weight: 650; margin: 0 0 8px; }
p { margin: 0 0 12px; }
a { color: var(--ink); }
.muted { color: var(--ink-3); }
.center { text-align: center; padding: 48px 0; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); margin-bottom: 20px; flex-wrap: wrap; }
.bar .who { color: var(--ink-2); font-size: 13px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.sheet { background: var(--sheet); border: 1px solid var(--rule); border-radius: 24px; padding: 24px; margin-bottom: 16px; }
.narrow { max-width: 460px; margin: 48px auto; }
button, .btn { font: inherit; font-weight: 600; border-radius: 999px; padding: 8px 16px; border: 1px solid var(--rule-strong); background: var(--sheet); color: var(--ink); cursor: pointer; transition: background-color 160ms ease-out; }
button:hover { background: var(--well); }
button.primary { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
button.primary:hover { opacity: .9; }
button.danger { color: var(--alarm-ink); }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: 999px; padding: 8px 14px; width: 100%; }
textarea { border-radius: 16px; min-height: 90px; resize: vertical; }
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; margin-bottom: 4px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.chip { border-radius: 999px; padding: 4px 12px; border: 1px solid var(--rule); background: var(--sheet); font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.list { background: var(--sheet); border: 1px solid var(--rule); border-radius: 24px; overflow: hidden; }
.item { display: flex; gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--rule); cursor: pointer; width: 100%; text-align: left; border-radius: 0; border-left: 0; border-right: 0; border-top: 0; background: transparent; font-weight: 400; }
.item:last-child { border-bottom: 0; }
.item:hover { background: var(--well); }
.item .title { font-weight: 600; }
.item .sub { color: var(--ink-3); font-size: 13px; }
.kind { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); min-width: 64px; }
.facts { display: grid; grid-template-columns: 140px 1fr; gap: 6px 16px; margin: 12px 0 20px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; background: var(--well); border-radius: 12px; padding: 10px 14px; word-break: break-all; }
.revealed { border: 1px solid var(--rule); border-radius: 16px; padding: 16px; margin: 12px 0; }
.count { font-variant-numeric: tabular-nums; }
.notice { border-radius: 16px; padding: 12px 16px; margin-bottom: 16px; background: var(--well); }
.notice.error { color: var(--alarm-ink); }
.people { max-height: 220px; overflow: auto; border: 1px solid var(--rule); border-radius: 16px; padding: 8px 12px; }
.people label { display: flex; gap: 8px; align-items: center; padding: 3px 0; }
.people input { width: auto; }
.log { list-style: none; padding: 0; margin: 0; }
.log li { padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 13px; color: var(--ink-2); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--human); margin-right: 6px; }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } .facts dt { margin-top: 6px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
