/* Shared poker-room palette. Light is the default; felt and real cards retain their identities. */
:root,:root[data-theme=light]{--bg:#f4f3f0;--bg-soft:#eae8e3;--panel:#fff;--panel2:#f7f6f3;--panel3:#eceae5;--text:#252a33;--ink:#252a33;--heading:#151820;--muted:#616570;--line:#dcdad5;--line2:#bebdc0;--line-strong:#bebdc0;--accent:#b62436;--accent-dark:#8e1928;--accent-soft:#fbe9eb;--green:#236b4b;--green2:#195337;--cream:#b62436;--orange:#9c571d;--gold:#886118;--red:#b62436;--blue:#295c97;--shadow:0 10px 35px #2026330b;--room:#20242b;--room-text:#f9f6f0}
:root[data-theme=dark]{--bg:#171a20;--bg-soft:#20242c;--panel:#252a33;--panel2:#2d333e;--panel3:#343d49;--text:#edf0f4;--ink:#edf0f4;--heading:#fff;--muted:#bac2cf;--line:#414b59;--line2:#657080;--line-strong:#657080;--accent:#ff7380;--accent-dark:#ff9da5;--accent-soft:#4e2933;--green:#83d3aa;--green2:#a1e4c0;--cream:#ffb8bf;--orange:#f3bd83;--gold:#edcc87;--red:#ff8b96;--blue:#9fc7ff;--shadow:0 10px 35px #0003;--room:#11151b;--room-text:#f9f6f0}
html[data-theme] body,html[data-theme] body.he-member-body,html[data-theme] body.he-auth,html[data-theme] body:has(.lj){background:radial-gradient(ellipse at 85% 0%,#ba27350c,transparent 45%),var(--bg);color:var(--text);color-scheme:inherit}
html[data-theme] :is(.site-header,.auth-header,.he-app-header,.sim-topbar){border-color:var(--line);gap:14px}
html[data-theme] :is(.he-brand,.he-app-brand,.brand){color:var(--heading)}
html[data-theme] :is(.brand-mark,.he-app-brand>span:first-child){background:linear-gradient(135deg,#e83a48,#9d1325);color:#fff;box-shadow:0 4px 12px #ae19332a}
html[data-theme] :is(.site-header nav>a,.he-app-header nav>a,.site-footer nav a,.auth-footer a){color:var(--text)}
html[data-theme] :is(.site-header [aria-current=page],.he-app-header nav [aria-current=page]){color:var(--accent);background:var(--accent-soft);border-radius:8px}
html[data-theme] :is(h1,h2,h3,h4){color:var(--heading)}
html[data-theme] :is(.eyebrow,.he-eyebrow,.text-link,.he-link){color:var(--accent)}
html[data-theme] :is(.lead,.muted,.section-heading>p,.feature-list p,.training-route p,.hero-footnote,.faq p,.site-footer p,.auth-story p,.auth-card>p,.auth-fineprint,.auth-switch,.auth-footer){color:var(--muted)}
html[data-theme] :is(.button,.he-button,.primary){background:#b62436;border-color:#b62436;color:#fff!important;box-shadow:0 4px 10px #99152a15}
html[data-theme] :is(.button,.he-button,.primary):hover{background:#951a2a;border-color:#951a2a}
html[data-theme] :is(.button.secondary,.he-button.secondary,.ghost){background:var(--panel);border-color:var(--line);color:var(--text)!important}
html[data-theme] :is(.feature-card,.note-card,.feature-wide,.line-lab,.line-explanation,.journal-preview,.warm-card,.auth-card,.he-member-card,.he-account-panel,.he-evidence-export,.takeaway-card,.lesson-card,.size-card,.insight-metrics>div){background:var(--panel);border-color:var(--line);color:var(--text);box-shadow:var(--shadow)}
html[data-theme] :is(.feature-tag,.feature-card small,.line-lab>small,.journal-check,.journal-preview>small,.auth-benefit p,.auth-story>small,.auth-details dt,.auth-terms,.auth-first-session p){color:var(--muted)}
html[data-theme] :is(.journal-preview blockquote,.auth-story h1,.auth-card h2,.auth-benefit b,.auth-trial strong,.he-profile dd,.auth-existing-form label,.auth-details dd){color:var(--heading)}
html[data-theme] .training-route .prompt{background:var(--room);color:#fff3cf;border-left:4px solid #dc3548;padding:24px 28px;border-radius:0 12px 12px 0;font-weight:550}
html[data-theme] .training-route article,html[data-theme] .feature-list article{border-color:var(--line)}
html[data-theme] .step-number{color:var(--accent)}
html[data-theme] .cta-band{background:var(--room);color:var(--room-text);border-radius:20px;padding:48px;border-top:3px solid #d83145}
html[data-theme] .cta-band :is(h2,p,.eyebrow){color:var(--room-text)}
html[data-theme] .table-preview{background:#222a30;border:1px solid #3d4b52;box-shadow:0 22px 55px #151d2920;color:#f5f3ed}
html[data-theme] .preview-top,html[data-theme] .illustration-label{color:#d4dce0}
html[data-theme] .preview-question{background:#f9f7f2;color:#252a33}
html[data-theme] .preview-question h3{color:#1b2028}
html[data-theme] .preview-question p{color:#56606b}
html[data-theme] :is(.auth-trial,.auth-first-session,.auth-details,.auth-street span,.he-companions .he-member-card:first-child){background:var(--panel2);border-color:var(--line);color:var(--text)}
html[data-theme] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=submit]),select,textarea){background:var(--panel)!important;color:var(--text)!important;border-color:var(--line-strong)!important;caret-color:var(--accent)}
html[data-theme] :is(input,textarea)::placeholder{color:var(--muted)!important;opacity:1}
html[data-theme] .he-auth .auth-existing-form button[type=submit]{background:#b62436!important;color:white!important;border-color:#b62436!important}
html[data-theme] .auth-password button{color:var(--accent)}
.he-theme-toggle{display:inline-flex!important;align-items:center;justify-content:center;white-space:nowrap;border:1px solid var(--line-strong);border-radius:9px;background:var(--panel);color:var(--text);padding:8px 11px;font:600 12px/1.2 inherit;cursor:pointer;min-height:34px}
html[data-theme] :is(.he-account-menu>div,.he-account-menu summary,.he-navigation-menu,.menu-toggle){background:var(--panel);color:var(--text);border-color:var(--line)}
html[data-theme] .he-account-menu>div>a{color:var(--text)!important}
/* Simulator surroundings and dialogs; the felt and white playing cards stay legible. */
html[data-theme] .sim-body :is(.setup-main,.setup-side,.setup-panel,.action-dock,.coach-column,.live-training-controls,.read-overflow,.seat-config,.seat-editor-card,.feedback-card,.feedback-row,.ai-box,.coach-empty,.read-cap-detail,.read-question,.range-bucket,.range-discounts,.hand-review-highlight,.hand-line,.hand-review-spot,.hand-trials,.hand-review-modal .hand-review,.live-read-dialog,.hand-review-modal,.combo-range-dialog,.session-study,.browser-empty,.analytics-stat,.report-hand,.report-hand-body){background:var(--panel);border-color:var(--line);color:var(--text)}
html[data-theme] .sim-body :is(.hand-review-modal-bar,.live-read-dialog header,.coach-tabs,.range-street,.range-method,.read-modal-tags span,.estimate-label,.coach-spot-plan,.coach-takeaway,.hand-line.exploit,.hand-review-highlight.improve,.lesson-target,.size-lesson){background:var(--panel2);border-color:var(--line);color:var(--text)}
html[data-theme] .sim-body :is(.hand-review-spot p,.hand-line p,.hand-review-highlight p,.read-cap-detail p,.live-read-dialog p,.coach-empty p,.feedback-row p,.report-hand p,.read-profile,.range-model-note,.coach-fineprint,.hand-review-footer p,.hand-review-header p){color:var(--muted)}
html[data-theme] .sim-body :is(.coach-tabs button,.read-close,.combo-range-close,.coach-target,.range-street){color:var(--text);border-color:var(--line)}
html[data-theme] .sim-body .range-street[aria-pressed=true]{background:#b62436;color:#fff}
html[data-theme] .sim-body .range-street[aria-pressed=true] *{color:#fff}
html[data-theme] .sim-body .table-stage{--text:#f6f8f6;--muted:#c2d5ca;--gold:#efcd83;--heading:#fff;background:#111d18;color:#fff;border:1px solid #455b4b}
html[data-theme] .sim-body .table-stage :is(h1,h2,h3,h4){color:inherit}
html[data-theme=dark] .sim-body .action-read-bubble{background:#28323b;color:#f4f6fa;border-color:#8a9caa;--text:#f4f6fa;--muted:#c2cad5}
html[data-theme=dark] .sim-body .action-read-bubble :is(.read-person,.read-meaning,.read-candidates,.read-trail){color:#d3dbe5}
html[data-theme=dark] .sim-body .action-read-bubble .read-action{color:#ffd28e}
html[data-theme] .sim-body .board-read{background:#f8f5ec;color:#263e31}
html[data-theme] .sim-body .board-read-tags>span{color:#294737}
html[data-theme] .sim-body .board-read-link{color:#395d49}
html[data-theme] .sim-body .coach-tabs button.active{color:var(--accent);border-bottom-color:var(--accent)}
html[data-theme] .sim-body :is(.hand-review-score,.feedback-score){background:var(--panel2);color:var(--heading);border-color:var(--line)}
html[data-theme] .sim-body .action-buttons button[data-action=allin]{background:#a82337;color:#fff;border-color:#d85266}
html[data-theme] .sim-body .action-buttons button[data-action=raise],html[data-theme] .sim-body .action-buttons button[data-action=bet]{background:#22764e;color:#fff;border-color:#3e956b}
html[data-theme] .sim-body #tableSound{border:1px solid var(--line-strong);background:var(--panel);color:var(--text);border-radius:8px;padding:7px;font-size:12px}
/* Journal shares theme preference with the public and simulator pages. */
html[data-theme] .lj :is(.j-card,.sheet,.session-row,.entry-row,.empty){background:var(--panel);color:var(--text);border-color:var(--line)}
html[data-theme] .lj :is(h1,h2,h3){color:var(--heading)}
html[data-theme] .lj :is(p,small,.sheet-help,.range-note,.range-source){color:var(--muted)}
@media(max-width:800px){html[data-theme] .site-header #site-nav{background:var(--panel);border-color:var(--line)}.he-theme-toggle{padding:7px;font-size:11px}.cta-band{padding:28px!important}}
@media(max-width:600px){.sim-body .top-actions .he-theme-toggle{padding:5px;min-height:28px;font-size:10px}.sim-body #tableSound{font-size:9px!important;padding:4px!important}.sim-body .live-training-controls{gap:4px!important;flex-wrap:wrap}.site-header .he-theme-toggle{width:100%}}
@media print{html[data-theme] body{background:white!important;color:#111!important}.he-theme-toggle{display:none!important}html[data-theme] .training-route .prompt{background:white;color:#111;border-color:#555}}
html[data-theme] .feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-theme] .feature-grid>*{grid-column:auto}
html[data-theme] .sim-body :is(.tabs,.auto-fold-toggle,.coach-target,.coach-story-grid>div,.coach-section,.coach-metrics>div,.coach-perfect,.coach-perfect-box,.coach-game-flow,.coach-next,.hand-type-card){background:var(--panel2);color:var(--text);border-color:var(--line)}
html[data-theme] .sim-body :is(.tabs button,.coach-empty b,.coach-empty>span,.deep-coach p,.ai-box p,.coach-section p,.coach-perfect p,.coach-perfect-box p,.coach-game-flow p,.coach-story-grid p,.coach-range-battle p,.coach-more p,.coach-spot-plan p,.coach-target,.coach-story-grid b,.hand-type-card p,.live-training-controls label){color:var(--text)}
html[data-theme] .sim-body .tabs button.active{color:var(--accent);border-color:var(--accent)}
html[data-theme=dark] :is(.lesson-card p,.size-card p,.size-context,.insight-note,.takeaway-card p,.lesson-context,.size-lesson span,.he-profile dt,.he-account label,.he-account #password-help,.he-companions ol){color:var(--muted)}
html[data-theme=dark] .sim-body :is(.coach-target.good,.coach-target.bad,.coach-target.neutral){background:var(--panel2);color:var(--text);border-color:var(--line)}
.he-theme-toggle{font-family:inherit;font-size:12px;font-weight:600;line-height:1.2}
@media(max-width:700px){html[data-theme] .feature-grid{grid-template-columns:1fr}}
