:root {
  --ink: #17181a;
  --panel: #202225;
  --panel2: #292b2f;
  --line: #3b3e43;
  --text: #f3f3f1;
  --muted: #a9acb2;
  --lime: #f2c94c;
  --cyan: #d8d9dc;
  --red: #e87878;
  --amber: #d4af37;
  --gold: #d4af37;
  --yellow: #f2c94c;
  --platinum: #d8d9dc;
  --radius: 16px;
}

html { background: var(--ink); font-family: "DM Sans", system-ui, sans-serif; }
body { background: radial-gradient(circle at 82% -8%, rgba(212,175,55,.11), transparent 31%), var(--ink); }
h1, h2, h3 { font-family: "Sora", sans-serif; letter-spacing: -.045em; line-height: 1.02; }
h1 { font-size: clamp(38px, 5.5vw, 68px); }
h2 { font-size: 25px; }
.eyebrow { font-family: "DM Sans", sans-serif; color: var(--gold); letter-spacing: .2em; }

.topbar { border-color: #33353a; background: rgba(23,24,26,.94); }
.brand { font-family: "Sora", sans-serif; line-height: .92; }
.brand-mark { width: 44px; height: 44px; padding: 5px; background: #25272a; border: 1px solid #494b50; border-radius: 12px; clip-path: none; }
.brand-mark svg { width: 100%; height: 100%; fill: none; stroke: var(--yellow); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark .trophy-cup { fill: var(--gold); stroke: var(--yellow); }
.brand b { color: var(--platinum); font-size: 10px; letter-spacing: .1em; }
.brand strong { color: var(--yellow); font-size: 20px; letter-spacing: -.03em; }
.desktop-nav a.active { color: var(--yellow); }

.panel,
.player-table-wrap,
.league-card,
.auth-card,
.settings-form fieldset { background: linear-gradient(145deg, #24262a, #1e2023); border-color: var(--line); box-shadow: 0 18px 50px rgba(0,0,0,.16); }
.button { border-color: #474a50; background: #2b2d31; font-family: "DM Sans", sans-serif; }
.button-primary { color: #17181a; border-color: var(--gold); background: linear-gradient(135deg, var(--yellow), var(--gold)); box-shadow: 0 8px 24px rgba(212,175,55,.15); }
input, select, textarea { border-color: #41444a; background: #18191b; font-family: "DM Sans", sans-serif; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.14); }

.home-hero h1 { font-size: clamp(58px, 7.5vw, 98px); }
.quick-note-title > span { color: #17181a; background: linear-gradient(135deg, var(--yellow), var(--gold)); }
.recent-notes { background: var(--line); }
.recent-notes article { background: #202225; }
.research-card { background: #202225; border-color: var(--line); }
.research-card[hidden] { display: none !important; }
.research-card:hover { border-color: var(--gold); }
.page-heading-actions { display: flex; gap: 8px; }
.player-avatar { color: var(--yellow); background: #303136; border: 1px solid #45474c; }
.research-intel strong,
.admin-row strong { color: var(--gold); }
.league-card { background: linear-gradient(145deg, #292b2f, #202225); }
.league-card-top { color: var(--gold); }

.position-filter { background: #202225; border-color: var(--line); }
.position-filter button.active { color: #17181a; background: var(--yellow); }
.metric-strip { background: var(--line); border-color: var(--line); }
.metric-strip div { background: #202225; }
.player-table th { background: #1a1b1e; }
.player-table td { border-color: #35383d; }
.player-row:hover { background: #292b2f; }
.row-actions { background: #202225; }
.note-chip { color: var(--platinum); border-color: #46494f; background: #2b2d31; }
.positive { color: var(--yellow); }
.note-actions a, .back-link, .section-heading a, .player-hero > a { color: var(--gold); }
.timeline article { border-color: var(--gold); }
.status-dot { background: var(--gold); box-shadow: 0 0 12px rgba(212,175,55,.55); }
.connector-panel { grid-column: 1 / -1; }
.connector-list { border-top: 1px solid var(--line); }
.connector-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.connector-row:last-child { border-bottom: 0; padding-bottom: 0; }
.provider-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #4b4e54; border-radius: 11px; color: var(--yellow); background: #191a1c; font-weight: 900; }
.provider-mark.provider-yahoo { color: #c7a8ff; }
.provider-mark.provider-mfl { font-size: 11px; }
.connector-copy { min-width: 0; }
.connector-copy > div { display: flex; align-items: center; gap: 9px; }
.connector-copy > span, .connector-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.connector-copy small { line-height: 1.4; }
.connector-actions { display: flex; align-items: center; gap: 12px; }
.connector-actions > a { color: var(--gold); font-size: 10px; font-weight: 700; text-decoration: none; }
.connector-status { padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.connector-status.status-connected { color: var(--yellow); border-color: rgba(212,175,55,.55); }
.connector-status.status-error { color: #f1a0a0; border-color: rgba(232,120,120,.5); }
.connector-error { border-left: 2px solid var(--red); padding-left: 12px; }
.connector-empty-inline { padding: 19px 0 2px; border-top: 1px solid var(--line); }
.connector-empty-inline p { margin: 0 0 4px; color: var(--platinum); font-weight: 700; }
.connector-empty-inline span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.connector-shell > .back-link { display: inline-block; margin-bottom: 28px; text-decoration: none; }
.connector-shell .settings-form { margin-top: 28px; }
.connector-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.connector-help { margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.connector-help strong { color: var(--platinum); }
.field-hint { color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.connector-guide { margin: 0 0 20px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 11px; background: #1a1b1d; }
.connector-guide-featured { border-color: rgba(212,175,55,.5); background: linear-gradient(135deg, rgba(212,175,55,.08), #1a1b1d 55%); }
.connector-guide h3 { margin: 0 0 10px; color: var(--platinum); font: 700 13px "DM Sans", sans-serif; letter-spacing: 0; text-transform: none; }
.connector-guide h3:not(:first-child) { margin-top: 18px; }
.connector-guide ol { margin: 0; padding-left: 21px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.connector-guide li { padding-left: 4px; }
.connector-guide li + li { margin-top: 8px; }
.connector-guide strong { color: var(--platinum); }
.connector-guide p { margin: 13px 0 0; color: var(--gold); font-size: 11px; line-height: 1.5; }
.connector-guide kbd { padding: 2px 5px; border: 1px solid #4b4e54; border-radius: 5px; color: var(--platinum); background: #24262a; font: 700 10px "DM Sans", sans-serif; }
.credential-warning { margin: 10px 0 0; color: #d9cfae; font-size: 10px; line-height: 1.5; }
.credential-notice { display: flex; gap: 13px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(216,217,220,.035); }
.credential-notice > span { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--yellow); }
.credential-notice strong { color: var(--platinum); font-size: 12px; }
.credential-notice p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.connector-empty { margin-top: 28px; }
.connector-empty p { margin-bottom: 18px; }
.auth-switch { color: var(--gold); }
dialog { border-color: var(--line); background: #202225; }
.sentiment-field { margin: 0; padding: 0; border: 0; }
.sentiment-field legend { margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.sentiment-toggle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sentiment-toggle label { display: block; }
.sentiment-toggle input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; pointer-events: none; }
.sentiment-toggle span { min-height: 38px; display: grid; place-items: center; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #191a1c; font-size: 11px; font-weight: 700; cursor: pointer; }
.sentiment-toggle input:checked + span { color: var(--text); border-color: var(--gold); background: rgba(212,175,55,.13); }
.sentiment-toggle label:first-child input:checked + span { color: #f1a0a0; border-color: #9b5353; background: rgba(155,83,83,.16); }
.sentiment-toggle label:last-child input:checked + span { color: var(--yellow); }
.sentiment-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--platinum); }
.sentiment-dot.sentiment-positive { background: var(--yellow); box-shadow: 0 0 8px rgba(242,201,76,.45); }
.sentiment-dot.sentiment-negative { background: var(--red); }
.sentiment-pill { padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; font-size: 9px !important; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.sentiment-pill.sentiment-positive { color: var(--yellow); border-color: rgba(212,175,55,.55); }
.sentiment-pill.sentiment-negative { color: #f1a0a0; border-color: rgba(232,120,120,.5); }
.note-meta { flex-wrap: wrap; }
.note-meta strong { color: var(--platinum); font-size: 11px; }
.note-meta time { margin-left: auto; }
.player-title-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.player-signals { display: flex; align-items: center; gap: 10px; }
.player-signals form { margin: 0; }
.favorite-button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: #202225; font-size: 27px; line-height: 1; cursor: pointer; }
.favorite-button.active { color: var(--yellow); border-color: var(--gold); background: rgba(212,175,55,.12); }
.board-favorite.active { color: var(--yellow); border-color: var(--gold); background: rgba(212,175,55,.12); }
.slot-filter { max-width: 620px; overflow-x: auto; scrollbar-width: none; }
.slot-filter::-webkit-scrollbar { display: none; }
.heat-badge { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--platinum); background: #202225; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.heat-badge.heat-hot { color: var(--yellow); border-color: rgba(212,175,55,.55); }
.heat-badge.heat-cold { color: #f1a0a0; border-color: rgba(232,120,120,.5); }
.heat-score { display: inline-block; min-width: 38px; font-size: 13px; font-variant-numeric: tabular-nums; }
.heat-score.heat-hot { color: var(--yellow); }
.heat-score.heat-cold { color: #f1a0a0; }
.heat-score.heat-neutral { color: var(--platinum); }
.urgency-value, .urgency2-value { color: var(--platinum); font-size: 13px; font-variant-numeric: tabular-nums; }
.urgency-value.urgent, .urgency2-value.urgent { color: var(--yellow); }
.draft-advisor { display: grid; grid-template-columns: repeat(4, auto) 1fr auto; gap: 1px; margin-bottom: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.draft-advisor > div, .draft-advisor > p, .draft-advisor > form { margin: 0; padding: 12px 16px; background: var(--panel); }
.draft-advisor span { display: block; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.draft-advisor strong { display: block; margin-top: 4px; color: var(--yellow); font-size: 14px; }
.draft-advisor p { display: flex; align-items: center; color: var(--muted); font-size: 11px; }
.draft-advisor form { display: flex; align-items: center; }
.draft-advisor form .button { white-space: nowrap; }
.draft-sync { margin-bottom: 14px; padding: 0; overflow: hidden; }
.draft-sync summary { display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer; list-style: none; }
.draft-sync summary::-webkit-details-marker { display: none; }
.draft-sync summary strong { font-size: 12px; }
.draft-sync summary small { margin-left: auto; color: var(--muted); font-size: 10px; }
.draft-roster-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border-top: 1px solid var(--line); background: var(--line); }
.draft-roster-grid section { min-width: 0; padding: 14px; background: var(--panel); }
.draft-roster-grid h3 { margin-bottom: 9px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.draft-roster-grid p { display: flex; flex-direction: column; gap: 5px; margin: 0; color: var(--muted); font-size: 10px; }
.board-sort { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.board-sort button { height: 34px; padding: 0 10px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font-weight: 800; cursor: pointer; }
.board-sort button.active { color: var(--ink); background: var(--yellow); }
.draft-context { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.my-roster { margin: 16px 0; }
.my-roster-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.my-roster-heading h2 { margin-top: 3px; font-size: 19px; }
.my-roster-heading > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.my-roster-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 7px; }
.roster-slot { min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: #1a1b1d; }
.roster-slot > span, .roster-bench > span { display: block; color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.roster-slot strong { display: block; margin-top: 5px; overflow: hidden; color: var(--platinum); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.roster-slot small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.roster-slot.open { border-style: dashed; background: transparent; }
.roster-slot.open strong { color: var(--yellow); }
.roster-bench { display: flex; gap: 10px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.roster-bench p { margin: 0; color: var(--muted); font-size: 11px; }
.roster-fit-label { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; text-transform: capitalize; }
.marginal-value { color: var(--yellow); }
.value-summary { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; padding: 0; overflow: hidden; }
.value-summary > div { min-width: 0; padding: 20px 22px; border-right: 1px solid var(--line); }
.value-summary > div:last-child { border-right: 0; }
.value-summary span, .slot-value-grid span, .projection-grid span { display: block; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.value-summary strong { display: block; margin-top: 7px; font: 700 27px "Sora", sans-serif; }
.value-summary small { display: block; margin-top: 4px; color: var(--muted); }
.rpv-panel, .projection-panel { min-width: 0; }
.section-heading > small { color: var(--muted); font-size: 10px; }
.slot-value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.slot-value-grid > div { padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #1a1b1d; }
.slot-value-grid strong { display: block; margin-top: 6px; font: 700 20px "Sora", sans-serif; }
.slot-value-grid small { color: var(--muted); font-size: 10px; }
.projection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.projection-grid > div { padding: 12px; background: #1a1b1d; }
.projection-grid strong { display: block; margin-top: 5px; font-size: 15px; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 24px; border: 1px solid rgba(232,120,120,.55); border-radius: var(--radius); background: rgba(100,30,30,.12); }
.danger-zone h2 { color: #f1a0a0; }
.danger-zone p { max-width: 620px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.danger-zone form { flex: 0 0 auto; }
.button-danger { color: #fff; border-color: #b95050; background: #983f3f; }
.button-danger:hover { background: #ad4949; }
.intel-dialog { width: min(720px, 94vw); max-height: min(760px, 88vh); padding: 0; overflow: hidden; }
.intel-dialog .dialog-top { position: sticky; top: 0; z-index: 2; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); background: #202225; }
.close-intel-dialog { border: 0; color: var(--muted); background: transparent; font-size: 30px; cursor: pointer; }
.intel-dialog-body { max-height: calc(88vh - 94px); padding: 20px 24px 6px; overflow-y: auto; }
.intel-summary { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; color: var(--muted); font-size: 12px; }
.board-note-timeline article { padding-bottom: 20px; }
.board-note-timeline article:last-child { padding-bottom: 8px; }
.board-note-timeline p { margin-bottom: 8px; }
.note-source-link { color: var(--yellow); font-size: 11px; font-weight: 700; text-decoration: none; }
.bulk-draft-shell > .panel { margin-top: 18px; }
.draft-checkpoint { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 20px; padding: 18px 20px; border: 1px solid rgba(243,196,72,.58); border-radius: var(--radius); background: linear-gradient(135deg, rgba(243,196,72,.13), rgba(243,196,72,.035)); box-shadow: inset 3px 0 0 var(--yellow); }
.draft-checkpoint-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; color: #191a1c; background: var(--yellow); font-size: 21px; font-weight: 900; }
.draft-checkpoint-copy { min-width: 0; }
.draft-checkpoint-copy .eyebrow { margin-bottom: 6px; }
.draft-checkpoint-line { display: flex; align-items: baseline; gap: 9px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.draft-checkpoint-line strong { color: var(--platinum); font-size: 14px; letter-spacing: .03em; }
.draft-checkpoint h2 { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 22px; }
.draft-checkpoint p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.draft-checkpoint p b { color: var(--yellow); }
.confidence { padding: 7px 10px; border: 1px solid var(--gold); border-radius: 999px; color: var(--yellow); font-size: 10px; font-weight: 800; }
.import-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.import-counts > div { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #1a1b1d; text-align: center; }
.import-counts strong { display: block; color: var(--yellow); font: 700 25px "Sora", sans-serif; }
.import-counts span { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.matched-picks { max-height: 360px; margin-bottom: 18px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.matched-picks > div { display: grid; grid-template-columns: 34px 180px 1fr; gap: 10px; padding: 11px 13px; border-bottom: 1px solid var(--line); align-items: center; }
.matched-picks > div:last-child { border-bottom: 0; }
.matched-picks > div > span { color: var(--gold); font-weight: 800; }
.matched-picks small { min-width: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.import-preview details { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.import-preview summary { color: var(--platinum); cursor: pointer; }

/* League-first season experience */
.season-hero { max-width: 980px; padding: 58px 0 54px; }
.season-hero h1 { max-width: 900px; font-size: clamp(58px, 8vw, 104px); }
.season-hero > p { max-width: 670px; margin: 20px 0 26px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.season-hero > div:last-child { display: flex; gap: 10px; }
.home-league-section { margin-bottom: 42px; }
.home-league-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.home-league-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); background: linear-gradient(145deg, #292b2f, #1f2023); box-shadow: 0 18px 50px rgba(0,0,0,.13); text-decoration: none; transition: transform .15s, border-color .15s; }
.home-league-card:hover { transform: translateY(-2px); border-color: rgba(212,175,55,.65); }
.home-league-card > div:first-child, .home-league-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.home-league-card .provider-mark { width: 34px; height: 34px; border-radius: 9px; font-size: 11px; }
.home-league-card h3 { margin-top: 24px; overflow: hidden; font-size: 22px; text-overflow: ellipsis; white-space: nowrap; }
.home-league-card > p { height: 19px; margin: 7px 0 22px; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.home-league-card footer { padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.home-league-card footer b { margin-left: auto; color: var(--yellow); font-size: 18px; }
.sync-state { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sync-state i, .live-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.sync-state.connected i, .sync-state.status-connected i, .live-pill i { background: var(--yellow); box-shadow: 0 0 9px rgba(242,201,76,.5); }
.sync-state.status-error { color: #f1a0a0; }
.sync-state.status-error i { background: var(--red); }
.sync-state.stale, .live-pill.stale { color: #e4bd72; }
.sync-state.stale i, .live-pill.stale i { background: #e4bd72; box-shadow: none; }
.home-workspace { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, .7fr); gap: 18px; align-items: start; }
.home-quick-note { position: sticky; top: 92px; }
.home-quick-note .quick-note-title .eyebrow { margin-bottom: 5px; font-size: 9px; }

.league-grid-live { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.live-league-card { display: flex; min-width: 0; flex-direction: column; }
.league-platform { display: flex; align-items: center; gap: 8px; }
.league-platform .provider-mark { width: 30px; height: 30px; border-radius: 8px; font-size: 9px; font-style: normal; }
.live-league-card h2 { margin: 24px 0 6px; overflow-wrap: anywhere; }
.live-league-card .league-team-name { min-height: 20px; margin: 0 0 20px; color: var(--platinum); font-size: 12px; font-weight: 700; }
.league-card-stats { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 1px !important; margin: 0 -24px; border-block: 1px solid var(--line); background: var(--line); }
.league-card-stats span { display: flex; min-width: 0; flex-direction: column; gap: 5px; padding: 14px 12px; color: var(--muted); background: #1b1c1f; font-size: 9px; text-align: center; text-transform: uppercase; }
.league-card-stats b { color: var(--platinum); font: 700 20px "Sora", sans-serif; }
.league-card-foot { display: flex !important; align-items: center; justify-content: space-between; gap: 10px !important; min-height: 45px; padding: 12px 0; color: var(--muted); font-size: 9px; }
.league-card-foot time { font-size: 9px; }
.league-card-actions { margin-top: auto; }
.league-card-actions .button-primary { flex: 1; }

.league-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 28px 0 22px; }
.league-provider-line { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.league-provider-line .provider-mark { width: 34px; height: 34px; border-radius: 9px; font-size: 10px; }
.league-hero h1 { max-width: 950px; font-size: clamp(48px, 6vw, 76px); overflow-wrap: anywhere; }
.league-hero p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.league-hero-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; color: var(--platinum); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.league-nav { display: flex; gap: 4px; margin-bottom: 22px; padding: 5px; overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; background: #1c1d20; scrollbar-width: none; }
.league-nav::-webkit-scrollbar { display: none; }
.league-nav a { flex: 0 0 auto; padding: 9px 14px; border-radius: 7px; color: var(--muted); font-size: 11px; font-weight: 800; text-decoration: none; }
.league-nav a.active { color: var(--ink); background: var(--yellow); }
.league-nav a:last-child { margin-left: auto; }
.league-alert { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.league-alert h2 { margin-bottom: 0; }
.league-alert p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.league-alert.error { border-color: rgba(232,120,120,.55); }
.league-scorecards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-bottom: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.league-scorecards article { min-width: 0; padding: 20px; background: linear-gradient(145deg, #24262a, #1e2023); }
.league-scorecards span, .league-scorecards small { display: block; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.league-scorecards strong { display: block; margin: 7px 0 5px; color: var(--yellow); font: 700 28px "Sora", sans-serif; }
.league-scorecards .sync-word { font-size: 20px; }
.league-scorecards small { overflow: hidden; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.league-workspace { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(310px, .7fr); gap: 18px; align-items: start; }
.league-main-column { display: grid; gap: 18px; min-width: 0; }
.section-kicker { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.matchup-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 18px; align-items: center; }
.matchup-row > div { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 14px; align-items: center; padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: #1a1b1d; }
.matchup-row > div > span { grid-column: 1 / -1; color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.matchup-row strong { overflow: hidden; color: var(--platinum); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.matchup-row b { grid-column: 2; grid-row: 2 / 4; color: var(--yellow); font: 700 25px "Sora", sans-serif; }
.matchup-row small { color: var(--muted); font-size: 9px; }
.matchup-row em { color: var(--muted); font-size: 9px; font-style: normal; font-weight: 900; }
.live-roster-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.live-player-row { display: grid; min-width: 0; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; color: inherit; background: #1a1b1d; text-decoration: none; }
a.live-player-row:hover { border-color: rgba(212,175,55,.55); }
.live-player-row > div { min-width: 0; }
.live-player-row strong, .live-player-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-player-row strong { color: var(--platinum); font-size: 12px; }
.live-player-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.live-player-row > b { max-width: 80px; overflow: hidden; color: var(--gold); font-size: 9px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.league-tools { position: sticky; top: 92px; }
.league-tools h2 { margin-bottom: 18px; }
.tool-list { border-top: 1px solid var(--line); }
.tool-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.tool-row > span { color: var(--gold); font-size: 9px; font-weight: 900; }
.tool-row > div { min-width: 0; }
.tool-row strong, .tool-row small { display: block; }
.tool-row strong { color: var(--platinum); font-size: 12px; }
.tool-row small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.tool-row > b { color: #777a80; font-size: 8px; letter-spacing: .08em; }
.tool-row.draft-tool > b { color: var(--yellow); font-size: 17px; }
.league-empty-inline { padding: 30px 8px; text-align: center; }
.league-empty-inline strong { color: var(--platinum); font-size: 13px; }
.league-empty-inline p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }

@media (max-width: 760px) {
  .brand-mark { width: 38px; height: 38px; border-radius: 10px; }
  .brand strong { font-size: 17px; }
  .home-hero h1 { font-size: clamp(48px, 14vw, 60px); }
  .mobile-nav { border-color: #3b3e43; background: rgba(24,25,27,.98); }
  .mobile-nav a.active { color: var(--yellow); }
  .row-actions { background: #202225; }
  .player-row:hover .row-actions { background: #292b2f; }
  .player-title-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; }
  .player-title-row > div:first-child { min-width: 0; }
  .player-title-row h1 { max-width: 100%; overflow-wrap: anywhere; word-break: normal; }
  .player-signals { flex-direction: column-reverse; align-items: flex-end; }
  .player-signals,
  .player-signals form,
  .favorite-button { flex: 0 0 auto; }
  .heat-badge { font-size: 9px; }
  .draft-checkpoint { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .draft-checkpoint-icon { width: 36px; height: 36px; font-size: 17px; }
  .draft-checkpoint h2 { font-size: 19px; }
  .draft-context { grid-template-columns: 1fr; }
  .my-roster { padding: 16px; overflow: hidden; }
  .my-roster-heading { align-items: flex-end; }
  .my-roster-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-summary { grid-column: auto; grid-template-columns: 1fr 1fr; }
  .value-summary > div { padding: 16px; }
  .value-summary > div:nth-child(2) { border-right: 0; }
  .value-summary > div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .value-summary strong { font-size: 21px; }
  .slot-value-grid { grid-template-columns: repeat(2, 1fr); }
  .projection-grid { grid-template-columns: repeat(2, 1fr); }
  .board-actions { flex-wrap: wrap; }
  .board-actions select { width: 100%; }
  .matched-picks > div { grid-template-columns: 28px 1fr; }
  .matched-picks small { grid-column: 2; }
  .draft-advisor { grid-template-columns: repeat(2, 1fr); }
  .draft-sync summary { align-items: flex-start; flex-wrap: wrap; }
  .draft-sync summary small { width: 100%; margin-left: 19px; }
  .draft-roster-grid { grid-template-columns: 1fr; }
  .draft-advisor > p { grid-column: 1 / -1; }
  .draft-advisor > form { grid-column: 1 / -1; }
  .draft-advisor > form .button { width: 100%; }
  .danger-zone { align-items: stretch; flex-direction: column; }
  .danger-zone .button { width: 100%; }
  .intel-dialog .dialog-top { padding: 18px; }
  .intel-dialog-body { padding: 18px 18px 4px; }
  .board-note-timeline .note-meta time { width: 100%; margin-left: 0; }
  .connector-row { grid-template-columns: 38px minmax(0, 1fr); gap: 11px; }
  .provider-mark { width: 38px; height: 38px; }
  .connector-actions { grid-column: 2; align-items: stretch; flex-direction: column-reverse; gap: 9px; }
  .connector-actions > a { text-align: center; }
  .connector-actions form .button { width: 100%; min-height: 38px; }
  .connector-copy > div { align-items: flex-start; flex-direction: column; gap: 5px; }
  .connector-grid { grid-template-columns: minmax(0, 1fr); }
  .connector-grid .wide { grid-column: auto; }
  .connector-shell .settings-form fieldset { padding: 18px; }
  .season-hero { padding: 24px 0 34px; }
  .season-hero h1 { font-size: clamp(48px, 14vw, 63px); }
  .season-hero > p { margin: 15px 0 21px; font-size: 14px; }
  .season-hero > div:last-child .button { flex: 1; padding: 0 10px; font-size: 11px; }
  .page-heading > .button { width: auto; padding: 0 13px; font-size: 10px; }
  .page-heading > .button:first-letter { font-size: inherit; }
  .home-league-section { margin-bottom: 28px; }
  .home-league-grid { grid-template-columns: minmax(0, 1fr); }
  .home-league-card { width: 100%; padding: 17px; }
  .home-league-card h3 { margin-top: 20px; font-size: 19px; }
  .home-workspace { grid-template-columns: 1fr; }
  .home-workspace > .panel { padding: 20px; }
  .home-quick-note { position: static; }
  .league-grid-live { display: grid; grid-template-columns: minmax(0, 1fr); }
  .league-card-stats { margin-inline: -24px; }
  .league-hero { display: block; padding: 12px 0 18px; }
  .league-hero h1 { font-size: clamp(42px, 13vw, 58px); }
  .league-hero-actions { justify-content: space-between; margin-top: 20px; }
  .league-nav { display: grid; grid-template-columns: 1fr 1fr; margin-inline: 0; }
  .league-nav a { min-width: 0; text-align: center; }
  .league-nav a:last-child { margin-left: 0; }
  .league-alert { align-items: stretch; flex-direction: column; padding: 19px; }
  .league-alert .button { width: 100%; }
  .league-scorecards { grid-template-columns: 1fr 1fr; }
  .league-scorecards article { padding: 16px; }
  .league-scorecards strong { font-size: 23px; }
  .league-scorecards article:nth-child(2) { border-right: 0; }
  .league-workspace { grid-template-columns: minmax(0, 1fr); }
  .league-main-column { gap: 14px; }
  .league-workspace .panel { padding: 18px; overflow: hidden; }
  .matchup-row { grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); gap: 7px; }
  .matchup-row > div { display: block; padding: 13px; }
  .matchup-row strong { display: block; margin: 7px 0 9px; }
  .matchup-row b { display: block; font-size: 20px; }
  .matchup-row small { display: block; margin-top: 3px; }
  .live-roster-grid { grid-template-columns: minmax(0, 1fr); }
  .league-tools { position: static; }
}
