
:root { color-scheme: light dark; --bg: #f5f6fa; --card: #fff; --text: #202636; --muted: #737b8a;
  --line: #e1e5ed; --accent: #3659b8; --active: #e9efff; --read-bg: #eef0f4; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #141820; --card: #1c222d; --text: #e2e7ef; --muted: #939eae;
    --line: #303a49; --accent: #9ab6ff; --active: #2b3d60; --read-bg: #171c25; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, sans-serif; }
main { max-width: 850px; margin: auto; padding: 20px 12px 36px; }
h1 { font-size: 23px; margin: 0 0 8px; }
a { color: var(--accent); text-decoration: none; }
button, .tab, .toggle, .pagination a { border: 1px solid var(--line); background: var(--card);
  color: var(--text); border-radius: 8px; padding: 7px 10px; font: inherit; cursor: pointer; }
button[aria-pressed="true"], .active { background: var(--active); color: var(--accent); }
button:disabled { opacity: .6; cursor: wait; }
nav, .toolbar, .actions, .pagination { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
nav { margin: 16px 0 12px; }
.toolbar { margin-bottom: 14px; }
.status, .meta, .reason { color: var(--muted); font-size: 12px; }
.banner { padding: 12px; margin: 12px 0; border-radius: 8px; overflow-wrap: anywhere; }
.stop { color: #8b1424; background: #ffe0e5; }
.gap { color: #704c00; background: #fff0bf; }
.posts { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.post { border-bottom: 1px solid var(--line); padding: 9px 14px 8px; cursor: pointer; }
.post:last-child { border-bottom: 0; }
.heading { overflow-wrap: anywhere; }
.title { color: var(--text); font-size: 16px; }
.maybe .heading { opacity: .7; }
/* Unread: blue dot + bold title. Read: grey row, light title, no dot. */
.post:not(.read) .heading::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px;
  border-radius: 50%; background: var(--accent); vertical-align: middle; }
.post:not(.read) .title { font-weight: 650; }
.post.read { background: var(--read-bg); }
.read .title { color: var(--muted); font-weight: 400; }
.read .meta, .read .comments { opacity: .65; }
.subject, .badge, .read-mark { font-size: 11px; color: var(--muted); margin-right: 6px; }
.badge { background: var(--active); color: var(--accent); border-radius: 4px; padding: 2px 5px; }
.comments { color: var(--accent); font-size: 13px; white-space: nowrap; }
.meta { margin-top: 3px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.actions { flex-wrap: nowrap; gap: 4px; }
.actions button { font-size: 13px; line-height: 1; padding: 5px 7px; border-radius: 6px; }
.actions button[aria-pressed="false"] { opacity: .55; filter: grayscale(1); }
.reason { margin-top: 6px; overflow-wrap: anywhere; }
.read-error { color: #c43d55; font-size: 12px; }
.empty { padding: 30px 14px; color: var(--muted); }
.pagination { justify-content: center; margin-top: 20px; }
.page-heading { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.auth { max-width: 420px; margin: 8vh auto 0; padding: 24px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; }
.auth label { display: block; margin-top: 18px; }
.auth input { display: block; width: 100%; margin-top: 6px; padding: 12px; font: inherit; font-size: 16px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); }
.auth button { width: 100%; margin-top: 22px; padding: 12px; }
.auth-message { overflow-wrap: anywhere; }
.secret { font: 600 18px/1.6 ui-monospace, monospace; letter-spacing: .04em; overflow-wrap: anywhere; }
@media (min-width: 650px) { main { padding-top: 36px; } .post { padding: 11px 20px 10px; } }
