/* Only the approved header/navigation/sports/filter region. */
.top,.fork-type-filter,#terminalSports,.header-secondary{--ha:#7855ed;--hs:#7755ed15;--hb:#dce3ef;--hp:#ffffff;--hc:#f8faff;--ht:#152239;--hm:#536681;font-family:Inter,'Segoe UI',system-ui,sans-serif;color:var(--ht)}
:root[data-theme=dark] :is(.top,.fork-type-filter,#terminalSports,.header-secondary){--ha:#9c79ff;--hs:#8050fa20;--hb:#23334f;--hp:#0a1423;--hc:#0d1b2f;--ht:#edf1ff;--hm:#a3b5d2}
@media(prefers-color-scheme:dark){:root:not([data-theme]) :is(.top,.fork-type-filter,#terminalSports,.header-secondary){--ha:#9c79ff;--hs:#8050fa20;--hb:#23334f;--hp:#0a1423;--hc:#0d1b2f;--ht:#edf1ff;--hm:#a3b5d2}}
.top :is(button,input,select),.fork-type-filter :is(button,input,select,summary),.header-secondary :is(button,input,select){font-family:inherit}
.top{background:var(--hp);border-color:var(--hb);position:relative!important}
.top .row1{height:auto!important;min-height:58px;padding:8px 20px!important;gap:10px!important;flex-wrap:wrap;overflow:visible!important}
.top .logo{order:0;font:850 italic 21px/1.2 Inter,'Segoe UI',system-ui,sans-serif!important;letter-spacing:-.6px;gap:10px!important;min-width:max-content!important;margin-right:8px}.top .logo svg{width:38px!important;height:38px!important}.top .logo .c{color:inherit}
.top .mode{order:1;margin:0!important;display:flex;padding:3px;background:var(--hc);border:1px solid var(--hb);border-radius:8px;gap:2px}.top .mode button{font-size:11px!important;min-height:30px;padding:7px 16px!important;color:var(--hm)}
.top .mode button[aria-pressed=true]{background:var(--hs)!important;color:var(--ha)!important;box-shadow:inset 0 0 0 1px var(--ha);border-radius:6px}
.top #fxEdit{order:2;display:inline-flex!important;align-items:center;gap:7px;min-height:36px;padding:7px 11px;font-size:11px;border:1px solid var(--hb);border-radius:8px;background:var(--hc);color:var(--ht)}.top #fxv{color:var(--ha)}
.top #soundBtn{order:3;display:inline-flex!important}.top .sp1{order:4;flex:1;display:block!important}.top .hpill:not(.pm):not(.fx){order:4;font-family:inherit}.top .hpill.pm{order:5;padding:4px 7px;display:flex!important;align-items:center;gap:9px;font:11px Inter,'Segoe UI',system-ui,sans-serif!important;border:1px solid var(--hb);border-radius:8px;background:var(--hc)}
.top .hpill.pm #pmBal{font:600 11px Inter,'Segoe UI',system-ui,sans-serif!important;min-height:28px;padding:5px 10px;border:1px solid var(--hb);border-radius:6px;background:var(--hs);color:var(--ha)}
.top #setBtn{order:6}.top #themeBtn{order:7}.top .user{order:8}.top #navAdmin2{order:9}
.top :is(.ib,.user,#navAdmin2){height:36px!important;min-height:36px;border:1px solid var(--hb)!important;background:var(--hc)!important;color:var(--ht)!important;border-radius:8px}.top .ib{width:36px!important;align-items:center;justify-content:center}.top #navAdmin2{color:var(--ha)!important;border-color:var(--ha)!important;padding:7px 14px}
.top .nav{order:10;display:flex!important;flex:1 0 100%!important;width:100%;margin:0!important;padding:6px 0 0!important;gap:6px!important;border-top:1px solid var(--hb);justify-content:space-between;flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:none}
.top .nav button{padding:10px 14px!important;min-height:40px!important;font-size:11px!important;font-weight:650;color:var(--hm);border-radius:7px;flex-shrink:0!important;white-space:nowrap}.top .nav button[aria-pressed=true]{background:var(--hs)!important;border-color:var(--ha)!important;color:var(--ha)!important;box-shadow:inset 0 0 12px #8050ff0a}
#terminalSports{background:var(--hp);display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px!important;padding:8px 20px 10px!important;flex-shrink:0}
#terminalSports .terminal-sport{height:auto!important;aspect-ratio:2.9!important;min-height:0!important;max-height:145px;border:1px solid var(--hb);border-radius:9px!important;background:#0b172a;isolation:isolate;overflow:hidden;padding:0;box-shadow:none}
#terminalSports .terminal-sport .sport-art{display:none!important}
#terminalSports .terminal-sport:before{content:'';display:block!important;position:absolute;inset:0;z-index:-1;background-image:linear-gradient(0deg,#061020c9,transparent 75%),url('/assets/header-sports-20261025.png');background-size:100% 100%,500% auto;background-position:center,0% 40%;background-repeat:no-repeat}
#terminalSports .terminal-sport:nth-child(2):before{background-position:center,25% 40%}#terminalSports .terminal-sport:nth-child(3):before{background-position:center,50% 40%}#terminalSports .terminal-sport:nth-child(4):before{background-position:center,75% 40%}#terminalSports .terminal-sport:nth-child(5):before{background-position:center,100% 40%}
#terminalSports .terminal-sport:after{display:none!important}#terminalSports .terminal-sport b{opacity:1;position:absolute;left:14px;bottom:24px;max-width:95%;font:700 13px/1.2 Inter,'Segoe UI',sans-serif!important;color:#fff;background:none!important;text-shadow:0 1px 4px #000;padding:0!important}#terminalSports .terminal-sport small{position:absolute;left:14px;bottom:9px;margin:0;font:11px/1.2 Inter,'Segoe UI',sans-serif!important;color:#d0daf3;background:none!important;padding:0}
#terminalSports .terminal-sport[aria-pressed=true]{outline:1px solid var(--ha)!important;outline-offset:2px;box-shadow:0 0 14px #835bff55!important}
body.mode-terminal #terminalSports,#terminalSports[hidden],.fork-type-filter[hidden],.header-secondary[hidden]{display:none!important}
.fork-type-filter{display:grid!important;grid-template-columns:1.05fr .9fr 1.1fr 1.1fr 1.1fr 1.1fr;align-items:end!important;gap:12px 18px!important;padding:12px 20px 8px!important;background:var(--hp);border:0;flex-shrink:0;position:relative;z-index:55}
.fork-type-filter>label,.fork-type-filter>.header-picker{display:flex!important;flex-direction:column;gap:4px!important;align-items:stretch!important;align-self:end!important;min-width:0;font-size:11px;color:var(--hm)}
.header-field-title{display:block;white-space:nowrap;font:11px/15px Inter,'Segoe UI',sans-serif!important;color:var(--hm);margin:0}.header-field-value{display:flex;align-items:center;gap:6px;min-width:0;font-size:10px}
.fork-type-filter .header-field-value :is(input,select),.header-secondary .header-field-value select{width:100%;min-width:0;max-width:none;height:36px!important;padding:7px 10px;border:1px solid var(--hb);border-radius:6px;background:var(--hc);color:var(--ht);font-size:12px}
.fork-type-filter .header-field-value select[data-filter-currency]{width:68px;min-width:68px;flex:0 0 68px;padding:6px}
.fork-type-filter .header-picker>.header-field-title{display:none}.fork-type-filter .venue-picker{position:relative;width:100%;align-self:stretch!important}
.fork-type-filter .venue-picker summary{height:40px!important;min-height:40px;display:flex;gap:10px;align-items:center;justify-content:flex-start;border:1px solid var(--hb);border-radius:6px;background:var(--hc);color:var(--ht);padding:8px 11px;font-size:11px;list-style:none;box-sizing:border-box}.fork-type-filter .venue-picker summary:before{content:attr(aria-label);font-size:11px;color:var(--hm)}.fork-type-filter .venue-picker summary:after{content:'⌄';margin-left:auto;color:var(--hm)}
.fork-type-filter .venue-picker-panel{position:absolute!important;top:calc(100% + 6px)!important;left:0!important;right:auto!important;width:260px;max-width:calc(100vw - 28px)!important;margin:0!important;max-height:55dvh!important;overflow:auto;background:var(--hp);color:var(--ht);border:1px solid var(--hb);box-shadow:0 14px 36px #0004;z-index:100}
.fork-type-filter .venue-picker-panel label{color:var(--ht);font-family:inherit;font-size:12px}.fork-type-filter .venue-picker-panel input[type=checkbox]{accent-color:var(--ha)}
body.simple .fork-type-filter>.pro-header-availability{display:none!important}
.header-secondary{display:flex!important;align-items:end;gap:12px!important;flex-wrap:wrap;padding:8px 20px 12px!important;margin:0!important;background:var(--hp)!important;border:0!important;border-bottom:1px solid var(--hb)!important;border-radius:0!important;flex-shrink:0}
body:not(.simple) .header-secondary{display:none!important}
.header-secondary .sbank{display:none!important}.header-secondary .profit-filter-row{display:contents}.header-secondary .header-availability{order:0;width:160px;flex:0 0 160px;display:flex;flex-direction:column;gap:4px;color:var(--hm)}
.header-secondary #personalPhase{order:1}.header-secondary #personalPhase>.lab{display:none}.header-secondary #sSport{order:2}.header-secondary #sMin{order:3}.header-secondary .profit-usd-filter{order:4}.header-secondary .void-profit-filter{order:5}
.header-secondary .srow{display:flex;align-items:center;gap:5px!important;margin:0!important;min-height:36px;flex-wrap:nowrap!important;overflow:visible!important;flex:0 0 auto}.header-secondary .srow .lab{font-size:11px!important;min-width:0!important;margin-right:5px;color:var(--hm)}
.header-secondary .pchip{height:36px!important;min-height:36px!important;padding:6px 10px!important;border:1px solid var(--hb);border-radius:6px;font:600 11px/1.2 Inter,'Segoe UI',sans-serif!important;white-space:nowrap;background:var(--hc);color:var(--hm)}
.header-secondary .pchip[aria-pressed=true]{border-color:var(--ha);background:var(--hs);color:var(--ha);box-shadow:inset 0 0 12px #8050ff0a}
.header-secondary .profit-usd-filter{color:var(--hm);font-size:11px}.header-secondary .profit-usd-filter :is(input,select){height:36px;width:74px;border:1px solid var(--hb);border-radius:6px;background:var(--hc);color:var(--ht);font-size:12px;padding:6px 8px}.header-secondary .profit-usd-filter input{width:70px}
.header-secondary .void-profit-filter{display:flex;align-items:center;gap:7px;min-height:36px;margin:0;color:var(--hm);font-size:11px;white-space:nowrap}.header-secondary input[type=checkbox]{accent-color:var(--ha);width:17px!important;height:17px}
.top :is(button,input,select):focus-visible,.fork-type-filter :is(summary,input,select):focus-visible,.header-secondary :is(button,input,select):focus-visible{outline:2px solid var(--ha);outline-offset:2px}
@media(min-width:1600px){.header-secondary{flex-wrap:nowrap}.header-secondary #sMin{margin-left:auto!important}.header-secondary .header-availability{width:145px;flex-basis:145px}.header-secondary .pchip{padding:6px 9px!important}}
@media(max-width:1250px) and (min-width:701px){.fork-type-filter{grid-template-columns:repeat(3,minmax(0,1fr))}.header-secondary{gap:10px!important}.top .row1{gap:7px!important}.top .nav{justify-content:flex-start}.top .logo{font-size:18px!important}}
@media(max-width:700px){
.top .row1{padding:10px 12px!important;gap:8px!important}.top .logo{display:flex!important;min-width:0!important;font-size:18px!important;gap:6px!important;margin-right:auto}.top .logo>span{display:inline!important}.top .logo svg{width:32px!important;height:32px!important}.top .sp1{display:none!important}
.top .mode{order:7;flex:1 1 48%}.top .mode button{flex:1;min-height:34px}.top #fxEdit{order:8;flex:1 1 44%;min-height:42px;font-size:12px}.top #fxEdit .fx-chevron{display:inline}.top #soundBtn{order:1}.top #setBtn{order:2}.top #themeBtn{order:3;display:inline-flex!important}.top .user{order:4;font-size:0!important;width:36px!important;padding:0!important;display:flex;align-items:center;justify-content:center}.top .user:before{content:'♙';font-size:20px}.top #navAdmin2{order:6;font-size:10px}.top .hpill:not(.pm):not(.fx){display:none!important}
.top .hpill.pm{order:9;flex:1 0 100%;margin:0!important;padding:8px 10px!important;justify-content:space-between;font-size:12px!important}.top .nav{order:10;justify-content:flex-start;mask-image:none!important}.top .nav button{font-size:11px!important;padding:8px 10px!important}
#terminalSports{grid-auto-flow:column!important;grid-template-columns:none!important;grid-auto-columns:64vw!important;overflow-x:auto!important;scroll-snap-type:x mandatory;padding:10px 12px!important;gap:10px!important}#terminalSports .terminal-sport{grid-column:auto!important;aspect-ratio:2.8!important;scroll-snap-align:start}
.fork-type-filter{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px!important;gap:12px!important;width:100%}.fork-type-filter .header-picker>.header-field-title{display:block}.fork-type-filter .venue-picker summary:before{display:none}.fork-type-filter .venue-picker summary{height:38px!important;justify-content:space-between}.fork-type-filter .header-field-value :is(input,select){height:40px!important}.fork-type-filter .header-field-value input{width:100%!important}.fork-type-filter .header-field-value select[data-filter-currency]{width:76px!important;min-width:76px;flex-basis:76px;padding:5px}.fork-type-filter .header-picker:nth-child(2) .venue-picker-panel{left:auto!important;right:0!important}
.header-secondary{padding:0 12px 12px!important;gap:12px!important;align-items:center}.header-secondary .header-availability{flex:1 0 100%;width:100%}.header-secondary .header-field-value select{height:40px!important}.header-secondary #personalPhase{width:100%}.header-secondary .srow{flex-wrap:wrap!important;gap:6px!important;flex:1 0 100%;min-width:0}.header-secondary .srow .lab{min-width:0;flex:1 0 100%;font-size:11px}.header-secondary .pchip{min-height:38px!important;padding:7px 10px!important}.header-secondary .profit-usd-filter{flex-wrap:nowrap!important;flex:1 1 100%;white-space:nowrap}.header-secondary .profit-usd-filter input{flex:1;min-width:0;max-width:180px}.header-secondary .void-profit-filter{flex:1 0 100%}
}

#terminalSports .terminal-sport:nth-child(2):before{background-position:center,25% 22%}#terminalSports .terminal-sport:nth-child(3):before{background-position:center,50% 28%}#terminalSports .terminal-sport:nth-child(5):before{background-position:center,100% 24%}
.top .hpill.pm:before{content:'◁';font-size:19px;line-height:1;color:#28a3ff}
@media(min-width:1251px){
.header-secondary{flex-wrap:nowrap!important;gap:8px!important}
.header-secondary .header-availability{width:132px;flex:0 0 132px}
.header-secondary .srow{gap:4px!important;flex-shrink:0}
.header-secondary .srow .lab{font-size:10px!important;margin-right:2px}
.header-secondary .pchip{font-size:10px!important;padding:6px 7px!important;min-height:34px!important;height:34px!important}
.header-secondary .profit-usd-filter{font-size:10px}.header-secondary .profit-usd-filter input{width:58px}.header-secondary .profit-usd-filter select{width:60px;min-width:60px}
.header-secondary .void-profit-filter{font-size:10px;gap:5px}
}

@media(min-width:1251px){body:not(.simple) .fork-type-filter{grid-template-columns:.95fr .85fr 1.1fr 1.1fr 1.1fr 1.1fr 1fr}}
@media(max-width:700px){body:not(.simple) .fork-type-filter>.pro-header-availability{grid-column:1/-1}}

/* Desktop header: compact two-line filter layout.  Keep the original sports artwork
   and let its character fill the right half of each banner. */
#terminalSports .terminal-sport .sport-art{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:right center!important;z-index:-2!important;opacity:1!important}
#terminalSports .terminal-sport:before{z-index:-1!important;background:linear-gradient(90deg,#07111ff0 0%,#07111fc2 36%,#07111f12 76%),linear-gradient(0deg,#061020a8,transparent 58%)!important;background-size:100% 100%!important;background-position:center!important}
#terminalSports .terminal-sport:nth-child(1) .sport-art{object-position:right 44%!important}
#terminalSports .terminal-sport:nth-child(2) .sport-art{object-position:center 42%!important}
#terminalSports .terminal-sport:nth-child(3) .sport-art{object-position:center 44%!important}
#terminalSports .terminal-sport:nth-child(4) .sport-art{object-position:right 43%!important}
#terminalSports .terminal-sport:nth-child(5) .sport-art{object-position:right 43%!important}
#terminalSports .terminal-sport b{display:flex!important;align-items:center;gap:7px;left:14px!important;bottom:26px!important;z-index:2;font-size:13px!important}
#terminalSports .terminal-sport small{z-index:2;left:14px!important;bottom:10px!important}
#terminalSports .sport-label-icon{display:inline-grid;width:18px;height:18px;place-items:center;border-radius:4px;background:#172843cc;color:#dce9ff;font-size:12px}
#terminalSports .terminal-sport:nth-child(1) .sport-label-icon:after{content:'🎮';font-size:12px}#terminalSports .terminal-sport:nth-child(2) .sport-label-icon:after{content:'◢';color:#ffb427;font-size:17px}#terminalSports .terminal-sport:nth-child(3) .sport-label-icon:after{content:'◆';color:#e13830;font-size:17px}#terminalSports .terminal-sport:nth-child(4) .sport-label-icon:after{content:'◖';color:#d8ad45;font-size:18px}#terminalSports .terminal-sport:nth-child(5) .sport-label-icon:after{content:'◢';color:#ee3d5c;font-size:17px}

@media(min-width:1251px){
  .fork-type-filter{grid-template-columns:1.05fr 1.05fr .9fr 1fr .9fr 1.1fr .95fr!important;gap:8px!important;padding:12px 16px 6px!important}
  .fork-type-filter .header-field-value :is(input,select){height:34px!important;padding:6px 8px!important}
  .fork-type-filter .header-field-value select[data-filter-currency]{width:74px!important;min-width:74px!important;flex:0 0 74px!important;padding:5px 7px!important}
  .fork-type-filter [data-global-book-cap]{width:105px!important;min-width:72px!important;flex:0 1 105px!important}
  .fork-type-filter [data-global-poly-cap]{width:125px!important;min-width:80px!important;flex:0 1 125px!important}
  .fork-type-filter [data-global-kalshi-cap]{width:110px!important;min-width:72px!important;flex:0 1 110px!important}
  .fork-type-filter .venue-picker summary{height:34px!important;min-height:34px!important;padding:6px 10px!important}
  .header-secondary{height:48px;box-sizing:border-box;display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:10px!important;padding:6px 20px 8px!important;overflow:hidden}
  .header-secondary .header-availability{width:156px!important;flex:0 0 156px!important;gap:2px!important;align-self:center!important}
  .header-secondary .header-availability .header-field-value select{height:34px!important;padding:5px 8px!important}
  .header-secondary .void-profit-filter{order:6!important;flex:0 0 auto!important;font-size:11px!important;min-height:34px!important}
  .header-secondary #personalPhase{order:2!important}.header-secondary #sSport{order:3!important}.header-secondary #sMin{order:4!important;margin-left:0!important}.header-secondary .profit-usd-filter{order:5!important}
  .header-secondary .srow{min-height:34px!important;height:34px!important;gap:4px!important}
  .header-secondary .pchip{height:32px!important;min-height:32px!important;padding:5px 8px!important;font-size:10px!important}
  .header-secondary .srow .lab{font-size:10px!important;white-space:nowrap}
  .header-secondary .profit-usd-filter :is(input,select){height:32px!important}.header-secondary .profit-usd-filter input{width:65px!important}.header-secondary .profit-usd-filter select{width:78px!important;min-width:78px!important;flex:0 0 78px!important;padding:5px 8px!important;box-sizing:border-box!important}
  .header-secondary{justify-content:space-between!important;gap:12px!important}
}

.header-secondary .void-profit-filter{padding:6px 10px;border:1px solid var(--hb);border-radius:6px;background:var(--hc);box-sizing:border-box;cursor:pointer;transition:border-color .15s,background .15s}
.header-secondary .void-profit-filter:has(input:checked){border-color:var(--ha);background:var(--hs);color:var(--ha)}
.header-secondary .void-profit-filter input[type=checkbox]{appearance:none;display:grid;place-content:center;flex:0 0 16px;width:16px!important;height:16px!important;margin:0;border:1px solid var(--hm);border-radius:4px;background:transparent;cursor:pointer}
.header-secondary .void-profit-filter input[type=checkbox]:checked{border-color:var(--ha);background:var(--ha)}
.header-secondary .void-profit-filter input[type=checkbox]:checked:after{content:'✓';font-size:12px;line-height:1;color:var(--hp)}
.fork-type-filter .venue-picker-panel{overflow-y:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-padding-block:8px}

/* Keep numeric caps compact while leaving currency names fully readable. */
@media(min-width:1251px){
  .fork-type-filter .header-field-value{gap:6px!important}
  .fork-type-filter [data-filter-currency]{text-overflow:clip!important;white-space:nowrap!important}
}

/* Compact existing controls: no duplicated filter panel and no full-width inputs. */
.fork-type-filter{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:10px 14px!important;padding:12px 20px 10px!important}
.fork-type-filter>.header-picker{flex:0 0 190px;width:190px;min-width:0;align-self:center!important}
.fork-type-filter>label{flex:0 0 auto;width:auto;max-width:100%;flex-direction:row!important;align-items:center!important;align-self:center!important;gap:9px!important;min-height:40px;margin:0}
.fork-type-filter>label>.header-field-title{display:inline;margin:0}
.fork-type-filter .header-field-value{flex:0 0 auto;gap:6px!important}
.fork-type-filter .header-field-value input{width:90px!important;min-width:70px!important;max-width:115px;flex:0 0 90px!important;height:40px!important}
.fork-type-filter .header-field-value select[data-min-availability]{width:160px!important;max-width:160px;min-width:140px;height:40px!important}
.fork-type-filter .venue-picker summary{height:40px!important;min-height:40px!important}
@media(max-width:700px){
 .fork-type-filter{padding:10px 12px!important;gap:8px!important}
 .fork-type-filter>.header-picker{flex:1 1 calc(50% - 8px);width:auto}
 .fork-type-filter>label{flex:1 1 100%;width:100%;justify-content:space-between;min-height:38px}
 .fork-type-filter>label .header-field-value{margin-left:auto}
 .fork-type-filter .header-field-value select[data-min-availability]{width:160px!important}
}

@media(max-width:700px){.fork-type-filter>.header-picker:nth-child(2) .venue-picker-panel{left:auto!important;right:0!important}}
