/* Crest Fantasy identity and league workspace. No build step. */
@font-face { font-family: 'Manrope'; src: url('/static/fonts/manrope.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
:root { --bg:#0b1016; --card:#111820; --card2:#1a232d; --border:#26313c; --text:#f0f3f5; --dim:#9aa9b8; --faint:#8293a4; --green:#bdff72; --green-dk:#bdff7210; --blue:#a2c8ff; --rb:#bdff72; --safe-top:env(safe-area-inset-top,0px); --safe-bottom:env(safe-area-inset-bottom,0px); }
body { font-family:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; background:radial-gradient(ellipse at 75% -12%,#23312560,transparent 42%),var(--bg); background-attachment:fixed; }
button,input,select,textarea { -webkit-tap-highlight-color:transparent; }
button,a,input,select,summary { touch-action:manipulation; }
button:focus-visible,a:focus-visible,summary:focus-visible,[tabindex]:focus-visible { outline:2px solid var(--green); outline-offset:4px; }
input:focus-visible,select:focus-visible { outline:2px solid var(--green); outline-offset:2px; }
button:disabled { cursor:default; opacity:.35; }
button { transition:background .16s,color .16s; }
input,select,textarea { min-height:44px; border-radius:10px; }
a { color:var(--green); }
#app { max-width:1152px; padding:0 32px 40px; }
.ui-icon { width:20px; height:20px; display:inline-block; vertical-align:middle; flex:none; }
.topbar { min-height:84px; height:auto; padding:16px 0; gap:8px; border-bottom:1px solid var(--border); background:#0b1016eb; backdrop-filter:blur(18px); }
.topbar .brand { display:flex; align-items:center; gap:9px; color:var(--text); font-size:21px; line-height:1; letter-spacing:2px; font-weight:800; }
.brand img { display:block; width:48px; height:48px; border-radius:12px; }
.brand small { display:block; font-size:9px; font-weight:600; letter-spacing:4px; margin-top:7px; }
.iconbtn { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; padding:10px; color:var(--dim); }
.topbar .sub { margin-right:14px; }
.topbar #install-app { border:1px solid var(--border); font-size:12px; font-weight:700; gap:7px; padding:8px 12px; min-height:38px; }
.btn { min-height:44px; color:#182110; border-radius:10px; font-weight:800; font-size:13px; letter-spacing:.05px; padding:12px 16px; text-align:center; }
.btn .ui-icon { width:17px; height:17px; margin-right:5px; }
.btn.ghost { background:#19222c; font-weight:700; }
.btn.small { min-height:38px; }
.text-button { display:inline-flex; align-items:center; gap:7px; color:var(--green); font-size:12px; font-weight:700; min-height:44px; }
.text-button .ui-icon { width:16px; height:16px; }
.eyebrow { font-size:10px; font-weight:700; letter-spacing:1.6px; line-height:1.5; color:var(--dim); }
.lime { color:var(--green); }
.pill { padding:5px 9px; color:var(--green); border:1px solid #bdff7230; border-radius:6px; background:var(--green-dk); font-size:9px; font-weight:800; letter-spacing:.8px; }
.surface { border:1px solid var(--border); background:var(--card); border-radius:16px; overflow:hidden; margin-bottom:20px; }
.section-top { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:20px 22px 14px; }
.section-top h2 { font-size:16px; font-weight:800; letter-spacing:-.4px; }
.section-top > .ui-icon { color:var(--dim); }
.section-note { color:var(--dim); font-size:12px; line-height:1.8; margin-bottom:16px; }
.surface > .section-note { padding:0 22px; }
.empty-state { padding:42px 24px; color:var(--dim); font-size:13px; text-align:center; display:flex; flex-direction:column; align-items:center; }
.empty-state.compact { padding:12px 20px 26px; font-size:12px; }
.crest-loading { display:flex; align-items:center; justify-content:center; gap:12px; padding:60px 20px; font-size:13px; color:var(--dim); }
.crest-loading > span { height:18px; width:18px; border:2px solid var(--border); border-top-color:var(--green); border-radius:50%; animation:crest-spin .8s linear infinite; }
@keyframes crest-spin { to { transform:rotate(360deg); } }
#app.in-league { max-width:none; padding:0; background:var(--card); }
body:has(#app.in-league) { background:var(--card); }
.in-league #e-content { max-width:1152px; margin:0 auto; padding:24px 32px 40px; }
.in-matchup #e-content, .in-roster #e-content { max-width:none; padding:0; }
.league-controls { height:calc(44px + var(--safe-top)); padding:var(--safe-top) 8px 0; display:grid; grid-template-columns:44px 1fr 44px; align-items:center; background:var(--card); }
.league-controls .week-switch { justify-self:center; border:0; }
.league-controls .week-switch select { font-size:12px; min-height:40px; padding:0 8px; max-width:128px; }
.league-controls .week-switch button { min-height:40px; min-width:36px; }
.league-controls > .iconbtn { height:44px; }
.league-controls > .iconbtn .ui-icon { width:18px; height:18px; }
.in-league .crest-tabs { justify-content:center; }
.topbar.compact { min-height:calc(44px + var(--safe-top)); padding:var(--safe-top) 0 0; }
.crest-tabs { display:flex; gap:36px; border-bottom:1px solid var(--border); }
.crest-tabs button { display:flex; align-items:center; gap:9px; padding:15px 5px 16px; font-size:13px; font-weight:700; color:var(--dim); border-bottom:2px solid transparent; margin-bottom:-1px; }
.crest-tabs button.on { color:var(--green); border-color:var(--green); }
.crest-tabs button:hover { color:var(--text); }
.refreshing .ui-icon { animation:crest-spin 1s linear infinite; }
.week-switch { display:flex; align-items:center; border:1px solid var(--border); border-radius:8px; overflow:hidden; }
.week-switch button { padding:7px; min-width:36px; min-height:36px; color:var(--dim); }
.week-switch button .ui-icon { width:15px; height:15px; }
.week-switch select { padding:0 5px; font-size:11px; font-weight:700; background:transparent; border:0; min-height:36px; width:auto; max-width:115px; }
.connection-alert { border:1px solid #fbbf2440; background:#fbbf240a; color:#f5d389; padding:12px 16px; font-size:12px; border-radius:10px; margin:0 0 18px; }
.page-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:0 0 25px; }
.page-heading h1 { font-size:32px; font-weight:800; letter-spacing:-1.25px; margin-top:4px; line-height:1.3; }
.league-size { color:var(--dim); font-size:12px; }
.team-avatar { position:relative; display:inline-flex; align-items:center; justify-content:center; width:48px; height:48px; flex:none; background:#27313c; border:1px solid #ffffff0b; border-radius:15px; color:var(--text); font-size:13px; font-weight:800; overflow:hidden; }
.team-avatar > span { z-index:0; }
.team-avatar img { position:absolute; inset:0; width:100%; height:100%; padding:7px; object-fit:contain; background:#202a35; opacity:0; }
.team-avatar img.loaded { opacity:1; }
.team-avatar.mini { width:30px; height:30px; font-size:9px; border-radius:9px; }
.team-avatar.mini img { padding:3px; }
.roster-summary { min-height:100px; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:12px 28px; }
.roster-identity { display:flex; align-items:center; gap:14px; min-width:0; flex:1; }
.roster-team-copy { min-width:0; }
.roster-team-copy select { display:block; width:100%; max-width:600px; min-height:40px; text-overflow:ellipsis; padding:0 20px 0 0; border:0; border-radius:0; background:transparent; font-size:22px; font-weight:800; letter-spacing:-.5px; }
.roster-team-copy p { font-size:11px; color:var(--dim); }
.roster-projection { flex:none; text-align:right; font-variant-numeric:tabular-nums; }
.roster-projection strong { display:block; font-size:30px; font-weight:800; letter-spacing:-1px; line-height:1.25; }
.roster-page.yours .roster-projection strong { color:var(--green); }
.roster-projection span { display:block; font-size:10px; color:var(--dim); margin-top:3px; }
.roster-actions { display:flex; align-items:center; border-top:1px solid var(--border); }
.roster-actions .text-button { justify-content:center; flex:1; min-height:44px; padding:0 12px; font-size:12px; }
.roster-actions .text-button + .text-button { border-left:1px solid var(--border); }
.roster-actions .ui-icon { width:16px; height:16px; }
.roster-list .player-table-head { padding:0 28px; height:32px; align-items:center; border-block:1px solid var(--border); }
.roster-list .crest-player { padding:4px 28px; min-height:60px; }
.roster-list .player-identity { min-height:44px; }
.roster-list .player-copy > strong { font-size:14px; }
.roster-list .player-face { width:38px; height:38px; border-radius:9px; }
.roster-moves { border-top:1px solid var(--border); }
.roster-moves > header { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; padding:18px 28px; }
.roster-moves h2 { font-size:14px; font-weight:800; }
.roster-resources { display:flex; flex-wrap:wrap; gap:16px; color:var(--dim); font-size:11px; }
.roster-resources strong { color:var(--text); margin-left:4px; }
.roster-moves > .section-note, .roster-moves > .text-button { margin:0 28px 16px; }
.roster-moves .empty-state, .roster-moves .activity-row { padding:16px 28px; }
.player-table-head { display:grid; grid-template-columns:1fr 70px 62px; text-align:right; padding:11px 20px; font-size:9px; font-weight:700; color:var(--faint); letter-spacing:1px; border-top:1px solid var(--border); background:#ffffff02; }
.player-table-head > :first-child { text-align:left; }
.crest-player { display:flex; align-items:center; gap:8px; min-height:76px; padding:10px 20px; border-top:1px solid #ffffff06; }
.crest-player:hover { background:#ffffff03; }
.crest-player .slot-label { flex:none; width:36px; }
.slot-label { font-size:10px; font-weight:800; color:var(--faint); }
.player-identity { min-width:0; display:flex; align-items:center; flex:1; gap:10px; text-align:left; min-height:48px; }
.player-face { position:relative; display:inline-flex; flex:none; width:46px; height:46px; border-radius:13px; overflow:hidden; align-items:center; justify-content:center; background:linear-gradient(135deg,#2b3845,#18212b); font-size:10px; color:#8c9aaa; }
.player-face img { position:absolute; width:100%; height:100%; object-fit:cover; object-position:center; inset:0; }
.player-copy { min-width:0; }
.player-copy > strong { display:block; font-size:12px; font-weight:800; letter-spacing:-.15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.player-copy > span { display:block; font-size:10px; color:var(--dim); margin-top:5px; }
.player-copy .pos { font-size:9px; }
.player-number { width:54px; text-align:right; flex:none; font-size:13px; font-weight:800; font-variant-numeric:tabular-nums; }
.player-number.projection { width:62px; color:var(--dim); font-size:12px; font-weight:500; }
.injury { display:inline-block; border-radius:3px; color:#ffaaa0; background:#ff7b7217; padding:1px 4px; font-size:8px; vertical-align:1px; font-weight:800; }
.reserve .player-face { opacity:.8; }
.matchup-pager { display:flex; justify-content:center; align-items:center; gap:8px; height:40px; border-bottom:1px solid var(--border); }
.matchup-pager .iconbtn { height:36px; min-height:36px; min-width:40px; border-radius:0; padding:8px; }
.matchup-pager .ui-icon { width:16px; height:16px; }
.matchup-pager select { font-size:11px; font-weight:700; min-height:36px; padding:0 4px; width:auto; max-width:190px; background:transparent; border:0; text-align:center; }
.matchup-deck { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; overscroll-behavior-x:contain; background:var(--card); }
.matchup-deck::-webkit-scrollbar { display:none; }
.matchup-slide { flex:0 0 100%; min-width:0; scroll-snap-align:start; scroll-snap-stop:always; }
.matchup-hero { height:160px; display:grid; grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr); align-items:center; padding:12px 28px; background:linear-gradient(90deg,#bdff7205,transparent 50%),var(--card); }
.matchup-team { display:flex; align-items:center; justify-content:space-between; gap:12px; min-width:0; }
.matchup-team.opponent { flex-direction:row-reverse; text-align:right; }
.matchup-team-identity { min-width:0; }
.matchup-team-identity h2 { font-size:17px; font-weight:800; letter-spacing:-.4px; margin:7px 0 3px; overflow-wrap:anywhere; }
.team-record { font-size:10px; color:var(--dim); }
.team-points { display:flex; flex-direction:column; align-items:flex-end; flex:none; }
.opponent .team-points { align-items:flex-start; }
.hero-score { font-size:48px; font-weight:800; letter-spacing:-2px; line-height:1.15; font-variant-numeric:tabular-nums; }
.your-side .hero-score { color:var(--green); }
.score-projection { color:var(--dim); font-size:12px; font-variant-numeric:tabular-nums; margin-top:3px; }
.score-projection small { font-size:9px; }
.score-projection.espn { color:var(--faint); font-size:10px; margin-top:1px; }
.win-odds { display:grid; grid-template-columns:44px minmax(0,1fr) 44px; align-items:center; gap:10px; padding:10px 28px 4px; background:var(--card); font-variant-numeric:tabular-nums; }
.win-odds strong { font-size:15px; font-weight:800; color:var(--dim); }
.win-odds strong:last-child { text-align:right; }
.win-odds strong.ahead { color:var(--green); }
.odds-bar { height:6px; border-radius:3px; background:var(--card2); overflow:hidden; }
.odds-bar i { display:block; height:100%; background:var(--green); border-radius:3px; }
.win-odds-note { padding:2px 28px 10px; font-size:10px; color:var(--faint); text-align:center; background:var(--card); }
.box-points small.live, .player-number.projection.live { color:var(--blue); }
.versus { align-self:center; text-align:center; font-size:8px; font-weight:700; color:var(--faint); }
.matchup-period { padding:6px 12px; font-size:10px; color:var(--dim); text-align:center; border-top:1px solid var(--border); }
.box-column-head { display:grid; grid-template-columns:minmax(0,1fr) 52px 34px 52px minmax(0,1fr); align-items:center; height:32px; padding:0 28px; border-block:1px solid var(--border); color:var(--dim); font-size:9px; letter-spacing:.5px; }
.box-column-head > :nth-child(2) { text-align:right; }
.box-column-head > :nth-child(3) { text-align:center; }
.box-column-head > :last-child { text-align:right; }
.box-column-head small { display:block; color:var(--faint); font-size:7px; }
.box-row { display:grid; grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr); align-items:center; padding:0 28px; min-height:64px; border-bottom:1px solid #ffffff0a; }
.box-starters .box-row:nth-child(even) { background:#ffffff02; }
.box-row > .slot-label { text-align:center; font-size:9px; }
.box-person { display:grid; grid-template-columns:minmax(0,1fr) 52px; align-items:center; min-width:0; gap:0; }
.box-person.opponent { grid-template-columns:52px minmax(0,1fr); }
.box-identity { display:flex; align-items:center; gap:10px; text-align:left; min-width:0; width:100%; min-height:44px; padding-right:8px; }
.box-name { min-width:0; }
.box-identity strong { display:block; font-size:13px; font-weight:700; letter-spacing:-.2px; line-height:1.35; }
.box-identity small { display:block; color:var(--dim); font-size:10px; margin-top:3px; }
.box-identity .box-short-name { display:none; }
.box-identity .player-face { width:34px; height:36px; border-radius:8px; }
.opponent .box-identity { flex-direction:row-reverse; text-align:right; padding-right:0; padding-left:8px; }
.opponent .box-name { text-align:right; }
.box-points { display:flex; flex-direction:column; align-items:flex-end; gap:3px; font-variant-numeric:tabular-nums; }
.box-points strong { font-size:16px; font-weight:800; line-height:1.2; }
.box-points small { font-size:10px; color:var(--faint); }
.box-points.leading strong { color:var(--green); }
.opponent .box-points { align-items:flex-start; }
.empty-slot { font-size:11px; color:var(--dim); }
.opponent .empty-slot { text-align:right; }
.box-bench h3 { display:flex; align-items:center; padding:0 28px; min-height:44px; font-size:11px; font-weight:700; color:var(--dim); border-bottom:1px solid var(--border); }
.market-search { margin:22px; display:flex; align-items:center; gap:10px; padding:0 14px; border:1px solid var(--border); background:#0c1219; border-radius:10px; }
.market-search .ui-icon { width:18px; color:var(--dim); }
.market-search input { border:0; background:none; padding:14px 0; font-size:13px; }
.market-search input:focus { outline:none; }
.market-search:focus-within { border-color:var(--green); }
.market-filters { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:0 22px 22px; }
.position-chips { display:flex; gap:7px; }
.position-chips button { border:1px solid var(--border); color:var(--dim); background:#19212a; min-width:44px; padding:8px 13px; min-height:38px; border-radius:8px; font-weight:700; font-size:11px; }
.position-chips button.on { background:var(--green); border-color:var(--green); color:#16220c; }
.sort-label { font-size:9px; letter-spacing:1px; color:var(--faint); white-space:nowrap; }
.market-table-head { display:grid; grid-template-columns:1fr 62px 50px; gap:8px; text-align:right; padding:12px 22px; font-size:9px; font-weight:700; letter-spacing:1px; color:var(--faint); background:#ffffff02; border-top:1px solid var(--border); }
.market-table-head > :first-child { text-align:left; }
.player-market .crest-player { padding-left:22px; padding-right:22px; min-height:82px; }
.player-market .player-face { width:52px; height:52px; }
.player-market .player-copy > strong { font-size:13px; }
.player-market .player-number.projection { color:var(--text); font-size:15px; font-weight:800; margin-right:12px; }
.add-player { border:1px solid #bdff7230; color:var(--green); border-radius:10px; height:38px; width:38px; flex:none; background:var(--green-dk); }
.add-player:hover { background:#bdff7225; }
.add-player .ui-icon { width:17px; height:17px; }
.availability { font-size:10px; color:var(--green); padding:4px 8px; border-radius:5px; background:var(--green-dk); margin-right:20px; }
.availability.waiver { color:#f2cc86; background:#fbbf240b; }
.load-more { display:block; margin:22px auto; min-width:170px; }
.market-footnote { color:var(--dim); font-size:10px; text-align:center; padding:18px 20px; border-top:1px solid var(--border); }
.crest-standings { width:100%; border-collapse:collapse; text-align:right; font-variant-numeric:tabular-nums; }
.crest-standings th { font-size:9px; letter-spacing:1px; color:var(--faint); font-weight:700; padding:12px 22px; background:#ffffff02; border-top:1px solid var(--border); }
.crest-standings td { padding:13px 22px; font-size:12px; border-top:1px solid #ffffff06; }
.crest-standings th:nth-child(2),.crest-standings td:nth-child(2) { text-align:left; }
.crest-standings th:first-child,.crest-standings td:first-child { text-align:center; width:55px; }
.crest-standings tr.yours { background:#bdff7209; }
.crest-standings .rank-number { color:var(--faint); font-size:11px; }
.crest-standings .yours .rank-number { color:var(--green); font-weight:800; }
.standing-team { display:flex; align-items:center; gap:12px; font-weight:800; text-align:left; min-height:40px; }
.standing-team small { color:var(--green); font-size:8px; font-weight:800; margin-left:7px; }
.playoff-cut td { border-top:1px dashed #bdff7250; }
.standings-key { font-size:10px; color:var(--dim); padding:16px 22px; border-top:1px solid var(--border); display:flex; gap:9px; align-items:center; }
.standings-key > span { width:20px; border-top:1px dashed #bdff7250; }
.bracket-scroll { overflow-x:auto; padding:10px 22px 26px; scrollbar-color:#394736 transparent; }
.playoff-bracket { display:flex; gap:30px; min-width:max-content; }
.bracket-round { width:230px; flex:none; }
.bracket-round > .eyebrow { margin-bottom:18px; font-size:9px; }
.bracket-games { display:flex; flex-direction:column; justify-content:space-around; gap:25px; height:430px; }
.bracket-game { position:relative; border:1px solid #35404c; border-radius:10px; background:#171f28; }
.bracket-game-label { position:absolute; left:2px; top:-16px; color:var(--faint); font-size:7px; letter-spacing:.7px; }
.bracket-round:not(:nth-last-child(2)) .bracket-game::after { content:''; position:absolute; left:100%; width:30px; top:50%; border-top:1px solid #3a4855; }
.bracket-team { display:flex; align-items:center; gap:8px; padding:10px; min-height:44px; font-size:10px; }
.bracket-team + .bracket-team { border-top:1px solid #ffffff0c; }
.bracket-team .seed { color:var(--dim); font-size:9px; width:12px; flex:none; text-align:center; }
.bracket-team .team-avatar { width:22px; height:22px; border-radius:6px; }
.bracket-team strong { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.bracket-team.yours strong { color:var(--green); }
.bracket-team.bye,.bracket-team.pending { color:var(--faint); padding-left:16px; font-size:10px; }
.bracket-trophy { width:110px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; color:var(--green); text-align:center; }
.bracket-trophy .ui-icon { width:46px; height:46px; stroke-width:1.1; }
.bracket-trophy span { font-weight:800; font-size:12px; letter-spacing:2px; line-height:1.6; }
.activity-row { display:flex; gap:14px; padding:20px 22px; border-top:1px solid #ffffff08; }
.activity-icon { background:var(--card2); color:var(--green); border-radius:10px; width:36px; height:36px; flex:none; display:grid; place-items:center; }
.activity-icon .ui-icon { width:17px; height:17px; }
.activity-title { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:12px; margin-bottom:3px; }
.activity-title .status-label { color:var(--faint); font-size:10px; text-transform:capitalize; }
.activity-row .muted { font-size:11px; }
.activity-items { display:flex; gap:12px; flex-wrap:wrap; font-size:11px; margin:10px 0 6px; }
.added { color:var(--green); }
.dropped { color:#efa59e; }
.activity-row time { color:var(--faint); font-size:10px; }
.overlay { background:#02060bd6; backdrop-filter:blur(9px); padding:24px; z-index:100; }
.modal { border-radius:22px; border:1px solid #3b4855; background:#131b24; max-width:570px; padding:30px; box-shadow:0 20px 90px #0008; }
.modal h2 { font-size:24px; letter-spacing:-.8px; font-weight:800; margin:7px 32px 22px 0; line-height:1.3; overflow-wrap:anywhere; }
.modal .closer { border-radius:50%; width:34px; height:34px; display:grid; place-items:center; padding:7px; background:#26313c; color:var(--dim); }
.modal label { display:block; font-size:12px; color:var(--dim); margin:16px 0 7px; }
.modal .section-note { margin-top:16px; }
.modal .modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:28px; }
.modal details summary { color:var(--dim); font-size:12px; cursor:pointer; }
.player-detail-head { display:flex; align-items:center; gap:16px; padding-top:20px; }
.player-detail-head .player-face { width:85px; height:85px; border-radius:22px; }
.player-detail-head h2 { margin:4px 0; }
.detail-metrics { display:flex; justify-content:space-between; gap:16px; padding:24px 0; margin-top:24px; border-block:1px solid var(--border); text-align:center; }
.detail-metrics strong { display:block; font-size:27px; font-weight:800; letter-spacing:-1px; }
.detail-metrics span { font-size:9px; color:var(--dim); letter-spacing:.8px; }
.move-player { display:flex; align-items:center; gap:14px; border:1px solid #bdff7235; background:var(--green-dk); border-radius:12px; padding:16px; }
.move-player strong { font-size:13px; }
.move-player p { font-size:10px; margin-top:5px; }
.move-tag { font-size:9px; font-weight:800; color:var(--green); margin-left:auto; }
.review-move { font-size:13px; font-weight:700; padding:12px 16px; border:1px solid var(--border); border-radius:10px; margin:8px 0; }
.trade-columns { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:22px 0; }
.trade-columns fieldset { border:0; min-width:0; }
.trade-columns legend { font-size:10px; font-weight:800; text-transform:uppercase; color:var(--dim); letter-spacing:1px; margin-bottom:10px; }
.trade-columns fieldset > div { max-height:290px; overflow:auto; }
.modal .trade-choice { display:flex; align-items:center; gap:9px; padding:9px 5px; margin:0; cursor:pointer; border-bottom:1px solid #ffffff06; }
.trade-choice input { width:16px; height:16px; min-height:0; accent-color:var(--green); flex:none; }
.trade-choice strong { font-size:10px; display:block; color:var(--text); }
.trade-choice small { font-size:9px; display:block; color:var(--dim); margin-top:4px; }
.home-intro { padding:48px 0 30px; }
.home-intro h1 { font-size:42px; font-weight:800; letter-spacing:-1.6px; margin:9px 0; }
.home-intro p { color:var(--dim); font-size:13px; }
.home-leagues { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:20px; }
.home-league { display:block; border:1px solid #bdff7230; border-radius:18px; background:radial-gradient(ellipse at 90% 10%,#bdff7218,transparent 75%),var(--card); padding:26px; color:var(--text); }
.home-league:hover { border-color:#bdff7280; }
.home-league .home-league-top { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:28px; }
.home-league h2 { font-size:23px; letter-spacing:-.7px; margin:8px 0; }
.home-league-bottom { display:flex; align-items:center; justify-content:space-between; margin-top:26px; padding-top:20px; border-top:1px solid var(--border); font-size:12px; color:var(--green); font-weight:700; }
.home-actions { display:flex; gap:12px; margin:26px 0; }
.home-secondary { margin-top:40px; border-top:1px solid var(--border); padding-top:25px; display:flex; gap:20px; align-items:center; }
.home-secondary > span { color:var(--dim); font-size:12px; margin-right:auto; }
.auth-wrap { max-width:400px; margin-top:7vh; }
.auth-wrap .logo img { width:110px; height:110px; border-radius:26px; }
.auth-wrap .logo h1 { font-size:30px; font-weight:800; letter-spacing:-1px; margin:14px 0 8px; }
.auth-wrap .card { padding:24px; border-radius:18px; background:#131b24; }
.auth-wrap input { min-height:46px; }
.auth-wrap .auth-toggle { font-size:12px; }
@media (max-width:1000px) {
  .crest-player { padding-inline:14px; gap:6px; }
  .player-copy > strong { font-size:11px; }
  .player-face { width:38px; height:38px; }
  .crest-player .slot-label { width:29px; font-size:9px; }
  .player-number { width:44px; }
  .player-number.projection { width:48px; }
  .player-table-head { grid-template-columns:1fr 54px 50px; padding-inline:14px; }
}
@media (max-width:760px) {
  #app { padding:0 18px calc(90px + env(safe-area-inset-bottom)); }
  .topbar { min-height:calc(70px + var(--safe-top)); padding:calc(10px + var(--safe-top)) 0 10px; }
  .topbar .brand { font-size:18px; gap:7px; }
  .brand img { width:41px; height:41px; border-radius:10px; }
  .brand small { font-size:8px; letter-spacing:3px; margin-top:6px; }
  .topbar .sub { display:none; }
  .topbar #install-app { border:0; font-size:10px; padding:7px; }
  .topbar #install-app .ui-icon { width:16px; height:16px; }
  .topbar #logout { min-width:34px; padding:7px; }
  .crest-tabs { position:fixed; left:0; right:0; bottom:0; z-index:40; justify-content:space-around; gap:0; border:0; border-top:1px solid #35404c; background:#111820f0; backdrop-filter:blur(18px); padding:5px 8px calc(7px + env(safe-area-inset-bottom)); }
  .crest-tabs button { flex:1; padding:10px 5px 5px; flex-direction:column; gap:6px; border:0; font-size:10px; position:relative; }
  .crest-tabs button .ui-icon { width:21px; height:21px; }
  .crest-tabs button.on::before { content:''; position:absolute; top:-5px; width:28px; height:2px; background:var(--green); }
  .week-switch button { min-width:28px; min-height:32px; padding:4px; }
  .week-switch select { font-size:10px; min-height:32px; max-width:97px; padding:0 2px; }
  .page-heading { gap:12px; margin-bottom:21px; }
  .page-heading .eyebrow { font-size:8px; letter-spacing:1.3px; }
  .page-heading h1 { font-size:27px; letter-spacing:-1px; }
  .section-top { padding:18px 16px 14px; }
  .section-top h2 { font-size:14px; }
  .section-top .muted { font-size:10px; }
  .surface { border-radius:14px; margin-bottom:20px; }
  .crest-player { padding:10px 14px; min-height:74px; }
  .player-copy > strong { font-size:12px; }
  .player-copy > span { font-size:9px; margin-top:4px; }
  .crest-player .slot-label { width:30px; }
  .player-number { width:42px; font-size:12px; }
  .player-number.projection { width:48px; font-size:11px; }
  .player-table-head { grid-template-columns:1fr 54px 48px; font-size:8px; }
  .player-face { width:40px; height:40px; border-radius:11px; }
  .player-identity { gap:8px; }
  .text-button { font-size:10px; gap:5px; }
  .roster-summary { min-height:88px; padding:10px 12px; gap:14px; }
  .roster-identity { gap:10px; }
  .roster-identity .team-avatar { width:38px; height:38px; border-radius:11px; }
  .roster-team-copy select { min-height:36px; font-size:16px; letter-spacing:-.3px; }
  .roster-team-copy p { font-size:9px; }
  .roster-projection strong { font-size:26px; }
  .roster-projection span { font-size:8px; }
  .roster-actions .text-button { font-size:11px; padding-inline:8px; white-space:nowrap; }
  .roster-list .crest-player { padding:3px 12px; min-height:54px; }
  .roster-starters .crest-player { min-height:clamp(50px,calc((100svh - 269px - var(--safe-top) - var(--safe-bottom)) / var(--starters)),62px); }
  .roster-list .player-face { width:34px; height:34px; }
  .roster-list .player-copy > strong { font-size:12px; }
  .roster-list .player-copy > span { font-size:9px; margin-top:3px; }
  .roster-list .player-identity { gap:8px; }
  .roster-list .crest-player .slot-label { width:26px; font-size:9px; }
  .roster-list .player-number { width:46px; font-size:13px; }
  .roster-list .player-number.projection { width:52px; font-size:11px; }
  .roster-list .player-table-head { padding-inline:12px; grid-template-columns:1fr 60px 54px; }
  .roster-moves > header, .roster-moves .empty-state, .roster-moves .activity-row { padding:16px 12px; }
  .roster-moves > .section-note, .roster-moves > .text-button { margin-inline:12px; }
  #app.in-league { padding-bottom:calc(60px + var(--safe-bottom)); }
  .in-league #e-content { padding:24px 16px; }
  .in-matchup #e-content, .in-roster #e-content { padding:0; }
  .in-league .crest-tabs { height:calc(60px + var(--safe-bottom)); padding:5px 8px calc(5px + var(--safe-bottom)); }
  .in-league .crest-tabs button { padding:5px 3px; gap:4px; font-size:9px; line-height:12px; }
  .in-league .crest-tabs button .ui-icon { width:18px; height:18px; }
  .in-league .connection-alert { margin:0; border-radius:0; border-inline:0; }
  .matchup-hero { height:128px; grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr); padding:10px 12px; }
  .matchup-team { gap:4px; }
  .matchup-team-identity .team-avatar { width:34px; height:34px; border-radius:10px; }
  .matchup-team-identity .team-avatar img { padding:4px; }
  .matchup-team-identity h2 { font-size:10px; letter-spacing:0; margin-top:5px; line-height:1.3; }
  .team-record { font-size:8px; }
  .hero-score { font-size:30px; letter-spacing:-1.3px; }
  .win-odds, .win-odds-note { padding-inline:12px; }
  .score-projection { font-size:10px; }
  .score-projection small { font-size:8px; }
  .box-column-head { grid-template-columns:minmax(0,1fr) 43px 28px 43px minmax(0,1fr); padding:0 12px; font-size:8px; }
  .box-row { grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr); padding:0 12px; min-height:48px; }
  .box-starters .box-row { min-height:clamp(48px,calc((100svh - 304px - var(--safe-top) - var(--safe-bottom)) / var(--starters)),64px); }
  .box-person { grid-template-columns:minmax(0,1fr) 43px; }
  .box-person.opponent { grid-template-columns:43px minmax(0,1fr); }
  .box-identity { gap:6px; padding-right:4px; }
  .opponent .box-identity { padding-left:4px; }
  .box-identity .player-face { width:24px; height:30px; border-radius:6px; }
  .box-identity strong { font-size:11px; }
  .box-identity small { font-size:9px; margin-top:2px; }
  .box-identity .game-time { display:none; }
  .box-identity .box-full-name { display:none; }
  .box-identity .box-short-name { display:inline; }
  .box-points strong { font-size:14px; }
  .box-points small { font-size:9px; }
  .box-row > .slot-label { font-size:8px; }
  .box-bench h3 { padding-inline:12px; font-size:10px; }
  .market-search { margin:16px; padding:0 12px; }
  .market-search input { font-size:16px; }
  .market-filters { margin:0 16px 16px; display:block; }
  .position-chips { gap:6px; overflow-x:auto; padding:2px 0; }
  .position-chips button { min-width:34px; min-height:36px; padding:7px 11px; font-size:10px; }
  .sort-label { display:none; }
  .market-table-head { grid-template-columns:1fr 53px 34px; font-size:8px; padding:11px 14px; gap:6px; }
  .player-market .crest-player { padding:12px 14px; position:relative; }
  .player-market .player-face { width:43px; height:43px; }
  .player-market .player-copy > strong { font-size:11px; }
  .player-market .player-copy > span { font-size:9px; }
  .player-market .game-time { display:none; }
  .player-market .player-number.projection { font-size:13px; width:48px; margin-right:7px; }
  .availability { position:absolute; bottom:8px; left:65px; margin:0; padding:0; font-size:8px; background:none; }
  .player-market .player-identity { padding-bottom:12px; }
  .add-player { width:32px; height:34px; border-radius:8px; }
  .player-market .crest-player { min-height:88px; }
  .league-size { display:none; }
  .crest-standings th { padding:10px 9px; font-size:8px; }
  .crest-standings td { padding:11px 9px; font-size:10px; }
  .crest-standings th:first-child,.crest-standings td:first-child { width:25px; padding-left:12px; padding-right:3px; }
  .standing-team { gap:7px; font-size:10px; }
  .standing-team small { font-size:7px; display:block; margin-left:0; }
  .standing-team .team-avatar { width:24px; height:24px; border-radius:7px; }
  .crest-standings td:nth-last-child(-n+2) { font-size:9px; padding-inline:7px; }
  .crest-standings .rank-number { font-size:9px; }
  .standings-key { font-size:9px; padding:14px; }
  .playoff-surface .section-top h2 { font-size:13px; }
  .playoff-surface .pill { font-size:7px; padding:4px 6px; }
  .surface > .section-note { padding-inline:16px; font-size:10px; }
  .bracket-scroll { padding:4px 16px 22px; }
  .bracket-round { width:205px; }
  .bracket-games { height:420px; }
  .activity-row { padding:17px 16px; gap:12px; }
  .activity-title { font-size:11px; }
  .overlay { padding:14px; align-items:center; }
  .modal { padding:24px 20px; border-radius:18px; max-height:calc(100dvh - 40px); }
  .modal h2 { font-size:22px; }
  .modal .section-note { font-size:12px; }
  .home-intro { padding-top:35px; }
  .home-intro h1 { font-size:33px; }
  .home-secondary { flex-wrap:wrap; gap:14px; }
  .home-secondary > span { flex-basis:100%; }
}
@media (max-width:430px) {
  #app { padding-inline:14px; }
  .player-number.projection { width:43px; }
  .player-number { width:37px; }
  .crest-player .slot-label { width:25px; font-size:8px; }
  .player-copy > strong { font-size:12px; }
  .player-face { width:34px; height:39px; }
  .player-table-head { grid-template-columns:1fr 49px 43px; }
  .player-identity { gap:6px; }
  .player-market .player-copy > strong { font-size:12px; }
  .player-market .player-number.projection { font-size:12px; width:42px; }
  .page-heading h1 { font-size:25px; }
  .crest-standings .team-avatar { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}
@media (max-width:360px) {
  .matchup-hero { padding-inline:8px; }
  .hero-score { font-size:26px; }
  .box-row,.box-column-head { padding-inline:8px; }
  .box-identity .player-face { display:none; }
}
@media (max-width:760px) and (max-height:740px) {
  .matchup-hero { height:100px; }
  .matchup-team-identity .team-avatar { width:28px; height:28px; }
  .box-starters .box-row { min-height:clamp(46px,calc((100svh - 276px - var(--safe-top) - var(--safe-bottom)) / var(--starters)),64px); }
}
