/* A quiet editorial desk in the established navy and antique-gold palette. */
#gmResources.gm-docs{--desk-line:#344b5e;--desk-gold:#ddc17c;--desk-muted:#aabcc9;max-width:1800px;padding:28px clamp(18px,3vw,48px) 64px;background:radial-gradient(ellipse at 70% 0,#20384955,transparent 48%)}
#gmResources.gm-docs>header{margin:0 0 28px;padding:12px 0 24px;border-bottom:1px solid var(--desk-line)}
#gmResources.gm-docs>header h1{font-family:'Yu Mincho','Hiragino Mincho ProN',serif;letter-spacing:.1em;font-weight:500;font-size:clamp(1.8rem,3vw,2.5rem)}
#gmResources.gm-docs>header p{font-size:.9rem;color:var(--desk-muted)}
#gmResources .gm-docs-layout{display:grid;grid-template-columns:220px minmax(0,1fr) 200px;gap:32px;align-items:start}
#gmResources :is(.gm-docs-index,.gm-docs-reference){position:sticky;top:calc(var(--play-header-height,72px) + 16px);max-height:calc(100dvh - var(--play-header-height,72px) - 32px);overflow:auto;scrollbar-width:thin;min-width:0}
#gmResources :is(.gm-docs-index,.gm-docs-reference)>h2{font-family:inherit;font-size:.8rem;color:var(--desk-gold);letter-spacing:.12em;margin:0 0 16px;padding-bottom:12px;border-bottom:1px solid var(--desk-line)}
#gmResources .gm-docs-index .gm-guide-tabs{display:grid;gap:6px;margin:0 0 18px;padding:0 0 18px;border-bottom:1px solid var(--desk-line)}
#gmResources .gm-docs-index .gm-guide-tabs button{width:100%;text-align:left;padding:12px 14px;border:1px solid transparent;background:transparent;color:#c4d1db;font-size:.95rem;border-radius:6px}
#gmResources .gm-docs-index .gm-guide-tabs button[aria-pressed=true]{background:#243b4b;color:#f5df9f;border-color:#8b794e;box-shadow:inset 3px 0 var(--desk-gold)}
#gmResources .gm-docs-toc{display:grid;gap:3px}
#gmResources .gm-docs-toc a{display:block;padding:9px 10px;border-left:2px solid transparent;color:#b8c9d5;font-size:.82rem;line-height:1.6;text-decoration:none;overflow-wrap:anywhere}
#gmResources .gm-docs-toc a:hover,#gmResources .gm-docs-toc a[aria-current]{border-left-color:var(--desk-gold);color:#f4e2ad;background:#1c3041}
#gmResources .gm-docs-content{min-width:0;max-width:880px;width:100%;margin-inline:auto}
#gmResources .gm-docs-content h2{font-family:'Yu Mincho','Hiragino Mincho ProN',serif;font-size:1.6rem;font-weight:500;letter-spacing:.04em}
#gmResources .gm-docs-content :is(p,li){font-size:.95rem;line-height:1.85;overflow-wrap:break-word}
#gmResources .gm-docs-content li+li{margin-top:7px}
#gmResources .gm-docs-content :is(.gm-guide-grid,.gm-prep-steps){display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
#gmResources .gm-docs-content details{border:1px solid var(--desk-line);border-radius:8px;box-shadow:none;background:#0f2030;scroll-margin-top:calc(var(--play-header-height,72px) + 20px);overflow:clip}
#gmResources .gm-docs-content details>summary{padding:16px 18px;min-height:54px;box-sizing:border-box;cursor:pointer;font-size:.95rem;line-height:1.5;color:#e1e8eb;font-weight:600}
#gmResources .gm-docs-content details[open]>summary{color:var(--desk-gold);border-bottom:1px solid var(--desk-line);margin-bottom:16px;background:#162b3b}
#gmResources .gm-docs-content details :is(ol,ul){padding-inline:38px 22px}
#gmResources .gm-docs-content .gm-guide-note{border-left-color:var(--desk-gold);background:#213343;margin:16px 0;padding:14px 18px}
#gmResources .gm-docs-content .gm-guide-kicker{font-size:.68rem;color:var(--desk-gold);letter-spacing:.14em}
#gmResources .gm-docs-content .gm-guide-heading{margin-bottom:12px}
#gmResources .gm-docs-content #gmManualDownload{font-size:.8rem;padding:9px 12px;border:1px solid #637887;background:transparent;color:#d1dee7}
#gmResources .gm-docs-content .gm-channel-guide{background:#152a3b;border:1px solid #526574;scroll-margin-top:100px;padding:22px;margin:24px 0}
#gmResources .gm-docs-content .gm-channel-guide h3{font-size:1.15rem}
#gmResources .gm-docs-content .gm-guide-links{gap:12px}
#gmResources .gm-docs-content .gm-template-link{display:inline-block;border:1px solid #b69a59;border-radius:6px;background:#d5ba77;color:#0b1a28;font-size:.9rem;font-weight:700;padding:12px 18px;text-decoration:none}
#gmResources .gm-reference-block{padding:16px 0;border-bottom:1px solid var(--desk-line)}
#gmResources .gm-reference-block:first-of-type{padding-top:0}
#gmResources .gm-reference-label{margin:0 0 12px!important;font-size:.7rem!important;color:var(--desk-muted);letter-spacing:.05em}
#gmResources .gm-reference-block dl{margin:0}
#gmResources .gm-reference-block dl>div{display:flex;justify-content:space-between;gap:8px;padding:8px 0;font-size:.85rem}
#gmResources .gm-reference-block dd{display:flex;gap:16px;margin:0;color:#dfebf1}
#gmResources .gm-reference-block dd b{font-weight:500;color:var(--desk-gold)}
#gmResources .gm-reference-block p{font-size:.8rem;line-height:1.8;color:#c0d0db;margin:8px 0 0}
#gmResources .gm-reference-block .gm-reference-time{font-family:Georgia,serif;font-size:2.1rem;line-height:1.2;color:#f3e3bb}
#gmResources .gm-reference-time span{font-family:inherit;font-size:.9rem;padding-left:8px}
#gmResources .gm-docs-top{width:100%;margin:16px 0 0;padding:10px;border:1px solid var(--desk-line);border-radius:6px;background:transparent;color:#cbdbe4;cursor:pointer;font-size:.8rem}
#gmResources .gm-docs-content .gm-live-quick{margin:0 0 24px;scroll-margin-top:100px}
#gmResources .gm-docs-content #gmConsole .gm-now{margin:16px 0}
#gmResources .gm-docs-content .gm-ending-library-link{margin:16px 0;padding:12px;font-size:.9rem}
#gmResources .gm-docs-content .bgm-table-scroll{overflow:auto}
#gmResources .gm-docs-content :is(a,button,summary):focus-visible{outline:2px solid #edce80;outline-offset:3px}
@media(max-width:1200px){#gmResources .gm-docs-layout{grid-template-columns:190px minmax(0,1fr);gap:24px}#gmResources .gm-docs-reference{grid-column:2;position:static;max-height:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}#gmResources .gm-docs-reference>h2{grid-column:1/-1;margin:0}#gmResources .gm-reference-block{border:0;padding:0}#gmResources .gm-docs-top{grid-column:1/-1}}
@media(max-width:760px){#gmResources.gm-docs{padding:18px 16px 40px}#gmResources .gm-docs-layout{display:block}#gmResources .gm-docs-index{position:static;max-height:none;margin-bottom:22px}#gmResources .gm-docs-index .gm-guide-tabs{display:flex;margin-bottom:10px;padding-bottom:10px}#gmResources .gm-docs-index .gm-guide-tabs button{flex:1;text-align:center}#gmResources .gm-docs-toc{display:flex;overflow:auto;gap:6px;padding-bottom:8px}#gmResources .gm-docs-toc a{flex:none;max-width:220px;border:1px solid var(--desk-line);border-radius:5px;padding:7px 10px;font-size:.75rem}#gmResources .gm-docs-reference{display:block;margin-top:28px}#gmResources .gm-reference-block{padding:12px 0;border-bottom:1px solid var(--desk-line)}#gmResources .gm-docs-content details>summary{padding:14px;font-size:.9rem}#gmResources .gm-docs-content :is(p,li){font-size:.9rem}}
#gmResources .gm-docs-links{margin-bottom:24px}
#gmResources .gm-docs-links>h2{font-family:inherit;font-size:.8rem;color:var(--desk-gold);letter-spacing:.12em;margin:0 0 14px;padding-bottom:12px;border-bottom:1px solid var(--desk-line)}
#gmResources .gm-docs-links .gm-ending-library-link{display:block;box-sizing:border-box;padding:12px 10px;margin:0 0 12px;font-size:.83rem;line-height:1.6;border:1px solid #8b794e;border-radius:6px;background:#243b4b;color:#f5df9f;text-decoration:none;text-align:center}
#gmResources .gm-docs-links details{display:block;margin:0;border:1px solid var(--desk-line);border-radius:6px;background:#102132}
#gmResources .gm-docs-links summary{padding:10px;font-size:.78rem;line-height:1.6;cursor:pointer;color:#c4d4df}
#gmResources .gm-docs-links :is(select,button){max-width:100%;box-sizing:border-box}
@media(max-width:1200px){#gmResources .gm-docs-links{grid-column:1/-1}}

#gmResources .gm-docs-content :is(.gm-casting-guide,.gm-preread-guide,.gm-channel-structure,.gm-timing-guide,.gm-dinner-guide,.gm-finish-guide){margin:16px 0}
#gmResources .gm-docs-content :is(.gm-casting-guide,.gm-preread-guide,.gm-channel-structure) pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:18px;font:inherit;line-height:1.8}
#gmResources .gm-docs-content :is(.gm-casting-guide,.gm-preread-guide,.gm-channel-structure,.gm-timing-guide,.gm-dinner-guide,.gm-finish-guide)>p{margin:16px 18px}
#gmResources .gm-casting-guide button{margin:0 18px 18px}
#gmResources .gm-dinner-guide figure{margin:18px}
#gmResources .gm-dinner-guide img{display:block;max-width:100%;height:auto;border-radius:6px}
#gmResources .gm-dinner-guide .gm-score-example{width:112px}
#gmResources .gm-dinner-guide figcaption{font-size:.8rem;color:var(--desk-muted);margin-top:8px}

#gmResources .gm-answer-example{display:flex;gap:12px;margin:18px;max-width:440px}
#gmResources .gm-answer-example span{flex:1;padding:12px;text-align:center;background:#182634;border:1px solid var(--desk-gold);font:64px Georgia,serif;color:#fff}
#gmResources .gm-score-diagram{display:flex;justify-content:space-between;gap:24px;max-width:240px;margin:18px;padding:12px 16px;background:#283d59;border-left:3px solid var(--desk-gold)}
#gmResources .gm-dinner-guide .gm-example-caption{font-size:.8rem;color:var(--desk-muted)}

/* Current-scene desk: one place for the cue, action, and exit condition. */
#gmResources .gm-runbook{scroll-margin-top:100px;margin-bottom:24px}
#gmResources .gm-runbook>h2{margin:0 0 18px}
#gmResources .gm-scene-select{display:grid;gap:8px;font-size:.8rem;color:var(--desk-muted);margin-bottom:18px}
#gmResources .gm-scene-select select{width:100%;min-width:0;max-width:100%;box-sizing:border-box;padding:12px;background:#112535;border:1px solid #74816b;border-radius:6px;color:#f5e4b9;font:inherit;font-size:1rem}
#gmResources .gm-scene-card{padding:clamp(18px,2.4vw,30px);background:linear-gradient(135deg,#243b49,#102333 75%);border:1px solid #73816b;border-radius:10px}
#gmResources .gm-scene-meta{display:flex;justify-content:space-between;align-items:start;gap:14px;font-size:.85rem;color:var(--desk-gold);line-height:1.6}
#gmResources .gm-scene-meta strong{text-align:right;max-width:75%}
#gmResources .gm-scene-card h3{font-family:'Yu Mincho','Hiragino Mincho ProN',serif;font-size:clamp(1.2rem,2vw,1.6rem);line-height:1.5;color:#f7e6bf;margin:16px 0 10px}
#gmResources .gm-scene-card h4{color:var(--desk-gold);font-size:.8rem;font-weight:600;margin:24px 0 10px;letter-spacing:.08em}
#gmResources .gm-scene-card blockquote{margin:0 0 12px;padding:16px 18px;background:#0b1d2b;border-left:3px solid #d4bb7f;color:#e7eef2;font-size:.95rem;line-height:1.95}
#gmResources .gm-scene-exit{border-top:1px solid #4c6068;margin-top:24px}
#gmResources .gm-scene-exit p{margin-bottom:0}
#gmResources .gm-runbook button{padding:9px 13px;border:1px solid #6d7b76;border-radius:5px;background:#172c3c;color:#e5d5b2;font:inherit;font-size:.85rem;cursor:pointer}
#gmResources .gm-runbook button:hover{background:#2b4553}
#gmResources .gm-runbook button:disabled{opacity:.35;cursor:default}
#gmResources #gmSceneCopyStatus{margin-left:10px;font-size:.8rem;color:#cbd8d6}
#gmResources .gm-scene-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}
#gmResources #gmSceneNext{background:#ddc17c;color:#132131;border-color:#ddc17c}
#gmResources #gmSceneNextLabel{flex:1;text-align:center;font-size:.8rem;color:var(--desk-muted)}
#gmResources .gm-runbook .gm-scene-footnote{color:var(--desk-muted);font-size:.75rem;margin-bottom:0}
#gmResources .gm-timing-guide table{width:100%;border-collapse:collapse;min-width:520px}
#gmResources .gm-timing-guide :is(th,td){text-align:left;vertical-align:top;padding:12px;border-bottom:1px solid var(--desk-line);font-size:.85rem;line-height:1.7}
#gmResources .gm-timing-guide th{color:var(--desk-gold)}
#gmResources .gm-timing-guide td:first-child{width:28%}
#gmResources .gm-timing-guide button{background:transparent;border:0;color:#eee0be;text-align:left;padding:0;font:inherit;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
#gmResources .gm-timing-guide .gm-selected-phase{background:#253f4f}
#gmResources .gm-docs-reference .gm-live-quick{margin-top:12px}
#gmResources .gm-docs-reference .gm-live-quick :is(p,td,th){font-size:.8rem;line-height:1.7;overflow-wrap:anywhere}
#gmResources .gm-docs-reference .gm-live-quick p{padding:0 10px}
#gmResources .gm-docs-reference .gm-guide-table{overflow:auto}
#gmResources .gm-docs-reference .gm-guide-table table{min-width:0;width:100%}
#gmResources .gm-docs-reference .gm-guide-table :is(th,td){padding:8px 5px}
#gmResources .gm-guide-table{max-width:100%;overflow:auto}
#gmResources .gm-guide-links .gm-template-link{background:transparent;color:#cfdddf;border-color:#627783;font-weight:400;font-size:.8rem}
#gmResources .gm-docs-content #gmConsole .gm-now[hidden]{display:none}
@media(max-width:760px){#gmResources .gm-scene-controls{flex-wrap:wrap}#gmResources #gmSceneNextLabel{order:3;flex-basis:100%}#gmResources .gm-scene-card blockquote{padding:12px;font-size:.9rem}}

#gmResources.gm-docs{scroll-margin-top:calc(var(--play-header-height,72px) + 12px)}

.story-scene-break{display:block;width:100%;height:0;border:0;border-top:1px solid #a28f66;margin:42px 0;opacity:.8}

#gmResources .gm-preread-guide button{margin:0 18px 18px}

/* GM reference readability and direct ending navigation. */
#gmEndingsNav{display:none}
body.gm-mode .quick-nav #gmEndingsNav{display:flex;align-items:center;justify-content:center;align-self:stretch;box-sizing:border-box;min-height:44px;padding:10px 16px;border:1px solid #b59a5d;border-radius:6px;color:#f1d694;background:#203447;font-size:.85rem;font-weight:700;text-decoration:none;white-space:nowrap}
.quick-nav #gmEndingsNav:focus-visible{outline:2px solid #edce80;outline-offset:3px}
#gmResources .gm-docs-layout{grid-template-columns:200px minmax(0,1fr) 280px;gap:24px}
#gmResources .gm-docs-reference select{width:100%;min-width:0;max-width:100%;font-size:.85rem;text-overflow:ellipsis}
#gmResources .gm-docs-links details{padding:0;overflow:hidden}
#gmResources .gm-docs-links details[open]>summary{border-bottom:1px solid var(--desk-line);margin-bottom:12px}
#gmResources .gm-docs-links .gm-reading-access{padding:12px;min-width:0}
#gmResources .gm-docs-links :is(p,label){display:block;font-size:.85rem;line-height:1.9;overflow-wrap:anywhere}
#gmResources :is(#gmSceneAction,#gmSceneSay,#gmSceneExit){white-space:pre-line}
#gmResources .gm-live-quick details>p{margin:16px 20px;line-height:1.9}
#gmResources .gm-live-quick .gm-guide-table{margin:16px 20px;max-width:calc(100% - 40px)}
#gmResources .gm-live-quick table{width:100%;min-width:0;table-layout:fixed}
#gmResources .gm-live-quick :is(td,th){padding:12px 10px;line-height:1.85;overflow-wrap:anywhere;vertical-align:top}
@media(max-width:1200px){#gmResources .gm-docs-layout{grid-template-columns:180px minmax(0,1fr)}#gmResources .gm-docs-reference{grid-column:2;grid-template-columns:1fr}}
@media(max-width:760px){#gmResources .gm-docs-layout{display:block}body.gm-mode .quick-nav #gmEndingsNav{padding:7px 8px;font-size:.75rem}#gmResources .gm-live-quick :is(td,th){padding:10px 5px;font-size:.8rem}}

/* Simple GM mode: two panes, pulldown navigation, no duplicate reference rail. */
#gmResources.gm-docs{padding:18px clamp(16px,2.4vw,36px) 48px}
#gmResources.gm-docs>header{margin-bottom:16px;padding-bottom:14px}
#gmResources.gm-docs>header h1{font-size:clamp(1.45rem,2.2vw,2rem);margin:0 0 4px}
#gmResources.gm-docs>header p{margin:0}
#gmResources .gm-docs-layout{grid-template-columns:minmax(210px,260px) minmax(0,980px)!important;gap:20px!important;justify-content:center}
#gmResources .gm-docs-reference{display:none!important}
#gmResources .gm-docs-index{padding:12px;border:1px solid var(--desk-line);border-radius:8px;background:#0c1a29}
#gmResources .gm-docs-index>h2{margin-bottom:10px;padding-bottom:8px}
#gmResources .gm-docs-index .gm-guide-tabs{grid-template-columns:1fr;gap:6px;margin-bottom:12px;padding-bottom:12px}
#gmResources .gm-docs-index .gm-guide-tabs button{min-height:42px;padding:9px 11px}
#gmResources .gm-docs-jump{display:grid;gap:7px;margin:0 0 12px;color:var(--desk-gold);font-size:.8rem;font-weight:700}
#gmResources .gm-docs-jump select{width:100%;min-height:42px;padding:8px;border:1px solid #607992;border-radius:6px;background:#081827;color:#edf6ff;font:inherit;font-size:.9rem}
#gmResources .gm-docs-toc{gap:2px}
#gmResources .gm-docs-toc a{padding:7px 8px;font-size:.78rem}
#gmResources .gm-docs-content{max-width:none;margin:0}
#gmResources .gm-docs-content h2{font-size:1.35rem;margin:0 0 12px}
#gmResources .gm-docs-content :is(p,li){font-size:.9rem;line-height:1.7}
#gmResources .gm-docs-content details{border-radius:6px;background:#0d1c2b}
#gmResources .gm-docs-content details>summary{min-height:44px;padding:11px 14px;font-size:.9rem}
#gmResources .gm-docs-content details[open]>summary{margin-bottom:8px}
#gmResources .gm-docs-content details :is(ol,ul){padding-inline:30px 18px;margin-block:8px 14px}
#gmResources .gm-guide-note,#gmResources .gm-guide-links,#gmResources .gm-channel-structure,#gmResources .gm-casting-guide,#gmResources .gm-preread-guide{display:none!important}
#gmResources #gmRunbook{margin-bottom:14px}
#gmResources .gm-scene-card{padding:18px;border-radius:8px}
#gmResources .gm-scene-card h3{font-size:1.25rem}
#gmResources .gm-scene-card h4{margin-top:16px}
#gmResources .gm-scene-card blockquote{padding:12px 14px;font-size:.9rem;line-height:1.75}
#gmResources .gm-timing-guide :is(th,td){padding:9px;font-size:.8rem;line-height:1.55}
#gmResources .gm-docs-content .bgm-panel :is(p,ol,table){display:none}
#gmResources .gm-docs-content .bgm-panel[open] :is(.bgm-table-scroll){display:block}
#gmResources .gm-docs-content .bgm-panel summary{color:#e7d190}
@media(max-width:900px){#gmResources .gm-docs-layout{display:block!important}#gmResources .gm-docs-index{position:static;max-height:none;margin-bottom:14px}#gmResources .gm-docs-toc{display:flex;overflow:auto;gap:6px}#gmResources .gm-docs-toc a{flex:none;border:1px solid var(--desk-line);border-radius:5px}}

/* Final simplification: no decorative index, no extra rails. */
#gmResources .gm-docs-index>h2,
#gmResources .gm-docs-toc,
#gmResources .gm-docs-links,
#gmResources .gm-channel-guide,
#gmResources .gm-ready-check,
#gmResources .gm-live-quick,
#gmResources .gm-dinner-guide,
#gmResources .gm-finish-guide,
#gmResources #gmManualDownload{display:none!important}
#gmResources .gm-docs-layout{grid-template-columns:minmax(190px,230px) minmax(0,900px)!important}
#gmResources .gm-docs-index{border:0;background:transparent;padding:0}
#gmResources .gm-docs-index .gm-guide-tabs{border:0;padding:0;margin:0 0 12px}
#gmResources .gm-docs-index .gm-guide-tabs button{border:1px solid #3d5368;background:#0d1c2b;color:#dfe9f0;font-weight:700;text-align:center}
#gmResources .gm-docs-index .gm-guide-tabs button[aria-pressed=true]{background:#24496a;color:#fff;border-color:#d7bd73;box-shadow:none}
#gmResources .gm-docs-jump{margin:0}
#gmResources .gm-docs-content details{border:1px solid #334a5e;box-shadow:none;background:#091725}
#gmResources .gm-docs-content details>summary{color:#f1d78f}
#gmResources .gm-docs-content details:not(.gm-timing-guide):not(:first-of-type){display:none}
#gmResources #gmPreparation .gm-prep-steps details{display:block!important}
#gmResources #gmLiveMaterials #gmConsole .gm-guide-grid>details:nth-of-type(-n+3){display:block!important}
#gmResources #gmRunbook+.gm-timing-guide{display:block!important}
#gmResources .gm-scene-card{background:#0d1f30;border-color:#425b70}
#gmResources .gm-scene-exit{margin-top:16px}
#gmResources .gm-scene-card h4{font-size:.75rem}
@media(max-width:900px){#gmResources .gm-docs-layout{display:block!important}#gmResources .gm-docs-index{margin-bottom:12px}}

/* GM materials follow the same two-pane rhythm as UZU: left progress, right active page. */
@media(min-width:1100px){
 body.gm-mode[data-view="gm-resources"]{overflow:hidden;height:100dvh}
 body.gm-mode[data-view="gm-resources"] #gmResources.gm-docs{
  position:fixed;
  inset:72px 0 0;
  max-width:none;
  width:100%;
  height:auto;
  margin:0;
  padding:18px 24px;
  box-sizing:border-box;
  overflow:hidden;
  background:#07111fcc;
 }
 body.gm-mode[data-view="gm-resources"] #gmResources>header{
  display:none;
 }
 body.gm-mode[data-view="gm-resources"] #gmResources .gm-docs-layout{
  height:100%;
  display:grid!important;
  grid-template-columns:280px minmax(0,1060px)!important;
  justify-content:center;
  gap:22px!important;
  align-items:stretch;
 }
 body.gm-mode[data-view="gm-resources"] #gmResources .gm-docs-index{
  position:relative;
  top:0;
  height:100%;
  max-height:100%;
  overflow-y:auto;
  border-right:1px solid #30465d;
  padding:0 10px 24px 0;
 }
 body.gm-mode[data-view="gm-resources"] #gmResources .gm-docs-content{
  height:100%;
  max-height:100%;
  overflow-y:auto;
  padding:0 4px 40px;
 }
 body.gm-mode[data-view="gm-resources"] #gmResources .gm-docs-jump{
  display:none!important;
 }
 body.gm-mode[data-view="gm-resources"] #gmResources .gm-docs-toc{
  display:flex!important;
  flex-direction:column;
  gap:8px;
  margin-top:12px;
 }
 body.gm-mode[data-view="gm-resources"] #gmResources .gm-docs-toc a{
  display:block;
  min-height:44px;
  padding:10px 12px;
  border:1px solid #36536f;
  border-radius:8px;
  background:#0d2235cc;
  color:#edf6ff;
  text-decoration:none;
  font:800 .92rem/1.45 sans-serif;
 }
 body.gm-mode[data-view="gm-resources"] #gmResources .gm-docs-toc a[aria-current],
 body.gm-mode[data-view="gm-resources"] #gmResources .gm-docs-toc a:hover{
  border-color:#d7bd73;
  color:#fff4cf;
  background:#18334d;
 }
 body.gm-mode[data-view="gm-resources"] #gmResources .gm-guide-tabs{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  margin:0 0 12px;
 }
 body.gm-mode[data-view="gm-resources"] #gmResources .gm-guide-tabs button{
  min-height:52px;
  border-radius:8px;
  font-size:1rem;
 }
 body.gm-mode[data-view="gm-resources"] #gmResources .gm-docs-content>section:not([hidden]){
  display:block;
 }
 body.gm-mode[data-view="gm-resources"] #gmResources .gm-docs-content details:not(.gm-timing-guide):not(:first-of-type){
  display:none;
 }
 body.gm-mode[data-view="gm-resources"] #gmResources #gmPreparation .gm-prep-steps details,
 body.gm-mode[data-view="gm-resources"] #gmResources #gmLiveMaterials #gmConsole .gm-guide-grid>details:nth-of-type(-n+3),
 body.gm-mode[data-view="gm-resources"] #gmResources #gmRunbook+.gm-timing-guide{
  display:block!important;
 }
}

/* Apply the same cleanup on narrow screens shown inside embedded browsers. */
body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"],[data-view="common"]){
 --play-header-height:0px!important;
 padding-top:0!important
}
body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"],[data-view="common"]) .quick-nav{
 display:none!important
}
body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader .chapter-panel{
 background:rgba(7,18,33,.94)!important;
 color:#f7f4ea!important;
 border-color:rgba(126,151,174,.28)!important;
 box-shadow:none!important
}
body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader :is(.chapter-heading,.chapter-heading h3,.text-panel,.story-prose,.story-list,li,p){
 color:#f7f4ea!important
}
body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader .chapter-heading p{
 color:#d9bb72!important
}
body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader .story-marker:not(.scene-marker){
 background:linear-gradient(90deg,rgba(38,86,128,.68),rgba(14,34,55,.28))!important;
 border-left-color:#8dc5ef!important;
 color:#fff!important
}
body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader .story-marker:not(.scene-marker) :is(h4,p){
 color:#fff!important
}
body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader .reading-workspace>.pane-tabs{
 display:none!important
}

/* Avoid duplicate common-info controls now that common info lives beside HO tabs. */
body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader .reading-workspace>.pane-tabs{
 display:none!important
}

/* 2026-09-16: remove duplicated top navigation in the two-pane reader. */
@media(min-width:1100px){
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"],[data-view="common"]) .quick-nav{
  display:none!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"],[data-view="common"]){
  --play-header-height:0px!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"],[data-view="common"]) main{
  height:100dvh!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader,
 body:is(:not(.gm-mode),.gm-player-view)[data-view="common"] #commonReader,
 body:is(:not(.gm-mode),.gm-player-view)[data-view="common"] #commonInfoPage{
  height:100dvh!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readerSplitHandle.reader-split-handle{
  min-height:100dvh!important;
  top:0!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader .reading-workspace>.pane-tabs{
  display:flex!important;
  position:sticky!important;
  top:0!important;
  z-index:80!important;
  gap:18px!important;
  margin:0 0 12px!important;
  padding:0 0 7px!important;
  border-bottom:1px solid rgba(126,151,174,.32)!important;
  background:#071221f2!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader .reading-workspace>.pane-tabs [data-pane-view="handout"]{
  display:none!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader #readingTabs{
  top:47px!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader>.pane-tabs{
  display:none!important
 }
}

/* Keep handout prose readable on the dark immersive surface. */
@media(min-width:1100px){
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader .chapter-panel{
  background:rgba(7,18,33,.94)!important;
  color:#f7f4ea!important;
  border-color:rgba(126,151,174,.28)!important;
  box-shadow:none!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader .chapter-heading{
  background:transparent!important;
  border-bottom-color:rgba(126,151,174,.24)!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader :is(.chapter-heading,.chapter-heading h3,.text-panel,.story-prose,.story-list,li,p){
  color:#f7f4ea!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader .chapter-heading p{
  color:#d9bb72!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader .story-prose{
  color:#f4f1e8!important;
  text-shadow:none!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader .story-marker:not(.scene-marker){
  background:linear-gradient(90deg,rgba(38,86,128,.68),rgba(14,34,55,.28))!important;
  border-left-color:#8dc5ef!important;
  color:#fff!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader .story-marker:not(.scene-marker) :is(h4,p){
  color:#fff!important
 }
}

/* Final override: the HO tab row owns common info; the left pane shows only reading choices. */
body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader .reading-workspace>.pane-tabs{
 display:none!important
}

/* 2026-09-16 final: flat two-pane reader with visible progression controls. */
@media (min-width:1100px){
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"],[data-view="common"]),
 body.gm-mode.gm-live-desk:is([data-view="readings"],[data-view="handout"],[data-view="common"]){
  height:100dvh!important;overflow:hidden!important;padding-bottom:0!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) main{
  display:grid!important;
  grid-template-columns:minmax(320px,var(--reader-split-left,38%)) 12px minmax(0,1fr)!important;
  gap:0!important;height:calc(100dvh - var(--play-header-height,72px))!important;min-height:0!important;overflow:hidden!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader{
  display:block!important;position:relative!important;inset:auto!important;width:100%!important;max-width:none!important;min-width:0!important;
  height:calc(100dvh - var(--play-header-height,72px))!important;min-height:0!important;margin:0!important;
  padding:20px clamp(16px,1.8vw,28px) 48px!important;overflow-y:auto!important;overscroll-behavior:contain!important;
  background:rgba(7,18,33,.88)!important;scrollbar-width:thin!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader{grid-column:1!important;grid-row:1!important;border-right:1px solid rgba(95,129,158,.42)!important}
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader{grid-column:3!important;grid-row:1!important;border-left:1px solid rgba(95,129,158,.34)!important}
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader.hidden,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader.hidden{display:block!important}
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readerSplitHandle.reader-split-handle{
  display:block!important;grid-column:2!important;grid-row:1!important;align-self:stretch!important;width:12px!important;
  min-height:calc(100dvh - var(--play-header-height,72px))!important;cursor:col-resize!important;position:sticky!important;
  top:var(--play-header-height,72px)!important;z-index:70!important;background:rgba(11,28,44,.64)!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readerSplitHandle.reader-split-handle::before{
  content:""!important;display:block!important;width:2px!important;height:100%!important;margin-inline:auto!important;background:rgba(112,147,178,.58)!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readerSplitHandle.reader-split-handle::after{
  content:"↔"!important;position:sticky!important;top:50%!important;display:grid!important;place-items:center!important;
  width:28px!important;height:56px!important;margin:-56px 0 0 -8px!important;border:1px solid rgba(141,177,207,.72)!important;
  border-radius:999px!important;background:#10263a!important;color:#f0d58c!important;font-size:.9rem!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) :is(#commonReader,#reader) .reading-workspace{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr)!important;
  gap:12px!important;width:100%!important;max-width:none!important;min-height:100%!important;margin:0!important;overflow:visible!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) .reader-tools,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader .reading-workspace>.pane-tabs{display:none!important}
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader>.pane-tabs,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader #readingTabs,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader #chapterTabs{
  display:flex!important;position:sticky!important;top:0!important;z-index:60!important;align-items:center!important;
  gap:18px!important;width:100%!important;min-height:40px!important;max-height:none!important;margin:0 0 12px!important;
  padding:0 0 7px!important;overflow-x:auto!important;overflow-y:hidden!important;border:0!important;
  border-bottom:1px solid rgba(126,151,174,.32)!important;border-radius:0!important;background:#071221f2!important;
  box-shadow:none!important;backdrop-filter:blur(10px)!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader #readingTabs,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader #chapterTabs{grid-column:1!important;grid-row:1!important}
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader #chapterTabs{top:47px!important}
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader :is(#readingPanel,.workflow-panel),
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader :is(.chapter-panel,.workflow-panel){
  grid-column:1!important;grid-row:2!important;width:100%!important;max-width:none!important;min-height:0!important;margin:0!important;overflow:visible!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs :is(.flow-nav-button,.post-vote-stages,.session-nav-fold),
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .reading-group,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #chapterTabs button,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) .pane-tabs button{
  flex:0 0 auto!important;width:auto!important;min-width:max-content!important;max-width:none!important;margin:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#97a8ba!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .reading-group{overflow:visible!important}
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .reading-group.hidden{display:none!important}
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .reading-group>summary,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #chapterTabs button,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) .pane-tabs button{
  display:flex!important;align-items:center!important;min-height:40px!important;padding:8px 2px 9px!important;
  font:800 .94rem/1.45 -apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic",Meiryo,sans-serif!important;
  letter-spacing:.01em!important;white-space:nowrap!important;text-align:left!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .reading-group[open]>summary,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs :is(.flow-nav-button[aria-current="step"],.flow-step[aria-current="step"]),
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #chapterTabs button.active,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) .pane-tabs button.active{
  color:#f0d58c!important;box-shadow:inset 0 -2px 0 #d9bb72!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .reading-group>summary small,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #chapterTabs button small,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #chapterTabs button span{display:none!important}
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .reading-group:not([open]) :is(.reading-group-list,.workflow-open),
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .reading-group:not([open]) :is(.vote-flow,.pair-route-list,.post-vote-stages,.session-nav-fold-body){display:none!important}
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .reading-group-list,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .session-nav-fold-body,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .post-vote-stages{
  display:flex!important;gap:8px!important;padding:0!important;margin:0!important;max-height:220px!important;overflow-y:auto!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .reading-group-list button,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .workflow-open,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .flow-step{
  min-height:36px!important;padding:7px 10px!important;border-radius:4px!important;border:1px solid rgba(98,126,151,.36)!important;
  background:rgba(12,31,50,.78)!important;color:#e7edf5!important;white-space:nowrap!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader .chapter-panel{
  background:linear-gradient(180deg,rgba(253,250,242,.985),rgba(244,238,226,.985))!important;color:#1d2430!important;
  border-color:rgba(60,72,88,.22)!important;box-shadow:0 22px 70px rgba(0,0,0,.24)!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader :is(.text-panel,.story-prose,.story-list,li,p,.chapter-heading,.chapter-heading h3){color:#1d2430!important}
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader .text-panel{max-width:42rem!important;margin-inline:auto!important;line-height:2!important;letter-spacing:.02em!important}
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader .story-prose{max-width:34em!important;word-break:normal!important;overflow-wrap:break-word!important;line-break:strict!important}
}

@media (min-width:1100px){
 body.gm-mode.gm-live-desk:is([data-view="gm-resources"],[data-view="readings"],[data-view="handout"],[data-view="common"]) main{
  display:grid!important;grid-template-columns:minmax(360px,var(--reader-split-left,34%)) 12px minmax(0,1fr)!important;
  height:calc(100dvh - var(--play-header-height,72px))!important;min-height:0!important;overflow:hidden!important
 }
 body.gm-mode.gm-live-desk #gmResources{grid-column:1!important;grid-row:1!important;height:calc(100dvh - var(--play-header-height,72px))!important;overflow-y:auto!important}
 body.gm-mode.gm-live-desk #commonReader,
 body.gm-mode.gm-live-desk #reader,
 body.gm-mode.gm-live-desk #commonInfoPage{
  grid-column:3!important;grid-row:1!important;height:calc(100dvh - var(--play-header-height,72px))!important;overflow-y:auto!important;
  width:100%!important;max-width:none!important;margin:0!important;padding:20px clamp(16px,1.8vw,28px) 48px!important;background:rgba(7,18,33,.88)!important
 }
 body.gm-mode.gm-live-desk #readerSplitHandle.reader-split-handle{
  display:block!important;grid-column:2!important;grid-row:1!important;align-self:stretch!important;width:12px!important;cursor:col-resize!important;background:rgba(11,28,44,.64)!important
 }
 body.gm-mode.gm-live-desk #readerSplitHandle.reader-split-handle::before{content:""!important;display:block!important;width:2px!important;height:100%!important;margin-inline:auto!important;background:rgba(112,147,178,.58)!important}
 body.gm-mode.gm-live-desk #readerSplitHandle.reader-split-handle::after{content:"↔"!important;position:sticky!important;top:50%!important;display:grid!important;place-items:center!important;width:28px!important;height:56px!important;margin:-56px 0 0 -8px!important;border:1px solid rgba(141,177,207,.72)!important;border-radius:999px!important;background:#10263a!important;color:#f0d58c!important}
 body.gm-mode.gm-live-desk #commonReader .reading-workspace>.pane-tabs{
  display:flex!important;position:sticky!important;top:0!important;z-index:60!important;gap:18px!important;margin:0 0 12px!important;padding:0 0 7px!important;
  border-bottom:1px solid rgba(126,151,174,.32)!important;background:#071221f2!important
 }
}

@media(max-width:1099px){
 .pane-tabs{display:none!important}
}

/* Two-pane correction: controls live at the top, both panes scroll independently. */
@media(min-width:1100px){
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"],[data-view="common"]){
  height:100dvh!important;
  overflow:hidden!important;
  padding-bottom:0!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"],[data-view="common"]) main{
  display:grid!important;
  grid-template-columns:minmax(360px,34vw) minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr)!important;
  height:calc(100dvh - var(--play-header-height,72px))!important;
  min-height:0!important;
  overflow:hidden!important;
  background:rgba(6,15,27,.72)!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader,
 body:is(:not(.gm-mode),.gm-player-view)[data-view="common"] #commonReader,
 body:is(:not(.gm-mode),.gm-player-view)[data-view="common"] #commonInfoPage{
  position:relative!important;
  inset:auto!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:16px clamp(16px,2vw,28px) 28px!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  background:rgba(7,18,33,.76)!important;
  scrollbar-width:thin!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader,
 body:is(:not(.gm-mode),.gm-player-view)[data-view="common"] #commonReader{
  grid-column:1!important;
  grid-row:1!important;
  border-right:1px solid rgba(95,129,158,.58)!important;
  border-left:0!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader,
 body:is(:not(.gm-mode),.gm-player-view)[data-view="common"] #commonInfoPage{
  grid-column:2!important;
  grid-row:1!important;
  border-left:1px solid rgba(95,129,158,.42)!important;
  border-right:0!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader.hidden,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader.hidden{
  display:block!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readerSplitHandle{
  display:none!important
 }

 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) :is(#commonReader,#reader) .reading-workspace{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  gap:12px!important;
  width:100%!important;
  max-width:none!important;
  min-height:100%!important;
  margin:0!important;
  overflow:visible!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader>.pane-tabs,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader .reading-workspace>.pane-tabs,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader #readingTabs,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader #chapterTabs{
  position:sticky!important;
  top:0!important;
  z-index:50!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:14px!important;
  min-height:42px!important;
  width:100%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0 0 10px!important;
  padding:0 0 8px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  border:0!important;
  border-bottom:1px solid rgba(126,151,174,.34)!important;
  border-radius:0!important;
  background:rgba(7,18,33,.96)!important;
  box-shadow:none!important;
  backdrop-filter:blur(10px)!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader .reading-workspace>.pane-tabs{
  display:none!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader #chapterTabs{
  top:48px!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) :is(#readingTabs,#chapterTabs)>*,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) :is(#readingTabs,#chapterTabs) button{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:max-content!important;
  max-width:none!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .reading-group{
  display:block!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  margin:0!important;
  overflow:visible!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .reading-group>summary{
  display:flex!important;
  min-height:42px!important;
  padding:8px 2px!important;
  border:0!important;
  color:#d8c06f!important;
  white-space:nowrap!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .reading-group>summary small,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .reading-group>summary:after{
  display:none!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .reading-group:not([open]) .reading-group-list,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .reading-group:not([open]) :is(.vote-flow,.pair-route-list,.post-vote-stages,.session-nav-fold-body){
  display:none!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .reading-group-list{
  display:flex!important;
  gap:8px!important;
  padding:0!important;
  margin:0!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .reading-group-list button,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #chapterTabs button{
  min-height:38px!important;
  padding:7px 10px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#aebbc9!important;
  box-shadow:none!important;
  white-space:nowrap!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .reading-group-list button.active,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #chapterTabs button.active{
  color:#f0d58c!important;
  box-shadow:inset 0 -2px 0 #d9bb72!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .reading-group-list button small,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #chapterTabs button small{
  display:none!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #chapterTabs button span{
  width:auto!important;
  height:auto!important;
  border:0!important;
  background:transparent!important;
  color:inherit!important
 }

 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader :is(#readingPanel,.workflow-panel),
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader :is(.chapter-panel,.workflow-panel){
  grid-column:1!important;
  grid-row:2!important;
  width:100%!important;
  max-width:none!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  margin:0!important;
  overflow:visible!important
 }
 body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader .chapter-panel{
  background:rgba(7,19,33,.95)!important;
  color:#f7f4ea!important;
  border-color:rgba(217,187,114,.35)!important
 }
 body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader .chapter-heading,
 body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader .chapter-heading h3,
 body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader :is(.text-panel,.story-prose,.story-list,li,p){
  color:#f7f4ea!important
 }
 body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader .chapter-heading p{color:#d9bb72!important}
 body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader .story-marker:not(.scene-marker){
  background:linear-gradient(90deg,rgba(39,82,124,.42),rgba(12,29,50,.12))!important;
  color:#f7f4ea!important
 }
}

/* Final two-pane GM desk: keep right references inside the main grid. */
@media(min-width:1100px){
 body.gm-mode.gm-live-desk[data-view="gm-resources"] #commonReader{
  position:static!important;
  inset:auto!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  width:100%!important;
  height:auto!important;
  min-height:45dvh!important;
  padding:24px!important;
  margin:0!important;
  overflow:visible!important;
  background:#071221d9!important;
  z-index:auto!important;
 }
 body.gm-mode.gm-live-desk[data-view="gm-resources"] #commonReader>.reading-workspace{
  display:block!important;
  height:auto!important;
  max-width:min(1120px,100%)!important;
  margin-inline:auto!important;
 }
 body.gm-mode.gm-live-desk[data-view="gm-resources"] #commonReader #readingTabs,
 body.gm-mode.gm-live-desk[data-view="gm-resources"] #commonReader #readingPanel{
  position:static!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
 }
}

/* Lean GM desk: top mode buttons, no TOC/reference clutter, GM notes beside readings. */
#gmResources .gm-docs-index>h2,
#gmResources .gm-docs-jump,
#gmResources .gm-docs-toc,
#gmResources .gm-docs-reference,
#gmResources .gm-docs-links{display:none!important}
#gmResources.gm-docs>header .gm-guide-tabs{display:flex!important;gap:8px;margin:12px 0 0}
#gmResources.gm-docs>header .gm-guide-tabs button{min-height:42px;padding:8px 16px;border-radius:6px}
body.gm-mode[data-view="gm-resources"] #gmResources.gm-docs>header{display:block!important;margin:0 auto 12px;width:min(1360px,100%);border:0;padding:0}
body.gm-mode[data-view="gm-resources"] #gmResources.gm-docs>header h1,
body.gm-mode[data-view="gm-resources"] #gmResources.gm-docs>header p{display:none}
@media(min-width:1100px){
 body.gm-mode[data-view="gm-resources"] #gmResources.gm-docs{
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr);
 }
 body.gm-mode[data-view="gm-resources"] #gmResources .gm-docs-layout{
  grid-template-columns:minmax(280px,420px) minmax(0,900px)!important;
  width:min(1360px,100%);
  margin:0 auto;
 }
 body.gm-mode[data-view="gm-resources"] #gmResources .gm-docs-index{
  display:none!important;
 }
 body.gm-mode[data-view="gm-resources"] #gmResources .gm-docs-content{
  grid-column:1!important;
 }
 body.gm-mode[data-view="gm-resources"] #commonReader{
  display:block!important;
  position:fixed!important;
  top:126px!important;
  right:calc((100vw - min(1360px,100vw))/2 + 24px)!important;
  bottom:18px!important;
  width:min(900px,calc(100vw - 520px))!important;
  padding:0!important;
  margin:0!important;
  overflow:hidden!important;
  background:transparent!important;
  z-index:3;
 }
 body.gm-mode[data-view="gm-resources"] #commonReader>.reading-workspace{
  display:grid!important;
  grid-template-columns:220px minmax(0,1fr)!important;
  gap:14px!important;
  height:100%!important;
 }
body.gm-mode[data-view="gm-resources"] #commonReader :is(.section-label,h2,.reader-notice,.reader-intro,.gm-reading-access,.session-policy-fold,.session-jumps){display:none!important}
 body.gm-mode[data-view="gm-resources"] #commonReader #readingTabs,
 body.gm-mode[data-view="gm-resources"] #commonReader #readingPanel{
  position:relative!important;
  grid-row:1!important;
  height:100%!important;
  max-height:100%!important;
  overflow-y:auto!important;
 }
 body.gm-mode[data-view="gm-resources"] #commonReader #readingTabs{grid-column:1!important}
 body.gm-mode[data-view="gm-resources"] #commonReader #readingPanel{grid-column:2!important}
 body.gm-mode[data-view="gm-resources"] #commonReader .reader-tools{display:none!important}
 body.gm-mode[data-view="gm-resources"] #gmResources #gmLiveMaterials :is(.gm-timing-guide,.gm-live-quick),
 body.gm-mode[data-view="gm-resources"] #gmResources #gmConsole .gm-guide-grid,
 body.gm-mode[data-view="gm-resources"] #gmResources .gm-docs-content details:not(:first-of-type){
  display:none!important;
 }
 body.gm-mode[data-view="gm-resources"] #gmResources .gm-guide-tabs button{
  font-size:.95rem!important;
 }
}

/* Midnight Archive final reader surface.
   Keep the long secret handout readable while the surrounding desk stays dark. */
body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader .chapter-panel,
body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader .workflow-panel{
 background:linear-gradient(180deg,rgba(253,250,242,.98),rgba(243,237,224,.98))!important;
 color:#1d2430!important;
 border-color:rgba(60,72,88,.22)!important;
 box-shadow:0 22px 70px rgba(0,0,0,.24)!important
}
body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader .chapter-heading{
 background:transparent!important;
 color:#1d2430!important;
 border-bottom-color:rgba(94,75,45,.24)!important
}
body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader .chapter-heading :is(h3,p),
body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader :is(.text-panel,.story-prose,.story-list,li,p){
 color:#1d2430!important
}
body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader .chapter-heading p{color:#8b6f31!important}
body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader .text-panel{
 max-width:42rem!important;
 font-size:clamp(1rem,.96rem + .2vw,1.12rem)!important;
 line-height:2!important;
 letter-spacing:.02em!important
}
body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader .story-prose{max-width:34em!important}
body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader .story-marker:not(.scene-marker){
 background:linear-gradient(90deg,rgba(211,228,241,.72),rgba(243,237,224,.2))!important;
 border-left-color:#7aa9cf!important;
 color:#1d2430!important
}

/* Final override: top controls, true two panes, no side control cards. */
@media(min-width:1100px){
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"],[data-view="common"]){
  height:100dvh!important;overflow:hidden!important;padding-bottom:0!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"],[data-view="common"]) main{
  display:grid!important;grid-template-columns:minmax(360px,34vw) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;
  height:calc(100dvh - var(--play-header-height,72px))!important;min-height:0!important;overflow:hidden!important;background:rgba(6,15,27,.72)!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader,
 body:is(:not(.gm-mode),.gm-player-view)[data-view="common"] #commonReader,
 body:is(:not(.gm-mode),.gm-player-view)[data-view="common"] #commonInfoPage{
  position:relative!important;inset:auto!important;display:block!important;width:100%!important;height:100%!important;min-height:0!important;
  margin:0!important;padding:16px clamp(16px,2vw,28px) 28px!important;overflow-y:auto!important;overscroll-behavior:contain!important;
  background:rgba(7,18,33,.76)!important;scrollbar-width:thin!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader,
 body:is(:not(.gm-mode),.gm-player-view)[data-view="common"] #commonReader{grid-column:1!important;grid-row:1!important;border-right:1px solid rgba(95,129,158,.58)!important;border-left:0!important}
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader,
 body:is(:not(.gm-mode),.gm-player-view)[data-view="common"] #commonInfoPage{grid-column:2!important;grid-row:1!important;border-left:1px solid rgba(95,129,158,.42)!important;border-right:0!important}
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader.hidden,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader.hidden{display:block!important}
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readerSplitHandle{display:none!important}
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) :is(#commonReader,#reader) .reading-workspace{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr)!important;
  gap:12px!important;width:100%!important;max-width:none!important;min-height:100%!important;margin:0!important;overflow:visible!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader>.pane-tabs,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader #readingTabs,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader #chapterTabs{
  position:sticky!important;top:0!important;z-index:50!important;display:flex!important;flex-direction:row!important;align-items:center!important;
  gap:14px!important;min-height:42px!important;width:100%!important;max-width:none!important;max-height:none!important;margin:0 0 10px!important;
  padding:0 0 8px!important;overflow-x:auto!important;overflow-y:hidden!important;border:0!important;border-bottom:1px solid rgba(126,151,174,.34)!important;
  border-radius:0!important;background:rgba(7,18,33,.96)!important;box-shadow:none!important;backdrop-filter:blur(10px)!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader .reading-workspace>.pane-tabs{display:none!important}
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader #chapterTabs{top:48px!important}
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) :is(#readingTabs,#chapterTabs)>*,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) :is(#readingTabs,#chapterTabs) button{
  flex:0 0 auto!important;width:auto!important;min-width:max-content!important;max-width:none!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .reading-group{display:block!important;border:0!important;border-radius:0!important;background:transparent!important;margin:0!important;overflow:visible!important}
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .reading-group>summary{
  display:flex!important;min-height:42px!important;padding:8px 2px!important;border:0!important;color:#d8c06f!important;white-space:nowrap!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .reading-group>summary small,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .reading-group>summary:after{display:none!important}
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .reading-group:not([open]) .reading-group-list,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .reading-group:not([open]) :is(.vote-flow,.pair-route-list,.post-vote-stages,.session-nav-fold-body){display:none!important}
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .reading-group-list{display:flex!important;gap:8px!important;padding:0!important;margin:0!important}
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .reading-group-list button,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #chapterTabs button{
  min-height:38px!important;padding:7px 10px!important;border:0!important;border-radius:0!important;background:transparent!important;color:#aebbc9!important;box-shadow:none!important;white-space:nowrap!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .reading-group-list button.active,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #chapterTabs button.active{color:#f0d58c!important;box-shadow:inset 0 -2px 0 #d9bb72!important}
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs .reading-group-list button small,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #chapterTabs button small{display:none!important}
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #chapterTabs button span{width:auto!important;height:auto!important;border:0!important;background:transparent!important;color:inherit!important}
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader :is(#readingPanel,.workflow-panel),
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader :is(.chapter-panel,.workflow-panel){
  grid-column:1!important;grid-row:2!important;width:100%!important;max-width:none!important;min-height:0!important;height:auto!important;max-height:none!important;margin:0!important;overflow:visible!important
 }
 body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader .chapter-panel{background:rgba(7,19,33,.95)!important;color:#f7f4ea!important;border-color:rgba(217,187,114,.35)!important}
 body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader .chapter-heading,
 body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader .chapter-heading h3,
 body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader :is(.text-panel,.story-prose,.story-list,li,p){color:#f7f4ea!important}
 body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader .chapter-heading p{color:#d9bb72!important}
 body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader .story-marker:not(.scene-marker){background:linear-gradient(90deg,rgba(39,82,124,.42),rgba(12,29,50,.12))!important;color:#f7f4ea!important}
}

@media(min-width:1100px){
 body:is([data-view="readings"],[data-view="handout"],[data-view="common"]).gm-live-desk,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"],[data-view="common"]){
  height:100dvh!important;
  overflow:hidden!important;
  padding-bottom:0!important
 }
 body:is([data-view="readings"],[data-view="handout"],[data-view="common"]) main{
  height:calc(100dvh - var(--play-header-height,72px))!important;
  min-height:0!important;
  overflow:hidden!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader,
 body:is(:not(.gm-mode),.gm-player-view)[data-view="common"] #commonReader,
 body:is(:not(.gm-mode),.gm-player-view)[data-view="common"] #commonInfoPage,
 body.gm-mode.gm-live-desk #gmResources,
 body.gm-mode.gm-live-desk #commonReader,
 body.gm-mode.gm-live-desk #reader,
 body.gm-mode.gm-live-desk #commonInfoPage{
  height:calc(100dvh - var(--play-header-height,72px))!important;
  min-height:0!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  scrollbar-width:thin!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader>.pane-tabs,
 body.gm-mode.gm-live-desk #commonReader .reading-workspace>.pane-tabs{
  position:sticky!important;
  top:0!important;
  z-index:45!important;
  padding-top:2px!important;
  background:#071221f2!important;
  backdrop-filter:blur(10px)!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader #chapterTabs{
  position:sticky!important;
  top:56px!important;
  z-index:40!important;
  background:#071221f2!important;
  backdrop-filter:blur(10px)!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader #readingTabs,
 body.gm-mode.gm-live-desk #commonReader #readingTabs{
  position:sticky!important;
  top:0!important;
  z-index:35!important;
  background:#071221f2!important
 }
 body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader.reader .reading-workspace .chapter-panel{
  background:linear-gradient(180deg,rgba(253,250,242,.98),rgba(243,237,224,.98))!important;
  color:#1d2430!important
 }
}

@media(min-width:1100px){
 body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader.reader .reading-workspace .chapter-panel{
  background:rgba(7,19,33,.95)!important;
  color:#f7f4ea!important;
  border-color:rgba(217,187,114,.35)!important
 }
 body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader .chapter-heading,
 body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader .chapter-heading h3,
 body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader :is(.text-panel,.story-prose,.story-list,li,p){
  color:#f7f4ea!important
 }
 body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader .chapter-heading p{color:#d9bb72!important}
}

/* Reading-first override: no side buttons inside the left/right panes. */
@media(min-width:1100px){
 body[data-view="handout"] #reader #chapterTabs,
 body[data-view="handout"] #reader .pane-tabs,
 body[data-view="handout"] #reader .reader-tools,
 body[data-view="readings"] #commonReader #readingTabs,
 body[data-view="readings"] #commonReader .pane-tabs,
 body[data-view="readings"] #commonReader .reader-tools,
 body[data-view="readings"] #readerSplitHandle,
 body[data-view="handout"] #readerSplitHandle{
  display:none!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"],[data-view="common"]) main{
  grid-template-columns:minmax(0,1fr)!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readerSplitHandle,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) :is(#commonReader,#reader) .pane-tabs,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) :is(#commonReader,#reader) .reader-tools,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readingTabs,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #chapterTabs{
  display:none!important
 }
 body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #commonReader,
 body:is(:not(.gm-mode),.gm-player-view)[data-view="readings"] #reader{
  display:none!important
 }
 body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader,
 body:is(:not(.gm-mode),.gm-player-view)[data-view="readings"] #commonReader,
 body:is(:not(.gm-mode),.gm-player-view)[data-view="common"] #commonInfoPage{
  grid-column:1!important;
  width:100%!important;
  max-width:none!important;
  border-left:0!important;
  border-right:0!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) :is(#commonReader,#reader) .reading-workspace{
  display:block!important;
  min-height:0!important;
  max-width:min(980px,calc(100vw - 96px))!important;
  margin-inline:auto!important
 }
 body:is(:not(.gm-mode),.gm-player-view)[data-view="readings"] #commonReader :is(#readingPanel,.workflow-panel),
 body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader :is(.chapter-panel,.workflow-panel){
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  overflow:visible!important
 }
 body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader>.character-header,
 body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader>.chapter-progress{
  width:min(980px,calc(100vw - 96px))!important;
  max-width:none!important;
  margin-inline:auto!important
 }
 body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader .text-panel{
  max-width:42rem!important;
  margin-inline:auto!important
 }
}

@media(min-width:1100px){
 body:is(:not(.gm-mode),.gm-player-view)[data-view="handout"] #reader.reader .reading-workspace.ho-workspace > #chapterTabs.chapter-tabs,
 body:is(:not(.gm-mode),.gm-player-view)[data-view="readings"] #commonReader.common-reader .reading-workspace > #readingTabs.reading-tabs{
  display:none!important
 }
}

/* Keep the divider, remove only the side buttons. */
@media(min-width:1100px){
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) main{
  display:grid!important;
  grid-template-columns:minmax(300px,var(--reader-split-left,42%)) 12px minmax(0,1fr)!important;
  gap:0!important;
  align-items:stretch!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader{
  grid-column:1!important;
  border-right:1px solid rgba(95,129,158,.42)!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader{
  grid-column:3!important;
  border-left:1px solid rgba(95,129,158,.34)!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readerSplitHandle.reader-split-handle{
  display:block!important;
  grid-column:2!important;
  grid-row:1!important;
  align-self:stretch!important;
  width:12px!important;
  min-height:calc(100dvh - var(--play-header-height,72px))!important;
  cursor:col-resize!important;
  position:sticky!important;
  top:var(--play-header-height,72px)!important;
  z-index:60!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readerSplitHandle.reader-split-handle::before{
  content:""!important;
  display:block!important;
  width:2px!important;
  height:100%!important;
  margin-inline:auto!important;
  background:rgba(112,147,178,.58)!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readerSplitHandle.reader-split-handle::after{
  content:"↔"!important;
  position:sticky!important;
  top:50%!important;
  display:grid!important;
  place-items:center!important;
  width:28px!important;
  height:56px!important;
  margin:-56px 0 0 -8px!important;
  border:1px solid rgba(141,177,207,.72)!important;
  border-radius:999px!important;
  background:#10263a!important;
  color:#f0d58c!important;
  font-size:.9rem!important
 }
body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader.common-reader .reading-workspace > #readingTabs.reading-tabs,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader.reader .reading-workspace.ho-workspace > #chapterTabs.chapter-tabs{
  display:none!important
 }
}

/* Last word for the 2-pane session reader. Keep compact tabs and the resize grip visible. */
@media(min-width:1100px){
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) main{
  display:grid!important;
  grid-template-columns:minmax(320px,var(--reader-split-left,38%)) 12px minmax(0,1fr)!important;
  height:calc(100dvh - var(--play-header-height,72px))!important;
  overflow:hidden!important;
  gap:0!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader{
  display:block!important;
  height:calc(100dvh - var(--play-header-height,72px))!important;
  overflow-y:auto!important;
  min-width:0!important;
  width:100%!important;
  max-width:none!important;
  padding:20px clamp(16px,1.8vw,28px) 48px!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader{grid-column:1!important;grid-row:1!important}
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader{grid-column:3!important;grid-row:1!important}
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readerSplitHandle.reader-split-handle{
  display:block!important;
  grid-column:2!important;
  grid-row:1!important;
  align-self:stretch!important;
  width:12px!important;
  min-height:calc(100dvh - var(--play-header-height,72px))!important;
  position:sticky!important;
  top:var(--play-header-height,72px)!important;
  z-index:90!important;
  cursor:col-resize!important;
  background:rgba(11,28,44,.64)!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readerSplitHandle.reader-split-handle::before{
  content:""!important;display:block!important;width:2px!important;height:100%!important;margin-inline:auto!important;background:rgba(112,147,178,.58)!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readerSplitHandle.reader-split-handle::after{
  content:"↔"!important;position:sticky!important;top:50%!important;display:grid!important;place-items:center!important;
  width:28px!important;height:56px!important;margin:-56px 0 0 -8px!important;border:1px solid rgba(141,177,207,.72)!important;
  border-radius:999px!important;background:#10263a!important;color:#f0d58c!important;font-size:.9rem!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader.common-reader .reading-workspace > #readingTabs.reading-tabs,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader.reader .reading-workspace.ho-workspace > #chapterTabs.chapter-tabs,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader>.pane-tabs{
  display:flex!important;
  position:sticky!important;
  top:0!important;
  z-index:70!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:18px!important;
  width:100%!important;
  min-height:40px!important;
  max-height:none!important;
  margin:0 0 12px!important;
  padding:0 0 7px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  border:0!important;
  border-bottom:1px solid rgba(126,151,174,.32)!important;
  border-radius:0!important;
  background:#071221f2!important;
  box-shadow:none!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader.reader .reading-workspace.ho-workspace > #chapterTabs.chapter-tabs{top:47px!important}
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) .reader-tools,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader .reading-workspace>.pane-tabs{display:none!important}
}

/* Final readability pass: remove duplicated top nav and keep prose bright. */
@media(min-width:1100px){
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"],[data-view="common"]) .quick-nav{
  display:none!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"],[data-view="common"]){
  --play-header-height:0px!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"],[data-view="common"]) main{
  height:100dvh!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader,
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader,
 body:is(:not(.gm-mode),.gm-player-view)[data-view="common"] #commonReader,
 body:is(:not(.gm-mode),.gm-player-view)[data-view="common"] #commonInfoPage{
  height:100dvh!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #readerSplitHandle.reader-split-handle{
  min-height:100dvh!important;
  top:0!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader .reading-workspace>.pane-tabs{
  display:flex!important;
  position:sticky!important;
  top:0!important;
  z-index:90!important;
  gap:18px!important;
  margin:0 0 12px!important;
  padding:0 0 7px!important;
  border-bottom:1px solid rgba(126,151,174,.32)!important;
  background:#071221f2!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader .reading-workspace>.pane-tabs [data-pane-view="handout"]{
  display:none!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #commonReader #readingTabs{
  top:47px!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader>.pane-tabs{
  display:none!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader .chapter-panel{
  background:rgba(7,18,33,.94)!important;
  color:#f7f4ea!important;
  border-color:rgba(126,151,174,.28)!important;
  box-shadow:none!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader .chapter-heading{
  background:transparent!important;
  border-bottom-color:rgba(126,151,174,.24)!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader :is(.chapter-heading,.chapter-heading h3,.text-panel,.story-prose,.story-list,li,p){
  color:#f7f4ea!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader .chapter-heading p{
  color:#d9bb72!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader .story-prose{
  color:#f4f1e8!important;
  text-shadow:none!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader .story-marker:not(.scene-marker){
  background:linear-gradient(90deg,rgba(38,86,128,.68),rgba(14,34,55,.28))!important;
  border-left-color:#8dc5ef!important;
  color:#fff!important
 }
 body:is(:not(.gm-mode),.gm-player-view):is([data-view="readings"],[data-view="handout"]) #reader .story-marker:not(.scene-marker) :is(h4,p){
  color:#fff!important
 }
}
