/* Home: a single product introduction, a live board and three clear entry points. */
main { width: 100%; }
.muted { color: var(--os-text-faint); }
.home-hero { padding: 76px 0 54px; }
.home-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.home-hero h1 { font-size: clamp(40px, 4.5vw, 62px); line-height: 1.08; font-weight: 600; letter-spacing: -.055em; margin: 20px 0 22px; }
.home-lede { max-width: 440px; font-size: 17px; line-height: 1.75; color: var(--os-text-muted); }
.home-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 16px; }
.home-cta .os-btn { font-size: 13px; padding: 0 16px; }
.home-free { color: var(--os-text-faint); font-size: 12px; }
.home-board { padding: 24px; background: var(--os-surface); }
.home-board-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--os-border); }
.home-board-title { font-size: 16px; font-weight: 600; }
.home-board-sub { color: var(--os-text-faint); font-size: 12px; margin-top: 6px; }
.home-board .os-seg { align-self: start; }
.home-board-mode { display: flex; width: 100%; margin-bottom: 18px; }
.home-board-mode button { flex: 1; }
.home-board .os-seg button { padding: 6px 9px; font-size: 11px; }
.home-board-list { list-style: none; }
.home-board-list li { display: grid; grid-template-columns: 20px 40px minmax(0, 1fr) 60px; gap: 12px; align-items: center; min-height: 57px; border-bottom: 1px solid var(--os-border-soft); }
.home-board-list .rank { font-size: 12px; font-weight: 500; color: var(--os-text-faint); }
.shot { display: block; width: 40px; height: 34px; border-radius: 4px; overflow: hidden; background: var(--os-surface-raised); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.who { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.who strong { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { font-size: 11px; color: var(--os-text-faint); }
.home-board-list .pts { text-align: right; font-size: 19px; font-weight: 500; letter-spacing: -.04em; }
.home-board-foot { display: flex; padding-top: 18px; font-size: 12px; color: var(--os-accent); text-decoration: none; }
.home-board-foot:hover { text-decoration: underline; }
.home-board-list .home-board-empty, .home-board-empty { display: block; color: var(--os-text-muted); font-size: 14px; line-height: 1.7; padding: 32px 0; }
.home-platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding: 22px 0; border-block: 1px solid var(--os-border); color: var(--os-text-muted); font-size: 13px; }
.home-platforms > :first-child { color: var(--os-text-faint); font-size: 12px; margin-right: auto; }
.home-platforms a { margin-left: auto; font-size: 12px; text-decoration: none; color: var(--os-text-faint); }
.home-platforms a:hover { color: var(--os-text); }
.home-tools-section { padding-top: 54px; padding-bottom: 58px; }
.home-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 28px; }
.home-section-head h2 { font-size: 23px; font-weight: 500; letter-spacing: -.035em; }
.home-section-head > span { color: var(--os-text-faint); font-size: 12px; }
.home-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-tool { display: flex; flex-direction: column; padding: 8px 30px; border-left: 1px solid var(--os-border); text-decoration: none; }
.home-tool:first-child { padding-left: 0; border-left: 0; }
.home-tool:last-child { padding-right: 0; }
.home-tool-number { color: var(--os-text-faint); font-size: 10px; font-weight: 500; letter-spacing: .1em; }
.home-tool h3 { display: flex; justify-content: space-between; gap: 8px; font-size: 19px; font-weight: 500; letter-spacing: -.03em; margin: 17px 0 10px; }
.home-tool h3 span { color: var(--os-text-faint); }
.home-tool p { max-width: 270px; color: var(--os-text-muted); font-size: 13px; line-height: 1.7; flex: 1; }
.home-tool-link { margin-top: 20px; font-size: 12px; color: var(--os-accent); }
.home-tool:hover .home-tool-link { text-decoration: underline; text-underline-offset: 4px; }
.home-tool:hover h3 span { color: var(--os-accent); transform: translateX(3px); }
.home-how { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; padding-top: 44px; padding-bottom: 64px; }
.home-how h2 { font-size: clamp(27px, 3vw, 36px); font-weight: 500; letter-spacing: -.045em; margin: 16px 0 20px; line-height: 1.2; }
.home-how p { font-size: 14px; color: var(--os-text-muted); line-height: 1.8; max-width: 450px; margin-bottom: 14px; }
.home-text-link { display: inline-block; font-size: 13px; color: var(--os-accent); text-decoration: none; margin-top: 8px; }
.home-text-link:hover { text-decoration: underline; }
.home-how-card { padding: 24px; }
.how-player { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--os-border); }
.how-player img { width: 52px; height: 40px; object-fit: cover; object-position: top; border-radius: 4px; background: var(--os-surface-raised); }
.how-player strong { display: block; font-size: 14px; font-weight: 500; }
.how-player small { display: flex; align-items: center; gap: 8px; color: var(--os-text-faint); font-size: 11px; margin-top: 6px; }
.how-lines { list-style: none; padding: 8px 0; }
.how-lines li { display: flex; justify-content: space-between; padding: 11px 0; font-size: 13px; color: var(--os-text-muted); }
.how-lines .os-num { color: var(--os-text); }
.how-result { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--os-border); padding-top: 18px; }
.how-result > span:first-child { font-size: 12px; line-height: 1.6; max-width: 150px; color: var(--os-text-muted); }
.how-pts { font-size: 32px; font-weight: 500; letter-spacing: -.04em; }
.how-pts small { color: var(--os-text-faint); font-size: 11px; margin-left: 8px; letter-spacing: 0; }
.home-method-list > div { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--os-border); }
.home-method-list > div > span { color: var(--os-accent); font-size: 12px; padding-top: 3px; }
.home-method-list p { margin: 0; }
.home-method-list strong { display: block; font-weight: 500; color: var(--os-text); }
.home-plus { padding-bottom: 44px; }
.home-plus-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 28px 32px; background: var(--os-surface); border: 1px solid var(--os-border); border-radius: var(--os-r-lg); }
.home-plus-card h2 { font-size: 22px; font-weight: 500; letter-spacing: -.035em; margin: 10px 0; }
.home-plus-card p { color: var(--os-text-muted); font-size: 13px; line-height: 1.7; max-width: 520px; }
.home-plus-cta { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.home-plus-price { font-size: 12px; color: var(--os-text-faint); }
.home-plus-price .os-num { font-size: 26px; color: var(--os-text); letter-spacing: -.04em; }
.home-plus .os-btn { font-size: 13px; }
.home-more { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 24px; font-size: 12px; color: var(--os-text-muted); }
.home-more > span { margin-right: auto; color: var(--os-text-faint); }
.home-more a { text-decoration: none; }
.home-more a:hover { color: var(--os-text); text-decoration: underline; }
@media (max-width: 1000px) {
    .home-hero-grid, .home-how { gap: 32px; }
    .home-hero h1 { font-size: 48px; }
    .home-plus-cta { flex-direction: column; gap: 12px; align-items: flex-end; }
    .home-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
    .home-tool:nth-child(odd) { padding-left: 0; border-left: 0; }
    .home-tool:nth-child(even) { padding-right: 0; }
}
@media (max-width: 760px) {
    .home-hero { padding: 36px 0 28px; }
    .home-hero-grid, .home-how { grid-template-columns: 1fr; gap: 30px; }
    .home-hero h1 { font-size: clamp(38px, 8vw, 52px); margin: 16px 0; }
    .home-lede { font-size: 15px; }
    .home-cta { margin-top: 22px; }
    .home-free { font-size: 11px; }
    .home-board { padding: 20px; }
    .home-platforms { gap: 14px 20px; font-size: 12px; }
    .home-platforms > :first-child { flex: 1 1 100%; }
    .home-platforms a { margin-left: 0; }
    .home-tools-section { padding-block: 36px 20px; }
    .home-section-head { margin-bottom: 20px; }
    .home-section-head h2 { font-size: 21px; }
    .home-section-head > span { display: none; }
    .home-tools { grid-template-columns: 1fr; }
    .home-tool, .home-tool:first-child, .home-tool:last-child { padding: 22px 0; border-left: 0; border-top: 1px solid var(--os-border); }
    .home-tool h3 { margin: 12px 0 8px; }
    .home-tool p { max-width: 100%; }
    .home-tool-link { margin-top: 12px; }
    .home-how { padding-block: 30px 36px; }
    .home-how h2 { font-size: 29px; }
    .home-plus-card { padding: 22px; flex-direction: column; align-items: stretch; gap: 20px; }
    .home-plus-cta { flex-direction: row; justify-content: space-between; align-items: center; }
    .home-more { gap: 16px 24px; }
    .home-more > span { flex-basis: 100%; }
}
@media (max-width: 370px) {
    .home-cta { flex-direction: column; }
    .home-board { padding: 16px; }
    .home-board-list li { gap: 8px; }
    .home-plus-cta { align-items: flex-start; flex-direction: column; }
}

/* ------------------------------------------------------- tool pages (shared) */

.tool-page { padding-top: clamp(28px, 4vw, 48px); padding-bottom: 72px; }
.tool-head { margin-bottom: 22px; }
.tool-head .tool-head-links { margin-top: 10px; font-size: 13.5px; }
.tool-head-links a { color: var(--os-accent); text-decoration: none; }
.tool-head-links a:hover { text-decoration: underline; }
.tool-head h1 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 850; letter-spacing: -0.03em; margin: 12px 0 10px; line-height: 1; }
.tool-head p { color: var(--os-text-muted); font-size: 15.5px; line-height: 1.6; max-width: 700px; }

.lbl { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--os-text-faint); margin-bottom: 6px; }

.league-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    padding: 16px 18px;
    margin-bottom: 18px;
}

.league-bar-main { display: flex; align-items: flex-end; gap: 10px; flex: 1 1 320px; min-width: 0; }
.league-pick { flex: 1; min-width: 0; max-width: 380px; }
.league-bar-settings { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; }
.league-bar-settings.from-league .os-seg[data-seg="teams"] { opacity: .7; pointer-events: none; }
.os-select-sm { height: 38px; font-size: 13.5px; padding: 0 10px; border-radius: 10px; }
.league-bar .os-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 3.5 5 7l3.5-3.5' fill='none' stroke='%23a3b2aa' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }
.league-bar .os-select:not(.os-select-sm) { height: 40px; font-size: 14px; }
.league-bar-settings .os-select-sm { width: auto; min-width: 190px; }
.os-select:disabled { opacity: .75; }

/* ------------------------------------------------------------ trade board */

.trade-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.trade-side { padding: 16px; min-height: 220px; position: relative; }
.trade-side[data-side="get"] { border-color: rgba(184, 239, 192, 0.18); }

.side-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.side-title { font-family: var(--font-display); font-weight: 800; font-size: 19px; margin-bottom: 8px; }
.side-team { max-width: 260px; }
.side-total { text-align: right; flex-shrink: 0; }
.side-total .os-num { display: block; font-size: 30px; font-weight: 850; line-height: 1; }
.side-total small { font-size: 11px; color: var(--os-text-faint); text-transform: uppercase; letter-spacing: .1em; }
.trade-side[data-side="get"] .side-total .os-num { color: var(--os-accent); }

.side-list { list-style: none; display: grid; gap: 6px; margin-bottom: 12px; }
.side-empty { color: var(--os-text-faint); font-size: 14px; padding: 18px 12px; text-align: center; border: 1px dashed var(--os-border-strong); border-radius: var(--os-r-md); }

.prow {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 8px;
    border-radius: var(--os-r-md);
    background: var(--os-bg-deep);
    border: 1px solid var(--os-border-soft);
}

.prow .shot { width: 44px; height: 32px; }
.team-shot { background: var(--os-surface-raised); display: grid !important; place-items: center; }
.team-shot img { width: 26px !important; height: 26px !important; object-fit: contain !important; }
.waiver-shot { display: grid !important; place-items: center; color: var(--os-text-faint); font-weight: 700; }
.prow-who { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.prow-who strong { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.prow-who small { display: flex; align-items: center; gap: 7px; color: var(--os-text-faint); font-size: 12px; white-space: nowrap; overflow: hidden; }
.prow-who small .os-pos { height: 17px; min-width: 28px; font-size: 10px; }
.prow-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.prow-right .val { font-size: 20px; font-weight: 800; }
.prow-right small { font-size: 11px; color: var(--os-text-faint); }
.prow-right .os-num { font-weight: 800; font-size: 17px; }
.prow-x { appearance: none; border: 0; background: none; color: var(--os-text-faint); width: 28px; height: 28px; border-radius: 8px; font-size: 20px; line-height: 1; cursor: pointer; }
.prow-x:hover { color: var(--os-negative); background: rgba(255, 123, 123, 0.1); }

.inj { font-family: var(--font-display); font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 5px; background: rgba(255, 200, 97, 0.16); color: var(--os-warning); letter-spacing: .03em; }
.inj-O, .inj-IR, .inj-PUP, .inj-SUS, .inj-NFI, .inj-D { background: rgba(255, 123, 123, 0.16); color: var(--os-negative); }

.side-add { position: relative; }
.side-add .os-input { height: 44px; }

.search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    list-style: none;
    background: rgba(17, 23, 21, 0.98);
    border: 1px solid var(--os-border-strong);
    border-radius: var(--os-r-md);
    box-shadow: var(--os-shadow);
    padding: 6px;
    z-index: 50;
    display: none;
    max-height: 360px;
    overflow-y: auto;
}

.search-results.open { display: block; }
.search-results li { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--os-r-sm); cursor: pointer; font-size: 14.5px; }
.search-results li.active, .search-results li:hover { background: var(--os-surface-hover); }
.search-results .sr-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-results .sr-meta { color: var(--os-text-faint); font-size: 12.5px; white-space: nowrap; }
.search-results .sr-empty { color: var(--os-text-faint); cursor: default; }

.roster-pick { margin-top: 10px; border-top: 1px solid var(--os-border); padding-top: 10px; }
.roster-pick summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--os-text-muted); padding: 4px 2px; list-style: none; }
.roster-pick summary::-webkit-details-marker { display: none; }
.roster-pick summary::before { content: '+ '; color: var(--os-accent); }
.roster-pick[open] summary::before { content: '\2212  '; }
.roster-pick-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 8px; max-height: 260px; overflow-y: auto; }
.roster-pick-list button {
    appearance: none; width: 100%; display: flex; align-items: center; gap: 8px; padding: 7px 8px;
    border-radius: var(--os-r-sm); border: 1px solid var(--os-border-soft); background: var(--os-bg-deep);
    color: var(--os-text); font: inherit; font-size: 13px; cursor: pointer; text-align: left;
}
.roster-pick-list button:hover { border-color: var(--os-accent); }
.rp-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 5px; align-items: center; }
.rp-val { color: var(--os-text-faint); font-weight: 700; }

.trade-swap { align-self: center; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--os-surface); border: 1px solid var(--os-border-strong); color: var(--os-accent); margin-top: 70px; }
.trade-swap svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- verdict */

.verdict { margin-top: 18px; padding: 22px; position: relative; overflow: hidden; }
.verdict::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .9; }
.verdict.win::before { background: radial-gradient(600px 200px at 0% 0%, rgba(94, 227, 154, 0.12), transparent 70%); }
.verdict.lose::before { background: radial-gradient(600px 200px at 0% 0%, rgba(255, 123, 123, 0.12), transparent 70%); }
.verdict.fair::before { background: radial-gradient(600px 200px at 0% 0%, rgba(255, 200, 97, 0.10), transparent 70%); }
.verdict-top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.verdict-kicker { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--os-text-muted); }
.verdict.win .verdict-kicker { color: var(--os-positive); }
.verdict.lose .verdict-kicker { color: var(--os-negative); }
.verdict.fair .verdict-kicker { color: var(--os-warning); }
.verdict-title { font-size: clamp(24px, 3vw, 34px); font-weight: 600; margin: 6px 0 6px; letter-spacing: -0.02em; }
.verdict.win .verdict-title .os-num { color: var(--os-positive); }
.verdict.lose .verdict-title .os-num { color: var(--os-negative); }
.verdict-sub { color: var(--os-text-muted); font-size: 14.5px; line-height: 1.55; max-width: 620px; }

.balance { position: relative; margin-top: 20px; }
.balance-track { display: flex; height: 12px; border-radius: 12px; overflow: hidden; background: var(--os-bg-deep); gap: 3px; }
.balance-track i { display: block; height: 100%; transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.balance-track i:first-child { background: var(--os-negative); border-radius: 12px 0 0 12px; }
.balance-track i:last-child { background: var(--os-accent); border-radius: 0 12px 12px 0; }
.balance-mid { position: absolute; left: 50%; top: -4px; width: 2px; height: 20px; background: var(--os-text); opacity: .6; border-radius: 2px; }
.balance-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: var(--os-text-faint); }
.balance-labels b { color: var(--os-text); margin-left: 4px; }

.balancers { position: relative; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--os-border); }
.balancer-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bchip {
    appearance: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 6px;
    border-radius: 999px; border: 1px solid var(--os-border-strong); background: var(--os-bg-deep); color: var(--os-text);
    font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.bchip:hover { border-color: var(--os-accent); }
.bchip .os-num { color: var(--os-text-faint); font-weight: 700; }

/* ----------------------------------------------------------------- impact */

.impact { margin-top: 36px; }
.impact-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 850; letter-spacing: -0.02em; }
.impact-head p { color: var(--os-text-faint); font-size: 14px; line-height: 1.6; margin: 8px 0 16px; max-width: 760px; }
.impact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.impact-card { padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.ic-label { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--os-text-faint); }
.ic-delta { font-size: 38px; font-weight: 850; line-height: 1.05; }
.ic-detail { font-size: 13.5px; color: var(--os-text-muted); }

.weekly { margin-top: 12px; padding: 18px; }
.weekly-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; margin-bottom: 14px; }
.weekly-head .muted { font-size: 13px; }
.weekly-chart { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; height: 150px; }
.wk { display: grid; grid-template-rows: 1fr 1fr auto; min-width: 0; border-radius: 6px; }
.wk.po { background: rgba(184, 239, 192, 0.05); }
.wk-half { display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--os-border); }
.wk-half.down { align-items: flex-start; border-bottom: 0; }
.wk-half i { display: block; width: 70%; max-width: 26px; border-radius: 4px 4px 0 0; }
.wk-half i.up { background: var(--os-positive); }
.wk-half.down i { border-radius: 0 0 4px 4px; }
.wk-half i.down { background: var(--os-negative); }
.wk-n { text-align: center; font-size: 11px; color: var(--os-text-faint); padding-top: 4px; font-variant-numeric: tabular-nums; }

.lineup-compare { margin-top: 12px; padding: 18px; }
.lc-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; font-size: 14px; }
.lc-head .muted { font-size: 13px; }
.lc-cols, .lc-row, .lc-total { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; }
.lc-cols { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--os-text-faint); padding: 0 8px 6px; }
.lc-row { padding: 7px 8px; border-radius: 10px; }
.lc-row + .lc-row { border-top: 1px solid var(--os-border-soft); }
.lc-row.changed { background: var(--os-accent-soft); border-color: transparent; }
.lc-cell { display: flex; justify-content: space-between; gap: 8px; min-width: 0; font-size: 14px; }
.lc-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-pts { font-weight: 700; color: var(--os-text-muted); }
.lc-empty { color: var(--os-negative); font-size: 13px; }
.lc-total { padding: 10px 8px 0; margin-top: 6px; border-top: 1px solid var(--os-border-strong); font-weight: 700; }
.lc-total .os-num { text-align: right; font-size: 18px; }
.lc-notes { margin-top: 12px; font-size: 13.5px; color: var(--os-text-muted); line-height: 1.6; }

.partner { margin-top: 12px; padding: 18px; }
.pt-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.pt-read { color: var(--os-text-muted); font-size: 14px; }
.pt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pt-grid > div { display: flex; flex-direction: column; gap: 4px; }
.pt-grid .os-num { font-size: 26px; font-weight: 850; }

.impact-teaser { margin-top: 18px; padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--os-surface); }
.impact-teaser strong { font-size: 17px; }
.impact-teaser p { color: var(--os-text-muted); font-size: 14px; line-height: 1.55; margin-top: 4px; max-width: 640px; }

.method { margin-top: 36px; }
.method details { border: 1px solid var(--os-border); border-radius: var(--os-r-lg); background: var(--os-surface); }
.method summary { cursor: pointer; padding: 16px 18px; font-weight: 650; list-style: none; display: flex; justify-content: space-between; }
.method summary::-webkit-details-marker { display: none; }
.method summary::after { content: '+'; color: var(--os-accent); font-size: 20px; line-height: 1; }
.method details[open] summary::after { content: '\2212'; }
.method-body { padding: 0 18px 18px; display: grid; gap: 12px; }
.method-body p { color: var(--os-text-muted); font-size: 14.5px; line-height: 1.65; }
.method-body strong { color: var(--os-text); }

@media (max-width: 860px) {
    .trade-board { grid-template-columns: 1fr; }
    .trade-swap { margin: -4px auto; transform: rotate(90deg); z-index: 2; }
    .impact-grid { grid-template-columns: 1fr; }
    .impact-card { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; }
    .impact-card .ic-detail { flex-basis: 100%; }
    .ic-delta { font-size: 30px; }
    .league-bar-settings .os-select-sm { min-width: 0; width: 100%; }
    .league-bar-settings .set { flex: 1 1 auto; }
    .impact-teaser { flex-direction: column; align-items: flex-start; }
    .impact-teaser .os-btn { width: 100%; }
}

@media (max-width: 520px) {
    .trade-side { padding: 12px; }
    .prow { grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 8px; padding: 7px; }
    .prow .shot { width: 40px; height: 30px; }
    .roster-pick-list { grid-template-columns: 1fr; }
    .verdict { padding: 16px; }
    .verdict-top .os-seg { width: 100%; }
    .verdict-top .os-seg button { flex: 1; padding: 7px 6px; }
    .weekly-chart { height: 120px; gap: 3px; }
    .pt-grid .os-num { font-size: 20px; }
    .pt-grid .ic-label { font-size: 10px; }
    .league-bar-main { flex-wrap: wrap; }
    .league-pick { max-width: none; flex-basis: 100%; }
}

/* ---------------------------------------------------------------- my team */

.team-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.team-head-actions { display: flex; gap: 8px; }
.team-switch { display: inline-flex; align-items: center; gap: 6px; }
.team-switch select { background: var(--os-bg-deep); color: var(--os-text); border: 1px solid var(--os-border-strong); border-radius: 8px; padding: 4px 8px; font: inherit; font-size: 13.5px; }

.league-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 18px; scrollbar-width: none; }
.league-tabs::-webkit-scrollbar { display: none; }
.league-tab {
    appearance: none; flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
    border-radius: 999px; border: 1px solid var(--os-border-strong); background: var(--os-surface); color: var(--os-text-muted);
    font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.league-tab.active { color: var(--os-text); border-color: var(--os-accent); background: var(--os-accent-soft); }
.league-tab.ghost { border-style: dashed; color: var(--os-text-faint); }
.league-tab.ghost:hover { color: var(--os-negative); border-color: var(--os-negative); }

.pdot { width: 8px; height: 8px; border-radius: 50%; background: var(--os-text-faint); display: inline-block; flex-shrink: 0; }
.pdot.sleeper { background: #7ef0ff; }
.pdot.espn { background: #ff4f4f; }
.pdot.ff { background: #ffb13b; }
.pdot.mfl { background: #6f8cff; }
.pdot.yahoo { background: #a86bff; }
.pdot.manual { background: var(--os-accent); }

.connect { padding: clamp(18px, 3vw, 28px); margin-bottom: 24px; }
.connect-head h2 { font-size: 26px; font-weight: 850; }
.connect-head p { color: var(--os-text-faint); font-size: 14px; margin: 6px 0 18px; }
.provider-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.provider {
    appearance: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 12px;
    border: 1px solid var(--os-border-strong); background: var(--os-bg-deep); color: var(--os-text-muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.provider.active { color: var(--os-text); border-color: var(--os-accent); background: var(--os-accent-soft); }
.provider-form { display: grid; gap: 12px; }
.form-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.form-row > label { flex: 1 1 240px; min-width: 0; }
.form-row > label.narrow { flex: 0 0 110px; }
.form-row.end { justify-content: space-between; align-items: center; }
.form-hint { color: var(--os-text-faint); font-size: 13.5px; line-height: 1.6; }
.form-note { color: var(--os-text-muted); font-size: 14.5px; line-height: 1.65; }
.os-input.inline { display: inline-block; width: 160px; height: 36px; margin-left: 6px; font-size: 14px; }
.os-textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.linkish { appearance: none; border: 0; background: none; color: var(--os-accent); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; padding: 0; }
.espn-private summary { cursor: pointer; color: var(--os-text-muted); font-size: 14px; font-weight: 600; padding: 4px 0; }
.espn-private[open] { display: grid; gap: 10px; }
.connect-status { margin-top: 14px; font-size: 14.5px; min-height: 1px; }
.connect-status.err { color: var(--os-negative); }
.connect-status.ok { color: var(--os-text); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.pick {
    appearance: none; text-align: left; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
    padding: 12px 14px; border-radius: var(--os-r-md); border: 1px solid var(--os-border-strong); background: var(--os-bg-deep); color: var(--os-text); font: inherit; cursor: pointer;
}
.pick img { grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; }
.pick strong { font-size: 14.5px; grid-column: 2; }
.pick small, .pick .pick-count { grid-column: 2; font-size: 12.5px; color: var(--os-text-faint); }
.pick:hover { border-color: var(--os-accent); }
.pick.loading { opacity: .6; pointer-events: none; }

.team-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.tstat { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.tstat-v { font-size: 34px; font-weight: 850; line-height: 1.05; }
.tstat small { color: var(--os-text-faint); font-size: 12.5px; }
.team-stats .tstat:first-child .tstat-v { color: var(--os-accent); }

.team-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.team-side { display: grid; gap: 14px; }
.team-lineup { padding: 18px; }
.lineup-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.lineup-head strong { font-size: 17px; display: block; }
.lineup-head small { color: var(--os-text-faint); font-size: 12.5px; }
.lineup-total { font-size: 32px; font-weight: 850; color: var(--os-accent); line-height: 1; }
.slots { list-style: none; display: grid; gap: 6px; }
.slot { display: grid; grid-template-columns: 50px minmax(0, 1fr); align-items: center; gap: 8px; }
.slot-tag { min-width: 46px; height: 24px; }
.slot.empty { padding: 10px 0; }
.empty-msg { color: var(--os-negative); font-size: 13.5px; }
.slot.bench .prow { opacity: .82; }
.bench-head { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--os-text-faint); margin: 16px 0 8px; }
.st { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
.st-market { color: var(--os-accent); }
.st-final { color: var(--os-text-muted); }
.st-bye, .st-out, .st-dnp { color: var(--os-negative); }
.calls { display: grid; gap: 8px; margin-bottom: 14px; }
.call { font-size: 13.5px; color: var(--os-text-muted); padding: 10px 12px; border-radius: var(--os-r-md); background: rgba(255, 200, 97, 0.07); border: 1px solid rgba(255, 200, 97, 0.2); }
.call b { color: var(--os-text); }
.call-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--os-warning); margin-right: 6px; }

.card-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.card-head strong { font-size: 16px; }
.card-head small { color: var(--os-text-faint); font-size: 12.5px; }
.card-note { margin-top: 12px; font-size: 13.5px; color: var(--os-text-muted); line-height: 1.55; }
.card-note b { color: var(--os-text); }
.team-strength, .team-weeks { padding: 18px; }
.str-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 52px 54px; gap: 10px; align-items: center; padding: 7px 0; }
.str-bar { position: relative; height: 10px; border-radius: 10px; background: var(--os-bg-deep); }
.str-bar i { position: absolute; top: 0; height: 100%; border-radius: 10px; }
.str-bar i.pos { background: var(--os-positive); }
.str-bar i.neg { background: var(--os-negative); }
.str-mid { position: absolute; left: 50%; top: -3px; width: 2px; height: 16px; background: var(--os-border-strong); }
.str-row .os-num { text-align: right; font-weight: 800; }
.str-depth { font-size: 11.5px; color: var(--os-text-faint); text-align: right; }
.wk-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; height: 110px; }
.wks { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.wks i { width: 100%; max-width: 22px; border-radius: 4px 4px 2px 2px; background: var(--os-accent); }
.wks.po i { background: #769bb9; }
.wks.low i { background: #b98080; }
.wks span { font-size: 10.5px; color: var(--os-text-faint); font-variant-numeric: tabular-nums; }

.team-actions { margin-top: 14px; padding: 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.team-actions p { color: var(--os-text-muted); font-size: 14px; margin-top: 4px; max-width: 620px; line-height: 1.55; }
.team-footnote { margin-top: 14px; color: var(--os-text-faint); font-size: 13px; line-height: 1.6; display: grid; gap: 6px; }

@media (max-width: 960px) {
    .team-grid { grid-template-columns: 1fr; }
    .team-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .tstat { padding: 12px; }
    .tstat-v { font-size: 26px; }
    .team-lineup, .team-strength, .team-weeks { padding: 14px; }
    .slot { grid-template-columns: 42px minmax(0, 1fr); gap: 6px; }
    .slot-tag { min-width: 40px; }
    .team-actions { flex-direction: column; align-items: flex-start; }
    .team-actions .os-btn { width: 100%; }
    .form-row > label.narrow { flex: 1 1 100px; }
    .form-row .os-btn { width: 100%; }
    .os-seg button { padding: 7px 11px; }
}

/* ------------------------------------------------------- trade market bits */

.gap { font-family: var(--font-display); font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; white-space: nowrap; }
.gap-buy { background: rgba(94, 227, 154, 0.14); color: var(--os-positive); }
.gap-sell { background: rgba(255, 200, 97, 0.14); color: var(--os-warning); }
.tv-mini { color: var(--os-text-muted); }
.tm { position: relative; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--os-border); }
.tm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.tm-head .lbl { margin: 0; }
.tm-text { font-size: 14px; color: var(--os-text-muted); }
.tm-text b { color: var(--os-text); }
.tm-track { height: 8px; }
.tm-track i:first-child { background: #bfaa84 !important; }
.tm-track i:last-child { background: #769bb9 !important; }
.tm-note { margin-top: 8px; font-size: 12.5px; color: var(--os-text-faint); line-height: 1.5; }

/* ------------------------------------------------------------ trade values */

.tv-controls { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-end; padding: 16px 18px; margin-bottom: 16px; }
.tv-search { flex: 1 1 200px; min-width: 0; }
.os-input-sm { height: 38px; font-size: 14px; border-radius: 10px; }

.signals { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.signal-card { padding: 18px; }
.signal-card .card-head strong { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.signal-list { list-style: none; display: grid; gap: 6px; }
.signal-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 4px; border-top: 1px solid var(--os-border-soft); }
.signal-list li:first-child { border-top: 0; }
.signal-list .shot { width: 44px; height: 32px; }
.sig-num { display: flex; flex-direction: column; align-items: flex-end; }
.sig-num b { font-size: 18px; }
.sig-num small { font-size: 11px; color: var(--os-text-faint); }

.tv-table { padding: 6px 0; overflow: hidden; }
.tv-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1.6fr) minmax(0, 1.2fr) 70px 64px 90px;
    gap: 12px;
    align-items: center;
    padding: 8px 16px;
    border-top: 1px solid var(--os-border-soft);
}
.tv-headrow { border-top: 0; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--os-text-faint); padding-top: 10px; padding-bottom: 10px; }
.tv-row > :nth-child(n+4) { text-align: right; }
.tv-rank { color: var(--os-text-faint); font-weight: 800; font-size: 15px; }
.tv-who { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; min-width: 0; }
.tv-who .shot { width: 44px; height: 32px; }
.pick-shot { display: grid !important; place-items: center; font-family: var(--font-display); font-weight: 800; color: var(--os-accent); }
.tv-val { display: flex; align-items: center; gap: 10px; }
.tv-val b { font-size: 17px; min-width: 52px; text-align: right; }
.tv-bar { flex: 1; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.tv-bar i { display: block; height: 100%; border-radius: 8px; background: #769bb9; }
.tv-col-trend { font-size: 13px; font-weight: 700; }
.tv-col-n { color: var(--os-text-muted); font-size: 14px; }
.tv-col-mkt { display: flex; flex-direction: column; align-items: flex-end; }
.tv-col-mkt .os-num { font-weight: 800; }
.tv-col-mkt small { font-size: 11px; }
.tv-empty { padding: 36px 20px; text-align: center; color: var(--os-text-muted); font-size: 14.5px; line-height: 1.6; }
.tv-empty strong { color: var(--os-text); display: block; margin-bottom: 4px; }
.tv-foot { margin-top: 12px; font-size: 13px; color: var(--os-text-faint); line-height: 1.6; }

@media (max-width: 860px) {
    .signals { grid-template-columns: 1fr; }
    .tv-row { grid-template-columns: 30px minmax(0, 1fr) 96px 58px; gap: 8px; padding: 8px 10px; }
    .tv-col-trend, .tv-col-n { display: none; }
    .tv-bar { display: none; }
    .tv-val b { font-size: 16px; }
    .tv-who { grid-template-columns: 36px minmax(0, 1fr); gap: 8px; }
    .tv-who .shot { width: 36px; height: 27px; }
    .tv-controls .set { flex: 1 1 auto; }
}
.share-opt { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; color: var(--os-text-faint); line-height: 1.5; cursor: pointer; }
.share-opt input { margin-top: 3px; accent-color: var(--os-accent); }
.share-opt a { color: var(--os-text-muted); }
.tv-headrow > span { font-size: 10.5px !important; color: var(--os-text-faint) !important; font-weight: 700; }
.tv-table.no-mkt .tv-col-mkt { display: none; }
.tv-table.no-mkt .tv-row { grid-template-columns: 44px minmax(0, 1.6fr) minmax(0, 1.2fr) 70px 64px; }
@media (max-width: 860px) { .tv-table.no-mkt .tv-row { grid-template-columns: 30px minmax(0, 1fr) 96px; } }
