:root {
  color-scheme: dark;
  --bench-bg: #101111;
  --bench-surface: #181a19;
  --bench-line: #30322f;
  --bench-text: #f0eee9;
  --bench-muted: #aaa9a1;
  --bench-accent: #efb86d;
  --bench-mono: ui-monospace, Consolas, monospace;
  --bench-sans: system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bench-bg); color: var(--bench-text); font-family: var(--bench-sans); }
button, select, textarea { font: inherit; }
a { color: var(--bench-accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--bench-accent);
  outline-offset: 3px;
}

.bench-shell { max-width: 660px; margin: 0 auto; padding: 0 18px 36px; }
.bench-header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 16px 0; border-bottom: 1px solid var(--bench-line); }
.bench-brand { color: var(--bench-text); font-size: 21px; font-weight: 750; letter-spacing: -.06em; text-decoration: none; }
.bench-nav, .bench-footer { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; }
.bench-nav a, .bench-footer a { color: var(--bench-muted); text-decoration: none; }
.bench-nav a:hover, .bench-footer a:hover, .bench-nav a[aria-current="page"], .bench-footer a[aria-current="page"] { color: var(--bench-text); text-decoration: underline; }
.bench-title { margin: 25px 0 5px; color: var(--bench-text); font-size: clamp(32px, 7vw, 48px); line-height: 1.1; letter-spacing: -.06em; }
.bench-intro { margin: 0 0 20px; color: var(--bench-muted); font-size: 14px; line-height: 1.55; }
.bench-footer { margin-top: 32px; padding-top: 13px; border-top: 1px solid var(--bench-line); }
.bench-prose { line-height: 1.62; }
.bench-prose h2 { margin: 24px 0 4px; font-size: 19px; }
.bench-prose h3 { margin: 13px 0 0; font-size: 14px; }
.bench-prose p, .bench-prose li { color: var(--bench-muted); font-size: 14px; }
.bench-prose p { margin: 4px 0 12px; }
.bench-prose p.bench-intro { margin-bottom: 20px; }
.bench-prose ol, .bench-prose ul { margin: 5px 0 15px; padding-left: 22px; }
.bench-prose li + li { margin-top: 4px; }

.bench-button, .bench-select {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 10px;
  color: var(--bench-text);
  background: var(--bench-surface);
  border: 1px solid var(--bench-line);
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
}
.bench-button:hover, .bench-select:hover { border-color: var(--bench-muted); }
.bench-button-primary { background: var(--bench-accent); color: #211b13; border-color: var(--bench-accent); font-weight: 700; }
.bench-button:disabled { cursor: default; opacity: .55; }
.bench-select { appearance: none; }

.initial-post {
  margin: 0 0 9px;
  padding: 12px 14px;
  background-color: var(--bench-surface);
  border: 1px solid var(--bench-line);
  border-radius: 10px;
  overflow-wrap: anywhere;
}
.initial-post:focus-within { border-color: #555953; }
.initial-post-meta { display: flex; gap: 8px; align-items: baseline; color: var(--bench-muted); font: 11px var(--bench-mono); }
.initial-post-label[data-category]::before { content: var(--category-icon, "💀"); margin-inline-end: .4em; }
.initial-post-label[data-category="contamination"] { --category-icon: "🦠"; }
.initial-post-label[data-category="wrong_volume"] { --category-icon: "💧"; }
.initial-post-label[data-category="wrong_temperature"] { --category-icon: "🔥"; }
.initial-post-label[data-category="wrong_antibiotic"] { --category-icon: "💊"; }
.initial-post-label[data-category="forgot_reagent"] { --category-icon: "🤦"; }
.initial-post-label[data-category="wrong_tube"] { --category-icon: "🧪"; }
.initial-post-label[data-category="wrong_plasmid"] { --category-icon: "🧬"; }
.initial-post-label[data-category="threw_pellet"] { --category-icon: "🗑️"; }
.initial-post-time { margin-left: auto; }
.initial-post-rank { color: var(--bench-accent); font-variant-numeric: tabular-nums; }
.initial-post-msg { display: block; margin: 5px 0 0; color: var(--bench-text); font-size: 15px; text-decoration: none; }
a.initial-post-msg:hover { text-decoration: underline; }
.initial-post ~ .loading-text, .initial-post ~ .loading { display: none; }
