:root{color-scheme:light;--bg:#f2f4f7;--surface:#fff;--stripe:#f8fafc;--text:#202c3d;--muted:#6b7788;--border:#dce2e9;--head:#eef2f6;--hover:#edf3fa;--green:#137344;--green-bg:#e5f4e9;--red:#b53535;--accent:#df641f;font:12px/1.3 "Segoe UI",system-ui,sans-serif}
:root[data-theme=dark]{color-scheme:dark;--bg:#111820;--surface:#17212c;--stripe:#1a2632;--text:#dce5ef;--muted:#95a5b8;--border:#2c3b4b;--head:#202e3d;--hover:#26384b;--green:#81d7a3;--green-bg:#193d2e;--red:#f39191}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;height:100dvh;display:flex;flex-direction:column;background:var(--bg);color:var(--text)}button,input,select{font:inherit;color:inherit}button,select,input{border:1px solid var(--border);border-radius:4px;background:var(--surface);min-height:28px;padding:4px 8px}button{cursor:pointer;white-space:nowrap}button:hover{background:var(--hover)}button:disabled{opacity:.4;cursor:default}:focus-visible{outline:2px solid #4285cf;outline-offset:2px}input[type=number]{width:56px}input[type=checkbox]{min-height:0;width:auto}button.active{font-weight:650}
.appbar{flex:none;display:flex;align-items:center;gap:24px;min-height:44px;padding:0 16px;background:#122337;color:#e7edf4;border-bottom:1px solid #0b192a}.brand{display:flex;align-items:center;gap:8px;color:inherit;text-decoration:none;font-size:17px;font-weight:700;letter-spacing:-.5px;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:26px;height:27px;background:var(--accent);border-radius:4px;color:#fff;font-size:22px;line-height:1}.brand-tag{font-size:9px;font-weight:500;letter-spacing:1px;color:#91a4bb;margin-left:4px}nav{display:flex;align-self:stretch;gap:3px}nav button{background:none;border:0;border-radius:0;border-bottom:3px solid transparent;color:#aab9cc;padding:0 13px}nav button:hover{background:#20344d;color:white}nav button.active{border-bottom-color:#f1803f;color:#fff}.icon-button{color:#cad7e6;border-color:#3b4a60;background:transparent;min-width:30px;font-size:17px}
main{display:flex;flex-direction:column;min-height:0;flex:1}.toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:6px 16px;background:var(--surface);border-bottom:1px solid var(--border)}.toolbar-spacer{flex:1}.league-tabs{display:flex;gap:4px}.league-tabs button{border-color:transparent;background:transparent;padding:4px 12px;color:var(--muted)}.league-tabs button.active{background:var(--head);border-color:var(--border);color:var(--text)}#status{font-size:11px}#status.positive:before{content:"";display:inline-block;width:6px;height:6px;background:var(--green);border-radius:50%;margin-right:6px}
.filters{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:6px 16px;border-bottom:1px solid var(--border);background:var(--surface)}label{display:flex;gap:6px;align-items:center;color:var(--muted);white-space:nowrap}input,select{color:var(--text)}#search{width:250px;max-width:85vw;background:var(--stripe)}.text-button{background:none;border-color:transparent;color:var(--muted);padding:4px}.board-heading{display:flex;gap:10px;align-items:center;padding:9px 16px;flex:none}h1{font-size:13px;margin:0;font-weight:650}#count,#board-note{color:var(--muted);font-size:11px}
#content{flex:1;min-height:0;display:flex;flex-direction:column;margin:0 12px;border:1px solid var(--border);border-radius:4px;background:var(--surface);overflow:hidden}.scroll{overflow:auto;min-height:0;scrollbar-gutter:stable;flex:1}table{min-width:1000px;border-collapse:separate;border-spacing:0;width:100%;text-align:left;background:var(--surface);font-variant-numeric:tabular-nums}th{position:sticky;top:0;background:var(--head);z-index:2;color:var(--muted);font-size:10px;font-weight:650;text-transform:uppercase;letter-spacing:.35px;white-space:nowrap;border-bottom:1px solid var(--border)}th,td{padding:4px 10px;border-bottom:1px solid var(--border)}td{height:33px}tbody tr:nth-child(even){background:var(--stripe)}tbody tr:last-child td{border-bottom:0}tbody tr[data-market],tbody tr[data-archive]{cursor:pointer}tbody tr:hover,tbody tr:focus-within{background:var(--hover)}th button{min-height:0;padding:0;border:0;background:none;font:inherit;color:inherit;text-transform:inherit;letter-spacing:inherit}th button:hover{color:var(--text);background:none}
#content table:not(.odds-grid) td:nth-child(3){min-width:200px}.num{text-align:right;white-space:nowrap}.positive{color:var(--green);font-weight:650}.ev-cell{background:var(--green-bg);color:var(--green);font-weight:700}.muted,small{color:var(--muted)}small{font-size:10px}td small{display:block}td strong{font-weight:600}.error{color:var(--red)}.league{display:inline-block;font-size:10px;font-weight:650;color:var(--muted)}.market-name{white-space:nowrap}
.pinned{position:sticky;left:0;z-index:1;min-width:220px;max-width:260px;background:var(--surface);border-right:1px solid var(--border)}thead .pinned{z-index:3;background:var(--head)}tbody tr:nth-child(even) .pinned{background:var(--stripe)}tbody tr:hover .pinned{background:var(--hover)}.odds-grid{width:max-content;min-width:100%}.odds-grid td:not(.pinned){min-width:105px}.odds-grid .price{font-weight:600;display:block}.odds-grid .best{background:var(--green-bg);color:var(--green)}.odds-grid .screen-book{border-bottom:2px dotted var(--muted)}
.odds-grid td:not(.pinned){min-width:76px;padding:3px 8px}.odds-grid .selection{min-width:240px;max-width:280px}.odds-grid .best-line{background:var(--head)}.best-line small{max-width:105px;overflow:hidden;text-overflow:ellipsis}.odds-grid .top-price{font-weight:700;text-decoration:underline;text-decoration-color:var(--muted);text-underline-offset:3px}.odds-grid .fixture-band{background:#20344d;color:#fff;padding:9px 12px;font-size:13px;font-weight:650}.fixture-band span,.section-band span{margin-left:20px;font-size:10px;font-weight:400}.odds-grid .section-band{background:var(--head);font-weight:700;padding:6px 12px}.odds-grid .section-positive{background:var(--green-bg);color:var(--green)}.odds-grid .alternate-band{padding:0 12px;height:25px}.alternate-band button{border:0;background:none;color:inherit;text-align:left;padding:4px 0;font-size:10px;min-height:24px}.alternate-band b{margin-left:10px}.odds-grid .alternate{padding-left:25px}.odds-grid .ev-cell small{color:var(--green)}
.odds-grid th,.odds-grid td:not([colspan]){border-right:1px solid var(--border)}.odds-grid td.paired{padding:0;vertical-align:top}.pair-leg{height:24px;display:flex;align-items:center;justify-content:flex-end;padding:3px 8px;overflow:hidden}.selection .pair-leg{justify-content:flex-start}.selection .pair-leg strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.alternate .pair-leg{padding-left:24px}.pair-leg[data-quote-book]{cursor:pointer}.pair-leg[data-quote-book]:hover{background:var(--hover)}.odds-grid .pair-leg .price{font-size:11px}.odds-grid .selection{min-width:250px}.section-band{text-transform:capitalize}
.empty{padding:50px 20px;text-align:center;color:var(--muted);margin:auto}.pager{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:none;padding:7px 16px;font-size:11px}.pager button{min-height:25px}#updated{color:var(--muted)}
dialog{padding:0;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:6px;width:min(1250px,96vw);max-height:90dvh}dialog::backdrop{background:#0a172778}.dialog-bar{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;z-index:5;padding:8px 16px;background:var(--head);border-bottom:1px solid var(--border);font-size:10px;font-weight:650;letter-spacing:1px}#detail-content{padding:4px 18px 20px}#detail-content h2{font-size:19px;margin:14px 0 4px}h3{font-size:12px;margin:20px 0 8px}#detail-content .scroll{max-height:40vh}.detail-stats{display:flex;gap:24px;margin:16px 0;padding:12px;background:var(--stripe);border:1px solid var(--border)}.detail-stats span{display:block;font-size:10px;color:var(--muted)}.detail-stats strong{font-size:16px;font-variant-numeric:tabular-nums}
details{border-bottom:1px solid var(--border)}summary{cursor:pointer;padding:8px 0;font-weight:600}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px}#archive-panel,#mappings-panel{overflow:auto;padding:0 16px 20px;min-height:0}#mappings-panel h3{font-size:13px;margin:16px 0 6px}.archive-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.archive-heading h2{font-size:15px;margin-right:auto}.rule-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;padding:12px 0}.rule-grid label,.archive-display label{display:grid;gap:4px}.rule-grid input,.rule-grid select{width:100%;min-width:0}.rule-grid select[multiple]{height:85px}.check-grid,.archive-display{display:flex;flex-wrap:wrap;gap:16px;margin:12px 0}.metrics{display:flex;flex-wrap:wrap;gap:0;border:1px solid var(--border);background:var(--surface);margin:12px 0}.metrics>div{padding:9px 14px;border-right:1px solid var(--border)}.metrics span{display:block;font-size:10px;color:var(--muted)}.metrics strong{display:block;font-size:17px;margin-top:3px;font-variant-numeric:tabular-nums}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@media(max-width:1000px){.brand-tag{display:none}.appbar{gap:12px}nav button{padding:0 8px}.filters{gap:9px}#search{width:210px}}@media(max-width:700px){.appbar{flex-wrap:wrap;gap:0;padding:8px 10px 0}.brand{margin-right:auto}nav{order:3;overflow-x:auto;width:100%;margin-top:5px}nav button{padding:10px}.toolbar,.filters{padding:7px 10px}.league-tabs button{padding:4px 7px}#status{order:4;width:100%}#board-note{display:none}.board-heading{padding:8px 10px}#content{margin:0 6px}th,td{padding:5px 8px}.pinned{min-width:175px;max-width:200px}.detail-stats{flex-wrap:wrap;gap:12px}}

/* Dense odds screen: one undivided pair per cell, compact icon columns. */
.odds-grid{min-width:0;font-size:11px}.odds-grid th{height:25px;padding:3px 4px;font-size:9px;letter-spacing:0}.odds-grid td:not(.pinned){min-width:52px;padding:0 4px}.odds-grid .selection,.odds-grid th.pinned{min-width:220px;max-width:220px;width:220px}.odds-grid td.paired{padding:0}.odds-grid .pair-leg{height:18px;padding:1px 4px;line-height:16px}.odds-grid .alternate .pair-leg{padding-left:14px}.odds-grid .fixture-band{height:25px;padding:4px 8px;font-size:12px}.odds-grid .section-band{height:22px;padding:3px 8px}.odds-grid .alternate-band{height:19px;padding:0 8px}.odds-grid .alternate-band button{min-height:18px;padding:1px 0;line-height:16px}.odds-grid .book-heading{width:52px;min-width:52px;text-align:center}.book-favicon{width:18px;height:18px;display:block;object-fit:contain;margin:auto;border-radius:3px}.odds-grid .selection strong{font-weight:500}.odds-grid .num{font-size:11px}

.odds-grid .delayed-quote{background:#fff0b3}:root[data-theme=dark] .odds-grid .delayed-quote{background:#55451b}
/* Keep price rows uniform, including books and sides with no listings. */
.odds-grid tbody tr,.odds-grid tbody tr:hover,.odds-grid tbody tr:focus-within,.odds-grid tbody tr:nth-child(even) .pinned,.odds-grid tbody tr:hover .pinned,.odds-grid .best-line,.odds-grid .pair-leg.unlisted{background:var(--surface)}
.odds-grid .book-heading.match-unlisted::after{content:"";position:absolute;top:3px;right:3px;width:5px;height:5px;border-radius:50%;background:#dc4545;pointer-events:none}

.book-icon{position:relative;display:block;width:18px;height:18px;margin:auto}.book-region{position:absolute;right:-10px;bottom:-4px;font-size:8px;line-height:10px;font-weight:750;color:var(--text);background:var(--head);border-radius:2px;padding:0 1px}

.book-feed{position:absolute;left:-10px;bottom:-5px;font-size:7px;line-height:9px;font-weight:750;letter-spacing:0;text-transform:none;color:var(--text);background:var(--head);border-radius:2px;padding:0 1px;white-space:nowrap}.odds-grid .book-heading{padding-top:6px;padding-bottom:9px}

/* Book identity stays readable inside EV, delayed and hovered quote cells. */
.book-odds{color:var(--book-light,var(--text))}
:root[data-theme=dark] .book-odds{color:var(--book-dark,var(--text))}

/* Logo palette lives in CSS: inline styles are blocked by the server CSP. */
[data-book-color="1xbet"]{--book-light:#2a6ca7;--book-dark:#99b8d5}
[data-book-color="3et"]{--book-light:#38757b;--book-dark:#82bfc5}
[data-book-color="888sport"]{--book-light:#407a1f;--book-dark:#8ac568}
[data-book-color="bally"]{--book-light:#dc0000;--book-dark:#f99c9c}
[data-book-color="ballybet"]{--book-light:#dc0000;--book-dark:#f99c9c}
[data-book-color="bet105"]{--book-light:#ce272c;--book-dark:#eaa2a4}
[data-book-color="bet365"]{--book-light:#157d50;--book-dark:#88c0a8}
[data-book-color="bet99"]{--book-light:#37643b;--book-dark:#a7bba9}
[data-book-color="betano"]{--book-light:#c43e1c;--book-dark:#ff9a80}
[data-book-color="betanouk"]{--book-light:#c43e1c;--book-dark:#ff9a80}
[data-book-color="betcris"]{--book-light:#173359;--book-dark:#abb6c3}
[data-book-color="betfair"]{--book-light:#8c6507;--book-dark:#ffb80c}
[data-book-color="betmgm"]{--book-light:#796b48;--book-dark:#c4b389}
[data-book-color="betobet"]{--book-light:#7f6b23;--book-dark:#c2b485}
[data-book-color="betonline"]{--book-light:#c03031;--book-dark:#e4a6a6}
[data-book-color="betopenly"]{--book-light:#d81920;--book-dark:#f79da0}
[data-book-color="betparx"]{--book-light:#b40a5e;--book-dark:#e2a2c2}
[data-book-color="betr"]{--book-light:#0a3bd3;--book-dark:#9fb3ee}
[data-book-color="betright"]{--book-light:#c208bf;--book-dark:#f88ef6}
[data-book-color="betrivers"]{--book-light:#8d6610;--book-dark:#f7b31c}
[data-book-color="betriversalberta"]{--book-light:#8d6610;--book-dark:#f7b31c}
[data-book-color="betrpicks"]{--book-light:#0a3bd3;--book-dark:#9fb3ee}
[data-book-color="betsafe"]{--book-light:#d70000;--book-dark:#f0a1a1}
[data-book-color="betsson"]{--book-light:#b84a00;--book-dark:#ff9c59}
[data-book-color="betus"]{--book-light:#0856a3;--book-dark:#97b8d8}
[data-book-color="betvictor"]{--book-light:#2b7594;--book-dark:#6bbfe3}
[data-book-color="bluebet"]{--book-light:#0a3bd3;--book-dark:#9fb3ee}
[data-book-color="bodog"]{--book-light:#db0808;--book-dark:#f69c9c}
[data-book-color="bookmaker"]{--book-light:#836b06;--book-dark:#cbb450}
[data-book-color="boomers"]{--book-light:#477196;--book-dark:#9bb8d1}
[data-book-color="bovada"]{--book-light:#cd2a2f;--book-dark:#eaa3a6}
[data-book-color="caesars"]{--book-light:#14705c;--book-dark:#93bdb4}
[data-book-color="coinbase"]{--book-light:#195ff7;--book-dark:#91b4ff}
[data-book-color="coolbet"]{--book-light:#0f7599;--book-dark:#62c1e2}
[data-book-color="coral"]{--book-light:#ca342b;--book-dark:#f89d97}
[data-book-color="crownbet"]{--book-light:#2c3d7c;--book-dark:#afb5cd}
[data-book-color="cryptocom"]{--book-light:#0c255b;--book-dark:#acb5c7}
[data-book-color="dabble"]{--book-light:#794beb;--book-dark:#c0a7ff}
[data-book-color="desertdiamond"]{--book-light:#0c7599;--book-dark:#5bc1e3}
[data-book-color="draftkings"]{--book-light:#3f7a1f;--book-dark:#8dc370}
[data-book-color="epickfantasy"]{--book-light:#277d0f;--book-dark:#43d819}
[data-book-color="fanatics"]{--book-light:#bf3038;--book-dark:#e3a6a9}
[data-book-color="fanaticsmarkets"]{--book-light:#bf3038;--book-dark:#e3a6a9}
[data-book-color="fanduel"]{--book-light:#0069de;--book-dark:#7ab9ff}
[data-book-color="fliff"]{--book-light:#053067;--book-dark:#a8b7ca}
[data-book-color="fourcasters"]{--book-light:#3550a3;--book-dark:#a8b4d7}
[data-book-color="gemini"]{--book-light:#c43e11;--book-dark:#ff9a78}
[data-book-color="goldennugget"]{--book-light:#7b6c3d;--book-dark:#c2b488}
[data-book-color="hardrock"]{--book-light:#6042d0;--book-dark:#b9acea}
[data-book-color="hardrockaz"]{--book-light:#6042d0;--book-dark:#b9acea}
[data-book-color="hardrockfl"]{--book-light:#6042d0;--book-dark:#b9acea}
[data-book-color="hardrockin"]{--book-light:#6042d0;--book-dark:#b9acea}
[data-book-color="hardrockoh"]{--book-light:#6042d0;--book-dark:#b9acea}
[data-book-color="heritage"]{--book-light:#796c43;--book-dark:#dcc479}
[data-book-color="ibet"]{--book-light:#a41414;--book-dark:#dda8a8}
[data-book-color="jazzsports"]{--book-light:#143243;--book-dark:#adb7bd}
[data-book-color="justbet"]{--book-light:#be0000;--book-dark:#e8a3a3}
[data-book-color="kalshi"]{--book-light:#017d56;--book-dark:#14cd93}
[data-book-color="ladbrokes"]{--book-light:#d22527;--book-dark:#eda1a2}
[data-book-color="leovegas"]{--book-light:#752724;--book-dark:#ccafae}
[data-book-color="mrgreen"]{--book-light:#17713b;--book-dark:#94bea5}
[data-book-color="mybookie"]{--book-light:#a95500;--book-dark:#f0a457}
[data-book-color="neds"]{--book-light:#b05205;--book-dark:#ff9d4c}
[data-book-color="neobet"]{--book-light:#a90f3b;--book-dark:#dfa6b6}
[data-book-color="northstarbets"]{--book-light:#1a6fbf;--book-dark:#89b9e7}
[data-book-color="novig"]{--book-light:#735fba;--book-dark:#b9aede}
[data-book-color="ogcom"]{--book-light:#c24208;--book-dark:#f2a17d}
[data-book-color="overtimemarkets"]{--book-light:#26263a;--book-dark:#b5b5bc}
[data-book-color="p6"]{--book-light:#bb481a;--book-dark:#f3a180}
[data-book-color="palmerbet"]{--book-light:#6365ac;--book-dark:#b1b2d6}
[data-book-color="parimatch"]{--book-light:#6e7108;--book-dark:#ebf112}
[data-book-color="parlayplay"]{--book-light:#826b0b;--book-dark:#f1c614}
[data-book-color="partypoker"]{--book-light:#c53c02;--book-dark:#fe9b71}
[data-book-color="pinnacle"]{--book-light:#c14104;--book-dark:#eda37f}
[data-book-color="playalberta"]{--book-light:#21796a;--book-dark:#3cdcc1}
[data-book-color="playnow"]{--book-light:#b31530;--book-dark:#e2a6b0}
[data-book-color="playup"]{--book-light:#007e44;--book-dark:#00f282}
[data-book-color="pointsbet"]{--book-light:#d5183b;--book-dark:#f09eae}
[data-book-color="polymarket"]{--book-light:#1a55ef;--book-dark:#9ab4f8}
[data-book-color="polymarket_us"]{--book-light:#1a55ef;--book-dark:#9ab4f8}
[data-book-color="prizepicks"]{--book-light:#860dff;--book-dark:#d0a1ff}
[data-book-color="prolineplus"]{--book-light:#023c71;--book-dark:#a1b7ca}
[data-book-color="prophetx"]{--book-light:#0a7e39;--book-dark:#72c694}
[data-book-color="rebet"]{--book-light:#b74b26;--book-dark:#e9a68f}
[data-book-color="rivers"]{--book-light:#8d6610;--book-dark:#f7b31c}
[data-book-color="robinhood"]{--book-light:#5d7400;--book-dark:#c2f200}
[data-book-color="sharpag"]{--book-light:#da0a32;--book-dark:#f999ab}
[data-book-color="shuffle"]{--book-light:#7f24ff;--book-dark:#c9a3ff}
[data-book-color="sleeper"]{--book-light:#1e2f46;--book-dark:#b0b6be}
[data-book-color="southpoint"]{--book-light:#806935;--book-dark:#e8bf60}
[data-book-color="sportingbet"]{--book-light:#0b6192;--book-dark:#96bbd0}
[data-book-color="sportsbet"]{--book-light:#056aad;--book-dark:#8cbad9}
[data-book-color="sportsbettingag"]{--book-light:#0c1e7e;--book-dark:#afb5d4}
[data-book-color="sportsinteraction"]{--book-light:#cb3300;--book-dark:#fe9c7a}
[data-book-color="sportzino"]{--book-light:#cf2c0c;--book-dark:#f89d8b}
[data-book-color="stake"]{--book-light:#2a3742;--book-dark:#b0b5b9}
[data-book-color="stn"]{--book-light:#d1272d;--book-dark:#eba2a5}
[data-book-color="stx"]{--book-light:#ba4a17;--book-dark:#ff9c6d}
[data-book-color="tab"]{--book-light:#147d46;--book-dark:#84c3a2}
[data-book-color="tabtouch"]{--book-light:#532f6e;--book-dark:#beb0c8}
[data-book-color="talksportbet"]{--book-light:#766e00;--book-dark:#f6e500}
[data-book-color="thescore"]{--book-light:#2371b0;--book-dark:#92bada}
[data-book-color="tipico"]{--book-light:#ba132e;--book-dark:#e4a3ad}
[data-book-color="titanplay"]{--book-light:#896533;--book-dark:#d9ad71}
[data-book-color="tonybet"]{--book-light:#c93500;--book-dark:#ff9b78}
[data-book-color="tooniebet"]{--book-light:#846915;--book-dark:#d0b253}
[data-book-color="underdog"]{--book-light:#727105;--book-dark:#f8f50a}
[data-book-color="underdogfantasy"]{--book-light:#727105;--book-dark:#f8f50a}
[data-book-color="underdogpredict"]{--book-light:#292b49;--book-dark:#b4b5bf}
[data-book-color="unibet"]{--book-light:#2a7c27;--book-dark:#7ac776}
[data-book-color="virginbet"]{--book-light:#d61c1c;--book-dark:#f39e9e}
[data-book-color="wynn"]{--book-light:#8d6600;--book-dark:#d8b047}
[data-book-color="xbet"]{--book-light:#047e04;--book-dark:#07e107}

.odds-format{margin-left:auto;display:flex;align-items:center;gap:6px;white-space:nowrap}.odds-format select{max-width:115px}

.best-books{display:inline-flex;align-items:center;gap:3px;margin-left:4px;flex-shrink:0}.best-books:empty{display:none}.best-books .book-icon,.best-books .book-favicon{width:12px;height:12px;margin:0}.best-books .book-initials{font-size:7px;line-height:12px}.best-books .book-region{font-size:6px;line-height:7px;right:-2px;bottom:-2px}

.odds-depth{font-size:.8em;font-weight:400;white-space:nowrap;color:var(--muted)}
:root{--bid:#1d5fa6;--ask:#a84e17;--cross-bg:#fdeedd;--cross-other-bg:#e4f0fb;--sel-ring:#df641f;--ref:#1f4e8c}
:root[data-theme=dark]{--bid:#8ab9ee;--ask:#f0a477;--cross-bg:#4a3220;--cross-other-bg:#1d3347;--ref:#9cc0e8}
.ob-summary{margin:12px 0 8px;color:var(--muted)}.ob-summary b{color:var(--text);font-variant-numeric:tabular-nums}.ob-summary .ob-crossed{color:var(--ask)}
#detail-content .ob-wrap{max-height:62vh;border:1px solid var(--border);border-radius:5px}
.ob{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.ob th,.ob td{height:24px;padding:0 8px;border-bottom:1px solid var(--border);white-space:nowrap}
.ob thead th{position:sticky;background:var(--head);z-index:1;font-size:10px;text-transform:uppercase;letter-spacing:.4px;color:var(--muted);top:25px}.ob thead tr:first-child th{top:0;height:26px;font-size:12px;text-transform:none;letter-spacing:0;color:var(--text)}
.ob .ob-title span{font-weight:400;color:var(--muted)}.ob .ob-bid-title{color:var(--bid)}.ob .ob-ask-title{text-align:right;color:var(--ask)}
.ob .ob-split{border-right:1px solid var(--border)}.ob .num{text-align:right}.ob .muted{color:var(--muted)}
.ob .ob-icon{width:22px;padding:0 2px}.ob .book-icon{display:inline-block;vertical-align:middle;margin:0}.ob .ob-name{max-width:120px;overflow:hidden;text-overflow:ellipsis}
.ob .ob-price{font-size:13px}.ob .ob-bid.ob-price{color:var(--bid)}.ob .ob-ask.ob-price{color:var(--ask)}.ob .ob-price small{font-size:10px;font-weight:400;color:var(--muted)}
.ob td.ob-x{background:var(--cross-bg)}.ob td.ob-xo{background:var(--cross-other-bg)}.ob td.ob-fair{background:var(--green-bg)}.ob td.ob-sel{background:var(--cross-bg);box-shadow:inset 0 2px 0 var(--sel-ring),inset 0 -2px 0 var(--sel-ring)}.ob td.ob-stale{opacity:.45}
.ob-ev{display:inline-block;padding:1px 6px;border-radius:9px;font-size:11px}.ob-ev.pos{background:var(--green-bg);color:var(--green);font-weight:650}.ob-ev.ref{color:var(--ref)}.ob-ev.neg{color:var(--muted)}
.detail-stats .book-icon{display:inline-block;vertical-align:-4px;margin:0 5px 0 0}

.detail-bet{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:14px 0 0;font-size:16px}.detail-bet strong{font-variant-numeric:tabular-nums}.detail-back{font-size:11px;font-weight:700;letter-spacing:1px;padding:3px 7px;border-radius:3px;background:var(--bid);color:var(--surface)}.detail-bet .book-icon{display:inline-block}
.detail-where{margin:6px 0 0;font-size:13px}
.detail-refresh{margin:4px 0 0;font-size:11px}.detail-old{color:var(--red);font-weight:650}.detail-alert{margin:10px 0 0;padding:8px 12px;border:1px solid var(--red);border-radius:4px;color:var(--red);font-weight:650}.detail-alert.detail-good{border-color:var(--green);color:var(--green)}.detail-checking{font-weight:650}.detail-verified{color:var(--green);font-weight:650}

.odds-grid .ladder-main{box-shadow:inset 3px 0 0 currentColor}
.odds-grid .ladder-main strong{text-decoration:underline;text-underline-offset:2px}
.detail-mock{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0 0}.detail-mock button{font-weight:650}dialog.detail-wide{width:min(2200px,98vw)}.mock-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:12px}.mock-panel{min-width:0}.mock-panel>h3{margin:0 0 6px;padding-bottom:6px;border-bottom:1px solid var(--border)}.mock-panel>h3 small{font-weight:400}.mock-panel h4{margin:14px 0 6px}.mock-departed{opacity:.6}@media (max-width:1100px){.mock-compare{grid-template-columns:1fr}}
.mock-flag{display:inline-block;margin-right:5px;padding:0 4px;border-radius:3px;font-size:10px;font-weight:700;line-height:15px;background:var(--bid);color:var(--surface);vertical-align:1px;cursor:help}.mock-flag.mock-moved{background:var(--red)}
/* Archive equity curve (archive.js chart). Series: actual = categorical slot 1, model = slot 2. */
:root{--eq-actual:#2a78d6;--eq-model:#eb6834;--eq-band:#8c97a5}:root[data-theme=dark]{--eq-actual:#3987e5;--eq-model:#d95926;--eq-band:#7d8a9a}
.eq-chart{position:relative;background:var(--surface);border:1px solid var(--border);border-radius:4px;padding:8px 8px 0}.eq-chart svg{display:block;overflow:visible}
.eq-grid{stroke:var(--border);stroke-width:1}.eq-zero{stroke:var(--muted)}.eq-axis{fill:var(--muted);font-size:10px}.eq-label{fill:var(--text);font-size:11px;font-weight:600}
.eq-actual{fill:none;stroke:var(--eq-actual);stroke-width:2;stroke-linejoin:round}.eq-model{fill:none;stroke:var(--eq-model);stroke-width:2;stroke-dasharray:5 4}
.eq-band1{fill:var(--eq-band);opacity:.22}.eq-band2{fill:var(--eq-band);opacity:.12}.eq-cross{stroke:var(--muted);stroke-width:1}.eq-dot{fill:var(--eq-actual);stroke:var(--surface);stroke-width:2}
.eq-legend{display:flex;gap:16px;font-size:11px;color:var(--muted);padding:0 4px 4px}.eq-legend span{display:flex;align-items:center;gap:6px}.eq-key{display:inline-block;width:16px;height:0;border-top:2px solid var(--eq-actual)}.eq-key-model{border-top:2px dashed var(--eq-model)}.eq-key-band{height:10px;border:0;background:var(--eq-band);opacity:.35}
.eq-tip{position:absolute;pointer-events:none;background:var(--surface);border:1px solid var(--border);border-radius:4px;padding:6px 8px;font-size:11px;line-height:1.5;box-shadow:0 2px 8px #0003;max-width:240px}
.ar-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}.ar-head h2{margin:0!important}.ar-badge{padding:2px 10px;border-radius:10px;font-weight:700;font-size:11px;text-transform:capitalize;background:var(--head);color:var(--muted)}.ar-badge.ar-won{background:var(--green-bg);color:var(--green)}.ar-badge.ar-lost{background:color-mix(in srgb,var(--red) 14%,transparent);color:var(--red)}.ar-sub{margin:6px 0 0;font-size:13px}.ar-sub .book-icon{display:inline-block;vertical-align:-4px;margin:0 4px 0 0}.detail-stats [title]{cursor:help}.detail-stats small{font-size:11px;font-weight:400}.ar-info{cursor:help;color:var(--muted);font-weight:400}
#detail-content details.main-line{margin:14px 0 4px;border-top:1px solid var(--border)}#detail-content details.main-line>summary small{font-weight:400}

.mock-compare>.main-pair{grid-column:1/-1;margin:4px 0}.main-pair-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.main-half{min-width:0}.main-half>h4{margin:10px 0 0}@media (max-width:1100px){.main-pair-grid{grid-template-columns:1fr}}
.ob-summary:has(.ar-close-at){display:flow-root}.ob-summary .ar-close-at{float:right;margin:-4px 0 0 8px;padding:0 4px;font-size:12px;line-height:1.3}
#manual-panel{overflow:auto;min-height:0;padding:0 16px 24px;flex:1}#manual-panel .mn-quick-rules{max-width:760px}#manual-panel #mn-setup{max-width:1100px}#mn-sessions{max-width:360px}#mn-log td:last-child{white-space:normal;max-width:300px}
.manual-review .mn-actions{position:sticky;top:44px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 0;background:var(--surface);border-bottom:1px solid var(--border);z-index:4}.manual-review .mn-actions label{flex:1;min-width:160px}.manual-review #mn-note{width:100%}.manual-review #mn-trade{background:var(--green-bg);color:var(--green);font-weight:650}
.appbar nav{min-width:0;overflow-x:auto}
