:root {
  color-scheme: light;
  --paper: #f5f0e5;
  --surface: #fffdf7;
  --ink: #14251f;
  --muted: #4c5d50;
  --accent: #1d6b52;
  --soft: #e1eadc;
  --line: #c8d1bd;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
body[data-app="the-debrief"] {
  --paper: #f3edf7;
  --surface: #fffaff;
  --ink: #261a30;
  --muted: #5e4d69;
  --accent: #66357e;
  --soft: #eadbf4;
  --line: #d7c5e3;
}
* { box-sizing: border-box; }
body { margin: 0; min-block-size: 100dvh; color: var(--ink); background: var(--paper); display: flex; flex-direction: column; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; font-weight: 680; border: 1px solid transparent; min-height: 44px; border-radius: .65rem; padding: .55rem .9rem; background: var(--ink); color: white; }
button:disabled { opacity: .65; cursor: wait; }
button.quiet { background: var(--surface); color: var(--ink); border-color: var(--line); }
button:hover:not(:disabled) { filter: brightness(.87); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
a { color: var(--accent); text-underline-offset: .2rem; }
label { display: grid; gap: .35rem; font-size: .94rem; font-weight: 680; }
input, textarea, select { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: .5rem; min-height: 44px; padding: .55rem .65rem; color: var(--ink); background: var(--surface); }
textarea { resize: vertical; }
small, .muted { color: var(--muted); font-weight: 450; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1, h2 { letter-spacing: -.05em; }
.shell { width: min(70rem, calc(100% - 2rem)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); min-height: 4.6rem; }
.brand { color: var(--ink); font-weight: 780; display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand img { border-radius: .8rem; }
.main { padding-block: clamp(1.4rem, 6vw, 5rem); flex: 1; }
.split, .columns, .entries, .board-grid, .split-board { display: grid; gap: 1rem; }
.intro { padding: 1rem .15rem; display: grid; gap: 1rem; align-content: center; }
.intro h1 { font-family: Georgia, serif; font-weight: 750; font-size: clamp(3.7rem, 7.4vw, 7.4rem); line-height: .89; }
.intro h1 span { color: var(--accent); }
.intro p { max-width: 29rem; line-height: 1.55; color: var(--muted); font-size: clamp(1rem, 2vw, 1.18rem); }
.steps { display: flex; flex-wrap: wrap; gap: .4rem; }
.steps span, .badge { display: inline-flex; background: var(--soft); border-radius: 50rem; padding: .28rem .65rem; color: var(--accent); font-size: .84rem; font-weight: 700; }
.panel { display: grid; gap: 1rem; align-content: start; padding: clamp(1rem, 3vw, 1.8rem); min-width: 0; border: 1px solid var(--line); border-radius: 1.05rem; background: var(--surface); }
.panel h2 { font-size: 1.5rem; line-height: 1.15; }
.panel p, .board-head p { line-height: 1.52; white-space: pre-line; }
.board-head { display: grid; gap: .8rem; border-bottom: 1px solid var(--line); padding-block-end: 1.4rem; margin-block-end: 1.4rem; }
.board-head h1 { font-family: Georgia, serif; font-size: clamp(2.25rem, 6vw, 4.1rem); line-height: 1.06; }
.board-head .badge { justify-self: start; }
.toolbar { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.status { background: var(--ink); color: white; padding: .75rem 1rem; border-radius: .55rem; margin-block-end: 1rem; }
.status.error { background: #81232a; }
.poll-option { display: grid; gap: .45rem; border-bottom: 1px solid var(--line); padding-block-end: .55rem; }
.results-list, .response-list { display: grid; gap: .65rem; }
.tally { display: grid; gap: .2rem; }
.response { padding-block: .45rem; border-top: 1px solid var(--line); }
.response ul { padding-left: 1rem; margin-block: .4rem .5rem; }
.final { background: var(--soft); border-color: var(--accent); }
.entry { align-content: start; }
.entry img, .entry video { width: 100%; height: auto; max-height: 24rem; object-fit: contain; background: var(--soft); border-radius: .55rem; }
.entry blockquote { margin: 0; font-family: Georgia, serif; font-size: clamp(1.08rem, 3vw, 1.5rem); line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.install-help { margin-block-start: 1rem; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1rem max(1.25rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: .88rem; }
[hidden] { display: none !important; }
@media (min-width: 38rem) {
  .columns, .entries, .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .poll-option { grid-template-columns: minmax(0, 1fr) minmax(0, 9rem); align-items: center; }
}
@media (min-width: 51rem) {
  .shell { width: min(70rem, calc(100% - 4rem)); }
  .split { grid-template-columns: minmax(0, 1fr) minmax(25rem, 1.05fr); align-items: center; gap: clamp(2.3rem, 5vw, 5rem); }
}
