/*
  THE LOOKS (owner 2026-11-21, approved exception to the legacy look rule; docs/design.md "Looks").
  One shared theme layer for the website and the app (/app loads this file too): the colors are tokens (tokens.css,
  html[data-look][data-theme]); this file holds the Modern components and the Modern variants of shared classes.
  Classic = html[data-look="classic"]: nothing below applies except the small Look switch.
  Selectors: M = Modern + Modern Chips (html:not([data-look="classic"])), CHIPS = Modern Chips only.
*/

/* ---------- Inter (self-hosted, OFL: fonts/Inter-OFL.txt), used only by the Modern looks ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }

/* ---------- the Look switch (every look; Classic keeps it small in the legacy navbar) ---------- */
.look-controls { display: inline-flex; align-items: center; gap: 6px; }
.look-controls-navbar { float: right; margin: 13px 0 0 10px; }
.navbar .look-item { padding: 0 6px; }
.navbar .look-item .look-controls-navbar { margin-top: 12px; }
.look-select {
    height: 26px; padding: 0 6px; font-size: 12px; color: var(--rc-text); background-color: var(--rc-input-bg);
    border: 1px solid var(--rc-input-border); border-radius: 4px;
}
html[data-look="classic"] .navbar .look-select { color: var(--rc-text); }
.theme-toggle {
    display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 26px; padding: 0 6px;
    font-size: 15px; line-height: 1; color: var(--rc-text); background: var(--rc-input-bg);
    border: 1px solid var(--rc-input-border); border-radius: 999px; cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
html[data-look="classic"] .theme-toggle { display: none; }
html[data-theme="dark"] .theme-toggle .theme-sun, html:not([data-theme="dark"]) .theme-toggle .theme-moon { display: none; }
.theme-toggle-wide { min-width: 90px; font-size: 13px; }

/* ---------- T-236 (owner 2026-11-28): the look banner, CLASSIC ONLY ("Try the new RotoChamp look"); the Modern looks never
   show a banner. It sits in the flow with room below it, so it never covers the page title. ---------- */
.look-banner {
    position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 14px; padding: 8px 12px;
    color: var(--rc-text); background: var(--rc-m-banner-bg, var(--rc-well-bg)); border: 1px solid var(--rc-m-banner-border, var(--rc-well-border));
    border-radius: 8px; font-size: 14px;
}
.look-banner[hidden] { display: none; }
.look-banner-choice { margin-left: 6px; padding: 2px 10px; font: inherit; font-size: 13px; font-weight: 600; color: var(--rc-text); background: var(--rc-surface);
    border: 1px solid var(--rc-border); border-radius: 6px; cursor: pointer; }
.look-banner-choice:hover { background: var(--rc-pill-hover); }
.look-banner-close { border: 0; background: none; color: var(--rc-muted); font-size: 20px; line-height: 1; cursor: pointer; }
html:not([data-look="classic"]) [data-look-banner], html.classic-banner-closed [data-look-banner] { display: none !important; }   /* not the feedback banner; decided before the first paint (owner 2026-11-28: no layout shift) */

/* ---------- Manage Account: Display ---------- */
.look-settings { max-width: 640px; }
.look-settings-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.look-settings-label { min-width: 110px; font-weight: 600; }
.look-option {
    display: flex; flex-direction: column; align-items: flex-start; min-width: 150px; padding: 8px 12px; text-align: left;
    color: var(--rc-text); background: var(--rc-input-bg); border: 1px solid var(--rc-input-border); border-radius: 8px; cursor: pointer;
}
.look-option.active, .look-option[aria-checked="true"] { border-color: var(--rc-accent); box-shadow: inset 0 0 0 1px var(--rc-accent); }
.look-option-name { font-weight: 600; }
.look-option-note { font-size: 12px; color: var(--rc-muted); }
.look-settings-saved { font-size: 13px; color: var(--rc-muted); }

/* T-271 (owner 2026-11-30): the website menu, every look. The HTML is the same for every visitor (cacheable); the head
   script's html.signed-in (rc_signedin hint) shows My Account / Log off instead of FREE TRIAL / Register. */
html:not(.signed-in) .navbar-nav > .nav-signed-in,
html.signed-in .navbar-nav > .nav-signed-out { display: none !important; }
html.signed-in.has-access .navbar-nav > .nav-purchase { display: none !important; }   /* T-315: current-season holders / admins (rc_access hint) */
.navbar-nav .nav-signed-in .navbar-link-button { font: inherit; line-height: 21px; width: 100%; text-align: left; }

/* =====================================================================================================
   MODERN + MODERN CHIPS
   ===================================================================================================== */
html:not([data-look="classic"]) body { font-family: var(--rc-font-ui); font-size: 14px; font-feature-settings: "tnum" 1; }
html:not([data-look="classic"]) h1, html:not([data-look="classic"]) h2, html:not([data-look="classic"]) h3,
html:not([data-look="classic"]) h4 { font-weight: 600; letter-spacing: -0.01em; }

/* Website header (legacy navbar markup, restyled): 60px, the surface color, a hairline border. */
html:not([data-look="classic"]) .navbar { min-height: 60px; box-shadow: var(--rc-m-shadow); }
html:not([data-look="classic"]) .navbar .brand img { height: 46px; width: auto; margin-top: 7px; }
html:not([data-look="classic"]) .navbar-nav > li > a,
html:not([data-look="classic"]) .navbar-nav > li .navbar-link-button { padding-top: 20px; padding-bottom: 20px; font-weight: 500; }
html:not([data-look="classic"]) .rc-page { padding-top: 60px; }
html:not([data-look="classic"]) .look-controls-navbar { margin-top: 16px; }

/* Shared controls get the Modern shape. */
html:not([data-look="classic"]) .btn { border-radius: var(--rc-m-radius); }
html:not([data-look="classic"]) .btn-xs { padding: 3px 8px; }
html:not([data-look="classic"]) .form-control, html:not([data-look="classic"]) select,
html:not([data-look="classic"]) input[type="text"], html:not([data-look="classic"]) input[type="search"],
html:not([data-look="classic"]) input[type="email"], html:not([data-look="classic"]) input[type="password"],
html:not([data-look="classic"]) input[type="number"] {
    color: var(--rc-text); background-color: var(--rc-input-bg); border-color: var(--rc-input-border); border-radius: 6px;
}
html:not([data-look="classic"]) .dropdown-menu { border-radius: 8px; padding: 4px 0; }
html:not([data-look="classic"]) .dropdown-menu > li > a { color: var(--rc-text); padding: 5px 14px; }
html:not([data-look="classic"]) .dropdown-menu > .disabled > span { padding: 5px 14px; font-style: italic; }   /* T-279: coming-soon systems */
html:not([data-look="classic"]) .dropdown-menu > li > a:hover, html:not([data-look="classic"]) .dropdown-menu > li > a:focus { background-color: var(--rc-pill-hover); }
html:not([data-look="classic"]) .modal-content { border-radius: 12px; }
html:not([data-look="classic"]) .modal-header, html:not([data-look="classic"]) .modal-footer { border-color: var(--rc-modal-divider); }
html:not([data-look="classic"]) .panel { border-radius: var(--rc-m-card-radius); overflow: hidden; }
html:not([data-look="classic"]) .table > thead > tr > th { color: var(--rc-sort-header); font-weight: 600; font-size: 12px; }
html:not([data-look="classic"]) .table td, html:not([data-look="classic"]) .table th { font-variant-numeric: tabular-nums; }
html:not([data-look="classic"]) .table-striped > tbody > tr:nth-of-type(odd) { background-color: var(--rc-row-stripe); }
html:not([data-look="classic"]) .table-hover > tbody > tr:hover { background-color: var(--rc-row-hover); }
html:not([data-look="classic"]) .table, html:not([data-look="classic"]) .table > tbody > tr > td { color: var(--rc-text); }

/* Legacy position / filter button rows on the other screens (Rankings, Standings, ...) become segmented groups. */
html:not([data-look="classic"]) .position-filters {
    display: flex; flex-wrap: wrap; gap: 0; padding-top: 6px; padding-bottom: 6px;
}
html:not([data-look="classic"]) .position-filters > .positionFilterButton {
    height: var(--rc-m-control); margin: 0 0 4px -1px; padding: 0 11px; line-height: calc(var(--rc-m-control) - 2px);
    font-size: 13px; font-weight: 500; color: var(--rc-text); background: var(--rc-m-segment-bg); border: 1px solid var(--rc-border);
    border-radius: 0; box-shadow: none; text-shadow: none;
}
html:not([data-look="classic"]) .position-filters > .positionFilterButton:first-child { border-radius: var(--rc-m-radius) 0 0 var(--rc-m-radius); margin-left: 0; }
html:not([data-look="classic"]) .position-filters > .positionFilterButton:last-child { border-radius: 0 var(--rc-m-radius) var(--rc-m-radius) 0; }
html:not([data-look="classic"]) .position-filters > .positionFilterButton.btn-success {
    color: var(--rc-m-segment-active-text); background: var(--rc-m-segment-active-bg); border-color: var(--rc-m-segment-active-bg); position: relative; z-index: 1;
}
html:not([data-look="classic"]) .position-filters > .positionFilterButton:hover:not(.btn-success) { background: var(--rc-filter-hover-bg); }

/* ---------- Modern toolbar (Projections is the model) ---------- */
.m-toolbar { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 12px; }
.m-toolbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.m-spacer { flex: 1 1 auto; }

.m-seg { display: inline-flex; flex-wrap: wrap; }
.m-seg-btn {
    height: var(--rc-m-control); margin-left: -1px; padding: 0 12px; font: inherit; font-size: 13px; font-weight: 500;
    color: var(--rc-text); background: var(--rc-m-segment-bg); border: 1px solid var(--rc-border); cursor: pointer;
}
.m-seg-btn:first-child { margin-left: 0; border-radius: var(--rc-m-radius) 0 0 var(--rc-m-radius); }
.m-seg-btn:last-child { border-radius: 0 var(--rc-m-radius) var(--rc-m-radius) 0; }
.m-seg-btn:hover { background: var(--rc-filter-hover-bg); }
.m-seg-btn.active { position: relative; z-index: 1; color: var(--rc-m-segment-active-text); background: var(--rc-m-segment-active-bg); border-color: var(--rc-m-segment-active-bg); }

.m-filter-wrap { position: relative; display: inline-block; }
.m-filter {
    display: inline-flex; align-items: center; gap: 6px; height: var(--rc-m-control); padding: 0 10px; font: inherit; font-size: 13px;
    color: var(--rc-text); background: var(--rc-surface); border: 1px solid var(--rc-border); border-radius: var(--rc-m-radius); cursor: pointer;
}
.m-filter:hover { border-color: var(--rc-muted); }
.m-filter-label { color: var(--rc-muted); }
.m-filter-value { font-weight: 500; }
.m-filter-caret { color: var(--rc-muted); }
.m-filter-menu { max-height: 60vh; overflow-y: auto; }

.m-btn {
    display: inline-flex; align-items: center; gap: 6px; height: var(--rc-m-control); padding: 0 12px; font: inherit; font-size: 13px; font-weight: 500;
    color: var(--rc-text); background: var(--rc-surface); border: 1px solid var(--rc-border); border-radius: var(--rc-m-radius); cursor: pointer;
}
.m-btn:hover { background: var(--rc-filter-hover-bg); }
.m-link-btn { padding: 0 4px; font: inherit; font-size: 13px; color: var(--rc-link); background: none; border: 0; cursor: pointer; }
.m-link-btn:hover { text-decoration: none; }   /* T-325 (1) */
.m-plain-btn {
    display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 8px; font: inherit; font-size: 13px;
    color: var(--rc-text); background: none; border: 0; border-radius: 6px; cursor: pointer;
}
.m-plain-btn:hover { background: var(--rc-pill-hover); }

.m-switch { display: inline-flex; align-items: center; gap: 8px; padding: 0 4px; font: inherit; font-size: 13px; color: var(--rc-text); background: none; border: 0; cursor: pointer; }
.m-switch-track { position: relative; width: 34px; height: 20px; background: var(--rc-border); border-radius: 999px; transition: background-color .15s; }
.m-switch-thumb { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: var(--rc-surface); border-radius: 50%; box-shadow: var(--rc-m-shadow); transition: left .15s; }
.m-switch[aria-checked="true"] .m-switch-track { background: var(--rc-accent); }
.m-switch[aria-checked="true"] .m-switch-thumb { left: 16px; }

/* ---------- Modern Chips (Option B) ---------- */
.m-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--rc-border); }
.m-tab {
    margin-bottom: -1px; padding: 8px 12px; font: inherit; font-size: 14px; font-weight: 500; color: var(--rc-muted);
    background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
}
.m-tab:hover { color: var(--rc-text); }
.m-tab.active { color: var(--rc-m-tab-active); border-bottom-color: var(--rc-m-tab-active); }
.m-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.m-pill {
    min-width: 30px; height: 30px; padding: 0 10px; font: inherit; font-size: 13px; font-weight: 500; color: var(--rc-text);
    background: var(--rc-m-chip-bg); border: 0; border-radius: 999px; cursor: pointer;
}
.m-pill:hover { filter: brightness(0.96); }
.m-pill.active { color: var(--rc-m-chip-active-text); background: var(--rc-m-chip-active-bg); }
.m-chip {
    display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; font: inherit; font-size: 13px;
    color: var(--rc-text); background: var(--rc-m-chip-bg); border: 0; border-radius: 999px; cursor: pointer;
}
.m-chip.is-set { box-shadow: inset 0 0 0 1px var(--rc-accent); }
.m-toolbar-chips .m-switch-track { width: 28px; height: 16px; }
.m-toolbar-chips .m-switch-thumb { width: 12px; height: 12px; }
.m-toolbar-chips .m-switch[aria-checked="true"] .m-switch-thumb { left: 14px; }
.m-more-filters { min-width: 260px; padding: 8px; }
.m-more-group { margin-bottom: 8px; }
.m-more-group > ul { max-height: 160px; margin: 4px 0 0; padding: 0; overflow-y: auto; list-style: none; border: 1px solid var(--rc-border); border-radius: 6px; }
.m-more-group > ul > li > a { display: block; padding: 3px 10px; color: var(--rc-text); }
.m-more-group > ul > li > a:hover { background: var(--rc-pill-hover); text-decoration: none; }
.m-more-group > ul > li.divider { height: 1px; margin: 2px 0; background: var(--rc-dropdown-divider); }
.m-more-value { margin-left: 6px; font-weight: 500; }

/* ---------- grids in a card ---------- */
html:not([data-look="classic"]) .projections-scroll {
    background: var(--rc-surface); border: 1px solid var(--rc-border); border-radius: var(--rc-m-card-radius); box-shadow: var(--rc-m-shadow);
}
html:not([data-look="classic"]) .projections-grid { margin-bottom: 0; border: 0; }
html:not([data-look="classic"]) .projections-grid > thead > tr > th { background: var(--rc-surface); border-color: var(--rc-border); }
html:not([data-look="classic"]) .projections-grid > tbody > tr > td { border-color: var(--rc-border); }
html:not([data-look="classic"]) .rankings-grid, html:not([data-look="classic"]) .standings-grid { background: var(--rc-surface); }
/* T-351 (owner walkthrough W9, 2026-12-03): Projected Standings: my row stands out in both tables (the My team tint, bold
   name); my category cells are tinted by their standings points (top third success, middle warning, bottom danger),
   mixed into the surface so the number stays readable in light and dark. Other teams unchanged. */
html:not([data-look="classic"]) .standings-grid > tbody > tr.standings-mine > td { background: var(--rc-mine-tint); }
html:not([data-look="classic"]) .standings-grid > tbody > tr.standings-mine > td.ManagerLink a { font-weight: 700; }
html:not([data-look="classic"]) .standings-grid > tbody > tr.standings-mine > td.standings-tier-high { background: color-mix(in srgb, var(--rc-success) 28%, var(--rc-surface)); }
html:not([data-look="classic"]) .standings-grid > tbody > tr.standings-mine > td.standings-tier-mid { background: color-mix(in srgb, var(--rc-warning) 24%, var(--rc-surface)); }
html:not([data-look="classic"]) .standings-grid > tbody > tr.standings-mine > td.standings-tier-low { background: color-mix(in srgb, var(--rc-danger) 22%, var(--rc-surface)); }
html:not([data-look="classic"]) .table-responsive { border-radius: var(--rc-m-card-radius); }

/* =====================================================================================================
   APP SHELL (Modern looks): left icon rail, one 60px top bar, one thin draft status line; phones: bottom bar
   ===================================================================================================== */
.m-icon { flex: none; }
.m-logo-inner { stroke: var(--rc-on-accent); }

.m-rail {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 1031; display: flex; flex-direction: column; align-items: stretch;
    width: 88px; padding: 10px 8px; overflow-y: auto; background: var(--rc-m-rail-bg); border-right: 1px solid var(--rc-m-rail-border); scrollbar-width: none;
}
.m-rail-logo { display: flex; justify-content: center; padding: 4px 0 12px; color: var(--rc-m-logo-a); }
.m-rail-anchor { position: relative; }
.m-rail-item {
    display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; margin: 1px 0; padding: 7px 2px;
    font: inherit; font-size: 11px; line-height: 1.2; color: var(--rc-m-rail-text); text-align: center; background: none;
    border: 0; border-radius: 10px; cursor: pointer;
}
.m-rail-item:hover, .m-rail-item:focus-visible { color: var(--rc-m-rail-hover-text); text-decoration: none; background: var(--rc-m-rail-active-bg); }
.m-rail-item.active { color: var(--rc-m-rail-active-text); background: var(--rc-m-rail-active-bg); }
.m-rail-item.active .m-icon { color: var(--rc-m-rail-active-icon); }
.m-rail a.m-rail-item:focus { color: var(--rc-m-rail-hover-text); text-decoration: none; }

.m-menu {
    position: absolute; z-index: 1040; min-width: 220px; margin: 0; padding: 6px 0; list-style: none; color: var(--rc-text);
    background: var(--rc-dropdown-bg); border: 1px solid var(--rc-dropdown-border); border-radius: 10px; box-shadow: var(--rc-dropdown-shadow);
}
.m-menu a, .m-menu button.m-logoff, .m-menu button.m-reset-text-sizes {
    display: block; width: 100%; padding: 6px 14px; font: inherit; font-size: 13px; color: var(--rc-text); text-align: left;
    background: none; border: 0; cursor: pointer;
}
.m-menu a:hover, .m-menu button.m-logoff:hover, .m-menu button.m-reset-text-sizes:hover { text-decoration: none; background: var(--rc-pill-hover); }
.m-menu .divider { height: 1px; margin: 5px 0; background: var(--rc-dropdown-divider); }
.m-rail-menu { top: 0; left: calc(100% + 8px); }
.m-more-menu { top: auto; bottom: 0; max-height: 80vh; overflow-y: auto; }
.m-menu-phone { display: none; }
.m-menu-backdrop { position: fixed; inset: 0; z-index: 1029; }
.m-rail { overflow: visible; }

.m-topbar {
    position: fixed; top: 0; right: 0; left: 88px; z-index: 1030; display: flex; align-items: center; gap: 14px; height: 60px;
    padding: 0 16px; color: var(--rc-text); background: var(--rc-m-topbar-bg); border-bottom: 1px solid var(--rc-border);
}
.m-topbar-plain { left: 0; }
.m-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: var(--rc-text); }
.m-brand .m-icon { color: var(--rc-m-logo-a); }
.m-brand:hover { text-decoration: none; color: var(--rc-text); }
.m-topnav { display: flex; gap: 4px; }
.m-topnav a, .m-topnav-link { padding: 6px 10px; font-weight: 500; color: var(--rc-text); border-radius: 6px; }
.m-topnav a:hover, .m-topnav-link:hover { text-decoration: none; background: var(--rc-pill-hover); }
.m-topbar form { margin: 0; }
.m-logoff { padding: 6px 10px; font: inherit; font-size: 13px; color: var(--rc-text); background: none; border: 0; border-radius: 6px; cursor: pointer; }
.m-logoff:hover { background: var(--rc-pill-hover); }

.m-league-switch {
    display: inline-flex; align-items: center; gap: 8px; max-width: 280px; padding: 4px 8px; font: inherit; color: var(--rc-text);
    text-align: left; background: none; border: 0; border-radius: 8px; cursor: pointer;
}
.m-league-switch:hover { background: var(--rc-pill-hover); }
.m-league-text { display: flex; flex-direction: column; min-width: 0; }
.m-league-name { overflow: hidden; font-size: 15px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.m-league-summary { font-size: 12px; color: var(--rc-muted); white-space: nowrap; }
.m-league-caret { color: var(--rc-muted); }

.m-search { position: relative; flex: 1 1 260px; max-width: 420px; }
.m-search .m-search-icon { position: absolute; top: 10px; left: 10px; z-index: 2; color: var(--rc-muted); pointer-events: none; }
.m-search .PlayerSearch, .m-search input[type="text"] {
    width: 100%; max-width: none; height: 36px; padding-left: 32px; padding-right: 30px; font-size: 14px;
    background: var(--rc-bg); border: 1px solid var(--rc-border); border-radius: 8px; box-shadow: none;
}
/* T-278 (owner 2026-11-30): a little room between the player's name and the injury "+" (every look). */
.player-injury { margin-left: 3px; }
.m-kbd {
    cursor: help;
    position: absolute; top: 8px; right: 8px; padding: 0 6px; font-family: inherit; font-size: 11px; line-height: 18px;
    color: var(--rc-muted); background: var(--rc-surface); border: 1px solid var(--rc-border); border-radius: 4px; box-shadow: none;
}
.m-mock-btn {
    display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; font: inherit; font-size: 13px; font-weight: 600;
    color: var(--rc-m-mock-btn-text); background: var(--rc-m-mock-btn); border: 0; border-radius: 8px; cursor: pointer;
}
.m-mock-btn.disabled { opacity: 0.55; cursor: not-allowed; }
.m-topbar-icons { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.m-icon-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0;
    color: var(--rc-text); background: none; border: 0; border-radius: 8px; cursor: pointer;
}
.m-icon-btn:hover { background: var(--rc-pill-hover); }
.m-icon-btn.theme-toggle { font-size: 17px; border: 0; min-width: 36px; height: 36px; border-radius: 8px; }
.m-badge {
    position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; font-weight: 700; line-height: 16px;
    color: var(--rc-m-badge-text); text-align: center; background: var(--rc-m-badge-bg); border-radius: 999px;
}
.m-avatar {
    width: 34px; height: 34px; font: inherit; font-weight: 700; color: var(--rc-on-accent); background: var(--rc-accent);
    border: 0; border-radius: 50%; cursor: pointer;
}
.m-account-menu { top: calc(100% + 8px); right: 0; min-width: 240px; }
.m-account-name { padding: 6px 14px 8px; font-weight: 600; border-bottom: 1px solid var(--rc-dropdown-divider); margin-bottom: 4px; }
.m-account-look { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 14px; font-size: 13px; }

.m-status {
    position: fixed; top: 60px; right: 0; left: 88px; z-index: 1029; display: flex; align-items: center; gap: 6px; height: 30px;
    padding: 0 16px; overflow: hidden; font-size: 12.5px; color: var(--rc-muted); white-space: nowrap; background: var(--rc-m-status-bg);
    border-bottom: 1px solid var(--rc-border);
}
.m-status a { color: var(--rc-link); }
.m-status-dot.live { color: var(--rc-m-live); }
.m-status-dot.done { color: var(--rc-warning); }   /* batch 4 (2026-11-22): complete = amber, not started = gray */
.m-status-dot.idle { color: var(--rc-muted); }
.m-sep { opacity: 0.6; }
.m-undraft {
    margin-left: 2px; padding: 0 6px; font: inherit; font-size: 11px; line-height: 18px; color: var(--rc-danger); background: none;
    border: 1px solid var(--rc-danger); border-radius: 4px; cursor: pointer;
}
.m-status .values-status { margin-left: 0; }

.m-bottombar { display: none; }

/* The page beside the rail and under the bars. */
/* A1 (owner 2026-11-21): the page starts below the fixed top bar (60px) and the status line (30px); same specificity
   as the generic Modern .rc-page rule above so these win. */
html:not([data-look="classic"]) .rc-page.m-page { padding-top: 72px; }
html:not([data-look="classic"]) .rc-page.m-with-rail { padding-top: 102px; padding-left: 88px; }

/* ---------- phones: the rail becomes a bottom bar (4 main pages + More) ---------- */
@media (max-width: 767px) {
    .m-rail { display: none; }
    .m-topbar { left: 0; gap: 8px; padding: 0 8px; }
    .m-league-switch { max-width: 45vw; }
    .m-search { flex-basis: 120px; }
    .m-kbd, .m-mock-btn, .m-topbar .Feedback { display: none; }
    .m-topnav { display: none; }
    .m-status { left: 0; padding: 0 8px; }
    html:not([data-look="classic"]) .rc-page.m-with-rail { padding-left: 0; padding-bottom: 76px; }
    .m-bottombar {
        position: fixed; right: 0; bottom: 0; left: 0; z-index: 1031; display: grid; grid-template-columns: repeat(5, 1fr);
        height: 62px; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); background: var(--rc-m-rail-bg);
    }
    .m-bottombar .m-rail-item { margin: 0; padding: 6px 0; }
    .m-bottombar .m-more-menu { top: auto; right: 0; bottom: calc(100% + 8px); left: auto; max-height: 70vh; }
    .m-bottombar .m-menu-phone { display: block; }
    .m-bottombar .m-menu-phone.divider { display: block; }
}

/* ---------- owner 2026-11-21 new-look testing (B) ---------- */
/* B9: dropdown menus in the same font and size as the filter boxes. */
html:not([data-look="classic"]) .dropdown-menu, html:not([data-look="classic"]) .dropdown-menu > li > a,
html:not([data-look="classic"]) .m-filter-menu > li > a { font-family: var(--rc-font-ui); font-size: 13px; line-height: 1.5; }
/* B10: the news icon keeps its hue but is light on dark; deeper panel headers in dark mode. */
html[data-theme="dark"]:not([data-look="classic"]) .news-icon .glyphicon { filter: invert(0.85) hue-rotate(180deg); }
html[data-theme="dark"]:not([data-look="classic"]) .panel-primary > .panel-heading {
    background-color: var(--rc-m-panel-primary, var(--rc-primary)); border-color: var(--rc-m-panel-primary-border, var(--rc-primary)); }
html[data-theme="dark"]:not([data-look="classic"]) .panel-primary { border-color: var(--rc-m-panel-primary-border, var(--rc-primary)); }
html[data-theme="dark"]:not([data-look="classic"]) .panel-success > .panel-heading {
    background-color: var(--rc-m-panel-success, var(--rc-success)); border-color: var(--rc-m-panel-success-border, var(--rc-success)); }
html[data-theme="dark"]:not([data-look="classic"]) .panel-success { border-color: var(--rc-m-panel-success-border, var(--rc-success)); }
html[data-theme="dark"]:not([data-look="classic"]) .panel-heading .panel-title { color: var(--rc-text); }
/* B7: the look menu under the ☀ / ☾ button. */
.look-menu-list { top: calc(100% + 8px); right: 0; min-width: 190px; }
.look-menu-list a.active { font-weight: 600; color: var(--rc-accent); }
/* B4 (owner 2026-11-21): the real RotoChamp logo, transparent everywhere in the Modern looks (the legacy small logo has
   a white background = a white box in dark popups) and a dark-mode version ("Roto" light; red "Champ" and the diamond
   unchanged). Classic keeps the legacy images. Files made from RotoChampMedium.png (images/logo-*.png). */
html:not([data-look="classic"]) img[src$="RotoChampSmall.png"] { content: url("../images/logo-small.png"); width: 132px; height: auto; }
html[data-theme="dark"]:not([data-look="classic"]) img[src$="RotoChampSmall.png"] { content: url("../images/logo-small-dark.png"); }
html[data-theme="dark"]:not([data-look="classic"]) img[src$="RotoChampMedium.png"] { content: url("../images/logo-medium-dark.png"); }
html[data-theme="dark"]:not([data-look="classic"]) img[src$="RotoChamp_Trans.png"] { content: url("../images/logo-trans-dark.png"); }
.m-rail-logo img { width: 56px; height: auto; display: block; }
.m-brand img { width: 30px; height: auto; }
/* A2 (owner 2026-11-21): the top bar always fits: the league name truncates, the search shrinks, the mock-draft
   button keeps only its icon on narrow screens; the icons never leave the window. */
.m-topbar { min-width: 0; }
.m-league-switch { flex: 0 1 auto; min-width: 0; }
.m-league-text { min-width: 0; }
.m-league-summary { overflow: hidden; text-overflow: ellipsis; }
.m-search { min-width: 90px; flex: 1 1 200px; }
.m-mock-btn, .m-topbar-icons { flex: 0 0 auto; }
@media (max-width: 1279px) { .m-mock-btn { padding: 0 10px; font-size: 0; gap: 0; } .m-mock-btn .m-icon { width: 14px; } }
/* Wide tables scroll inside their own box, never the page. */
.app-main .table-responsive, .app-main .projections-scroll { max-width: 100%; overflow-x: auto; }
.app-main .row > [class*="col-"] { min-width: 0; }

/* =====================================================================================================
   C (owner 2026-11-21): the Modern restyle of every screen, from the same building blocks as Projections.
   ===================================================================================================== */
/* Toolbar links (Rankings "rankings-tools", Rosters "roster-tool") -> secondary buttons with icons. */
html:not([data-look="classic"]) .rankings-tools > a, html:not([data-look="classic"]) a.roster-tool,
html:not([data-look="classic"]) .app-main a.ToggleDrag, html:not([data-look="classic"]) .sidebar-toggle {
    display: inline-flex; align-items: center; gap: 5px; height: 30px; margin: 0 6px 6px 0; padding: 0 10px; font-size: 13px; font-weight: 500;
    color: var(--rc-text); background: var(--rc-surface); border: 1px solid var(--rc-border); border-radius: var(--rc-m-radius);
    text-decoration: none; box-shadow: none; text-shadow: none; }
html:not([data-look="classic"]) .rankings-tools > a:hover, html:not([data-look="classic"]) a.roster-tool:hover,
html:not([data-look="classic"]) .app-main a.ToggleDrag:hover, html:not([data-look="classic"]) .sidebar-toggle:hover { background: var(--rc-filter-hover-bg); }
html:not([data-look="classic"]) .tool-icon, html:not([data-look="classic"]) .app-main a.ToggleDrag .glyphicon { color: var(--rc-muted); top: 0; }
/* "Drag a player to draft him" and similar: a quiet hint, not a button. */
html:not([data-look="classic"]) .rankings-tools > .tool-success, html:not([data-look="classic"]) .roster-drag-hint {
    display: inline-flex; align-items: center; gap: 5px; margin-right: 10px; padding: 0; font-size: 12.5px; font-style: italic; font-weight: normal;
    color: var(--rc-muted); background: none; border: 0; }
/* Legacy dropdown buttons (Projection System, Manager, Sorted By, Showing ...) -> filter boxes. */
html:not([data-look="classic"]) .app-main .btn-group > .dropdown-toggle.btn {
    height: var(--rc-m-control); padding: 0 10px; font-size: 13px; font-weight: 500; line-height: calc(var(--rc-m-control) - 2px);
    color: var(--rc-text); background: var(--rc-surface); border: 1px solid var(--rc-border); border-radius: var(--rc-m-radius); box-shadow: none; text-shadow: none; }
html:not([data-look="classic"]) .app-main .btn-group > .dropdown-toggle.btn:hover { border-color: var(--rc-muted); }
html:not([data-look="classic"]) .app-main .btn-group > .dropdown-toggle .caret { color: var(--rc-muted); }
html:not([data-look="classic"]) .app-main .btn-group { margin: 0 6px 6px 0; }
/* Other solid legacy buttons outside popup footers -> secondary buttons. */
html:not([data-look="classic"]) .app-main .btn:not(.dropdown-toggle):not(.positionFilterButton):not(.m-keep):not(.btn-main):not(.modal-footer .btn):not(.modal .btn):not(.top-players-positions .btn.active) {
    color: var(--rc-text); background: var(--rc-surface); border: 1px solid var(--rc-border); box-shadow: none; text-shadow: none; }
html:not([data-look="classic"]) .app-main .btn:not(.dropdown-toggle):not(.positionFilterButton):not(.m-keep):not(.btn-main):not(.modal-footer .btn):not(.modal .btn):not(.top-players-positions .btn.active):hover {
    background: var(--rc-filter-hover-bg); }
/* Rosters: team names as plain bold column headers; my team subtly highlighted. */
html:not([data-look="classic"]) .rosters-grid .roster-team {
    display: block; padding: 4px 2px; font-size: 13px; font-weight: 600; color: var(--rc-text); background: none; border: 0; border-radius: 6px; white-space: normal; }
html:not([data-look="classic"]) .rosters-grid .roster-team:hover { color: var(--rc-link); background: var(--rc-filter-hover-bg); }
html:not([data-look="classic"]) .rosters-grid th.roster-mine { background: var(--rc-filter-hover-bg); }
html:not([data-look="classic"]) .rosters-grid th.roster-mine .roster-team { color: var(--rc-accent); }
/* Rankings Top Players: visible Hide / Show, position pills (no black boxes), a roomier sidebar. */
html:not([data-look="classic"]) .top-players-positions .btn { height: 24px; padding: 0 8px; font-size: 12px; color: var(--rc-text); background: var(--rc-m-chip-bg);
    border: 0; border-radius: 999px; }
html:not([data-look="classic"]) .top-players-positions .btn.active { color: var(--rc-m-chip-active-text); background: var(--rc-m-chip-active-bg); }
@media (min-width: 1200px) { html:not([data-look="classic"]) .rankings-sidebar { width: 28%; } html:not([data-look="classic"]) .rankings-sidebar + div { width: 72%; } }
/* Player card: tabs as a segmented group; one main button; .283 stats. */
html:not([data-look="classic"]) .player-card-tabs { display: inline-flex; flex-wrap: wrap; margin-bottom: 8px; border: 0; }
html:not([data-look="classic"]) .player-card-tabs > li { float: none; margin: 0 0 0 -1px; }
html:not([data-look="classic"]) .player-card-tabs > li > a { height: 30px; padding: 0 12px; line-height: 28px; font-size: 13px; color: var(--rc-text);
    background: var(--rc-m-segment-bg); border: 1px solid var(--rc-border); border-radius: 0; }
html:not([data-look="classic"]) .player-card-tabs > li:first-child > a { border-radius: var(--rc-m-radius) 0 0 var(--rc-m-radius); }
html:not([data-look="classic"]) .player-card-tabs > li:last-child > a { border-radius: 0 var(--rc-m-radius) var(--rc-m-radius) 0; }
html:not([data-look="classic"]) .player-card-tabs > li.active > a { color: var(--rc-m-segment-active-text); background: var(--rc-m-segment-active-bg); border-color: var(--rc-m-segment-active-bg); }
html:not([data-look="classic"]) .modal .btn.RecentPlayerViews, html:not([data-look="classic"]) .modal .btn.SpecifyPick,
html:not([data-look="classic"]) .modal .btn.player-card-close, html:not([data-look="classic"]) .modal .btn.CurrentAuction {
    color: var(--rc-text); background: var(--rc-surface); border: 1px solid var(--rc-border); }
html:not([data-look="classic"]) .modal .btn.DraftPlayer, html:not([data-look="classic"]) .modal .btn.PlayerEditLink {
    color: var(--rc-on-accent); background: var(--rc-accent); border-color: var(--rc-accent); }
.stat-actual-row > td { border-top: 2px solid var(--rc-border) !important; }
.stat-actual-row > td:first-child { font-style: italic; }
/* Position popup: the position buttons row (Modern). */
.position-buttons { display: inline-flex; flex-wrap: wrap; }
/* Team Summary: the manager buttons as pills, the selected one highlighted. */
html:not([data-look="classic"]) .team-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
html:not([data-look="classic"]) .team-buttons .filter-btn { height: 30px; padding: 0 12px; font-size: 13px; color: var(--rc-text); background: var(--rc-m-chip-bg); border: 0; border-radius: 999px; }
html:not([data-look="classic"]) .team-buttons .filter-btn.selected { color: var(--rc-m-segment-active-text); background: var(--rc-m-segment-active-bg); }

/* ---------- Owner 2026-11-21: setup / sync pages (Sync Yahoo / ESPN / Fantrax / CBS League) in the Modern looks ----------
   Classic keeps the legacy page (logo, coloured panels). Modern: no big logo, the page title like the other screens,
   neutral cards (no bright blue / purple / green panel bars), the same width as My Leagues. */
html:not([data-look="classic"]) .m-setup { max-width: 1100px; }
html:not([data-look="classic"]) .m-setup > br:first-child,
html:not([data-look="classic"]) .m-setup .m-setup-logo { display: none; }
html:not([data-look="classic"]) .m-setup h2 { font-size: 22px; font-weight: 600; margin: 8px 0 16px; color: var(--rc-text); }
html:not([data-look="classic"]) .m-setup .panel {
    background: var(--rc-surface); border: 1px solid var(--rc-border); border-radius: var(--rc-m-card-radius, var(--rc-radius-lg));
    box-shadow: var(--rc-m-shadow, none); overflow: hidden; }
html:not([data-look="classic"]) .m-setup .panel > .panel-heading,
html[data-theme="dark"]:not([data-look="classic"]) .m-setup .panel > .panel-heading {
    background: transparent; border: 0; border-bottom: 1px solid var(--rc-border); padding: 12px 16px; }
html:not([data-look="classic"]) .m-setup .panel-heading .panel-title { color: var(--rc-text); font-size: 15px; font-weight: 600; }
html:not([data-look="classic"]) .m-setup .panel-body { padding: 16px; }
html:not([data-look="classic"]) .m-setup .well { background: var(--rc-surface); border: 1px solid var(--rc-border); border-radius: var(--rc-radius); box-shadow: none; }

/* ---------- Owner 2026-11-21 (new look items 9-11): one place per control ----------
   .legacy-only: shown in Classic only (each screen's own Projection System, Export, Refresh, Drag/Drop toggle and drag
   hints: the Modern top bar has them once). .modern-only: shown in the Modern looks only (e.g. Reset Filters). */
html:not([data-look="classic"]) .legacy-only { display: none !important; }
.modern-only { display: none !important; }
html[data-look="modern"] .modern-only, html[data-look="chips"] .modern-only { display: revert !important; }
html:not([data-look="classic"]) .m-reset { margin-left: 4px; }

/* Modern looks: "Drag Player Here to Undraft Him" appears only while an already-DRAFTED player is dragged (T-030), as a dashed drop zone fixed at
   the bottom of the window (it never shifts the grid under the pointer). */
html:not([data-look="classic"]) .undraft-zone { display: none !important; }
/* Owner 2026-11-22 (A2): one zone for Rosters and Draft Results (UndraftDropZone), about twice its old size, red while a
   player is over it. */
html.rc-dragging-drafted:not([data-look="classic"]) .undraft-zone {
    display: flex !important; align-items: center; justify-content: center; gap: 12px; position: fixed; left: 50%; bottom: 24px;
    transform: translateX(-50%); z-index: 1050; min-width: 560px; min-height: 104px; margin: 0; padding: 20px 40px;
    border-radius: var(--rc-radius-lg); font-size: 18px; font-weight: 600; float: none;
    background: var(--rc-surface) !important; color: var(--rc-danger) !important; border: 3px dashed var(--rc-danger) !important;
    box-shadow: var(--rc-modal-shadow-wide); }
html.rc-dragging-drafted:not([data-look="classic"]) .undraft-zone .roster-undraft-icon { margin: 0; font-size: 24px; }
html.rc-dragging-drafted:not([data-look="classic"]) .undraft-zone.drag-over {
    background: var(--rc-danger) !important; color: var(--rc-on-accent) !important; border-style: solid !important; }
html:not([data-look="classic"]) .m-status .provider-sync { color: inherit; text-decoration: underline; }

/* ---------- Owner 2026-11-21 (item 9): the top bar, in this order: league switcher, Search for Player (narrower, wider
   on focus), Projection System, Start Mock Draft, Export, Drag & drop + "?", then Feedback, Messages, theme, account.
   Narrow screens: "Projection System:" shortens to the system's name (tooltip), Export / Drag & drop / Mock Draft keep
   only their icons; phones: Export and Drag & drop move into the account menu. It never runs off the window. ---------- */
.m-topbar { gap: 10px; }
.m-league-switch { max-width: 300px; }
.m-search { flex: 0 1 270px; min-width: 120px; max-width: 280px; transition: max-width .15s, flex-basis .15s; }
.m-search:focus-within { flex-basis: 420px; max-width: 420px; }
.m-topbar-btn {
    display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; height: 34px; padding: 0 10px; font: inherit; font-size: 13px;
    white-space: nowrap; color: var(--rc-text); background: var(--rc-surface); border: 1px solid var(--rc-border); border-radius: 8px; cursor: pointer; }
.m-topbar-btn:hover { background: var(--rc-pill-hover); }
.m-system-label { color: var(--rc-muted); }
.m-system-value { font-weight: 600; }
.m-system-menu { min-width: 180px; }
.m-system-menu .m-menu-item { display: block; width: 100%; padding: 7px 12px; text-align: left; font: inherit; font-size: 13px;
    color: var(--rc-text); background: none; border: 0; cursor: pointer; }
.m-system-menu .m-menu-item:hover { background: var(--rc-pill-hover); }
.m-system-menu .m-menu-item.active { font-weight: 700; }
.m-topbar-drag, .m-topbar-drag-help, .m-topbar-system, .m-mock-btn { flex: 0 0 auto; }
.m-topbar-drag { white-space: nowrap; }
.m-phone-only { display: none !important; }
@media (max-width: 1439px) { .m-system-label { display: none; } }
@media (max-width: 1279px) {
    .m-topbar-text { display: none; }
    .m-topbar-btn, .m-mock-btn { padding: 0 8px; }
    .m-search { flex-basis: 200px; }
}
@media (max-width: 1023px) { .m-league-switch { max-width: 200px; } .m-league-summary { display: none; } }
@media (max-width: 767px) {
    .m-export-btn, .m-topbar-drag, .m-topbar-drag-help { display: none !important; }
    .m-phone-only { display: block !important; }
    .m-topbar-system .m-topbar-btn { padding: 0 6px; }
}

/* ---------- Owner 2026-11-21 (item 7): ONE Top Players panel (Rankings, Draft Results) in the Modern looks ----------
   It fills the window below the top bar and status line with its OWN scroll bar; its headers, position buttons, ADP line
   and search stay put; the page does not scroll for it. Collapsed: no strip, the Show button only (T-126). */
html:not([data-look="classic"]) .rankings-sidebar {
    position: sticky; top: 102px; height: calc(100vh - 114px); display: flex; flex-direction: column; padding-bottom: 8px; }
html:not([data-look="classic"]) .rankings-sidebar > .results-and-roster {
    flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
html:not([data-look="classic"]) .results-and-roster > .tab-content,
html:not([data-look="classic"]) .results-and-roster > .tab-content > .tab-pane { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
html:not([data-look="classic"]) .results-and-roster .top-players-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; }
html:not([data-look="classic"]) .results-and-roster .top-players-scroll thead th {
    position: sticky; top: 0; z-index: 2; background: var(--rc-surface); box-shadow: inset 0 -1px 0 var(--rc-border); }
/* T-035 (owner 2026-11-23): on Position Rankings and Draft Results the panel sits to the RIGHT of the main grid
   ("Hide »" at its top-right); collapsed, the slim "Top Players" strip with « sits on the right edge of the window. */
html:not([data-look="classic"]) .rankings-sidebar { float: right; }
html:not([data-look="classic"]) .top-players-hide { align-self: flex-end; margin: 0 0 6px; }
/* T-031: the panel widens a bit with the screen's text size, and in narrower windows (992-1199 px) it gets a little more
   room, so the Player column never shrinks to nothing (TopPlayersTests.NarrowWindow). */
@media (min-width: 992px) and (max-width: 1199px) {
    html:not([data-look="classic"]) .rankings-sidebar { width: 31%; }
    html:not([data-look="classic"]) .rankings-sidebar + div:not(.rankings-wide) { width: 69%; }
    html:not([data-look="classic"]) .rankings-sidebar #gridTopPlayers .tp-elig { width: 20%; }
}
@media (min-width: 1200px) {
    html[data-text-size="large"]:not([data-look="classic"]) .rankings-sidebar { width: 31%; }
    html[data-text-size="large"]:not([data-look="classic"]) .rankings-sidebar + div { width: 69%; }
    html[data-text-size="small"]:not([data-look="classic"]) .rankings-sidebar { width: 26%; }
    html[data-text-size="small"]:not([data-look="classic"]) .rankings-sidebar + div { width: 74%; }
}
html:not([data-look="classic"]) .top-players-positions .btn.active,
html:not([data-look="classic"]) .top-players-positions .btn[aria-pressed="true"] { background: var(--rc-drop-eligible); }
/* T-126 (owner 2026-11-24): collapsed, there is NO edge strip: "« Show Top Remaining Players" (top-right, where "Hide »"
   sits when the panel is open; outlined like Hide, never filled; "« Top Players" at the large text size) is the only way
   back, and the grid uses the full width. The grid starts below the button's line (Rankings: the filter row; Draft
   Results: the "Draft Results" title line) so the floated button never narrows the grid's scroll box (fix 3). */
html:not([data-look="classic"]) .top-players-show { float: right; margin: 0 0 6px 8px; white-space: nowrap; }
html:not([data-look="classic"]) .top-players-collapsed > .table-responsive,
html:not([data-look="classic"]) .top-players-collapsed .grid-fit-box { clear: both; }
html:not([data-look="classic"]) .results-title > .top-players-show { margin: 6px 0 0 8px; }
/* Position Rankings has one more 15px layer on the right (container-fluid) than Draft Results: dropped while collapsed. */
html:not([data-look="classic"]) .rankings-page:has(> .top-players-collapsed) { padding-right: 0; }

/* ---------- Owner 2026-11-21 (item 8): main grids fit the window (js/gridfit.js sets the height) ----------
   Their own scroll box in both directions, header row and key first columns fixed; phones and Classic unchanged. */
.grid-fit-box { max-width: 100%; }
html:not([data-look="classic"]) .grid-fit { overflow: auto !important; position: relative; }
html:not([data-look="classic"]) .grid-fit > table { margin-bottom: 0; }
html:not([data-look="classic"]) .grid-fit > table > thead > tr > th {
    position: sticky; top: 0; z-index: 3; background: var(--rc-surface); box-shadow: inset 0 -1px 0 var(--rc-border); }
html:not([data-look="classic"]) .grid-fit .grid-sticky-col { position: sticky; z-index: 2; background: var(--rc-surface); }
html:not([data-look="classic"]) .grid-fit > table > thead > tr > th.grid-sticky-col { z-index: 4; }
/* Phones: the header row sticks to the TOP OF THE TABLE. T-234 (owner 2026-11-28): it used top: 60px ("under the top
   bar"), but the table sits in a sideways-scrolling box (.table-responsive / the grid box), and sticky offsets count from
   that box, not the page: the header was drawn 60px down, below row 1 and over row 2 (rank 2 "missing"). */
@media (max-width: 767px) {
    html:not([data-look="classic"]) [data-grid-fit] > table > thead > tr > th { position: sticky; top: 0; z-index: 3; background: var(--rc-surface); }
}

/* ---------- Owner 2026-11-21 (item 12): click-to-move (Rosters, Team Summary / My Team) ---------- */
.move-self { outline: 2px solid var(--rc-primary); outline-offset: -2px; background: var(--rc-drop-hover) !important; }
.move-open, tr.move-open > td { background: var(--rc-drop-eligible) !important; cursor: pointer; }
.move-swap, tr.move-swap > td { background: var(--rc-drop-eligible) !important; cursor: pointer; position: relative; }
.move-open:hover, tr.move-open:hover > td, .move-swap:hover, tr.move-swap:hover > td { background: var(--rc-drop-hover) !important; }
.move-dim, tr.move-dim > td { opacity: .38; }
td.move-swap:hover::after {
    content: attr(data-swap); position: absolute; right: 4px; top: 50%; transform: translateY(-50%); padding: 1px 6px; font-size: 11px;
    font-weight: 600; white-space: nowrap; color: var(--rc-text); background: var(--rc-surface); border: 1px solid var(--rc-border); border-radius: 999px; }
.move-bar {
    position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 1045; display: flex; flex-wrap: wrap; align-items: center;
    gap: 6px; max-width: calc(100vw - 32px); padding: 10px 16px; font-size: 14px; color: var(--rc-text); background: var(--rc-surface);
    border: 1px solid var(--rc-border); border-radius: var(--rc-radius-lg); box-shadow: var(--rc-modal-shadow-wide); }
.move-bar-link { padding: 0; font: inherit; color: var(--rc-link, var(--rc-primary)); background: none; border: 0; cursor: pointer; text-decoration: underline; }
.move-bar-undraft { color: var(--rc-danger); }
.player-card-icon { display: inline-flex; align-items: center; margin-left: 4px; padding: 1px 2px; color: var(--rc-muted); vertical-align: middle;
    background: none; border: 0; border-radius: 4px; cursor: pointer; }
.player-card-icon:hover { color: var(--rc-text); background: var(--rc-pill-hover); }
@media (max-width: 767px) { .move-bar { bottom: 84px; font-size: 13px; } }
@media (max-width: 767px) { .m-topbar-system > .m-picker-btn { display: none !important; } }
.m-account-subtitle { display: block; padding: 6px 10px 2px; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--rc-muted); }
.m-account-systems .m-logoff { display: block; width: 100%; text-align: left; }
.m-account-systems .m-logoff.active { font-weight: 700; }
@media (max-width: 767px) {
    .m-topbar-plain .m-brand span { display: none; }
    .m-topbar-plain .m-topnav-link { max-width: 30vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .m-topbar-plain .m-topbar-icons { min-width: 0; }
}

/* Owner 2026-11-21 (item 1): the click-to-move bar as a small popover next to the player (js/movemode.js places it;
   hidden until placed so it never flashes at the bottom). */
.move-bar.move-popover { bottom: auto; transform: none; left: 0; top: 0; max-width: min(420px, calc(100vw - 16px)); padding: 8px 12px; font-size: 13px;
    visibility: hidden; }
.move-bar.move-popover.placed { visibility: visible; }
@media (max-width: 767px) { .move-bar.move-popover { bottom: auto; } }

/* ---------- Owner 2026-11-21 (item 3): Position Rankings + Top Players ---------- */
/* My drafted players band stays under the header row; the Rank column stays put (gridfit.js). */
html:not([data-look="classic"]) .grid-fit .grid-sticky-row { position: sticky; z-index: 3; background: var(--rc-surface); box-shadow: inset 0 -1px 0 var(--rc-border); }
html:not([data-look="classic"]) .grid-fit .grid-sticky-row.grid-sticky-col { z-index: 5; }
/* Text size (A- / A+, per account): Position Rankings grid + Top Players panel, Modern looks. */
html:not([data-look="classic"]) .rankings-grid > tbody > tr > td, html:not([data-look="classic"]) .rankings-grid > thead > tr > th { font-size: 11px; }
/* T-119 (owner 2026-11-23/24): Position Rankings columns share the width EVENLY between a min and a max (110-160px at
   the normal text size; the text-size zoom on tables scales both with A+/A-) instead of sizing to the longest name.
   Narrower than the minimum (large text, many positions): the grid scrolls sideways with Rank frozen (gridfit.js).
   Each name is one line: too long = "P. Crow-Armstrong" (gridfit.js sets data-rk-short), then "..."; the value in
   parentheses is never cut; the full name is the link's tooltip. Classic unchanged. */
html:not([data-look="classic"]) .rankings-grid {
    --rk-rank: 44px; --rk-min: 110px; table-layout: fixed; max-width: none;   /* legacy.css caps tables at 100% */
    /* Batch 2b fix (owner 2026-11-24): spare width is always used (columns grow evenly to fill the grid, no blank band);
       the minimum decides when it scrolls sideways. */
    width: max(calc(var(--rk-rank) + var(--rk-cols, 8) * var(--rk-min)), 100%); }
html:not([data-look="classic"]) .rankings-grid > thead > tr > th:first-child { width: var(--rk-rank); }
/* Batch 2b fix: sideways scrolling snaps column by column (js/gridfit.js sizes a whole number of columns to the view). */
html:not([data-look="classic"]) .grid-fit:has(> .rankings-grid) { scroll-snap-type: x mandatory; }
html:not([data-look="classic"]) .rankings-grid > thead > tr > th:not(:first-child) { scroll-snap-align: start; }
html:not([data-look="classic"]) .rankings-grid > tbody > tr > td.RosterGridCell { white-space: nowrap; overflow: hidden; }
html:not([data-look="classic"]) .rankings-grid .rk-line { display: flex; align-items: center; min-width: 0; }
/* T-225 (2026-11-28): the name is never squeezed to nothing. A user's note flag / classification icon before the name
   and the news / injury / IL marks after it took the room first, so at the 110px minimum a marked player (Ohtani with
   a note) showed a blank name. Now the icons give up their room FIRST (a much larger shrink weight; clipped; their
   tooltips open in the floating layer, js/tooltip.js), and the name only shortens once they are gone; the value is
   never cut. */
html:not([data-look="classic"]) .rankings-grid .rk-line > * { flex: 0 1000 auto; min-width: 0; overflow: hidden; }
html:not([data-look="classic"]) .rankings-grid .rk-line > .rk-link { display: flex; gap: .3em; flex: 0 1 auto; min-width: 0; max-width: 100%; overflow: visible; }
html:not([data-look="classic"]) .rankings-grid .rk-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html:not([data-look="classic"]) .rankings-grid .rk-val { flex: 0 0 auto; white-space: nowrap; }
html:not([data-look="classic"]) .rankings-grid .rk-link[data-rk-short] .rk-full { display: none; }
html:not([data-look="classic"]) .rankings-grid .rk-link[data-rk-short] .rk-short { display: inline; }
/* T-349 (owner walkthrough W7, 2026-12-03): the "My team" row on Tiers and Position Rankings: one line per name, never
   wrapped (full name, else the short form, else "..."; the full name on hover); starters bold, bench italic; each name
   opens the player card. */
html:not([data-look="classic"]) .rankings-grid > tbody > tr > td.MyPlayerCell { white-space: nowrap; overflow: hidden; }
html:not([data-look="classic"]) .rankings-grid .my-team-link { font-weight: 700; }
html:not([data-look="classic"]) .rankings-grid .my-team-link.my-team-bench { font-weight: 400; font-style: italic; }
/* T-130 (owner 2026-11-24): Rankings > Tiers (Modern + Chips). The table also has .rankings-grid: even columns that
   fill the width, the 110px minimum, whole columns when it scrolls sideways, one-line names that shorten (T-119). The
   frozen first column is the tier (name + range), wider than Position Rankings' Rank. */
html:not([data-look="classic"]) .rk-view-toggle { margin: 0 12px 8px 0; vertical-align: middle; }
html:not([data-look="classic"]) .tiers-grid { --rk-rank: 104px; }
html:not([data-look="classic"]) .tiers-grid > tbody > tr > td.tiers-cell { vertical-align: top; white-space: nowrap; overflow: hidden; padding: 3px 5px; }
html:not([data-look="classic"]) .tiers-grid .tiers-row-head { vertical-align: top; text-align: left; white-space: normal; background: var(--rc-surface); }
html:not([data-look="classic"]) .tiers-grid .tiers-name { display: block; font-weight: 700; }
html:not([data-look="classic"]) .tiers-grid .tiers-range { display: block; font-size: 10px; font-weight: 400; color: var(--rc-muted); }
html:not([data-look="classic"]) .tiers-grid .tiers-cell-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 2px; }
html:not([data-look="classic"]) .tiers-grid .tiers-cell-head .tiers-range { display: inline; }
html:not([data-look="classic"]) .tiers-grid .tiers-left { margin-left: auto; padding: 0 5px; border-radius: 8px; font-size: 10px; font-weight: 700; line-height: 15px; color: var(--rc-on-accent); }
html:not([data-look="classic"]) .tiers-grid .tiers-left-red { background: var(--rc-danger); }
html:not([data-look="classic"]) .tiers-grid .tiers-left-amber { background: var(--rc-warning); }
html:not([data-look="classic"]) .tiers-grid .tiers-left-green { background: var(--rc-success); }
html:not([data-look="classic"]) .tiers-grid .tiers-left-none { background: color-mix(in srgb, var(--rc-muted) 22%, var(--rc-surface)); color: var(--rc-muted); font-weight: 600; }
html:not([data-look="classic"]) .tiers-grid .tiers-player { line-height: 19px; padding: 0 2px; border-radius: 3px; }
html:not([data-look="classic"]) .tiers-grid .tiers-player.tiers-mine { background: var(--rc-my-players-row); }
html:not([data-look="classic"]) .tiers-grid > thead > tr > th.tiers-needed { background: color-mix(in srgb, var(--rc-accent) 14%, var(--rc-surface)); }
/* Batch fix (owner 2026-11-24): position headers larger and bold, the need on the same line: "1B (need 1)". */
html:not([data-look="classic"]) .tiers-grid > thead > tr > th[data-position] { white-space: nowrap; }
html:not([data-look="classic"]) .tiers-grid .tiers-pos { font-size: 15px; font-weight: 700; }
html:not([data-look="classic"]) .tiers-grid .tiers-need { font-size: 11px; font-weight: 500; color: var(--rc-accent); }
html:not([data-look="classic"]) .tiers-option { display: inline-flex; align-items: center; gap: 5px; margin: 0 12px 6px 0; font-weight: 400; vertical-align: middle; cursor: pointer; }
html:not([data-look="classic"]) .tiers-empty { margin: 12px 0; color: var(--rc-muted); }
html:not([data-look="classic"]) #gridTopPlayers > tbody > tr > td, html:not([data-look="classic"]) #gridTopPlayers > thead > tr > th { font-size: 11.5px; }
/* Owner 2026-11-22: the CURRENT screen's text size (A- / A+ in the top bar; each screen its own, saved per account, 095; was D15's one size, saved
   per account, 086). The whole table is scaled (text, padding and column widths together, so rows stay even); popups keep
   their size. Medium = as designed. */
html[data-text-size="small"]:not([data-look="classic"]) .app-main table.table:not(.modal table) { zoom: 0.9; }
html[data-text-size="large"]:not([data-look="classic"]) .app-main table.table:not(.modal table) { zoom: 1.15; }
.m-text-size { display: inline-flex; flex: 0 0 auto; flex-wrap: nowrap; margin-left: 8px; }
.m-text-size-btn { min-width: 30px; height: 26px; padding: 0 6px; font: inherit; font-size: 12px; font-weight: 600; color: var(--rc-text);
    background: var(--rc-surface); border: 1px solid var(--rc-border); cursor: pointer; }
.m-text-size-btn:first-child { border-radius: 6px 0 0 6px; }
.m-text-size-btn:last-child { border-radius: 0 6px 6px 0; margin-left: -1px; }
.m-text-size-btn:disabled { opacity: .45; cursor: default; }

/* ---------- Owner 2026-11-21 (items 4, 5): Projection System / ADP System tile pickers ---------- */
.m-picker-label { color: var(--rc-muted); }
.m-picker-value { font-weight: 600; }
@media (max-width: 1599px) { .m-picker-label { display: none; } }
.m-picker-panel {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 1060; width: 460px; max-height: calc(100vh - 90px); overflow: auto; padding: 10px 12px 12px;
    background: var(--rc-surface); border: 1px solid var(--rc-border); border-radius: var(--rc-radius-lg); box-shadow: var(--rc-modal-shadow-wide); }
.m-picker-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--rc-text); }
.m-picker-close { padding: 0 6px; font-size: 20px; line-height: 1; color: var(--rc-muted); background: none; border: 0; cursor: pointer; }
.m-picker-group { margin: 10px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--rc-muted); }
/* T-259 (d): the closed ADP picker says when the saved source is not available yet, "NFBC - Yahoo not available yet". */
.m-picker-value-note { font-size: 12px; font-weight: 400; color: var(--rc-muted); white-space: nowrap; }
.m-picker-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.m-picker-tile {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px; padding: 9px 26px 9px 12px; text-align: left;
    font: inherit; color: var(--rc-text); background: var(--rc-surface); border: 1px solid var(--rc-border); border-left: 4px solid var(--rc-border);
    border-radius: 8px; cursor: pointer; }
.m-picker-tile:hover { background: var(--rc-pill-hover); }
.m-picker-tile.selected { border-color: var(--rc-primary); border-left-color: var(--rc-primary); box-shadow: inset 0 0 0 1px var(--rc-primary); }
.m-picker-tile-name { font-size: 14px; font-weight: 700; }
.m-picker-tile-line { font-size: 12px; color: var(--rc-muted); }
.m-picker-tile-date { font-size: 11px; color: var(--rc-muted); }
.m-picker-tile-check { position: absolute; top: 8px; right: 9px; font-weight: 700; color: var(--rc-primary); }
.m-picker-tile.adp-yahoo { border-left-color: var(--rc-adp-yahoo); }
.m-picker-tile.adp-espn { border-left-color: var(--rc-adp-espn); }
.m-picker-tile.adp-cbs { border-left-color: var(--rc-adp-cbs); }
.m-picker-tile.adp-nfbc { border-left-color: var(--rc-adp-nfbc); }
.m-picker-tile.adp-fantrax { border-left-color: var(--rc-adp-fantrax); }
.m-picker-tile.adp-rts { border-left-color: var(--rc-adp-rts); }
.m-picker-tile.adp-fantasypros { border-left-color: var(--rc-adp-fantasypros); }
.m-picker-tile.selected[class*="adp-"] .m-picker-tile-name { text-decoration: underline; text-underline-offset: 3px; }
/* T-259 (d): a source without current-season data is listed but can not be chosen (the reason is the tile's line). */
.m-picker-tile.disabled, .m-picker-tile:disabled { color: var(--rc-muted); background: var(--rc-surface); border-left-color: var(--rc-border); opacity: .6; cursor: not-allowed; }
.m-picker-tile.disabled:hover, .m-picker-tile:disabled:hover { background: var(--rc-surface); }
.m-picker-tile.disabled .m-picker-tile-line { font-style: italic; }
@media (max-width: 767px) {
    .m-picker-panel { position: fixed; top: 60px; left: 8px; right: 8px; width: auto; max-height: calc(100vh - 140px); }
    .m-picker-tiles { grid-template-columns: 1fr; }
}

/* ---------- Owner 2026-11-21: the "League synced" popup (all sites, every look): calm and neutral, a short checklist, the
   site's colour only as a thin accent; "Bring in the ... rosters" a real primary button; Close secondary. ---------- */
[data-modal="sync-report"] .sync-summary { margin: 0 0 12px; padding: 10px 14px; background: var(--rc-surface); border: 1px solid var(--rc-border);
    border-left: 4px solid var(--rc-success); border-radius: 8px; }   /* T-273 (owner 2026-11-30): success, not the site colour */
[data-modal="sync-report"] .sync-summary-head { margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--rc-muted); }
[data-modal="sync-report"] .sync-checklist { margin: 0; padding: 0; list-style: none; }
[data-modal="sync-report"] .sync-checklist li { position: relative; padding: 4px 0 4px 24px; font-size: 14px; color: var(--rc-text); }
[data-modal="sync-report"] .sync-check { position: absolute; left: 2px; top: 4px; width: 16px; text-align: center; font-weight: 700; }
[data-modal="sync-report"] .sync-checklist li.done .sync-check { color: var(--rc-success); }
[data-modal="sync-report"] .sync-checklist li.pending .sync-check { color: var(--rc-muted); }
[data-modal="sync-report"] .sync-note { display: block; margin-top: 2px; font-size: 12px; color: var(--rc-muted); }
[data-modal="sync-report"] .sync-keepers { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
[data-modal="sync-report"] .sync-keepers .sync-note { display: inline; margin: 0; }
/* Owner 2026-11-22 (C11): the unmatched / Extra notes are calm too: neutral cards with an amber or blue edge, no bright alert fill. */
[data-modal="sync-report"] .alert { margin: 0 0 12px; padding: 10px 14px; font-size: 13px; color: var(--rc-text); background: var(--rc-surface);
    border: 1px solid var(--rc-border); border-left: 4px solid var(--rc-border); border-radius: 8px; }
[data-modal="sync-report"] .alert-warning { border-left-color: var(--rc-warning); }
[data-modal="sync-report"] .alert-info { border-left-color: var(--rc-primary); }
[data-modal="sync-report"] .sync-list { margin: 6px 0 0; padding-left: 18px; color: var(--rc-muted); }
/* T-273 (owner 2026-11-30): success first; "Which team is yours?"; the minor issues collapsed under Details. */
[data-modal="sync-report"] .sync-success { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: var(--rc-text); }
[data-modal="sync-report"] .sync-success .sync-check,
[data-modal="sync-report"] .sync-note-ok .sync-check { color: var(--rc-success); font-weight: 700; }
[data-modal="sync-report"] .sync-my-team { margin: 0 0 12px; padding: 10px 14px; background: var(--rc-surface); border: 1px solid var(--rc-border);
    border-left: 4px solid var(--rc-primary); border-radius: 8px; }
[data-modal="sync-report"] .sync-my-team label { display: block; margin: 0 0 6px; font-size: 14px; color: var(--rc-text); }
[data-modal="sync-report"] .sync-my-team-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
[data-modal="sync-report"] .sync-my-team-row select { flex: 1 1 200px; width: auto; min-width: 0; }
[data-modal="sync-report"] .sync-note-ok { margin: 0; font-size: 14px; color: var(--rc-text); }
[data-modal="sync-report"] .sync-details { margin: 0 0 4px; font-size: 13px; color: var(--rc-text); }
[data-modal="sync-report"] .sync-details > summary { cursor: pointer; color: var(--rc-muted); font-weight: 600; padding: 4px 0; }
/* T-273 polish (owner 2026-11-30): the success / saved checks sit inline (not the checklist's absolute column); Details shows ▸ / ▾. */
[data-modal="sync-report"] .sync-success .sync-check,
[data-modal="sync-report"] .sync-note-ok .sync-check { position: static; display: inline-block; width: auto; margin-right: 4px; }
[data-modal="sync-report"] .sync-details > summary { list-style: none; }
[data-modal="sync-report"] .sync-details > summary::-webkit-details-marker { display: none; }
[data-modal="sync-report"] .sync-details > summary::before { content: "\25B8"; display: inline-block; width: 1em; }
[data-modal="sync-report"] .sync-details[open] > summary::before { content: "\25BE"; }
[data-modal="sync-report"] .sync-my-team-saved { font-size: 13px; color: var(--rc-success); font-weight: 600; }
[data-modal="sync-report"] .sync-details > div { margin: 6px 0 10px; padding: 8px 12px; background: var(--rc-surface); border: 1px solid var(--rc-border); border-radius: 8px; }

/* ---------- Owner 2026-11-22 (E19, A4): ONE player-name style for every grid (Projections, Position Rankings, Top Players,
   Targets, Draft Results, Rosters, Team Summary, Standings ...), light and dark. Undrafted (and every name on a roster or
   the draft board, where all players are drafted): the bold dark link colour. Drafted players in a list of available and
   drafted players: greyed out (T-212; strikethrough optional). ---------- */
html:not([data-look="classic"]) .table a:is(.PlayerStatsLink, .ChangePositionClick:not(.move-icon), .TeamSummary_Player) {
    color: var(--rc-name); font-weight: 600; opacity: 1; }
/* T-212 (owner 2026-11-28, legacy parity): players drafted by OTHER teams are greyed out by default (legacy never struck
   them through); the account menu offers "Strikethrough" and "Both" (html data-drafted, LookService). My own drafted
   players are green + bold unless the account chose "Same as other drafted players" (html data-mine="same"). Any list
   that marks drafted names (.drafted), tables or not (Projections, Rankings, Position Rankings, Tiers). */
html:not([data-look="classic"]) :is(.table, body) a:is(.PlayerStatsLink, .ChangePositionClick, .TeamSummary_Player).drafted {
    color: var(--rc-name-drafted); font-weight: 400; text-decoration: none; }
html[data-drafted="strike"]:not([data-look="classic"]) :is(.table, body) a:is(.PlayerStatsLink, .ChangePositionClick, .TeamSummary_Player).drafted {
    color: var(--rc-name); text-decoration: line-through; }
html[data-drafted="both"]:not([data-look="classic"]) :is(.table, body) a:is(.PlayerStatsLink, .ChangePositionClick, .TeamSummary_Player).drafted {
    text-decoration: line-through; }
html:not([data-look="classic"]):not([data-mine="same"]) :is(.table, body) a:is(.PlayerStatsLink, .ChangePositionClick, .TeamSummary_Player).drafted.mine {
    color: var(--rc-name-mine); font-weight: 700; text-decoration: none; }
/* T-226 (owner 2026-11-28, EVERY look incl. Classic, light + dark): my players must not be confused with undrafted
   names (bold dark blue). With "My players: Green" (the default; html data-mine="same" turns it off): bold green text
   PLUS a light green tint behind the player (the whole row in one-player-per-row lists, the cell / line in Position
   Rankings and Tiers), so colour is never the only cue. */
html:not([data-mine="same"]) :is(.table, body) a:is(.PlayerStatsLink, .ChangePositionClick, .TeamSummary_Player).drafted.mine {
    color: var(--rc-name-mine); font-weight: 700; text-decoration: none; }
html:not([data-mine="same"]) table:not(.rankings-grid) > tbody > tr:has(a:is(.PlayerStatsLink, .ChangePositionClick).drafted.mine) > td {   /* not My Team / Team Summary: every row there is mine */
    background-color: var(--rc-mine-tint); }
html:not([data-mine="same"]) .rankings-grid:not(.tiers-grid) > tbody > tr > td:has(> .rk-line > a.drafted.mine),
html:not([data-mine="same"]) .tiers-grid .rk-line:has(> a.drafted.mine) {
    background-color: var(--rc-mine-tint); }
/* T-238 (owner review batch 2, 2026-11-28, EVERY look incl. Classic, light + dark): three row states in lists of
   available and drafted players. Available: plain row, bold dark-blue name. Mine: the green row above. Taken by other
   teams: a light grey row tint plus grey text (the Drafted players setting, grey / strikethrough / both, still applies to
   the name on top). With "My players: Same as other drafted players" my rows get the taken style too. */
html table:not(.rankings-grid) > tbody > tr:has(a:is(.PlayerStatsLink, .ChangePositionClick).drafted:not(.mine)) > td,
html[data-mine="same"] table:not(.rankings-grid) > tbody > tr:has(a:is(.PlayerStatsLink, .ChangePositionClick).drafted.mine) > td,
html .rankings-grid:not(.tiers-grid) > tbody > tr > td:has(> .rk-line > a.drafted:not(.mine)),
html[data-mine="same"] .rankings-grid:not(.tiers-grid) > tbody > tr > td:has(> .rk-line > a.drafted.mine),
html .tiers-grid .rk-line:has(> a.drafted:not(.mine)),
html[data-mine="same"] .tiers-grid .rk-line:has(> a.drafted.mine) {
    background-color: var(--rc-taken-tint); color: var(--rc-taken-row-text); }
/* Greyed out (the default) and Both: grey text; Strikethrough: the tint stays, the text keeps its normal colour. */
html { --rc-taken-row-text: var(--rc-taken-text); }
html[data-drafted="strike"] { --rc-taken-row-text: var(--rc-text); }
.m-account-drafted select { max-width: 11rem; }

/* ---------- Owner 2026-11-22 (B8, B9): Admin (RCAdmin only) and the user's name next to the avatar, every Modern top bar. */
.m-account { display: flex; align-items: center; gap: 6px; }
.m-account-label { max-width: 160px; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit; font-size: 13px;
    font-weight: 600; color: var(--rc-text); background: none; border: 0; cursor: pointer; }
.m-admin-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; font: inherit; font-size: 13px; font-weight: 600;
    color: var(--rc-text); background: var(--rc-surface); border: 1px solid var(--rc-border); border-radius: 8px; cursor: pointer; }
.m-admin-btn:hover, .m-admin-btn[aria-expanded="true"] { background: var(--rc-pill-hover); }
.m-admin-btn svg { width: 16px; height: 16px; }
.m-admin-menu { top: calc(100% + 8px); right: 0; min-width: 280px; }
.m-admin-menu[hidden] { display: none; }
.m-admin-group { padding: 4px 0; border-top: 1px solid var(--rc-dropdown-divider); }
.m-admin-find { padding: 6px 12px 10px; }
.m-admin-find .find-user { display: flex; gap: 6px; }
.m-admin-find .find-user input { flex: 1; min-width: 0; height: 30px; padding: 0 8px; font-size: 13px; color: var(--rc-text);
    background: var(--rc-surface); border: 1px solid var(--rc-border); border-radius: 6px; }
@media (max-width: 1279px) { .m-account-label { display: none; } }

/* ---------- Owner 2026-11-22 (B10): one colour per league site. Anything inside [data-provider] (My Leagues sections, the
   sync pages) takes its site's colour for the info / success buttons and panels. ESPN and CBS (new, no legacy screen) in
   every look; Yahoo (legacy purple) and Fantrax (legacy green) in the Modern looks, Classic keeps legacy. ---------- */
[data-provider="espn"] { --rc-info: var(--rc-provider-espn); --rc-info-hover: var(--rc-provider-espn-hover); --rc-info-border: var(--rc-provider-espn);
    --rc-info-hover-border: var(--rc-provider-espn-hover); --panel-accent: var(--rc-provider-espn); }
[data-provider="cbs"] { --rc-info: var(--rc-provider-cbs); --rc-info-hover: var(--rc-provider-cbs-hover); --rc-info-border: var(--rc-provider-cbs);
    --rc-info-hover-border: var(--rc-provider-cbs-hover); --panel-accent: var(--rc-provider-cbs); }
html:not([data-look="classic"]) [data-provider="yahoo"] { --rc-info: var(--rc-provider-yahoo); --rc-info-hover: var(--rc-provider-yahoo-hover);
    --rc-info-border: var(--rc-provider-yahoo); --rc-info-hover-border: var(--rc-provider-yahoo-hover); --panel-accent: var(--rc-provider-yahoo); }
html:not([data-look="classic"]) [data-provider="fantrax"] { --rc-success: var(--rc-provider-fantrax); --rc-success-hover: var(--rc-provider-fantrax-hover);
    --rc-success-border: var(--rc-provider-fantrax); --rc-info: var(--rc-provider-fantrax); --rc-info-hover: var(--rc-provider-fantrax-hover);
    --rc-info-border: var(--rc-provider-fantrax); --panel-accent: var(--rc-provider-fantrax); }

/* ---------- Owner 2026-11-22 (B9): My Leagues in the Modern looks: calm panels (neutral header, the section's colour as a
   thin top accent), a smaller logo, the notes as a tidy list. ---------- */
html:not([data-look="classic"]) .my-leagues .hr-tight { display: none; }
html:not([data-look="classic"]) .my-leagues .home-logo { padding: 8px 0 4px; }
html:not([data-look="classic"]) .my-leagues .home-logo img { width: 190px; height: auto; }
html:not([data-look="classic"]) .my-leagues .home-notes-list { margin: 4px 0 18px; padding-left: 18px; font-size: 12.5px; line-height: 1.6; color: var(--rc-muted); }
html:not([data-look="classic"]) .my-leagues .panel { border: 1px solid var(--rc-border); border-radius: 10px; overflow: hidden; box-shadow: none; background: var(--rc-surface); }
html:not([data-look="classic"]) .my-leagues .panel > .panel-heading {
    padding: 10px 14px; color: var(--rc-text) !important; background: var(--rc-surface) !important;
    border: 0 !important; border-top: 3px solid var(--panel-accent, var(--rc-accent)) !important; border-bottom: 1px solid var(--rc-border) !important; }
html:not([data-look="classic"]) .my-leagues .panel-title { font-size: 15px; font-weight: 600; text-transform: none; }
html:not([data-look="classic"]) .my-leagues .panel-body { padding: 14px; }
html:not([data-look="classic"]) .my-leagues .yahoo-note, html:not([data-look="classic"]) .my-leagues .yahoo-note b,
html:not([data-look="classic"]) .my-leagues .fantrax-steps, html:not([data-look="classic"]) .my-leagues .cbs-steps {
    font-size: 12.5px; font-weight: normal; line-height: 1.5; color: var(--rc-muted); }
html:not([data-look="classic"]) .my-leagues .fantrax-panel { margin-top: 0; }
html:not([data-look="classic"]) .my-leagues .col-md-4 > .panel + .panel { margin-top: 16px; }

/* ---------- Owner 2026-11-22 (D17): Settings / More tile flyouts (TileMenu), like the Projection / ADP System tiles. ---------- */
.m-tilemenu { position: absolute; z-index: 1040; width: min(600px, calc(100vw - 120px)); max-height: calc(100vh - 24px); overflow-y: auto; padding: 12px 14px 14px;
    color: var(--rc-text); background: var(--rc-dropdown-bg); border: 1px solid var(--rc-dropdown-border); border-radius: 12px; box-shadow: var(--rc-dropdown-shadow); }
.m-tilemenu:focus { outline: none; }
/* Fixed beside the rail, under the top bar, never past the window (a tall More ran off the top). */
.m-tilemenu.m-rail-flyout { position: fixed; top: 68px; left: 96px; bottom: auto; max-height: calc(100vh - 84px); }
.m-tilemenu.m-more-flyout { top: 68px; bottom: auto; }
.m-tilemenu-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.m-tilemenu-tile { position: relative; display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 9px 28px 9px 10px; font: inherit; text-align: left;
    color: var(--rc-text); background: var(--rc-surface); border: 1px solid var(--rc-border); border-radius: 10px; cursor: pointer; text-decoration: none; }
.m-tilemenu-tile:hover, .m-tilemenu-tile:focus-visible { text-decoration: none; color: var(--rc-text); background: var(--rc-pill-hover); }
.m-tilemenu-tile.current { border-color: var(--rc-primary); box-shadow: inset 0 0 0 1px var(--rc-primary); }
.m-tilemenu-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px;
    color: var(--rc-primary); background: var(--rc-filter-hover-bg); }
.m-tilemenu-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.m-tilemenu-tile .m-picker-tile-name { font-size: 13.5px; }
.m-tilemenu-tile .m-picker-tile-line { line-height: 1.35; }
.m-tilemenu-tile.danger .m-tilemenu-icon { color: var(--rc-danger); }
.m-tilemenu-tile.danger:hover .m-picker-tile-name { color: var(--rc-danger); }
/* Owner 2026-11-26: Settings, Help and More open CENTERED like the other popups, over a dimmed background, at every window
   size (x, Esc or a click outside closes them). */
.m-tilemenu.m-centered-menu { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1060;
    width: min(600px, calc(100vw - 24px)); max-height: calc(100vh - 32px); }
.m-menu-backdrop.m-menu-dim { z-index: 1055; background: color-mix(in srgb, var(--rc-backdrop) 45%, transparent); }
/* T-228 (owner 2026-11-28): Settings > Display as rows of segmented choices (label left, every option visible, the
   current one filled). Phones: the label above its options. */
.m-tilemenu-choices { display: flex; flex-direction: column; gap: 8px; padding: 2px 0 4px; }
.m-choice-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px;
    background: var(--rc-surface); border: 1px solid var(--rc-border); border-radius: 10px; }
.m-choice-label { font-size: 13.5px; font-weight: 600; }
.m-segmented { display: inline-flex; flex: none; padding: 2px; gap: 2px; background: var(--rc-filter-hover-bg); border: 1px solid var(--rc-border); border-radius: 8px; }
.m-segment { min-width: 64px; padding: 5px 12px; font: inherit; font-size: 13px; line-height: 1.2; color: var(--rc-text);
    background: transparent; border: 0; border-radius: 6px; cursor: pointer; }
.m-segment:hover { background: var(--rc-pill-hover); }
.m-segment:focus-visible { outline: 2px solid var(--rc-primary); outline-offset: 1px; }
.m-segment.is-selected { color: var(--rc-btn-text); background: var(--rc-primary); font-weight: 600; }
@media (max-width: 767px) {
    .m-choice-row { flex-direction: column; align-items: stretch; gap: 6px; }
    .m-segmented { display: flex; }
    .m-segment { flex: 1 1 0; min-width: 0; }
}
/* Phones: a full-screen list. */
.m-tilemenu.m-phone-flyout { position: fixed; inset: 0; width: auto; max-height: none; border-radius: 0; z-index: 1060; }
@media (max-width: 767px) {
    .m-tilemenu.m-rail-flyout { position: fixed; inset: 0; width: auto; max-height: none; border-radius: 0; z-index: 1060; }
    .m-tilemenu-tiles { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Owner 2026-11-22 (D16): Export this screen (formats) and the Exports page's format buttons. ---------- */
[data-modal="export"] .export-what { margin: 0 0 12px; font-size: 13.5px; }
[data-modal="export"] .export-formats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
[data-modal="export"] .export-format { min-height: 72px; border-left-width: 1px; }
[data-modal="export"] .export-all { margin: 14px 0 0; font-size: 12.5px; color: var(--rc-muted); }
@media (max-width: 600px) { [data-modal="export"] .export-formats { grid-template-columns: minmax(0, 1fr); } }
.export-formats-cell { white-space: nowrap; text-align: right; }
.export-format-btn { min-width: 52px; height: 28px; margin-left: 4px; padding: 0 10px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--rc-text);
    background: var(--rc-surface); border: 1px solid var(--rc-border); border-radius: 6px; cursor: pointer; }
.export-format-btn:hover:not(:disabled) { background: var(--rc-pill-hover); }
.export-format-btn.last { border-color: var(--rc-primary); color: var(--rc-primary); }
.export-format-btn:disabled { opacity: .5; cursor: default; }

/* ---------- Owner 2026-11-22 (D18): Mock Draft Mode in the Modern top bar and status line. ---------- */
.m-mock-btn.m-mock-stop { background: var(--rc-danger); color: var(--rc-on-accent); }
.m-mock-badge { margin-left: 8px; padding: 1px 8px; font-size: 11.5px; font-weight: 700; border-radius: 999px; color: var(--rc-on-accent); background: var(--rc-danger); }

/* ---------- Owner 2026-11-22 (E20): frozen columns and headers are SOLID in every grid, light and dark: each frozen cell
   shows its row's own background (zebra / hover) over an opaque surface, sits above the scrolled cells, and the last
   frozen column has a thin divider with a soft shadow. Separate borders: collapsed borders of sticky cells let the
   scrolled cells show through. Cells with their own highlight (Top Players position, my players band, NEW TIER) keep it. */
html:not([data-look="classic"]) .grid-fit > table { border-collapse: separate; border-spacing: 0; }
html:not([data-look="classic"]) .grid-fit > table.table-bordered { border-width: 1px 0 0 1px; }
html:not([data-look="classic"]) .grid-fit > table.table-bordered > * > tr > * { border-width: 0 1px 1px 0; }
html:not([data-look="classic"]) .grid-fit > table > tbody > tr { --rc-row-bg: transparent; }
html:not([data-look="classic"]) .grid-fit > table.table-striped > tbody > tr:nth-of-type(odd) { --rc-row-bg: var(--rc-row-stripe); }
html:not([data-look="classic"]) .grid-fit > table.table-hover > tbody > tr:hover { --rc-row-bg: var(--rc-row-hover); }
html:not([data-look="classic"]) .grid-fit .grid-sticky-col:not(.new-tier) {
    background: linear-gradient(var(--rc-row-bg, transparent), var(--rc-row-bg, transparent)), var(--rc-surface); background-clip: border-box; }
html:not([data-look="classic"]) .grid-fit > table > thead > tr > th.grid-sticky-col { background: var(--rc-surface); }
html:not([data-look="classic"]) .grid-fit .grid-sticky-last { box-shadow: inset -1px 0 0 var(--rc-border), 4px 0 6px -2px var(--rc-sticky-shadow); }
html:not([data-look="classic"]) .grid-fit > table > thead > tr > th.grid-sticky-last {
    box-shadow: inset -1px 0 0 var(--rc-border), inset 0 -1px 0 var(--rc-border), 4px 0 6px -2px var(--rc-sticky-shadow); }
html:not([data-look="classic"]) .grid-fit .grid-sticky-row.grid-sticky-col { background: var(--rc-my-players-row, var(--rc-surface)); }

/* ---------- Owner 2026-11-22 (E23): Draft Results (Modern): the team columns share the width (10-12 teams fit without
   sideways scrolling), player names and "-> team" notes left-aligned like the headers, long ones cut with "..." (full text
   on hover), team names on up to two lines. ---------- */
html:not([data-look="classic"]) .draft-results { table-layout: fixed; width: 100%; min-width: 0; }
html:not([data-look="classic"]) .draft-results > thead > tr > th:first-child,
html:not([data-look="classic"]) .draft-results > tbody > tr > td:first-child { width: 52px; }
html:not([data-look="classic"]) .draft-results > thead > tr > th { text-align: left; vertical-align: bottom; white-space: normal; }
html:not([data-look="classic"]) .draft-results .results-team-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
    overflow-wrap: anywhere; line-height: 1.25; }
html:not([data-look="classic"]) .draft-results > tbody > tr > td { overflow: hidden; }
html:not([data-look="classic"]) .draft-results .draft-result-player,
html:not([data-look="classic"]) .draft-results .traded-pick { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html:not([data-look="classic"]) .draft-results .draft-result-player .PlayerStatsLink { max-width: calc(100% - 4px); }

/* ---------- Owner 2026-11-22 (F24, F25): the shared Top Players panel on one line: fixed columns (Elig. fits 5-6
   positions, a narrower Player with "..." and the full name on hover, a narrow unsortable Rnk, Act fully visible), no
   sideways scrolling, even rows; the position buttons show their state in the rows' highlight green. ---------- */
html:not([data-look="classic"]) #gridTopPlayers { table-layout: fixed; width: 100%; }
html:not([data-look="classic"]) #gridTopPlayers > thead > tr > th,
html:not([data-look="classic"]) #gridTopPlayers > tbody > tr > td {
    height: 24px; padding: 2px 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }   /* T-031: 3px */
/* T-031 (owner 2026-11-23): Rank, Tm, Val, ADP and Act are sized in em, so they grow with the text size and are never
   cut; Elig. keeps its share and the Player column takes the rest. */
html:not([data-look="classic"]) #gridTopPlayers .tp-rank { width: 2.4em; cursor: default; }
html:not([data-look="classic"]) #gridTopPlayers .tp-team { width: 3.2em; }
html:not([data-look="classic"]) #gridTopPlayers .tp-elig { width: 21%; }
html:not([data-look="classic"]) #gridTopPlayers .tp-val { width: 3.1em; }
html:not([data-look="classic"]) #gridTopPlayers .tp-adp { width: 3.9em; }
html:not([data-look="classic"]) #gridTopPlayers .tp-adp.tp-inf { width: 3.3em; }   /* auctions: Inf is money, like Val */
html:not([data-look="classic"]) #gridTopPlayers .tp-act { width: 2.2em; text-align: center; }
html:not([data-look="classic"]) #gridTopPlayers .top-players-act { text-align: center; overflow: visible; }
/* T-031: the name line. The name always wins: when the Player column gets narrow (big text sizes) the note /
   classification / injury icons go first, then the name gets "..."; never icons without a name. The full name and the
   icons' meaning show on hover (title). */
html:not([data-look="classic"]) #gridTopPlayers td.tp-player-cell { overflow: hidden; }
html:not([data-look="classic"]) #gridTopPlayers .tp-name-line {
    container-type: inline-size; display: flex; align-items: center; gap: 3px; min-width: 0; white-space: nowrap; }
html:not([data-look="classic"]) #gridTopPlayers .tp-name-line > .PlayerStatsLink {
    flex: 0 1 auto; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html:not([data-look="classic"]) #gridTopPlayers .tp-name-line > :not(.PlayerStatsLink) { flex: none; }
@container (max-width: 10em) {
    #gridTopPlayers .tp-name-line > :not(.PlayerStatsLink) { display: none; }
}
html:not([data-look="classic"]) .results-and-roster .top-players-scroll { overflow-x: hidden; }
html:not([data-look="classic"]) body .top-players-positions .btn.active,
html:not([data-look="classic"]) body .top-players-positions .btn[aria-pressed="true"] {
    /* T-355 part 2 (owner walkthrough W13): the chips match the rows' own highlight look (blue tint + blue edge), not green. */
    /* W13 retest (owner 2026-12-04): the pale tint read as grey; the ON chip is FILLED with the rows' bar blue. */
    color: var(--rc-position-mark-on-text); font-weight: 700; background: var(--rc-position-mark-bar); box-shadow: none; }
html:not([data-look="classic"]) body .top-players-positions .btn.active:hover,
html:not([data-look="classic"]) body .top-players-positions .btn[aria-pressed="true"]:hover {
    color: var(--rc-position-mark-on-text); background: var(--rc-position-mark-bar); filter: brightness(1.08); }

/* ---------- Owner 2026-11-22 (G26, G27): the click-to-move popover is compact (two lines, nothing wraps on its own); a
   Rosters cell keeps the name, pick number and card icon on one line ("..." with the full text on hover). ---------- */
.move-bar.move-popover { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: max-content; max-width: 280px; }
.move-bar.move-popover .move-bar-title { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.move-bar.move-popover .move-bar-actions { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
html:not([data-look="classic"]) .rosters-grid td.RosterDrag { white-space: nowrap; }
html:not([data-look="classic"]) .rosters-grid td.RosterDrag > a.ChangePositionClick { max-width: calc(100% - 24px); vertical-align: middle; }
html:not([data-look="classic"]) .rosters-grid td.RosterDrag .player-card-icon { vertical-align: middle; }

/* ---------- Owner 2026-11-22 (H28, H29): ONE popup look for every popup and dialog in the Modern looks (they all use
   LegacyModal): calm header (no legacy logo image), the same spacing, and the same buttons: ONE filled main button (the
   first filled button of the footer; any later filled one becomes secondary), secondary outlined buttons, red only for
   destructive actions (btn-danger). Segmented groups: no extra box around the active segment; a focus ring only for
   keyboard focus. Classic keeps legacy. ---------- */
/* Owner 2026-11-22 (regression fix): the one-line flex header is for TITLE headers only. A popup with its own header
   content (.modal-header-custom: the player card keeps its whole legacy layout there) stays a normal block, with the x
   pinned to the top right; flex made its columns side by side and pushed the buttons out of the card. */
html:not([data-look="classic"]) .modal-header { padding: 14px 20px; }
html:not([data-look="classic"]) .modal-header:not(.modal-header-custom) { display: flex; align-items: center; gap: 10px; }
html:not([data-look="classic"]) .modal-header-custom { position: relative; padding-right: 44px; }
html:not([data-look="classic"]) .modal-header-custom > .close { position: absolute; top: 12px; right: 14px; z-index: 2; }
html:not([data-look="classic"]) .modal-header > span:has(> img) { display: none; }
html:not([data-look="classic"]) .modal-header .modal-title { flex: 1 1 auto; margin: 0; font-size: 17px; font-weight: 600; color: var(--rc-text); }
html:not([data-look="classic"]) .modal-header > .close { order: 9; margin: 0 0 0 auto; float: none; font-size: 24px; line-height: 1; color: var(--rc-muted); opacity: 1; }
html:not([data-look="classic"]) .modal-header > .close:hover { color: var(--rc-text); }
html:not([data-look="classic"]) .modal-body { padding: 16px 20px; }
html:not([data-look="classic"]) .modal-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 20px; }
html:not([data-look="classic"]) .modal-footer .btn + .btn { margin-left: 0; }
html:not([data-look="classic"]) .modal .btn { border-radius: 8px; font-weight: 600; box-shadow: none; text-shadow: none; }
html:not([data-look="classic"]) .modal .btn:not(.btn-xs):not(.btn-sm) { min-height: 34px; padding: 6px 14px; font-size: 13.5px; }
html:not([data-look="classic"]) .modal .btn:is(.btn-default, .btn-link) {
    color: var(--rc-text); background: var(--rc-surface); border: 1px solid var(--rc-border); }
html:not([data-look="classic"]) .modal .btn:is(.btn-default, .btn-link):hover { background: var(--rc-filter-hover-bg); }
html:not([data-look="classic"]) .modal-footer .btn:is(.btn-primary, .btn-success, .btn-info, .btn-warning, .btn-accent) {
    color: var(--rc-on-accent); background: var(--rc-accent); border: 1px solid var(--rc-accent); }
html:not([data-look="classic"]) .modal-footer .btn:is(.btn-primary, .btn-success, .btn-info, .btn-warning, .btn-accent):hover { background: var(--rc-accent-hover); border-color: var(--rc-accent-hover); }
html:not([data-look="classic"]) .modal-footer .btn:is(.btn-primary, .btn-success, .btn-info, .btn-warning, .btn-accent, .btn-danger) ~ .btn:is(.btn-primary, .btn-success, .btn-info, .btn-warning, .btn-accent):not(.btn-main) {
    color: var(--rc-text); background: var(--rc-surface); border: 1px solid var(--rc-border); }
html:not([data-look="classic"]) .modal .btn.btn-danger { color: var(--rc-on-accent); background: var(--rc-danger); border: 1px solid var(--rc-danger); }
html:not([data-look="classic"]) .modal .btn.btn-danger:hover { background: var(--rc-danger-hover); border-color: var(--rc-danger-hover); }
/* T-268 (owner 2026-11-30, Modern + Chips): in every Save / Cancel pair the save action is the filled primary button and
   Cancel / Close is outlined (right-most). A pair's save button carries .btn-main (its legacy color class stays for
   Classic, which keeps the legacy Bootstrap colors): filled wherever it sits (a popup body, a footer after a red
   Undraft, a page); any other filled, non-red button in the same row before it becomes outlined. */
html:not([data-look="classic"]) .btn.btn-main:is(.btn-primary, .btn-success, .btn-info, .btn-warning, .btn-accent) {
    color: var(--rc-on-accent); background: var(--rc-accent); border: 1px solid var(--rc-accent); box-shadow: none; text-shadow: none; }
html:not([data-look="classic"]) .btn.btn-main:is(.btn-primary, .btn-success, .btn-info, .btn-warning, .btn-accent):hover:not(:disabled) {
    background: var(--rc-accent-hover); border-color: var(--rc-accent-hover); }
html:not([data-look="classic"]) .btn:is(.btn-primary, .btn-success, .btn-info, .btn-warning, .btn-accent):not(.btn-main):has(~ .btn-main) {
    color: var(--rc-text); background: var(--rc-surface); border: 1px solid var(--rc-border); }
html:not([data-look="classic"]) .btn:is(.btn-primary, .btn-success, .btn-info, .btn-warning, .btn-accent):not(.btn-main):has(~ .btn-main):hover {
    background: var(--rc-filter-hover-bg); }
/* Batch 3 fix (owner 2026-11-25, project-wide, Modern + Chips): popups open vertically centered in the viewport.
   A tall popup keeps its header (title + x) pinned at the top and its footer buttons pinned at the bottom; only the
   middle scrolls. The player card keeps its legacy layout inside the header slot (.modal-header-custom: logo, name
   block, its own .modal-body and .modal-footer): the same rule applies one level down. */
html:not([data-look="classic"]) .modal.in { display: flex; align-items: center; justify-content: center; padding: 16px 0; overflow: hidden; }
html:not([data-look="classic"]) .modal.in > .modal-dialog { margin: 0 auto; max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
html:not([data-look="classic"]) .modal.in > .modal-dialog > .modal-content {
    display: flex; flex-direction: column; max-height: 100%; min-height: 0; overflow: hidden; }
html:not([data-look="classic"]) .modal.in .modal-content > :is(.modal-header, .modal-footer) { flex: 0 0 auto; }
html:not([data-look="classic"]) .modal.in .modal-content > .modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
html:not([data-look="classic"]) .modal.in .modal-content > .modal-header-custom { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
html:not([data-look="classic"]) .modal.in .modal-header-custom > :not(.modal-body):not(.modal-footer):not(.close) { flex: 0 0 auto; }
html:not([data-look="classic"]) .modal.in .modal-header-custom > .modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
html:not([data-look="classic"]) .modal.in .modal-header-custom > .modal-footer { flex: 0 0 auto; }
/* T-157 (batch 4; the scrolling middle above cost the Player Card 15 px, its Projections table then ran into the scrollbar
   and was cut after the last column): the scrollbar gets its own gutter plus 12 px of room, and the card is wider by the
   same amount, so the table has at least its old width and the scrollbar never covers it. */
html:not([data-look="classic"]) .modal.in[data-modal="player-card"] .modal-header-custom > .modal-body { scrollbar-gutter: stable; }
@media (min-width: 992px) {
    html:not([data-look="classic"]) .modal.in[data-modal="player-card"] > .modal-dialog.modal-lg { width: 927px; max-width: calc(100vw - 24px); }
}
/* A custom header without its own body scrolls as a whole (its x stays in its top corner). */
html:not([data-look="classic"]) .modal.in .modal-header-custom:not(:has(> .modal-body)) { overflow-y: auto; }
/* Filled legacy buttons inside a popup's body are secondary, except the player card's Draft / Edit (its main action). */
html:not([data-look="classic"]) .modal-body .btn:is(.btn-primary, .btn-success, .btn-info, .btn-warning, .btn-accent):not(.DraftPlayer):not(.PlayerEditLink):not(.btn-main) {
    color: var(--rc-text); background: var(--rc-surface); border: 1px solid var(--rc-border); }
html:not([data-look="classic"]) .modal-body .btn:is(.btn-primary, .btn-success, .btn-info, .btn-warning, .btn-accent):not(.DraftPlayer):not(.PlayerEditLink):not(.btn-main):hover {
    background: var(--rc-filter-hover-bg); }
/* H29 */
html:not([data-look="classic"]) .player-card-tabs > li { border: 0; }
html:not([data-look="classic"]) .player-card-tabs > li > a:focus { outline: none; }
html:not([data-look="classic"]) .player-card-tabs > li > a:focus-visible { outline: 2px solid var(--rc-focus); outline-offset: 2px; }
html:not([data-look="classic"]) :is(.btn, .nav > li > a, .m-tab, .m-seg, .positionFilterButton, .filter-btn):focus:not(:focus-visible) { outline: none; box-shadow: none; }

/* ---------- Owner 2026-11-22 (H32): Position popup header (Modern): the logo and the position buttons on one row. ---------- */
html:not([data-look="classic"]) [data-modal="position"] .position-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; }
html:not([data-look="classic"]) [data-modal="position"] .position-logo { height: 28px; width: auto; }

/* ---------- Owner 2026-11-22: auto re-sync on open, in the status line. ---------- */
.m-autosync { margin-left: 8px; font-size: 12px; color: var(--rc-muted); }
.m-autosync-reconnect .m-reconnect { color: var(--rc-danger); font-weight: 600; }

/* ---------- Owner 2026-11-22 (owner-approved mockup): the My Leagues home, Modern looks (Classic keeps legacy). ---------- */
.mlh { max-width: 1320px; margin: 0 auto; padding: 20px 16px 8px; color: var(--rc-text); }
.mlh-welcome { color: var(--rc-muted); font-size: 14px; }
.mlh-notes { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 20px; border: 1px solid var(--rc-border);
             border-radius: 8px; background: var(--rc-surface); font-size: 13px; color: var(--rc-muted); }
.mlh-notes-icon { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--rc-accent); color: var(--rc-on-accent);
                  font: italic 700 12px/20px Georgia, serif; text-align: center; }
.mlh-notes > span:nth-child(2) { flex: 1; }
.mlh-notes-close { flex: none; border: 0; background: transparent; color: var(--rc-muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
.mlh-notes-close:hover { color: var(--rc-text); }
.mlh-empty { color: var(--rc-muted); margin: 10px 0 4px; font-size: 13px; }

/* ---------- Owner 2026-11-23 (T-115, owner-approved mockup): My Leagues as three columns and a compact list. ---------- */
.mll-head { margin-bottom: 10px; }
/* T-272 (owner 2026-11-30; part 2 item 8): ONE compact trial element on every app page, every look (TrialBar.razor;
   replaces the orange legacy bar): "Free trial", a bar of the page views left (no numbers; the count is in the tooltip
   and aria-label), "Get 2027 access". The bar turns to the warning colour in the last ~20% (.is-low). Tokens only, so
   light / dark follow; it wraps on phones. */
.trial-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 10px; padding: 6px 12px;
              border: 1px solid var(--rc-border); border-radius: 8px; background: var(--rc-surface);
              font-size: 13px; line-height: 1.4; color: var(--rc-text); }
.trial-line-label { font-weight: 600; white-space: nowrap; }
.trial-meter { flex: 0 1 160px; min-width: 80px; height: 8px; border-radius: 4px; overflow: hidden; background: var(--rc-border); }
.trial-meter-fill { display: block; height: 100%; border-radius: 4px; background: var(--rc-accent); }
.trial-line.is-low .trial-meter-fill { background: var(--rc-warning); }
.trial-line a { font-weight: 600; white-space: nowrap; }
/* T-281: the trial-ended screen leads to the purchase page (every look; tokens only). */
.trial-ended { max-width: 640px; }
.trial-ended-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }
.trial-ended-actions .btn { min-height: 40px; display: inline-flex; align-items: center; }
.trial-ended-note { color: var(--rc-muted); font-size: 13px; }
/* T-297 (owner 2026-12-01): THE trial message (TrialLockMessage.razor) for every feature a trial user cannot use (exports,
   cheat sheet, Copy League, a second league, live draft sync; later the locked rows): the lock, the owner's text and ONE
   button "Get 2027 access, $39" to the purchase page. Every look, light / dark (tokens only); the button goes full width
   on phones. */
.trial-lock { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 10px 0; padding: 12px 14px;
              border: 1px solid var(--rc-border); border-left: 4px solid var(--rc-accent); border-radius: var(--rc-radius-lg, 8px);
              background: var(--rc-surface); color: var(--rc-text); font-size: 14px; line-height: 1.45; text-align: left; }
.trial-lock-icon { flex: none; font-size: 18px; line-height: 1; }
/* T-322 (2) (owner 2026-12-02): the blurred "more players" block after the visible players of every trial list: fake rows
   (never real data) blurred, an overlay card centred on them with the message and the price button. Every look. */
.trial-more { position: relative; margin: 0 0 12px; min-height: 220px; overflow: hidden; }
.trial-more-rows { width: 100%; margin: 0; filter: blur(4px); opacity: 0.75; user-select: none; pointer-events: none; }
.trial-more-rows td { padding: 6px 8px; color: var(--rc-text); border-top: 1px solid var(--rc-border); }
.trial-more-rows tr:nth-child(odd) td { background: var(--rc-row-stripe); }
.trial-more-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    padding: 16px; text-align: center; }
.trial-more-text { margin: 0; padding: 10px 16px; font-size: 16px; font-weight: 600; color: var(--rc-text);
    background: var(--rc-surface); border: 1px solid var(--rc-border); border-radius: var(--rc-radius); }
.trial-more-btn { font-size: 15px; }
/* T-333 (4): Tiers for a trial user: the tiers from Solid down, names readable, the cells blurred fake chips. */
.tiers-locked { margin-top: -1px; min-height: 0; }
.tiers-locked-grid { margin: 0; }
.tiers-locked-grid td.tiers-fake-cell { filter: blur(4px); opacity: 0.75; user-select: none; pointer-events: none; }
.tiers-fake { padding: 2px 0; color: var(--rc-text); }
.trial-value-lock { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.trial-value-lock-btn { margin-left: 2px; }
.export-trial-lead { margin: 0 0 6px; font-weight: 600; }
.export-trial-list { margin: 0 0 8px; padding-left: 20px; }
.export-trial-list li { margin-bottom: 4px; }
.export-trial-formats { margin: 0 0 6px; }
.dp-trial-banner { margin: 0 0 14px; padding: 12px; background: var(--rc-surface); border: 1px solid var(--rc-border); border-left: 4px solid var(--rc-primary); border-radius: var(--rc-radius); }
.dp-trial-title { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.dp-trial-image { display: block; width: 100%; max-width: 900px; height: auto; margin: 0 0 8px; border: 1px solid var(--rc-border); border-radius: var(--rc-radius); }
.trial-lock-text { flex: 1 1 260px; margin: 0; }
.trial-lock .trial-lock-btn { flex: none; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
@media (max-width: 600px) { .trial-lock .trial-lock-btn { width: 100%; white-space: normal; } }
.admin-trial { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.admin-trial h3 { flex-basis: 100%; }
.admin-trial .admin-trial-input { width: 90px; display: inline-block; }
/* T-297: Admin > Settings (the trial settings and the kill switch). */
.admin-settings-table td { vertical-align: middle; }
.admin-settings-table .admin-setting-input { display: inline-block; width: 120px; margin: 2px 8px 2px 0; }
.admin-setting-key, .admin-setting-help { color: var(--rc-muted); font-size: 12px; }
.admin-setting-help.visible-xs { margin-top: 4px; }
.mll-trial, .mll-slim { margin: 0 0 10px; padding: 6px 12px; border: 1px solid var(--rc-border); border-radius: 8px; background: var(--rc-surface); font-size: 13px; color: var(--rc-muted); }
.mll-slim { gap: 8px; }
.mll-slim .mlh-notes-icon { width: 18px; height: 18px; font-size: 11px; line-height: 18px; }
.mll-slim .mlh-notes-close { font-size: 18px; }
.mll-trial a { font-weight: 600; }
.mll-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2.4fr); gap: 16px; align-items: start; }
.mll-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mll-col-title { margin: 0 0 2px; font-size: 15px; font-weight: 700; color: var(--rc-text); }
/* Batch 1d fix 2: "My Leagues" (h1) and the other two headers (h2) get the same box, so the three line up. */
.mll-columns .mll-col > .mll-col-title { margin: 0 0 2px; padding: 0; font-size: 18px; line-height: 1.3; font-weight: 700; font-family: inherit; }
.mll-columns .mll-panel .mll-panel-title { margin: 0; font-size: 15px; line-height: 1.3; font-weight: 700; color: var(--rc-text); }   /* beats .m-setup h2 */
.mll-action { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--rc-border); border-radius: 10px;
              background: var(--rc-surface); color: var(--rc-text); text-decoration: none; }
.mll-action:hover, .mll-action:focus-visible { border-color: var(--rc-accent); color: var(--rc-text); text-decoration: none; }
.mll-action-icon { --site: var(--rc-provider-rotochamp); flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
                   background: var(--site); color: var(--rc-on-accent); font-weight: 700; font-size: 15px; }
.mll-action-text { display: flex; flex-direction: column; min-width: 0; }
.mll-action-title { font-weight: 600; font-size: 14px; }
.mll-action-line { font-size: 12.5px; color: var(--rc-muted); }
[data-site="yahoo"] { --site: var(--rc-provider-yahoo); }
[data-site="espn"] { --site: var(--rc-provider-espn); }
[data-site="cbs"] { --site: var(--rc-provider-cbs); }
[data-site="fantrax"] { --site: var(--rc-provider-fantrax); }
.mll-action-icon[data-site="import"] { --site: var(--rc-accent); }
.mll-panel { border: 1px solid var(--rc-border); border-radius: 10px; background: var(--rc-surface); padding: 10px 12px; }
.mll-more-panel { margin-top: 12px; padding: 4px 12px; }
.mll-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
/* ONE grid for every list (2027, previous seasons, Recently deleted): names, badges, dates and buttons line up. */
.mll-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 76px 140px 72px; align-items: center; gap: 8px;
           min-height: 36px; padding: 2px 4px; border-top: 1px solid var(--rc-dropdown-divider); font-size: 14px; }
.mll-header { min-height: 26px; border-top: 0; font-size: 12px; font-weight: 600; color: var(--rc-muted); }
.mll-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mll-name a { color: var(--rc-text); font-weight: 600; text-decoration: none; }
.mll-name a:hover, .mll-name a:focus-visible { color: var(--rc-link); text-decoration: none; cursor: pointer; }   /* T-325 (1) */
.mll-more-panel .mll-name a { font-weight: 400; }   /* previous seasons: regular weight, as before */
.mll-date { font-size: 13px; color: var(--rc-text); white-space: nowrap; }
.mll-date.fallback { color: var(--rc-subtle-icon); }
.mll-actions { display: flex; justify-content: flex-end; gap: 4px; }
.mll-badge { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--site); color: var(--rc-on-accent); font-size: 12px; font-weight: 700; }
.mll-icon-btn { display: inline-grid; place-items: center; width: 30px; height: 28px; padding: 0; border: 1px solid var(--rc-border); border-radius: 6px;
                background: var(--rc-surface); color: var(--rc-text); font-size: 15px; cursor: pointer; }
.mll-icon-btn:hover:not(:disabled) { background: var(--rc-pill-hover); }
.mll-spin { display: inline-block; animation: mll-spin 1s linear infinite; }
@keyframes mll-spin { to { transform: rotate(360deg); } }
.mll-text-btn { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 1px solid var(--rc-border); border-radius: 6px;
                background: var(--rc-surface); color: var(--rc-text); font: inherit; font-size: 13px; text-decoration: none; cursor: pointer; }
.mll-text-btn:hover { background: var(--rc-pill-hover); color: var(--rc-text); text-decoration: none; }
.mll-section + .mll-section { border-top: 1px solid var(--rc-border); }
.mll-section-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 4px; border: 0; background: transparent; color: var(--rc-text);
                    font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.mll-caret { width: 12px; color: var(--rc-muted); }
.past-season-line { margin: 0 0 8px; padding: 6px 12px; border: 1px solid var(--rc-border); border-radius: 8px; background: var(--rc-well-bg); color: var(--rc-muted); font-size: 13px; }
/* T-304 (owner 2026-12-01): the view-only (earlier season) banner, amber with a lock, and no editing controls. The server
   refuses every change anyway (PastSeasonReadOnly); this keeps the screens from offering them. */
.view-only-banner { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px; padding: 10px 14px; border: 1px solid var(--rc-viewonly-border);
                    border-left-width: 5px; border-radius: 8px; background: var(--rc-viewonly-bg); color: var(--rc-viewonly-text); font-size: 14px; line-height: 1.4; }
.view-only-banner .view-only-lock { font-size: 18px; line-height: 1.2; }
.view-only-banner .view-only-text > b { margin-right: 0.4em; }   /* owner retest 2026-12-01: a gap after "2026 season, view only." */
.view-only-banner a { color: inherit; font-weight: 600; text-decoration: underline; }
@media (max-width: 600px) { .view-only-banner { font-size: 13px; padding: 8px 10px; } }
.league-view-only .UndraftPlayer, .league-view-only .m-undraft, .league-view-only .move-bar, .league-view-only .undraft-zone,
.league-view-only .drag-panel, .league-view-only .filled-undraft, .league-view-only button.DraftPlayer,
.league-view-only .league-season-import { display: none !important; }
.league-view-only .ChangeKeeperStatus, .league-view-only .player-card-contract, .league-view-only .ChangeTwoWaySide,
.league-view-only .ChangePositionLink { pointer-events: none; opacity: 0.6; }
.league-tile-menu { position: fixed; z-index: 1050; min-width: 210px; margin: 0; padding: 6px 0; list-style: none; background: var(--rc-dropdown-bg);
                    border: 1px solid var(--rc-dropdown-border); border-radius: 8px; box-shadow: var(--rc-dropdown-shadow); }
.league-tile-menu a { display: flex; align-items: center; gap: 10px; padding: 6px 14px; color: var(--rc-text); text-decoration: none; font-size: 14px; }
.league-tile-menu a:hover { background: var(--rc-row-hover); }
.league-tile-menu a svg { flex: none; color: var(--rc-muted); }
.league-tile-menu a.league-tile-delete, .league-tile-menu a.league-tile-delete svg { color: var(--rc-danger); }
.league-tile-menu .divider { height: 1px; margin: 6px 0; background: var(--rc-dropdown-divider); }
@media (max-width: 1100px) {
    .mll-columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .mll-main { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .mll-columns { grid-template-columns: 1fr; }
    /* Phones: the name on its own line, then badge, date and buttons. */
    .mll-row { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "name name name" "site date actions"; row-gap: 2px; padding: 6px 4px; }
    .mll-row > :nth-child(1) { grid-area: name; }
    .mll-row > :nth-child(2) { grid-area: site; }
    .mll-row > :nth-child(3) { grid-area: date; }
    .mll-row > :nth-child(4) { grid-area: actions; }
    .mll-header { display: none; }
}

/* ---------- Owner 2026-11-22 (revised mockup "v2"): the Create a league page, Modern looks (Classic: the legacy popup).
   One screen at 1440x900: header row with the buttons, League + Player pool side by side, Scoring and Roster full width. ---------- */
.cl-page { max-width: 1240px; margin: 0 auto; padding: 12px 16px 20px; color: var(--rc-text); }
.cl-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cl-head-text { min-width: 0; flex: 1 1 420px; }
.cl-breadcrumb { font-size: 12px; color: var(--rc-muted); margin-bottom: 2px; }
.cl-breadcrumb a { color: var(--rc-link); }
.cl-page h1.cl-title { margin: 0 0 2px; font-size: 22px; line-height: 1.25; font-weight: 700; color: var(--rc-text); }
/* T-383 (owner walkthrough W17b, approved mockup option A, warm amber): the intro panel under the heading, full width of
   the form. Row 1: three numbered steps with arrows; a divider; row 2: "Already in a league?" + four sync buttons.
   Colours: tokens.css --rc-intro-* (light + dark). Phone: the steps stack (arrows point down), the buttons wrap. */
.cl-intro-panel { background: var(--rc-intro-bg); border: 1px solid var(--rc-intro-border); border-radius: 14px; padding: 20px 24px; margin: 0 0 12px; color: var(--rc-text); }
.cl-howto-steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 14px; }
.cl-howto-step { display: flex; align-items: center; gap: 12px; flex: 1 1 0; min-width: 0; }
.cl-howto-step + .cl-howto-step::before { content: "\2192"; flex: none; margin-right: 2px; color: var(--rc-intro-accent); font-size: 26px; font-weight: 700; line-height: 1; }
.cl-howto-circle { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--rc-intro-accent); color: var(--rc-intro-on-accent); font-size: 20px; font-weight: 700; }
.cl-howto-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cl-howto-title { font-size: 17px; font-weight: 700; line-height: 1.25; color: var(--rc-text); }
.cl-howto-sub { font-size: 13px; line-height: 1.3; color: var(--rc-muted); }
.cl-sync { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rc-intro-border); }
.cl-sync-label { font-weight: 700; color: var(--rc-text); }
.cl-sync-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-page a.cl-sync-btn { display: inline-block; padding: 6px 14px; border: 1px solid var(--rc-intro-btn-border); border-radius: 8px; background: var(--rc-intro-btn-bg); color: var(--rc-intro-btn-text); font-weight: 700; font-size: 14px; line-height: 1.3; text-decoration: none; }
.cl-page a.cl-sync-btn:hover, .cl-page a.cl-sync-btn:focus-visible { background: var(--rc-intro-btn-hover); color: var(--rc-intro-btn-text); }
.cl-sync-note { font-size: 13px; color: var(--rc-muted); }
@media (max-width: 760px) {
    .cl-intro-panel { padding: 16px; }
    .cl-howto-steps { flex-direction: column; align-items: stretch; gap: 6px; }
    .cl-howto-step { flex-wrap: wrap; }
    .cl-howto-text { flex: 1 1 0; }   /* the title stays beside its circle */
    .cl-howto-step + .cl-howto-step::before { content: "\2193"; flex-basis: 100%; margin: 0 0 4px 12px; }
}
.cl-head-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.cl-head-error { flex-basis: 100%; text-align: right; margin: 0; }
.cl-create { height: 38px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--rc-primary); color: var(--rc-on-accent); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.cl-create:hover:not(:disabled) { background: var(--rc-primary-hover); }
.cl-create:disabled { opacity: .7; cursor: default; }
.cl-cancel { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 1px solid var(--rc-border); border-radius: 8px; color: var(--rc-text); background: var(--rc-surface); text-decoration: none; }
.cl-cancel:hover { background: var(--rc-pill-hover); color: var(--rc-text); text-decoration: none; }
.cl-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cl-card { padding: 12px 14px; border: 1px solid var(--rc-border); border-radius: 10px; background: var(--rc-surface); min-width: 0; }
.cl-card-wide { grid-column: 1 / -1; }
.cl-page h2.cl-card-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; font-size: 16px; line-height: 1.3; font-weight: 700; color: var(--rc-text); }
.cl-card-title .cl-seg { margin: 0 0 0 8px; }
.cl-num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--rc-primary); color: var(--rc-on-accent); font-size: 12px; }
.cl-title-note { font-size: 13px; font-weight: 600; color: var(--rc-muted); }
.cl-eligibility { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -2px 0 8px; font-size: 13px; color: var(--rc-muted); }
.cl-eligibility label { margin: 0; font-weight: normal; color: var(--rc-text); }
.cl-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cl-grow { flex: 1 1 200px; }
.cl-teams { flex: 0 0 90px; }
.cl-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; min-width: 0; }
.cl-field > label, .cl-label { font-size: 13px; font-weight: 600; color: var(--rc-text); margin: 0; }
.cl-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 8px; }
.cl-line > .cl-label { flex: 0 0 64px; }
.cl-line-top { margin-top: 10px; }
.cl-line-top > .cl-label { flex-basis: 100%; }
.cl-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.cl-inline label { margin: 0; font-weight: 600; }
.cl-input { height: 32px; padding: 0 8px; border: 1px solid var(--rc-input-border); border-radius: 8px; background: var(--rc-input-bg); color: var(--rc-text); font: inherit; min-width: 0; }
.cl-input:focus { outline: none; border-color: var(--rc-input-focus); }
.cl-input.invalid { border-color: var(--rc-danger); }
.cl-select { padding-right: 4px; }
.cl-narrow { width: 64px; }
.cl-tiny { width: 44px; }
.cl-tiny-select { height: 28px; width: 64px; }
.cl-money { display: inline-flex; align-items: center; gap: 2px; color: var(--rc-muted); }
.cl-seg { margin: 0; flex-wrap: nowrap; }
.cl-seg .m-seg-btn { white-space: nowrap; }
.cl-hint { margin: 2px 0 0; font-size: 12px; color: var(--rc-muted); }
.cl-count { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--rc-text); }
.cl-error { margin-top: 2px; font-size: 13px; color: var(--rc-danger); }
.cl-chip-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.cl-chip-label { flex: 0 0 64px; padding-top: 5px; font-size: 13px; font-weight: 600; }
.cl-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.cl-chip { min-width: 38px; height: 28px; padding: 0 9px; border: 1px solid var(--rc-border); border-radius: 14px; background: var(--rc-surface); color: var(--rc-text);
           font: inherit; font-size: 12.5px; cursor: pointer; }
.cl-chip:hover { background: var(--rc-pill-hover); }
.cl-chip.on { background: var(--rc-primary); border-color: var(--rc-primary); color: var(--rc-on-accent); }
.cl-link { border: 0; background: transparent; padding: 0; color: var(--rc-link); font: inherit; font-size: 13px; cursor: pointer; }
.cl-link:hover { text-decoration: none; }   /* T-325 (1) */
.cl-points-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 5px; flex: 1; }
/* Owner 2026-11-23: a plain row (name left, small input right, light divider), the size of a Roster spots row. */
.cl-point { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 26px; padding: 1px 0; margin: 0; border-bottom: 1px solid var(--rc-dropdown-divider); font-size: 13px; font-weight: normal; }
.cl-point-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-page input.cl-point-input, .modal input.cl-point-input { flex: none; width: 44px; height: 22px; min-height: 0; line-height: 20px; box-sizing: border-box; box-shadow: none; margin: 0; padding: 0 4px; border: 1px solid var(--rc-input-border); border-radius: 3px; background: var(--rc-input-bg); color: var(--rc-text); font: inherit; font-size: 13px; text-align: right; }
.cl-page input.cl-point-input:focus, .modal input.cl-point-input:focus { outline: none; border-color: var(--rc-input-focus); }
/* T-369: a number box that is not a number yet ("-", ".") once it is left, or after Create league / Save: red border
   (focused too), every look, light and dark. */
body input[data-numeric][aria-invalid=true], body input[data-numeric][aria-invalid=true]:focus { border-color: var(--rc-danger); box-shadow: 0 0 0 1px var(--rc-danger); }
.cl-roster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cl-roster-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
/* Owner 2026-11-23: Scoring as two checklists (Hitting, Pitching), 2 columns each, filled top to bottom. */
.cl-score-boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 6px; }
.cl-score-box { border: 1px solid var(--rc-border); border-radius: 8px; padding: 6px 10px; min-width: 0; }
.cl-score-head { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 13px; font-weight: 700; }
.cl-selected { font-weight: 600; color: var(--rc-muted); }
.cl-checklist { columns: 2; column-gap: 12px; }
.cl-check { display: flex; align-items: center; gap: 6px; margin: 0; min-height: 26px; padding: 1px 0; font-size: 13px; font-weight: normal; cursor: pointer; break-inside: avoid; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-check input { margin: 0; flex: none; accent-color: var(--rc-primary); }
.cl-check.on { font-weight: 600; }
.cl-pointlist .cl-point { break-inside: avoid; }
.cl-more-list { columns: 3; }
.cl-league-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cl-league-col .cl-chip-label { display: block; padding: 0 0 4px; }
.cl-roster-box { --cl-group: var(--rc-accent); border: 1px solid var(--rc-border); border-top: 3px solid var(--cl-group); border-radius: 8px; padding: 6px 10px; }
.cl-roster-box[data-group="utility"] { --cl-group: var(--rc-provider-fantrax); }
.cl-roster-box[data-group="pitchers"] { --cl-group: var(--rc-provider-yahoo); }
.cl-roster-box[data-group="reserves"] { --cl-group: var(--rc-muted); }
.cl-roster-head { display: flex; justify-content: space-between; margin-bottom: 2px; font-size: 13px; font-weight: 700; color: var(--rc-text); }   /* the section colour is the top stripe (readable in dark too) */
.cl-subtotal { color: var(--rc-text); }
.cl-step { display: grid; grid-template-columns: 1fr 26px 26px 26px; align-items: center; gap: 3px; padding: 1px 0; }
.cl-step-name { font-size: 13px; font-weight: 600; }
.cl-step-btn { width: 26px; height: 24px; padding: 0; border: 1px solid var(--rc-border); border-radius: 6px; background: var(--rc-surface); color: var(--rc-text); font: inherit; font-weight: 700; line-height: 1; cursor: pointer; }
.cl-step-btn:hover:not(:disabled) { background: var(--rc-pill-hover); }
.cl-step-btn:disabled { opacity: .4; cursor: default; }
.cl-step-count { text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; }
.cl-search { width: 100%; margin-bottom: 10px; }
.cl-more-group { margin-bottom: 10px; }
.cl-more-group .cl-chip-label { display: block; padding: 0 0 4px; }
.cl-team-chips .cl-chip { min-width: 50px; }
@media (max-width: 1000px) {
    .cl-score-boxes { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .cl-cards, .cl-roster { grid-template-columns: 1fr; }
    .cl-seg { flex-wrap: wrap; }   /* phones: long choices may wrap rather than overflow */
    .cl-head-actions { width: 100%; justify-content: flex-start; }
    .cl-head-error { text-align: left; }
    .cl-chip-row { flex-direction: column; gap: 4px; }
    .cl-roster, .cl-league-cols { grid-template-columns: 1fr; }
}
/* Owner 2026-11-24 (Tiers): the "my team" row first (as Position Rankings); flexible columns' "+N more" / "Show less". */
html:not([data-look="classic"]) .tiers-grid .tiers-my-row > td { vertical-align: top; white-space: normal; overflow-wrap: break-word; font-size: 12px; }   /* T-308 (2): full names wrap, never clipped */
html:not([data-look="classic"]) .tiers-grid .tiers-more { display: block; padding: 0 2px; font-size: 11.5px; font-weight: 600; line-height: 19px; color: var(--rc-link); }
/* T-124 (owner 2026-11-24): My Draft Picture sits at the right end of the status line and never gets cut off: the texts
   before it may shrink (with "..."), the button does not. */
.m-status > span:not(.m-sep):not(.m-status-dot) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* Modern / Chips (owner 2026-11-24): a pill like the manager chips and the Mock Draft Mode badge: fully rounded, soft accent
   tint, accent bold text and icon, no border, 24 px tall inside the 30 px status bar, 16 px from the right edge (the bar's
   padding). Hover: a darker tint; dark mode: a lighter tint that still stands out. */
html:not([data-look="classic"]) .m-status > .draft-picture-btn { flex-shrink: 0; margin-left: auto; height: 24px; padding: 0 12px; border: 0; border-radius: 999px;
    background: color-mix(in srgb, var(--rc-accent) 13%, var(--rc-surface)); color: var(--rc-accent); font-size: 14px; font-weight: 700; text-decoration: none; }
html:not([data-look="classic"]) .m-status > .draft-picture-btn:hover, html:not([data-look="classic"]) .m-status > .draft-picture-btn:focus-visible {
    background: color-mix(in srgb, var(--rc-accent) 24%, var(--rc-surface)); color: var(--rc-accent); text-decoration: none; }
html[data-theme="dark"]:not([data-look="classic"]) .m-status > .draft-picture-btn { background: color-mix(in srgb, var(--rc-accent) 28%, var(--rc-surface)); color: color-mix(in srgb, var(--rc-accent) 55%, var(--rc-text)); }
html[data-theme="dark"]:not([data-look="classic"]) .m-status > .draft-picture-btn:hover { background: color-mix(in srgb, var(--rc-accent) 40%, var(--rc-surface)); }

/* ---------- T-213 (owner 2026-11-28, every look, light + dark, phones): "Set Positions Manually" ----------
   Grouped chips: each box and its label form ONE large target with real gaps; a small "default" mark on the
   system-default positions. */
.manual-positions { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 4px; }
.manual-position-group { display: flex; flex-wrap: wrap; gap: 8px; }
.manual-position { display: inline-flex; align-items: center; gap: 6px; min-width: 64px; min-height: 40px; margin: 0; padding: 6px 12px;
    font-weight: 600; color: var(--rc-text); background: var(--rc-surface); border: 1px solid var(--rc-border); border-radius: 8px;
    cursor: pointer; user-select: none; }
.manual-position:hover { background: var(--rc-pill-hover); }
.manual-position.is-checked { border-color: var(--rc-primary); box-shadow: inset 0 0 0 1px var(--rc-primary); }
.manual-position input[type="checkbox"] { width: 18px; height: 18px; margin: 0; cursor: pointer; }
.manual-position-default { padding: 0 5px; font-size: 11px; font-weight: 600; line-height: 16px; color: var(--rc-muted);
    border: 1px solid var(--rc-border); border-radius: 999px; }
.manual-positions-hint { margin: 8px 0 0; font-size: 12px; color: var(--rc-muted); }
/* T-240 (owner 2026-11-28, every look): Set Positions inside the player card: "← Back", then the chips, then a small
   "Use System Defaults" link above [Save] [Cancel] (Cancel right-most). */
.manual-positions-back { display: inline-block; margin: 0 0 6px; font-weight: 600; text-decoration: none; }
.manual-positions-embedded h4 { margin: 4px 0 8px; }
.manual-positions-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; margin-top: 14px; }
.manual-positions-defaults { font-size: 12.5px; }
.manual-positions-buttons { display: flex; gap: 8px; }
/* T-240: phone player card: full-width stacked buttons, Draft Player (primary) first, then Make Current Auction Player. */
@media (max-width: 767px) {
    [data-modal="player-card"] .modal-footer { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
    [data-modal="player-card"] .modal-footer > .btn { float: none; width: 100%; min-height: 44px; margin: 0 !important; }
    [data-modal="player-card"] .modal-footer > .CurrentAuction { order: 2; }
    .manual-positions-buttons { width: 100%; }
    .manual-positions-buttons > .btn { flex: 1 1 0; min-height: 44px; }
}

/* ---------- T-195 (owner 2026-11-27, D5): the Modern / Chips top bar ----------
   League area: line 1 = the league name + switch (details in its tooltip), line 2 = a small "⚙ League Settings" link.
   The search box is narrower and widens while it is in use. Proj / ADP pickers carry short labels (SourcePicker). */
.m-league-area { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; flex: 0 1 auto; }
.m-league-area .m-league-switch { padding-bottom: 0; }
.m-league-settings-link { margin: -2px 0 2px 10px; font-size: 12px; font-weight: 600; color: var(--rc-muted); white-space: nowrap; text-decoration: none; }
.m-league-settings-link:hover, .m-league-settings-link:focus-visible { color: var(--rc-primary); text-decoration: none; }   /* T-325 (1) */
.m-search { flex: 0 1 180px; max-width: 180px; transition: max-width .15s ease, flex-basis .15s ease; }
.m-search:focus-within { flex-basis: 360px; max-width: 420px; }
@media (max-width: 767.98px) {
    .m-league-area { max-width: 45vw; }
    .m-search, .m-search:focus-within { flex-basis: 120px; max-width: none; }
}

/* ---------- T-227 (owner 2026-11-28, EVERY look, light + dark, desktop + phone): the Player Edit (draft entry) popup.
   Name as the title with team + positions beside it, Recent Player Views a compact control top right, the sections in
   one flowing body (value grid, bidders, position, Keeper Info collapsed last), uniform chips with a clearly filled
   selected one, one Save / Cancel at the bottom (Save on the right). Phones: one column, the buttons in a sticky footer. */
[data-modal=player-edit] .pe-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; width: 100%; }
[data-modal=player-edit] .pe-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
[data-modal=player-edit] .pe-title .modal-title { margin: 0; font-size: 18px; font-weight: 700; }
[data-modal=player-edit] .pe-meta { color: var(--rc-muted); font-size: 13px; }
[data-modal=player-edit] .pe-recent { flex: none; padding: 3px 10px; font-size: 12px; white-space: nowrap; color: var(--rc-text);
    border: 1px solid var(--rc-border); border-radius: 6px; text-decoration: none; background: var(--rc-surface); }
[data-modal=player-edit] .pe-recent:hover, [data-modal=player-edit] .pe-recent:focus-visible { background: var(--rc-pill-hover); text-decoration: none; }
[data-modal=player-edit] .pe-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px 18px; }
[data-modal=player-edit] .pe-value, [data-modal=player-edit] .pe-keeper { grid-column: 1 / -1; }
[data-modal=player-edit] .pe-section { min-width: 0; }
[data-modal=player-edit] .pe-section-title { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--rc-text); }
[data-modal=player-edit] .pe-subtitle { margin-top: 10px; }
[data-modal=player-edit] .pe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; }
[data-modal=player-edit] .pe-grid-wide { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
[data-modal=player-edit] .pe-chip { min-height: 28px; padding: 3px 6px; font: inherit; font-size: 12.5px; line-height: 1.2; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; color: var(--rc-text); background: var(--rc-surface); border: 1px solid var(--rc-border);
    border-radius: 6px; cursor: pointer; }
[data-modal=player-edit] .pe-chip:hover { background: var(--rc-pill-hover); }
[data-modal=player-edit] .pe-chip:focus-visible { outline: 2px solid var(--rc-primary); outline-offset: 1px; }
[data-modal=player-edit] .pe-chip.is-selected { color: var(--rc-btn-text); background: var(--rc-success); border-color: var(--rc-success-border);
    font-weight: 700; box-shadow: 0 0 0 2px color-mix(in srgb, var(--rc-success) 35%, transparent); }
[data-modal=player-edit] .pe-other { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 0; font-weight: 600; font-size: 13px; }
[data-modal=player-edit] .pe-other-input { width: 110px; }
[data-modal=player-edit] .pe-other.is-selected .pe-other-input { border-color: var(--rc-success); box-shadow: 0 0 0 2px color-mix(in srgb, var(--rc-success) 35%, transparent); }
[data-modal=player-edit] .pe-show-all { display: inline-block; margin-top: 6px; font-size: 12px; }
[data-modal=player-edit] .pe-keeper { padding-top: 8px; border-top: 1px solid var(--rc-modal-divider); }
[data-modal=player-edit] .pe-keeper > summary { cursor: pointer; margin: 0; }
[data-modal=player-edit] .pe-keeper-fields { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; }
[data-modal=player-edit] .pe-field { display: flex; flex-direction: column; gap: 3px; margin: 0; font-size: 12.5px; font-weight: 600; }
[data-modal=player-edit] .pe-field select { width: 90px; }
[data-modal=player-edit] .pe-field-wide { flex: 1 1 240px; }
[data-modal=player-edit] .pe-footer { display: flex; align-items: center; gap: 8px; width: 100%; }
[data-modal=player-edit] .pe-footer-space { flex: 1 1 auto; }
[data-modal=player-edit] .modal-body { padding-top: 10px; padding-bottom: 10px; }
@media (max-width: 767px) {
    [data-modal=player-edit] .pe-body { grid-template-columns: minmax(0, 1fr); }
    [data-modal=player-edit] .pe-head { flex-wrap: wrap; }
    [data-modal=player-edit] .modal-footer { position: sticky; bottom: 0; z-index: 2; background: var(--rc-modal-bg); }
    [data-modal=player-edit] .pe-footer .btn { min-height: 40px; }
    [data-modal=player-edit] .pe-footer .btn-success { flex: 1 1 auto; }
}
/* legacy.css sizes these button classes with !important (50px value buttons, 2px margins): the grid sizes them here. */
[data-modal=player-edit] .pe-chip.playerValueButton, [data-modal=player-edit] .pe-chip.managerButton,
[data-modal=player-edit] .pe-chip.managerButton_Losing, [data-modal=player-edit] .pe-chip.positionButton { width: auto !important; margin: 0 !important; }
/* T-227: Keeper Info shows that it opens (an arrow that turns), in every look. */
[data-modal=player-edit] .pe-keeper > summary { display: flex; align-items: center; gap: 6px; list-style: none; }
[data-modal=player-edit] .pe-keeper > summary::-webkit-details-marker { display: none; }
[data-modal=player-edit] .pe-keeper > summary::before { content: "\25B8"; display: inline-block; font-size: 12px; color: var(--rc-muted); transition: transform .15s; }
[data-modal=player-edit] .pe-keeper[open] > summary::before { transform: rotate(90deg); }
[data-modal=player-edit] .pe-keeper > summary::after { content: "(keeper, contract)"; font-weight: 400; font-size: 12px; color: var(--rc-muted); }
/* T-232: the "Other $" combo box messages: an error (blocks Save) and a max-bid warning (Save still allowed). */
[data-modal=player-edit] .pe-error { margin: 6px 0 0; font-size: 12.5px; font-weight: 600; color: var(--rc-danger); }
[data-modal=player-edit] .pe-warning { margin: 6px 0 0; padding: 5px 8px; font-size: 12.5px; color: var(--rc-text);
    background: color-mix(in srgb, var(--rc-warning) 18%, transparent); border-left: 3px solid var(--rc-warning); border-radius: 4px; }
[data-modal=player-edit] .pe-other-input[aria-invalid=true] { border-color: var(--rc-danger); }

/* ---------- T-235 (owner 2026-11-28): the Modern top bar on PHONES (minimal; the mobile redesign comes after launch).
   League name left, ellipsis, still the league switcher, nothing on top of it; the search is a magnifier that opens a
   full-width field over the bar (x closes it); A- / A+ in the avatar menu; mail, light / dark and the avatar stay; the
   status line's "My Draft Picture" is its icon only. Desktop unchanged. ---------- */
.m-search-toggle, .m-search-close { display: none; }
.m-account-textsize { padding: 6px 12px; }
.m-account-textsize > span { display: block; margin-bottom: 4px; font-size: 12px; color: var(--rc-muted); }
.m-account-textsize .m-text-size { margin-left: 0; }
@media (max-width: 767px) {
    .m-topbar .m-league-area { flex: 1 1 auto; min-width: 0; }
    .m-topbar .m-league-switch { max-width: 100%; min-width: 0; }
    .m-topbar .m-league-text { min-width: 0; overflow: hidden; }
    .m-topbar .m-league-settings-link { display: none; }
    .m-topbar > .m-text-size { display: none; }
    .m-search-toggle { display: inline-flex; flex: 0 0 auto; }
    .m-topbar > .m-search { display: none; }
    .m-topbar > .m-search.is-open { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; gap: 6px; max-width: none;
        padding: 0 8px; background: var(--rc-m-topbar-bg, var(--rc-surface)); }
    .m-topbar > .m-search.is-open .m-search-icon { top: 50%; left: 18px; transform: translateY(-50%); }
    .m-topbar > .m-search.is-open .PlayerSearch, .m-topbar > .m-search.is-open input[type="text"] { width: 100%; }
    .m-topbar > .m-search.is-open > :not(.m-search-icon):not(.m-search-close):not(.m-kbd) { flex: 1 1 auto; }
    .m-topbar > .m-search.is-open .m-search-close { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center;
        width: 36px; height: 36px; font-size: 22px; color: var(--rc-text); background: none; border: 0; cursor: pointer; }
    html:not([data-look="classic"]) .m-status > .draft-picture-btn { padding: 0 8px; }
    html:not([data-look="classic"]) .m-status > .draft-picture-btn .dp-text { display: none; }
    html:not([data-look="classic"]) .m-status { overflow: hidden; }
}

/* ---------- T-233 (owner 2026-11-28): Projections filters on PHONES, every look (minimal; the mobile redesign comes after
   launch): one row = Group + Position dropdowns + "Filters (n)" (a bottom sheet with the other filters). The button rows
   are hidden there; the table starts right below. Desktop unchanged (the row and the sheet never show). ---------- */
.phone-filters, .phone-sheet, .phone-sheet-backdrop { display: none; }
@media (max-width: 767px) {
    .phone-filters { display: flex; align-items: center; gap: 6px; margin: 4px 0 8px; }
    .phone-filter-select { flex: 1 1 0; min-width: 0; height: 36px; padding: 0 8px; font: inherit; font-size: 14px; color: var(--rc-text);
        background: var(--rc-input-bg); border: 1px solid var(--rc-input-border); border-radius: 8px; }
    .phone-filters-btn { flex: 0 0 auto; height: 36px; padding: 0 12px; font: inherit; font-size: 14px; font-weight: 600; color: var(--rc-text);
        background: var(--rc-surface); border: 1px solid var(--rc-border); border-radius: 8px; white-space: nowrap; }
    .projections-page .m-toolbar, .projections-page .position-filters, .projections-page .projection-filters { display: none !important; }
    .phone-sheet-backdrop { position: fixed; inset: 0; z-index: 1064; display: block; background: color-mix(in srgb, var(--rc-backdrop) 45%, transparent); }
    .phone-sheet { position: fixed; right: 0; bottom: 0; left: 0; z-index: 1065; display: flex; flex-direction: column; max-height: 82vh;
        color: var(--rc-text); background: var(--rc-modal-bg); border-radius: 14px 14px 0 0; box-shadow: var(--rc-modal-shadow);
        padding-bottom: env(safe-area-inset-bottom); }
    .phone-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--rc-modal-divider); }
    .phone-sheet-close { width: 36px; height: 36px; font-size: 24px; line-height: 1; color: var(--rc-text); background: none; border: 0; }
    .phone-sheet-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; overflow-y: auto; }
    .phone-sheet-body .m-filter, .phone-sheet-body .dropdown { width: 100%; }
    .phone-sheet-foot { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--rc-modal-divider); }
    .phone-sheet-done { margin-left: auto; min-height: 40px; }
}

/* T-242 (owner review batch 2, 2026-11-28): the phone status row showed clipped fragments ("● [ · L…"). On phones it keeps
   only the live dot, Undraft, "Values updated…" and the My Draft Picture icon (T-235); the rest is hidden there. */
@media (max-width: 767px) {
    html:not([data-look="classic"]) .m-status { gap: 10px; }
    html:not([data-look="classic"]) .m-status > :not(.m-status-dot):not(.m-undraft):not(.values-status):not(.draft-picture-btn) { display: none !important; }
}

/* T-239 (owner review batch 2, 2026-11-28, every look, light + dark): "⚠ Not in league pool (NL)" under a rostered
   player whose MLB team is outside the league's pool (Rosters, My Team). A warning only, never a block. */
.not-in-pool { display: block; margin-top: 1px; font-size: 11px; font-weight: 600; line-height: 1.3; color: var(--rc-muted); white-space: normal; }
.not-in-pool > [aria-hidden] { margin-right: 3px; color: var(--rc-warning); }

/* ---------- Owner review batch 3 (2026-11-29), correction 10: row states, EVERY look (Classic too), light + dark ---------- */
/* 10a. Frozen columns (Rank, Player) take the row's state: they paint var(--rc-row-bg) over the surface (E20), so the state
   is set on the ROW as well (mine green / taken grey / available plain). */
html .grid-fit > table:not(.rankings-grid) > tbody > tr:has(a:is(.PlayerStatsLink, .ChangePositionClick).drafted:not(.mine)),
html[data-mine="same"] .grid-fit > table:not(.rankings-grid) > tbody > tr:has(a:is(.PlayerStatsLink, .ChangePositionClick).drafted.mine) {
    --rc-row-bg: var(--rc-taken-tint); }
html:not([data-mine="same"]) .grid-fit > table:not(.rankings-grid) > tbody > tr:has(a:is(.PlayerStatsLink, .ChangePositionClick).drafted.mine) {
    --rc-row-bg: var(--rc-mine-tint); }
html .grid-fit > table:not(.rankings-grid) > tbody > tr:has(a:is(.PlayerStatsLink, .ChangePositionClick).drafted) > td.grid-sticky-col {
    color: var(--rc-taken-row-text); }
html:not([data-mine="same"]) .grid-fit > table:not(.rankings-grid) > tbody > tr:has(a:is(.PlayerStatsLink, .ChangePositionClick).drafted.mine) > td.grid-sticky-col {
    color: inherit; }
/* 10b. No zebra in the App: every row plain (white / the plain dark surface); the thin row lines stay. Grey now means only
   "taken". (Website tables keep theirs: .rc-app is the App's layout.) */
html body .rc-app .table-striped > tbody > tr:nth-of-type(odd),
html body .rc-app .table-striped > tbody > tr:nth-child(odd) > td,
html body .rc-app .table-striped > tbody > tr:nth-child(odd) > th { background-color: transparent; }
html body .rc-app .grid-fit > table.table-striped > tbody > tr:nth-of-type(odd):not(:hover):not(:has(a.drafted)) { --rc-row-bg: transparent; }   /* plain rows only: a state row keeps its tint */
/* 10c. A subtle hover over any row (plain, mine or taken): a translucent layer over the cell's own background. */
html body .rc-app .table > tbody > tr:hover > td { background-image: linear-gradient(var(--rc-row-hover-layer), var(--rc-row-hover-layer)); }
html body .rc-app .grid-fit > table > tbody > tr:hover > td.grid-sticky-col:not(.new-tier) {
    background: linear-gradient(var(--rc-row-hover-layer), var(--rc-row-hover-layer)), linear-gradient(var(--rc-row-bg, transparent), var(--rc-row-bg, transparent)), var(--rc-surface); }
html body .rc-app .grid-fit > table.table-hover > tbody > tr:hover:not(:has(a.drafted)) { --rc-row-bg: transparent; }
/* T-307 (owner 2026-12-01, every look incl. Classic): an UNDRAFTED row's hover is a light blue tint (dim blue in dark), never
   the drafted grey; a drafted / my row keeps its grey / green fill and gets a thin blue outline instead. Projections,
   Rankings, Position Rankings, Tiers, Rosters. */
html body .rc-app .table:not(.rankings-grid) > tbody > tr:hover:not(:has(a.drafted)) > td,
html body .rc-app .rankings-grid > tbody > tr:hover > td:not(:has(a.drafted)) {
    background-color: var(--rc-surface);
    background-image: linear-gradient(var(--rc-row-hover-tint), var(--rc-row-hover-tint)); }
html body .rc-app .grid-fit > table > tbody > tr:hover:not(:has(a.drafted)) > td.grid-sticky-col:not(.new-tier) {
    background: linear-gradient(var(--rc-row-hover-tint), var(--rc-row-hover-tint)), var(--rc-surface); }
html body .rc-app .table:not(.rankings-grid) > tbody > tr:hover:has(a.drafted) > td,
html body .rc-app .rankings-grid > tbody > tr:hover > td:has(a.drafted) { background-image: none; }
html body .rc-app .table:not(.rankings-grid) > tbody > tr:hover:has(a.drafted),
html body .rc-app .rankings-grid > tbody > tr:hover > td:has(a.drafted) { outline: 1px solid var(--rc-row-hover-outline); outline-offset: -1px; }
html body .rc-app .grid-fit > table > tbody > tr:hover:has(a.drafted) > td.grid-sticky-col:not(.new-tier) {
    background: linear-gradient(var(--rc-row-bg, transparent), var(--rc-row-bg, transparent)), var(--rc-surface); }

/* ---------- Batch 3, correction 11: players outside the league pool ---------- */
.not-in-pool-add { display: inline-block; margin-top: 1px; font-size: 11px; font-weight: 600; line-height: 1.3; }
.pool-players { margin-top: 16px; }
.pool-players-title { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.pool-players-help, .pool-players-empty { margin: 0 0 8px; color: var(--rc-muted); font-size: 12px; }
.pool-players-search { max-width: 320px; margin-bottom: 8px; }
.pool-players-table { max-width: 520px; }
.pool-prompt .confirm-buttons { flex-wrap: wrap; }

/* ---------- Batch 3, correction 13: My Draft Picture, a gauge icon everywhere; phones (every look) say "My Draft" ---------- */
.draft-picture-btn .dp-text-short { display: none; }
@media (max-width: 767px) {
    html .draft-picture-btn .dp-text, html:not([data-look="classic"]) .m-status > .draft-picture-btn .dp-text { display: none; }
    html .draft-picture-btn .dp-text-short { display: inline; margin-left: 4px; }
}
@media (max-width: 767px) {
    /* Phones: "Values updated ..." gives way (ellipsis) so "My Draft" is never clipped. */
    html:not([data-look="classic"]) .m-status > .values-status { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    html:not([data-look="classic"]) .m-status > .draft-picture-btn { flex-shrink: 0; }
}

/* Batch 3, correction 12: Delete this League, a red outline as well as the red icon (it still asks first). */
.m-tilemenu-tile.danger { border-color: color-mix(in srgb, var(--rc-danger) 55%, var(--rc-border)); }
.m-tilemenu-tile.danger:hover { border-color: var(--rc-danger); }

/* T-280 (owner 2026-11-30): every file input is an app button, all looks. The native input stays in the page (visually
   hidden, still focusable: Tab, then Space / Enter opens the chooser; Ctrl+V paste is handled by the popup), and its
   <label for> is styled as the site's button (.btn .btn-default); the focus ring shows on the label. */
.file-input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; opacity: 0; }
.file-button { margin-bottom: 0; font-weight: normal; cursor: pointer; }
.file-input:focus-visible + .file-button { outline: var(--rc-focus-width, 2px) solid var(--rc-focus); outline-offset: 2px; }

/* T-314 (owner 2026-12-01): the "Switch to Classic?" confirmation (js/look.js confirmClassic), website and app, every look. */
.rc-confirm-backdrop { position: fixed; inset: 0; z-index: 3000; background: var(--rc-backdrop); opacity: 0.5; }
.rc-confirm { position: fixed; z-index: 3001; top: 18vh; left: 50%; transform: translateX(-50%); width: min(440px, calc(100vw - 32px));
    padding: 20px 22px 18px; background: var(--rc-modal-bg); color: var(--rc-text); border: 1px solid var(--rc-modal-border);
    border-radius: var(--rc-radius-lg); box-shadow: var(--rc-modal-shadow-wide); }
.rc-confirm .rc-confirm-title, .rc-confirm h2.rc-confirm-title { margin: 0 0 10px; font-size: 20px; font-weight: 700; }   /* T-324 (5): a clear warning */
.rc-confirm-icon { color: var(--rc-warning-icon); margin-right: 4px; }
.rc-confirm-text { margin: 0 0 18px; font-size: 16px; line-height: 1.5; }
.rc-confirm-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.m-tilemenu-tile.soon, .m-tilemenu-tile.soon:hover { opacity: 0.6; cursor: default; background: none; }   /* T-310: a placeholder tile (coming after launch) */

/* T-289 (owner 2026-12-01): Feedback popup, DARK only (light unchanged). Unselected Type of Feedback chips: full-strength
   text and a visible border (the selected chip stays filled blue); "Attach an image": lighter border and text on a subtle
   fill. Both well above WCAG AA on the dark surface. */
html[data-theme="dark"] .feedback-types .filter-btn:not(.selected) {
    color: var(--rc-text); border: 1px solid var(--rc-muted); background: transparent; }
html[data-theme="dark"] .feedback-types .filter-btn:not(.selected):hover { border-color: var(--rc-text); }
html[data-theme="dark"] .feedback-attach {
    color: var(--rc-text); border: 1px solid var(--rc-muted); background: color-mix(in srgb, var(--rc-text) 10%, transparent); }
html[data-theme="dark"] .feedback-attach:hover { border-color: var(--rc-text); }

/* T-308 (4) (owner 2026-12-01): Rosters: My Team is always the FIRST team column, a light green tinted column (dim green in
   dark) with a bold header. Every look. */
html body .rc-app .rosters-grid.mine-first > tbody > tr > td:nth-child(2) { background-color: var(--rc-mine-tint); }
html body .rc-app .rosters-grid.mine-first > thead > tr > th:nth-child(2) .roster-team { font-weight: 700; }
