/* Shared palette; the start flow keeps its own layout in start.css. */
:root {
    --ui-canvas: #f5f7f7;
    --ui-surface: #ffffff;
    --ui-ink: #202828;
    --ui-muted: #687575;
    --ui-line: #d9e0df;
    --ui-soft: #edf2f1;
    --ui-selected: #e4efed;
    --ui-accent: #087e75;
    --bg-dark: var(--ui-canvas);
    --bg-card: var(--ui-surface);
    --bg-card-hover: var(--ui-soft);
    --border-light: var(--ui-line);
    --border-glow: #a6c9c4;
    --primary: var(--ui-accent);
    --primary-glow: #087e75;
    --secondary: #087460;
    --secondary-glow: #087460;
    --accent: #81661f;
    --accent-glow: #81661f;
    --danger: #b52b3f;
    --danger-glow: #b52b3f;
    --text-main: var(--ui-ink);
    --text-muted: var(--ui-muted);
    --text-dark: var(--ui-ink);
}
body:not(.start-mode) { background: var(--ui-canvas); color: var(--ui-ink); padding-bottom: 0; }
body:not(.start-mode) *, .modal-content * { letter-spacing: 0; }
body:not(.start-mode) .app-container { max-width: 1260px; padding: 28px 40px 36px; }
body:not(.start-mode) .app-container > header { gap: 28px; padding-bottom: 18px; margin-bottom: 32px; border-color: var(--ui-line); backdrop-filter: none; }
body:not(.start-mode) .logo { flex-shrink: 0; }
body:not(.start-mode) .logo h1 { font-size: 16px; background: none; -webkit-text-fill-color: var(--ui-ink); }
body:not(.start-mode) .logo span { border: 0; padding: 0; color: var(--ui-muted); -webkit-text-fill-color: var(--ui-muted); font-size: 12px; }
body:not(.start-mode) nav { gap: 4px; }
body:not(.start-mode) .nav-btn { border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--ui-muted); padding: 12px 16px; font-size: 13px; white-space: nowrap; box-shadow: none; }
body:not(.start-mode) .nav-btn:hover { color: var(--ui-accent); background: transparent; }
body:not(.start-mode) .nav-btn.active { color: var(--ui-accent); background: transparent; border-bottom-color: var(--ui-accent); }
body:not(.start-mode) h1, body:not(.start-mode) h2, body:not(.start-mode) h3, body:not(.start-mode) h4 { font-family: var(--font-jp); }
body:not(.start-mode) .screen h2 { font-size: 28px; line-height: 1.5; }
body:not(.start-mode) .screen h3 { font-size: 16px; line-height: 1.6; }
body:not(.start-mode) .screen h4 { font-size: 14px; line-height: 1.6; }
body:not(.start-mode) .glass-panel:not(.modal-content) { background: transparent; border: 0; border-radius: 0; padding: 0; margin-bottom: 32px; box-shadow: none; backdrop-filter: none; }
body:not(.start-mode) button { cursor: pointer; }
body:not(.start-mode) button:disabled { cursor: default; opacity: .4; }
body:not(.start-mode) button:focus-visible, body:not(.start-mode) select:focus-visible, body:not(.start-mode) input:focus-visible { outline: 3px solid #ca3d49; outline-offset: 3px; }
body:not(.start-mode) :is(.btn-primary, .btn-secondary, .btn-danger) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; min-height: 42px; font-size: 13px; font-weight: 600; line-height: 1.5; border: 1px solid transparent; border-radius: 4px; box-shadow: none; transform: none; background-image: none; }
body:not(.start-mode) .btn-primary { background: var(--ui-accent); color: #fff; border-color: var(--ui-accent); }
body:not(.start-mode) .btn-primary:hover:not(:disabled) { background: #09655e; }
body:not(.start-mode) .btn-secondary { background: transparent; color: var(--ui-ink); border-color: #bac7c4; }
body:not(.start-mode) .btn-secondary:hover:not(:disabled) { background: var(--ui-selected); border-color: #839491; }
body:not(.start-mode) .btn-danger { background: #fff; color: var(--danger); border-color: #d8b2b8; }
body:not(.start-mode) .btn-danger:hover:not(:disabled) { background: #f9e9ec; }
body:not(.start-mode) button svg { width: 18px; height: 18px; flex: 0 0 18px; pointer-events: none; }
::-webkit-scrollbar-track { background: #edf2f1; }
::-webkit-scrollbar-thumb { background: #a9b9b5; }
::-webkit-scrollbar-thumb:hover { background: #687f79; }

/* Hub: unframed sections and compact, readable tables. */
body:not(.start-mode) .dashboard-grid { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 36px; margin-top: 28px; }
body:not(.start-mode) :is(.dashboard-grid, .editor-layout, .game-screen-box) > div { min-width: 0; }
body:not(.start-mode) .week-display { gap: 16px; }
#hub-progress-percent { color: var(--ui-accent) !important; }
body:not(.start-mode) .progress-bar-container { background: #dce5e2; height: 5px; border-radius: 0; }
body:not(.start-mode) .progress-bar { background: var(--ui-accent); }
body:not(.start-mode) .matchup-box { background: var(--ui-surface); border-top: 1px solid var(--ui-line); border-bottom: 1px solid var(--ui-line); border-radius: 0; padding: 20px 16px; gap: 16px; }
body:not(.start-mode) .matchup-player { min-width: 0; overflow-wrap: anywhere; }
body:not(.start-mode) .matchup-vs { font-size: 14px; color: var(--ui-muted); text-shadow: none; flex: 0 0 auto; }
body:not(.start-mode) .control-panel-buttons { gap: 10px; }
body:not(.start-mode) .control-panel-buttons .btn-primary { flex: 1; }
body:not(.start-mode) .control-panel-buttons .btn-secondary { width: 100%; }
.match-user-badge, .player-type-badge { display: inline-block; font-size: 11px; padding: 2px 6px; background: var(--ui-selected); color: #09655e; border-radius: 3px; }
.match-user-badge { margin-right: 8px; }
.player-type-pitcher { background: #e6eef7; color: #24679c; }
.team-logo-avatar { background-image: none; border-radius: 4px; box-shadow: none; border-left: 0; flex-shrink: 0; }
.color-B { background: #f3edda; color: #81661f; }
.color-H { background: #fff1c6; color: #755a04 !important; }
.color-L { background: #e1eef6; color: #24679c; }
.color-M { background: #e3e8e7; color: #303636; }
.color-E { background: #f4e2e7; color: #a12b45; }
.color-F { background: #dcedea; color: #087e75; }
.table-responsive { min-width: 0; }
body:not(.start-mode) table.pawa-table { background: #fff; font-variant-numeric: tabular-nums; }
body:not(.start-mode) table.pawa-table :is(th, td) { padding: 10px; font-size: 12px; white-space: nowrap; }
body:not(.start-mode) table.pawa-table th { color: #4b5c59; background: #edf2f1; }
body:not(.start-mode) table.pawa-table tbody tr:hover { background: #f0f5f4; }
body:not(.start-mode) table.pawa-table tr.user-team-row { background: #e4efed !important; border-left: 0; }
body:not(.start-mode) table.pawa-table th.sortable:hover { background: #e4efed; color: #087e75; }
body:not(.start-mode) table.pawa-table th:is(.sort-asc, .sort-desc) { color: #087e75; }
body:not(.start-mode) .rank-badge { border-radius: 4px; background: #edf2f1; color: var(--ui-ink); font-size: 12px; }
body:not(.start-mode) tr:nth-child(1) .rank-badge { background: #f3e8c6; color: #755a04; }
body:not(.start-mode) tr:nth-child(2) .rank-badge { background: #e3e8e7; color: #52605c; }
body:not(.start-mode) tr:nth-child(3) .rank-badge { background: #efe2d8; color: #795337; }
body:not(.start-mode) .feed-box { background: #fff; color: var(--ui-ink); border: 0; border-top: 1px solid var(--ui-line); border-bottom: 1px solid var(--ui-line); border-radius: 0; padding: 16px; font-family: var(--font-jp); font-size: 12px; line-height: 1.9; }
body:not(.start-mode) .feed-line { border-bottom: 1px solid #edf2f1; padding: 0 0 10px; margin-bottom: 10px; overflow-wrap: anywhere; }
#hub-feed-box { height: 540px; }

/* Records: keep all scrolling and frozen-column geometry from styles.css. */
body:not(.start-mode) .records-room-header { border-bottom: 1px solid var(--ui-line); padding-bottom: 24px; margin-bottom: 28px; }
body:not(.start-mode) .records-room-header p { font-size: 13px; }
body:not(.start-mode) .records-choice-grid { gap: 16px; }
body:not(.start-mode) .record-choice-button { background: #fff; border-color: var(--ui-line); border-radius: 4px; box-shadow: none; }
body:not(.start-mode) .record-choice-button:hover { background: var(--ui-selected); border-color: #087e75; }
body:not(.start-mode) .record-choice-button strong { font-size: 18px; }
body:not(.start-mode) .records-table-section { margin-top: 32px; }
body:not(.start-mode) .records-table-section h4 { color: var(--ui-ink); font-size: 15px; margin-bottom: 14px; }
body:not(.start-mode) :is(.records-table-scroll, .leaderboard-table-scroll) { background: #fff; border-color: var(--ui-line); border-radius: 4px; }
body:not(.start-mode) :is(.leaderboard-table-scroll, .records-table-scroll) thead th { background: #edf2f1 !important; }
body:not(.start-mode) .leaderboard-table-scroll :is(td:first-child, td:nth-child(2)) { background: #fff; }
body:not(.start-mode) .leaderboard-table-scroll .user-team-row :is(td:first-child, td:nth-child(2)) { background: #e4efed; }
body:not(.start-mode) .leaderboard-table-scroll tr:hover :is(td:first-child, td:nth-child(2)) { background: #f0f5f4; }
body:not(.start-mode) .leaderboard-filters { gap: 20px; margin-bottom: 18px; }
body:not(.start-mode) .leaderboard-filters label { font-size: 12px; font-weight: 500; gap: 8px; }
body:not(.start-mode) .leaderboard-filters select { background: #fff; border-color: #aab8b4; color: var(--ui-ink); border-radius: 4px; min-height: 42px; }
.stats-mode-switch { padding: 3px; border: 1px solid var(--ui-line); background: #edf2f1; border-radius: 4px; }
body:not(.start-mode) .stats-mode-switch button { min-height: 36px; border: 0; }
body:not(.start-mode) .stats-mode-switch .btn-primary { background: #246eaa; }
body:not(.start-mode) .stats-mode-switch .btn-secondary { background: transparent; color: var(--ui-muted); }
body:not(.start-mode) .stats-mode-switch .btn-primary:hover:not(:disabled) { background: #1d5f92; }

/* Editor: the form remains in the same order, with an unframed roster sidebar. */
body:not(.start-mode) #screen-editor > .glass-panel > h2 { margin-bottom: 28px; }
body:not(.start-mode) .editor-layout { grid-template-columns: minmax(210px, 270px) minmax(0, 1fr); gap: 36px; }
body:not(.start-mode) .editor-player-list { background: #fff; border: 1px solid var(--ui-line); border-radius: 4px; }
.editor-order-controls { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 12px; }
.editor-order-controls > label { font-size: 12px; color: var(--ui-muted); }
.editor-order-controls > select { min-width: 0; width: 100%; min-height: 40px; padding: 8px; border: 1px solid #aab8b4; border-radius: 4px; background: #fff; color: var(--ui-ink); font-family: inherit; font-size: 12px; }
.editor-order-buttons { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.editor-order-buttons .pennant-icon-command { width: 100%; height: 40px; }
#editor-order-status { grid-column: 1 / -1; min-height: 18px; font-size: 11px; line-height: 18px; color: var(--ui-muted); overflow-wrap: anywhere; }
body:not(.start-mode) .player-list-item { gap: 8px; padding: 12px 10px; border-left: 3px solid transparent; font-size: 13px; }
body:not(.start-mode) .player-list-item > div { min-width: 0; overflow-wrap: anywhere; }
body:not(.start-mode) .player-list-item:hover { background: #f0f5f4; }
body:not(.start-mode) .player-list-item.selected { background: var(--ui-selected); border-left-color: var(--ui-accent); }
body:not(.start-mode) .player-type-badge { white-space: nowrap; flex-shrink: 0; }
.editor-mode-switch { border-bottom: 1px solid var(--ui-line); }
body:not(.start-mode) .editor-mode-switch button { background: transparent; color: var(--ui-muted); border: 0; border-bottom: 2px solid transparent; border-radius: 0 !important; }
body:not(.start-mode) .editor-mode-switch .btn-primary { color: var(--ui-accent); border-bottom-color: var(--ui-accent); }
body:not(.start-mode) .editor-mode-switch button:hover { background: transparent; }
body:not(.start-mode) .editor-mode-switch :is(.btn-primary, .btn-secondary):hover:not(:disabled) { background: transparent; }
body:not(.start-mode) #editor-player-title, body:not(.start-mode) #editor-strategy-title { border: 0 !important; padding: 0 !important; font-size: 17px; }
.player-summary { padding: 18px 0; border-top: 1px solid var(--ui-line); border-bottom: 1px solid var(--ui-line); }
.player-profile-meta { font-size: 12px; line-height: 1.7; }
.player-role-badge { padding: 3px 8px; background: var(--ui-selected); color: #09655e; border-radius: 3px; font-size: 11px; font-weight: 600; }
.player-summary-pitcher .player-role-badge { background: #e6eef7; color: #24679c; }
.player-summary .player-card-header { padding-bottom: 14px !important; margin-bottom: 16px !important; }
.player-summary-metrics { background: #fff; padding: 16px 0; }
.player-summary-metrics > div { border-right: 1px solid var(--ui-line); }
.player-summary-metrics > div:last-child { border-right: 0; }
body:not(.start-mode) .ability-rank { background-image: none; box-shadow: none; border-radius: 4px; font-size: 14px; }
body:not(.start-mode) .rank-S { background: #f5dfeb; color: #a3306c; }
body:not(.start-mode) .rank-A { background: #f4dce2; color: #aa2843; }
body:not(.start-mode) .rank-B { background: #f6e4d2; color: #a65417; }
body:not(.start-mode) .rank-C { background: #f3e8c6; color: #81661f; }
body:not(.start-mode) .rank-D { background: #e1edf7; color: #24679c; }
body:not(.start-mode) .rank-E { background: #e1e8e6; color: #52605c; }
body:not(.start-mode) .rank-F { background: #e5e8e7; color: #626b68; }
body:not(.start-mode) .rank-G { background: #eaeded; color: #6c7672; }
body:not(.start-mode) .special-ability-tag { box-shadow: none; padding: 4px 8px; border-radius: 3px; font-weight: 500; }
body:not(.start-mode) .ability-blue { background: #e6eef7; border-color: #b5cce1; color: #24679c; }
body:not(.start-mode) .ability-red { background: #f9e9ec; border-color: #e0b4bd; color: #a62941; }
body:not(.start-mode) .ability-green { background: #e4efed; border-color: #b2d0c7; color: #096b56; }
body:not(.start-mode) .ability-mixed { background: #f1e9f4; border-color: #d1beda; color: #765283; }
body:not(.start-mode) .editor-form-group { gap: 8px; margin-bottom: 12px; min-width: 0; }
body:not(.start-mode) .editor-form-group label { color: var(--ui-muted); font-size: 12px; font-weight: 500; }
body:not(.start-mode) .editor-form-group :is(input, select) { color: var(--ui-ink); background: #fff; border-color: #aab8b4; border-radius: 4px; font-size: 13px; padding: 10px 12px; min-width: 0; width: 100%; min-height: 42px; box-shadow: none; }
body:not(.start-mode) .editor-form-group :is(input, select):focus { border-color: var(--ui-accent); box-shadow: none; }
body:not(.start-mode) .ability-input-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body:not(.start-mode) .pitch-select-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
body:not(.start-mode) .pitch-item { background: #fff; border-color: var(--ui-line); border-radius: 4px; padding: 12px; box-shadow: none; }
body:not(.start-mode) .pitch-item.active { background: #e4efed; border-color: #90b9b1; }
body:not(.start-mode) .pitch-item::before { width: 2px; }
body:not(.start-mode) .pitch-item-name { font-size: 12px; min-width: 0; overflow-wrap: anywhere; }
body:not(.start-mode) .pitch-item-header { gap: 6px; min-height: 32px; }
body:not(.start-mode) .pitch-dir-badge { background: #edf2f1; font-size: 10px; }
body:not(.start-mode) .pitch-level-slider { background: #c5d4d0; min-width: 0; }
body:not(.start-mode) .pitch-level-slider::-webkit-slider-thumb { box-shadow: none; }
body:not(.start-mode) .pitch-level-slider::-moz-range-thumb { box-shadow: none; }
body:not(.start-mode) .sa-category-label { font-size: 11px; margin-top: 16px; }
body:not(.start-mode) .sa-icon { display: none; }
body:not(.start-mode) .sa-chip { font-size: 12px; border-radius: 4px; padding: 7px 9px; min-height: 34px; box-shadow: none; transform: none; filter: none; color: var(--sa-color); border-color: var(--sa-border); background: #fff; }
.sa-type-blue { --sa-color: #24679c; --sa-border: #b5cce1; --sa-fill: #e1edf7; }
.sa-type-red { --sa-color: #a62941; --sa-border: #e0b4bd; --sa-fill: #f9e3e8; }
.sa-type-green { --sa-color: #096b56; --sa-border: #b2d0c7; --sa-fill: #dcedea; }
.sa-type-gold { --sa-color: #81661f; --sa-border: #dccc9c; --sa-fill: #f6eabd; }
.sa-type-mixed { --sa-color: #765283; --sa-border: #d1beda; --sa-fill: #f1e9f4; }
body:not(.start-mode) .sa-chip.active { color: var(--sa-color); background: var(--sa-fill); border-color: var(--sa-color); font-weight: 700; box-shadow: none; }
body:not(.start-mode) .sa-chip::before { content: '\2713'; font-size: 11px; width: 12px; flex: 0 0 12px; opacity: 0; }
body:not(.start-mode) .sa-chip.active::before { opacity: 1; }
body:not(.start-mode) .sa-chip:hover { background: var(--sa-fill); filter: none; transform: none; }
body:not(.start-mode) .graded-ability-row { background: transparent; border: 0; border-bottom: 1px solid var(--ui-line); border-radius: 0; padding: 8px 0; gap: 12px; }
body:not(.start-mode) .graded-ability-row:hover { background: transparent; border-color: var(--ui-line); }
body:not(.start-mode) .graded-ability-name { min-width: 110px; font-size: 12px; }
body:not(.start-mode) .grade-btn { color: #687575; background: #fff; border: 1px solid #d9e0df; border-radius: 3px; min-height: 30px; font-size: 12px; box-shadow: none; transform: none; }
body:not(.start-mode) .grade-btn:hover { background: #edf2f1; transform: none; }
body:not(.start-mode) .grade-btn[data-grade].active { box-shadow: none; }
body:not(.start-mode) .grade-btn[data-grade="G"].active { background: #f4dce2; color: #9f223b; border-color: #ae5264; }
body:not(.start-mode) .grade-btn[data-grade="F"].active { background: #f9e3e8; color: #b52b3f; border-color: #c66a7a; }
body:not(.start-mode) .grade-btn[data-grade="E"].active { background: #f6e4d2; color: #a65417; border-color: #d19360; }
body:not(.start-mode) .grade-btn[data-grade="D"].active { background: #e3e8e7; color: #52605c; border-color: #899d95; }
body:not(.start-mode) .grade-btn[data-grade="C"].active { background: #e1edf7; color: #24679c; border-color: #88b0d0; }
body:not(.start-mode) .grade-btn[data-grade="B"].active { background: #d1e5f5; color: #1d5f92; border-color: #478bbc; }
body:not(.start-mode) .grade-btn[data-grade="A"].active { background: #f6eabd; color: #755a04; border-color: #af9038; }
.strategy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.strategy-grid > div { min-width: 0; }
.strategy-row { display: flex; align-items: center; gap: 8px; }
.strategy-row > span { flex-shrink: 0; }
.strategy-row select { background: #fff; color: var(--ui-ink); border: 1px solid #aab8b4; border-radius: 4px; min-width: 0; padding: 9px 8px; font-size: 12px; min-height: 40px; flex: 1; width: 0; }
.strategy-row .strategy-batter-select { flex: 3; }
.strategy-row .strategy-pos-select { flex: 1; min-width: 56px; }
.strategy-row .strategy-cl-select { border-color: #b4a471; }

/* Live game and results: real game state, no decorative background. */
.game-page-title { margin-bottom: 28px; }
body:not(.start-mode) .game-screen-box { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 36px; }
body:not(.start-mode) .scoreboard-container { background: #fff; border: 1px solid var(--ui-line); border-radius: 4px; padding: 20px 16px; box-shadow: none; }
body:not(.start-mode) .scoreboard-header { color: var(--ui-accent); gap: 16px; font-size: 12px; align-items: center; }
body:not(.start-mode) table.score-grid { font-variant-numeric: tabular-nums; min-width: 550px; }
body:not(.start-mode) table.score-grid :is(th, td) { border-color: var(--ui-line); font-size: 12px; padding: 10px 6px; white-space: nowrap; }
body:not(.start-mode) table.score-grid th { background: #edf2f1; color: #52605c; }
body:not(.start-mode) table.score-grid td.bold { color: var(--ui-accent); font-size: 15px; background: #e4efed; }
body:not(.start-mode) .diamond-card { background: transparent; height: 240px; }
body:not(.start-mode) .diamond-field { border: 1px solid #b2c8c1; }
body:not(.start-mode) .base { background: #fff; border-color: #8ea69d; box-shadow: none; }
body:not(.start-mode) .base.occupied { background: var(--ui-accent) !important; border-color: #09655e !important; box-shadow: none !important; animation: none; }
body:not(.start-mode) #game-feed-box { height: 380px; }
body:not(.start-mode) #game-controls { gap: 16px; align-items: center; flex-wrap: wrap; }
.game-speed-switch { gap: 0 !important; border: 1px solid var(--ui-line); border-radius: 4px; padding: 3px; background: #edf2f1; }
body:not(.start-mode) .game-speed-switch button { background: transparent; color: var(--ui-muted); border: 0; min-height: 32px; }
body:not(.start-mode) .game-speed-switch button.active { background: #fff; color: var(--ui-accent); }
body:not(.start-mode) .game-speed-switch :is(.btn-primary, .btn-secondary):hover:not(:disabled) { background: transparent; }
body:not(.start-mode) .game-speed-switch button.active:hover:not(:disabled) { background: #fff; }
.modal-overlay { background: rgba(32, 40, 40, .32); backdrop-filter: blur(2px); }
.modal-content { background: #fff; color: var(--ui-ink); border: 1px solid var(--ui-line); border-radius: 6px; box-shadow: 0 12px 36px rgba(32, 40, 40, .18); padding: 24px; max-width: 1060px; margin: 0; }
.modal-header h2 { font-family: var(--font-jp); font-size: 20px; }
.modal-close-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--ui-line); border-radius: 4px; }
.modal-close-btn svg { width: 18px; height: 18px; }
.modal-scoreboard-summary { background: #fff; border: 1px solid var(--ui-line); border-radius: 4px; padding: 12px; overflow-x: auto; }
.modal-tabs { gap: 0; padding: 0; }
.modal-tab-btn { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; padding: 12px 16px; font-size: 13px; }
.modal-tab-btn.active { background: transparent; color: var(--ui-accent); border-bottom-color: var(--ui-accent); box-shadow: none; }
.modal-tab-content h3 { color: var(--ui-ink); font-size: 14px; }

/* Offseason and metric reference use the same quiet page hierarchy. */
body:not(.start-mode) #screen-offseason > .glass-panel { text-align: left !important; }
body:not(.start-mode) #screen-offseason h1 { color: var(--ui-ink) !important; font-size: 28px !important; }
#offseason-champion-text { font-size: 20px !important; color: var(--ui-accent); }
body:not(.start-mode) .awards-container { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
body:not(.start-mode) .award-card { background: #fff; border: 1px solid var(--ui-line); border-radius: 4px; box-shadow: none; padding: 20px; text-align: left; min-width: 0; }
body:not(.start-mode) .award-title { color: var(--ui-muted); font-size: 12px; }
body:not(.start-mode) .award-player { color: var(--ui-ink); font-size: 22px; overflow-wrap: anywhere; }
body:not(.start-mode) .award-val { color: var(--ui-muted); font-size: 12px; }
body:not(.start-mode) #screen-help h2 { margin-bottom: 12px; }
body:not(.start-mode) #screen-help > .glass-panel > div:first-of-type > div { background: transparent !important; border-radius: 0 !important; padding: 20px !important; border-bottom: 1px solid var(--ui-line); }
body:not(.start-mode) #screen-help strong { font-size: 15px; }
body:not(.start-mode) #screen-help p { font-size: 13px !important; line-height: 1.9; }

@media (max-width: 1100px) {
    body:not(.start-mode) .app-container { padding: 24px; }
    body:not(.start-mode) .app-container > header { gap: 16px; }
    body:not(.start-mode) .nav-btn { padding: 12px 10px; }
    body:not(.start-mode) .editor-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
    body:not(.start-mode) .pitch-select-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .strategy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    body:not(.start-mode) .app-container > header { text-align: left; align-items: flex-start; }
    body:not(.start-mode) nav { width: 100%; flex-wrap: wrap; }
    body:not(.start-mode) .dashboard-grid, body:not(.start-mode) .game-screen-box { grid-template-columns: minmax(0, 1fr); }
    body:not(.start-mode) .editor-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    #hub-feed-box { height: 360px; }
    body:not(.start-mode) .editor-player-list { max-height: 300px !important; }
    body:not(.start-mode) .awards-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    body:not(.start-mode) .app-container { padding: 20px 18px 28px; }
    body:not(.start-mode) .app-container > header { margin-bottom: 28px; gap: 16px; }
    body:not(.start-mode) nav { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
    body:not(.start-mode) nav[style*="none"] { display: none !important; }
    body:not(.start-mode) .nav-btn { min-width: 0; white-space: normal; text-align: left; padding: 10px 0; font-size: 12px; }
    body:not(.start-mode) .screen h2 { font-size: 23px; }
    body:not(.start-mode) .screen h3 { font-size: 15px; }
    body:not(.start-mode) .week-display { align-items: flex-start; }
    body:not(.start-mode) .week-display h3 { font-size: 13px; }
    body:not(.start-mode) .control-panel-buttons .btn-primary { flex-basis: 100%; }
    body:not(.start-mode) .matchup-box { padding: 16px 8px; }
    body:not(.start-mode) .matchup-player strong { font-size: 16px; }
    body:not(.start-mode) .records-room-header, body:not(.start-mode) .records-step-heading { align-items: flex-start; flex-direction: column; }
    body:not(.start-mode) .records-category-grid { grid-template-columns: minmax(0, 1fr); }
    body:not(.start-mode) .records-choice-grid { grid-template-columns: minmax(0, 1fr); }
    body:not(.start-mode) .leaderboard-filters { gap: 14px; }
    body:not(.start-mode) .leaderboard-filters label { flex: 1 1 130px; min-width: 0; }
    body:not(.start-mode) .leaderboard-filters select { width: 100%; min-width: 0; }
    body:not(.start-mode) .ability-input-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    body:not(.start-mode) .editor-mode-switch { gap: 4px !important; }
    body:not(.start-mode) .editor-mode-switch button { font-size: 12px; padding: 10px 6px !important; }
    .player-summary-metrics > div { border: 0; }
    body:not(.start-mode) .graded-ability-row { gap: 8px; }
    body:not(.start-mode) .grade-btn-group { min-width: 0; flex-basis: 100%; }
    body:not(.start-mode) .grade-btn { min-height: 34px; }
    #player-editor-form > div:last-child, #editor-tab-content-strategy > div:last-child { flex-wrap: wrap; }
    #player-editor-form > div:last-child button, #editor-tab-content-strategy > div:last-child button { width: 100%; }
    body:not(.start-mode) #game-finished-controls > div { flex-wrap: wrap; }
    body:not(.start-mode) #game-finished-controls button { flex: 1 1 100% !important; }
    body:not(.start-mode) .scoreboard-header { align-items: flex-start; flex-direction: column; gap: 8px; }
    .modal-content { width: calc(100% - 24px); padding: 16px; max-height: 90vh; }
    .modal-header h2 { font-size: 18px; }
    .modal-tab-btn { flex: 1; padding: 12px 6px; font-size: 12px; }
    body:not(.start-mode) #screen-offseason h1 { font-size: 23px !important; }
    body:not(.start-mode) .awards-container { grid-template-columns: minmax(0, 1fr); }
    body:not(.start-mode) #screen-help > .glass-panel > div:first-of-type > div { padding: 16px !important; }
}
@media (prefers-reduced-motion: reduce) {
    body:not(.start-mode) .screen, body:not(.start-mode) button, .modal-overlay, .modal-content { transition: none; }
    body:not(.start-mode) .tab-content, .modal-tab-content { animation: none; }
}

/* Pennant shell: menu / matchup / standings, using the existing light palette. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
body.pennant-mode .app-container { max-width: 1520px; display: grid; grid-template-columns: 180px minmax(0, 1fr); column-gap: 36px; align-items: start; }
body.pennant-mode .app-container > header { grid-column: 1 / -1; margin-bottom: 28px; }
body.pennant-mode .screen { grid-column: 2; grid-row: 2; min-width: 0; }
body.pennant-mode.live-game-mode .screen { grid-column: 1 / -1; }
.season-context { display: flex; gap: 24px; align-items: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.season-context[hidden] { display: none; }
.season-context span { color: var(--ui-muted); }
body.pennant-mode #main-nav { grid-column: 1; grid-row: 2; flex-direction: column; gap: 6px; width: 100%; position: sticky; top: 24px; }
body.pennant-mode #main-nav .nav-btn { display: flex; align-items: center; justify-content: flex-start; gap: 12px; min-height: 54px; padding: 12px 16px; border: 0; border-left: 3px solid transparent; border-radius: 0; text-align: left; font-size: 15px; white-space: normal; }
body.pennant-mode #main-nav .nav-btn svg { width: 20px; height: 20px; flex-basis: 20px; }
body.pennant-mode #main-nav .nav-btn.active { background: var(--ui-selected); border-left-color: var(--ui-accent); color: var(--ui-accent); }
body.pennant-mode #main-nav .nav-btn:hover { background: #edf2f1; }
.pennant-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.pennant-page-heading h2 { margin: 0; }
.pennant-eyebrow { font-family: var(--font-outfit); font-size: 11px; color: var(--ui-muted); margin-bottom: 8px; }
.pennant-muted { font-size: 12px; color: var(--ui-muted); }
.pennant-page-heading .save-slot-label { margin: 0; font-size: 11px; text-align: right; }
.pennant-hub-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; margin-bottom: 32px; }
.pennant-hub-grid > * { min-width: 0; }
.pennant-match-stage .week-display { margin-bottom: 12px; }
body.pennant-mode .pennant-match-stage .week-display h3 { font-size: 13px; }
#hub-progress-percent { font-family: var(--font-outfit); font-size: 13px; font-weight: 600; }
.pennant-match-stage .progress-bar-container { margin-bottom: 0; }
body.pennant-mode .pennant-match-stage .matchup-box { display: block; border-top: 0; border-bottom: 0; padding: 24px 20px 28px; margin-bottom: 18px; min-height: 292px; }
.featured-match-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--ui-muted); font-size: 11px; margin-bottom: 28px; }
.featured-match-label span:first-child { color: var(--ui-ink); font-weight: 600; }
.featured-match-teams { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); align-items: center; gap: 12px; }
.featured-team { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.featured-team-side { font-family: var(--font-outfit); font-size: 10px; color: var(--ui-muted); margin-bottom: 12px; }
.featured-team-monogram { font-family: var(--font-outfit); display: flex; align-items: center; justify-content: center; font-size: 54px; font-weight: 800; width: 88px; height: 88px; border: 0; border-radius: 4px; margin-bottom: 16px; }
.featured-team > strong { font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.featured-team-pitcher { color: var(--ui-muted); font-size: 11px; margin-top: 8px; overflow-wrap: anywhere; }
.featured-match-vs { color: #8b9c97; font-family: var(--font-outfit); font-size: 18px; text-align: center; }
body.pennant-mode .pennant-match-stage .control-panel-buttons { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
body.pennant-mode .pennant-match-stage .control-panel-buttons button { width: 100%; min-width: 0; font-size: 12px; }
body.pennant-mode .pennant-match-stage .control-panel-buttons #btn-skip-season { grid-column: 1 / -1; }
.pennant-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0 14px; }
.pennant-section-heading span { color: var(--ui-muted); font-size: 10px; font-family: var(--font-outfit); }
.pennant-text-command { display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 8px 0; background: transparent; color: var(--ui-accent); font-size: 12px; font-weight: 600; }
.pennant-standings > .pennant-section-heading { margin-top: 0; min-height: 20px; }
.compact-standings { list-style: none; border-top: 2px solid var(--ui-ink); background: #fff; }
.compact-standings li { display: grid; grid-template-columns: 18px 30px minmax(0, 1fr) 48px; align-items: center; gap: 8px; min-height: 72px; padding: 12px 10px; border-bottom: 1px solid var(--ui-line); }
.compact-standings li.user-team { background: var(--ui-selected); }
.compact-standings .compact-rank { font-family: var(--font-outfit); font-size: 14px; font-weight: 600; }
.compact-standings .team-logo-avatar { width: 28px; height: 28px; font-size: 14px; }
.compact-standings li > div { min-width: 0; }
.compact-standings strong { display: block; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.compact-standings li > div > span { display: block; font-size: 10px; color: var(--ui-muted); margin-top: 4px; }
.compact-team-rate { text-align: right; font-variant-numeric: tabular-nums; }
.compact-team-rate strong { color: var(--ui-accent); font-family: var(--font-outfit); font-size: 14px; }
.daily-match-row { display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 48px; align-items: center; gap: 10px; padding: 14px 12px; border-bottom: 1px solid var(--ui-line); background: #fff; }
.daily-match-row.user-match { background: #edf4f2; }
.daily-match-team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.daily-match-team strong { font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.daily-match-team .team-logo-avatar { width: 22px; height: 22px; font-size: 11px; }
.daily-match-vs { font-family: var(--font-outfit); font-size: 10px; color: var(--ui-muted); text-align: center; }
.daily-match-state { font-size: 10px; color: var(--ui-muted); text-align: right; }
body.pennant-mode #hub-feed-box { height: 240px; }
.pennant-full-standings { margin-top: 28px; }
.pennant-full-standings summary { cursor: pointer; font-size: 13px; font-weight: 600; padding: 12px 0; }
.pennant-full-standings[open] summary { margin-bottom: 8px; }
.schedule-toolbar { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.schedule-week-control { display: flex; align-items: center; gap: 8px; }
.schedule-team-control { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ui-muted); }
.schedule-toolbar select { background: #fff; color: var(--ui-ink); border: 1px solid #aab8b4; border-radius: 4px; padding: 10px; min-height: 42px; min-width: 100px; font-size: 13px; }
.pennant-icon-command { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 42px; padding: 0; border: 1px solid var(--ui-line); border-radius: 4px; background: #fff; color: var(--ui-ink); }
.pennant-icon-command:hover:not(:disabled) { background: var(--ui-selected); }
.schedule-days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; }
.schedule-day { min-width: 0; border-top: 2px solid #bdcbc6; }
.schedule-day.current-day { border-top-color: var(--ui-accent); }
body.pennant-mode .schedule-day h3 { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; font-size: 13px; }
.schedule-day h3 span { font-size: 11px; font-weight: 400; color: var(--ui-muted); }
.schedule-day.current-day h3 span { color: var(--ui-accent); font-weight: 600; }
.pennant-action-row { display: flex; align-items: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.pending-status { font-size: 11px; color: var(--ui-muted); border-left: 2px solid #b5c4be; padding-left: 10px; }
.pennant-empty-state { display: flex; align-items: center; justify-content: center; min-height: 260px; border-top: 1px solid var(--ui-line); border-bottom: 1px solid var(--ui-line); color: var(--ui-muted); font-size: 13px; background: #fff; }
.system-save-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--ui-line); border-bottom: 1px solid var(--ui-line); padding: 22px 0; }
.system-save-summary dt { font-size: 11px; color: var(--ui-muted); margin-bottom: 10px; }
.system-save-summary dd { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.system-commands { margin-top: 28px; border-top: 2px solid var(--ui-ink); }
.system-command { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 68px; padding: 16px; border: 0; border-bottom: 1px solid var(--ui-line); background: transparent; color: var(--ui-ink); text-align: left; font-size: 14px; font-weight: 600; }
.system-command span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.system-command small { color: var(--ui-muted); font-size: 11px; font-weight: 400; }
.system-command:hover { background: var(--ui-selected); color: var(--ui-accent); }
.system-save-status { min-height: 24px; margin-top: 18px; font-size: 13px; color: var(--ui-accent); }
.system-save-status.save-failed { color: var(--danger); }
body.pennant-mode #screen-strategy .strategy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
body.pennant-mode #screen-strategy .strategy-grid > div { border-top: 2px solid var(--ui-line); padding-top: 16px; }

.strategy-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: -10px 0 24px; font-size: 12px; }
body.pennant-mode #strategy-breadcrumbs { display: flex !important; gap: 8px; }
body.pennant-mode #strategy-breadcrumbs[hidden] { display: none !important; }
.strategy-breadcrumbs button { border: 0; background: transparent; color: var(--ui-accent); padding: 6px 0; font-size: inherit; }
.strategy-breadcrumbs span { color: var(--ui-muted); overflow-wrap: anywhere; }
.strategy-breadcrumbs svg { width: 14px; height: 14px; color: var(--ui-muted); }
.strategy-breadcrumbs[hidden], #strategy-actions[hidden], #btn-auto-fill-strategy[hidden] { display: none !important; }
.strategy-command-list { border-top: 2px solid var(--ui-ink); }
.strategy-command { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 76px; padding: 20px 16px; color: var(--ui-ink); background: transparent; border: 0; border-bottom: 1px solid var(--ui-line); border-radius: 0; font-size: 15px; text-align: left; }
.strategy-command:hover { background: var(--ui-selected); color: var(--ui-accent); }
.strategy-command > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.strategy-command svg { width: 20px; height: 20px; flex-shrink: 0; }
.strategy-command svg:last-child { width: 16px; height: 16px; color: var(--ui-muted); }
.strategy-selection-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; margin-bottom: 12px; }
.strategy-selection-bar > span { min-width: 0; color: var(--ui-accent); font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.strategy-roster-board { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; align-items: start; }
.strategy-roster-main, .strategy-roster-section { min-width: 0; }
.strategy-lineup-columns { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(0, 1.2fr); gap: 24px; }
.strategy-pitching-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.strategy-roster-section > h3, .strategy-inspector > h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; padding: 0 0 12px; border-bottom: 2px solid var(--ui-ink); }
body.pennant-mode .strategy-roster-section > h3, body.pennant-mode .strategy-inspector > h3 { font-size: 13px; }
.strategy-roster-section h3 small { color: var(--ui-muted); font-size: 11px; font-weight: 400; white-space: nowrap; }
.strategy-lineup-list, .strategy-pitcher-list { display: flex; flex-direction: column; gap: 6px; }
.strategy-lineup-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) 44px; align-items: center; gap: 6px; }
.strategy-order { color: var(--ui-muted); font-size: 13px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.strategy-bench-grid, .strategy-batting-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.strategy-player-tile { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; height: 80px; padding: 8px; border: 1px solid var(--ui-line); border-radius: 4px; background: #fff; color: var(--ui-ink); text-align: left; font-family: inherit; }
.strategy-player-tile:hover, .strategy-position-button:hover { background: var(--ui-soft); border-color: #819d98; }
.strategy-player-tile:focus-visible, .strategy-position-button:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 2px; }
.strategy-player-tile.is-selected, .strategy-position-button.is-selected { background: var(--ui-selected); border-color: var(--ui-accent); box-shadow: inset 0 0 0 1px var(--ui-accent); }
.strategy-player-tile > svg { width: 14px; height: 14px; color: var(--ui-accent); flex-shrink: 0; }
.strategy-position-chip { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; height: 28px; border-radius: 3px; font-size: 10px; font-weight: 600; background: #edf0f2; color: #596871; }
.strategy-position-chip[data-position="C"] { background: #e5eff7; color: #326183; }
.strategy-position-chip:is([data-position="1B"], [data-position="2B"], [data-position="3B"], [data-position="SS"]) { background: #f7efda; color: #796028; }
.strategy-position-chip[data-position="OF"] { background: #e6f1eb; color: #386550; }
.strategy-position-chip:is([data-position="SP"], [data-position="RP"], [data-position="CL"]) { background: #f5e9e8; color: #96534c; }
.strategy-tile-name { flex: 1; min-width: 0; }
.strategy-tile-name strong { display: block; font-size: 13px; line-height: 17px; font-weight: 600; overflow-wrap: anywhere; }
.strategy-tile-name small { display: block; margin-top: 3px; color: var(--ui-muted); font-size: 10px; line-height: 13px; overflow-wrap: anywhere; }
.strategy-position-button { width: 44px; height: 80px; padding: 4px; border: 1px solid var(--ui-line); border-radius: 4px; background: var(--ui-soft); color: var(--ui-ink); font-family: inherit; font-size: 12px; font-weight: 600; }
.strategy-roster-empty { padding: 16px 8px; color: var(--ui-muted); font-size: 12px; border-bottom: 1px solid var(--ui-line); }
.strategy-inspector { min-width: 0; position: sticky; top: 20px; }
.strategy-inspector-details, .strategy-inspector-controls { min-width: 0; }
.strategy-player-detail { padding: 2px 0 16px; margin-bottom: 16px; border-bottom: 1px solid var(--ui-line); }
.strategy-detail-heading { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.strategy-detail-heading strong { font-size: 15px; overflow-wrap: anywhere; }
.strategy-detail-heading small { color: var(--ui-accent); font-size: 10px; }
.strategy-detail-meta { color: var(--ui-muted); font-size: 11px; margin: 8px 0 14px; overflow-wrap: anywhere; }
.strategy-ability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; margin: 0; }
.strategy-ability-grid > div { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.strategy-ability-grid dt { font-size: 10px; color: var(--ui-muted); }
.strategy-ability-grid dd { display: flex; align-items: center; gap: 4px; margin: 0; font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.strategy-ability-grid > div:first-child { grid-column: 1 / -1; }
.strategy-inspector .ability-rank { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; font-size: 12px !important; border-radius: 3px !important; }
.strategy-detail-pitches, .strategy-detail-abilities { margin: 14px 0 0; color: var(--ui-muted); font-size: 10px; line-height: 1.8; overflow-wrap: anywhere; }
.strategy-player-settings { display: grid; gap: 16px; }
.strategy-player-tile.is-pitcher { height: 96px; }
.strategy-tile-name .pitcher-stamina-status, .pitcher-stamina-status { color: #32765b; }
.strategy-tile-name .pitcher-stamina-status.is-unavailable, .pitcher-stamina-status.is-unavailable { color: #b33e39; }
.pitcher-stamina-detail { display: grid; gap: 8px; margin: 0 0 18px; font-size: 11px; }
.pitcher-stamina-detail > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.pitcher-stamina-detail strong { font-variant-numeric: tabular-nums; }
.pitcher-stamina-detail progress { width: 100%; height: 8px; accent-color: var(--ui-accent); }
.strategy-setting-label { display: grid; gap: 8px; color: var(--ui-muted); font-size: 11px; margin-bottom: 16px; }
.strategy-setting-label select { min-width: 0; width: 100%; min-height: 40px; padding: 8px; border: 1px solid #aab8b4; border-radius: 4px; color: var(--ui-ink); background: #fff; font-size: 13px; font-family: inherit; }
.strategy-setting-label select:disabled { background: var(--ui-soft); color: var(--ui-muted); border-color: var(--ui-line); }
.strategy-rotation-columns { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; }
.strategy-rotation-columns > section { min-width: 0; }
.strategy-rotation-columns .strategy-section-label { margin-top: 0; }
.strategy-rotation-candidates .strategy-bench-grid { grid-template-columns: minmax(0, 1fr); }
.strategy-starter-slot { display: flex; align-items: center; gap: 6px; min-width: 0; }
.strategy-starter-slot > .pennant-icon-command { flex-shrink: 0; }
.strategy-starter-slot .strategy-player-tile { flex: 1; min-width: 0; }
.strategy-table-scroll { overflow: auto; max-height: 560px; border-top: 2px solid var(--ui-line); border-bottom: 1px solid var(--ui-line); scrollbar-gutter: stable; }
.strategy-settings-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 620px; margin: 0; font-size: 13px; text-align: left; }
.strategy-settings-table th, .strategy-settings-table td { padding: 12px; border: 0; border-bottom: 1px solid var(--ui-line); vertical-align: middle; background: #fff; }
.strategy-settings-table thead th { position: sticky; top: 0; z-index: 1; background: var(--ui-soft); color: var(--ui-muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.strategy-settings-table tr > :first-child { position: sticky; left: 0; z-index: 2; box-shadow: 1px 0 0 var(--ui-line); }
.strategy-settings-table thead th:first-child { z-index: 3; }
.strategy-settings-table th[scope="row"] { min-width: 114px; font-weight: 600; }
.strategy-settings-table small { display: block; margin-top: 6px; color: var(--ui-muted); font-size: 11px; font-weight: 400; }
.strategy-settings-table select, .strategy-rotation-row select, .strategy-policy-row select { width: 100%; min-width: 100px; min-height: 40px; padding: 8px 10px; border: 1px solid #aab8b4; border-radius: 4px; background: #fff; color: var(--ui-ink); font-family: inherit; font-size: 13px; }
.strategy-settings-table select:disabled { border-color: var(--ui-line); background: var(--ui-soft); color: var(--ui-muted); }
.strategy-settings-table .strategy-relief-role { min-width: 158px; }
.strategy-settings-table .pending-status { white-space: normal; }
.strategy-next-day { display: inline-block; margin-left: 8px; color: var(--ui-muted); font-size: 11px; white-space: nowrap; }
.strategy-section-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 14px; }
.strategy-section-label:first-child { margin-top: 0; }
body.pennant-mode .strategy-section-label h3 { font-size: 14px; }
.strategy-rotation-pages { display: flex; align-items: center; gap: 10px; }
.strategy-rotation-pages > span { width: 48px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.strategy-rotation-list { border-top: 2px solid var(--ui-line); }
.strategy-rotation-row { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ui-line); background: #fff; }
.strategy-rotation-row > div { min-width: 0; }
.strategy-rotation-row > div:first-child strong { display: block; font-size: 13px; font-weight: 600; }
.strategy-rotation-row > div:first-child span { display: block; margin-top: 6px; font-size: 11px; color: var(--ui-muted); }
.strategy-policy-list { border-top: 2px solid var(--ui-line); }
.strategy-policy-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(160px, 1fr) 100px; gap: 24px; align-items: center; padding: 24px 12px; border-bottom: 1px solid var(--ui-line); }
.strategy-policy-row label { font-size: 14px; font-weight: 600; }
.strategy-applied-status { color: var(--ui-accent); font-size: 11px; }
#strategy-save-status { font-size: 12px; color: var(--ui-muted); }
.pennant-settings-fields { padding: 24px; display: grid; grid-template-columns: minmax(0, 320px); gap: 12px; }
.manager-editor { min-width: 0; color: #202828; }
.player-fatigue-gauge { --fatigue-color: #317e6b; display: block; position: relative; width: 100%; min-width: 0; height: 8px; margin: 5px 0; background: #d8e0df; border: 1px solid #becbc8; border-radius: 2px; overflow: hidden; }
.player-fatigue-fill { display: block; height: 100%; background: var(--fatigue-color); }
.player-fatigue-gauge::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to right,transparent 0,transparent calc(25% - 1px),#ffffff85 calc(25% - 1px),#ffffff85 25%); pointer-events: none; }
.player-fatigue-gauge[data-fatigue-level="light"] { --fatigue-color: #ad962b; }
.player-fatigue-gauge[data-fatigue-level="medium"] { --fatigue-color: #ab713b; }
.player-fatigue-gauge[data-fatigue-level="high"] { --fatigue-color: #c34853; }
.player-fatigue-gauge[data-fatigue-level="critical"] { --fatigue-color: #942b40; }
.player-fatigue-gauge.is-disabled { opacity: 0.45; }
.player-rest-status { color: #942b40; font-size: 11px; font-weight: 600; margin: 4px 0; }
.strategy-tile-name .player-rest-status { color: #942b40; }
.strategy-player-tile.is-resting { border-style: dashed; background: #f1f3f3; }
.strategy-rest-control { margin-top: 16px; }
.pennant-back-footer { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.pennant-heading-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.fielding-aptitude-editor { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 12px 0 24px; }
.fielding-aptitude-editor label { display: grid; gap: 6px; font-size: 13px; }
.fielding-aptitude-editor select { width: 100%; min-width: 0; }
.fielding-aptitude-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px 12px; margin: 12px 0; }
.fielding-aptitude-heading { font-size: 13px; margin-top: 14px; }
.fielding-aptitude-summary > div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid #d9e0df; padding: 5px 0; font-size: 12px; }
.fielding-aptitude-summary dd { margin: 0; font-weight: 600; }
.fielding-aptitude-warning { color: #a83343; background: #fff3f4; border-left: 3px solid #a83343; padding: 10px 12px; font-size: 13px; overflow-wrap: anywhere; margin: 12px 0; }
@media (max-width: 700px) { .fielding-aptitude-editor, .fielding-aptitude-summary { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.player-fatigue-detail { margin: 14px 0; padding-bottom: 12px; border-bottom: 1px solid #d9e0df; }
.manager-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; padding: 16px 0; border-bottom: 1px solid #d9e0df; }
.manager-toolbar > label:first-child { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.manager-editor select { min-width: 0; max-width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid #aab8b4; border-radius: 4px; background: #fff; color: #202828; font-size: 13px; }
.manager-tabs { display: flex; gap: 0; }
.manager-tabs button { min-height: 42px; min-width: 80px; padding: 8px 14px; background: transparent; border: 0; border-bottom: 2px solid transparent; color: #687575; font-size: 13px; }
.manager-tabs button[aria-selected="true"] { border-color: #087e75; color: #087e75; background: #e4efed; }
.manager-period-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 0; }
.manager-period-bar > span { font-size: 12px; color: #687575; }
.manager-thinking-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 32px; }
.manager-thinking-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 62px; padding: 12px 0; border-bottom: 1px solid #d9e0df; font-size: 13px; }
.manager-thinking-row > span { min-width: 0; overflow-wrap: anywhere; }
.manager-thinking-row input { flex: 0 0 auto; width: 18px; height: 18px; accent-color: #087e75; }
.manager-thinking-row select { flex: 0 1 170px; }
.manager-editor .pennant-action-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.manager-editor .pennant-action-row .pennant-icon-command { width: 40px; min-width: 40px; height: 42px; flex: 0 0 40px; padding: 0; }
#manager-thinking-status { font-size: 13px; color: #087e75; }
@media (max-width: 700px) {
    .manager-thinking-fields { grid-template-columns: minmax(0,1fr); }
    .manager-toolbar { gap: 12px; }
    .manager-toolbar > label:first-child { width: 100%; }
    .manager-toolbar > label:first-child select { flex: 1; }
    .manager-thinking-row select { flex-basis: 150px; }
    .manager-tabs button { min-width: 74px; padding: 8px 12px; }
}
.pennant-settings-fields label { font-size: 14px; font-weight: 600; }
.pennant-settings-fields select { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #aab8b4; border-radius: 4px; background: #fff; color: #172526; font-size: 14px; }
#screen-season-settings .pennant-settings-fields { padding: 24px 0; }
#pennant-settings-status { font-size: 13px; }
@media (max-width: 1120px) {
    .strategy-roster-board { grid-template-columns: minmax(0, 1fr); }
    .strategy-inspector { position: static; }
    .strategy-inspector-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
    .strategy-inspector-controls { max-width: 320px; }
    .strategy-rotation-candidates .strategy-bench-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .strategy-rotation-summary { min-width: 0; }
}
@media (max-width: 720px) {
    .strategy-lineup-columns, .strategy-pitching-columns, .strategy-rotation-columns { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .strategy-inspector-details { grid-template-columns: minmax(0, 1fr); }
    .strategy-roster-board { gap: 28px; }
    .strategy-bench-grid { gap: 6px; }
    .strategy-player-tile { gap: 6px; padding: 6px; }
    .strategy-batting-grid { grid-template-columns: minmax(0, 1fr); }
    .strategy-command { min-height: 68px; gap: 10px; padding: 16px 8px; font-size: 14px; }
    .strategy-rotation-summary { min-width: 0; table-layout: fixed; }
    .strategy-rotation-summary th, .strategy-rotation-summary td { padding: 12px 8px; min-width: 0; overflow-wrap: anywhere; }
    .strategy-rotation-summary th:first-child { width: 20%; }
    .strategy-rotation-summary th:nth-child(2) { width: 30%; }
    .strategy-rotation-summary th[scope="row"] { min-width: 0; }
    .strategy-next-day { display: block; margin: 4px 0 0; }
    .strategy-rotation-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .strategy-policy-row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px 8px; }
    .strategy-section-label { flex-wrap: wrap; }
    .strategy-breadcrumbs { font-size: 11px; }
}

@media (max-width: 1200px) {
    body.pennant-mode .app-container { grid-template-columns: 150px minmax(0, 1fr); gap: 0 24px; }
    body.pennant-mode #main-nav .nav-btn { padding: 12px; font-size: 14px; gap: 10px; }
    .pennant-hub-grid { grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; }
    .compact-standings li { grid-template-columns: 16px 26px minmax(0, 1fr) 40px; gap: 6px; padding: 12px 8px; }
    .featured-team > strong { font-size: 16px; }
    .schedule-days, body.pennant-mode #screen-strategy .strategy-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 980px) {
    body.pennant-mode .app-container { display: block; }
    body.pennant-mode #main-nav { display: grid !important; grid-template-columns: repeat(8, minmax(0, 1fr)); position: static; margin-bottom: 28px; gap: 4px; }
    body.pennant-mode #main-nav[style*="none"] { display: none !important; }
    body.pennant-mode #main-nav .nav-btn { flex-direction: column; justify-content: center; gap: 8px; padding: 10px 4px; font-size: 12px; border-left: 0; border-bottom: 2px solid transparent; text-align: center; min-width: 0; }
    body.pennant-mode #main-nav .nav-btn.active { border-bottom-color: var(--ui-accent); }
    .pennant-hub-grid { grid-template-columns: minmax(0, 1fr) 260px; }
    .schedule-days, body.pennant-mode #screen-strategy .strategy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .pennant-hub-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .schedule-days, body.pennant-mode #screen-strategy .strategy-grid { grid-template-columns: minmax(0, 1fr); }
    .system-save-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
    .pennant-page-heading { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
    .pennant-page-heading .save-slot-label { text-align: left; }
}
@media (max-width: 600px) {
    body.pennant-mode .app-container > header { flex-direction: row; align-items: center; gap: 12px; }
    .season-context { flex-direction: column; gap: 4px; align-items: flex-end; font-size: 10px; text-align: right; }
    body.pennant-mode .logo h1 { font-size: 13px; }
    body.pennant-mode .logo span { display: block; font-size: 10px; }
    body.pennant-mode #main-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 24px; }
    body.pennant-mode #main-nav .nav-btn { min-height: 64px; font-size: 11px; }
    body.pennant-mode .pennant-match-stage .matchup-box { padding: 20px 12px 24px; min-height: 260px; }
    .featured-match-teams { grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr); gap: 8px; }
    .featured-team-monogram { width: 72px; height: 72px; font-size: 44px; }
    .featured-team > strong { font-size: 14px; }
    .featured-team-pitcher { font-size: 10px; }
    .featured-match-vs { font-size: 14px; }
    body.pennant-mode .pennant-match-stage .week-display h3 { font-size: 12px; }
    body.pennant-mode .pennant-match-stage .control-panel-buttons { grid-template-columns: minmax(0, 1fr); }
    .daily-match-row { grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 38px; gap: 6px; padding: 12px 8px; }
    .daily-match-team { gap: 5px; }
    .daily-match-team strong { font-size: 11px; }
    .daily-match-team .team-logo-avatar { width: 18px; height: 18px; font-size: 10px; }
    .daily-match-state { font-size: 9px; }
    .schedule-toolbar { gap: 14px; }
    .schedule-team-control { flex: 1 1 100%; }
    .schedule-team-control select { flex: 1; min-width: 0; }
    .pennant-action-row button { width: 100%; }
    .system-command { padding: 16px 8px; gap: 12px; font-size: 13px; }
}
/* The selected league changes the hub and live game, not the shared calendar. */
.league-selector { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.batter-metric-summary, .metric-coverage-note { color: var(--ui-muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.metric-value { display: inline-block; width: 100%; min-height: 28px; padding: 2px 4px; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; text-align: center; white-space: nowrap; }
.metric-value:hover { text-decoration: underline; color: var(--ui-accent); }
.metric-value:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: -2px; }
.pawa-table .league-average-row > * { background: #e6f1ef; font-weight: 700; }
.metric-guide-nav { display: flex; flex-wrap: wrap; gap: 12px 20px; padding: 16px 0; border-bottom: 1px solid var(--ui-line); }
.metric-guide-nav a { color: var(--ui-accent); font-size: 13px; }
.metric-guide-section { margin: 24px 0; min-width: 0; scroll-margin-top: 20px; }
.metric-guide-section h3 { font-size: 17px; margin: 16px 0; }
.metric-guide-entry { border-bottom: 1px solid var(--ui-line); padding: 12px 0; }
.metric-guide-entry summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.metric-guide-entry dl { margin: 12px 0 4px; }
.metric-guide-entry dl > div { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 16px; padding: 6px 0; font-size: 13px; line-height: 1.8; }
.metric-guide-entry dt { color: var(--ui-muted); }
.metric-guide-entry dd { margin: 0; overflow-wrap: anywhere; }
.metric-guide-section p { font-size: 13px; line-height: 1.9; margin: 14px 0; overflow-wrap: anywhere; }
.batter-metric-details { margin: 16px 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; }
.batter-metric-details > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ui-line); min-width: 0; }
.batter-metric-details dt { color: var(--ui-muted); font-size: 12px; }
.batter-metric-details dd { margin: 0; text-align: right; font-size: 13px; overflow-wrap: anywhere; }
@media (max-width: 650px) { .batter-metric-details { grid-template-columns: minmax(0,1fr); } }
.league-selector label { color: var(--text-muted); font-size: 0.85rem; }
.league-selector select { width: 120px; padding: 8px 12px; }

.season-month-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--ui-line); border-left: 1px solid var(--ui-line); }
.calendar-weekday { padding: 10px 4px; text-align: center; background: var(--ui-soft); border-right: 1px solid var(--ui-line); border-bottom: 1px solid var(--ui-line); font-size: 12px; }
.calendar-day { min-height: 148px; padding: 10px 8px; border-right: 1px solid var(--ui-line); border-bottom: 1px solid var(--ui-line); min-width: 0; background: #fff; }
.calendar-day h3 { font-size: 13px; margin-bottom: 10px; }
.calendar-day.outside-month { background: var(--ui-canvas); color: var(--ui-muted); }
.calendar-day.current-day { box-shadow: inset 0 0 0 2px var(--ui-accent); }
.calendar-match { display: grid; gap: 4px; padding: 6px 0; border-top: 1px solid var(--ui-line); font-size: 11px; overflow-wrap: anywhere; }
.calendar-match strong { font-weight: 500; }
.calendar-match span, .calendar-game-state { color: var(--ui-muted); font-size: 10px; }
.calendar-match.user-match strong { color: var(--ui-accent); font-weight: 700; }
.rest-day-summary { display: grid; gap: 8px; padding: 28px 0; }
.registration-toolbar { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; padding: 16px 0; border-top: 1px solid var(--ui-line); border-bottom: 1px solid var(--ui-line); font-size: 13px; }
.registration-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; }
.registration-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.registration-player-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 40px; gap: 8px; align-items: center; margin-bottom: 8px; }
.registration-player-row .strategy-player-tile { width: 100%; }
.registration-player-controls { display: grid; gap: 8px; }
.registration-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; white-space: nowrap; }
.registration-toggle input { accent-color: var(--ui-accent); width: 16px; height: 16px; }
.registration-wait { grid-column: 1 / -1; color: var(--ui-muted); font-size: 11px; }
@media (max-width: 1150px) { .registration-layout { grid-template-columns: minmax(0,1fr); } .registration-layout .strategy-inspector { position: static; } }
@media (max-width: 700px) {
    .calendar-day { padding: 6px 4px; min-height: 150px; }
    .calendar-day h3 { font-size: 11px; }
    .calendar-match { font-size: 10px; }
    .calendar-weekday { font-size: 11px; }
    .registration-lists { grid-template-columns: minmax(0,1fr); }
}
.schedule-skip-toolbar { display:flex; flex-wrap:wrap; gap:12px; align-items:center; padding:12px 0; border-bottom:1px solid var(--ui-line); }
.schedule-skip-toolbar label { display:flex; align-items:center; gap:8px; }
.schedule-skip-toolbar span { font-size:0.8rem; flex:1 1 260px; }
.calendar-date-command { font:inherit; color:inherit; padding:3px 6px; border:1px solid transparent; background:transparent; cursor:pointer; }
.calendar-date-command[aria-pressed="true"] { border-color:var(--primary); background:var(--primary); color:white; }
.calendar-date-command:disabled { cursor:default; opacity:0.6; }
#btn-skip-preseason[hidden] { display:none; }
.calendar-game-state { overflow-wrap:anywhere; }
.color-G { background:#a94f13; color:#fff; }
.color-T { background:#f3d743; color:#202828; }
.color-DB { background:#166cb5; color:#fff; }
.color-C { background:#c93648; color:#fff; }
.color-S { background:#247d52; color:#fff; }
.color-D { background:#365ba1; color:#fff; }
.season-context label { display:flex; align-items:center; gap:8px; font-size:12px; }
.season-context select { max-width:150px; padding:6px; font:inherit; background:#fff; color:var(--ui-ink); border:1px solid var(--ui-line); border-radius:4px; }
