:root{--sn-floor:#0c121c;--sn-surface:#162130;--sn-edge:#33445a;--sn-text:#f2f6fb;--sn-muted:#b4c2d4;--sn-orange:#ffad68;--sn-blue:#8dcaff;--sn-display:"Arial Narrow","Trebuchet MS",system-ui,sans-serif;color-scheme:dark}
body:is(:has(.hub-shell),[data-page=server-admin],.family-site){background:var(--sn-floor);color:var(--sn-text);font-family:system-ui,sans-serif;font-variant-numeric:tabular-nums}
.hub-shell,.server-main{width:min(100%,1440px);margin:auto;box-sizing:border-box}
:is(.hub-shell,.server-main,.family-shell) :is(h1,h2,.staff-score,.hub-rating){font-family:var(--sn-display);letter-spacing:-.035em;line-height:1.14}
:is(.hub-shell,.server-main,.family-shell) :is(.panel,.admin-panel,.card,.deck-item){border:1px solid var(--sn-edge);border-radius:14px;background:var(--sn-surface);box-shadow:none;color:var(--sn-text)}
.hub-shell .section-heading h1,.server-main h1{font-size:clamp(2rem,5vw,3.5rem)}
:is(.hub-shell,.server-main) .eyebrow{color:var(--sn-orange);letter-spacing:.13em}
.hub-shell .hub-section-context{display:none}
.hub-shell .hub-hero,.hub-shell .auth-panel{background:repeating-radial-gradient(ellipse at 110% 100%,transparent 0 24px,#9acfff15 25px 26px,transparent 27px 48px),linear-gradient(120deg,#172536 25%,#253e58);border-left:4px solid var(--sn-orange)}
.hub-shell .hub-hero{padding:clamp(18px,3vw,36px)}
.hub-hero-copy h2{font-size:clamp(1.7rem,4vw,3rem);margin:.3em 0}
.arena-actions{display:flex;flex-wrap:wrap;gap:8px}.hub-shell .primary{background:var(--sn-orange);color:#211810;border-color:transparent}
.hub-shell .secondary,#arenaMenu button{background:#213448;color:#f4f7fb;border:1px solid #516980}
:is(.hub-shell,.family-shell,.server-main,.server-nav) button{min-height:44px;min-width:44px;touch-action:manipulation}
:focus-visible{outline:3px solid #9bd7ff!important;outline-offset:2px}
button:active{filter:brightness(.86)}button:disabled{opacity:.58}
#headerPlayer{display:flex;align-items:center;gap:8px;color:var(--sn-text);background:transparent;border:0}
#headerPlayer:before{content:'◉';color:var(--sn-orange);font-size:1.35rem}#headerPlayer:empty{display:none}
#arenaMenu{width:min(90vw,410px);box-sizing:border-box;background:#152334;color:var(--sn-text);padding:18px;border:1px solid #577088;border-radius:16px}
#arenaMenu::backdrop{background:#050b14bb}#arenaMenu form{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}#arenaMenuLinks{display:grid;gap:6px}
#arenaMenuLinks button{text-align:left;padding:8px 14px}

#hubTabs .active,.hub-shell .portal-focus-button.active,.garage-subtabs [aria-selected=true]{background:#294263;color:#f2f8ff;box-shadow:inset 0 -3px #ffad68}
#homeJoinedCompetitions [role=button],#leagueCalendar>*:not(p){border-inline-start:3px solid var(--sn-blue);background:#1c3045;border-radius:8px;padding:12px}
#deckList .deck-item{border-top:3px solid var(--sn-orange);display:block;padding:14px}
.deck-item p{display:grid;margin:0;gap:4px}.deck-item small{color:var(--sn-orange);letter-spacing:.12em}.deck-item ol{padding-left:1.65rem}.deck-item li{padding:5px;color:#d2dfed}
#judgeP1Card,#judgeP2Card{border-top:4px solid var(--sn-orange);background:#242932}#judgeP2Card{border-color:var(--sn-blue);background:#182f47}.staff-score{font-size:clamp(2.6rem,8vw,5.5rem)}
#judgeSubmit{border:2px solid var(--sn-orange)}.staff-buttons{gap:7px}#judgeScoreFeedback{position:sticky;top:0;z-index:3;background:#16283a;color:white;padding:.7rem;font-weight:750}
#judgeScoreFeedback:empty{display:none}
.hub-shell .auth-panel{max-width:550px;margin:clamp(20px,5vh,70px) auto;padding:clamp(17px,4vw,34px)}
@media(min-width:1000px){.hub-shell #workspace{padding-left:0;position:relative}}
@media(max-width:999px){#workspace{padding-bottom:env(safe-area-inset-bottom)}.hub-shell .hub-header{position:static}.hub-shell .hub-hero{flex-wrap:wrap}.server-nav{display:flex;flex-wrap:wrap}.hub-shell .tab-panel{scroll-margin-top:10px}#arenaMenu{margin:auto auto max(10px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
.hub-shell #workspace .hub-hero{position:relative;isolation:isolate;overflow:hidden;border-left:4px solid #ffa459;background:repeating-radial-gradient(ellipse at 115% 125%,transparent 0 26px,#8dcaff24 27px 28px,transparent 29px 50px),linear-gradient(110deg,#152234,#233f59)!important;padding:clamp(15px,3vw,30px)!important}
#workspace .hub-hero .hub-hero-copy h2{font-size:clamp(25px,4vw,52px)!important;line-height:1.08}
.hub-shell #workspace .arena-actions .primary,.hub-shell #auth .primary{background:#ffad68!important;color:#241709!important}
#workspace .hub-hero .eyebrow,#workspace .joined-competitions-heading .eyebrow{color:#ffc293!important}

#workspace #hubTabs button.tab.active{color:#ffe0b5!important;box-shadow:inset 0 -3px #ffad68!important}
#workspace #hubTabs button.tab.active::after{display:none}
#workspace .arena-actions button,#workspace .portal-focus-button,#workspace .staff-buttons button{min-height:44px!important}
#workspace .hub-rating{color:#b6dfff!important}
@media(max-width:999px){#workspace .hub-hero{display:block}.hub-shell #workspace .hub-rating{margin-top:12px}.hub-shell #workspace .hub-hero-copy{width:100%}}
@media(max-width:999px){#workspace #hubTabs button.tab.active{background:#2e4058!important;border-color:#52677e!important}}
.arena-match{background:var(--sn-floor);color:var(--sn-text);font-variant-numeric:tabular-nums}.arena-match section{background:var(--sn-surface);border-color:var(--sn-edge)}.arena-match #arenaScoreboard{background:#172536;position:sticky;top:0;z-index:2}.arena-match #arenaScoreboard>:first-child{border-top:4px solid var(--sn-orange)}.arena-match #arenaScoreboard>:last-child{border-top:4px solid var(--sn-blue)}.arena-match button{min-height:44px}.arena-match main{padding-bottom:calc(1rem + env(safe-area-inset-bottom))}

#calendarFilters{width:min(92vw,26rem);box-sizing:border-box;margin:auto auto max(10px,env(safe-area-inset-bottom));background:#152334;color:#f6f8fb;border:1px solid #56718b;border-radius:16px;padding:1rem}
#calendarFilters::backdrop{background:#050b14bb}
#calendarFilters button,#openCalendarFilters{min-height:44px}
#calendarFilters form{margin-top:1rem}
#openCalendarFilters[hidden]{display:none!important}



#workspace [data-panel=home] :is(.section-heading,.joined-competitions-heading button,.joined-competitions-heading .muted,.eyebrow,#dashRating,.portal-community-details){display:none}
#workspace .player-tools{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}
#workspace .player-tools [hidden],#workspace .part-build-slot[hidden]{display:none!important}
#workspace .results-link{background:transparent;color:#a9d8ff;border:0;text-decoration:underline;padding:6px 0}
#workspace .arena-actions{margin:.75rem 0}
#workspace .part-build-slot summary{min-height:44px;align-content:center}
@media(max-width:999px){#workspace input,#workspace select{scroll-margin-bottom:100px}}

/* Shared player destinations */
:root{--sn-floor:#0d1524;--sn-surface:#192638;--sn-edge:#36475c;--sn-orange:#ff985b;--sn-blue:#83c8ff}
#workspace .sn-browse>:not(.sn-landing,.section-heading),#workspace .sn-detail>:is(.sn-landing,.section-heading,.portal-focus-nav,.garage-subtabs),#workspace .sn-browse>.sn-detail-title{display:none!important}
#workspace .sn-browse>.section-heading :is(.eyebrow,p,.mini-counts,.live-chip){display:none!important}
.sn-back,.sn-detail-title,.sn-landing{grid-column:1/-1}
#workspace .sn-back{width:fit-content;background:transparent;border:0;color:#a6d9ff;padding:0 6px}
#workspace .sn-detail-title{margin:6px 0 16px;font-size:clamp(24px,4vw,36px)}
#workspace .sn-group,.sn-home-deck{display:grid;gap:0;margin:0 0 16px;padding:0;background:var(--sn-surface);border:1px solid var(--sn-edge);border-radius:18px;overflow:hidden}
#workspace .sn-row{display:flex;align-items:center;gap:14px;width:100%;min-height:62px;padding:12px 16px;border:0;border-radius:0;background:transparent;color:#f5f8ff;font:650 1rem/1.3 system-ui;text-align:left;text-transform:none;letter-spacing:normal;box-shadow:none}
#workspace .sn-row[hidden]{display:none!important}
#workspace .sn-row+.sn-row{border-top:1px solid var(--sn-edge)}
#workspace .sn-row::after{content:'›';margin-left:auto;color:#9fb9d4;font:24px/1 system-ui}
#workspace .sn-row:hover,#workspace .sn-row:focus-visible{background:#26394e}
#workspace .sn-row:focus-visible{outline-offset:-3px}
.sn-icon{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sn-row .sn-icon{color:var(--sn-orange)}
#workspace .sn-home-deck .sn-row{background:linear-gradient(105deg,#173c59,#192637 72%);min-height:80px}
.sn-home-deck .sn-row span,.sn-identity div{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
.sn-home-deck small,.sn-identity small{color:#c1d6e9;font-size:.83rem;font-weight:500}
.sn-identity{display:flex;gap:14px;align-items:center;margin-bottom:16px}
.sn-identity strong{font-size:1.4rem}.sn-initial,.sn-avatar{display:grid;place-items:center;width:54px;height:54px;border-radius:16px;object-fit:cover;background:#2e4058;color:#ffbe91;font-weight:800}
.sn-stats{display:grid;grid-template-columns:repeat(3,1fr);padding:12px 0;margin:12px 0 16px;border-block:1px solid var(--sn-edge)}
.sn-stats>div{display:grid;gap:3px;text-align:center}.sn-stats>div+div{border-left:1px solid var(--sn-edge)}
.sn-stats span{font-size:.8rem;color:#bccbdb}.sn-stats strong,#workspace [data-panel=home] .sn-stats #dashRating{display:block;font:750 1.55rem/1.2 var(--sn-display);color:var(--sn-text)}
#workspace .sn-title,#workspace .joined-competitions-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
#workspace [data-panel=home] .joined-competitions-heading button{display:block;color:#b3ddff;background:transparent;border:0}
#workspace .sn-recent h2,#workspace .joined-competitions-heading h2{font-size:1.14rem;margin:0}
#workspace .sn-recent p{margin:.4rem 0;color:#c1cede}
#workspace .sn-browse .section-heading h1{font-size:1.7rem}
.sn-filter summary{cursor:pointer;min-height:44px;align-content:center;color:#b7defe}
#workspace .arena-actions button{min-height:50px!important;width:100%;text-align:left;display:flex;justify-content:space-between;align-items:center}
#workspace .tab-icon .sn-icon{display:block}
@media(min-width:1000px){#workspace .sn-landing{max-width:800px}#workspace [data-panel=home]:not(.hidden){max-width:960px}.sn-stats{max-width:650px}}
@media(max-width:999px){.hub-shell .hub-header{padding:8px 16px;min-height:56px}.hub-shell .brand-logo{width:36px;height:36px}#workspace .tab-panel{padding-bottom:env(safe-area-inset-bottom)}.hub-shell #workspace .hub-hero{padding:18px!important}#workspace .sn-landing{padding:0}}
.server-main :is(.admin-panel,.panel),.family-shell :is(.panel,.family-card){background:#192638;border:1px solid #36475c;border-radius:18px}
.family-team>button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:54px;text-align:left;background:#203147;color:#f4f8ff;border:1px solid var(--sn-edge);border-radius:10px;margin:4px 0;padding:10px 14px}.family-team>button::after{content:'›';color:var(--sn-blue)}
#workspace [data-panel=home] .joined-competitions-heading button[data-find]{display:inline-flex!important;align-items:center;width:auto}
.hub-shell .brand b{color:#ff995c!important}.hub-shell .brand span{white-space:nowrap}.hub-shell .brand small{letter-spacing:.12em}
#workspace .section-heading .hub-help-open{color:#aecbe4!important;background:transparent!important;border-color:var(--sn-edge)!important;font-weight:500}
#workspace .sn-browse .section-heading{margin:0 0 12px}
#workspace .sn-detail .portal-focus-pane:not([hidden]){display:block}
#workspace .hub-hero-copy{max-width:none}
@media(min-width:1000px){#workspace [data-panel=home]:not(.hidden){display:grid;grid-template-columns:1.2fr 1fr;align-content:start;align-items:start;gap:16px}#workspace [data-panel=home]>.hub-hero{grid-column:1/-1}#workspace [data-panel=home]>.sn-stats{grid-column:1/-1;margin:0}#workspace [data-panel=home] .sn-home-deck{margin:0}#workspace [data-panel=home] .sn-recent{grid-column:1/-1}}
#workspace #inventoryList .inventory-item{display:flex;align-items:center;flex-wrap:wrap;gap:8px;height:auto;padding:12px;border-bottom:1px solid var(--sn-edge)}
#workspace #inventoryList .inventory-item strong{flex-basis:100%;white-space:normal}
#workspace #inventoryList .inventory-item label{width:5.5rem}
#workspace #inventoryList .inventory-item button{position:static;margin:0;min-height:44px}
.sn-editor summary,.sn-filter summary{list-style-position:inside;padding:10px 4px;min-height:44px;cursor:pointer}
#workspace .sn-editor summary{font-weight:700;color:#ffbd8b}
#workspace .hub-hero-copy .arena-actions .primary span{font-family:system-ui;color:inherit;background:none;border:0}
#workspace .joined-competitions-home .joined-competitions-heading{flex-flow:row nowrap!important;text-align:left!important}
#workspace .joined-competitions-home .joined-competitions-heading>div{width:auto!important}
#workspace .sn-stats-link{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#b3dcff;font-size:.88rem;text-decoration:none;min-height:44px}
#workspace .hub-hero .arena-actions .primary{border:0!important;font-size:1rem!important;font-weight:750}
#workspace .hub-hero .arena-actions .primary span{font-size:20px;line-height:1}
#workspace [data-panel=home]>.sn-row{border-radius:14px;background:#192638;border:1px solid var(--sn-edge)}
#workspace .joined-competitions-home .network-pill{color:#b6e1ff!important;background:#24445b!important}
#workspace #hubTabs .sn-parent-active{box-shadow:inset 0 -3px #ffad68!important;color:#ffbe91!important}
@media(max-width:600px){.hub-shell{padding-inline:16px!important}#workspace .sn-row{font-size:1rem!important}.hub-shell .hub-header{padding-inline:0}.hub-shell #message:empty{display:none}}
#workspace .sn-stats .sn-stat-link{grid-column:1/-1;min-height:44px;justify-content:center;padding:4px;color:#b4dcff;font-size:.88rem!important}.sn-stat-link .sn-icon{width:16px;height:16px}#workspace .sn-stats .sn-stat-link:after{margin-left:0}
body[data-page=server-admin] :is(.server-top,.server-nav){background:#122033;border-color:#36475c}
body[data-page=server-admin] .server-nav :is(button,a){min-height:44px;align-content:center;color:#dce8f6}
body[data-page=server-admin] .server-nav [aria-selected=true]{color:#ffd5af;border-bottom:3px solid #ff985b}
#workspace .staff-buttons details{grid-column:1/-1;width:100%}
.staff-buttons details summary,.arena-player-card details summary{min-height:44px;align-content:center;cursor:pointer}
#workspace #judgeSubmit,.arena-match #finish{background:#ffad68;color:#201609;border:2px solid #ffbf92}
#workspace #judgeScoreFeedback{position:sticky;top:0;z-index:2;background:#162639;padding:10px;font-variant-numeric:tabular-nums}
#workspace .sn-row:disabled{opacity:.65}
.sn-build-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.8rem!important;line-height:1.4}
#workspace [data-panel=performance].sn-browse .section-heading .feedback-actions{display:none!important}
#workspace [data-panel=performance].sn-browse>button:first-child{display:block!important;min-height:44px}
#workspace [data-panel=performance]>.section-heading{background:transparent;border:0}
.sn-explanation{color:#c4d1df;margin:0 0 14px}

/* Page navigation stays in document flow. Extra tabs scroll horizontally. */
.hub-shell #workspace #hubTabs{position:static!important;display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start;align-items:stretch;gap:4px;overflow-x:auto!important;overflow-y:hidden!important;width:100%;max-height:none!important;box-sizing:border-box;margin:0 0 16px!important;padding:6px;background:#152337;border:1px solid var(--sn-edge);border-radius:14px}
.hub-shell #workspace #hubTabs button.tab{display:flex!important;align-items:center;justify-content:center;gap:5px;position:static;flex:0 0 auto;white-space:nowrap;width:auto;min-width:44px;min-height:48px;padding:4px 10px;order:0!important}
.hub-shell #workspace #hubTabs :is(button.hidden,button[data-tab=performance],button#arenaMore){display:none!important}
@media(max-width:700px){
  .hub-shell #workspace #hubTabs button.tab{flex-direction:column;flex:0 0 auto;min-width:max(54px,calc((100% - 16px)/5));width:auto!important;margin:0;padding:4px 0;font-size:12px}
  .hub-shell #workspace #hubTabs .tab-icon{display:block}
}

#workspace .spin-snapshot-archive summary { cursor:pointer; min-height:44px; align-content:center; font-weight:700; }
@media(max-width:767px){
  .hub-shell #workspace .hub-hero {display:flex;flex-wrap:nowrap;gap:6px;padding:6px 8px!important}
  #workspace .hub-hero>.dashboard-profile-photo {width:32px;height:32px}
  #workspace .hub-hero .hub-hero-copy {display:flex;align-items:center;justify-content:space-between;gap:8px}
  #workspace .hub-hero .hub-hero-copy h2 {font-size:1.05rem!important;margin:0}
  #workspace .hub-hero .arena-actions {margin:0;flex:none}
  #workspace .hub-hero .arena-actions button {font-size:.875rem!important;min-height:44px!important;padding:6px 9px}
  #workspace .hub-hero .arena-actions button span {display:none}
  #workspace #portalAnnouncement {height:auto;min-height:56px;max-height:none;padding-block:6px;margin:6px 0 10px}
  #workspace #portalAnnouncement img {flex:0 0 40px;width:40px;height:40px}
  #workspace #portalAnnouncement .portal-announcement-copy {max-height:none}
  #workspace #portalAnnouncement .portal-announcement-copy strong {font-size:.96rem;line-height:1.2}
  #workspace #portalAnnouncement .portal-announcement-copy p {font-size:.84rem;line-height:1.25;-webkit-line-clamp:2;margin:2px 0}
}

#workspace [data-panel=home] .home-assigned .eyebrow {display:block}
