:root { color-scheme: light; --paper:#f3f4ee; --panel:#fffefa; --ink:#203c38; --muted:#52665f; --line:#b8c7ba; --green:#265b48; --pale:#e2eee1; --gold:#e1b95e; --danger:#923923; }
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size:20px; line-height:1.5; }
button,input,textarea { font:inherit; }
button { min-height:80px; border:2px solid var(--line); border-radius:15px; padding:16px 22px; background:var(--panel); color:var(--ink); font-size:21px; font-weight:650; cursor:pointer; line-height:1.3; touch-action:manipulation; }
button:focus-visible,input:focus-visible,textarea:focus-visible,a:focus-visible { outline:4px solid #a46109; outline-offset:5px; }
button:active { background:#d5e4d3; }
button:disabled { cursor:default; background:#e4e7e0; color:#59655f; border-color:#bfc9bf; }
button.primary { background:var(--green); color:white; border-color:var(--green); }
button.primary:disabled { background:#d9e2d8; color:#536157; border-color:#bfc9bf; }
button.quiet { background:transparent; }
button.selected { background:var(--pale); border:3px solid var(--green); padding:15px 21px; }
button.selected::before { content:'✓ '; font-weight:850; }
button.danger { color:var(--danger); border-color:#c09d8f; }
.app-shell { max-width:1080px; padding:28px 40px 18px; margin:auto; }
.masthead { display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.identity { display:flex; gap:17px; align-items:center; }
.brand-mark { width:58px; height:58px; display:grid; place-items:center; border-radius:18px 18px 18px 4px; background:var(--green); color:#fffefa; font-family:Georgia,serif; font-size:39px; }
.eyebrow { font-size:11px; font-weight:750; letter-spacing:2px; margin:0 0 2px; }
.brand-name { margin:0; font-family:Georgia,'Times New Roman',serif; font-size:29px; }
.masthead button { min-width:175px; }
.header-actions { display:flex; gap:16px; }
.header-actions #home { min-width:100px; }
.header-actions { flex-wrap:wrap; }
.header-actions button { min-width:140px; }
.dialog-heading { display:flex; align-items:start; justify-content:space-between; gap:22px; margin-bottom:18px; }
.dialog-heading button { flex-shrink:0; min-width:180px; font-size:18px; }
.dialog-heading h2 { margin:0; }
.toolbar { display:flex; flex-wrap:wrap; gap:18px; margin:20px 0 32px; }
.toolbar button { flex:1 1 190px; }
.queue-list { display:grid; gap:20px; margin-top:28px; }
.queue-list .choice-grid { grid-template-columns:1fr; gap:20px; }
.queue-row { display:grid; grid-template-columns:1fr auto; gap:20px; width:100%; text-align:left; align-items:center; padding:24px; }
.queue-copy { display:grid; gap:8px; overflow-wrap:anywhere; }
.queue-copy small { color:var(--muted); font-weight:400; font-size:16px; }
.badge { font-size:15px; font-weight:750; background:var(--pale); padding:10px 14px; border-radius:9px; white-space:nowrap; }
.story-row { display:grid; grid-template-columns:1fr 130px; gap:16px; }
.story-row > button { width:100%; }
.undo-strip { display:flex; align-items:center; flex-wrap:wrap; gap:20px; border:2px solid var(--green); border-radius:14px; padding:18px; margin:18px 0; background:var(--pale); }
.undo-strip p { flex:1; margin:0; }
.availability { padding:22px; border:1px solid var(--line); border-radius:16px; margin:26px 0; }
.availability p:last-child { margin-bottom:0; }
.availability .clock { font-size:25px; font-weight:700; }
.editor-field { min-height:350px; }
.draft-origin { border-left:4px solid var(--gold); padding:12px 18px; margin:18px 0; background:#fff2d8; }
.video-player { display:block; width:100%; max-height:65vh; background:#15231e; border-radius:16px; margin:22px 0; }
.video-controls { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin:18px 0; }
.message-state { white-space:pre-wrap; overflow-wrap:anywhere; }
.status-strip { display:flex; justify-content:space-between; gap:20px; font-size:15px; color:var(--muted); padding:18px 0; border-bottom:1px solid var(--line); }
#connection::before { content:''; display:inline-block; width:9px; height:9px; margin-right:8px; border-radius:50%; background:#818d7c; }
#connection.online::before { background:#388155; }
main { min-height:480px; padding:30px 0 24px; }
main:focus { outline:none; }
main.review-screen { min-height:0; padding-top:20px; }
.review-screen h1 { font-size:34px; }
.review-screen .summary-item { margin:18px 0; min-height:160px; padding:16px; }
.review-screen .summary-item p { font-size:18px; line-height:1.45; }
.review-screen .hint { margin-bottom:12px; }
.review-screen .approval { padding:16px; margin:16px 0; font-size:18px; }
.review-screen .toolbar { margin:16px 0 0; gap:16px; }
.home-stories .choice-grid { grid-template-columns:1fr; }
h1 { font-family:Georgia,'Times New Roman',serif; font-size:clamp(31px,4vw,45px); font-weight:normal; line-height:1.2; margin:8px 0 14px; letter-spacing:-.6px; }
h2 { font-size:25px; line-height:1.3; margin:0 0 16px; }
h3 { font-size:22px; margin:20px 0 10px; }
p { margin:0 0 18px; }
.stage { font-size:14px; font-weight:700; color:var(--muted); letter-spacing:1px; text-transform:uppercase; }
.hint { color:var(--muted); max-width:740px; margin-bottom:26px; }
.choice-grid,.action-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.choice-grid button { min-height:94px; text-align:left; }
.choice-grid .story-card { display:flex; flex-direction:column; justify-content:center; gap:6px; }
.story-card small { font-size:15px; font-weight:400; color:var(--muted); }
.pager { display:grid; grid-template-columns:1fr auto 1fr; gap:18px; align-items:center; margin-top:18px; }
.pager span { font-size:15px; min-width:56px; text-align:center; }
.pager button { min-height:80px; font-size:18px; }
.selection { min-height:30px; font-size:17px; margin:16px 0 0; color:var(--muted); }
.navigation { display:grid; grid-template-columns:1fr 1.2fr 1.4fr 1.2fr; gap:16px; position:sticky; bottom:0; padding:16px 0; background:var(--paper); border-top:1px solid var(--line); z-index:2; }
.navigation button { padding:12px; font-size:19px; }
.page-footer { text-align:center; font-size:14px; color:var(--muted); padding-top:10px; }
.notice { background:#fff0d9; color:#694116; border:2px solid #d8b270; border-radius:12px; margin-top:18px; padding:18px; font-size:18px; }
.notice button { margin:14px 12px 0 0; }
.text-label { display:block; font-size:18px; font-weight:650; margin:20px 0 10px; }
input,textarea { display:block; width:100%; min-height:80px; border:2px solid var(--line); border-radius:12px; padding:20px; color:var(--ink); background:var(--panel); }
textarea { min-height:125px; resize:vertical; line-height:1.5; }
.detail { margin-top:20px; }
.wide { width:100%; margin-top:20px; }
.reading { white-space:pre-wrap; overflow-wrap:anywhere; background:var(--panel); border:1px solid var(--line); padding:24px; border-radius:16px; margin:20px 0; }
.summary-list { display:grid; gap:16px; margin:24px 0; }
.summary-item { display:grid; grid-template-columns:1fr 190px; gap:22px; align-items:center; background:var(--panel); border:1px solid var(--line); border-radius:16px; padding:22px; }
.summary-item strong { font-size:17px; display:block; color:var(--muted); margin-bottom:5px; }
.summary-item p { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
.approval { background:var(--pale); padding:24px; border-radius:16px; margin:24px 0; }
.version-note { font-size:16px; color:var(--muted); margin-top:8px; }
.overlay { position:fixed; inset:0; padding:30px; background:rgba(28,45,37,.68); z-index:10; display:grid; place-items:center; overflow:auto; }
.dialog { width:min(790px,100%); max-height:calc(100dvh - 60px); overflow:auto; background:var(--paper); border:2px solid var(--line); border-radius:24px; padding:36px; box-shadow:0 20px 80px #10271b50; }
.dialog h2 { font-family:Georgia,serif; font-size:36px; font-weight:normal; }
.resting { text-align:center; padding:35px 15px; }
.resting button { width:min(440px,100%); margin-top:25px; }
.empty { border:1px dashed var(--line); border-radius:18px; padding:32px; margin:20px 0; color:var(--muted); }
.home-intro { display:flex; align-items:start; justify-content:space-between; gap:28px; margin-bottom:24px; }
.home-intro button { min-width:230px; }
.job { padding:24px; background:var(--pale); border-radius:16px; margin:20px 0; }
.job p:last-child { margin-bottom:0; }
[hidden] { display:none !important; }
@media (max-width:700px) {
  .app-shell { padding:20px; }
  .masthead { gap:12px; }
  .masthead { flex-wrap:wrap; }
  .header-actions { width:100%; }
  .header-actions button { flex:1; }
  .brand-mark { display:none; }
  .brand-name { font-size:25px; }
  .eyebrow { font-size:9px; letter-spacing:1px; }
  .masthead button { min-width:135px; padding:12px; font-size:18px; }
  .status-strip { flex-direction:column; gap:6px; }
  .navigation { grid-template-columns:1fr 1fr; gap:14px; }
  .choice-grid,.action-grid { gap:16px; }
  .choice-grid button { font-size:19px; padding:16px; }
  .home-intro { flex-direction:column; }
  .home-intro button { width:100%; }
  .summary-item { grid-template-columns:1fr; gap:14px; padding:18px; }
  .dialog { padding:24px; }
  .dialog-heading { flex-direction:column; }
  .dialog-heading button { width:100%; }
  .story-row,.queue-row { grid-template-columns:1fr; }
  .video-controls { grid-template-columns:1fr 1fr; }
  .overlay { padding:14px; }
  .pager { gap:12px; }
}
@media (prefers-reduced-motion:reduce) { * { scroll-behavior:auto !important; } }
