/* Appearance changes use shared roles: selection, action, recorded, and result.
   The default retains the approved Clear Desk geometry and colors. */
:root{--rail:#11181e;--header:#19232b;--input:#151e25;--selection:#c4e5f7;--selection-line:#8cafc4;--selection-bg:#b8daed0c;--recorded-bg:#343d45;--recorded-text:#e0e7ec;--placed-bg:#31373d;--placed-line:#515a62;--placed-text:#c1c2c4;--placed-icon:#abb1b6;--action:#efd4b8;--action-line:#c18b65;--action-bg:#d993571b;--action-glow:#ee8c3d21;--row-line:#e8eff07a;--positive:#52ce85;--negative:#ff8878;--win-text:#b1e7c3;--loss-text:#ffc1ba;--win-wash:#34805847;--loss-wash:#8e3a4057;--hr:#b7aff1;--ps:#e1c789;--dd:#e9a5b6;--ms:#8dd7bf;--lr:#6ec8f5;--accent-ink:#18211c}
:root[data-theme=blackout]{--bg:#000;--panel:#101214;--rail:#050607;--header:#0a0c0e;--input:#090b0d;--line:#373d42;--text:#eceff2;--muted:#a9b2bb;--gold:#d7bd96;--selection:#dce3e7;--selection-line:#8e9da7;--selection-bg:#dce3e707;--recorded-bg:#252b30;--recorded-text:#d0d8df;--placed-bg:#24282c;--placed-line:#444c53;--placed-text:#b9bec4;--action:#e5c2a2;--action-line:#aa7855;--action-bg:#b77e4819;--action-glow:#d68b3e1a;--row-line:#dde5ee55;--win-wash:#1d603938;--loss-wash:#722b333d}
:root[data-theme=aurora]{--bg:#080f1e;--panel:#142237;--rail:#070d19;--header:#0e1b2d;--input:#0c1728;--line:#344b68;--text:#ecf3ff;--muted:#a8bbd3;--gold:#94f4d0;--selection:#b8dbff;--selection-line:#7faade;--selection-bg:#9ccaff0d;--recorded-bg:#293d53;--recorded-text:#d1e0f0;--placed-bg:#223146;--placed-line:#486079;--placed-text:#b9c9dc;--placed-icon:#99adc2;--action:#ffd0ba;--action-line:#be8b76;--action-bg:#e9977518;--action-glow:#ffb38c21;--row-line:#b4cae577;--win-text:#a9f0d1;--win-wash:#23846642;--loss-wash:#9e414d44;--positive:#60e7ad;--negative:#ff9b97}
:root[data-theme=dusk]{--bg:#1c1728;--panel:#2b233b;--rail:#130f1c;--header:#211b30;--input:#20192e;--line:#625374;--text:#f3edf9;--muted:#c1b2d0;--gold:#ffd2a1;--selection:#e2c8ff;--selection-line:#b69bce;--selection-bg:#d5baff0b;--recorded-bg:#453b50;--recorded-text:#e4dbea;--placed-bg:#39313f;--placed-line:#645871;--placed-text:#c9bdd3;--placed-icon:#b9a9c5;--action:#ffdab8;--action-line:#c59874;--action-bg:#ffd2a118;--action-glow:#ffb7751c;--row-line:#dccce973;--win-wash:#39836c42;--loss-wash:#ad476341;--win-text:#b6e9d0;--loss-text:#ffbfd0;--positive:#7addaa;--negative:#ff9bab}
:root[data-theme=glacier]{color-scheme:light;--bg:#e9f0f7;--panel:#fbfdff;--rail:#e0e9f2;--header:#eff4f9;--input:#fff;--line:#a9bacb;--text:#172c43;--muted:#53677c;--gold:#2456cb;--selection:#234f96;--selection-line:#567fb9;--selection-bg:#2456cb09;--recorded-bg:#e1e7ed;--recorded-text:#344d65;--placed-bg:#d5dde5;--placed-line:#9aabbc;--placed-text:#31465b;--placed-icon:#526b81;--action:#713a16;--action-line:#b78058;--action-bg:#d9935714;--action-glow:#ce925d18;--row-line:#8099b773;--positive:#12653a;--negative:#a92f32;--win-text:#1b613e;--loss-text:#92303a;--win-wash:#34805821;--loss-wash:#8e3a4021;--hr:#6254ac;--ps:#856216;--dd:#9c3d61;--ms:#237565;--accent-ink:#fff;--green:#17613e;--red:#9d3036}
/* Complete surfaces, including dialogs, account controls and the admin desk. */
:root[data-theme=paper]{color-scheme:light;--bg:#f3efe6;--panel:#fffdf7;--rail:#e9e3d7;--header:#f4efe5;--input:#fffefb;--line:#b8ae9b;--text:#23392f;--muted:#616959;--gold:#2e6548;--selection:#28523d;--selection-line:#598366;--selection-bg:#2e65480c;--recorded-bg:#e5e6dc;--recorded-text:#38453e;--placed-bg:#dbe0d5;--placed-line:#adb7a9;--placed-text:#455044;--placed-icon:#5e7261;--action:#7c461b;--action-line:#aa7c56;--action-bg:#f0d9b71f;--action-glow:#b9783620;--row-line:#c0baa3aa;--positive:#126d41;--negative:#a82d32;--win-text:#1e593c;--loss-text:#96393e;--win-wash:#18643818;--loss-wash:#94333216;--hr:#665288;--ps:#7b5715;--dd:#9d3e60;--ms:#28635d;--accent-ink:#fff;--green:#17613e;--red:#9d3036}
:root[data-theme=copper]{color-scheme:dark;--bg:#211711;--panel:#33241c;--rail:#170f0b;--header:#291b13;--input:#241910;--line:#6b4b3b;--text:#fff1df;--muted:#d1b49c;--gold:#f4ad78;--selection:#ffe2af;--selection-line:#c89b6c;--selection-bg:#efc3990b;--recorded-bg:#534037;--recorded-text:#dfcfc3;--placed-bg:#42362f;--placed-line:#7b6252;--placed-text:#c9b6a8;--placed-icon:#ab988a;--action:#ffd09c;--action-line:#bd8d62;--action-bg:#e99d6018;--action-glow:#e8976522;--row-line:#d8b39277;--positive:#78d9a1;--negative:#ff9581;--win-text:#c1eccb;--loss-text:#ffc4b3;--win-wash:#366a3b50;--loss-wash:#97473b50;--hr:#cab7fa;--ps:#ffd091;--dd:#f8b3bd;--ms:#a8d7c9;--accent-ink:#30190b;--green:#b6d9b3;--red:#f2b7a9}
:root[data-theme=ocean]{color-scheme:dark;--bg:#071e23;--panel:#0f3038;--rail:#06171c;--header:#09252d;--input:#09252b;--line:#37616b;--text:#ecffff;--muted:#afccd1;--gold:#79e4d7;--selection:#b5edff;--selection-line:#71b7c8;--selection-bg:#94d8e90c;--recorded-bg:#28464c;--recorded-text:#d2e8e9;--placed-bg:#213d42;--placed-line:#486e73;--placed-text:#adc9cd;--placed-icon:#8eaeb4;--action:#ffd4a4;--action-line:#b68a60;--action-bg:#dea2711c;--action-glow:#d38d431a;--row-line:#9cbfc677;--positive:#6aedb5;--negative:#ff9e9b;--win-text:#b4f3cf;--loss-text:#ffc4c1;--win-wash:#116b544a;--loss-wash:#743c4946;--hr:#b6b9fa;--ps:#edd195;--dd:#e8aaca;--ms:#86e0cf;--accent-ink:#08282c;--green:#a7dac8;--red:#ffb4b0}
:root[data-theme=berry]{color-scheme:light;--bg:#f7e9ef;--panel:#fff8fb;--rail:#ebd6e0;--header:#f5e3eb;--input:#fffafc;--line:#caa3b7;--text:#45203a;--muted:#805568;--gold:#a52460;--selection:#84244c;--selection-line:#b4557c;--selection-bg:#ac356a0a;--recorded-bg:#e9d6df;--recorded-text:#6a4456;--placed-bg:#dec4d1;--placed-line:#b293a2;--placed-text:#644354;--placed-icon:#966278;--action:#703d2b;--action-line:#a57959;--action-bg:#c88a5415;--action-glow:#d5945820;--row-line:#b892a7aa;--positive:#176442;--negative:#ad2937;--win-text:#225f42;--loss-text:#a12f3d;--win-wash:#246a481a;--loss-wash:#9822371c;--hr:#6953a3;--ps:#805916;--dd:#983864;--ms:#2a6d66;--accent-ink:#fff;--green:#17613e;--red:#9d3036}
.sidebar{background:var(--rail)}.nav-link{color:var(--muted)}.topbar,.table-head{background:var(--header)}
.field,select,input[type=search],input[type=date],.form-grid input,.form-grid select,.form-grid textarea,.form-field input,.risk-control input{background:var(--input);border-color:var(--line);color:var(--text)}
input::placeholder,textarea::placeholder{color:var(--muted)}
dialog{background:var(--panel);border-color:var(--line)}dialog::backdrop{background:#02060bcc}
.btn.gold{color:var(--accent-ink)}.auth-story{background:radial-gradient(ellipse at 50% 20%,var(--selection-bg),transparent 65%),var(--panel)}
.auth-manifesto p,.auth-system-list small,.footer,.system-chip b,.divider span{color:var(--muted)}.auth-system-list span,.bankroll-strip strong,.risk-preview strong{color:var(--gold)}
.notice,.dialog-body .suggestion-note{color:var(--gold);border-color:var(--line);background:var(--selection-bg)}
.pending-summary{background:var(--header);border-color:var(--line)}#toast{background:var(--panel);border-color:var(--gold)}
.live-panel{background:var(--panel);border-color:var(--line)}.in-play,.awaiting-label{color:var(--muted)}
.pending-panel{border-color:var(--line)}.pending-panel .section-head{border-color:var(--line)}
.heading h1 em{color:var(--selection)}.system-chip.checked,.nav-link.active{background:var(--selection-bg);border-color:var(--line)}
.theme-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin:20px 0 16px}
.theme-choice{position:relative;display:grid;gap:8px;text-align:left;padding:16px;border:1px solid var(--line);background:var(--input);border-radius:8px;color:var(--text);min-height:120px}
.theme-choice:hover{border-color:var(--gold)}.theme-choice.selected{border:2px solid var(--gold);padding:15px;background:var(--selection-bg)}
.theme-choice strong{font-size:14px}.theme-choice small{color:var(--muted);font-size:11px;line-height:1.5}.theme-swatches{display:flex;gap:4px;margin-bottom:4px}.theme-swatches i{width:24px;height:20px;border:1px solid #8192a880;border-radius:3px}.theme-check{position:absolute;right:12px;top:12px;color:var(--gold);font-size:16px}.appearance-card{max-width:1050px}.appearance-status{min-height:22px}
/* Keep result semantics consistent across the alternative palettes. */
:root:not([data-theme=slate]) .signal-row .fixture strong,:root:not([data-theme=slate]) .signal-row .risk strong{color:var(--text)}
:root:not([data-theme=slate]) .table-head,:root:not([data-theme=slate]) .edit-placement,:root:not([data-theme=slate]) .placed-detail{color:var(--muted)}
:root:not([data-theme=slate]) .signal-row .market{background:var(--selection-bg);border-color:var(--selection-line)}
:root:not([data-theme=slate]) .signal-row .market strong{color:var(--selection)}
:root:not([data-theme=slate]) .pending-panel .signal-row{border-top-color:var(--row-line)}
:root:not([data-theme=slate]) .signal-row.is-unplaced .placement-btn{color:var(--action);border-color:var(--action-line);background:var(--action-bg);box-shadow:0 0 14px var(--action-glow)}
:root:not([data-theme=slate]) .signal-row.is-unplaced .placement-btn:hover{background:var(--action-bg);box-shadow:0 0 20px var(--action-glow);border-color:var(--action)}
:root:not([data-theme=slate]) .signal-row.is-placed .market::before{background:var(--recorded-bg)}
:root:not([data-theme=slate]) .signal-row.is-placed .market strong,:root:not([data-theme=slate]) .signal-row.is-placed .market small{color:var(--recorded-text)}
:root:not([data-theme=slate]) .signal-row.is-placed .placement-btn{background:var(--placed-bg);border-color:var(--placed-line);color:var(--placed-text)}
:root:not([data-theme=slate]) .signal-row.is-placed .placement-btn>span{background:var(--placed-icon);color:var(--panel)}
:root:not([data-theme=slate]) .recorded-status{color:var(--recorded-text);border-color:var(--line);background:var(--selection-bg)}
:root:not([data-theme=slate]) .soon-heading{background:var(--selection-bg);border-color:var(--line)}:root:not([data-theme=slate]) .soon-label,:root:not([data-theme=slate]) .soon-heading>span:first-child{color:var(--gold)}
:root:not([data-theme=slate]) .system-tag.highroller{color:var(--hr)}:root:not([data-theme=slate]) .system-tag.premium-slate{color:var(--ps)}:root:not([data-theme=slate]) .system-tag.divine-draws{color:var(--dd)}:root:not([data-theme=slate]) .system-tag.multi-sport{color:var(--ms)}
:root:not([data-theme=slate]) .system-tag.live-room{color:var(--lr)}
:root:not([data-theme=slate]) .signal-row .placement-btn:focus-visible{outline-color:var(--selection)}
:root:not([data-theme=slate]) .signal-row.just-recorded .placement-btn{animation-name:theme-record-button}
:root:not([data-theme=slate]) .signal-row.just-recorded .market{animation-name:theme-record-selection}
@keyframes theme-record-button{from{opacity:1;box-shadow:0 0 18px var(--action-glow);background:var(--action-bg);border-color:var(--action-line)}to{opacity:var(--record-opacity,.85);box-shadow:none;background:var(--placed-bg);border-color:var(--placed-line)}}
@keyframes theme-record-selection{from{background:var(--selection-bg)}to{background:transparent}}
:root:is([data-theme=glacier],[data-theme=paper],[data-theme=berry]){--record-opacity:1}
:root:not([data-theme=slate]) .history-panel .signal-row.result-win{--result-color:var(--win-text);background:linear-gradient(90deg,var(--win-wash),var(--win-wash) 78%,transparent);border-left-color:var(--win-text)}
:root:not([data-theme=slate]) .history-panel .signal-row.result-loss{--result-color:var(--loss-text);background:linear-gradient(90deg,var(--loss-wash),var(--loss-wash) 78%,transparent);border-left-color:var(--loss-text)}
:root:not([data-theme=slate]) .history-panel .signal-row:is(.result-push,.result-void){--result-color:var(--muted);background:var(--selection-bg);border-left-color:var(--muted)}
:root:not([data-theme=slate]) .history-panel .signal-row .market strong{color:var(--result-color,var(--text))}
:root:not([data-theme=slate]) .history-panel .signal-row .market small,:root:not([data-theme=slate]) .history-panel .signal-row .fixture small,:root:not([data-theme=slate]) .settlement-caption{color:var(--muted)}
:root:not([data-theme=slate]) .history-panel .personal-result.positive{color:var(--positive)}:root:not([data-theme=slate]) .history-panel .personal-result.negative{color:var(--negative)}:root:not([data-theme=slate]) .history-panel .personal-result.neutral{color:var(--muted)}
:root[data-theme=glacier] .signal-row.is-placed .placement-btn{opacity:1}:root[data-theme=glacier] .system-tag i{border-color:var(--line)}
:root[data-theme=glacier] .brand img{background:transparent;border-radius:0;padding:0}
:root[data-theme=glacier] .history-panel .signal-row{border-top-color:var(--line)}
:root:is([data-theme=paper],[data-theme=berry]) .brand .brand-dark{display:none}
:root:is([data-theme=paper],[data-theme=berry]) .brand .brand-light{display:block}
:root:is([data-theme=paper],[data-theme=berry]) .signal-row.is-placed .placement-btn{opacity:1}
:root:is([data-theme=paper],[data-theme=berry]) .system-tag i{border-color:var(--line)}
:root:is([data-theme=paper],[data-theme=berry]) .history-panel .signal-row{border-top-color:var(--line)}
@media(max-width:600px){.theme-options{grid-template-columns:1fr 1fr}.theme-choice{padding:13px}.theme-choice.selected{padding:12px}.theme-swatches i{width:20px}}
.swatches-slate i:nth-child(1){background:#141b21}.swatches-slate i:nth-child(2){background:#202b33}.swatches-slate i:nth-child(3){background:#c4e5f7}.swatches-slate i:nth-child(4){background:#d4c3a1}
.swatches-blackout i:nth-child(1){background:#000}.swatches-blackout i:nth-child(2){background:#101214}.swatches-blackout i:nth-child(3){background:#dce3e7}.swatches-blackout i:nth-child(4){background:#d7bd96}
.swatches-aurora i:nth-child(1){background:#080f1e}.swatches-aurora i:nth-child(2){background:#142237}.swatches-aurora i:nth-child(3){background:#94f4d0}.swatches-aurora i:nth-child(4){background:#a4ccff}
.swatches-dusk i:nth-child(1){background:#1c1728}.swatches-dusk i:nth-child(2){background:#2b233b}.swatches-dusk i:nth-child(3){background:#e2c8ff}.swatches-dusk i:nth-child(4){background:#ffd2a1}
.swatches-glacier i:nth-child(1){background:#e9f0f7}.swatches-glacier i:nth-child(2){background:#fbfdff}.swatches-glacier i:nth-child(3){background:#2456cb}.swatches-glacier i:nth-child(4){background:#8c4c20}
.swatches-paper i:nth-child(1){background:#f3efe6}.swatches-paper i:nth-child(2){background:#fffdf7}.swatches-paper i:nth-child(3){background:#2e6548}.swatches-paper i:nth-child(4){background:#7c461b}
.swatches-copper i:nth-child(1){background:#211711}.swatches-copper i:nth-child(2){background:#33241c}.swatches-copper i:nth-child(3){background:#f4ad78}.swatches-copper i:nth-child(4){background:#ffe2af}
.swatches-ocean i:nth-child(1){background:#071e23}.swatches-ocean i:nth-child(2){background:#0f3038}.swatches-ocean i:nth-child(3){background:#79e4d7}.swatches-ocean i:nth-child(4){background:#b5edff}
.swatches-berry i:nth-child(1){background:#f7e9ef}.swatches-berry i:nth-child(2){background:#fff8fb}.swatches-berry i:nth-child(3){background:#a52460}.swatches-berry i:nth-child(4){background:#84244c}
.alert-master,.alert-columns label{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--text);line-height:1.6}.alert-master{margin-top:20px;font-weight:600}.alert-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:20px 0}.alert-columns fieldset{border:1px solid var(--line);border-radius:7px;padding:16px;display:grid;gap:13px}.alert-columns legend{color:var(--muted);font-size:11px;padding:0 7px}.connect-note{margin:20px 0}.connect-note .btn{margin-bottom:12px}
.bug-report{padding:24px;border-bottom:1px solid var(--line)}.bug-report:last-child{border:0}.bug-title{display:flex;justify-content:space-between;gap:20px;margin-bottom:10px}.bug-title h3{font-size:16px;overflow-wrap:anywhere}.bug-report small{color:var(--muted);line-height:1.8;overflow-wrap:anywhere}.bug-description,.bug-note{font-size:13px;line-height:1.8;white-space:pre-wrap;margin:16px 0;overflow-wrap:anywhere}.bug-note{background:var(--selection-bg);padding:13px;border-left:2px solid var(--gold)}.bug-attachments{display:flex;flex-wrap:wrap;gap:14px;margin:15px 0}.bug-attachments img{max-width:180px;height:110px;object-fit:cover;border:1px solid var(--line);border-radius:5px}.bug-report form{display:grid;gap:12px;grid-template-columns:160px 1fr auto;align-items:end}.bug-report form label{display:grid;gap:8px;color:var(--muted);font-size:11px}.bug-report textarea{background:var(--input);color:var(--text);border:1px solid var(--line);border-radius:5px;padding:10px}.bug-report form button{height:38px}
@media(max-width:700px){.alert-columns{grid-template-columns:1fr}.bug-report{padding:18px}.bug-report form{grid-template-columns:1fr}.bug-title{flex-direction:column;gap:8px}.bug-title .pill{width:fit-content}.bug-attachments img{max-width:135px}}
