:root {
  --bg: #f7f7f5; --fg: #1d1d1b; --muted: #6b6b66; --panel: #ffffff; --line: #deddd8; --accent: #2f5d8a; --error: #a3292b;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #161615; --fg: #ecebe6; --muted: #a09f99; --panel: #1f1f1d; --line: #34332f; --accent: #8ab4e0; --error: #e58a8c; }
}
* { box-sizing: border-box; }
/* The hidden attribute wins over the display rules below (main is a grid). */
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.45 system-ui, sans-serif; }
header { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px; border-bottom: 1px solid var(--line); }
h1 { font-size: 18px; margin: 0; }
h2 { font-size: 16px; margin: 0 0 8px; }
h3 { font-size: 14px; margin: 12px 0 4px; color: var(--muted); }
#who { color: var(--muted); }
main { display: grid; gap: 12px; padding: 12px 16px; grid-template-columns: minmax(200px, 1fr) minmax(300px, 2fr) minmax(260px, 1.5fr); }
@media (max-width: 900px) { main { grid-template-columns: 1fr; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 12px; min-width: 0; }
/* The sign-in card, after stats.sygnion.com: three full-width choices, the e-mail fields on request. */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; max-width: 420px; margin: 48px auto; }
.card h2 { font-size: 20px; margin-bottom: 16px; }
button.wide { display: block; width: 100%; margin: 10px 0; padding: 10px 12px; background: var(--bg); color: var(--fg); border-color: var(--line); }
button.wide:hover { border-color: var(--accent); }
.note { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--muted); }
#email-form { margin-top: 6px; }
#email-form button.wide { background: var(--accent); color: var(--panel); border-color: var(--accent); }
details#login { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
details#login summary { cursor: pointer; color: var(--muted); font-size: 13px; }
label { display: block; margin: 6px 0; }
label.inline { display: inline; font-weight: normal; font-size: 13px; color: var(--muted); }
input, textarea, select { width: 100%; font: inherit; padding: 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--fg); }
input[type=checkbox] { width: auto; }
button { font: inherit; padding: 6px 12px; border: 1px solid var(--accent); background: var(--accent); color: var(--panel); border-radius: 4px; cursor: pointer; }
ul, ol { padding-left: 20px; margin: 0; }
#subjects li { cursor: pointer; padding: 2px 0; }
#subjects li:hover { color: var(--accent); }
#log li, #stream li { margin: 6px 0; overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: 12px; }
pre { white-space: pre-wrap; margin: 2px 0; font: 13px/1.4 ui-monospace, monospace; }
.error { color: var(--error); }
#post-panel { grid-column: 1 / -1; }
