/* Paper holds deductions; navy holds shared sky and player state. Brass identifies an active choice. */
:root{--study-paper:#f5f0e3;--study-ink:#233c43;--study-muted:#526566;--study-rule:#9caa9f;--study-navy:#173342;--study-gold:#b28230}
body.interface-study{background:#d9d7cb;color:var(--study-ink);background-image:repeating-linear-gradient(103deg,#ffffff0b 0 1px,transparent 1px 5px);font-family:'Segoe UI',Arial,sans-serif}
.interface-study .cosmos,.interface-study .space-scene{display:none}
.study-mobile-status{display:none}
.interface-study .notebook button,.interface-study .notebook textarea,.interface-study .notebook h2,.interface-study .study-evidence .clue-button{scroll-margin-top:16px}
.study-label{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:5px 18px;background:#e5dbc3;color:#493b22;font-size:.75rem;border-bottom:1px solid #9c8f72}
.study-label>span:first-child{font-weight:750}.study-label button{font-size:.75rem;min-height:32px;padding:3px 10px;background:#f8f3e7;border-color:#746a55;color:#493b22;box-shadow:none}
body.interface-study .bar{padding:8px 18px;background:var(--study-navy);color:#fff6de;border:0;box-shadow:0 2px 5px #162b2c30}
.interface-study .brand{font-size:1.25rem;max-width:none}.interface-study .tools button{min-height:36px;font-size:.8rem;padding:5px 10px;border-radius:3px}
.interface-study .tools .flag{padding:4px;min-width:40px}.interface-study .flag img{width:27px;height:20px}
.interface-study button,.interface-study input,.interface-study select,.interface-study textarea{border-radius:3px;box-shadow:none}
.interface-study .game{max-width:1960px;padding:14px 18px 8px}.interface-study .turnline{background:#faf7ee;border:1px solid #a3aaa0;border-top:3px solid var(--study-gold);padding:10px 14px;margin:0 0 12px;box-shadow:0 2px 5px #1b2c2310}
.interface-study .turnline h2{font:600 1.18rem 'Segoe UI',sans-serif;color:var(--study-ink)}
.interface-study .turnline button{min-height:36px;padding:5px 12px;background:#e8e0ce;color:#293e42;border-color:#74817a}
.interface-study .turnline small{color:var(--study-muted);font-variant-numeric:tabular-nums}
.interface-study .study-layout{display:grid;grid-template-columns:minmax(270px,.84fr) minmax(615px,1.16fr) 208px;gap:14px 18px;align-items:start}
.interface-study .action-desk{grid-column:1/3;grid-row:1;background:#f9f6ec;border:1px solid #8d9a90;border-radius:4px;padding:10px 12px;display:grid;grid-template-columns:1fr;gap:8px;color:var(--study-ink)}
.interface-study .action-desk>h2{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.interface-study .action-desk>.muted{font-size:.76rem;color:var(--study-muted);margin:0}
.interface-study .action-tabs{display:flex;gap:8px}.interface-study .action-tabs button{flex:1;min-height:42px;background:#e7e6da;color:#253f44;border:1px solid #7e8e83;font-weight:650;font-size:.87rem}
.interface-study .action-tabs button.selected{background:var(--study-navy);color:#fff6de;border-color:var(--study-navy);box-shadow:inset 0 -3px #d3ad65}
.interface-study .action-fields{display:grid;grid-template-columns:minmax(160px,1fr) minmax(180px,1fr) 110px minmax(170px,.8fr);gap:12px;align-items:end}
.interface-study .field{font-size:.78rem;gap:3px;color:var(--study-ink)}.interface-study .action-desk select{color:var(--study-ink);background:#fffdf6;border:1px solid #7b8b82;padding:7px 9px;min-height:42px;font-size:.9rem}
.interface-study .cost{padding:5px 9px;border:0;background:#e9e2ce;min-height:42px;gap:14px;font-size:.78rem}.interface-study .cost strong{color:#4b3d22;font-size:1.15rem}
.interface-study .action-desk button.confirm{min-height:43px;background:#2d6250;color:#fff;border-color:#214e3e;font-weight:650;padding:7px 12px;font-size:.84rem}
.interface-study .private-result{display:none}.interface-study .action-fields>p{font-size:.82rem;color:#334f4d}
.interface-study .topic-list{grid-column:1/3;display:flex;flex-wrap:wrap;gap:6px}.interface-study .topic-list button{font-size:.8rem;min-height:42px;background:#e7e4d5;color:#233f44;border-color:#7e8e83}
.interface-study .topic-list button.selected{background:#173342;color:#fff}.interface-study .action-fields.locate-checklist{grid-template-columns:repeat(3,minmax(0,1fr)) 105px minmax(140px,.7fr);align-items:end}
.interface-study .locate-checklist h3{font:600 .95rem 'Segoe UI',sans-serif;color:#384d46;grid-column:1/-1;margin:0}
.interface-study .locate-checklist .locate-help{grid-column:1/-1;background:#e9dfc8;color:#493b22;border:1px solid #a3926b;margin:0;padding:6px 9px;font-size:.8rem}
.interface-study .locate-checklist .field{background:transparent;border:0;padding:0}.interface-study .locate-checklist .claim-preview{grid-column:1/4;grid-row:4;font-size:.78rem;color:#3c5549;padding:0;border:0}
.interface-study .locate-checklist>.muted{grid-column:1/4;grid-row:5;font-size:.75rem;margin:0;color:var(--study-muted)}.interface-study .locate-checklist .cost{grid-column:4;grid-row:3}.interface-study .locate-checklist .confirm{grid-column:5;grid-row:3}
.interface-study .sky-area{grid-column:1;grid-row:2;display:block;min-width:0;align-self:center;background:#142b37;border:1px solid #516670;border-radius:4px;padding:10px 8px 8px;box-shadow:0 3px 9px #1c2e3726;color:#f7eddb}
.interface-study .board-frame{max-width:600px;--board-view-x:0deg;--board-view-y:0deg;margin:0 auto}
.interface-study .board-art{filter:saturate(.8)}.interface-study .board-frame:before,.interface-study .board-relief,.interface-study .planet-rim,.interface-study .board-satellite-track{display:none}
.interface-study .board-frame{filter:none;box-shadow:none}.interface-study .board-legend{gap:4px;margin:6px 0 3px;justify-content:center}.interface-study .board-legend button{font-size:.68rem;min-height:36px;padding:4px 6px;border-color:#819397;background:#203c49;color:#fff1d6}
.interface-study .board-legend .symbol{width:19px;height:19px;font-size:.72rem}.interface-study .clue-readout{gap:6px;justify-content:center;margin:3px 0 0}.interface-study .clue-readout p{color:#f0e5cf;font-size:.72rem;max-width:100%}.interface-study .clue-readout button{font-size:.7rem;min-height:32px;padding:3px 6px}
.interface-study .game .notebook{grid-column:2;grid-row:2;margin:0;padding:14px;background:var(--study-paper);border:1px solid #9caa9f;border-top:5px solid #6c8975;border-radius:4px;box-shadow:0 3px 8px #1f352321;min-width:0;transform:none}
.interface-study .notebook-heading h2{font:1.5rem Georgia,serif;color:#233e43}.interface-study .notebook-heading small{font-size:.7rem;color:#3f5c49}
.interface-study .mark-toolbar{gap:5px;margin:10px 0 4px}.interface-study .mark-toolbar button{font-size:.75rem;min-height:38px;padding:5px 9px;background:#fffdf7;color:#284248;border-color:#7c8c7f;flex:1}.interface-study .mark-toolbar button[aria-pressed=true]{background:#294e56;color:#fff7e6;border-color:#294e56;box-shadow:inset 0 -3px #d5b372}.interface-study .mark-toolbar b{font-size:.95rem}
.interface-study .mark-instructions{font-size:.73rem;margin:6px 0 10px;color:var(--study-muted)}.interface-study .notebook h3{font:600 .88rem 'Segoe UI',sans-serif;color:#28454b;margin:0 0 8px}
.interface-study .deduction-layout,.interface-study .deduction-main{display:block}.interface-study .study-matrix-scroll{display:flex;overflow-x:auto;max-width:100%;scrollbar-gutter:auto;border:1px solid #819385;background:#fffdf6;padding:0 1px 1px;overscroll-behavior-x:contain}
.interface-study .study-matrix-axes{display:flex;flex-direction:column;flex:0 0 92px;position:sticky;left:0;background:#e7e8da;z-index:1;border-right:1px solid #819385}
.interface-study .study-axis-title{height:30px;font-size:.67rem;font-weight:650;display:flex;align-items:center;padding-left:7px}.interface-study .study-axis{height:44px;display:flex;align-items:center;gap:6px;padding:0 6px;border-top:1px solid #b6c0b1;font-size:.68rem;line-height:1.1}
.interface-study .study-object{display:grid;place-items:center;width:21px;height:21px;flex-shrink:0;border:1px solid #61766a;border-radius:50%;font:bold .8rem Georgia,serif}.interface-study .study-axis-name{overflow-wrap:anywhere}
.interface-study .notebook .note-grid{display:grid;grid-template-columns:repeat(var(--sectors),44px);gap:0;min-width:max-content;flex:1}.interface-study .notebook .sector-note{border:0;padding:0;border-radius:0;min-width:0;background:transparent}
.interface-study .sector-note header{display:flex;justify-content:center;align-items:center;height:30px;background:#e7e8da;border-left:1px solid #b6c0b1;font-size:.75rem;color:#304b46}
.interface-study .notebook .marks{display:grid;grid-template-columns:1fr;gap:0;margin:0}.interface-study .marks button{width:44px;height:44px;min-height:44px;min-width:44px;border:0;border-left:1px solid #b6c0b1;border-top:1px solid #b6c0b1;border-radius:0;background:#fffdf6;color:#516359;gap:0;position:relative;font-size:.78rem}
.interface-study .marks button>span{font-size:.8rem;font-weight:650}.interface-study .marks button b{position:absolute;right:3px;top:0;font-size:.85rem;line-height:1.2}.interface-study .marks button.maybe{background:#ead8a8;border:2px dashed #8b6829;color:#4e3b14}.interface-study .marks button.certain{background:#37644e;color:white;border:2px solid #244533}.interface-study .marks button.certain b{font-size:0;inset:5px;border:1px solid currentColor;border-radius:50%}.interface-study .marks button.excluded{background:#e5d8cd;color:#793f28}
.interface-study .marks button:hover:not(:disabled){background:#e1e8d7}.interface-study .marks button.clue-matched{outline-offset:-3px}.interface-study .notebook button:focus-visible,.interface-study .study-matrix-scroll:focus-visible{outline:3px solid #315f78;outline-offset:1px;z-index:2}
.interface-study .marks button.certain:hover{background:#2d5541}.interface-study .marks button.maybe:hover{background:#e4c98c}.interface-study .marks button.excluded:hover{background:#dac8b8}.interface-study .mark-toolbar [data-do="undoMark"]{flex:0 0 auto;min-height:44px}.interface-study .mark-key{font-size:.75rem}
.interface-study .personal-notes{grid-template-columns:1fr auto;gap:5px;margin:12px 0 0}.interface-study .personal-notes h3{font-size:.8rem;margin:0}.interface-study .personal-notes textarea{min-height:42px;height:42px;padding:6px 8px;font-size:.75rem;border-color:#80927e;background:#fffdf6;color:#29434a}.interface-study .personal-notes button{font-size:.75rem;min-height:42px;padding:4px 9px}
.interface-study .study-evidence{grid-column:1/3;grid-row:3;display:grid;grid-template-columns:1fr 1.15fr 1fr;gap:12px;min-width:0;align-items:start}
.interface-study .study-evidence-title{font:1.2rem Georgia,serif;grid-column:1/-1;margin:0 0 -4px;color:#2a4141}
.interface-study .evidence-panel{background:#faf6eb;border:1px solid #9aa799;border-radius:3px;box-shadow:0 2px 4px #1d342214;padding:10px 12px;color:#263f43;min-width:0}
.interface-study .study-evidence h3{font:600 .86rem 'Segoe UI',sans-serif;margin:0 0 6px;color:#2e4b48}.interface-study .study-evidence h3 small{font-size:.72rem;color:#526964}
.interface-study .study-evidence .clue-help{font-size:.72rem;color:#526566;margin:0 0 6px}.interface-study .study-evidence ul,.interface-study .study-evidence ol{list-style:none;padding:0;margin:0;display:grid;gap:6px;max-height:230px;overflow:auto;scrollbar-gutter:stable;font-size:.78rem}
.interface-study .study-evidence li{padding:0;border:0;margin:0}.interface-study .study-evidence .clue-button{color:#2e4748;background:#fffdf6;border:1px solid #96a48f;font-size:.76rem;line-height:1.55;padding:6px 8px;min-height:44px;width:100%;text-align:left;border-radius:2px}
.interface-study .study-evidence .clue-button[aria-pressed=true]{background:#ead8a8;border:2px solid #85652b}.interface-study .study-evidence .symbol{width:20px;height:20px;font-size:.76rem}.interface-study .research-evidence .clue-list{grid-template-columns:1fr}.interface-study .research-evidence li{gap:6px}.interface-study .evidence-button strong{color:#264e3e}
.interface-study .study-rail{grid-column:3;grid-row:1/4;display:grid;gap:12px;align-self:stretch;align-content:start;min-width:0}.interface-study .player-strip{display:grid;gap:7px;margin:0}
.interface-study .player-chip{width:100%;max-width:none;background:#f7f2e5;color:#2b4346;border:1px solid #929f93;border-radius:3px;border-left:5px solid #8e9c8f;padding:10px 8px;gap:8px}
.interface-study .player-chip.active{background:#ebdfbf;border-color:#907948;border-left-color:#9f7629;box-shadow:0 2px 5px #5d4b1d18}.interface-study .player-chip .pawn{height:34px;width:34px}.interface-study .player-chip .name{max-width:none;font-size:.82rem;font-weight:650;min-width:0}.interface-study .player-chip small{font-size:.7rem;color:#4e625c;font-weight:400}
.interface-study .table-compass{position:static;background:#f7f2e5;border:1px solid #929f93;margin:0;box-shadow:none;border-radius:3px;color:#294449}.interface-study .opponent-action{display:grid;gap:5px;padding:10px;border-bottom:1px solid #a6af9d;background:#e0e8dc;font-size:.76rem;color:#2b4641}
.interface-study .opponent-action>strong{color:#304e42;font-size:.76rem}.interface-study .opponent-action>small{font-size:.68rem;color:#4b635b;line-height:1.4}.interface-study .reference-panels{display:grid;grid-template-columns:1fr;padding:10px;gap:12px;max-height:none;overflow:visible}.interface-study .reference-panels h3{font:600 .84rem 'Segoe UI',sans-serif;color:#2a4743;margin-bottom:7px}.interface-study .reference-panels ul{font-size:.72rem;color:#354d49;line-height:1.5;display:grid;grid-template-columns:1fr;gap:5px}.interface-study .reference-full{display:inline}.interface-study .reference-compact{display:none}
.interface-study .history{padding:10px;margin:0;background:#f7f2e5;border:1px solid #929f93;border-radius:3px;color:#2f4b48}.interface-study .history h3{font-size:.85rem;margin:0 0 5px}.interface-study .game .history>p{font-size:.69rem;color:#52635d;line-height:1.5}.interface-study .history ol{font-size:.72rem;margin:7px 0 0;max-height:160px;padding-left:15px}
.interface-study .footer-row{padding:12px 0 4px;font-size:.75rem}.interface-study .footer-row button{font-size:.75rem;min-height:36px;background:#e8e1cf;color:#29434a;border-color:#7f8d80}.interface-study .footer-row a{color:#3f5e67}.interface-study .fineprint{font-size:.66rem;color:#4c625e;margin:10px auto;padding:0 14px}
.interface-study .mini-sky{background:#173342;border-color:#9b885e}.interface-study .home,.interface-study .lobby{color:#263f43}.interface-study .entry{background:#f8f2e4;border:1px solid #9eaa9a;padding:24px;box-shadow:0 5px 12px #18342c26;border-radius:4px;gap:16px}.interface-study .entry h1{font-size:clamp(2.4rem,5vw,4rem);color:#193c46}.interface-study .entry h1 span{color:#72552d}.interface-study .entry h2{font-size:1.2rem;color:#3e5d55}.interface-study .entry .muted{color:#51645d}.interface-study .home{padding-top:28px}.interface-study .home .welcome-board{filter:saturate(.8)}
.interface-study .lobby-main{background:#f9f4e7;padding:22px;border:1px solid #98a694;border-radius:4px}.interface-study .lobby-main .muted,.interface-study .seat-text small{color:#52665f}.interface-study .seats li{border-color:#98a694}.interface-study .lobby-main h1{color:#2a4a49}.interface-study .entry .primary,.interface-study .lobby-main .primary{background:#2d6250;border-color:#214c3c;color:white}
.interface-study .loading{color:#263f43}.interface-study .loading p{margin-bottom:14px}
.interface-study .results{padding:2px 0;grid-column:1/-1}.interface-study .results h2{color:#2a4c47}.interface-study .results .revealing{color:#72521e}.interface-study .score-row{color:#2c4946;border-color:#839783}.interface-study .score-row.winner{background:#dfe7d6;border-color:#73875b}.interface-study .score-row>strong{color:#6b4e1b}.interface-study .score-row small{color:#52675d}
.interface-study .action-desk .ready-list{font-size:.78rem}.interface-study .theory-draft{grid-column:1/-1}.interface-study .theory-draft li{background:#e1e8d6}.interface-study .action-desk .theory-draft~button{max-width:360px}.interface-study .action-desk>p{font-size:.8rem;color:#50675d}
@media(min-width:1700px){.interface-study .notebook .note-grid{grid-template-columns:repeat(var(--sectors),minmax(44px,1fr))}.interface-study .marks button{width:100%}.interface-study .study-matrix-scroll{overflow-x:auto}}
@media(max-width:1379px){.interface-study .study-layout{grid-template-columns:minmax(260px,.8fr) minmax(615px,1.2fr);gap:14px}.interface-study .study-rail{grid-column:1/3;grid-row:4;grid-template-columns:210px 1fr 1fr;align-items:start}.interface-study .reference-panels{grid-template-columns:1fr 1fr}.interface-study .player-chip{padding:9px}.interface-study .table-compass .opponent-action{grid-column:1/-1}.interface-study .sky-area{align-self:start}.interface-study .action-desk{grid-column:1/-1}}
@media(max-width:959px){.interface-study .study-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:12px}.interface-study .sky-area{grid-column:1;grid-row:2;position:sticky;top:10px}.interface-study .game .notebook{grid-column:2;grid-row:2;padding:10px}.interface-study .study-matrix-axes{flex-basis:70px}.interface-study .study-axis-name{display:none}.interface-study .study-axis{justify-content:center}.interface-study .study-axis-title{justify-content:center;padding:0}.interface-study .action-fields{grid-template-columns:1fr 1fr}.interface-study .topic-list{grid-column:1/-1}.interface-study .study-evidence{grid-template-columns:1fr 1fr}.interface-study .research-evidence{grid-column:1/-1}.interface-study .study-rail{grid-template-columns:180px 1fr}.interface-study .study-rail .history{grid-column:1/-1}.interface-study .action-fields.locate-checklist{grid-template-columns:repeat(3,minmax(0,1fr))}.interface-study .locate-checklist .cost{grid-column:1;grid-row:5}.interface-study .locate-checklist .confirm{grid-column:2/4;grid-row:5}.interface-study .locate-checklist>.muted{grid-row:6}.interface-study .mark-toolbar button{min-height:44px}.interface-study .notebook-heading h2{font-size:1.25rem}.interface-study .personal-notes{grid-template-columns:1fr}.interface-study .personal-notes button{justify-self:start}}
@media(max-width:599px){.study-label{font-size:.68rem;padding:6px 10px;gap:5px}.study-label>span:nth-child(2){display:none}.study-label button{min-height:36px;font-size:.68rem}.interface-study .bar{padding:8px 10px;gap:8px}.interface-study .brand{font-size:1.05rem}.interface-study .tools{gap:4px}.interface-study .tools button{min-height:44px}.interface-study .game{padding:10px 8px}.interface-study .turnline{padding:8px 10px}.interface-study .turnline h2{font-size:1rem}.interface-study .study-layout{display:flex;flex-direction:column;gap:12px}.interface-study .study-layout>*{width:100%;position:static}.interface-study .action-desk{padding:9px}.interface-study .action-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px}.interface-study .action-tabs button{min-height:44px}.interface-study .action-fields{gap:9px}.interface-study .action-fields>label{grid-column:1/-1}.interface-study .action-fields>.fields-two{grid-column:1/-1}.interface-study .action-fields .cost{min-width:0}.interface-study .action-fields .confirm{font-size:.75rem;padding:6px;min-width:0}.interface-study .sky-area{padding:8px 5px}.interface-study .board-frame{max-width:400px}.interface-study .board-legend button{min-height:44px}.interface-study .game .notebook{padding:10px}.interface-study .notebook-heading h2{font-size:1.4rem}.interface-study .study-matrix-axes{flex-basis:56px}.interface-study .study-axis-title{font-size:.62rem}.interface-study .study-evidence{display:grid;grid-template-columns:1fr;gap:10px}.interface-study .study-evidence ul,.interface-study .study-evidence ol{max-height:280px}.interface-study .study-rail{display:grid;grid-template-columns:1fr;gap:10px}.interface-study .player-strip{grid-template-columns:1fr 1fr}.interface-study .player-chip{min-width:0;gap:5px;padding:7px 5px}.interface-study .player-chip .pawn{width:28px;height:28px}.interface-study .reference-panels{grid-template-columns:1fr 1fr;gap:10px}.interface-study .reference-panels ul{font-size:.72rem}.interface-study .reference-full{display:none}.interface-study .reference-compact{display:inline}.interface-study .action-fields.locate-checklist{grid-template-columns:1fr 1fr}.interface-study .locate-checklist>.field{grid-column:1/-1}.interface-study .locate-checklist .claim-preview{grid-column:1/-1;grid-row:auto}.interface-study .locate-checklist .cost,.interface-study .locate-checklist .confirm{grid-row:auto;grid-column:auto}.interface-study .locate-checklist>.muted{grid-row:auto;grid-column:1/-1}.interface-study .entry{padding:18px}.interface-study .home{padding:20px 10px}.interface-study .entrance{gap:20px}.interface-study .welcome-board{max-width:330px}.interface-study .lobby-main{padding:15px}.interface-study .lobby{margin:16px auto}}
/* The comparison uses the same local seat and restores the existing arrangement in the adapter. */
body.study-original{background:#101c28;color:#f6f1e7;background-image:none}
body.study-original .study-label{display:flex}
.interface-study .study-table-controls{width:100%;display:flex;gap:6px;align-items:center;flex-wrap:wrap;border-top:1px solid #a4ad9d;padding-top:7px;margin-top:6px}
.interface-study .study-table-controls button{font-size:.74rem;min-height:36px;background:#f5efdf;color:#2f4c48;border-color:#7b8f7d;padding:5px 10px}.interface-study .study-table-controls button[aria-pressed=true]{background:#173342;color:#fff6de;border-color:#173342;box-shadow:inset 0 -3px #d3ad65}.interface-study .study-table-controls small{font-size:.7rem;color:#4d635b;flex:1;min-width:200px}
.interface-study .study-sky-controls{display:flex;align-items:center;justify-content:end;gap:4px;padding:0 2px 8px;color:#f8efd9}.interface-study .study-sky-controls>strong{margin-right:auto;font-size:.8rem;font-weight:600}.interface-study .study-sky-controls button{min-height:34px;min-width:34px;padding:4px 8px;font-size:.8rem;background:#24414d;color:#fff3db;border-color:#8b9a96}.interface-study .study-zoom-value{min-width:40px;text-align:center;font-size:.72rem;font-variant-numeric:tabular-nums}
.interface-study .study-sky-viewport{overflow:auto;max-height:620px;overscroll-behavior:contain;scrollbar-color:#a2b7b3 #142b37}.interface-study .study-sky-viewport .board-frame{width:calc(100% * var(--study-zoom,1));max-width:none;transform-origin:center;min-width:0}.interface-study .study-sky-viewport .board-svg{overflow:visible}
.study-tooltip{position:fixed;z-index:70;padding:12px 14px;background:#fffaf0;color:#263e43;border:1px solid #72877c;border-top:4px solid #b08332;border-radius:4px;box-shadow:0 4px 14px #0a1c2c35;pointer-events:none;font-size:.83rem;line-height:1.5;max-height:calc(100dvh - 20px);overflow:auto}.study-tooltip[hidden]{display:none}.study-tooltip[role=dialog]{pointer-events:auto}.study-tooltip>strong{font:600 .92rem 'Segoe UI',sans-serif}.study-tooltip p{margin:6px 0 0}.study-tooltip .study-tip-points{border-top:1px solid #9fac99;padding-top:7px;color:#3d553f;font-weight:600}.study-tooltip button{min-height:36px;font-size:.78rem;margin-top:10px;background:#294e56;color:#fff;border-color:#294e56}
.interface-study.study-help-mode .study-helpable{position:relative;outline:2px dashed #9c7228;outline-offset:-3px;cursor:help}.interface-study.study-help-mode .study-helpable::after{content:'?';position:absolute;right:1px;top:1px;width:15px;height:15px;border:1px solid #fff9e7;border-radius:50%;background:#77551b;color:#fff;font:bold .65rem/13px 'Segoe UI',sans-serif;text-align:center;pointer-events:none}
.interface-study .sector-hit.study-cell-sector{fill:#dcb45b33;stroke:#e8c780;stroke-width:6;stroke-dasharray:9 6}.interface-study .study-column-focus header{background:#d3dcbf;color:#1c3d31}.interface-study .study-axis-focus{background:#cddbbd;color:#193b2d;box-shadow:inset 4px 0 #4a6a43}
.interface-study .study-theory-value{padding:8px 10px;background:#e2e9d5;color:#304b37;font-size:.8rem;border:1px solid #839475}
.study-score-dialog{background:#f8f3e5;color:#29433f;border-color:#738b77;width:min(94vw,720px);font-size:.9rem}.study-score-dialog h2{color:#29433f}.study-score-dialog button{background:#294e56;color:#fff;border-color:#294e56;min-height:44px}.study-score-dialog table{border-collapse:collapse;width:100%;font-size:.85rem;margin:16px 0}.study-score-dialog caption{font:1.15rem Georgia,serif;text-align:left;margin-bottom:8px}.study-score-dialog th,.study-score-dialog td{border-bottom:1px solid #899c87;padding:9px 6px;text-align:left}.study-score-dialog thead{background:#e0e6d3}.study-score-dialog section{background:#e7dfca;border:1px solid #9f926e;padding:12px}.study-score-dialog section h3{font:1.25rem Georgia,serif}.study-score-dialog p{line-height:1.6}.study-score-dialog:focus-visible{outline:3px solid #315f78}
.interface-study .marks button{border-left-color:#85957f;border-top-color:#85957f}
.interface-study .history h3{color:#2e4b48}
@media(min-width:960px){
 .study-label{padding:3px 18px}.study-label button{min-height:26px;padding:2px 9px}
 .interface-study .bar{padding:5px 18px}.interface-study .tools button{min-height:32px}
 .interface-study .game{padding-top:10px}.interface-study .turnline{padding:6px 12px;gap:10px;margin-bottom:10px}
 .interface-study .study-table-controls{width:auto;flex:1;justify-content:end;border:0;padding:0;margin:0;gap:5px}.interface-study .study-table-controls small{display:none}.interface-study.study-help-mode .study-table-controls small{display:block;flex-basis:100%;font-weight:650}
 .interface-study .study-table-controls button{min-height:32px}.interface-study .action-desk{padding:8px 10px;gap:7px}.interface-study .action-tabs button{min-height:36px;padding:5px}.interface-study .action-desk>.muted{display:none}.interface-study .action-desk select{min-height:38px;padding:5px 8px}.interface-study .action-desk .cost,.interface-study .action-desk button.confirm{min-height:38px}
 .interface-study .study-sky-viewport{padding:12px;max-height:550px}.interface-study .study-sky-viewport .board-frame{width:calc(min(100%,430px) * var(--study-zoom,1))}.interface-study .sky-area{align-self:start;padding:8px 6px}.interface-study .board-legend{margin-top:0}.interface-study .board-legend button{font-size:.65rem;min-height:32px;padding:3px 5px}.interface-study .clue-readout{min-height:32px;margin:0}.interface-study .clue-readout button{min-height:28px}
 .interface-study .game .notebook{padding:10px}.interface-study .mark-toolbar{margin:8px 0 4px}.interface-study .mark-toolbar button{min-height:34px}.interface-study .mark-instructions{margin:4px 0 8px}.interface-study .personal-notes{margin-top:8px}.interface-study .personal-notes textarea{height:36px;min-height:36px}.interface-study .personal-notes button{min-height:36px}
 .interface-study .study-evidence ul,.interface-study .study-evidence ol{max-height:170px}.interface-study .study-evidence .clue-help{display:none}.interface-study .study-evidence .evidence-panel{padding:8px 10px}
}
@media(max-width:599px){.interface-study .study-layout>.action-desk{order:1}.interface-study .study-layout>.sky-area{order:2}.interface-study .study-layout>.notebook{order:3}.interface-study .study-layout>.study-evidence{order:4}.interface-study .study-layout>.study-rail{order:5}.interface-study .study-table-controls button,.interface-study .study-sky-controls button{min-height:44px;min-width:44px}.interface-study .study-table-controls small{min-width:0;flex-basis:100%}.study-tooltip{font-size:.85rem}.study-score-dialog{padding:14px}.study-score-dialog th,.study-score-dialog td{padding:7px 4px}}
@media(prefers-reduced-motion:reduce){.interface-study *{animation:none!important;transition:none!important}}
@media(max-width:599px){.study-label button,.interface-study .tools .flag,.interface-study .clue-readout button,.interface-study .personal-notes button,.interface-study .footer-row button,.interface-study .turnline button,.study-tooltip button{min-height:44px;min-width:44px}.interface-study .action-desk select{min-height:44px}}
@media(max-width:1379px){.interface-study .study-mobile-status{display:grid;grid-template-columns:1fr 1fr;gap:10px;position:sticky;top:0;z-index:12;background:#d9d7cb;padding:6px 0;margin-bottom:8px;border-bottom:1px solid #8f9e8b}.interface-study .study-mobile-status .player-strip{display:flex;gap:6px;align-items:stretch}.interface-study .study-mobile-status .player-chip{flex:1;min-width:0;padding:6px 8px}.interface-study .study-mobile-status .opponent-action{padding:7px 10px;border:1px solid #92a28c;border-radius:3px;display:grid;gap:3px}.interface-study .study-mobile-status .opponent-action small{font-size:.66rem}.interface-study .study-rail>.player-strip,.interface-study .study-rail .opponent-action{display:none}.interface-study .study-rail{grid-template-columns:1fr 1fr}.interface-study .notebook button,.interface-study .notebook textarea,.interface-study .notebook h2,.interface-study .study-evidence .clue-button{scroll-margin-top:var(--study-status-height,120px)}}
@media(max-width:599px){.interface-study .study-mobile-status{grid-template-columns:1fr;gap:5px}.interface-study .study-mobile-status .player-chip{padding:5px}.interface-study .study-mobile-status .opponent-action{font-size:.72rem;padding:5px 7px}.interface-study .study-mobile-status .opponent-action small{display:none}.interface-study .study-rail{grid-template-columns:1fr}}
@media(max-width:959px){.interface-study .study-rail .table-compass{grid-column:1/-1}}
