/* StupidLeague — the whole UI. Global rather than component-scoped because the
   analysis panel is rendered by child components that scoped CSS would not reach. */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #0d1117;
}

/* ============================================================ shell */
.app {
    --bg: #0d1117;
    --bg2: #131922;
    --bg3: #1a2230;
    --line: #232c3b;
    --tx: #e6edf3;
    --dim: #8b98a9;
    --dim2: #5f6b7a;
    --acc: #4dd08a;
    --acc-dim: #1e4634;
    --warn: #e0a04d;
    --bad: #e07777;
    --bad-dim: #2a1414;
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--tx);
    font: 13px/1.45 ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
}

/* ============================================================ header */
.hdr {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--bg2);
}

.brand h1 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.4px;
}

    .brand h1 span {
        color: var(--acc);
    }

.brand p {
    margin: 2px 0 0;
    color: var(--dim);
    font-size: 11.5px;
    max-width: 90ch;
}

.controls {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: none;
}

.gloss-btn {
    background: var(--bg3);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--dim);
    font: inherit;
    font-size: 12px;
    padding: 6px 11px;
    cursor: pointer;
}

    .gloss-btn:hover {
        color: var(--tx);
        border-color: var(--dim2);
    }

/* ---- centre of the header: the currently selected seat ---- */
.hdr-sel {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
    padding-top: 2px;
}

.selcard {
    width: 100%;
    max-width: 460px;
    background: var(--bg3);
    border: 1px solid var(--line);
    border-left: 3px solid var(--acc);
    border-radius: 6px;
    padding: 5px 9px;
    min-width: 0;
}

    .selcard.dead {
        border-left-color: #a35050;
    }

    .selcard.empty {
        border-left-color: var(--line);
        color: var(--dim2);
        font-size: 11px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: 46px;
        line-height: 1.4;
    }

.selcard-top {
    display: flex;
    align-items: baseline;
    gap: 7px;
    min-width: 0;
}

.selcard-seat {
    font-size: 9px;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--dim2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40%;
    flex: none;
}

.selcard-name {
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.selcard-x {
    margin-left: auto;
    background: none;
    border: 0;
    color: var(--dim2);
    font: inherit;
    font-size: 11px;
    cursor: pointer;
    padding: 0 2px;
    flex: none;
}

    .selcard-x:hover {
        color: var(--tx);
    }

.selcard-rule {
    font-size: 10px;
    color: var(--dim);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* a dynamic seat has no fixed pool; say so under the rule text */
.selcard-dyn {
    font-size: 10px;
    line-height: 1.35;
    color: var(--warn, #d8a657);
    margin-top: 2px;
}

/* marks a variant chip whose answer depends on the roster and the round */
.pm-dyn {
    font-size: 8px;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 1px 3px;
    border-radius: 3px;
    background: var(--bg2);
    color: var(--dim);
}

.selcard-nums {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    margin-top: 2px;
    font-size: 10px;
    color: var(--dim2);
}

    .selcard-nums b {
        color: var(--tx);
        font-weight: 600;
    }

    .selcard-nums .m-strong, .selcard-nums .m-weak,
    .selcard-nums .m-fit, .selcard-nums .m-dead {
        background: none;
        padding: 0;
        height: auto;
        min-width: 0;
        display: inline;
        font-weight: 400;
    }

.seg {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}

    .seg button {
        background: var(--bg3);
        color: var(--dim);
        border: 0;
        padding: 6px 12px;
        font: inherit;
        cursor: pointer;
    }

        .seg button.on {
            background: var(--acc);
            color: #07130d;
            font-weight: 600;
        }

.chk {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--dim);
    cursor: pointer;
    user-select: none;
}

    .chk.off {
        opacity: .4;
        cursor: default;
    }

/* ============================================================ body */
.body {
    flex: 1;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 360px;
    min-height: 0;
}

.rail, .panel {
    overflow-y: auto;
    background: var(--bg2);
}

.rail {
    border-right: 1px solid var(--line);
    padding: 10px;
}

.panel {
    border-left: 1px solid var(--line);
}

.rail-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 2px 4px 8px;
}

    .rail-head h2 {
        margin: 0;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .8px;
        color: var(--dim);
    }

    .rail-head span {
        font-size: 10.5px;
        color: var(--dim2);
    }

/* ------------------------------------------------ option groups */
.opt {
    margin-bottom: 10px;
}

.opt-name {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: var(--dim);
    padding: 0 3px 4px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 4px;
}

    .opt-name em {
        font-style: normal;
        font-weight: 500;
        letter-spacing: 0;
        text-transform: none;
        color: var(--dim2);
        flex: none;
    }

.var {
    display: block;
    width: 100%;
    text-align: left;
    background: var(--bg3);
    border: 1px solid var(--line);
    border-left: 3px solid var(--line);
    border-radius: 5px;
    padding: 6px 8px;
    margin-bottom: 4px;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

    .var:hover {
        border-color: #33405a;
        border-left-color: var(--dim);
    }

    .var.on {
        background: var(--acc-dim);
        border-color: var(--acc);
        border-left-color: var(--acc);
    }

    .var.dead {
        opacity: .55;
        border-left-color: #7d3b3b;
    }

        .var.dead.on {
            opacity: 1;
            background: #2a1a1a;
            border-color: #a35050;
            border-left-color: #a35050;
        }

.var-top {
    display: flex;
    align-items: center;
    gap: 5px;
}

.var-label {
    font-weight: 650;
    font-size: 12.5px;
}

.badge {
    font-size: 10px;
    color: var(--acc);
    flex: none;
}

    .badge.dead {
        color: #d08a8a;
    }

.var-rule {
    color: var(--dim);
    font-size: 10.5px;
    line-height: 1.35;
    margin: 1px 0 4px;
}

.var-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 9px;
    font-size: 10px;
    color: var(--dim2);
}

    .var-stats b {
        color: var(--dim);
        font-weight: 600;
    }

.var.on .var-stats b {
    color: var(--tx);
}

/* ------------------------------------------------ constraint cards */
.team {
    display: block;
    width: 100%;
    text-align: left;
    background: var(--bg3);
    border: 1px solid var(--line);
    border-left: 3px solid var(--line);
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 6px;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

    .team:hover {
        border-color: #33405a;
        border-left-color: var(--dim);
    }

    .team.on {
        background: var(--acc-dim);
        border-color: var(--acc);
        border-left-color: var(--acc);
    }

.team-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.team-name {
    font-weight: 650;
    font-size: 13px;
}

.cat {
    font-size: 9px;
    letter-spacing: .6px;
    color: var(--dim2);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 1px 4px;
    flex: none;
}

.team.on .cat {
    color: var(--acc);
    border-color: var(--acc);
}

.team-rule {
    color: var(--dim);
    font-size: 11px;
    margin: 2px 0 6px;
}

.team-bar {
    height: 3px;
    background: #0a0e14;
    border-radius: 2px;
    overflow: hidden;
}

    .team-bar i {
        display: block;
        height: 100%;
        background: var(--acc);
        opacity: .75;
    }

.team-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: 6px;
    font-size: 10.5px;
    color: var(--dim2);
}

    .team-stats b {
        color: var(--dim);
        font-weight: 600;
    }

.team.on .team-stats b {
    color: var(--tx);
}

.ghost {
    width: 100%;
    background: none;
    border: 1px dashed var(--line);
    border-radius: 6px;
    color: var(--dim2);
    font: inherit;
    font-size: 11px;
    padding: 7px;
    margin-top: 6px;
    cursor: pointer;
}

    .ghost:hover {
        color: var(--tx);
        border-color: var(--dim2);
    }

.rejects {
    margin-top: 8px;
    font-size: 11px;
}

    .rejects > p {
        color: var(--dim2);
        margin: 0 0 8px;
    }

.reject {
    padding: 6px 8px;
    border-left: 2px solid #4a2b2b;
    background: #17121280;
    margin-bottom: 4px;
    border-radius: 0 4px 4px 0;
}

    .reject b {
        display: block;
    }

    .reject em {
        display: block;
        color: var(--dim);
        font-style: normal;
        font-size: 10.5px;
    }

    .reject span {
        display: block;
        color: #c98c8c;
        font-size: 10px;
        margin-top: 2px;
    }

/* ============================================================ board */
.board {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.tabs {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 8px 10px 0;
    border-bottom: 1px solid var(--line);
    background: var(--bg2);
}

/* a second row of tabs inside a pane: quieter than the page tabs above it, and
   never a flex item that stretches when the pane below manages its own panes */
.tabs.subtabs {
    flex: none;
    padding: 5px 10px 0;
    background: var(--bg);
}

    .tabs.subtabs button {
        font-size: 12px;
        font-weight: 600;
        padding: 5px 11px;
    }

        .tabs.subtabs button.on {
            background: var(--bg2);
            padding-bottom: 6px;
        }

    .tabs button {
        background: none;
        border: 1px solid transparent;
        border-bottom: 0;
        border-radius: 6px 6px 0 0;
        color: var(--dim);
        font: inherit;
        font-weight: 600;
        padding: 7px 14px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 6px;
    }

        .tabs button:hover {
            color: var(--tx);
        }

        .tabs button.on {
            background: var(--bg);
            border-color: var(--line);
            color: var(--tx);
            margin-bottom: -1px;
            padding-bottom: 8px;
        }

.tab-n {
    font-size: 10px;
    font-weight: 500;
    color: var(--dim2);
    background: var(--bg3);
    border-radius: 8px;
    padding: 1px 6px;
}

.legend {
    margin-left: auto;
    padding-right: 6px;
    font-size: 11px;
    color: var(--dim);
    display: flex;
    align-items: center;
    gap: 6px;
}

.swatch {
    width: 20px;
    height: 10px;
    border-radius: 2px;
    background: var(--acc-dim);
    border-left: 2px solid var(--acc);
}

/* ------------------------------------------------------- data grid */
.grid-head, .row {
    display: grid;
    grid-template-columns:
        44px minmax(120px, 1.7fr) 52px 40px 38px 38px 42px 38px 30px
        minmax(76px, 1fr) 88px 38px 32px 42px 44px 36px;
    gap: 7px;
    align-items: center;
    padding: 0 12px;
}

.grid-head {
    height: 28px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--dim2);
    border-bottom: 1px solid var(--line);
    background: var(--bg2);
    /* match the row's highlight border and the scroll container's gutter so the
       header labels sit exactly over their columns */
    border-left: 2px solid transparent;
    padding-right: 22px;
}

.rows {
    flex: 1;
    overflow-y: scroll;          /* always reserve the gutter, so nothing shifts */
    scrollbar-width: thin;
    scrollbar-color: #2c3646 transparent;
}

    .rows::-webkit-scrollbar {
        width: 10px;
    }

    .rows::-webkit-scrollbar-thumb {
        background: #2c3646;
        border-radius: 5px;
    }

    .rows::-webkit-scrollbar-track {
        background: transparent;
    }

.row {
    height: 27px;
    border-bottom: 1px solid #171e29;
    border-left: 2px solid transparent;
    white-space: nowrap;
}

    .row:hover {
        background: var(--bg2);
    }

    .row.miss {
        opacity: .26;
    }

    .row.hit {
        border-left-color: var(--acc);
        background: #12261c66;
    }

        .row.hit:hover {
            background: #16321f;
        }

.c-adp b {
    font-weight: 650;
}

.c-adp i {
    color: var(--dim2);
    font-style: normal;
    font-size: 10px;
    margin-left: 4px;
}

.c-name {
    overflow: hidden;
    text-overflow: ellipsis;
}

.c-col, .c-draft {
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--dim);
    font-size: 11px;
}

.c-team {
    color: var(--dim);
}

.c-num {
    text-align: right;
    color: var(--dim);
}

.c-elig {
    text-align: right;
}

    .c-elig i {
        font-style: normal;
        font-size: 10px;
        padding: 1px 5px;
        border-radius: 8px;
    }

.e-hi {
    background: #2a3f31;
    color: #7fd6a4;
}

.e-md {
    background: #2b3243;
    color: #97a6bd;
}

.e-lo {
    background: #3e2a2a;
    color: #d69a9a;
}

em.p-QB, em.p-RB, em.p-WR, em.p-TE, .t-pos {
    font-style: normal;
    font-size: 10.5px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 3px;
}

.p-QB {
    background: #3a2a44;
    color: #c69ade;
}

.p-RB {
    background: #143a30;
    color: #6fd4ac;
}

.p-WR {
    background: #13314a;
    color: #7cb8e8;
}

.p-TE {
    background: #45351b;
    color: #e0b96a;
}

/* ---------------------------------------------- seat summary page */
.summary {
    flex: 1;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: #2c3646 transparent;
    padding: 12px 14px 40px;
}

    .summary::-webkit-scrollbar {
        width: 10px;
    }

    .summary::-webkit-scrollbar-thumb {
        background: #2c3646;
        border-radius: 5px;
    }

.sum-intro p {
    margin: 0 0 6px;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--dim);
    max-width: 110ch;
}

.legend-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 8px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0 !important;
}

    .legend-row .sep {
        color: var(--line);
    }

    .legend-row b {
        color: var(--tx);
    }

/* the +/star/- marks */
.m {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
    flex: none;
}

.m-fit {
    background: #3a3413;
    color: #e8cc55;
}

.m-strong {
    background: #143a24;
    color: #56d98a;
}

.m-weak {
    background: #3d1c1c;
    color: #e07777;
}

.m-dead {
    background: #2b2b2b;
    color: #8b8b8b;
}

/* ---- one row per seat, variants laid out across ---- */
.stable-head, .srow {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.stable-head {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--bg);
    padding: 8px 2px 5px;
    border-bottom: 1px solid var(--line);
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--dim2);
}

.srow {
    padding: 7px 2px;
    border-bottom: 1px solid #171e29;
}

    .srow:hover {
        background: #10151d;
    }


.srow-name h3 {
    margin: 0;
    font-size: 12.5px;
    font-weight: 650;
    line-height: 1.25;
}

.srow-name p {
    margin: 2px 0 0;
    font-size: 9.5px;
    line-height: 1.35;
    color: var(--dim2);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.srow-vars {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.vchip {
    flex: 1 1 150px;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-left: 3px solid transparent;
    border-radius: 5px;
    padding: 5px 8px;
    color: inherit;
    font: inherit;
    cursor: pointer;
    min-width: 0;
}

    .vchip:hover {
        border-color: #33405a;
        background: var(--bg3);
    }

    .vchip.rec {
        border-left-color: var(--acc);
    }

    .vchip.on {
        background: var(--acc-dim);
        border-color: var(--acc);
    }

.vchip-top {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.vchip-label {
    font-size: 11.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .vchip-label.best {
        font-weight: 750;
    }

.vchip-rule {
    font-size: 9.5px;
    line-height: 1.35;
    color: var(--dim);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vchip-nums {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    font-size: 9.5px;
    color: var(--dim2);
    margin-top: 1px;
}

    .vchip-nums b {
        color: var(--dim);
    }

    .vchip-nums .m-strong {
        background: none;
        padding: 0;
        color: #56d98a;
    }

    .vchip-nums .m-weak {
        background: none;
        padding: 0;
        color: #e07777;
    }

    .vchip-nums .m-fit {
        background: none;
        padding: 0;
        color: #e8cc55;
    }

    .vchip-nums .m-dead {
        background: none;
        padding: 0;
        color: #8b8b8b;
    }

/* ------------------------------------- four positions side by side */
.grid4 {
    /* no pinned label row by default — the schticks page's columns start straight
       in on the rounds, so R1 must sit flush against the top of the scroller */
    --chead-h: 0px;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    min-height: 0;
}

/* the draft board pins a column-label row inside the scroller; the round
   dividers stack under it rather than at the top edge */
.grid4.headed {
    --chead-h: 20px;
}

.col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: var(--bg);
}

.col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 8px;
    background: var(--bg2);
    border-bottom: 1px solid var(--line);
    flex: none;
}

    .col-head span {
        font-size: 10px;
        color: var(--dim2);
    }

.col-rows {
    flex: 1;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: #2c3646 transparent;
}

    .col-rows::-webkit-scrollbar {
        width: 8px;
    }

    .col-rows::-webkit-scrollbar-thumb {
        background: #2c3646;
        border-radius: 4px;
    }

/* round divider inside a position column */
.ctier {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    padding: 4px 8px 3px;
    background: linear-gradient(to right, var(--bg3), transparent 80%);
    border-top: 1px solid var(--line);
    position: sticky;
    /* the column header owns the top edge; rounds stack under it, at whatever
       height the header actually is — it grows a line for the shtick label */
    top: var(--chead-h, 20px);
    z-index: 1;
    backdrop-filter: blur(3px);
}

    .ctier span {
        font-size: 9.5px;
        font-weight: 700;
        letter-spacing: .6px;
        color: var(--acc);
    }

    .ctier i {
        font-style: normal;
        font-size: 9.5px;
        color: var(--dim2);
    }

.crow {
    display: grid;
    /* posRank · name · team · proj · eligible-variants chip */
    grid-template-columns: 20px minmax(0, 1fr) 26px 24px 20px;
    gap: 4px;
    align-items: center;
    width: 100%;
    height: 22px;
    padding: 0 6px;
    border: 0;
    border-bottom: 1px solid #171e29;
    border-left: 2px solid transparent;
    background: none;
    color: inherit;
    font: inherit;
    font-size: 11.5px;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

    .crow:hover {
        background: var(--bg2);
    }

.c-pj {
    font-size: 9.5px;
    color: var(--dim);
    text-align: right;
}

.c-el {
    text-align: right;
}

    .c-el i {
        font-style: normal;
        font-size: 8.5px;
        padding: 1px 3px;
        border-radius: 6px;
    }

    .crow.miss {
        opacity: .24;
    }

    .crow.hit {
        border-left-color: var(--acc);
        background: #12261c66;
    }

.c-pr {
    font-size: 9.5px;
    color: var(--dim2);
}

.c-nm {
    overflow: hidden;
    text-overflow: ellipsis;
}

.c-tm {
    font-size: 9.5px;
    color: var(--dim);
    text-align: right;
}

/* --------------------------------------------------- round divider */
.tier {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 7px 12px 5px;
    background: linear-gradient(to right, var(--bg3), transparent 70%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid #171e29;
    position: sticky;
    top: 0;
    z-index: 1;
    backdrop-filter: blur(3px);
}

.tier-r {
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--acc);
}

.tier-meta {
    font-size: 10.5px;
    color: var(--dim2);
}

    .tier-meta b {
        color: var(--acc);
    }

/* ============================================================ panel */
.pan {
    padding: 14px;
}

.pan-head {
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
    margin-bottom: 4px;
}

    .pan-head h2 {
        margin: 4px 0 2px;
        font-size: 17px;
        letter-spacing: -0.3px;
    }

    .pan-head .rule {
        margin: 0;
        color: var(--dim);
        font-size: 12px;
    }

.pan section {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

    .pan section:last-child {
        border-bottom: 0;
    }

    .pan section h3 {
        margin: 0 0 8px;
        font-size: 10.5px;
        text-transform: uppercase;
        letter-spacing: .9px;
        color: var(--dim);
    }

        .pan section h3 em {
            font-style: normal;
            color: var(--dim2);
            text-transform: none;
            letter-spacing: 0;
        }

.note {
    margin: 8px 0 0;
    font-size: 11px;
    line-height: 1.5;
    color: var(--dim);
}

    .note b {
        color: var(--tx);
        font-weight: 600;
    }

.recbox {
    border-left: 2px solid var(--acc);
    background: #12261c;
    padding: 7px 9px;
    border-radius: 0 4px 4px 0;
}

    .recbox b {
        color: var(--acc);
    }

.optnote {
    margin-top: 6px;
    font-size: 10.5px;
    font-style: italic;
}

.warnbox {
    border-left: 2px solid var(--warn);
    background: #221a0d80;
    padding: 7px 9px;
    border-radius: 0 4px 4px 0;
}

    .warnbox b {
        color: var(--warn);
    }

.kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.kpi {
    background: var(--bg3);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px;
    text-align: center;
}

    .kpi b {
        display: block;
        font-size: 19px;
        font-weight: 700;
        color: var(--acc);
        line-height: 1.1;
    }

    .kpi span {
        display: block;
        font-size: 10px;
        color: var(--dim);
        text-transform: uppercase;
        letter-spacing: .5px;
    }

    .kpi i {
        display: block;
        font-style: normal;
        font-size: 9.5px;
        color: var(--dim2);
        margin-top: 3px;
    }

/* --------------------------------------------------- round bars */
.rounds {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rnd {
    display: grid;
    grid-template-columns: 26px 1fr 46px;
    gap: 8px;
    align-items: center;
    font-size: 10.5px;
}

.rnd-n {
    color: var(--dim2);
}

.rnd-bar {
    height: 11px;
    background: #0a0e14;
    border-radius: 2px;
    overflow: hidden;
}

    .rnd-bar i {
        display: block;
        height: 100%;
        background: var(--acc);
        opacity: .8;
    }

.rnd-v {
    text-align: right;
    color: var(--tx);
}

    .rnd-v em {
        font-style: normal;
        color: var(--dim2);
    }

.rnd.empty .rnd-v {
    color: #d08a8a;
}

/* --------------------------------------------------- tables */
.tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

    .tbl th {
        text-align: left;
        font-weight: 600;
        color: var(--dim2);
        font-size: 9.5px;
        text-transform: uppercase;
        letter-spacing: .5px;
        padding: 0 6px 4px 0;
        border-bottom: 1px solid var(--line);
    }

    .tbl td {
        padding: 4px 6px 4px 0;
        border-bottom: 1px solid #171e29;
        color: var(--dim);
    }

        .tbl td b {
            color: var(--tx);
        }

    .tbl .tot td {
        border-bottom: 0;
        color: var(--dim2);
        padding-top: 6px;
    }

    .tbl .ok {
        color: var(--acc);
    }

    .tbl .warn {
        color: var(--warn);
    }

    .tbl.rank .nm {
        color: var(--tx);
    }

.mini {
    display: inline-block;
    width: 46px;
    height: 6px;
    background: #0a0e14;
    border-radius: 2px;
    overflow: hidden;
    margin-right: 5px;
    vertical-align: middle;
}

    .mini i {
        display: block;
        height: 100%;
        background: var(--acc);
        opacity: .8;
    }

/* --------------------------------------------------- tier ladder */
.tiers {
    display: flex;
    align-items: stretch;
    gap: 3px;
    margin-bottom: 5px;
}

.t-pos {
    flex: none;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.t-cell {
    flex: 1;
    background: var(--bg3);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 3px 2px 4px;
    text-align: center;
    min-width: 0;
}

    .t-cell.zero {
        border-color: #4a2b2b;
    }

.t-lab {
    display: block;
    font-size: 8.5px;
    color: var(--dim2);
}

.t-val {
    display: block;
    font-size: 12px;
    font-weight: 650;
}

.t-cell.zero .t-val {
    color: #d08a8a;
}

.t-bar {
    height: 2px;
    background: #0a0e14;
    margin-top: 3px;
    border-radius: 1px;
    overflow: hidden;
}

    .t-bar i {
        display: block;
        height: 100%;
        background: var(--acc);
    }

/* --------------------------------------------------- definitions */
.defs {
    margin: 0;
    font-size: 11px;
}

    .defs dt {
        font-weight: 650;
        color: var(--tx);
        margin-top: 8px;
    }

        .defs dt:first-child {
            margin-top: 0;
        }

    .defs dd {
        margin: 2px 0 0;
        color: var(--dim);
        line-height: 1.5;
    }

/* ============================================================ modals */
.modal-back {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: #04070bcc;
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.modal {
    background: var(--bg2);
    border: 1px solid #33405a;
    border-radius: 10px;
    box-shadow: 0 20px 60px #000a;
    display: flex;
    flex-direction: column;
    max-height: 100%;
    width: 100%;
    max-width: 620px;
    min-height: 0;
}

    .modal.wide {
        max-width: 860px;
    }

.modal-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--line);
    flex: none;
}

    .modal-head h2 {
        margin: 0;
        font-size: 17px;
        letter-spacing: -0.3px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .modal-head p {
        margin: 3px 0 0;
        font-size: 11px;
        color: var(--dim);
        line-height: 1.45;
    }

.x {
    margin-left: auto;
    background: var(--bg3);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--dim);
    font: inherit;
    font-size: 12px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    flex: none;
}

    .x:hover {
        color: var(--tx);
        border-color: var(--dim2);
    }

.modal-body {
    padding: 14px 16px 18px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #2c3646 transparent;
    min-height: 0;
}

    .modal-body::-webkit-scrollbar {
        width: 10px;
    }

    .modal-body::-webkit-scrollbar-thumb {
        background: #2c3646;
        border-radius: 5px;
    }

/* ---- player modal ---- */
.pm-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

.pm-stat {
    background: var(--bg3);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 7px;
    text-align: center;
}

    .pm-stat b {
        display: block;
        font-size: 18px;
        font-weight: 700;
        color: var(--acc);
        line-height: 1.1;
    }

    .pm-stat span {
        display: block;
        font-size: 9.5px;
        text-transform: uppercase;
        letter-spacing: .5px;
        color: var(--dim);
    }

    .pm-stat i {
        display: block;
        font-style: normal;
        font-size: 9.5px;
        color: var(--dim2);
        margin-top: 2px;
    }

.pm-h {
    margin: 14px 0 6px;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .9px;
    color: var(--dim);
}

.pm-seats {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pm-seat {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 4px 2px;
    border-bottom: 1px solid #171e29;
}

    .pm-seat.none {
        opacity: .45;
    }

.pm-seat-name {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 11.5px;
    min-width: 0;
}

    .pm-seat-name b {
        font-weight: 600;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


.pm-seat-vars {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.pm-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg3);
    border: 1px solid var(--line);
    border-left: 3px solid transparent;
    border-radius: 5px;
    color: inherit;
    font: inherit;
    font-size: 11px;
    padding: 3px 7px;
    cursor: pointer;
}

    .pm-chip:hover {
        border-color: #33405a;
    }

    .pm-chip.rec {
        border-left-color: var(--acc);
    }

    .pm-chip.on {
        background: var(--acc-dim);
        border-color: var(--acc);
    }

    .pm-chip.off {
        opacity: .38;
        cursor: default;
        text-decoration: line-through;
    }

.pm-no {
    font-size: 10.5px;
    color: var(--dim2);
    font-style: italic;
}

/* ---- glossary ---- */
.gloss section {
    padding: 0 0 14px;
}

    .gloss section h3 {
        margin: 0 0 8px;
        font-size: 10.5px;
        text-transform: uppercase;
        letter-spacing: .9px;
        color: var(--acc);
        border-bottom: 1px solid var(--line);
        padding-bottom: 5px;
    }

.gloss dl {
    margin: 0;
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 6px 14px;
    font-size: 11.5px;
}

.gloss dt {
    font-weight: 650;
    color: var(--tx);
    text-align: right;
}

.gloss dd {
    margin: 0;
    color: var(--dim);
    line-height: 1.55;
}

    .gloss dd em {
        color: var(--tx);
        font-style: italic;
    }

/* ============================================================ nav pills */
.brand-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    flex: none;
}

    .nav a {
        color: var(--dim);
        text-decoration: none;
        font-size: 12px;
        font-weight: 600;
        padding: 5px 12px;
    }

        .nav a:hover {
            color: var(--tx);
        }

        /* quiet fill, not the green — green means "eligible" everywhere else */
        .nav a.on {
            background: var(--bg3);
            color: var(--tx);
        }

/* ============================================================ season shell */
.season-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #2c3646 transparent;
}

    .season-body::-webkit-scrollbar {
        width: 10px;
    }

    .season-body::-webkit-scrollbar-thumb {
        background: #2c3646;
        border-radius: 5px;
    }

.fresh {
    font-size: 11px;
    color: var(--dim);
    white-space: nowrap;
}

    .fresh b {
        color: var(--tx);
        font-weight: 600;
    }

.banner {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 8px;
    padding: 8px 14px;
    font-size: 12.5px;
    border-left: 3px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg2);
}

    .banner b {
        font-weight: 700;
    }

    .banner span {
        color: var(--dim);
    }

    .banner.ok {
        border-left-color: var(--acc);
        background: #12261c;
    }

        .banner.ok b {
            color: var(--acc);
        }

    .banner.warn {
        border-left-color: var(--warn);
        background: #2e230f66;
    }

        .banner.warn b {
            color: var(--warn);
        }

    .banner.bad {
        border-left-color: var(--bad);
        background: var(--bad-dim);
    }

        .banner.bad b {
            color: var(--bad);
        }

.stale {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 6px 14px;
    font-size: 11.5px;
    color: var(--warn);
    background: #2e230f66;
    border-bottom: 1px solid var(--line);
}

.hint {
    margin: 40px auto;
    max-width: 440px;
    text-align: center;
    color: var(--dim2);
    font-size: 12.5px;
    line-height: 1.6;
    padding: 24px;
    border: 1px dashed var(--line);
    border-radius: 8px;
}

    .hint b {
        color: var(--dim);
    }

    .hint code {
        background: var(--bg3);
        border: 1px solid var(--line);
        border-radius: 4px;
        padding: 1px 5px;
        font-size: 11px;
    }

.hint-err {
    color: #c98c8c;
    font-size: 11px;
}

/* ============================================================ status chips */
.st {
    display: inline-block;
    font-size: 10px;
    font-style: normal;
    line-height: 1;
    padding: 3px 7px;
    border-radius: 8px;
    white-space: nowrap;
}

.st-ok {
    background: #143a24;
    color: #56d98a;
}

/* the one solid-filled chip in the app — a violation should shout */
.st-bad {
    background: var(--bad);
    color: #1c0d0d;
    font-weight: 700;
}

.st-unk {
    background: #2e230f;
    color: var(--warn);
}

.st-ex {
    background: var(--bg3);
    color: var(--dim2);
}

/* ============================================================ audit */
.audit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 10px;
    padding: 12px 14px;
    align-items: start;
}

.mgr {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-left: 3px solid var(--line);
    border-radius: 6px;
    padding: 10px 12px;
    min-width: 0;
}

    .mgr.flag {
        border-left-color: var(--bad);
    }

    .mgr.unassigned {
        border: 1px dashed var(--line);
        padding-left: 14px;
    }

.mgr-head {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.mgr-ava {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg3);
    border: 1px solid var(--line);
    flex: none;
    object-fit: cover;
}

    .mgr-ava.fb {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--dim);
        font-weight: 700;
        font-size: 14px;
    }

.mgr-names {
    min-width: 0;
}

    .mgr-names b {
        display: block;
        font-size: 13px;
        font-weight: 650;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mgr-names span {
        display: block;
        font-size: 10.5px;
        color: var(--dim2);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.mgr-rec {
    margin-left: auto;
    color: var(--dim);
    font-size: 12px;
    flex: none;
}

.mgr-shtick {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    min-width: 0;
}

    .mgr-shtick b {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.mgr-flags {
    margin-left: auto;
    display: flex;
    gap: 5px;
    flex: none;
}

.mgr-rule {
    color: var(--dim);
    font-size: 10.5px;
    line-height: 1.35;
    margin-top: 2px;
}

.mgr-none {
    color: var(--warn);
    font-size: 11.5px;
    margin-top: 8px;
    line-height: 1.4;
}

.mgr-quiet {
    color: var(--dim2);
    font-size: 11px;
    margin-top: 8px;
}

/* ---- assigning a shtick from the card ---- */
.shtick-pick {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    min-width: 0;
}

    .shtick-pick select {
        flex: 1 1 auto;
        min-width: 0;
        background: var(--bg3);
        border: 1px solid var(--line);
        border-radius: 5px;
        color: var(--tx);
        font: inherit;
        font-size: 11.5px;
        padding: 4px 6px;
        cursor: pointer;
    }

        .shtick-pick select:hover {
            border-color: var(--dim2);
        }

.pick-tag {
    flex: none;
    font-size: 9.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--dim2);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2px 5px;
}

    .pick-tag.muted {
        opacity: .7;
    }

/* the card belonging to whoever is looking */
.mgr.mine {
    border-left-color: var(--acc, var(--good));
    background: color-mix(in srgb, var(--bg2) 88%, var(--acc, var(--good)));
}

.you-tag {
    flex: none;
    margin-left: 6px;
    font-size: 9.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--bg);
    background: var(--acc, var(--good));
    border-radius: 4px;
    padding: 2px 5px;
}

/* ---- "which team am I", in the header ---- */
.viewer-pick {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--dim);
}

    .viewer-pick select {
        background: var(--bg3);
        border: 1px solid var(--line);
        border-radius: 6px;
        color: var(--tx);
        font: inherit;
        font-size: 12px;
        padding: 5px 8px;
        max-width: 210px;
        cursor: pointer;
    }

        .viewer-pick select:hover {
            border-color: var(--dim2);
        }

.rslots {
    margin-top: 8px;
}

.rslot {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 34px 72px;
    gap: 7px;
    align-items: center;
    min-height: 27px;
    width: 100%;
    padding: 2px 0;
    background: none;
    border: 0;
    border-top: 1px solid #171e29;
    color: inherit;
    font: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

    .rslot.plain {
        cursor: default;
    }

    .rslot:not(.plain):hover .rs-name {
        color: var(--acc);
    }

    /* the row-level mirror of .row.hit's green treatment, in red */
    .rslot.viol {
        background: #2a141480;
        box-shadow: inset 2px 0 0 var(--bad);
    }

    .rslot.mute {
        opacity: .55;
    }

.rs-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rs-slotlab {
    font-size: 9px;
    font-style: normal;
    color: var(--dim2);
    letter-spacing: .5px;
    margin-left: 5px;
}

.rs-team {
    color: var(--dim2);
    font-size: 11px;
}

/* a verdict about the whole roster rather than one player on it */
.rcheck {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 4px 0 0;
    font-size: 11px;
    color: var(--dim);
}

    .rcheck span {
        min-width: 0;
    }

/* ── draft tracker ─────────────────────────────────────────────────────── */

.rs-jersey {
    font-size: 9px;
    font-style: normal;
    color: var(--dim2);
    margin-left: 5px;
}

.rs-slot {
    font-size: 10px;
    color: var(--dim2);
    font-variant-numeric: tabular-nums;
    min-width: 30px;
}

.dstatus {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    color: var(--dim);
}

.dstatus-state {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 10px;
    color: var(--dim2);
}

    .dstatus-state.live {
        color: var(--bad, #e05252);
    }

.dstatus-pick b,
.dstatus-meta b {
    color: var(--fg);
}

.dstatus-meta {
    margin-left: auto;
    color: var(--dim2);
}

/* the dot that says a draft is actually running right now */
.dlive {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bad, #e05252);
    animation: dpulse 1.4s ease-in-out infinite;
}

@keyframes dpulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .25; }
}

.tab-live {
    margin-left: 6px;
    font-size: 9px;
    letter-spacing: .08em;
    padding: 1px 4px;
    border-radius: 3px;
    background: var(--bad, #e05252);
    color: #fff;
}

.dbody {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.dticker {
    position: sticky;
    top: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px;
    background: var(--bg2);
}

    .dticker h3 {
        margin: 0 0 6px;
        font-size: 11px;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--dim2);
    }

    .dticker .rslots {
        max-height: 70vh;
        overflow-y: auto;
    }

/* the running numbers a dynamic shtick has to watch */
.dmeter {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 12px;
    padding: 5px 0 0;
    font-size: 10px;
    color: var(--dim);
}

    .dmeter b {
        color: var(--fg);
    }

    .dmeter .over b {
        color: var(--bad, #e05252);
    }

    .dmeter .unk {
        color: var(--warn, #d8a657);
    }

@media (max-width: 900px) {
    .dbody {
        grid-template-columns: minmax(0, 1fr);
    }

    .dticker {
        position: static;
    }
}

.rs-chip {
    text-align: right;
}

.rs-val {
    color: var(--dim);
    font-size: 11px;
    text-align: right;
}

/* ============================================================ trade helper */
.th-pickers {
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding: 12px 14px;
}

.picker {
    flex: 1;
    min-width: 0;
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg3);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 10px;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

    .picker:hover {
        border-color: var(--dim2);
    }

    .picker.empty {
        border-style: dashed;
        color: var(--dim2);
        justify-content: center;
    }

    .picker .mgr-ava {
        width: 28px;
        height: 28px;
    }

.picker-info {
    min-width: 0;
}

    .picker-info b {
        display: block;
        font-size: 12.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .picker-info span {
        display: block;
        font-size: 10px;
        color: var(--dim2);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.th-swap {
    flex: none;
    width: 36px;
    background: var(--bg3);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--dim);
    font: inherit;
    font-size: 15px;
    cursor: pointer;
}

    .th-swap:hover {
        color: var(--tx);
        border-color: var(--dim2);
    }

.th-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
    padding: 0 14px 8px;
}

.th-head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 8px;
    padding: 8px 2px 5px;
    background: linear-gradient(to right, var(--bg3), var(--bg) 70%);
    border-bottom: 1px solid #171e29;
    backdrop-filter: blur(3px);
}

    .th-head b {
        text-transform: uppercase;
        letter-spacing: .8px;
        color: var(--acc);
        font-size: 11px;
    }

    .th-head span {
        color: var(--dim2);
        font-size: 10.5px;
    }

.th-none {
    color: var(--dim2);
    font-size: 11.5px;
    font-style: italic;
    padding: 8px 2px;
}

.th-note {
    padding: 8px 2px 0;
    color: var(--dim2);
    font-size: 10.5px;
    line-height: 1.5;
}

.trow {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 34px 44px 62px;
    gap: 7px;
    align-items: center;
    min-height: 27px;
    width: 100%;
    padding: 2px 0;
    background: none;
    border: 0;
    border-top: 1px solid #171e29;
    color: inherit;
    font: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

    .trow.plain {
        cursor: default;
    }

    .trow:not(.plain):hover .rs-name {
        color: var(--acc);
    }

.fixes {
    font-size: 9px;
    font-style: normal;
    color: var(--acc);
    background: var(--acc-dim);
    border-radius: 3px;
    padding: 1px 4px;
    margin-left: 5px;
    white-space: nowrap;
    flex: none;
}

.swaps {
    padding: 4px 14px 16px;
}

.swap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr) 52px;
    gap: 8px;
    align-items: center;
    border-top: 1px solid #171e29;
    padding: 6px 0;
    font-size: 12px;
}

/* what makes the pair legal when neither player would be on his own */
.swap-note {
    grid-column: 1 / -1;
    font-size: 10px;
    color: var(--dim2);
}

.swap-side {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

    .swap-side b {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 600;
    }

    .swap-side span {
        color: var(--dim2);
        font-size: 10.5px;
        flex: none;
    }

.swap-x {
    text-align: center;
    color: var(--dim2);
}

.delta {
    font-size: 10px;
    color: var(--dim2);
    text-align: right;
}

.pick-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    background: none;
    border: 0;
    border-top: 1px solid #171e29;
    color: inherit;
    font: inherit;
    text-align: left;
    padding: 6px 2px;
    cursor: pointer;
}

    .pick-row:first-of-type {
        border-top: 0;
    }

    .pick-row:hover {
        background: var(--bg3);
    }

    .pick-row.off {
        opacity: .4;
        cursor: default;
    }

    .pick-row .mgr-ava {
        width: 28px;
        height: 28px;
    }

.pick-info {
    min-width: 0;
    flex: 1;
}

    .pick-info b {
        display: block;
        font-size: 12.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .pick-info span {
        display: block;
        font-size: 10.5px;
        color: var(--dim2);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.pick-rec {
    color: var(--dim);
    font-size: 11px;
    flex: none;
}

/* ============================================================ narrow */

/* drawer scrim and bottom bar exist only below the breakpoints */
.scrim {
    display: none;
}

.mobile-bar {
    display: none;
}

@media (max-width: 1460px) {
    .body {
        grid-template-columns: 268px minmax(0, 1fr) 330px;
    }

    /* drop College first — it is the widest column carrying the least signal */
    .grid-head, .row {
        grid-template-columns:
            42px minmax(110px, 1.7fr) 48px 38px 36px 36px 40px 36px 28px
            0 84px 36px 30px 40px 42px 34px;
        gap: 6px;
    }

    .c-col {
        display: none;
    }

    /* four position columns get cramped before the single-position tabs do */
    .crow {
        grid-template-columns: 18px minmax(0, 1fr) 24px 20px;
    }

    .c-tm {
        display: none;
    }

    .stable-head, .srow {
        grid-template-columns: 148px minmax(0, 1fr);
        gap: 10px;
    }
}

/* ---- the analysis panel becomes a slide-in drawer; a bottom bar opens it ---- */
@media (max-width: 1100px) {
    .body {
        grid-template-columns: 240px minmax(0, 1fr);
        position: relative;
        overflow: hidden;
    }

    .panel {
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        z-index: 40;
        width: min(88vw, 360px);
        transform: translateX(105%);
        visibility: hidden;
        transition: transform .22s ease, visibility 0s .22s;
        box-shadow: -14px 0 34px #000a;
    }

        .panel.open {
            transform: none;
            visibility: visible;
            transition: transform .22s ease;
        }

    .scrim {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 30;
        background: #04070b99;
    }

    .mobile-bar {
        display: flex;
        flex: none;
        border-top: 1px solid var(--line);
        background: var(--bg2);
        padding-bottom: env(safe-area-inset-bottom);
    }

        .mobile-bar button {
            flex: 1;
            min-width: 0;
            background: none;
            border: 0;
            color: var(--dim);
            font: inherit;
            font-size: 12px;
            font-weight: 600;
            padding: 12px 8px;
            cursor: pointer;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

            .mobile-bar button.on {
                color: var(--acc);
                background: var(--bg3);
            }

        /* the rail is still inline at this width, so its toggle stays hidden */
        .mobile-bar .mb-seats {
            display: none;
            border-right: 1px solid var(--line);
        }

    /* thin the grid: drop the measurables, college, and draft-capital columns */
    .grid-head, .row {
        grid-template-columns:
            40px minmax(100px, 1.7fr) 48px 38px 36px 36px 30px 40px 42px 34px;
        gap: 6px;
    }

        .grid-head span:nth-child(n+7):nth-child(-n+12),
        .row span:nth-child(n+7):nth-child(-n+12) {
            display: none;
        }
}

/* ---- the rail becomes a drawer too; the header stacks ---- */
@media (max-width: 900px) {
    .body {
        grid-template-columns: minmax(0, 1fr);
    }

    .rail {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 40;
        width: min(85vw, 320px);
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform .22s ease, visibility 0s .22s;
        box-shadow: 14px 0 34px #000a;
    }

        .rail.open {
            transform: none;
            visibility: visible;
            transition: transform .22s ease;
        }

    .mobile-bar .mb-seats {
        display: block;
    }

    .hdr {
        flex-wrap: wrap;
        gap: 8px 14px;
        padding: 10px 12px;
    }

    .brand p {
        display: none;
    }

    /* the selected-seat card drops to its own full-width row */
    .hdr-sel {
        order: 3;
        flex-basis: 100%;
        padding-top: 0;
    }

    .selcard {
        max-width: none;
    }

    .selcard.empty {
        min-height: 34px;
    }

    .controls {
        /* base .controls is flex:none, which keeps the single-line width and
           overflows a phone — give it its own row so the items can wrap */
        flex: 0 0 100%;
        order: 2;
        flex-wrap: wrap;
        gap: 8px 14px;
    }

    .tabs {
        overflow-x: auto;
        scrollbar-width: none;
    }

        .tabs::-webkit-scrollbar {
            display: none;
        }

        .tabs button {
            flex: none;
            white-space: nowrap;
        }

    .legend {
        display: none;
    }
}

/* ---- phones ---- */
@media (max-width: 700px) {
    /* the board keeps only what a phone can use: slot, player, pos, proj, elig */
    .grid-head, .row {
        grid-template-columns: 36px minmax(0, 1fr) 46px 40px 34px;
        gap: 5px;
        padding: 0 10px;
    }

    .grid-head {
        padding-right: 10px;
    }

        .grid-head span:nth-child(n+4):nth-child(-n+13),
        .row span:nth-child(n+4):nth-child(-n+13),
        .grid-head span:nth-child(15),
        .row span:nth-child(15) {
            display: none;
        }

    /* comfortable tap targets — rows open the player modal */
    .row {
        height: 34px;
    }

    .rows {
        overflow-y: auto;
    }

    /* four position columns become a 2×2 grid */
    .grid4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: minmax(0, 1fr);
    }

    .crow {
        height: 30px;
    }

    /* seat summary rows stack: name, then variants below */
    .stable-head {
        display: none;
    }

    .srow {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px 10px;
    }

    .srow-vars {
        grid-column: 1 / -1;
    }

    .vchip {
        max-width: none;
    }

    /* modals become bottom sheets */
    .modal-back {
        padding: 0;
        align-items: flex-end;
    }

    .modal, .modal.wide {
        max-width: none;
        max-height: 94%;
        border-radius: 12px 12px 0 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
    }

    .pm-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .pm-seat {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 6px 2px;
    }

    .gloss dl {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .gloss dt {
        text-align: left;
        margin-top: 6px;
    }

        .gloss dt:first-of-type {
            margin-top: 0;
        }

    /* ---- season page: bigger tap targets, lists stack ---- */
    .audit-grid {
        grid-template-columns: minmax(0, 1fr);
        padding: 10px;
        gap: 8px;
    }

    .rslot {
        min-height: 34px;
    }

    .th-pickers {
        padding: 10px;
    }

    .th-cols {
        grid-template-columns: minmax(0, 1fr);
        padding: 0 10px 8px;
    }

    .trow {
        min-height: 34px;
        grid-template-columns: 40px minmax(0, 1fr) 34px 62px;
    }

        .trow .rs-val {
            display: none;
        }

    .swaps {
        padding: 4px 10px 16px;
    }

    .pick-row {
        min-height: 52px;
    }

    .fresh {
        white-space: normal;
    }
}

/* ============================================================ the Mock tab
   The mock is read while you are on the clock, so it gets three panes that
   scroll independently — teams, the board still on the table, and the picks —
   rather than the Draft tab's after-the-fact two columns. */

/* the season body normally scrolls as one page; the mock manages its own panes */
.season-body.flush {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mockbar {
    flex: none;
    padding: 8px 12px;
    background: var(--bg2);
    border-bottom: 1px solid var(--line);
}

.mock-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .mock-input input {
        flex: 1 1 auto;
        max-width: 460px;
        background: var(--bg3);
        border: 1px solid var(--line);
        border-radius: 6px;
        color: var(--tx);
        font: inherit;
        font-size: 12.5px;
        padding: 6px 9px;
    }

        .mock-input input:focus {
            outline: none;
            border-color: var(--acc);
        }

.btn {
    background: var(--bg3);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--tx);
    font: inherit;
    font-size: 12px;
    padding: 6px 12px;
    cursor: pointer;
}

    .btn:hover:not(:disabled) {
        border-color: var(--acc);
        color: var(--acc);
    }

    .btn:disabled {
        opacity: .55;
        cursor: default;
    }

/* ---- loaded: the id becomes a chip, refresh sits at the far right ---- */
.mock-loaded {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.mock-id {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--bg3);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 4px 5px 4px 10px;
    font-size: 12px;
}

    .mock-id code {
        color: var(--dim2);
        font-size: 11px;
    }

.mock-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 4px;
    background: none;
    color: var(--bad);
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

    .mock-x:hover {
        background: var(--bad-dim);
    }

.mock-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--dim);
    font-size: 11.5px;
}

    .mock-meta .sep {
        color: var(--dim2);
    }

.mock-refresh {
    margin-left: auto;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg3);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--dim);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

    .mock-refresh:hover:not(:disabled) {
        color: var(--acc);
        border-color: var(--acc);
    }

    .mock-refresh:disabled {
        opacity: .6;
        cursor: default;
    }

    .mock-refresh .spin {
        display: inline-block;
        animation: mkspin 900ms linear infinite;
    }

@keyframes mkspin {
    to {
        transform: rotate(360deg);
    }
}

.warnbox {
    margin: 8px 0 0;
    color: var(--warn);
}

.empty-hint {
    margin: 18px;
    max-width: 74ch;
    color: var(--dim);
    line-height: 1.55;
}

/* ---- the three panes ---- */
.mock3 {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr) 330px;
    gap: 1px;
    background: var(--line);
}

.mkteams, .mkpicks {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    background: var(--bg2);
}

.mkboard {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    background: var(--bg);
}

.mkcol-head {
    flex: none;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
}

    .mkcol-head h3 {
        margin: 0;
        font-size: 11px;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--dim2);
    }

    .mkcol-head span {
        font-size: 10.5px;
        color: var(--dim2);
    }

/* ---- left: teams ---- */
.mkteam-list {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #2c3646 transparent;
}

.mkteam {
    padding: 7px 9px;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
}

    .mkteam.flag {
        border-left-color: var(--bad);
    }

    .mkteam.on {
        background: var(--bg3);
        border-left-color: var(--acc);
    }

    .mkteam.mine {
        background: color-mix(in srgb, var(--bg2) 88%, var(--acc));
    }

.mkteam-head {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.mkteam-slot {
    flex: none;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: var(--bg3);
    color: var(--dim2);
    font-size: 10px;
    font-weight: 700;
}

.mkteam-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mkteam-n {
    flex: none;
    color: var(--dim2);
    font-size: 10.5px;
}

.mkteam-rule {
    margin-top: 4px;
    color: var(--dim2);
    font-size: 10px;
    line-height: 1.35;
}

.mkteam .shtick-pick {
    margin-top: 5px;
}

    .mkteam .shtick-pick select {
        font-size: 10.5px;
        padding: 3px 4px;
    }

/* ---- centre: the board ---- */
.mkboard-bar {
    flex: none;
    display: flex;
    align-items: flex-end;
    gap: 14px;
    padding-right: 10px;
    background: var(--bg2);
    border-bottom: 1px solid var(--line);
}

    .mkboard-bar .tabs {
        flex: 0 1 auto;
        min-width: 0;
        border-bottom: 0;
        background: none;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .mkboard-bar .chk {
        flex: none;
        padding-bottom: 8px;
    }

.mk-teamsel {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 7px;
    font-size: 11px;
    color: var(--dim);
}

    .mk-teamsel select {
        max-width: 260px;
        background: var(--bg3);
        border: 1px solid var(--line);
        border-radius: 5px;
        color: var(--tx);
        font: inherit;
        font-size: 11.5px;
        padding: 4px 6px;
        cursor: pointer;
    }

        .mk-teamsel select:hover {
            border-color: var(--dim2);
        }

.mk-legend {
    flex: none;
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 6px 10px;
    background: var(--bg2);
    border-bottom: 1px solid var(--line);
    color: var(--dim);
    font-size: 11px;
    line-height: 1.45;
}

    .mk-legend .swatch {
        flex: none;
        width: 10px;
        height: 10px;
        border-radius: 2px;
        background: var(--acc-dim);
        border: 1px solid var(--acc);
    }

    .mk-legend.none {
        color: var(--dim2);
    }

/* a player already taken, when they are being shown anyway */
.crow.gone, .mkrow.gone {
    opacity: .34;
    text-decoration: line-through;
    text-decoration-color: var(--dim2);
}

.mkrows {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #2c3646 transparent;
}

.mkrow {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 36px 26px 32px 26px;
    gap: 6px;
    align-items: center;
    width: 100%;
    height: 25px;
    padding: 0 10px;
    border: 0;
    border-bottom: 1px solid #171e29;
    border-left: 2px solid transparent;
    background: none;
    color: inherit;
    font: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

    .mkrow:hover {
        background: var(--bg2);
    }

    .mkrow.hit {
        border-left-color: var(--acc);
        background: var(--acc-dim);
    }

    .mkrow.miss {
        color: var(--dim2);
    }

    .mkrow .c-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mkrow .c-team, .mkrow .c-num {
        color: var(--dim);
        font-size: 11px;
    }

/* ---- right: the picks ---- */
.mkpick-list {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #2c3646 transparent;
}

.mkpick {
    display: grid;
    grid-template-columns: 34px 18px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    width: 100%;
    padding: 6px 9px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

    .mkpick:hover {
        background: var(--bg3);
    }

    .mkpick.viol {
        border-left-color: var(--bad);
    }

.mkp-slot {
    color: var(--acc);
    font-size: 11px;
    font-weight: 700;
    padding-top: 1px;
}

.mkp-mark {
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
}

.mkp-body {
    min-width: 0;
}

.mkp-team {
    display: block;
    font-size: 11px;
    color: var(--dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .mkp-team em {
        font-style: normal;
        color: var(--dim2);
    }

    .mkp-team em.dimmer {
        opacity: .7;
    }

.mkp-player {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    font-size: 12.5px;
    font-weight: 600;
    min-width: 0;
}

.mkp-nfl {
    color: var(--dim2);
    font-size: 10.5px;
    font-weight: 400;
}

/* ---- narrow screens: the panes stack ---- */
/* ---- the pane switcher ----
   Three panes side by side need about 1100px. Below that they used to stack and
   the page scrolled, which put the whole team list between you and the player
   board — on a phone, a screen and a half of scrolling before the thing you
   opened. So below that width they become one pane at a time and this nav
   chooses; above it every pane is on screen and the nav is not rendered. */
.mkpane-nav {
    display: none;
    grid-column: 1 / -1;
    gap: 2px;
    padding: 6px 8px;
    background: var(--bg2);
    border-bottom: 1px solid var(--line);
}

    .mkpane-nav button {
        flex: 1 1 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 7px 6px;
        border: 1px solid var(--line);
        border-radius: 6px;
        background: var(--bg3);
        color: var(--dim);
        font: inherit;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
    }

        .mkpane-nav button.on {
            border-color: var(--acc);
            background: var(--acc-dim);
            color: var(--tx);
        }

        .mkpane-nav button i {
            font-style: normal;
            font-size: 10px;
            font-weight: 700;
            color: var(--dim2);
        }

        .mkpane-nav button.on i {
            color: var(--acc);
        }

/* ---- position filters ----
   The old four-column-per-position view is gone: it spent four times the width
   to say what one ADP-ordered list says, and on a phone that was four columns of
   eighty pixels. These filter that one list instead. */
.posfilter button i {
    margin-left: 5px;
    font-style: normal;
    font-size: 9.5px;
    font-weight: 700;
    color: var(--dim2);
}

.posfilter button.on i {
    color: var(--acc);
}

@media (max-width: 1100px) {
    .mock3 {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr);
        overflow: hidden;
    }

    .mkpane-nav {
        display: flex;
    }

    /* one pane at a time; each already manages its own scrolling */
    .mock3.pane-board .mkteams,
    .mock3.pane-board .mkpicks,
    .mock3.pane-teams .mkboard,
    .mock3.pane-teams .mkpicks,
    .mock3.pane-picks .mkboard,
    .mock3.pane-picks .mkteams {
        display: none;
    }
}

/* ============================================================ the Players tab
   The whole draft pool with ownership and, in the last column, how many of the
   shticks actually being played are allowed to take each player. */

.plbar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 9px 12px;
    background: var(--bg2);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 3;
}

.pl-field {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--dim);
}

    .pl-field select,
    .pl-field input {
        background: var(--bg3);
        border: 1px solid var(--line);
        border-radius: 6px;
        color: var(--tx);
        font: inherit;
        font-size: 12px;
        padding: 5px 8px;
    }

    .pl-field select {
        cursor: pointer;
    }

        .pl-field select:hover {
            border-color: var(--dim2);
        }

    .pl-field input:focus {
        outline: none;
        border-color: var(--acc);
    }

.pl-search {
    position: relative;
}

    .pl-search input {
        width: 200px;
        padding-right: 24px;
    }

.pl-clear {
    position: absolute;
    right: 4px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    background: none;
    color: var(--dim2);
    font-size: 10px;
    cursor: pointer;
}

    .pl-clear:hover {
        color: var(--tx);
        background: var(--line);
    }

.pl-count {
    font-style: normal;
    margin-left: 5px;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--bg3);
    color: var(--dim2);
    font-size: 10px;
}

.pl-note {
    margin-left: auto;
    color: var(--dim2);
    font-size: 10.5px;
    max-width: 42ch;
    line-height: 1.4;
}

    .pl-note b {
        color: var(--dim);
    }

/* ---- the table ---- */
.pl-head, .plrow {
    display: grid;
    /* name · pos · nfl · bye · proj · owner · eligible seats */
    grid-template-columns: minmax(0, 1fr) 58px 42px 32px 44px 150px 62px;
    gap: 10px;
    align-items: center;
    padding: 0 14px;
}

.pl-head {
    height: 26px;
    position: sticky;
    top: 41px;
    z-index: 2;
    background: var(--bg2);
    border-bottom: 1px solid var(--line);
    color: var(--dim2);
    font-size: 9.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.pl-rows {
    padding-bottom: 20px;
}

.plrow {
    width: 100%;
    height: 27px;
    border: 0;
    border-bottom: 1px solid #171e29;
    border-left: 2px solid transparent;
    background: none;
    color: inherit;
    font: inherit;
    font-size: 12.5px;
    text-align: left;
    cursor: pointer;
}

    .plrow:hover {
        background: var(--bg2);
    }

    .plrow.free {
        border-left-color: var(--acc);
    }

    .plrow .c-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .plrow .c-team, .plrow .c-num {
        color: var(--dim);
        font-size: 11.5px;
    }

    .plrow .c-own {
        color: var(--dim);
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.pl-free {
    font-style: normal;
    color: var(--acc);
    opacity: .85;
}

/* nobody in the league may take him — worth seeing at a glance */
.c-elig .e-none {
    background: var(--bad-dim);
    border-color: var(--bad);
    color: var(--bad);
}

.c-elig .e-maybe {
    margin-left: 3px;
    font-style: normal;
    color: var(--dim2);
    font-size: 9.5px;
}

@media (max-width: 900px) {
    .pl-head, .plrow {
        grid-template-columns: minmax(0, 1fr) 52px 38px 40px 56px;
    }

        .pl-head .c-num:first-of-type,
        .plrow .c-num:first-of-type,
        .pl-head .c-own,
        .plrow .c-own {
            display: none;
        }

    .pl-note {
        display: none;
    }

    .pl-search input {
        width: 140px;
    }
}

/* ---- mock toolbar: on the clock, then the four picks behind ---- */
.onclock {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

    .onclock::-webkit-scrollbar {
        display: none;
    }

.oc {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    flex: none;
    max-width: 150px;
    padding: 3px 7px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--bg3);
    color: var(--dim);
    font-size: 11px;
}

    .oc b {
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* the one actually on the clock */
    .oc.now {
        border-color: var(--acc);
        background: var(--acc-dim);
        color: var(--tx);
    }

    .oc.done {
        color: var(--dim2);
        font-style: italic;
    }

.oc-slot {
    font-style: normal;
    color: var(--dim2);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .03em;
}

.oc.now .oc-slot {
    color: var(--acc);
}

.mock-fetched {
    margin-left: auto;
    color: var(--dim2);
    font-size: 11px;
    white-space: nowrap;
}

/* fetched already pushes to the right, so the button just follows it */
.mock-fetched + .mock-refresh {
    margin-left: 0;
}

/* ============================================ mock tab, second pass
   Column headers on both grids, a column driven by the selected seat's shtick,
   locked shtick pickers once the draft starts, and the viewer's own turn picked
   out of the upcoming queue. */

/* ---- your own turn in the queue ---- */
.oc.mine {
    border-color: var(--warn);
}

    .oc.mine b {
        color: var(--warn);
    }

    .oc.mine.now {
        border-color: var(--warn);
        background: color-mix(in srgb, var(--bg3) 65%, var(--warn));
    }

        .oc.mine.now b, .oc.mine.now .oc-slot {
            color: var(--tx);
        }

.mock-auto {
    font-style: normal;
    margin-right: 5px;
    padding: 1px 4px;
    border-radius: 3px;
    background: var(--acc-dim);
    border: 1px solid var(--acc);
    color: var(--acc);
    font-size: 9px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ---- shticks are fixed once the draft is under way ---- */
.mkteam-locked {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    padding: 3px 6px;
    border: 1px dashed var(--line);
    border-radius: 5px;
    color: var(--dim);
    font-size: 10.5px;
}

    .mkteam-locked i {
        margin-left: auto;
        font-style: normal;
        color: var(--dim2);
        font-size: 9px;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

/* ---- four-column grid: labels pinned above the scroller ---- */
.crow.chead {
    height: 20px;
    position: sticky;
    top: 0;
    /* above the round dividers, which stick to the same edge */
    z-index: 3;
    cursor: default;
    background: var(--bg3);
    border-bottom: 1px solid var(--line);
    color: var(--dim2);
    font-size: 9px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

    .crow.chead:hover {
        background: var(--bg3);
    }

/* The shtick fact rides under the name here rather than in its own column: four
   position columns across this pane leaves ~150px each, and a fifth text column
   crushes the name to nothing. Same widths as without it; the rows just grow. */
.grid4.headed.wide {
    --chead-h: 32px;
}

    .grid4.wide .crow {
        height: 32px;
        align-items: center;
    }

.c-sub {
    display: block;
    margin-top: 1px;
    font-style: normal;
    font-size: 9.5px;
    line-height: 1.15;
    color: var(--acc);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crow.miss .c-sub {
    color: var(--dim2);
}

.crow.chead .c-sub {
    color: var(--acc);
    letter-spacing: .04em;
}

.c-xt {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--acc);
    font-size: 10.5px;
}

.crow.chead .c-xt {
    color: var(--acc);
}

.crow.miss .c-xt {
    color: var(--dim2);
}

/* ---- single-position list: full header, all the bio columns ---- */
.mkrow {
    grid-template-columns: 52px minmax(0, 1fr) 34px 28px 36px 32px 32px minmax(0, 96px) 26px 34px 32px 28px;
}

    /* the shtick column earns its width from the bio columns beside it, not from
       the name — the name is what you are scanning for */
    .mkrow.wide {
        grid-template-columns: 52px minmax(0, 1fr) minmax(0, 78px) 34px 28px 36px 32px 32px minmax(0, 76px) 26px 34px 32px 28px;
    }

.mkhead {
    position: sticky;
    top: 0;
    z-index: 2;
    height: 24px;
    background: var(--bg2);
    border-bottom: 1px solid var(--line);
    color: var(--dim2);
    font-size: 9px;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: default;
}

    .mkhead:hover {
        background: var(--bg2);
    }

    .mkhead .c-xt.on {
        color: var(--acc);
    }

.mkrow .c-adp {
    color: var(--dim);
    font-size: 11px;
    text-align: right;
}

.mkrow.miss .c-adp {
    color: var(--dim2);
}

.mkrow .c-col {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--dim);
    font-size: 10.5px;
}

.mkrow .c-xt.on {
    color: var(--acc);
    font-weight: 600;
}

.mkrow.miss .c-xt.on {
    color: var(--dim2);
    font-weight: 400;
}

/* the seat count reuses the eligibility chip colours */
.mkrow .c-elig .e-none, .crow .c-el .e-none {
    background: var(--bad-dim);
    border-color: var(--bad);
    color: var(--bad);
}


/* Below 1460 the shared .c-col rule hides the College cell. The mock list has to
   drop its track to match, or every cell after College lands one column early —
   the header shifts with it, so it looks aligned while the widths are wrong. */
@media (max-width: 1460px) {
    .mkrow {
        grid-template-columns: 52px minmax(0, 1fr) 34px 28px 36px 32px 32px 26px 34px 32px 28px;
    }

        .mkrow.wide {
            grid-template-columns: 52px minmax(0, 1fr) minmax(0, 78px) 34px 28px 36px 32px 32px 26px 34px 32px 28px;
        }
}

/* Eleven columns do not go into a phone. Height, weight, age, jersey and bye all
   come off — that is what tapping the player opens — and what stays is who he is,
   what the market is charging, what he scores, and, when a seat is selected, the
   one fact his shtick is judged on. Same rule as everywhere else on this board:
   the tracks have to come off with the cells or every later cell lands early. */
@media (max-width: 760px) {
    /* The toolbar is one row of three things that assume a desktop's width; on a
       phone the filters lose every pixel to the team select beside them and end up
       a few pixels wide. Wrapped, the filters get a line of their own. */
    .mkboard-bar {
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 12px;
        padding: 7px 8px;
    }

        .mkboard-bar .tabs {
            flex: 1 0 100%;
            padding: 0;
        }

    /* five chips and their counts, sized to land inside 375px rather than
       relying on the scroller and leaving TE half off the edge */
    .posfilter button {
        padding: 5px 8px;
        font-size: 12px;
    }

        .posfilter button i {
            margin-left: 3px;
        }

        .mkboard-bar .chk {
            padding-bottom: 0;
        }

    .mk-teamsel {
        flex: 1 1 auto;
        min-width: 0;
        margin-left: 0;
        padding-bottom: 0;
    }

        .mk-teamsel select {
            min-width: 0;
            max-width: none;
        }

    .mkrow .c-bio,
    .mkrow .c-elig {
        display: none;
    }

    .mkrow {
        gap: 5px;
        padding: 0 8px;
        grid-template-columns: 46px minmax(0, 1fr) 32px 36px 30px;
    }

        .mkrow.wide {
            grid-template-columns: 46px minmax(0, 1fr) minmax(0, 66px) 32px 36px 30px;
        }
}

/* ============================================================ in-season additions
   Manual roster refresh, the trade on the table, and the Players tab judged for
   one team's shtick. */

/* ---- "refresh rosters now": one fetch every two minutes, league-wide ---- */
.fresh-btn {
    margin-left: 6px;
    width: 22px;
    height: 22px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg3);
    color: var(--dim);
    font: inherit;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
}

    .fresh-btn:hover:not(:disabled) {
        color: var(--tx);
        border-color: var(--dim2);
    }

    .fresh-btn:disabled {
        opacity: .4;
        cursor: default;
    }

/* ---- trade rows: tick · pos · name · team · value · verdict ---- */
.trow {
    grid-template-columns: 22px 40px minmax(0, 1fr) 34px 44px 62px;
}

    /* he can never fit the other shtick — kept visible so the "why" is one hover away */
    .trow.no {
        opacity: .5;
    }

    .trow.picked {
        background: var(--acc-dim);
        box-shadow: inset 2px 0 0 var(--acc);
    }

.trow-pick {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .trow-pick input {
        margin: 0;
        accent-color: var(--acc);
        cursor: pointer;
    }

.trow-name {
    min-width: 0;
    display: flex;
    align-items: center;
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

    .trow-name.plain {
        cursor: default;
    }

    .trow-name:not(.plain):hover .rs-name {
        color: var(--acc);
    }

.th-count {
    margin-left: auto;
}

/* ---- the trade on the table ---- */
.tv {
    margin: 4px 14px 10px;
    padding: 0 12px 10px;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 8px;
}

    .tv .th-head {
        position: static;
        background: none;
        backdrop-filter: none;
        align-items: center;
    }

.tv-overall {
    margin-left: auto;
    font-size: 11px;
    padding: 4px 9px;
}

.tv-clear {
    flex: none;
    width: auto;
    margin: 0;
    padding: 3px 9px;
}

.tv-sides {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}

.tv-side h4 {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 8px 0 4px;
    font-size: 12px;
    font-weight: 600;
}

    .tv-side h4 span {
        color: var(--dim2);
        font-size: 10.5px;
        font-weight: 400;
    }

    .tv-side h4 .st {
        margin-left: auto;
    }

.tv-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 34px 62px;
    gap: 7px;
    align-items: center;
    min-height: 27px;
    border-top: 1px solid #171e29;
    font-size: 12px;
}

.tv-why {
    grid-column: 1 / -1;
    padding-bottom: 4px;
    color: var(--dim2);
    font-size: 10.5px;
    line-height: 1.4;
}

.tv-out {
    padding: 4px 0;
    color: var(--dim2);
    font-size: 10.5px;
}

/* suggestions carry a verdict now, and load onto the table when tapped */
.swap {
    grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr) 52px 54px;
}

    .swap .st {
        justify-self: end;
    }

    .swap.pick {
        cursor: pointer;
    }

        .swap.pick:hover {
            background: var(--bg2);
        }

/* ---- Players tab with a team chosen: + the fact the shtick reads, + the verdict ---- */
.pl-head.team, .plrow.team {
    grid-template-columns: minmax(0, 1fr) 58px 42px 32px 44px 150px 60px 56px 62px;
}

.c-fact {
    color: var(--dim);
    font-size: 11.5px;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.c-fit {
    text-align: right;
}

/* where the chosen roster stands today, so a "7 has to go back" reads against something */
.pl-standing {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 14px;
    padding: 6px 14px;
    background: var(--bg2);
    border-bottom: 1px solid var(--line);
    color: var(--dim);
    font-size: 11px;
}

    .pl-standing .rcheck {
        padding: 0;
    }

@media (max-width: 900px) {
    .trow {
        grid-template-columns: 22px 40px minmax(0, 1fr) 34px 62px;
    }

    .tv {
        margin: 4px 10px 10px;
    }

    .tv-sides {
        grid-template-columns: minmax(0, 1fr);
    }

    .swap {
        grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr) 54px;
    }

        .swap .delta {
            display: none;
        }

    .pl-head.team, .plrow.team {
        grid-template-columns: minmax(0, 1fr) 46px 36px 40px 44px 44px 50px;
    }

    .pl-standing {
        padding: 6px 10px;
    }
}
