/* Or & motifs — warm paper, olive gradients and restrained original geometry. */
:root{color-scheme:light;--ink:#263323;--muted:#62634e;--paper:#f1ecd8;--white:#fffcf1;--line:#d9cfac;--orange:#865b0c;--green:#4d5b28;--pale:#ece8d0;--surface:#f3eedc;--danger:#a33326;--gold:#cfaa43;--field:#fffdf6;--hover:#f3eedb;--button-ink:#fffdf0;--shadow:0 6px 22px #50461c0b}
:root[data-theme=dark]{color-scheme:dark;--ink:#f0edd8;--muted:#c0c5ad;--paper:#101c17;--white:#1b2b22;--line:#47513a;--orange:#edc763;--green:#d4b753;--pale:#303f2d;--surface:#26372a;--danger:#ffb1a1;--gold:#d6b64d;--field:#14231c;--hover:#293b2b;--button-ink:#182316;--shadow:0 6px 22px #0002}
body{background:radial-gradient(ellipse at 95% 0%,#d9ba5950,transparent 48%),var(--paper);min-height:100vh}
[data-theme=dark] body{background:radial-gradient(ellipse at 100% 0%,#7d762737,transparent 48%),var(--paper)}
.sidebar{background:linear-gradient(155deg,#10231d 0%,#25351f 65%,#5b5925 100%);color:#f6f0d7;border-right:1px solid #a68b3c;isolation:isolate}
.sidebar::after{content:"";position:absolute;inset:auto 0 0;height:220px;background:url('gold-pattern.svg') right bottom/155px;opacity:.2;z-index:-1;pointer-events:none;mask-image:linear-gradient(transparent,#000)}
.sidebar small,.sidebar .nav-label{color:#d9cc92}.sidebar .profile{border-color:#7c783d}.sidebar .profile small{color:#d9dec8}
.sidebar nav a:hover,.sidebar nav a.current{background:linear-gradient(100deg,#827321,#535827);color:#fff4c8;box-shadow:inset 3px 0 #e3b944}
.sidebar .link{color:#f1d582}.sidebar .badge{color:#fff1bf;background:#46532e}
[data-theme=dark] .sidebar{background:linear-gradient(155deg,#09130f,#17271b 65%,#494322)}
.brand{align-items:center}.brand .logo-mark{background:#faf8ea;border-radius:50%;width:72px;box-shadow:0 0 0 2px #c5a63f;margin:3px 0}
.theme-tools{display:flex;justify-content:flex-end;align-items:center;margin:-12px 0 20px;gap:12px}
.theme-toggle{display:inline-flex;gap:9px;align-items:center;background:var(--white);border-color:var(--line);color:var(--ink);padding:8px 14px;border-radius:24px;font-size:.82rem;box-shadow:var(--shadow)}
.theme-toggle [data-theme-icon]{font-size:1.2rem;line-height:1}
.page-header,.workspace>h1{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(110deg,#293c23 0%,#566331 58%,#8b792f 100%);color:#fff6d9;border:1px solid #b39941;border-radius:14px;padding:28px 32px;box-shadow:var(--shadow);max-width:none}
.page-header::after,.workspace>h1::after{content:"";position:absolute;inset:0 0 0 55%;background:url('gold-pattern.svg') center right/145px;opacity:.23;z-index:-1;pointer-events:none;mask-image:linear-gradient(90deg,transparent,#000)}
.page-header h1{margin-bottom:14px}.page-header .muted,.page-header .eyebrow{color:#f4e6b2}.page-header p:last-child{margin-bottom:0}.page-header .button{background:#f4df96;color:#27311d;border-color:#e7c966;flex-shrink:0}
[data-theme=dark] .page-header,[data-theme=dark] .workspace>h1{background:linear-gradient(110deg,#2b4127,#4b5629 60%,#6c5b23)}
.panel,.article-list,.login-card,.metrics>div,.episode-card{box-shadow:var(--shadow)}
.panel{border-top:2px solid var(--line)}
.button,button{background:linear-gradient(120deg,#4a592b,#69702f);border-color:#657132;color:#fffdf0}
[data-theme=dark] .button,[data-theme=dark] button{background:linear-gradient(120deg,#d4b14f,#bba043);border-color:#d5b550;color:var(--button-ink)}
.button.secondary,button.secondary,.theme-toggle,[data-theme=dark] .button.secondary,[data-theme=dark] button.secondary,[data-theme=dark] .theme-toggle{background:var(--white);color:var(--ink);border-color:var(--line)}
button.link,[data-theme=dark] button.link{background:transparent;border:0;color:var(--orange)}
.sidebar button.link,[data-theme=dark] .sidebar button.link{color:#f1d582}
input,textarea,select{background:var(--field);color:var(--ink);border-color:var(--line)}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:.85}
input[type=checkbox],input[type=radio]{accent-color:var(--green)}
button:disabled{opacity:.55;cursor:not-allowed}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
.article-row:hover{background:var(--hover)}
th,.advanced,.kanban-column,pre{background:var(--surface)}
.program-card,.program-card.burning{background:linear-gradient(125deg,#e8e7c8,#faf1d3);border-color:var(--line)}
[data-theme=dark] .program-card,[data-theme=dark] .program-card.burning{background:linear-gradient(125deg,#293e2b,#454928);border-color:#737044}
.program-card p{color:var(--muted)}.program-glyph,.burning .program-glyph{color:var(--orange)}.card-bottom{border-color:var(--line)}
.metrics>div{background:linear-gradient(120deg,var(--white),var(--pale));border-top:2px solid var(--gold)}
.score.priority,.badge.hot{background:#f0d99b;color:#62450e}
[data-theme=dark] .score.priority,[data-theme=dark] .badge.hot{background:#665a28;color:#fff0bc}
.notice,.message,.notifications{background:var(--pale);border-color:var(--line)}.notifications a{border-color:var(--line)}
.message.error{background:#f8e0d8;color:#a33326}[data-theme=dark] .message.error{background:#492c25;color:#ffc3b5}
.demo-banner{color:var(--muted)}.tabs .active,.show-nav a.current{border-bottom-color:var(--gold)}
.editor-toolbar button,[data-theme=dark] .editor-toolbar button{background:var(--white);color:var(--ink);border-color:var(--line)}
.return-review-dialog .danger,[data-theme=dark] .return-review-dialog .danger{background:#9b3227;color:#fff5ec;border-color:#c5705b}
.framing-spinner{border-color:var(--pale);border-top-color:var(--gold)}
@media(max-width:760px){.theme-tools{margin:0 0 18px}.page-header,.workspace>h1{padding:23px 20px}.brand .logo-mark{width:60px}}
@media print{.theme-tools{display:none!important}:root[data-theme]{--ink:#000;--muted:#444;--white:#fff;--paper:#fff;--surface:#fff;--pale:#fff;--line:#ccc}body,.workspace>h1,.page-header{background:white!important;color:black!important;box-shadow:none!important}.page-header::after,.workspace>h1::after{display:none}}

.stage-back{margin:0 0 24px}.stage-back .button{text-align:left}@media print{.stage-back{display:none!important}}

.research-edit{margin:20px 0}.research-edit[open]+form{display:none}

.documentary-section{padding:18px 0;border-bottom:1px solid var(--line)}.documentary-section h3{color:var(--orange);font-size:1.1rem}.documentary-section p{margin-bottom:8px;overflow-wrap:anywhere}.documentary-details{margin:8px 0}.documentary-details dt{font-weight:650;margin-top:12px}.documentary-details dd{margin:4px 0 12px 16px}.documentary-report a{text-decoration:underline;overflow-wrap:anywhere}

#collection-pause{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:.85rem}#collection-pause form{display:inline-flex;gap:8px;margin:0}.theme-tools{flex-wrap:wrap}#collection-pause [hidden]{display:none!important}
#watch-dialog{color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:26px;width:min(560px,calc(100vw - 36px));max-height:85vh;overflow:auto;box-shadow:0 20px 70px #0006;text-align:left}#watch-dialog::backdrop{background:#0008}.watch-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.watch-dialog-heading h2{margin:0;font-size:1.3rem}#watch-dialog p{margin:16px 0}#watch-dialog a{text-decoration:underline}

/* Selected proposal B: unboxed status, gold action, separate appearance control. */
#collection-pause{gap:16px;padding-right:18px;border-right:1px solid var(--line);margin-right:4px}
#collection-pause .watch-status-button{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:3px 2px;border:0;border-radius:4px;background:transparent;color:var(--ink);box-shadow:none;font:inherit;cursor:pointer}
.watch-caption{font-size:.875rem;font-weight:500;color:var(--ink)}.watch-state-line{display:flex;align-items:center;gap:7px;font-size:.85rem;font-weight:650;white-space:nowrap}.watch-state-line i{width:8px;height:8px;background:var(--muted);border-radius:50%;display:inline-block}.watch-chevron{font-size:1rem;line-height:1;margin-left:4px}
#collection-pause[data-state="running"] .watch-state-line i{background:#2c9a59}#collection-pause[data-state="stopping"] .watch-state-line i{background:#c78b1f}
#collection-pause .watch-pause-button{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:9px 13px;border:1px solid #ac8a30;border-radius:6px;background:linear-gradient(120deg,#dfc566,#b39532);color:#201d0e;font:inherit;font-weight:650;box-shadow:none;cursor:pointer}
#collection-pause .watch-resume-button{padding:8px;border:0;border-radius:5px;background:transparent;color:var(--ink);font:inherit;text-decoration:underline;cursor:pointer}
#collection-pause button:focus-visible{outline:2px solid var(--orange);outline-offset:3px}#collection-pause .watch-pause-button:hover{filter:brightness(1.06)}#collection-pause .watch-status-button:hover .watch-state-line{text-decoration:underline}
@media(max-width:600px){#collection-pause{gap:10px;padding-right:10px}#collection-pause .watch-pause-button{padding:8px;font-size:.78rem}}

#collection-pause[data-state="stopped"] .watch-state-line i{background:#dc4545}#collection-pause[data-state="running"] .watch-state-line i{background:#2c9a59}#collection-pause[data-state="stopping"] .watch-state-line i{background:#3986df}
