@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/montserrat-var.woff2?v=1") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/jetbrains-mono-var.woff2?v=1") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root { --bg: #faf8ff; --surface: #ffffff; --tint: #f4f0f8; --band: #ecebf6; --band-line: #dfdcee; --chip-line: #dcd8ee; --ink: #333333; --deep: #1a0d24; --muted: #6b6473; --muted2: #52495e; --line: #ebe6f0; --silver: #d8d0d7; --accent: #9e005d; --accent-hover: #7a0048; --accent-soft: #f7e6f0; --accent-line: #ecc6dc; --indigo: #3b3a8c; --gradient-v: linear-gradient(180deg, #9e005d 0%, #88429c 55%, #456bc8 100%); --sans: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; --radius: 6px; --card-radius: 14px; --field-radius: 10px; --wrap: 1280px; --gutter: clamp(20px, 5.5vw, 64px); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
a:focus-visible, button:focus-visible, input[type="radio"]:focus-visible, input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h2 { color: var(--deep); }
code { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page { display: flex; flex-direction: column; min-height: 100vh; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .bar { max-width: var(--wrap); margin: 0 auto; padding: 16px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.brand { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; min-width: 0; color: var(--deep); text-decoration: none; }
.brand:hover { color: var(--deep); text-decoration: none; }
.brand .wordmark { display: block; height: 50px; width: auto; max-width: 100%; }
.tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--indigo); }
.tag::before { content: ""; width: 18px; height: 1px; background: var(--indigo); }
.who { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; font-size: 14px; color: var(--muted); }
.who strong { color: var(--deep); font-weight: 600; }
.who form { margin: 0; }
.who .linkbtn { min-height: 44px; font-size: 14px; }
.out { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; }
.site-nav { max-width: var(--wrap); margin: 0 auto -1px; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; gap: 0 28px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 48px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; }
.site-nav a:hover { color: var(--deep); text-decoration: none; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--deep); font-weight: 600; }

.viewing-as { background: var(--deep); color: #ffffff; }
.viewing-as .in { max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: 15px; font-weight: 600; }
.viewing-as form { margin: 0; }
.viewing-as .btn.ghost { border-color: rgba(255, 255, 255, 0.5); background: transparent; color: #ffffff; }
.viewing-as .btn.ghost:hover { background: rgba(255, 255, 255, 0.08); color: #ffffff; }

.band { position: relative; overflow: hidden; background: var(--band); border-bottom: 1px solid var(--band-line); }
.band .orb { position: absolute; top: -60%; right: -8%; width: 55%; height: 320%; background: radial-gradient(ellipse at center, rgba(59, 58, 140, 0.32) 0%, transparent 60%); opacity: 0.7; pointer-events: none; }
.band .in { position: relative; max-width: var(--wrap); margin: 0 auto; padding: clamp(24px, 3.4vw, 44px) var(--gutter) clamp(28px, 3.8vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 32px; }
.crumb { margin: 0 0 12px; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted2); }
.crumb a { color: inherit; text-decoration: none; }
.crumb a:hover { color: var(--accent); text-decoration: none; }
.crumb .sep { margin: 0 8px; color: rgba(82, 73, 94, 0.35); }
.crumb .here { color: var(--indigo); }
.band h1 { margin: 0; font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--deep); overflow-wrap: anywhere; }
.band .lede { margin: 0; max-width: 460px; justify-self: end; text-align: right; font-size: 15px; line-height: 1.55; color: var(--muted2); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 24px var(--gutter) 0; }
.flash { margin: 0; padding: 12px 16px; border: 1px solid var(--chip-line); border-radius: var(--radius); background: var(--band); color: var(--indigo); font-weight: 600; }

.main { flex: 1 0 auto; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 32px var(--gutter) 64px; }
.main > :first-child { margin-top: 0; }
.main.narrow > * { max-width: 820px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0 0 16px; }
.toolbar form { margin: 0; }
.count { margin: 0; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; font-size: 14px; color: var(--muted); }
.mono { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; }
.actions-row form { margin: 0; }
.headrow { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; }
.headrow > div { min-width: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; border: 0; border-radius: var(--radius); background: var(--accent); color: #ffffff; font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.2; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--accent-hover); color: #ffffff; text-decoration: none; }
.btn.ghost { border: 1px solid var(--silver); background: var(--surface); color: var(--deep); font-size: 15px; padding: 0 18px; }
.btn.ghost:hover { background: var(--bg); color: var(--deep); }
.btn.ghost.danger { color: var(--accent-hover); }
.linkbtn { min-height: 32px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.linkbtn:hover { color: var(--accent-hover); text-decoration: underline; }

.panel { position: relative; margin-top: 16px; padding: 24px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-radius); }
.panel.flush { padding: 0; overflow: hidden; }
.panel h2 { margin: 0 0 12px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.panel ul { margin: 0 0 16px; padding-left: 20px; }
.empty-note { margin: 12px 0; color: var(--muted); }
.foot-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.note-box { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--field-radius); background: var(--tint); color: #4a4352; font-size: 14px; }
.error { margin: 0; padding: 12px 14px; border: 1px solid #f5c2cc; border-radius: var(--radius); background: #fdecef; color: var(--accent-hover); font-size: 14px; }
.inline-after { margin-top: 10px; }

.filterbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 16px; padding: 20px 24px; }
.filterbar .stack { min-width: 150px; }
.filterbar .grow { flex: 1 1 220px; }
.label-spacer { font-size: 14px; line-height: 1.5; }

.stack { display: flex; flex-direction: column; gap: 6px; }
.stack label, .choices legend { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--deep); }
.filterbar .stack label, .signin .stack label { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; line-height: 1.6; text-transform: uppercase; color: var(--muted); }
.field { min-height: 44px; padding: 10px 14px; border: 1px solid var(--silver); border-radius: var(--field-radius); background: #ffffff; color: var(--deep); font-family: var(--sans); font-size: 15px; line-height: 1.4; }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(158, 0, 93, 0.12); }
.field::placeholder { color: #a99fb3; }
select.field { padding-right: 40px; -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field.area { min-height: 110px; resize: vertical; line-height: 1.5; }
.filterbar .field, .editform .field, .invite .field, .signin .field { width: 100%; }
.editform { display: flex; flex-direction: column; gap: 18px; }
.field-row.is-changed .field { border-color: var(--accent-line); background: #fdf6fa; }
.field-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.was { margin: 0; font-size: 13px; color: var(--muted); }
.was .linkbtn { padding-left: 8px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.choices { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
.stack .choice { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--ink); }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }

.scroll { overflow-x: auto; }
table.people { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 15px; }
table.people th { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
table.people td { padding: 14px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
table.people tbody tr:first-child td { border-top: 0; }
table.people .pl { padding-left: 28px; }
table.people th:last-child, table.people td:last-child { padding-right: 28px; }
table.people .num { text-align: right; font-variant-numeric: tabular-nums; }
table.people td.actions { white-space: nowrap; }
table.people td.actions form { display: inline; }
table.rules td, table.sample td { vertical-align: top; }
table.rules .field { width: 100%; min-width: 130px; }
.rowlink { color: var(--deep); text-decoration: none; }
.rowlink strong { font-weight: 600; }
.rowlink:hover { color: var(--accent); text-decoration: none; }
.sub { font-size: 13px; color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border: 1px solid var(--chip-line); border-radius: 999px; background: var(--band); color: var(--indigo); font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em; line-height: 1.6; text-transform: uppercase; white-space: nowrap; vertical-align: middle; }
.badge::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.neutral::before, .badge.changed::before, .badge.wait::before { display: none; }
.badge.neutral { border-color: var(--line); background: var(--tint); color: #4a4352; }
.badge.changed { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.badge.wait { border-color: var(--deep); background: var(--deep); color: #ffffff; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pager a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--silver); border-radius: var(--radius); background: var(--surface); color: var(--deep); font-weight: 600; text-decoration: none; }
.pager a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pager a[aria-current="page"] { border-color: var(--accent); background: var(--accent); color: #ffffff; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; }
.cards-grid .panel { margin-top: 0; }
.source h2 { margin: 0 0 4px; }
.facts { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 12px; margin: 16px 0; font-size: 14px; }
.facts dt { font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; min-width: 0; }
.recipe { font-size: 12px; overflow-wrap: anywhere; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stats-row .panel { margin-top: 0; }
.stat-box { display: flex; flex-direction: column; gap: 2px; }
.stat-box b { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--deep); font-variant-numeric: tabular-nums; }
.stat-box span { font-size: 14px; color: var(--muted); }

.invite { display: flex; flex-wrap: wrap; gap: 20px 36px; }
.invite > form, .invite > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.invite h2 { margin: 0; }
.linkbox { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--tint); }
.linkbox p { margin: 0; }
.linkbox .url { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--field-radius); background: #ffffff; font-family: var(--mono); font-size: 14px; overflow-wrap: anywhere; }
.howto { padding: 16px 18px; border: 1.5px dashed var(--silver); border-radius: var(--card-radius); }
.howto p { margin: 0; }
.howto p + p { margin-top: 6px; }
.box-title { font-weight: 700; color: var(--deep); }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hint { font-size: 14px; color: var(--muted); }
.small { font-size: 14px; }

.signin { flex: 1 0 auto; width: 100%; max-width: 1100px; margin: 0 auto; padding: clamp(40px, 5vw, 64px) var(--gutter) clamp(56px, 7vw, 96px); }
.signin .panel { margin-top: 0; }
.shell { overflow: hidden; padding: clamp(32px, 4vw, 52px) clamp(28px, 4vw, 52px) clamp(32px, 4vw, 52px) calc(clamp(28px, 4vw, 52px) + 4px); }
.shell::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: var(--gradient-v); }
.shell-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.intro h2 { margin: 0 0 12px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
.intro p { margin: 0 0 18px; max-width: 36ch; font-size: 15px; line-height: 1.55; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--chip-line); border-radius: 999px; background: var(--band); color: var(--indigo); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--indigo); }
.signin .form { display: grid; gap: 18px; margin: 0; }
.submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.fine { margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); }

.site-footer { background: var(--deep); color: var(--silver); font-size: 14px; }
.site-footer .in { max-width: var(--wrap); margin: 0 auto; padding: 40px var(--gutter); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.site-footer .mark { display: block; width: 36px; height: 36px; margin: 0 0 16px; }
.tagline { margin: 0 0 12px; max-width: 34ch; font-size: 15px; line-height: 1.55; color: #e8dfee; }
.copy { margin: 0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(216, 208, 215, 0.6); }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--silver); font-weight: 600; }
.site-footer a:hover { color: #ffffff; text-decoration: none; }

@media (max-width: 860px) {
  .shell-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .band .in { grid-template-columns: 1fr; }
  .band .lede { justify-self: start; max-width: none; text-align: left; }
  .site-footer .in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
  .brand .wordmark { height: 40px; }
}
