/* Presentation layer: shared tokens and layouts, independent of auction/ML logic. */
:root {
    color-scheme: dark;
    --bg: #101419; --panel: #171d24; --panel-2: #1d252e;
    --line: #2a333d; --text: #edf1f5; --muted: #9ba8b6;
    --acid: #82cdb7; --line-hot: #82cdb7; --cyan: #8eb4e6;
    --green: #82cdb7; --red: #e6a0a8; --yellow: #d9be87; --blue: #91b3dc;
}
body { background: var(--bg); font-size: 14px; line-height: 1.5; letter-spacing: 0; }
button, input, select, textarea { font: inherit; }
button { touch-action: manipulation; }
a, button, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:is(a,button,input,select,textarea,summary):focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
h1:focus, #main-content:focus { outline: none; }
input[type=checkbox], input[type=range] { accent-color: var(--acid); }
.app-icon { width: 20px; height: 20px; flex: 0 0 20px; }
.skip-link { position: fixed; top: -70px; left: 20px; z-index: 200; padding: 12px 18px; background: var(--acid); color: var(--bg); border-radius: 10px; }
.skip-link:focus { top: 12px; }
.app-shell { display: grid; grid-template-columns: 216px minmax(0,1fr); min-height: 100vh; min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; width: auto; padding: 30px 18px 20px; background: #13181e; border-right: 1px solid var(--line); backdrop-filter: none; overflow-y: auto; }
.sidebar .brand { display: flex; padding: 0 8px 38px; gap: 10px; }
.sidebar .brand div { display: grid; }
.brand-mark { clip-path: none; border-radius: 11px; background: var(--acid); color: #102820; box-shadow: none; font-size: 18px; font-weight: 750; letter-spacing: -.07em; width: 34px; height: 34px; }
.brand strong { font-size: 17px; font-weight: 650; letter-spacing: -.04em; }
.sidebar nav { display: flex; flex-direction: column; gap: 5px; }
.sidebar .nav-link { width: 100%; min-height: 44px; height: auto; padding: 11px 12px; justify-content: flex-start; gap: 12px; color: var(--muted); border-radius: 10px; font-size: 14px; font-weight: 500; }
.sidebar .nav-link span { display: inline; }
.nav-link:hover { color: var(--text); background: #1b232c; }
.nav-link.active { color: var(--acid); background: #20322f; }
.nav-secondary { display: grid; gap: 5px; border-top: 1px solid var(--line); margin: 20px 0 8px; padding-top: 20px; }
.sidebar .nav-link.new-auction { margin: 14px 0 0; border: 1px solid var(--line); color: var(--text); justify-content: center; }
.sidebar-foot { padding: 18px 8px 0; margin-top: auto; font-size: 12px; color: var(--muted); gap: 8px; }
.sidebar-foot > span { border: none; display: inline; width: auto; height: auto; font-size: 12px; color: var(--muted); }
.sidebar-foot a { color: var(--muted); }
.content { max-width: 1440px; padding: 36px 40px 64px; }
.mobile-top, .mobile-backdrop, .mobile-close { display: none; }
.sidebar .mobile-close { display: none; }
.page-head { align-items: center; gap: 20px; margin: 0 0 28px; }
.page-head h1, .form-page h1 { margin: 0 0 7px; font-size: clamp(25px,2.7vw,32px); font-weight: 650; letter-spacing: -.04em; line-height: 1.2; }
.page-head p, .form-page > p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.head-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.eyebrow, .panel-index { display: none; }
.live-dot { animation: none; box-shadow: none; }
.btn-neon, .btn-ghost, .btn-danger-ghost, .btn-delete-confirm { min-height: 40px; border-radius: 9px; padding: 9px 15px; font-size: 13px; font-weight: 600; gap: 8px; transition: background .15s; }
.btn-neon { color: #102820; background: var(--acid); box-shadow: none; }
.btn-neon:hover { color: #102820; background: #a1dccb; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: #c1cbd5; border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--text); border-color: #5e6d7c; background: #202932; }
.btn-danger-ghost { background: transparent; color: var(--red); border: 1px solid #604048; }
.btn-neon.compact, .btn-ghost.small, .btn-danger-ghost { min-height: 36px; font-size: 12px; padding: 8px 12px; }
button:disabled { opacity: .45; cursor: default; }
.panel { border: 1px solid var(--line); background: var(--panel); border-radius: 14px; box-shadow: none; }
.panel-head { min-height: 58px; padding: 14px 18px; }
.panel-head h2 { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.data-badge, .data-badge.large, .count-badge { background: transparent; color: var(--muted); border: 0; padding: 2px 0; font-size: 12px; letter-spacing: 0; font-weight: 500; }
.panel-head a { font-size: 12px; color: var(--muted); }
.quiet-note, .source-note { font-size: 12px; line-height: 1.7; color: var(--muted); }
.source-note { margin: 16px 0; }
.source-note a, .quiet-note a, .disclosure-body a { text-decoration: underline; text-underline-offset: 3px; }
.kpi-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-bottom: 20px; }
.kpi-card, .kpi-card.primary { min-height: 120px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.kpi-card.primary:after { content: none; }
.kpi-label { font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--muted); }
.kpi-value { font-size: 34px; font-weight: 600; margin: 8px 0; letter-spacing: -.05em; }
.kpi-value.accent { color: var(--text); text-shadow: none; }
.muted-value { font-size: 20px; color: var(--muted); }
.kpi-foot { font-size: 11px; color: var(--muted); line-height: 1.5; }
.role-strip { gap: 10px; margin-bottom: 22px; grid-template-columns: repeat(4,minmax(0,1fr)); }
.role-stat { border-radius: 11px; padding: 12px; gap: 10px; background: transparent; grid-template-columns: 30px minmax(0,1fr); }
.role-stat.active { background: #1e2b2a; border-color: #568c7c; }
.role-code { width: 30px; height: 30px; font-size: 12px; }
.role-data { gap: 3px; }
.role-data strong { font-size: 12px; font-weight: 550; }
.role-data small { color: var(--muted); font-size: 11px; }
.role-bar { display: none; }
.role-avatar { border-radius: 8px; font-weight: 600; font-size: 11px; }
.role-p .role-code, .role-avatar.role-p, .mini-role.role-p, .roster-title.role-p span, .completion-role-head.role-p > span { background: #3b3425; color: var(--yellow); }
.role-d .role-code, .role-avatar.role-d, .mini-role.role-d, .roster-title.role-d span, .completion-role-head.role-d > span { background: #263448; color: var(--blue); }
.role-c .role-code, .role-avatar.role-c, .mini-role.role-c, .roster-title.role-c span, .completion-role-head.role-c > span { background: #253c33; color: var(--green); }
.role-a .role-code, .role-avatar.role-a, .mini-role.role-a, .roster-title.role-a span, .completion-role-head.role-a > span { background: #402c34; color: var(--red); }
.auction-grid { grid-template-columns: minmax(0,1.7fr) minmax(270px,1fr); gap: 20px; }
.right-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.advisor-panel { order: 3; }
.search-wrap { border-radius: 9px; background: #12181f; border-color: var(--line); height: 44px; margin: 14px 16px; }
.search-wrap input { font-size: 13px; }
.search-wrap kbd { color: var(--muted); font-size: 11px; white-space: nowrap; }
.search-wrap > span { color: var(--muted); }
.search-wrap:focus-within { border-color: var(--acid); box-shadow: none; }
.player-list { max-height: 455px; }
.player-panel { display: flex; flex-direction: column; }
.player-panel > .panel-head { order: 0; }
.player-panel > .search-wrap { order: 1; }
.player-panel > .bid-dock { order: 2; }
.player-panel > .player-list { order: 3; }
.player-panel > .panel-link { order: 4; }
.player-row { min-height: 74px; padding: 0 8px 0 0; gap: 2px; border-color: var(--line); cursor: default; }
.player-row:hover, .player-row.selected { background: #1d292b; }
.player-row.selected { box-shadow: inset 2px 0 var(--acid); }
.player-select { flex: 1; min-width: 0; width: 100%; display: flex; align-items: center; gap: 12px; border: none; background: transparent; text-align: left; color: var(--text); padding: 13px 10px 13px 18px; cursor: pointer; }
.player-main { gap: 3px; }
.player-main strong { font-size: 13px; font-weight: 550; }
.player-main small { font-size: 11px; text-transform: none; color: var(--muted); }
.availability-inline { font-size: 11px; color: var(--muted); white-space: normal; }
.availability-inline.has-warning { color: var(--yellow); }
.fvm-cell { width: 68px; flex: 0 0 68px; gap: 2px; }
.fvm-cell strong { font-size: 20px; font-weight: 600; color: var(--text); }
.fvm-cell small { font-size: 10px; color: var(--muted); letter-spacing: 0; }
.icon-btn { width: 34px; height: 34px; flex-basis: 34px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.icon-btn:hover, .icon-btn.is-favorite { color: var(--acid); background: #25332f; }
.target-tag { border: none; background: #25332f; border-radius: 6px; color: var(--acid); font-size: 10px; padding: 4px 7px; }
.panel-link { height: 42px; padding-inline: 18px; font-size: 12px; color: var(--muted); }
.bid-dock { padding: 18px; gap: 14px; background: #1b242c; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: end; border-color: var(--line); }
.bid-player { grid-column: 1/-1; }
.bid-player strong { font-size: 15px; }
.bid-player small { font-size: 12px; color: var(--muted); white-space: normal; }
.bid-availability { grid-column: 1/-1; grid-row: auto; color: var(--muted); font-size: 12px; }
.bid-availability summary { cursor: pointer; }
.bid-dock label { font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--muted); }
.bid-dock label.note-field { grid-column: auto; }
.bid-dock input { height: 40px; border-radius: 8px; font-size: 14px; background: var(--bg); border-color: var(--line); }
.bid-dock > .btn-neon, .bid-dock > .btn-danger-ghost { min-width: 0; width: 100%; }
.watch-items { max-height: 365px; overflow-y: auto; }
.watch-items, .player-list, .opponent-list { scrollbar-width: thin; scrollbar-color: #495866 transparent; }
.watch-items::-webkit-scrollbar, .player-list::-webkit-scrollbar, .opponent-list::-webkit-scrollbar { width: 6px; }
.watch-items::-webkit-scrollbar-thumb, .player-list::-webkit-scrollbar-thumb, .opponent-list::-webkit-scrollbar-thumb { border-radius: 6px; background: #495866; }
.watch-row { min-height: 61px; gap: 8px; padding: 12px 14px; border-color: var(--line); }
.opponent-list { max-height: 300px; }
.opponent-row { display: grid; grid-template-columns: 22px minmax(0,1fr) 58px auto; padding: 12px; }
.mini-role { border-radius: 6px; font-size: 10px; }
.opponent-search { height: 40px; border-radius: 8px; background: var(--bg); border-color: var(--line); }
.opponent-search input { font-size: 12px; }
.opponent-price { height: 34px; border-color: var(--line); background: var(--bg); border-radius: 7px; }
.opponent-price input { font-size: 13px; color: var(--text); }
.opponent-price span { font-size: 9px; }
.restore-market { font-size: 10px; min-height: 34px; border-color: var(--line); background: transparent; border-radius: 7px; }
.no-results { color: var(--muted); font-size: 13px; padding: 30px 18px; }
.compact-empty { padding: 22px 16px; font-size: 12px; }
.disclosure-panel > summary { min-height: 56px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 550; }
.disclosure-panel > summary::-webkit-details-marker { display: none; }
.disclosure-panel > summary::after { content: "+"; color: var(--muted); font-size: 18px; margin-left: auto; font-weight: 400; }
.disclosure-panel[open] > summary::after { content: "−"; }
.disclosure-panel[open] > summary { border-bottom: 1px solid var(--line); }
.disclosure-body { padding: 4px 20px 20px; }
.disclosure-body p { font-size: 13px; line-height: 1.8; color: var(--muted); max-width: 90ch; }
.inline-notice { color: var(--yellow); margin: 0 0 18px; padding: 12px 16px; border-left: 2px solid var(--yellow); background: #302c2380; border-radius: 4px 10px 10px 4px; font-size: 13px; }
.inline-notice summary { cursor: pointer; }
.inline-notice p { color: var(--muted); line-height: 1.7; margin-bottom: 0; }
.inline-notice a { text-decoration: underline; }
.advisor-hero { border: none; background: transparent; padding: 0; margin: 18px; }
.advisor-orb { display: none; }
.advisor-hero strong { font-size: 13px; }
.advisor-hero p { font-size: 12px; color: var(--muted); }
.role-budget-list .grow strong, .budget-numbers small, .delta { font-size: 11px; color: var(--muted); }
.budget-benchmark { margin: 16px 18px; }
.completion-panel, .roster-panel { border-color: var(--line); margin-top: 20px; overflow: hidden; }
.completion-summary { background: #1b2727; padding: 16px 18px; min-height: 62px; }
.completion-summary strong { font-size: 13px; }
.completion-summary small { font-size: 12px; color: var(--muted); }
.completion-summary.warning { background: #30262b; }
.completion-kpi strong { font-size: 22px; }
.completion-role, .roster-role { background: var(--panel); }
.completion-role-head { padding: 14px; }
.completion-role-head strong { font-size: 12px; }
.completion-role-head small { font-size: 11px; color: var(--muted); }
.completion-player { min-height: 62px; padding: 12px; border-color: var(--line); grid-template-columns: minmax(0,1fr) auto; }
.completion-player strong { font-size: 12px; }
.completion-player small { font-size: 10px; color: var(--muted); text-transform: none; }
.completion-player i { display: none; }
.completion-role-total { font-size: 11px; min-height: 42px; color: var(--muted); }
.completion-role-total strong { font-size: 11px; }
.completion-reasons { padding: 0 18px 10px; }
.completion-reasons p { font-size: 12px; line-height: 1.7; }
.roster-title strong { font-size: 13px; }
.roster-title small, .roster-player small, .empty-slot { font-size: 11px; color: var(--muted); }
.roster-player { min-height: 54px; height: auto; border-color: var(--line); }
.roster-player strong { font-size: 12px; }
.roster-price { font-size: 13px; }
.value-delta { font-size: 10px; }
.roster-player .icon-btn { width: 28px; flex-basis: 28px; height: 32px; }
.rebalance-banner { background: transparent; border: 0; padding: 0 0 12px; min-height: 0; color: var(--muted); }
.rebalance-banner strong { text-transform: none; font-weight: 400; letter-spacing: 0; font-size: 12px; }
.toast-line { margin: 0 0 18px; font-size: 13px; padding: 12px 16px; border-radius: 10px; }
.catalog-tools { gap: 10px; padding: 14px 18px; display: flex; flex-wrap: wrap; align-items: center; }
.catalog-tools .search-wrap { margin: 0; flex: 1 1 220px; }
.catalog-tools .filter-row { padding: 0; }
.filter-pill { min-height: 34px; height: auto; padding: 6px 12px; font-size: 12px; font-weight: 500; background: transparent; border-color: var(--line); }
.filter-pill.active { background: #29363a; border-color: #758897; }
.filter-row { gap: 6px; }
.role-letter { display: none; }
.table-wrap { max-height: 65vh; max-height: 65dvh; overscroll-behavior: contain; }
.fanta-table th { font-size: 11px; font-weight: 500; background: #1b222a; letter-spacing: 0; text-transform: none; padding: 14px 18px; color: var(--muted); white-space: nowrap; }
.fanta-table td { padding: 14px 18px; font-size: 13px; color: #bdc7d2; border-color: var(--line); vertical-align: top; }
.fanta-table td strong { font-weight: 550; }
.fanta-table tr:hover td { background: #1d252d; }
.table-player { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.table-player > span:last-child { display: grid; gap: 3px; }
.table-player small { color: var(--muted); font-size: 11px; }
.big-fvm { font-size: 17px; font-weight: 600; color: var(--text); }
.row-detail { font-size: 12px; min-width: 90px; }
.row-detail summary { cursor: pointer; color: var(--muted); }
.row-detail p { min-width: 160px; max-width: 32ch; color: var(--muted); font-size: 12px; line-height: 1.6; }
.player-insights { min-width: 180px; }
.catalog-panel > .head-actions { justify-content: flex-end; padding: 14px 18px; font-size: 12px; color: var(--muted); }
.source-disclosure { margin: 18px 0; color: var(--muted); font-size: 12px; }
.source-disclosure summary { cursor: pointer; padding: 8px 0; }
.source-disclosure .insights-status { padding: 12px 0; font-size: 12px; }
.source-disclosure button { margin-top: 12px; }
.price-context { margin-bottom: 20px; padding: 16px 20px; gap: 12px; background: transparent; }
.price-context strong { font-size: 13px; font-weight: 550; }
.price-context p { margin: 4px 0 0; font-size: 12px; }
.price-context .price-inputs { gap: 12px; }
.price-inputs input { padding: 9px 12px; background: var(--panel); }
.price-toggle { font-size: 12px; white-space: nowrap; }
.price-method { padding: 0; margin-top: 20px; }
.price-method > summary { padding: 16px 20px; }
.price-role-grid { gap: 12px; }
.price-role { padding: 12px; gap: 8px; background: var(--panel-2); border-radius: 10px; }
.price-role > strong { font-size: 23px; }
.price-table .role-avatar { margin: 0; display: inline-grid; }
.price-table td:last-child { max-width: none; font-size: 12px; }
.lineup-panel { margin: 0 0 20px; padding: 24px; }
.lineup-panel .section-head h2 { font-size: 19px; font-weight: 600; margin: 0; letter-spacing: -.03em; }
.lineup-module select { background: var(--panel-2); color: var(--text); border-color: var(--line); font-size: 13px; padding: 9px 12px; }
.lineup-module { font-size: 12px; }
.lineup-overview { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 16px 0; font-size: 12px; color: var(--muted); }
.lineup-overview strong { font-size: 14px; color: var(--text); font-weight: 550; }
.lineup-panel .lineup-pitch { background: #131e22; border: 1px solid #2b3b3f; padding: 24px 16px; gap: 20px; margin: 20px 0; border-radius: 12px; }
.lineup-panel .lineup-player { background: #1c282f; border: 1px solid #33434a; border-radius: 10px; padding: 13px 9px; gap: 5px; flex-basis: 130px; }
.lineup-player .lineup-score { font-size: 12px !important; color: var(--acid) !important; }
.lineup-player-heading, .lineup-player-status { display: flex; align-items: center; justify-content: center; gap: 9px; }
.lineup-player-heading .role-avatar { width: 23px; height: 23px; flex-basis: 23px; font-size: 10px; border-radius: 6px; }
.lineup-player-status { font-size: 11px; color: var(--muted); }
.lineup-disclosure.has-warnings > summary { color: var(--yellow); }
.lineup-player summary { color: var(--muted); font-size: 11px; }
.lineup-panel .lineup-switch-card { margin: 0 0 18px; padding: 12px 16px; background: #21302b; border-color: #37594b; }
.lineup-panel .lineup-switch-card h3 { font-size: 14px; font-weight: 550; margin: 0 0 5px; }
.lineup-switch-card small { font-size: 12px; color: var(--muted); }
.lineup-disclosure { margin: 14px 0; font-size: 12px; color: var(--muted); }
.lineup-disclosure > summary { padding: 10px 0; }
.lineup-panel h3 { font-size: 14px; font-weight: 550; margin: 22px 0 14px; }
.lineup-bench { margin-bottom: 20px; }
.bench-player { padding: 12px 0; }
.bench-player strong { font-size: 13px; font-weight: 500; }
.bench-grade, .bench-number { font-size: 12px; color: var(--muted); }
.roster-inventory { padding: 0; }
.roster-inventory > summary { min-height: 56px; padding: 16px 20px; font-size: 14px; font-weight: 550; }
.roster-inventory[open] > summary { margin: 0; border-bottom: 1px solid var(--line); }
.lineup-choice { border-top: 1px solid var(--line); padding-top: 20px; }
.lineup-choice small { color: var(--muted); font-size: 12px; }
.archive-grid { gap: 20px; }
.archive-card { border-radius: 14px; padding: 22px; background: var(--panel); }
.archive-card.current { border-color: #4c776b; box-shadow: none; }
.archive-top { color: var(--muted); font-size: 11px; }
.status-pill { text-transform: none; font-size: 11px; }
.archive-card h2 { font-size: 19px; font-weight: 550; }
.archive-card > p { font-size: 12px; color: var(--muted); }
.archive-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
.archive-metrics small { font-size: 11px; text-transform: none; color: var(--muted); }
.archive-metrics strong { font-size: 20px; font-weight: 550; }
.delete-confirm { flex-wrap: wrap; font-size: 12px; }
.form-page { margin-top: 6vh; max-width: 640px; }
.setup-card { padding: 24px; }
.setup-card > label { font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.big-input { background: var(--bg); border-color: var(--line); border-radius: 9px; font-size: 16px; height: 48px; }
.setup-grid { gap: 12px; }
.setup-grid > div { background: transparent; border-radius: 10px; }
.setup-grid span, .setup-grid small { font-size: 11px; color: var(--muted); text-transform: none; }
.setup-grid strong { font-size: 25px; font-weight: 550; }
.target-preview { display: none; }
.empty-hero { max-width: 720px; min-height: calc(100vh - 140px); min-height: calc(100dvh - 140px); }
.empty-hero h1 { font-size: clamp(38px,6vw,64px); line-height: 1.1; margin: 0 0 20px; letter-spacing: -.06em; font-weight: 600; }
.empty-hero > p { color: var(--muted); font-size: 16px; }
.empty-hero > .quiet-note { font-size: 12px; margin-top: 28px; }
.strategy-row { gap: 12px; padding: 18px; }
.strategy-row strong { font-size: 13px; }
.strategy-row small, .strategy-row label { font-size: 11px; color: var(--muted); }
.strategy-row input[type=number] { font-size: 13px; border-radius: 7px; }
.principle strong { font-size: 13px; }
.principle p { font-size: 12px; color: var(--muted); }
.save-message { font-size: 12px; }
.account-panel h2, .advisor-preferences h2, .roster-settings h2 { font-size: 18px; font-weight: 550; letter-spacing: -.02em; }
.account-panel p, .advisor-preferences p, .roster-settings p { font-size: 13px; color: var(--muted); }
.account-panel label { font-size: 13px; }
.account-panel .disclosure-body { padding: 0; }
.account-panel > summary { padding: 0; font-size: 15px; }
.account-panel[open] > summary { border: 0; padding-bottom: 12px; }
.advisor-background-status { background: var(--panel); margin: 16px 40px 0; font-size: 12px; box-shadow: none; }
.radar-availability, .radar-sports-context { color: var(--muted); }
.radar-availability.has-warning .radar-availability-summary { color: var(--yellow); }
.radar-data-date { color: var(--muted); font-size: 11px; }
.radar-sports-context { font-size: 12px; }
#blazor-error-ui { left: 236px; border-radius: 10px; font-size: 13px; }
@media (max-width: 1150px) and (min-width: 901px) {
    .content { padding: 28px; }
    .auction-grid { grid-template-columns: minmax(0,1.5fr) minmax(250px,1fr); gap: 16px; }
    .right-stack { display: flex; }
    .head-actions { gap: 6px; }
    .role-data strong { font-size: 11px; }
    .role-stat { gap: 7px; padding: 10px; grid-template-columns: 26px minmax(0,1fr); }
    .role-code { width: 26px; height: 26px; }
}
@media (max-width: 900px) {
    .app-shell { display: block; }
    .sidebar { position: fixed; z-index: 50; top: 0; bottom: 0; left: 0; height: 100vh; height: 100dvh; width: min(280px,85vw); border: 0; border-right: 1px solid var(--line); transform: translateX(-105%); visibility: hidden; padding: 28px 18px; }
    .menu-open .sidebar { transform: none; visibility: visible; }
    .menu-open .mobile-backdrop { display: block; position: fixed; z-index: 40; inset: 0; width: 100%; height: 100vh; height: 100dvh; border: 0; background: #05080caa; backdrop-filter: blur(3px); }
    .sidebar .brand { padding-bottom: 30px; }
    .sidebar .brand strong { font-size: 16px; }
    .sidebar-foot { display: flex; }
    .sidebar .mobile-close { display: inline-flex; position: absolute; top: 28px; right: 14px; }
    .mobile-top { position: sticky; top: 0; z-index: 20; display: flex; height: 62px; padding: 0 20px; justify-content: space-between; background: var(--bg); border-bottom: 1px solid var(--line); }
    .mobile-brand { display: flex; align-items: center; gap: 10px; }
    .mobile-top strong { font-size: 16px; letter-spacing: -.03em; font-weight: 550; }
    .mobile-top .brand-mark { width: 30px; height: 30px; font-size: 17px; }
    .content { padding: 24px 20px 48px; }
    .page-head { flex-direction: row; align-items: center; flex-wrap: wrap; }
    .auction-grid { grid-template-columns: minmax(0,1fr); }
    .right-stack { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .advisor-panel { grid-column: 1/-1; }
    .completion-columns, .roster-columns { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .advisor-background-status { margin: 16px 20px 0; }
    .archive-grid { grid-template-columns: minmax(0,1fr); }
    #blazor-error-ui { left: 16px; right: 16px; }
}
@media (max-width: 760px) {
    .role-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
    .content { padding: 22px 16px 40px; }
    .page-head { margin-bottom: 22px; gap: 14px; }
    .page-head h1 { font-size: 26px; overflow-wrap: anywhere; }
    .page-head p { font-size: 12px; }
    .head-actions { width: 100%; }
    .kpi-grid { gap: 8px; grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 14px; }
    .kpi-card, .kpi-card.primary { min-height: 116px; padding: 13px 10px; border-radius: 11px; }
    .kpi-label { font-size: 11px; }
    .kpi-value { font-size: 29px; margin-top: 12px; }
    .kpi-foot { font-size: 10px; }
    .muted-value { font-size: 15px; }
    .role-strip { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 18px; }
    .role-stat { min-height: 64px; }
    .right-stack { display: flex; }
    .panel-head { padding: 14px 16px; }
    .panel-head h2 { font-size: 14px; }
    .player-select { padding-left: 14px; gap: 9px; }
    .player-main strong { font-size: 13px; }
    .search-wrap kbd { display: none; }
    .player-select .target-tag { display: none; }
    .watch-items { max-height: 365px; }
    .completion-columns, .roster-columns { grid-template-columns: minmax(0,1fr); }
    .completion-head-actions { flex-direction: row; align-items: center !important; }
    .completion-head-actions .data-badge { display: none; }
    .bid-dock { grid-template-columns: minmax(0,1fr) minmax(110px,1fr); padding: 16px; }
    .catalog-tools { padding: 14px; gap: 12px; }
    .catalog-tools .search-wrap { flex-basis: 100%; }
    .filter-row { gap: 5px; }
    .filter-pill { font-size: 11px; padding: 7px 10px; }
    .filter-pill .role-name { display: none; }
    .filter-pill .role-letter { display: inline; }
    .fanta-table th, .fanta-table td { padding: 12px; }
    .table-player { min-width: 155px; }
    .price-context { padding: 14px 16px; }
    .price-inputs { flex-wrap: wrap; }
    .price-inputs input { width: 120px; }
    .price-role-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .lineup-panel { padding: 16px 12px; }
    .lineup-panel .section-head { gap: 14px; }
    .lineup-panel .section-head h2 { font-size: 18px; }
    .lineup-module { width: 100%; }
    .lineup-overview { font-size: 11px; }
    .lineup-panel .lineup-pitch { padding: 20px 6px; gap: 16px; }
    .lineup-row { gap: 5px; flex-wrap: nowrap; }
    .lineup-panel .lineup-player { flex: 1 1 0; min-width: 0; max-width: 150px; padding: 10px 3px; gap: 5px; border-color: #34434a; }
    .lineup-panel .lineup-player strong { font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
    .lineup-player > span:not(.role-avatar) { font-size: 10px; overflow-wrap: anywhere; }
    .lineup-player details { font-size: 10px; }
    .lineup-player-heading { gap: 4px; flex-wrap: wrap; }
    .lineup-player-heading .role-avatar { width: 18px; height: 18px; flex-basis: 18px; font-size: 9px; border-radius: 5px; }
    .lineup-player-status { flex-wrap: wrap; gap: 2px 6px; }
    .lineup-player summary { font-size: 10px; }
    .lineup-player .radar-availability { font-size: 10px; }
    .lineup-bench { grid-template-columns: minmax(0,1fr); }
    .strategy-grid { grid-template-columns: minmax(0,1fr); }
    .strategy-row { flex-wrap: wrap; }
    .strategy-row .grow { min-width: 120px; flex: 1; }
    .strategy-row input[type=range] { min-width: 100px; }
    .account-panel, .roster-settings, .advisor-preferences { padding: 20px 16px; }
    .setup-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .setup-grid > div { padding: 10px; }
    .setup-card { padding: 20px 16px; }
    .archive-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .empty-hero { min-height: calc(100vh - 140px); min-height: calc(100dvh - 140px); }
    .hero-actions { flex-direction: column; }
    .btn-neon, .btn-ghost, .restore-market, .icon-btn { min-height: 40px; }
}
.data-refresh-bar { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 14px; padding: 14px 36px 0; position: relative; }
.data-refresh-bar button { display: inline-flex; align-items: center; gap: 8px; }
.data-refresh-details summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.data-status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #a7b7b3; margin-right: 8px; }
.data-refresh-popover { position: absolute; right: 36px; top: 60px; z-index: 25; background: #152024; border: 1px solid #34434a; border-radius: 12px; padding: 20px; width: min(500px,calc(100vw - 40px)); max-height: 65vh; overflow: auto; box-shadow: 0 12px 36px #0006; font-size: 13px; }
.data-refresh-popover p { color: #b7c3c7; line-height: 1.5; }
.data-source-status { margin-top: 16px; border-top: 1px solid #34434a; padding-top: 12px; }
.data-source-status p { margin: 6px 0; }
.data-refresh-result { padding: 0 36px; margin: 10px 0 0; color: #c4d4cc; font-size: 12px; }
.data-refresh-result a { margin-left: 6px; }
@media(max-width:760px) { .data-refresh-bar { padding: 12px 16px 0; gap: 12px; justify-content: space-between; } .data-refresh-popover { right: 16px; } .data-refresh-result { padding: 0 16px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
