:root { --bg: #f6f2ec; --card: #fff; --text: #1b1a18; --muted: #6e6a64; --line: #e6e0d7; --accent: #c8491b; --ink: #1b1a18; --soft: #efe9e0;
        --act-bg: #fbe8e5; --act: #b3261e; --watch-bg: #fff3d6; --watch: #8a5a00; --none-bg: #e8f3ea; --none: #1f6b3a; --bad: #b3261e; }
/* Always light (9 Oct): the brief is read like paper, and the cream palette is the design. */
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 Inter, system-ui, -apple-system, sans-serif; }
.shell { max-width: 520px; margin: 0 auto; padding: 0 16px 48px; }
main { padding-top: 8px; }
.signed-out { padding-top: 32px; }
a { color: inherit; }
h1 { font-size: 1.6rem; margin: 8px 0; line-height: 1.2; }
h2 { font-size: 1.15rem; margin: 20px 0 8px; }
h3 { font-size: 1rem; margin: 14px 0 4px; }
.serif, .display, .briefcard h3 { font-family: "Source Serif 4", Georgia, serif; }
.display { font-size: 2.3rem; line-height: 1.15; font-weight: 600; margin: 32px 0 12px; }
.lead { font-size: 1.1rem; }
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 600; margin: 16px 0 6px; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; } .error { color: var(--bad); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .row.spread { justify-content: space-between; } .row.end { justify-content: flex-end; } .row.baseline { align-items: baseline; }
.plain { color: var(--text); text-decoration: none; display: inline-block; margin: 8px 0; } .plain:hover { text-decoration: underline; }
/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 8px; }
.brand { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-size: 1.05rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--soft); display: inline-block; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--soft); font-weight: 600; font-size: .8rem; }
.menu { position: relative; } .menu summary { list-style: none; cursor: pointer; font-size: 1.4rem; padding: 0 8px; line-height: 1; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; z-index: 5; top: 100%; left: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-width: 180px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.menu nav a, .menu nav button.link { padding: 8px 10px; text-decoration: none; text-align: left; border-radius: 8px; color: var(--text); }
.menu nav a:hover { background: var(--soft); } .menu nav form { margin: 0; } .nav-head { padding: 8px 10px 0; text-transform: uppercase; letter-spacing: .04em; }
.small-menu nav, .profile nav { left: auto; right: 0; }
.profile summary { padding: 0; }
.answer .serif { font-size: 1.1rem; line-height: 1.55; }
.answer ul { padding-left: 18px; }
/* inputs and buttons */
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); font: inherit; }
label { display: block; margin: 10px 0; } label.check { display: inline-flex; gap: 4px; align-items: center; margin: 4px 8px 4px 0; }
button, .button { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; cursor: pointer; text-decoration: none; display: inline-block; }
button.primary, .button.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; padding: 14px 20px; }
button.primary:disabled { opacity: .4; cursor: default; } .wide { width: 100%; text-align: center; }
button.secondary { background: transparent; } button.danger { color: var(--bad); border-color: var(--bad); background: transparent; }
button.link { background: none; border: none; padding: 0; color: var(--text); text-decoration: underline; }
button.small { padding: 4px 10px; font-size: .85rem; }
.searchbar { display: flex; gap: 8px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 14px; margin: 8px 0 20px; }
.searchbar input:not([type=checkbox]):not([type=radio]):not([type=hidden]) { border: none; background: transparent; padding: 8px 0; border-radius: 0; box-shadow: none; } .searchbar input:focus { outline: none; }
.searchbar button { background: var(--ink); color: var(--bg); border-color: var(--ink); width: 40px; height: 40px; padding: 0; }
.modes { display: flex; gap: 4px; flex-wrap: wrap; margin: 6px 0; } .mode { border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; cursor: pointer; font-size: .85rem; } .mode:has(input:checked) { background: var(--ink); color: var(--bg); } .mode input { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .9rem; background: var(--card); text-decoration: none; }
.chip.add { border-style: dashed; color: var(--muted); } .chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.try { margin: 2px 4px 2px 0; } form.inline { display: inline; }
/* cards */
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 12px 0; text-decoration: none; color: inherit; }
.narrow { max-width: 400px; margin: 24px auto; }
.briefcard h3 { font-size: 1.35rem; line-height: 1.25; margin: 4px 0 10px; }
.briefcard .eyebrow { margin: 0 0 4px; } .briefcard .foot { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; margin: 12px 0 0; }
.callout { border-radius: 12px; padding: 10px 12px; font-size: .95rem; margin: 8px 0; }
.callout.act { background: var(--act-bg); color: var(--act); } .callout.watch { background: var(--watch-bg); color: var(--watch); } .callout.none { background: var(--none-bg); color: var(--none); }
.quiet a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.quiet a:last-child { border-bottom: none; }
.summary { font-style: italic; color: var(--muted); font-size: 1.05rem; margin: 0 0 12px; }
/* welcome */
.welcome .steps { list-style: none; padding: 16px; margin: 20px 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.num { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 8px; background: var(--soft); color: var(--accent); font-weight: 600; font-size: .85rem; flex: none; }
.welcome .button { margin-top: 12px; display: block; text-align: center; } .welcome .plain { display: block; text-align: center; }
/* start */
.addrow { margin: 16px 0 8px; } .addrow input { flex: 1; } .addrow button { width: 44px; height: 44px; padding: 0; font-size: 1.3rem; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; } .picks .chip { cursor: pointer; }
/* brief page */
.brief p.serif { font-size: 1.1rem; line-height: 1.55; }
.cite { display: inline-grid; place-items: center; min-width: 22px; height: 20px; border-radius: 6px; background: var(--soft); color: var(--accent); font: 600 .72rem Inter, sans-serif; border: none; padding: 0 5px; margin: 0 2px; vertical-align: 2px; cursor: pointer; }
.actions { list-style: none; padding: 0; margin: 0; } .actions li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sources { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 8px; } .sources summary { cursor: pointer; padding: 6px 0; }
.source { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.source .body { min-width: 0; } .source .quote { margin: 0 0 6px; } .source .meta { margin: 0; display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .85rem; }
.play { border-radius: 999px; padding: 3px 10px; font-size: .85rem; background: var(--soft); border-color: transparent; } .play.on { background: var(--ink); color: var(--bg); }
.play.big { width: 48px; height: 48px; padding: 0; font-size: 1.1rem; }
/* reactions */
.reactions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.react { width: 38px; height: 38px; padding: 0; border-radius: 999px; font-size: 1.05rem; } .react.on { background: var(--soft); border-color: var(--ink); }
.comment-box { display: none; width: 100%; gap: 6px; margin-top: 6px; } .comment-box.open { display: flex; } .comment-box input { flex: 1; }
/* sheet */
dialog { border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--text); width: min(520px, calc(100% - 24px)); padding: 20px; }
dialog::backdrop { background: rgba(0,0,0,.45); }
.sheet { position: fixed; margin: auto 0 0; bottom: 0; left: 0; right: 0; width: 100%; max-width: 520px; margin-left: auto; margin-right: auto; border-radius: 20px 20px 0 0; max-height: 92vh; overflow: auto; }
.grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 14px; }
.sheet-head { display: flex; gap: 12px; align-items: center; } .sheet-head .avatar { width: 44px; height: 44px; border-radius: 10px; } .sheet-head > div { flex: 1; }
.quote.big { font-family: "Source Serif 4", Georgia, serif; font-size: 1.3rem; line-height: 1.4; margin: 16px 0; }
.player { display: flex; gap: 12px; align-items: center; background: var(--soft); border-radius: 12px; padding: 12px; }
.context { border-left: 3px solid var(--line); padding-left: 12px; margin: 14px 0; } .context .eyebrow { margin: 6px 0 2px; }
/* editor, admin cards (unchanged behaviour) */
.item { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
#add-item { margin: 12px 0 16px; }
.claim .statement { font-weight: 600; margin: 0 0 6px; } blockquote { margin: 6px 0; padding-left: 12px; border-left: 3px solid var(--line); }
audio { height: 36px; max-width: 100%; }
.claim-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.type { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; border-radius: 4px; padding: 1px 6px; border: 1px solid var(--line); }
.feedback { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.q { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; } .q-label { font-size: .85rem; color: var(--muted); min-width: 200px; }
.q button { padding: 4px 10px; font-size: .85rem; } .q button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.feedback details { border: 1px dashed var(--line); border-radius: 8px; padding: 6px 10px; } .feedback input.text { font-size: .85rem; padding: 6px 8px; }
table { width: 100%; border-collapse: collapse; background: var(--card); } th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.feedback { border-top: none; min-width: 200px; } td.feedback .q-label { min-width: 0; width: 100%; }
.heard { margin-top: 28px; }
.req { color: var(--accent); }
label .hint { display: block; margin: 2px 0 6px; }
