/* DM Sans / Archivo Black load async from pages that want them. Do not @import — that blocked first paint ~6s. */
:root {
  /* Snap Kings brand: black / red / white only for chrome. Position colors stay semantic. */
  --bg: #000000;
  --ink: #ffffff;
  --muted: #a3a3a3;
  --gold: #f87171;
  --lime: #ef4444; /* brand accent (kept name for existing selectors) */
  --brand: #ef4444;
  --brand-soft: #f87171;
  --cyan: #f87171;
  --line: #1f1f1f;
  --card: #0f0f0f;
  --qb: #7dd3fc; --rb: #86efac; --wr: #fdba74; --te: #c4b5fd; --dst: #fda4af;
  --tap: 44px; --bot: 56px; --bot-safe: max(12px, env(safe-area-inset-bottom, 0px));
  --shadow: 0 18px 50px rgba(0,0,0,.55);
  --on-brand: #ffffff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; color: var(--ink); font-family: "DM Sans", system-ui, sans-serif; }
body {
  min-height: 100dvh;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(239,68,68,.18), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(248,113,113,.10), transparent 50%),
    radial-gradient(600px 500px at 80% 110%, rgba(239,68,68,.06), transparent 45%),
    var(--bg);
  padding-bottom: calc(var(--bot) + var(--bot-safe) + 12px);
}
a { color: var(--cyan); }
nav.top {
  display: flex; align-items: center; gap: .55rem;
  padding: .6rem .85rem; padding-top: max(.55rem, env(safe-area-inset-top));
  border-bottom: 1px solid var(--line); position: sticky; top: 0;
  background: rgba(0,0,0,.92); backdrop-filter: blur(16px); z-index: 20;
}
nav.top .brand, nav.top b {
  font-family: "Archivo Black", sans-serif; letter-spacing: .08em; font-size: .82rem;
  background: linear-gradient(90deg, #ffffff 0 48%, #ef4444 52% 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-decoration: none; cursor: pointer;
}
nav.top .desk { display: flex; flex-wrap: nowrap; align-items: center; gap: .3rem .55rem; min-width: 0; overflow-x: auto; }
nav.top .lg-menu { position: relative; }
nav.top .lg-menu summary {
  list-style: none; cursor: pointer; font-size: .78rem; font-weight: 800; color: var(--gold);
  padding: .2rem .15rem;
}
nav.top .lg-menu summary::-webkit-details-marker { display: none; }
nav.top .lg-drop {
  position: absolute; top: 100%; left: 0; min-width: 11rem; z-index: 30;
  display: grid; gap: .15rem; padding: .45rem;
  background: #0f0f0f; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow);
}
nav.top .lg-drop a { display: block; padding: .35rem .45rem; }
nav.top .lg-hint { font-size: .72rem; color: var(--muted); font-weight: 700; white-space: nowrap; }
.sheet h4 { margin: .85rem 0 .4rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sheet h4:first-child { margin-top: 0; }
.sheet .tiny { color: var(--muted); margin: 0 0 .8rem; }
body:not(.has-league) .league-only,
body:not(.has-league) .league-only { display: none; }
nav.top .lg-menu { position: relative; }
nav.top .lg-drop {
  position: absolute; top: 100%; left: 0; min-width: 11rem; z-index: 30;
  display: grid; gap: .15rem; padding: .45rem;
  background: #0f0f0f; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow);
}
nav.top .lg-hint { font-size: .72rem; color: var(--muted); font-weight: 700; white-space: nowrap; }
nav.top .more-btn { margin-left: auto; min-height: 40px; }
nav.top .lg-pick {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
nav.top .lg-pick select,
#labLgSelect {
  z-index: 80;
  pointer-events: auto;
}
nav.top .lg-chip-menu { position: relative; min-width: 0; flex: 1 1 auto; max-width: 16rem; }
nav.top .lg-chip {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  padding: .28rem .55rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0f0f0f;
  max-width: 100%;
}
nav.top .lg-chip::-webkit-details-marker { display: none; }
nav.top .lg-chip-menu .lg-drop {
  min-width: min(18rem, 86vw);
  max-height: 60vh;
  overflow: auto;
  z-index: 80;
}
nav.top .lg-chip-menu .lg-drop button {
  display: block; width: 100%; text-align: left;
  min-height: 44px; padding: .45rem .55rem;
  background: transparent; border: 0; color: var(--ink);
  font: inherit; font-weight: 800; cursor: pointer;
  white-space: normal;
}
nav.top .lg-chip-menu .lg-drop button.on { color: var(--lime); }
nav.top .al-bell {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 .55rem; white-space: nowrap;
  color: var(--gold); font-weight: 800; font-size: .72rem;
  text-decoration: none; flex: 0 0 auto;
}
nav.top .lg-pick select {
  font: inherit; font-size: 13px; padding: .28rem .45rem; min-width: 8.5rem; max-width: 46vw;
  background: #0f0f0f; color: var(--ink); border: 1px solid var(--line); border-radius: 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-transform: none;
}
nav.top .desk a { text-decoration: none; font-size: .78rem; font-weight: 800; color: var(--muted); }
nav.top .desk a.on, nav.top .desk a:hover { color: var(--lime); }
nav.top .more-btn {
  margin-left: auto; min-height: 40px; background: var(--lime); color: var(--on-brand); border: 0;
  border-radius: 999px; padding: 0 1rem; font-weight: 800;
}
.game-go {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 .7rem; white-space: nowrap;
  background: var(--gold); color: var(--on-brand); font-weight: 800;
  font-size: .78rem; letter-spacing: 0; text-transform: none;
  text-decoration: none; border-radius: 999px; flex: 0 0 auto;
}
.game-go:hover { filter: brightness(1.08); }
.ros-go {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 0 .7rem; white-space: nowrap;
  background: var(--lime); color: var(--on-brand); font-weight: 800;
  font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  border: 0; border-radius: 999px; flex: 0 0 auto; cursor: pointer;
}
.ros-go:hover { filter: brightness(1.08); }
.ros-go:disabled { opacity: .75; cursor: wait; }
.ros-go.ok { background: var(--gold); }
.ros-go-wide { width: 100%; min-height: 44px; margin: 0 0 .15rem; }
.ros-toast {
  position: fixed; left: 50%; top: max(.7rem, env(safe-area-inset-top));
  transform: translateX(-50%); z-index: 90;
  background: #0f0f0f; border: 1px solid var(--line); color: var(--ink);
  font-size: .78rem; font-weight: 800; padding: .5rem .85rem; border-radius: 999px;
  box-shadow: var(--shadow); max-width: calc(100vw - 1.5rem); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.ros-toast[hidden] { display: none !important; }
nav.bot {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  background: rgba(0,0,0,.96); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  min-height: calc(var(--bot) + var(--bot-safe));
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(239,68,68,.25);
  overscroll-behavior: none;
}
nav.bot a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: var(--tap); min-width: 0; padding: .2rem .05rem .15rem;
  text-decoration: none; color: var(--muted);
  font-size: 11px; font-weight: 800; gap: .1rem; line-height: 1.1;
  pointer-events: auto; touch-action: manipulation; cursor: pointer;
  -webkit-tap-highlight-color: rgba(239,68,68,.28);
}
nav.bot a.on { color: var(--lime); }
nav.bot a span.ico {
  width: 18px; height: 18px; flex: 0 0 18px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
nav.bot a span.ico svg {
  width: 18px; height: 18px; display: block;
  fill: none; stroke: currentColor; stroke-width: 1.85;
  stroke-linecap: round; stroke-linejoin: round;
}
nav.bot a span.ico svg circle { fill: currentColor; stroke: none; }
nav.bot a span.lab {
  font-size: 11px; line-height: 1.1; text-align: center;
  max-width: 100%; overflow-wrap: anywhere; pointer-events: none;
}
#labBotPad {
  display: block; height: calc(var(--bot) + var(--bot-safe));
  pointer-events: none; flex: 0 0 auto;
}
/* Eng ticker / clock dump is not a product headline. Status lives in .lab-foot. */
#bitesBanner, #clockLog, #labTape { display: none !important; }
.lab-foot {
  margin: 1.5rem 0 .2rem;
  padding: 0;
  text-align: center;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.35;
  color: var(--muted);
  opacity: .62;
}
.lab-foot a { color: inherit; text-decoration: none; }
.lab-foot a:hover, .lab-foot a:focus { color: var(--cyan); text-decoration: underline; opacity: 1; }
#labStatusSheet .panel h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
#labStatusSheet .wd-clock {
  max-height: min(52vh, 28rem);
  overflow: auto;
  margin: .6rem 0 0;
}
#labStatusSheet .wd-clock li { color: var(--muted); font-size: .78rem; }
.sheet { display: none; position: fixed; left: 0; right: 0; top: 0;
  bottom: calc(var(--bot) + var(--bot-safe));
  z-index: 50; background: rgba(0,0,0,.55); pointer-events: none; }
.sheet.open { display: block; pointer-events: auto; }
.sheet:not(.open) { display: none !important; visibility: hidden !important; pointer-events: none !important; }
.sheet .panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: #0f0f0f; border-radius: 18px 16px 0 0;
  padding: 1rem 1rem 1rem;
  max-height: min(80vh, calc(100% - .5rem)); overflow: auto; box-shadow: var(--shadow);
}
.sheet .grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.sheet a {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: .9rem .75rem; text-decoration: none; color: inherit; font-weight: 800;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 1.1rem .95rem 7rem; position: relative; z-index: 1; }
.hero {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 22px;
  padding: 1.35rem 1.15rem 1.2rem;
  background: linear-gradient(160deg, rgba(239,68,68,.1), rgba(245,197,24,.05) 40%, transparent);
  box-shadow: var(--shadow); margin-bottom: 1.1rem;
}
.hero h1 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.7rem, 7vw, 3.1rem); line-height: .92; margin: .2rem 0 .55rem;
}
.kicker {
  font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--lime);
}
.sub { color: var(--muted); max-width: 40rem; font-size: 1.02rem; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin-top: 1rem; }
.stat {
  background: rgba(0,0,0,.28); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .65rem;
}
.stat b { display: block; font-size: 1.05rem; color: var(--gold); }
.stat span { font-size: .7rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.grid { display: grid; gap: .7rem; }
.cards { grid-template-columns: 1fr; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.05rem 1rem; text-decoration: none; color: inherit;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { border-color: rgba(239,68,68,.35); }
.card h3 { margin: 0 0 .3rem; font-size: 1.02rem; }
.card p { margin: 0; color: var(--muted); font-size: .88rem; }
.card .tag { font-size: .68rem; font-weight: 800; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .25rem; }
.card details { margin: 0; }
.card summary { list-style: none; cursor: pointer; }
.card summary::-webkit-details-marker { display: none; }
.hosts { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.host {
  cursor: pointer; border: 1px solid var(--line); background: var(--card);
  border-radius: 14px; padding: .85rem .8rem; text-align: left; color: inherit;
  font-weight: 800; min-height: 64px;
}
.host.on { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime); }
.row { display: flex; flex-wrap: wrap; gap: .55rem; align-items: end; margin: .75rem 0; }
label { font-size: .72rem; font-weight: 800; color: var(--muted); display: flex; flex-direction: column; gap: .28rem; flex: 1 1 9.5rem; }
input, select, textarea, button {
  font: inherit; font-size: 16px; background: #0f0f0f; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; padding: .7rem .7rem; width: 100%;
}
input[type="checkbox"], input[type="radio"] {
  width: 1.2rem; min-width: 1.2rem; height: 1.2rem; padding: 0; flex: 0 0 auto;
  accent-color: var(--lime);
}
button { cursor: pointer; font-weight: 800; background: var(--lime); color: var(--on-brand); border: 0; width: auto; padding: .78rem 1.05rem; border-radius: 999px; }
button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -.85rem; padding: 0 .85rem; }
table { width: 100%; min-width: 30rem; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .6rem .45rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; }
.QB { color: var(--qb); } .RB { color: var(--rb); } .WR { color: var(--wr); } .TE { color: var(--te); } .DST { color: var(--dst); }
.rec-banner {
  background: var(--card); border: 1px solid var(--lime); border-radius: 14px;
  padding: .85rem .95rem; margin: .7rem 0 1rem;
}
.rec-banner.warn { border-color: var(--gold); }
.rec-banner b { display: block; margin-bottom: .35rem; }
.rec-banner p { margin: .35rem 0 0; color: var(--muted); font-size: .88rem; }
.tips { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; }
.tips li { margin: .4rem 0; color: var(--muted); }
.kpi {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin: .8rem 0;
}
.kpi div {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .85rem;
}
.kpi strong { display: block; font-size: 1.15rem; color: var(--lime); }
.kpi span { color: var(--muted); }
.tiny { font-size: .78rem; color: var(--muted); }
code { font-size: .85em; color: var(--gold); }
.phone-tip {
  display: block; background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.25);
  border-radius: 14px; padding: .8rem .9rem; margin: 0 0 1rem; font-size: .9rem;
}
.sync-id {
  font-family: ui-monospace, monospace; font-size: 1.05rem; letter-spacing: .08em;
  color: var(--gold); background: #0f0f0f; padding: .7rem; border-radius: 12px; word-break: break-all;
}
@media (min-width: 820px) {
  .cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
  .hosts { grid-template-columns: repeat(4, 1fr); }
  .kpi { grid-template-columns: repeat(4, 1fr); }
  nav.bot { display: none; }
  #labBotPad { display: none; }
  nav.top .more-btn { display: inline-flex; }
  body { padding-bottom: 0; }
  label { flex: 0 1 auto; }
  input, select, textarea { width: auto; min-width: 6.5rem; }
}
@media (max-width: 819px) {
  nav.top {
    display: grid;
    grid-template-columns: auto minmax(7.2rem, 1fr) auto auto auto;
    align-items: center;
    gap: .3rem .35rem;
    padding: .4rem .55rem;
    padding-top: max(.4rem, env(safe-area-inset-top));
  }
  nav.top b, nav.top .brand { font-size: .68rem; letter-spacing: .06em; }
  nav.top .desk,
  nav.top .sites-menu,
  nav.top .ros-go,
  nav.top .acct-go,
  nav.top .lg-pick { display: none; }
  nav.top .lg-chip-menu { max-width: none; min-width: 0; }
  nav.top .game-go { min-height: 44px; padding: 0 .55rem; font-size: .78rem; letter-spacing: 0; text-transform: none; }
  nav.top .al-bell, nav.top .more-btn { min-height: 44px; display: inline-flex; align-items: center; }
  .phone-tip { display: block; }
  .row { flex-direction: row; flex-wrap: wrap; align-items: end; }
  .row label { flex: 1 1 calc(50% - .55rem); min-width: 8.2rem; }
  .row > button, .row > a.host { flex: 1 1 auto; width: auto; min-height: var(--tap); }
  label { flex: 1 1 calc(50% - .55rem); }
  input, select, textarea { width: 100%; }
  button { width: auto; min-height: var(--tap); }
  .stat-row { grid-template-columns: 1fr 1fr 1fr; gap: .4rem; }
  h1 { font-size: 1.55rem; }
  .hero { padding: 1rem; }
  .hero .sub { display: block; font-size: .92rem; }
  .kpi { grid-template-columns: repeat(2, 1fr); }
  .launch { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .tile { min-height: 4.8rem; padding: .75rem .7rem; border-radius: 16px; }
  .tile span { font-size: 1rem; }
  .wrap { padding: .85rem .75rem 2.2rem; }
  .share { grid-template-columns: 5.5rem 1fr 3.2rem; }
  .sbar { grid-template-columns: 1fr 2.2rem; }
  .sbar span { grid-column: 1 / -1; }
  table { min-width: 0; }
  th, td { white-space: nowrap; }
  .table-wrap { margin: 0 -.75rem; padding: 0 .75rem; }
}
.app-title {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2rem, 9vw, 2.6rem);
  margin: .15rem 0 .2rem; line-height: .95;
}
.app-sub { color: var(--muted); margin: 0 0 1rem; }
.install {
  background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3);
  border-radius: 14px; padding: .75rem .85rem; font-size: .88rem; margin: 0 0 .9rem;
}
.launch {
  display: grid; grid-template-columns: 1fr 1fr; gap: .65rem;
}
.tile {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 6.4rem; padding: 1rem .9rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow);
  cursor: pointer; -webkit-tap-highlight-color: rgba(239,68,68,.25);
  position: relative; z-index: 2; pointer-events: auto;
}
.tile span { font-weight: 800; font-size: 1.15rem; }
.tile small { color: var(--muted); margin-top: .2rem; }
.tile-split { padding: .85rem .9rem .7rem; gap: .35rem; }
.tile-split > a { display: flex; flex-direction: column; text-decoration: none; color: inherit; min-height: 44px; justify-content: center; }
.tile-2 {
  margin-top: .15rem;
  font-size: .78rem;
  font-weight: 800;
  color: var(--cyan);
  text-decoration: none;
  min-height: 44px;
  line-height: 1.3;
  display: flex;
  align-items: center;
}
.tile-2:hover, .tile-2:focus { text-decoration: underline; }
button.sim-run {
  font-size: 1.05rem;
  min-height: 48px;
  padding: .85rem 1.4rem;
}
.tile-lime { background: linear-gradient(160deg, rgba(239,68,68,.22), var(--card)); border-color: rgba(239,68,68,.35); }
.tile-gold { background: linear-gradient(160deg, rgba(245,197,24,.2), var(--card)); border-color: rgba(245,197,24,.35); }
.quick { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.quick a {
  color: var(--muted); font-weight: 800; font-size: .85rem; text-decoration: none;
  padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 999px;
}
@media (min-width: 820px) {
  .launch { grid-template-columns: repeat(3, 1fr); }
}
h2.sec { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 1.2rem 0 .45rem; }
.host { display: inline-block; margin: .2rem .3rem .2rem 0; }
tr.mine td { background: rgba(239,68,68,.1); }
.kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .8rem 0; }
.kpi div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .7rem; }
.kpi span { display: block; font-size: .68rem; color: var(--muted); text-transform: uppercase; }
.kpi strong { font-size: 1.2rem; color: var(--lime); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -.4rem; }
.table-wrap table { min-width: 40rem; }
.factors {
  display: grid; grid-template-columns: 1fr; gap: .45rem; margin: .4rem 0 1rem;
}
.factor {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem;
}
.factor b { display: block; font-size: .82rem; }
.factor span { display: block; color: var(--muted); font-size: .78rem; margin-top: .15rem; }
.recs { display: grid; gap: .55rem; margin: .4rem 0 1rem; }
.rec {
  text-align: left; width: 100%; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: .85rem .9rem; color: inherit;
  box-shadow: var(--shadow);
}
.rec .tag { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.rec strong { display: block; font-size: 1.05rem; margin: .15rem 0; }
.rec em { display: block; font-style: normal; color: var(--lime); font-size: .85rem; }
.bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; margin-top: .55rem; }
.bars i { display: block; height: 8px; background: #0f0f0f; border-radius: 99px; position: relative; }
.bars i u { display: block; height: 8px; background: var(--lime); border-radius: 99px; }
.bars small { display: block; font-size: .62rem; color: var(--muted); margin-top: .2rem; font-style: normal; }
.sel-bars { display: grid; gap: .35rem; margin: .5rem 0 1rem; }
.sbar { display: grid; grid-template-columns: 11rem 1fr 2.2rem; gap: .45rem; align-items: center; }
.sbar span { font-size: .75rem; color: var(--muted); }
.sbar b { display: block; height: 8px; background: var(--lime); border-radius: 99px; min-width: 2px; }
.sbar em { font-size: .72rem; color: var(--gold); font-style: normal; text-align: right; }
.need-pills { display: flex; flex-wrap: wrap; gap: .35rem; margin: .4rem 0; }
.need-pills span {
  font-size: .72rem; font-weight: 800; padding: .25rem .55rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
}
.need-pills span.hot { color: var(--on-brand); background: var(--lime); border-color: var(--lime); }
@media (min-width: 820px) {
  .factors { grid-template-columns: 1fr 1fr; }
  .recs { grid-template-columns: 1fr 1fr; }
  .sbar { grid-template-columns: 14rem 1fr 2.2rem; }
}
.commish { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .7rem .85rem; margin: .6rem 0 1rem; }
.commish summary { font-weight: 800; cursor: pointer; }
.hero-card { display: flex; gap: .9rem; align-items: center; margin: .4rem 0 1rem; }
.headshot { width: 96px; height: 96px; border-radius: 18px; object-fit: cover; background: #0f0f0f; border: 1px solid var(--line); }
.mini { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; vertical-align: middle; }
.curve-box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .4rem; }
.pcts { display: flex; flex-wrap: wrap; gap: .6rem; margin: .5rem 0 1rem; font-size: .8rem; color: var(--muted); }
.pcts b { color: var(--gold); }
.share { display: grid; grid-template-columns: 7.5rem 1fr 7rem; gap: .4rem; align-items: center; margin: .35rem 0; font-size: .8rem; }
.share b { display: block; height: 8px; background: var(--lime); border-radius: 99px; min-width: 2px; }
.share em { font-style: normal; color: var(--muted); font-size: .72rem; text-align: right; }
.ws-strip { margin: .4rem 0 1rem; padding: .55rem .65rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.ws-spark-host { display: flex; align-items: flex-end; gap: .6rem; margin: .35rem 0 .45rem; }
.ws-spark { display: block; flex: 0 0 auto; }
.ws-hover { color: var(--muted); }
.ws-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.ws-chip { min-height: 32px; padding: .25rem .55rem; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: .78rem; cursor: pointer; }
.ws-chip.on, .ws-chip:hover { border-color: var(--lime); color: var(--lime); }
.ws-mates { margin: .4rem 0 0; }
a { color: var(--cyan); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th { background: var(--bg); }
th, td { padding: .45rem .4rem; border-bottom: 1px solid var(--line); white-space: nowrap; text-align: left; }
#gbox { transition: opacity .15s ease; }
.grid2 { display: grid; gap: .7rem; margin: .8rem 0 1.2rem; }
@media (min-width: 820px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.card h3 { margin: 0 0 .35rem; font-size: 1.02rem; }
.card p { margin: .25rem 0; color: var(--muted); font-size: .88rem; }
.card b { color: var(--ink); }
svg.field { border-radius: 12px; display: block; border: 1px solid var(--line); }
.rcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .85rem; min-height: 12rem; }
.rcard h3 { margin: .15rem 0 .5rem; }
.kpi.mini { grid-template-columns: repeat(2, 1fr); }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .45rem 0 .35rem; }
.chip {
  font-size: .72rem; font-weight: 800; letter-spacing: .04em;
  padding: .22rem .6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
}
.chip.lime { color: var(--on-brand); background: var(--lime); border-color: var(--lime); }
.chip.ghost { background: transparent; }
h1 { font-family: "Archivo Black", sans-serif; letter-spacing: -.02em; margin: .15rem 0 .4rem; }
.row label:has(input[type=checkbox]) {
  flex-direction: row; align-items: center; gap: .45rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: .45rem .85rem; white-space: nowrap;
}
.row label:has(input[type=checkbox]:checked) { border-color: var(--lime); color: var(--ink); }
.hero-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 1rem; box-shadow: var(--shadow); }
h2.sec { margin-top: 1.6rem; padding-top: .4rem; border-top: 1px solid var(--line); }
table.sortable th[data-k] { cursor: pointer; user-select: none; }
table.sortable th[data-k]:hover { color: var(--lime); }
table.sortable th.on { color: var(--lime); }
table.sortable th.on::after { content: " ▾"; font-size: .7em; }
table.sortable th.on.asc::after { content: " ▴"; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1rem; margin: 1rem 0 1.4rem; }
.filt { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin: .5rem 0 .8rem; }
.filt button { background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; font-weight: 800; font-size: .75rem; }
.filt button.on { background: var(--lime); color: var(--on-brand); border-color: var(--lime); }
@media (min-width: 820px) { .kpi.mini { grid-template-columns: repeat(2, 1fr); } }
.guide { display: grid; gap: .7rem; margin: .4rem 0 1.4rem; }
@media (min-width: 820px) { .guide { grid-template-columns: 1fr 1fr; } }
.guide .card {
  display: block; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: .9rem 1rem; box-shadow: var(--shadow);
}
.guide .card h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.guide .card p { margin: .25rem 0 0; color: var(--muted); font-size: .88rem; }
.guide .card:hover { border-color: rgba(239,68,68,.4); }
.seat-bar {
  display: grid; grid-template-columns: 2.4rem 1fr 5.5rem; gap: .45rem; align-items: center;
  width: 100%; text-align: left; margin: .28rem 0; background: transparent;
  color: inherit; border: 1px solid var(--line); border-radius: 12px; padding: .4rem .55rem;
}
.seat-bar.on { border-color: var(--lime); }
.seat-bar .pair { display: grid; gap: 3px; }
.seat-bar i { display: block; height: 7px; border-radius: 99px; min-width: 2px; }
.seat-bar i.adp { background: var(--gold); }
.seat-bar i.lab { background: var(--lime); }
.seat-bar em { font-style: normal; font-size: .78rem; color: var(--lime); text-align: right; }
.up { color: var(--lime); }
.dn { color: #fda4af; }
.wp-host, .wp-curve {
  position: relative;
  background: linear-gradient(180deg, #0f0f0f 0%, #000000 100%);
  border: 1px solid rgba(56,189,248,.28);
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(14,165,233,.12), 0 18px 40px rgba(14,165,233,.08);
  overflow: hidden;
}
.wp-curve { padding: .55rem .7rem .7rem; }
.wp-head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; margin-bottom: .2rem; }
.wp-kicker { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: #38bdf8; font-weight: 800; }
.wp-head strong { font-size: .82rem; color: #e0f2fe; }
.wp-svg { width: 100%; height: auto; display: block; cursor: crosshair; }
.wp-axis { display: flex; justify-content: space-between; font-size: .72rem; color: #7dd3fc; margin-top: .15rem; font-weight: 700; }
.wp-tip {
  position: absolute; top: 2.1rem; min-width: 9.5rem; pointer-events: none;
  background: #041018; border: 1px solid #38bdf8; border-radius: 10px;
  padding: .4rem .55rem; color: #e0f2fe; font-size: .75rem; z-index: 4;
  box-shadow: 0 8px 24px rgba(14,165,233,.25);
}
.wp-tip b { display: block; font-size: .95rem; color: #7dd3fc; }
.wp-tip span, .wp-tip em { display: block; color: #93a3b8; font-style: normal; }
.wp-tip em { color: #ef4444; font-weight: 800; }
.wp-spark { display: inline-block; vertical-align: middle; }
.wp-grid { display: grid; gap: .7rem; margin: .8rem 0 1.2rem; }
@media (min-width: 820px) { .wp-grid { grid-template-columns: 1fr 1fr; } }
.wp-compare { display: grid; gap: .7rem; }
@media (min-width: 820px) { .wp-compare { grid-template-columns: 1fr 1fr; } }

.tape-cell { min-width: 4.2rem; }
.tape-cell b { display: block; font-size: .78rem; }
.tape-cell i { display: block; height: 4px; margin-top: 3px; background: var(--lime); border-radius: 99px; max-width: 100%; }
.tape-vs { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: .85rem .95rem; margin: .7rem 0 1rem; }
.tape-cmp { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: .45rem; align-items: center; font-size: .78rem; margin: .28rem 0; }
.tape-cmp em { font-style: normal; color: var(--muted); }
.tape-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.4rem, 1fr));
  gap: .4rem;
  margin: .35rem 0 .2rem;
}
.tape-strip > div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .55rem .6rem;
  min-width: 0;
}
.tape-strip span {
  display: block;
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--muted);
}
.tape-strip strong {
  display: block;
  font-size: 1.05rem;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.tape-strip em {
  display: block;
  font-style: normal;
  font-size: .68rem;
  color: var(--muted);
}
.tape-strip div.miss strong { color: var(--muted); font-weight: 600; }
.tape-strip.prof-log { grid-template-columns: 1fr; }
.tape-strip.prof-log > div { min-width: 0; }
.tape-strip.prof-log strong { font-size: .92rem; color: var(--ink); }
@media (min-width: 820px) {
  .tape-strip.prof-log { grid-template-columns: 1fr 1fr; }
}
.wt-row.wt-tape {
  background: rgba(245, 197, 24, .1);
  border: 1px solid rgba(245, 197, 24, .4);
  border-radius: 10px;
  padding: .2rem .4rem;
}
.wt-tape .wt-lab { color: var(--gold, #f87171); }
.tgt-map, .rush-chart { margin: .35rem 0 .8rem; }
.col-opt {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
  min-height: 44px;
}
.col-opt input { accent-color: var(--gold); width: 1rem; height: 1rem; }
.pass-chart {
  margin: .35rem 0 .8rem; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #0f0f0f; max-width: 22rem;
}
.pass-chart svg { display: block; width: 100%; height: auto; }


.cmd-grid { display: grid; gap: .85rem; }
.cmd-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .45rem; margin-top: .55rem; }
.cmd-card {
  display: block; text-decoration: none; color: inherit;
  background: #0f0f0f; border: 1px solid var(--line); border-radius: 12px;
  padding: .65rem .7rem;
}
.cmd-card b { display: block; font-size: .92rem; }
.cmd-card span { display: block; font-size: .72rem; color: var(--muted); margin-top: .15rem; }
.lab-radar, .lab-hbars, .lab-spark { width: 100%; height: auto; display: block; }

.knobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .45rem .55rem; margin: .4rem 0 1rem; }
.knobs label { display: flex; flex-direction: column; gap: .2rem; font-size: .72rem; color: var(--muted); }
body.room-snake .only-auc { display: none !important; }
body.room-auc .only-snake { display: none !important; }
.room-mine { display: flex; flex-wrap: wrap; gap: .35rem; margin: .45rem 0; }
.room-chip { font-size: .72rem; padding: .2rem .5rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.room-chip.you { border-color: var(--lime); color: var(--lime); }
.room-rosters { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: .5rem; margin: 1rem 0 1.5rem; }
.room-rosters article { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .55rem .65rem; }
.room-rosters article.you { border-color: var(--lime); }
.room-rosters b { display: block; font-size: .78rem; margin-bottom: .3rem; }
.room-rosters li { font-size: .72rem; color: var(--muted); list-style: none; }
.room-rosters ul { margin: 0; padding: 0; }
.room-clock { font-weight: 800; }
#botTbl { width: 100%; }
#botTbl th { text-align: left; font-size: .72rem; color: var(--muted); }

button, a, nav.bot a, .tile, .host, .sheet a { touch-action: manipulation; }
.lab-toast {
  position: fixed; left: .75rem; right: .75rem;
  bottom: calc(var(--bot) + var(--bot-safe) + .8rem);
  z-index: 60; display: none;
  background: #0f0f0f; border: 1px solid var(--lime);
  border-radius: 14px; padding: .8rem .95rem; font-weight: 700; font-size: .9rem;
  box-shadow: var(--shadow);
}
.lab-toast.show { display: block; }
.sheet-x {
  width: 100%; margin: 0 0 .7rem; min-height: 44px;
  background: transparent; color: var(--ink); border: 1px solid var(--line);
}
.pair-url {
  font-family: ui-monospace, monospace; font-size: .78rem; word-break: break-all;
  color: var(--gold); background: #0f0f0f; padding: .7rem; border-radius: 12px;
}
@media (max-width: 819px) {
  .table-wrap table { min-width: 36rem; }
  .table-wrap table.phone-stack {
    min-width: 0 !important; width: 100%;
  }
  table.phone-stack thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0);
  }
  table.phone-stack tbody { display: block; }
  table.phone-stack tbody tr {
    display: grid; grid-template-columns: 1fr 1fr; gap: .1rem .7rem;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    padding: .7rem .8rem; margin: 0 0 .5rem;
  }
  table.phone-stack td {
    display: block; white-space: normal; border: 0; padding: .12rem 0;
  }
  table.phone-stack td:first-child {
    grid-column: 1 / -1; font-weight: 800; font-size: 1.02rem;
  }
  table.phone-stack td:not(:first-child)::before {
    content: attr(data-th);
    display: block; color: var(--muted); font-size: .62rem; font-weight: 800;
    letter-spacing: .06em; text-transform: uppercase;
  }
  table.phone-scroll th:nth-child(1),
  table.phone-scroll td:nth-child(1) {
    position: sticky; left: 0; background: #070b12; z-index: 1;
  }
  .filt button { min-height: 40px; }
  .quick a { min-height: 40px; display: inline-flex; align-items: center; }
  .install, .phone-tip { font-size: .84rem; }
  .knobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.view-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 1rem; }
.view-tabs button {
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: .4rem .95rem; font-weight: 800;
}
.view-tabs button.on { background: var(--lime); color: var(--on-brand); border-color: var(--lime); }
b.st-Q, .st-Q { color: #fbbf24; }
b.st-P, .st-P { color: #86efac; }
b.st-IR, .st-IR, b.st-OUT, .st-OUT { color: #fda4af; }
b.st-BYE, .st-BYE { color: var(--muted); }
.call-Start { color: #86efac; font-weight: 800; }
.call-Flex { color: #fbbf24; font-weight: 800; }
.call-Sit, .call-BYE { color: #fda4af; font-weight: 800; }
.wk-legend { display: flex; flex-wrap: wrap; gap: .45rem; margin: .35rem 0 .7rem; }
.wk-legend span { font-size: .78rem; color: var(--muted); }
tr.mine-row td:first-child { box-shadow: inset 3px 0 0 var(--lime); }
.plan-cell { max-width: 14rem; font-size: .75rem; color: var(--muted); }
.sim-bar { height: 7px; background: var(--line); border-radius: 99px; overflow: hidden; margin: .45rem 0 .8rem; }
.sim-bar > i { display: block; height: 100%; width: 0; background: var(--lime); transition: width .15s linear; }
tr.sim-on td { background: rgba(239,68,68,.1); }
.unit-block { margin: 0 0 1.2rem; }
.unit-block h3 { font-size: .82rem; margin: 0 0 .35rem; }
.money-ask {
  position: fixed; left: 0; right: 0; top: 0;
  bottom: calc(var(--bot) + var(--bot-safe));
  z-index: 80; background: rgba(5,8,15,.72);
  display: flex; align-items: flex-end; justify-content: center;
}
.money-ask[hidden] { display: none !important; }
.money-ask-panel {
  position: relative;
  width: min(680px, 100%); max-height: min(92vh, 900px); overflow: auto;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px 18px 0 0; padding: 1.1rem 1.1rem 1.4rem;
  box-shadow: var(--shadow);
}
.money-ask-x {
  position: absolute; top: .55rem; right: .65rem;
  width: 2.25rem; height: 2.25rem; padding: 0;
  border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--ink);
  font-size: 1.35rem; line-height: 1; font-weight: 800; cursor: pointer;
}
.money-ask-x:hover { background: rgba(255,255,255,.08); }
.ma-lines { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ma-lines th, .ma-lines td { padding: .28rem .35rem; text-align: left; }
.ma-lines input.ma-lab { width: min(14rem, 42vw); }
.ma-lines input.ma-amt { width: 5.2rem; }
.ma-lines input.ma-cnt { width: 3.6rem; }
.ma-years { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ma-years th, .ma-years td { padding: .28rem .35rem; text-align: left; }
.ma-years input { width: 5.4rem; }
.money-ask-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
body.money-ask-open { overflow: hidden; }
.lg-card { display: grid; grid-template-columns: 1fr auto; gap: .4rem; align-items: stretch; }
.lg-card .tile { margin: 0; min-height: 5.2rem; }
.lg-side { display: flex; flex-direction: column; gap: .3rem; }
.lg-side button, .lg-side a { min-height: 36px; }
.lg-feats {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: .35rem;
}
.lg-feats a {
  min-height: 36px; display: inline-flex; align-items: center;
  padding: 0 .7rem; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; color: var(--ink); font-size: .78rem; font-weight: 700;
  background: var(--card);
}
.lg-feats a:hover { border-color: var(--lime); color: var(--lime); }
@media (max-width: 819px) {
  .lg-card { grid-template-columns: 1fr; }
  .lg-side { flex-direction: row; flex-wrap: wrap; }
}
.money-go {
  display: flex; align-items: center; justify-content: center;
  min-width: 4.2rem; padding: 0 .7rem; background: var(--gold); color: var(--on-brand);
  font-weight: 800; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; border-radius: 12px;
}
.add-lg-hosts { display: flex; flex-wrap: wrap; gap: .35rem; margin: .45rem 0 .7rem; }
.add-lg-hosts button.on { background: var(--lime); color: var(--on-brand); border-color: var(--lime); }
.add-lg textarea { width: 100%; min-height: 8rem; margin-top: .35rem; }
.chips button.chip { cursor: pointer; }
@media (min-width: 820px) {
  .money-ask { align-items: center; }
  .money-ask-panel { border-radius: 18px; }
}
.cmd-rec {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: .9rem 1rem; margin: .6rem 0 1rem;
}
.cmd-rec h2 { margin: .15rem 0 .4rem; font-size: 1.25rem; }
.wait-grid {
  display: grid; gap: .6rem; margin: 0 0 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.wait-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .7rem .8rem;
}
.wait-card header { font-weight: 800; margin-bottom: .25rem; }
.wait-card ul { margin: .3rem 0 0; padding: 0; list-style: none; }
.wait-card li { display: flex; justify-content: space-between; gap: .5rem; font-size: .85rem; }
.fall-ok { color: #86efac; }
.fall-mid { color: var(--gold); }
.fall-gone { color: #fda4af; }
.draft-scroll, .lineup-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1rem; }
table.draft-board, table.lineup-board { border-collapse: separate; border-spacing: 0; font-size: .78rem; }
table.draft-board th, table.draft-board td,
table.lineup-board th, table.lineup-board td {
  border: 1px solid var(--line); padding: .35rem .45rem; min-width: 6.2rem; vertical-align: top;
}
table.draft-board thead th, table.lineup-board thead th { position: sticky; top: 0; background: #070b12; z-index: 1; }
table.draft-board td small, table.draft-board th i { display: block; color: var(--muted); font-size: .62rem; font-style: normal; }
table.draft-board td b { display: block; }
table.draft-board td.mine, table.draft-board th.mine,
table.lineup-board td.mine, table.lineup-board th.mine { background: rgba(239,68,68,.12); }
table.draft-board td.empty { color: var(--muted); }
.draft-log { margin: 0 0 1.2rem; padding-left: 1.1rem; }
.draft-log li { margin: .2rem 0; }

body.kind-redraft .only-multi,
body.kind-bestball .only-multi { display: none !important; }
body:not(.kind-dynasty) .only-dynasty { display: none !important; }
body.kind-redraft .only-keeper-dynasty,
body.kind-bestball .only-keeper-dynasty { display: none !important; }

@media (min-width: 820px) {
  .sk-news { grid-template-columns: 1fr 1fr; }
  .sk-row { grid-template-columns: 2.4rem 1fr auto auto; }
}

/* Workshare — team volume first, then this player's cut. */
.ws-check {
  display: flex; flex-direction: row; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 700; color: var(--muted);
  margin: .2rem 0 .6rem; flex: 0 0 auto;
}
.ws-check input { width: 1.15rem; min-width: 1.15rem; height: 1.15rem; }
.ws-club {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: .85rem .9rem; margin: 0 0 .7rem;
}
.ws-club header {
  display: flex; flex-wrap: wrap; gap: .35rem .7rem; align-items: baseline;
  margin: 0 0 .55rem;
}
.ws-club header b {
  font-family: "Archivo Black", sans-serif; letter-spacing: .06em; font-size: 1.05rem;
}
.ws-club header span { color: var(--muted); font-size: .78rem; }
.ws-pos { margin: .35rem 0 .7rem; }
.ws-pos h3 {
  margin: 0 0 .35rem; font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); font-weight: 800;
}
.ws-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 2.6rem 4.4rem minmax(3.2rem, 1fr) 3.4rem 5.2rem;
  gap: .35rem .45rem; align-items: center;
  padding: .32rem 0; border-bottom: 1px solid var(--line);
  font-size: .84rem; font-variant-numeric: tabular-nums;
}
.ws-row a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-slot { color: var(--gold); font-weight: 800; font-size: .72rem; }
.ws-role { color: var(--muted); font-size: .72rem; }
.ws-bar {
  display: block; height: 8px; background: #0f0f0f; border-radius: 99px; overflow: hidden; min-width: 0;
}
.ws-bar i { display: block; height: 8px; background: var(--lime); border-radius: 99px; min-width: 0; }
.ws-bar.ws-dual { height: 12px; background: #0f0f0f; position: relative; }
.ws-bar.ws-dual i.ros { height: 7px; background: var(--lime); }
.ws-bar.ws-dual i.w1 { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--gold, #d4a017); opacity: 0.9; }
.ws-pct small { display: block; font-weight: 600; color: var(--muted); font-size: .68rem; }
.ws-pct { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ws-row em { font-style: normal; color: var(--muted); font-size: .75rem; text-align: right; white-space: nowrap; }
.ws-share { min-width: 6.5rem; }
.ws-share b { display: block; font-size: .78rem; margin-top: .12rem; }
.ws-table { min-width: 36rem; }
.ws-table td.ws-share, .ws-table th:nth-child(8) { white-space: nowrap; min-width: 5.5rem; }
@media (max-width: 819px) {
  .ws-row {
    grid-template-columns: minmax(0, 1fr) 2.4rem minmax(2.8rem, .9fr) 3.2rem;
    grid-template-areas:
      "name slot bar pct"
      "name role bar vol";
  }
  .ws-row a { grid-area: name; }
  .ws-slot { grid-area: slot; }
  .ws-role { grid-area: role; }
  .ws-bar { grid-area: bar; }
  .ws-pct { grid-area: pct; }
  .ws-row em { grid-area: vol; text-align: left; }
  .ws-hide { display: none; }
  .ws-table { min-width: 0; }
  .ws-table th:nth-child(n+9), .ws-table td:nth-child(n+9) { display: none; }
}



/* Format + season chrome. Week 1 2026 is live — draft tools are not the front door. */
body:not(.has-league) .league-only { display: none !important; }
body:not(.draft-auction) .only-auction { display: none !important; }
body.draft-auction .hide-auction { display: none !important; }
body.kind-bestball .hide-bestball { display: none !important; }
body:not(.kind-keeper) .only-keeper { display: none !important; }
body:not(.kind-dynasty) .only-dynasty { display: none !important; }
body.mode-inseason .only-predraft { display: none !important; }
body.mode-predraft .only-inseason { display: none !important; }

.mode-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--lime); margin: 0 0 .45rem;
}
body.mode-predraft .mode-pill { color: var(--gold); }
.inseason-note {
  background: #0f0f0f; border: 1px solid var(--lime); border-radius: 14px;
  padding: .7rem .9rem; margin: 0 0 1rem; font-size: .88rem;
}
.inseason-note a { font-weight: 800; }

details.predraft-pack {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: .2rem .85rem .85rem; margin: 1.1rem 0 1.4rem;
}
details.predraft-pack > summary {
  cursor: pointer; font-weight: 800; padding: .75rem 0 .4rem;
  letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; color: var(--muted);
  min-height: 44px; display: flex; align-items: center;
}
details.predraft-pack[open] > summary { color: var(--gold); }
details.predraft-pack .launch { margin-top: .35rem; }

.cmd-row { display: grid; gap: .55rem; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); }
.cmd-card {
  display: flex; flex-direction: column; gap: .25rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: .85rem .9rem; text-decoration: none; color: inherit; min-height: 5.2rem;
}
.cmd-card b { font-size: .95rem; }
.cmd-card span { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.cmd-card.cmd-gold { outline: 1px solid rgba(239,68,68,.45); }
@media (hover: hover) and (pointer: fine) {
  .cmd-card:hover { border-color: var(--lime); }
  .card:hover { border-color: rgba(239,68,68,.35); }
}

.adp-ask { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .8rem .9rem; margin: 0 0 .8rem; }
.adp-btns { display: flex; flex-wrap: wrap; gap: .35rem; }
.rk-tag { display: inline-block; font-size: .58rem; font-weight: 800; letter-spacing: .06em; padding: .06rem .32rem; border-radius: 6px; margin: 0 .12rem 0 0; border: 1px solid var(--line); }
.rk-tag.rk-k { background: #1a2433; color: var(--gold); }
.rk-tag.rk-hype { background: #3a2a10; color: #ffd54f; border-color: #8a6a20; }
.rk-tag.rk-dart { background: #1a1a22; color: #c4b5fd; }
.tags-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }


.ed-clubs { display: flex; flex-wrap: wrap; gap: .28rem; margin: .35rem 0 .7rem; }
.ed-clubs button {
  min-width: 2.55rem; padding: .32rem .4rem; font-size: .7rem; font-weight: 800;
  border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.ed-clubs button.on { background: var(--gold); color: var(--on-brand); border-color: var(--gold); }

.club-tools {
  display: flex; flex-wrap: wrap; gap: .55rem .8rem; align-items: flex-end;
  margin: 0 0 .8rem;
}
.club-toggle { display: flex; gap: .28rem; }
.club-toggle button {
  min-height: 40px; padding: .35rem .7rem; font-weight: 800; font-size: .78rem;
  border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.club-toggle button.on { background: var(--lime); color: var(--on-brand); border-color: var(--lime); }
.club-stat { display: flex; flex-direction: column; gap: .2rem; font-size: .72rem; color: var(--muted); font-weight: 800; min-width: min(100%, 16rem); }
.club-stat input, .club-stat select { font-weight: 700; min-height: 40px; }
.club-chart-host { overflow: auto; padding: .6rem .4rem .8rem; }
.club-svg { display: block; width: 100%; height: auto; min-height: 220px; cursor: crosshair; }
.club-svg path.club-focus { filter: drop-shadow(0 0 2px currentColor); }
.club-weeks {
  display: flex; flex-wrap: wrap; gap: .18rem; margin: 0 0 .55rem;
}
.club-weeks button {
  min-width: 2.35rem; min-height: 36px; padding: .2rem .28rem;
  font-size: .68rem; font-weight: 800; border-radius: 8px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.club-weeks button.on { background: var(--gold); color: var(--on-brand); border-color: var(--gold); }
.club-leg.on { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime); }
.club-tip {
  min-height: 2.6em; color: var(--gold) !important; font-weight: 800;
  font-size: .88rem; margin: 0 0 .45rem; padding: .45rem .6rem;
  background: rgba(245,197,24,.08); border: 1px solid rgba(245,197,24,.28);
  border-radius: 10px;
}
.club-legend { display: flex; flex-wrap: wrap; gap: .35rem; margin: .35rem 0 .8rem; }
.club-leg {
  display: inline-flex; align-items: center; gap: .35rem;
  min-height: 36px; padding: .2rem .55rem; border-radius: 99px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-size: .75rem; font-weight: 800;
}
.club-leg i { width: .7rem; height: .7rem; border-radius: 99px; display: inline-block; }
.club-leg em { font-style: normal; color: var(--muted); font-weight: 700; }
.ed-charts {
  margin: 0 0 .7rem;
}
.ed-charts a {
  display: inline-flex; align-items: center; min-height: 40px;
  font-weight: 800; font-size: .82rem;
}
@media (max-width: 819px) {
  .club-tools { flex-direction: column; align-items: stretch; }
  .club-stat { min-width: 0; }
}
.ed-vol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin: 0 0 .7rem; }
.ed-vol label { display: flex; flex-direction: column; gap: .15rem; font-size: .72rem; color: var(--muted); }
.ed-vol input { font-weight: 800; }
.ed-resid { color: var(--gold) !important; font-weight: 800; }
.wt-panel { margin: 0 0 1.2rem; }
.wt-sliders { display: grid; gap: .28rem; }
.wt-row {
  display: grid; grid-template-columns: 1.4rem 7.6rem 1fr 2.2rem; gap: .4rem;
  align-items: center; font-size: .78rem; color: var(--muted);
}
.wt-row .wt-n { font-weight: 800; color: var(--gold); }
.wt-row .wt-lab { font-weight: 800; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wt-row input[type=range] { width: 100%; accent-color: var(--gold); min-height: 44px; }
.wt-row .wt-val { font-style: normal; font-weight: 800; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.wt-actions { margin-top: .45rem; }
.why-contrib { display: grid; grid-template-columns: 7.2rem 1fr auto; gap: .35rem; align-items: center; }
.why-contrib .why-bar {
  display: block; height: 6px; border-radius: 99px; background: var(--line); position: relative; overflow: hidden;
}
.why-contrib .why-bar::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--gold);
}
.why-sec[data-sec="value3d"] .why-row { cursor: default; }
@media (max-width: 819px) {
  .wt-row { grid-template-columns: 1.2rem 1fr 2rem; }
  .wt-row input[type=range] { grid-column: 1 / -1; }
}
.ed-desk { display: grid; grid-template-columns: 1.12fr .88fr; gap: .75rem; margin: 0 0 1.2rem; }
.ed-off { border-bottom: 1px solid var(--line); padding: .45rem 0 .55rem; display: grid; gap: .28rem; }
.ed-off-h { display: flex; gap: .45rem; align-items: baseline; font-size: .92rem; }
.ed-off-h b { color: var(--muted); font-size: .68rem; letter-spacing: .06em; min-width: 2.4rem; }
.ed-off label { display: grid; grid-template-columns: 3.2rem 1fr 3.1rem; gap: .35rem; align-items: center; font-size: .72rem; color: var(--muted); }
.ed-off label em { font-style: normal; font-weight: 800; color: var(--ink); text-align: right; }
.ed-off .ed-note { grid-template-columns: 3.2rem 1fr; }
.wg-head { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; margin: .35rem 0 .2rem; }
.wg-head b { font-size: .68rem; letter-spacing: .08em; color: var(--gold); }
.wg-score { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: .25rem 0; }
.wg-score button { min-height: var(--tap); min-width: 44px; }
.wg-score button.on { border-color: var(--gold); color: var(--gold); }
.wg-spark-row { display: flex; gap: .5rem; align-items: center; color: var(--cyan); }
.wg-spark { display: block; }
.wg-weeks {
  display: flex; gap: .28rem; overflow-x: auto; padding: .35rem 0 .5rem;
  -webkit-overflow-scrolling: touch;
}
.wg-cell {
  flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: .2rem .35rem;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 8px; display: grid; place-items: center; gap: 0; cursor: pointer;
}
.wg-cell em { font-style: normal; font-size: .58rem; color: var(--muted); letter-spacing: .04em; }
.wg-cell strong { font-size: .78rem; }
.wg-cell.locked { cursor: default; }
.wg-cell.open { border-color: rgba(94,234,212,.35); }
.wg-cell.gold { border-color: var(--gold); color: var(--gold); background: rgba(245,197,24,.12); }
.wg-cell.bye { opacity: .55; }
.wg-detail { margin: .35rem 0 .2rem; display: grid; gap: .35rem; }
.wg-edit { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.wg-edit label { display: grid; gap: .15rem; font-size: .72rem; color: var(--muted); }
.wg-edit input { min-height: var(--tap); }
.wg-why1 { margin-top: .45rem; padding-top: .4rem; border-top: 1px solid var(--line); }
.wg-bites { margin: .2rem 0 0; padding-left: 1.1rem; }
.acc-player { margin-top: .5rem; padding-top: .4rem; border-top: 1px solid var(--line); }
.acc-player table, .acc-club { font-variant-numeric: tabular-nums; }
.acc-w1 { color: var(--ink); }
#accMae { font-weight: 650; }
@media (max-width: 819px) {
  .wg-edit { grid-template-columns: 1fr; }
}

.ed-pane table { font-variant-numeric: tabular-nums; }
.ed-pane tr.ed-on { background: rgba(245,197,24,.12); }
@media (max-width: 819px) {
  .ed-desk { grid-template-columns: 1fr; }
}
.ed-two { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.pipe { display: grid; gap: .55rem; margin: 0 0 1rem; }
.step { background: var(--card, #121820); border: 1px solid var(--line, #243040); border-radius: 12px; padding: .7rem .85rem; }
.step b { display: block; margin-bottom: .2rem; }
.step small { display: block; color: var(--muted, #9aa8bc); }
@media (max-width: 819px) {
  .ed-split, .ed-two { grid-template-columns: 1fr; }
}
.pv-bars { display: flex; flex-direction: column; gap: .35rem; margin: .4rem 0 .7rem; }
.pv-row { display: grid; grid-template-columns: 2.4rem 1fr 3rem; gap: .45rem; align-items: center; }
.pv-track { height: .7rem; background: #0f0f0f; border-radius: 999px; overflow: hidden; }
.pv-track i { display: block; height: 100%; background: var(--lime); border-radius: 999px; }
.pv-pos { font-size: .72rem; font-weight: 800; }
.pv-RB { color: var(--rb); } .pv-WR { color: var(--wr); } .pv-TE { color: var(--te); } .pv-QB { color: var(--qb); }
.pv-picks { display: flex; flex-wrap: wrap; gap: .45rem; }
.pv-picks .rec { min-width: 10rem; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .4rem 0; }
.chips button { min-height: 40px; }
.fade-chip { color: #fda4af; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.sl-chip { color: var(--lime); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }

.take-chip {
  display: inline-block; font-size: .62rem; font-weight: 800; letter-spacing: .04em;
  padding: .08rem .4rem; border-radius: 6px; margin-left: .2rem; vertical-align: middle;
}
.take-start, .take-trust { background: var(--lime); color: var(--on-brand); }
.take-sit { background: #3a1520; color: #fda4af; }
.take-buy { background: #14301a; color: var(--lime); }
.take-sell { background: #3a2410; color: #fbbf24; }
.take-stash { background: #1a2433; color: #93c5fd; }
.take-wire { background: #1a2433; color: var(--gold); }
.take-panic { background: #3a1520; color: #fecaca; }
.use-chip { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.use-chip b { color: var(--ink); }
.use-chip i { font-style: normal; color: var(--gold); font-size: .64rem; margin-left: .2rem; }
.mu-chip { display: inline-block; font-size: .68rem; font-weight: 700; padding: .1rem .4rem; border-radius: 6px; border: 1px solid var(--line); }
.mu-chip.tough { color: #fda4af; }
.mu-chip.soft { color: var(--lime); }
.mu-chip.mid { color: var(--muted); }
.mu-chip.bye { color: var(--gold); }
.week-desk { margin: 0 0 1.2rem; padding: .7rem .8rem .9rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.wd-tabs { display: flex; flex-wrap: wrap; gap: .3rem; margin: .35rem 0 .6rem; }
.wd-tabs button { min-height: 36px; }
.wd-tabs button.on { background: var(--lime); color: var(--on-brand); border-color: transparent; }
.wd-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.wd-list li { font-size: .86rem; line-height: 1.35; }
.wd-add { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; align-items: end; }
.wd-add input, .wd-add select { min-height: 40px; }
.panic-n { color: #fecaca; }
.dst-board { margin: .6rem 0 1rem; }
.wd-who, .wd-wireqb, .wd-clock-box { margin: .8rem 0 0; padding-top: .6rem; border-top: 1px solid var(--line); }
.wd-who h3, .wd-wireqb h3, .wd-clock-box h3, .dst-board h3, .wd-trade h3 {
  margin: 0 0 .35rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold);
}
.wd-vs { display: grid; gap: .6rem; margin-top: .4rem; }
@media (min-width: 720px) { .wd-vs, .wd-trade-grid { grid-template-columns: 1fr 1fr; } }
.wd-trade { margin: .8rem 0 1.1rem; padding: .7rem .8rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.wd-trade-grid { display: grid; gap: .7rem; }
.wd-clock { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.wd-clock li { font-size: .82rem; line-height: 1.4; color: var(--ink); }
.td-holes { margin: .4rem 0 1rem; display: flex; flex-direction: column; gap: .35rem; }

.finder-modes, .finder-horizon { display: flex; flex-wrap: wrap; gap: .35rem; margin: .4rem 0 .7rem; }
.finder-modes button, .finder-horizon button { border-radius: 999px; background: transparent; color: var(--ink); border: 1px solid var(--line); }
.finder-modes button.on, .finder-horizon button.on { background: var(--lime); color: var(--on-brand); border-color: transparent; }
.tf-pos { margin: .35rem 0 .7rem; align-items: end; }
.tf-pos button { min-height: var(--tap); }
body.no-picks .tr-picks,
body.no-picks #shapePick,
body.no-picks .tr-pos.PICK,
body.no-picks [data-id^="k:"] { display: none !important; }
.tf-partners { display: grid; gap: .7rem; margin: .5rem 0 1.2rem; }
@media (min-width: 860px) { .tf-partners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tf-partner {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: .85rem .9rem .9rem; cursor: pointer; text-align: left;
  transition: border-color .15s ease, transform .15s ease;
}
.tf-partner:hover { border-color: rgba(239,68,68,.35); }
.tf-partner.on { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime); }
.tf-partner header { display: flex; flex-wrap: wrap; gap: .4rem .7rem; align-items: center; margin: 0 0 .55rem; }
.tf-rank {
  width: 1.7rem; height: 1.7rem; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  background: #0f0f0f; border: 1px solid var(--line); font-size: .78rem; font-weight: 800; color: var(--gold);
}
.tf-partner header div { min-width: 0; }
.tf-partner header b { display: block; font-size: 1.02rem; line-height: 1.2; }
.tf-partner header span { color: var(--muted); font-size: .78rem; }
.tf-partner header strong { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--lime); font-size: .95rem; }
.tf-col { margin: 0 0 .45rem; }
.tf-col small, .tf-sample small {
  display: block; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 .2rem;
}
.tf-pl-list { list-style: none; margin: 0; padding: 0; }
.tf-pl { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .4rem; padding: .18rem 0; font-size: .88rem; }
.tf-pl em { font-style: normal; font-size: .68rem; color: var(--muted); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.tf-pl.extra em { color: var(--gold); }
.tf-pl b { margin-left: auto; font-variant-numeric: tabular-nums; font-size: .8rem; color: var(--muted); }
.tf-need-line { margin: 0; font-size: .88rem; color: var(--ink); }
.tf-sample {
  display: block; width: 100%; text-align: left; margin: .45rem 0 .35rem;
  background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.28);
  border-radius: 12px; padding: .55rem .65rem; color: inherit;
}
.tf-sample b { display: block; font-size: .92rem; margin: .1rem 0; }
.tf-sample span { font-size: .78rem; color: var(--muted); }
.tiny-btn {
  margin-top: .35rem; min-height: 40px; padding: .4rem .85rem; width: auto;
  background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
}
.pos-eval { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin: .5rem 0 1rem; }
.pos-eval .pe { text-align: center; background: var(--card); border-radius: 12px; padding: .5rem .2rem; border: 1px solid var(--line); }
.pos-eval .pe.hole { border-color: rgba(255,138,128,.45); }
.pos-eval .pe b { display: block; font-size: 1.05rem; }
.pos-eval .pe .ok { color: var(--lime); }
.pos-eval .pe .mid { color: #ffb74d; }
.pos-eval .pe .bad { color: #ff8a80; }
.sw-pill { display: inline-block; border-radius: 8px; padding: .1rem .4rem; font-size: .72rem; font-weight: 800; }
.sw-pill.QB { background: #5b2b36; color: #ffb4bc; }
.sw-pill.RB { background: #1e3d32; color: #ef4444; }
.sw-pill.WR { background: #1c3354; color: #9ecbff; }
.sw-pill.TE { background: #4a3214; color: #ffcc80; }
@media (max-width: 640px) { .pos-eval { grid-template-columns: repeat(2, 1fr); } }

.tf-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: .8rem .9rem; margin: 0 0 .7rem; }
.tf-card .tf-pts { background: #1e3d32; color: var(--lime); font-weight: 800; border-radius: 10px; padding: .45rem .7rem; margin: 0 0 .55rem; }
.tf-card .tf-pts.dn { background: #3a1c1c; color: #ff8a80; }
.tf-names { margin: 0; padding: 0; list-style: none; }
.tf-names li { display: flex; justify-content: space-between; gap: .5rem; padding: .18rem 0; font-size: .92rem; }
.tf-names .plus { color: var(--lime); }
.tf-names .minus { color: #ff8a80; }
.tf-meta { display: flex; justify-content: space-between; gap: .5rem; color: var(--muted); font-size: .78rem; margin: .4rem 0; }
.tf-acts { display: flex; gap: .4rem; flex-wrap: wrap; }

.tr-need { display: flex; flex-wrap: wrap; gap: .35rem; margin: .35rem 0 .8rem; }
.tr-need .chip, .chips .chip {
  display: inline-flex; align-items: center; min-height: 36px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: .25rem .7rem; font-size: .78rem; font-weight: 800; color: var(--ink);
}
.tr-need .chip.ok { border-color: rgba(239,68,68,.4); color: var(--lime); }
.tr-need .chip.hole { border-color: rgba(255,138,128,.45); color: #ff8a80; }
.tr-search { width: 100%; max-width: 28rem; }
.tr-addwrap { position: relative; margin: 0 0 .55rem; }
.tr-add {
  width: 100%; min-height: 44px; padding: .55rem .75rem;
  background: #0f0f0f; color: var(--ink); border: 1px solid var(--line);
  border-radius: 12px; font: inherit; font-size: 1rem;
}
.tr-add:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.tr-hits {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 12;
  background: #0f0f0f; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); max-height: 14rem; overflow: auto; padding: .25rem;
}
.tr-hit {
  display: flex; justify-content: space-between; align-items: baseline; gap: .5rem;
  width: 100%; min-height: 44px; text-align: left; padding: .45rem .55rem;
  background: transparent; color: inherit; border: 0; border-radius: 10px; cursor: pointer;
}
.tr-hit:hover, .tr-hit:focus { background: rgba(239,68,68,.1); }
.tr-hit b { font-size: .92rem; }
.tr-hit span { font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tr-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 44px; padding: .25rem .35rem .25rem .6rem;
  background: #0f0f0f; border: 1px solid var(--line); border-radius: 999px;
  margin: 0 .3rem .3rem 0;
}
.tr-chip-n { display: flex; flex-direction: column; min-width: 0; }
.tr-chip-n b { font-size: .82rem; line-height: 1.15; }
.tr-chip-n small { font-size: .62rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.tr-chip em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--gold); }
.tr-x {
  width: 32px; height: 32px; min-height: 32px; padding: 0; margin: 0;
  border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.tr-x:hover { color: #ff8a80; border-color: rgba(255,138,128,.55); }

.tr-board {
  display: grid; gap: .75rem; grid-template-columns: 1fr; margin: 1rem 0;
}
#minePool, #themPool {
  max-height: 14rem; overflow: auto; -webkit-overflow-scrolling: touch;
}
@media (min-width: 820px) { .tr-board { grid-template-columns: 1fr 1fr; } }
.tr-roster {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: .75rem .8rem 1rem;
}
.tr-roster header { display: flex; flex-wrap: wrap; gap: .25rem .7rem; align-items: baseline; margin: 0 0 .4rem; }
.tr-roster h2 { margin: 0; font-size: 1.05rem; }
.tr-pos {
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin: .75rem 0 .25rem; padding-top: .35rem; border-top: 1px solid var(--line);
}
.tr-pos:first-child { border-top: 0; padding-top: 0; margin-top: .2rem; }
.tr-face { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: #0f0f0f; flex: 0 0 auto; }
.tr-asset {
  display: flex; align-items: center; gap: .55rem; width: 100%; text-align: left;
  background: transparent; color: inherit; border: 1px solid transparent; border-radius: 12px;
  padding: .4rem .45rem; min-height: 48px;
}
.tr-asset:hover { background: rgba(255,255,255,.04); }
.tr-asset.on { border-color: var(--lime); background: rgba(239,68,68,.08); }
.tr-asset.send { border-color: rgba(255,138,128,.55); background: rgba(255,138,128,.08); }
.tr-asset > span { display: flex; flex-direction: column; min-width: 0; }
.tr-asset b { font-size: .9rem; line-height: 1.2; }
.tr-asset .meta { font-size: .72rem; color: var(--muted); }
.tr-asset .wk { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 800; color: var(--gold); font-size: .95rem; text-align: right; }
.tr-asset .wk small { display: block; font-size: .62rem; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.tr-empty { color: var(--muted); font-size: .88rem; margin: .4rem 0; }
.tr-tag { font-size: .65rem; font-weight: 800; letter-spacing: .04em; margin-left: .25rem; }
.st-OUT, .st-IR { color: #ff8a80; }
.st-Q, .st-D { color: #ffb74d; }

.tr-dealbar {
  position: sticky; bottom: calc(var(--bot) + .4rem + env(safe-area-inset-bottom, 0px));
  z-index: 8; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  background: rgba(8,12,20,.96); border: 1px solid var(--line); border-radius: 16px;
  padding: .7rem .8rem; margin: 1rem 0; box-shadow: var(--shadow);
}
@media (min-width: 820px) { .tr-dealbar { bottom: .6rem; } }
.tr-side { min-width: 0; }
.tr-side h2 { margin: 0 0 .35rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; align-items: baseline; }
.tr-side h2 b { font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: var(--gold); }
.tr-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 1rem; }
.tr-actions button { width: auto; min-height: 44px; }
.tr-filters { display: flex; flex-wrap: wrap; gap: .35rem; margin: .4rem 0 .8rem; }
.tr-filters button { background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; width: auto; }
.tr-filters button.on { background: var(--lime); color: var(--on-brand); border-color: transparent; }

.tr-hero {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 1rem .95rem; margin: .6rem 0 1rem;
}
.tr-hero.accept { border-color: rgba(239,68,68,.5); }
.tr-hero.walk { border-color: rgba(255,138,128,.45); }
.tr-hero.counter { border-color: rgba(255,183,77,.45); }
.tr-win { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 .25rem; }
.tr-verdict { font-family: "Archivo Black", sans-serif; font-size: 1.6rem; letter-spacing: .04em; margin: 0 0 .35rem; }
.tr-hero.accept .tr-verdict { color: var(--lime); }
.tr-hero.walk .tr-verdict { color: #ff8a80; }
.tr-hero.counter .tr-verdict { color: #ffb74d; }
.tr-swap { font-size: .95rem; margin: 0 0 .5rem; }
.tr-swap .dir { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 0 .25rem; }
.tr-valbar { display: grid; grid-template-columns: auto 1fr auto; gap: .65rem; align-items: center; margin: .35rem 0 .45rem; }
.tr-val-side { text-align: center; min-width: 4.2rem; }
.tr-val-side span { display: block; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tr-val-side b { font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.tr-val-side.get b { color: var(--lime); }
.tr-val-side.send b { color: #ffb74d; }
.tr-meter { height: 10px; background: #1a2433; border-radius: 99px; overflow: hidden; }
.tr-meter i { display: block; height: 100%; background: linear-gradient(90deg, #ffb74d, var(--lime)); border-radius: 99px; }
.tr-fair { margin: 0 0 .55rem; font-size: .9rem; font-weight: 800; }
.tr-fair.up { color: var(--lime); }
.tr-fair.dn { color: #ff8a80; }
.tr-fair.mid { color: #ffb74d; }
.tr-kpi {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .45rem; margin: .7rem 0;
}
@media (min-width: 720px) { .tr-kpi { grid-template-columns: repeat(3, 1fr); } }
.tr-kpi div { background: #0f0f0f; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .75rem; }
.tr-kpi span { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tr-kpi strong { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; margin-top: .15rem; }
.tr-kpi .up, td.up { color: var(--lime); }
.tr-kpi .dn, td.dn { color: #ff8a80; }
.tr-kpi .mid, td.mid { color: #ffb74d; }
.tr-lens { min-width: 22rem; }
.tr-lens th { width: 40%; }
.tr-lens small { color: var(--muted); font-weight: 800; margin-left: .25rem; }
.tr-flag { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .55rem .7rem; margin: .35rem 0; font-size: .88rem; }
.tr-flag b { margin-right: .4rem; color: var(--gold); }
.tr-offer, .tr-cycle {
  display: block; width: 100%; text-align: left; margin: 0 0 .5rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: .7rem .8rem; color: inherit;
}
.tr-offer b, .tr-cycle b { display: block; margin-bottom: .2rem; }
.tr-offer span { color: var(--muted); font-size: .85rem; }
.tr-offer.accept { border-color: rgba(239,68,68,.4); }
.tr-heat { display: flex; flex-wrap: wrap; gap: .35rem; }
.tr-wk {
  min-width: 3.4rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: .4rem .45rem; text-align: center;
}
.tr-wk .n { display: block; font-size: .65rem; font-weight: 800; color: var(--muted); }
.tr-wk.po { border-color: var(--gold); }
.tr-wk.up b { color: var(--lime); }
.tr-wk.dn b { color: #ff8a80; }
.tr-line .ch { color: var(--lime); font-weight: 800; }
.tr-cycle .flow { display: flex; flex-wrap: wrap; gap: .3rem .5rem; font-size: .85rem; margin-top: .35rem; }
.tr-cycle em { color: var(--muted); font-style: normal; }

.td-split { display: grid; gap: .85rem; margin: .8rem 0 1.2rem; }
@media (min-width: 820px) { .td-split { grid-template-columns: 1.2fr .8fr; } }
.td-roster .tr-asset { pointer-events: none; }
body.trade-desk h1 { font-family: "Archivo Black", sans-serif; letter-spacing: .02em; margin: .15rem 0 .4rem; }
body.trade-desk h2.sec {
  margin: 1.6rem 0 .4rem; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

/* Why this number — human desk */
.why-stack, .why-drawer-body {
  display: grid; gap: .7rem;
}
.why-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .4rem;
}
.why-chips { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: flex-end; }
.why-chip {
  font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 999px; padding: .22rem .55rem; border: 1px solid var(--line);
}
.why-chip.human { background: var(--lime); color: var(--on-brand); border-color: transparent; }
.why-chip.clock { background: #1a2433; color: var(--gold); }
.why-chip.book { color: var(--muted); }
.why-layers {
  display: flex; flex-wrap: wrap; gap: .35rem; margin: .15rem 0 .35rem;
}
.why-chip.machine { background: #122033; color: #7dd3fc; border-color: #1e3a54; }
.why-chip.consensus { background: #1a2030; color: #c4b5fd; border-color: #3b3358; }
.why-chip.mc { background: #10241c; color: var(--lime); border-color: #1e4a38; }
.why-chip.script { background: #1a2433; color: var(--gold); }
.why-chip.tape { background: #241a12; color: #fdba74; }
.why-layer-legend { margin: 0 0 .2rem; }
.pct-chip {
  display: inline-block; font-size: .58rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--gold); border: 1px solid var(--line);
  border-radius: 999px; padding: .04rem .35rem; margin-left: .2rem; vertical-align: middle;
}
.src-chip {
  display: inline-block; font-size: .58rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; border-radius: 999px; padding: .08rem .4rem; margin-left: .15rem;
  border: 1px solid var(--line);
}
.src-chip.src-wp { background: #1a2433; color: var(--gold); }
.src-chip.src-ds { background: #122033; color: #7dd3fc; }
.src-chip.src-lab { background: var(--lime); color: var(--on-brand); border-color: transparent; }
.list-tabs { display: flex; flex-wrap: wrap; gap: .3rem; margin: .35rem 0 .6rem; }
.list-tabs button { min-height: 40px; width: auto; }
.list-tabs button.on { background: var(--lime); color: var(--on-brand); border-color: transparent; }
.list-board { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.list-board li { font-size: .88rem; line-height: 1.4; }
.td-reg tr.plus { background: rgba(239,68,68,.06); }
.td-reg tr.minus { background: rgba(253,164,175,.06); }
.td-tag { font-size: 1.05rem; }
.lg-matrix td.ok { color: var(--lime); font-weight: 800; }
.lg-matrix td.bad { color: #fda4af; font-weight: 800; }
.tf-after { margin: .35rem 0 0; color: var(--muted); }
.tf-pitfall, .tf-pitfall-legend { color: var(--gold); font-weight: 700; }
.why-fold { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.why-sec {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .55rem .65rem;
}
.why-sec h3 {
  margin: 0 0 .35rem; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.why-row {
  display: grid; grid-template-columns: 1fr auto; gap: .15rem .6rem; width: 100%;
  text-align: left; background: transparent; color: inherit; border: 0;
  border-top: 1px solid var(--line); padding: .45rem 0; min-height: 44px; cursor: pointer;
}
.why-row .k { font-size: .78rem; font-weight: 800; }
.why-row .v { font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 800; }
.why-row .s { grid-column: 1 / -1; font-size: .72rem; color: var(--muted); }
.why-row.miss .v { color: var(--muted); font-weight: 600; }
.why-actions { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.why-btn, .why-edit {
  min-height: 40px; padding: .3rem .7rem; width: auto;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: #0f0f0f; color: var(--cyan); border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.why-btn:hover, .why-edit:hover { border-color: var(--lime); color: var(--lime); }
.why-num {
  display: inline-flex; align-items: center; justify-content: flex-end;
  min-height: 36px; padding: 0; margin: 0; width: auto;
  background: transparent; border: 0; color: inherit; font: inherit; font-weight: 800;
  cursor: pointer; text-decoration: underline dotted rgba(245,197,24,.55);
  text-underline-offset: 3px;
}
#kpi [data-why-name],
#kpi [data-why-kpi] { cursor: pointer; }
#kpi [data-why-name]:hover strong,
#kpi [data-why-kpi]:hover strong { color: var(--gold); }
.why-form, .why-edit-box {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .75rem .8rem;
  display: grid; gap: .5rem;
}
.why-knobs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem;
}
@media (min-width: 640px) { .why-knobs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.why-check { display: flex; align-items: center; gap: .4rem; min-height: 44px; font-size: .85rem; }
.why-presets { display: flex; flex-wrap: wrap; gap: .35rem; }
.why-presets button { width: auto; min-height: 40px; }
.why-drawer {
  position: fixed; left: 0; right: 0; top: 0;
  bottom: calc(var(--bot) + var(--bot-safe));
  z-index: 80; background: rgba(5, 8, 15, .72);
  display: grid; place-items: end stretch; padding: .6rem;
}
.why-drawer[hidden] { display: none; }
.why-drawer-card {
  background: #0a1018; border: 1px solid var(--line); border-radius: 18px 18px 12px 12px;
  max-height: min(88dvh, 920px); overflow: auto; padding: .8rem .85rem 1.2rem;
  box-shadow: var(--shadow); width: min(42rem, 100%); margin: 0 auto;
}
.why-x {
  float: right; width: auto; min-height: 40px; margin: 0 0 .4rem .4rem;
  background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 10px;
}
.why-desk { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .7rem .8rem; }
.why-desk h3 { margin: 0 0 .35rem; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.why-q { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.why-q li { font-size: .82rem; color: var(--muted); }
.why-q button { width: auto; min-height: 36px; padding: .2rem .5rem; }
@media (max-width: 520px) {
  .why-row { grid-template-columns: 1fr; }
  .why-drawer { place-items: stretch; padding: 0; }
  .why-drawer-card { border-radius: 0; max-height: 100dvh; }
}

.why-horizon {
  display: flex; flex-wrap: wrap; gap: .35rem; align-items: center;
}
.why-horizon button {
  width: auto; min-height: 36px; padding: .2rem .7rem; text-transform: uppercase;
  letter-spacing: .06em; font-size: .7rem; font-weight: 800;
}
.why-horizon button.on { background: var(--lime); color: var(--on-brand); border-color: transparent; }
.why-knobs-line { color: var(--muted); }

.tr-3d-band {
  display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .6rem 0;
}
.tr-3d-side {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .55rem .7rem;
}
.tr-3d-side b { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tr-3d-nums { font-variant-numeric: tabular-nums; font-weight: 800; margin-top: .2rem; }
.tr-3d-nums .mid { color: var(--gold); }
.tr-hold { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tr-hold.hold { color: var(--muted); }
.tr-hold.a { color: var(--lime); }
.tr-hold.b { color: #ff8a7a; }
.tr-pick-note { color: var(--gold); }
.tr-asset .why-btn { min-height: 32px; padding: .15rem .45rem; font-size: .62rem; }
.tr-3d-hor { display: flex; flex-wrap: wrap; gap: .35rem; margin: .4rem 0 .8rem; }
.tr-3d-hor button { width: auto; min-height: 40px; }
.tr-3d-hor button.on { background: var(--lime); color: var(--on-brand); border-color: transparent; }

.yh-box {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: .9rem 1rem; margin: .4rem 0 1rem;
}
.yh-connect {
  width: 100%; min-height: 44px; font-weight: 800;
  background: var(--gold); color: var(--on-brand); border: 0; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; box-sizing: border-box;
}
.yh-switch, .yh-box .ghost { min-height: 44px; margin-top: .45rem; }
.yh-fallback { margin-top: .75rem; }
.yh-redir { color: var(--gold); word-break: break-all; }
.espn-row { align-items: flex-end; }
.yh-list { display: grid; gap: .55rem; margin: .4rem 0 1.2rem; }
.yh-lg {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: .7rem .85rem; color: inherit; text-decoration: none;
  min-height: 44px;
}
.yh-lg small { display: block; color: var(--muted); font-size: .78rem; margin-top: .15rem; }
.yh-pending { opacity: .85; }
.yh-skip, .yh-skip-wrap .yh-skip {
  background: var(--card); border: 1px dashed var(--line); border-radius: 14px;
  padding: .7rem .85rem; color: var(--muted); opacity: .5; pointer-events: none;
  min-height: 44px;
}
.yh-skip span {
  display: inline-block; margin-left: .4rem; font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; font-weight: 800;
}
@media (min-width: 720px) {
  .yh-connect { width: auto; min-width: 16rem; }
}

.gr-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .35rem 0 .7rem; }
.gr-chip {
  min-height: var(--tap); padding: .35rem .65rem; border-radius: 999px;
  border: 1px solid var(--line); background: #0f0f0f; color: var(--ink);
  font-size: .78rem; font-weight: 800; text-align: left; cursor: default;
}
.gr-chip b { color: var(--gold); margin-right: .25rem; }
.gr-warns { display: grid; gap: .4rem; margin: 0 0 .75rem; }
.gr-warn {
  margin: 0; padding: .55rem .7rem; border-radius: 10px; font-size: .82rem; line-height: 1.35;
  border: 1px solid rgba(251,191,36,.35); background: #2a1d08; color: #fde68a;
}
.gr-warn.gr-last-in-tier { border-color: rgba(253,164,175,.45); background: #2a1016; color: #fecaca; }
.gr-warn.gr-qb-wait, .gr-warn.gr-te-wait, .gr-warn.gr-dstk { border-color: rgba(125,211,252,.35); background: #0b1c28; color: #bae6fd; }
.gr-purse { margin: .2rem 0 .75rem; }
.gr-vorp { margin: .4rem 0 1rem; }
.gr-vorp .pv-row { grid-template-columns: 2.4rem 1fr 3.2rem minmax(0, 1.4fr); }
.gr-vorp .pv-row small { color: var(--muted); font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr-vs { display: grid; gap: .55rem; margin: .5rem 0; }
@media (min-width: 720px) { .gr-vs { grid-template-columns: 1fr 1fr; } }
.gr-vs > div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .65rem .75rem; }
.gr-vs h3 { margin: 0 0 .25rem; font-size: .82rem; }
.gr-vs p { margin: 0; color: var(--muted); font-size: .8rem; }

/* DS my-team + lineup optimizer — phone first. No 7/11-col table. Pts are 3D; FFA is MARKET. */
html:has(body.team-dash),
html:has(body.start-dash),
body.team-dash,
body.start-dash {
  overflow-x: hidden;
  max-width: 100%;
}
body.team-dash .wrap,
body.start-dash .wrap {
  overflow-x: hidden;
  max-width: 100%;
  min-width: 0;
}
body.team-dash .kpi,
body.start-dash .kpi {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
  margin: .55rem 0 .7rem;
}
body.team-dash .kpi {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .3rem;
  margin: .35rem 0 .5rem;
}
body.team-dash .kpi div,
body.start-dash .kpi div { min-width: 0; }
body.team-dash .kpi strong,
body.start-dash .kpi strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (min-width: 820px) {
  body.team-dash .kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.start-dash .kpi { grid-template-columns: repeat(5, 1fr); }
}
body.team-dash .td-holes {
  max-width: 100%;
  min-width: 0;
}
body.team-dash .td-hole-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  max-width: 100%;
}
body.team-dash .td-hole-chips .mu-chip {
  white-space: nowrap;
}
.td-3d { margin: .15rem 0 .85rem; max-width: 100%; min-width: 0; }
.td-3d-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .35rem;
}
.td-3d-bar span {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .5rem .3rem .45rem;
  text-align: center;
  min-width: 0;
}
.td-3d-bar em {
  display: block;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
}
.td-3d-bar b {
  display: block;
  margin-top: .12rem;
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
}
.td-3d-bar .md { border-color: rgba(239,68,68,.4); }
.td-3d-bar .md b { color: var(--lime); }
.td-3d-bar .ce b { color: var(--gold); }
.td-3d-track {
  position: relative;
  height: 8px;
  margin-top: .4rem;
  background: #0f0f0f;
  border: 1px solid var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.td-3d-track i {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  border-radius: 99px;
}
.td-3d-track i.fl { background: rgba(147,163,184,.45); }
.td-3d-track i.md { background: var(--lime); opacity: .85; }
.td-week { margin: .4rem 0 1rem; max-width: 100%; }
.td-starters {
  display: grid;
  gap: .5rem;
  max-width: 100%;
  min-width: 0;
}
.td-card,
.lu-card > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .55rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: .7rem .8rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  max-width: 100%;
  box-shadow: var(--shadow);
}
.td-card .who,
.lu-card .who { min-width: 0; }
.td-card .slot,
.lu-card .slot {
  display: inline-block;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .12rem;
}
.td-card .nm,
.lu-card .nm {
  display: block;
  font-size: .98rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.td-card .meta,
.lu-card .meta {
  display: block;
  font-size: .72rem;
  color: var(--muted);
  margin-top: .12rem;
  white-space: normal;
  overflow-wrap: anywhere;
}
.td-card .pts,
.lu-card .pts {
  text-align: right;
  min-width: 4.4rem;
}
.td-card .pts strong,
.lu-card .pts strong {
  display: block;
  font-size: 1.2rem;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.td-card .band,
.lu-card .band {
  display: block;
  font-size: .68rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-top: .12rem;
}
.td-card .ffa,
.lu-card .ffa {
  display: block;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: .18rem;
  white-space: normal;
  max-width: 7.5rem;
}
.td-card .next,
.lu-card .next {
  display: block;
  font-size: .66rem;
  color: var(--cyan);
  margin-top: .12rem;
  font-variant-numeric: tabular-nums;
}
.td-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  background: var(--lime);
  color: var(--on-brand);
  font-weight: 800;
  border-radius: 999px;
  text-decoration: none;
  padding: .7rem 1rem;
}
.td-bench,
.lu-sheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: .55rem .8rem .8rem;
  margin: .55rem 0 .9rem;
  max-width: 100%;
  min-width: 0;
}
.lu-card {
  margin: 0;
  max-width: 100%;
  min-width: 0;
}
.td-bench summary,
.lu-sheet summary {
  font-weight: 800;
  cursor: pointer;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  list-style: none;
}
.lu-card > summary {
  font-weight: 800;
  cursor: pointer;
  min-height: var(--tap);
  list-style: none;
}
.td-bench summary::-webkit-details-marker,
.lu-sheet summary::-webkit-details-marker,
.lu-card > summary::-webkit-details-marker { display: none; }
.td-bench .td-starters { margin-top: .45rem; }
.td-bench .tr-board { margin-top: .6rem; }
body.team-dash .tips,
body.start-dash .tips { max-width: 100%; }
body.team-dash .tips li,
body.start-dash .tips li { overflow-wrap: anywhere; }
body.team-dash .td-split { display: block; }
body.team-dash .tr-asset .nm,
body.team-dash .tr-asset b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
body.team-dash nav.top {
  max-width: 100%;
  min-width: 0;
}
body.team-dash nav.top .desk {
  min-width: 0;
  flex: 1 1 auto;
}
.td-card.playoff { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(245,197,24,.35); }
body.team-dash .kpi div { padding: .45rem .35rem .4rem; }
body.team-dash .kpi span {
  font-size: .58rem;
  letter-spacing: .06em;
}
body.team-dash .kpi strong { font-size: .95rem; }
@media (max-width: 719px) {
  body.team-dash .mode-pill,
  body.team-dash .td-skip,
  body.team-dash #labSchoolStrip { display: none; }
  body.team-dash .wrap {
    padding: .45rem .7rem calc(var(--bot) + var(--bot-safe) + 16px);
  }
  body.team-dash h1 {
    font-size: 1.28rem;
    margin: .04rem 0 .12rem;
    line-height: 1.05;
  }
  body.team-dash .sub {
    font-size: .76rem;
    margin: 0 0 .2rem;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  body.team-dash .kicker { margin: 0 0 .08rem; }
  body.team-dash .kpi { gap: .28rem; margin: .28rem 0 .4rem; }
  body.team-dash .kpi div { padding: .32rem .22rem .28rem; }
  body.team-dash .kpi strong { font-size: .88rem; }
  body.team-dash .td-3d .tiny,
  body.team-dash .td-holes > .tiny,
  body.team-dash .td-week > .tiny { display: none; }
  body.team-dash h2.sec { margin: .4rem 0 .25rem; }
  body.team-dash .td-3d { margin: .05rem 0 .45rem; }
  body.team-dash .td-holes { margin: .15rem 0 .35rem; }
  body.team-dash .td-3d-bar span { padding: .38rem .18rem .32rem; }
  body.team-dash .td-3d-bar b { font-size: .95rem; }
  body.team-dash .td-card { padding: .55rem .7rem; border-radius: 14px; }
  body.start-dash #labSchoolStrip,
  body.start-dash .sub,
  body.start-dash .td-3d .tiny,
  body.start-dash .td-starters + .tiny,
  body.start-dash h2.sec + .tiny,
  body.start-dash .wp-host { display: none; }
  body.start-dash .wrap {
    padding: .45rem .7rem calc(var(--bot) + var(--bot-safe) + 16px);
  }
  body.start-dash h1 {
    font-size: 1.28rem;
    margin: .04rem 0 .12rem;
    line-height: 1.05;
  }
  body.start-dash .lu-hero { margin: 0 0 .04rem; }
  body.start-dash .row {
    gap: .35rem;
    margin: .2rem 0 .25rem;
    align-items: end;
  }
  body.start-dash .row label {
    flex: 0 1 5.5rem;
    min-width: 5.2rem;
    margin: 0;
  }
  body.start-dash .row > button {
    flex: 1 1 auto;
    min-height: 40px;
    padding: .35rem .55rem;
    font-size: .78rem;
  }
  body.start-dash .kpi {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .28rem;
    margin: .28rem 0 .4rem;
  }
  body.start-dash .kpi div { padding: .32rem .22rem .28rem; }
  body.start-dash .kpi span { font-size: .58rem; letter-spacing: .05em; }
  body.start-dash .kpi strong { font-size: .88rem; }
  body.start-dash .td-3d { margin: .05rem 0 .45rem; }
  body.start-dash .td-3d-bar span { padding: .38rem .18rem .32rem; }
  body.start-dash .td-3d-bar b { font-size: .95rem; }
  body.start-dash h2.sec { margin: .4rem 0 .25rem; }
  body.start-dash .td-card,
  body.start-dash .lu-card > summary { padding: .55rem .7rem; border-radius: 14px; }
  body.start-dash #drawVs { margin-top: .2rem; }
}
.lu-flip {
  display: inline-block;
  margin-left: .35rem;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(245,197,24,.4);
  border-radius: 999px;
  padding: .08rem .4rem;
}
.lu-alts {
  padding: .15rem .8rem .7rem;
  display: grid;
  gap: .35rem;
}
.lu-alt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .4rem;
  padding: .45rem .55rem;
  background: #0f0f0f;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.lu-alt b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lu-alt .delta { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--lime); }
.lu-alt .delta.down { color: #fda4af; }
body.start-dash .wp-host { max-width: 100%; min-width: 0; overflow: hidden; }
body.start-dash .wp-host svg,
body.start-dash .nc-svg { max-width: 100%; height: 120px; }
body.start-dash .table-wrap {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: auto;
}
body.start-dash .lu-sheet table { min-width: 40rem; }
body.start-dash .row { max-width: 100%; }
body.start-dash .row label { min-width: 0; }
.lu-hero { margin: 0 0 .2rem; }

/* Dynasty window + 1000-world tape */
.dyn-win { display: grid; gap: .45rem; margin: .4rem 0 .7rem; }
.dyn-presets { display: flex; flex-wrap: wrap; gap: .35rem; }
.dyn-preset {
  min-height: 44px; padding: .35rem .7rem; border-radius: 999px;
  border: 1px solid var(--line); background: #0f0f0f; color: var(--ink);
  font: inherit; font-weight: 800; cursor: pointer;
}
.dyn-preset.on { background: var(--gold); color: #161000; border-color: var(--gold); }
.dyn-sliders { display: grid; gap: .35rem; }
.dyn-sliders label {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: .45rem; align-items: center;
  font-size: .78rem; font-weight: 800; color: var(--muted);
}
.dyn-sliders input[type=range] { width: 100%; accent-color: var(--gold); }
.dyn-list { display: grid; gap: .45rem; }
.dyn-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: .7rem .8rem;
}
.dyn-card.mine { border-color: var(--gold); }
.dyn-card-h { display: flex; align-items: baseline; gap: .4rem; }
.dyn-card-h b { color: var(--gold); min-width: 1.4rem; }
.dyn-card-h strong { font-size: 1rem; }
.dyn-card-h em { margin-left: auto; color: var(--muted); font-style: normal; font-size: .78rem; }
.dyn-card-v { display: flex; gap: .8rem; margin-top: .35rem; font-size: .82rem; color: var(--muted); }
.dyn-card-v .mid { color: var(--lime); font-weight: 800; }
.dyn-tree { display: flex; flex-wrap: wrap; gap: .3rem; margin: .45rem 0; }
.dyn-chip {
  font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: .18rem .45rem; border-radius: 999px; background: #0f0f0f; border: 1px solid var(--line);
  color: var(--muted);
}
.dyn-bands { display: grid; gap: .22rem; margin: .4rem 0 .6rem; }
.dyn-yr { display: grid; grid-template-columns: 2rem 1fr 2.6rem 3.4rem; gap: .35rem; align-items: center; font-size: .75rem; }
.dyn-yr i { display: block; height: 6px; background: linear-gradient(90deg, var(--gold), var(--lime)); border-radius: 99px; }
.dyn-yr em { color: var(--muted); font-style: normal; }
.dyn-panel { margin: .4rem 0 .8rem; padding: .7rem .8rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.dyn-kpi { margin: .35rem 0 .5rem; }
.dyn-win-host { margin: .2rem 0 .5rem; }
@media (max-width: 719px) {
  body.dyn-dash .wrap { padding: .45rem .7rem calc(var(--bot) + var(--bot-safe)); }
  body.dyn-dash h1 { font-size: 1.35rem; }
  body.dyn-dash .sub { font-size: .82rem; }
  .dyn-card-v { justify-content: space-between; }
}

/* Walter waiver report + pulse */
body.wp-waivers h1 { font-size: 1.7rem; }
.wp-rpt { display: grid; gap: 1rem; margin: .4rem 0 1.1rem; }
.wp-sec { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: .7rem .8rem .85rem; }
.wp-sec .sec { margin: 0 0 .25rem; border: 0; padding: 0; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.wp-grid { display: grid; gap: .55rem; }
@media (min-width: 720px) { .wp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wp-waive {
  background: #0f0f0f; border: 1px solid var(--line); border-radius: 14px; padding: .65rem .7rem .7rem;
}
.wp-waive header { display: flex; flex-wrap: wrap; gap: .3rem .5rem; align-items: center; margin: 0 0 .25rem; }
.wp-k {
  font-size: .62rem; font-weight: 800; letter-spacing: .08em; padding: .08rem .4rem; border-radius: 6px;
  background: var(--lime); color: var(--on-brand);
}
.kind-stash .wp-k { background: #1a2433; color: #93c5fd; }
.kind-cuff .wp-k { background: #3a2410; color: #fbbf24; }
.kind-stream .wp-k { background: #1a2433; color: var(--gold); }
.wp-use { font-size: .62rem; font-weight: 800; letter-spacing: .06em; padding: .08rem .4rem; border-radius: 6px; }
.wp-use.start { background: var(--lime); color: var(--on-brand); }
.wp-use.stash { background: #1a2433; color: #93c5fd; }
.wp-bid { margin-left: auto; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.wp-waive h3 { margin: 0; font-size: 1rem; }
.wp-meta { margin: .15rem 0 .25rem; color: var(--muted); font-size: .78rem; }
.wp-nums { display: flex; flex-wrap: wrap; gap: .45rem .8rem; margin: 0 0 .25rem; font-size: .82rem; color: var(--muted); }
.wp-nums b { color: var(--ink); font-variant-numeric: tabular-nums; }
.wp-drop { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.wp-drop li { font-size: .88rem; line-height: 1.35; }
.wp-full { margin: 1rem 0 1.4rem; }
.wp-full summary { min-height: 44px; cursor: pointer; font-weight: 800; }
body.wp-waivers details.wp-full[open] { margin-top: .35rem; }
body.wp-waivers details.wp-full table { min-width: 32rem; }
body.wp-waivers details.wp-full td:first-child { white-space: normal; }
.wp-nug { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.wp-nug li { font-size: .86rem; line-height: 1.4; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.wp-pulse { width: 100%; border-collapse: collapse; }
.wp-pulse th { text-align: left; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: .35rem .4rem; }
.wp-pulse td { padding: .45rem .4rem; border-top: 1px solid var(--line); vertical-align: top; }
.wp-pulse td.up { color: var(--lime); font-weight: 800; font-variant-numeric: tabular-nums; }
.wp-pulse td.down { color: #fda4af; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 719px) {
  body.wp-waivers .wrap { padding: .45rem .7rem calc(var(--bot) + var(--bot-safe)); }
  body.wp-waivers h1 { font-size: 1.4rem; }
  .wp-nums { justify-content: space-between; }
  .wp-pulse { font-size: .82rem; }
}

.sim-virt {
  position: relative;
  height: min(70vh, 620px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 12, 20, .45);
}
.sim-virt-space { width: 100%; pointer-events: none; }
.sim-virt table {
  position: absolute;
  left: 0; right: 0;
  margin: 0;
  background: transparent;
}
.sim-virt thead th {
  position: sticky; top: 0; z-index: 2;
  background: #0b1220;
}
.sim-name {
  background: none; border: 0; padding: 0;
  color: var(--cyan); font: inherit; font-weight: 800;
  cursor: pointer; text-align: left;
  min-height: 44px;
}
.sim-sheet {
  position: fixed; inset: 0;
  z-index: 80; background: rgba(5,8,15,.72);
  display: flex; align-items: flex-end; justify-content: center;
}
.sim-sheet[hidden] { display: none !important; }
.sim-sheet-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(88vh, 720px); overflow: auto;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px 18px 0 0; padding: 1.15rem 1.1rem 1.5rem;
  box-shadow: var(--shadow);
}
.sim-sheet-x {
  position: absolute; top: .55rem; right: .65rem;
  width: 2.25rem; height: 2.25rem; padding: 0;
  border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); font-size: 1.3rem;
}
.sim-sheet .kpi { margin: .7rem 0 1rem; }
.sim-sheet .kpi strong { font-variant-numeric: tabular-nums; }
@media (max-width: 719px) {
  .sim-virt { height: min(62vh, 520px); }
  .sim-sheet-panel { padding-bottom: calc(1.4rem + var(--bot-safe)); }
}

nav.top .acct-go {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 0 .7rem; white-space: nowrap;
  background: transparent; color: var(--lime); font-weight: 800;
  font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--lime); border-radius: 999px; flex: 0 0 auto;
}
body:not(.is-admin) .admin-only { display: none !important; }
.acct-wrap { max-width: 28rem; }
.acct-form { display: grid; gap: .75rem; margin: 1rem 0; }
.acct-form label { display: grid; gap: .3rem; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.acct-form input[type=email],
.acct-form input[type=password],
.acct-form input[type=text],
.acct-form input[inputmode=numeric] {
  display: block; width: 100%; box-sizing: border-box; font-size: 16px;
  padding: .85rem; border-radius: 12px; border: 1px solid var(--line);
  background: #0f0f0f; color: var(--ink);
}
.pw-wrap { display: flex; gap: .4rem; align-items: stretch; }
.pw-wrap input { flex: 1; min-width: 0; }
.pw-toggle {
  flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: 0 .75rem;
  border-radius: 12px; border: 1px solid var(--line); background: #0f0f0f;
  color: var(--ink); font-weight: 800; cursor: pointer;
}
#codeForm[hidden], #mailStub[hidden] { display: none !important; }
.acct-email input[readonly] { opacity: .85; }
#in label { display: grid; gap: .3rem; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: .6rem 0; }
#in input[type=email], #in input[type=text] {
  display: block; width: 100%; box-sizing: border-box; font-size: 16px;
  padding: .85rem; border-radius: 12px; border: 1px solid var(--line);
  background: #0f0f0f; color: var(--ink);
}
.acct-form .go, .acct-form button.go, a.btn-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; box-sizing: border-box; padding: .85rem; border: 0;
  border-radius: 999px; background: var(--lime); color: var(--on-brand);
  font-weight: 800; min-height: 48px; cursor: pointer; font-size: 1rem;
  text-decoration: none;
}
a.btn-link.ghost, button.ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--line);
}
.acct-form .rem, #mangasLock .rem {
  display: flex; align-items: center; gap: .75rem; width: 100%; box-sizing: border-box;
  text-align: left; background: #0f0f0f; color: var(--ink); border: 2px solid var(--lime);
  border-radius: 14px; padding: .8rem .95rem; font: inherit; font-weight: 800;
  min-height: 56px; cursor: pointer;
}
.acct-form .rem.off { border-color: #445; background: #0f0f0f; color: var(--muted); }
.acct-form .box {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px;
  background: var(--lime); color: var(--on-brand); display: flex; align-items: center;
  justify-content: center; font-size: 1.15rem; line-height: 1;
}
.acct-form .rem.off .box { background: #1a2433; color: #1a2433; border: 2px solid #667; }
.acct-form .err, p.err { color: #fda4af; font-size: .85rem; min-height: 1.2em; margin: .45rem 0 0; }
.sync-id { font-size: 1.1rem; font-weight: 800; word-break: break-all; margin: 0 0 .8rem; }

.fl-sim-lock {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(6, 10, 16, .88);
  display: flex; align-items: center; justify-content: center;
  padding: 1.2rem;
}
.fl-sim-lock[hidden] { display: none !important; }
.fl-sim-card {
  width: min(28rem, 100%); background: #0f0f0f; border: 1px solid var(--line);
  border-radius: 18px; padding: 1.2rem;
}
.fl-sim-card h2 { margin: .2rem 0 .5rem; }
.fl-acct-table td, .fl-acct-table th { padding: .55rem .6rem; }
.fl-acct-table tr { min-height: 44px; }
.fl-acct-table .fl-dis { min-height: 44px; min-width: 88px; }
.fl-acct-table tr.disabled td { color: var(--muted); text-decoration: line-through; }
@media (max-width: 414px) {
  .fl-acct-table td, .fl-acct-table th { font-size: .78rem; }
}
#flPrint, [data-fl-print] { font-variant-numeric: tabular-nums; opacity: .75; }

@media (max-width: 430px) {
  nav.top {
    display: grid;
    grid-template-columns: auto minmax(7.2rem, 1fr) auto auto auto;
    overflow: visible;
    align-items: center;
    gap: .28rem .3rem;
  }
  nav.top .sites-menu,
  nav.top .ros-go,
  nav.top .acct-go,
  nav.top .desk,
  nav.top .lg-pick { display: none !important; }
  nav.top .brand { order: 1; }
  nav.top .lg-chip-menu { order: 2; min-width: 0; max-width: none; }
  nav.top .game-go {
    order: 3;
    font-size: .78rem;
    padding: 0 .55rem;
    letter-spacing: 0;
    text-transform: none;
    min-height: 44px;
  }
  nav.top .al-bell { order: 4; min-height: 44px; }
  nav.top .more-btn { order: 5; display: inline-flex !important; min-height: 44px; padding: 0 .7rem; margin-left: 0; }
  .sim-wrap h1 { font-size: 1.35rem; margin: .2rem 0 .25rem; }
  .sim-wrap .kicker { margin: 0 0 .25rem; }
}
.stale-banner {
  background: #3b1d0e; color: #ffd7a8; border: 1px solid #f87171;
  border-radius: 12px; padding: .55rem .75rem; font-weight: 800; font-size: .82rem;
  margin: 0 0 .7rem;
}
.stale-banner.hide, .hide { display: none !important; }
body.stale-book .stale-toggles,
body.stale-book .sim-flags {
  opacity: .45; filter: grayscale(1);
  pointer-events: none;
}
body.stale-book .sim-flags label { cursor: not-allowed; }
.sb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem;
}
.sb-card {
  background: #0f0f0f; border: 1px solid var(--line); border-radius: 12px;
  padding: .55rem .65rem; min-height: 64px;
  display: grid; grid-template-columns: auto 1fr; column-gap: .45rem; align-items: baseline;
}
.sb-card .rk { font-size: .68rem; font-weight: 800; color: var(--muted); letter-spacing: .08em; }
.sb-card b { font-size: 1.05rem; }
.sb-card strong { grid-column: 1 / -1; color: var(--lime); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.sb-card .n { grid-column: 1 / -1; font-size: .68rem; color: var(--muted); font-weight: 800; }
.sb-card.on { border-color: var(--lime); }
.ct-sites { gap: .4rem; }
.ct-sites button.ct-site {
  background: transparent; color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; padding: .45rem .85rem; min-height: 44px; width: auto; font-size: .78rem;
}
.ct-sites button.ct-site.on { background: var(--lime); color: var(--on-brand); border-color: var(--lime); }
.sim-essay { margin: .8rem 0 1rem; }
.sim-essay summary { cursor: pointer; font-weight: 800; color: var(--gold); font-size: .82rem; }
.sim-essay .sub { margin: .5rem 0 0; }
#tabs.view-tabs {
  position: sticky; top: calc(48px + env(safe-area-inset-top, 0px)); z-index: 12;
  background: rgba(5,8,15,.94); padding: .35rem 0;
}
[data-pane] { scroll-margin-top: calc(96px + env(safe-area-inset-top, 0px)); }
@media (min-width: 720px) {
  .sb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Pick'em game cards (third book) */
.pk-grid { display: grid; gap: .7rem; margin: .8rem 0 1.2rem; }
@media (min-width: 820px) {
  .pk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.pk-card {
  background: #0f0f0f; border: 1px solid var(--line); border-radius: 14px;
  padding: .7rem .8rem;
}
.pk-card header { display: flex; align-items: baseline; gap: .4rem; font-size: 1.05rem; }
.pk-card header span { color: var(--muted); font-weight: 800; }
.pk-bar {
  position: relative; height: 22px; border-radius: 999px; overflow: hidden;
  background: rgba(255,255,255,.08); margin: .45rem 0 .5rem;
  font-size: .62rem; font-weight: 800; letter-spacing: .04em;
}
.pk-bar i { display: block; height: 100%; background: var(--lime); }
.pk-bar span { position: absolute; top: 3px; color: var(--on-brand); }
.pk-bar .h { left: .5rem; }
.pk-bar .a { right: .5rem; color: var(--ink); }
.pk-score { font-size: .82rem; margin: .2rem 0; }
.pk-score span { color: var(--muted); font-size: .72rem; }
.pk-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin: .35rem 0; }
.pk-chips span {
  border: 1px solid var(--line); border-radius: 999px; padding: .15rem .5rem;
  font-size: .68rem; font-weight: 800;
}
.pk-chips .mute { color: var(--muted); font-weight: 600; border: 0; }
.pk-card.pk-locked { border-color: rgba(255, 180, 168, .45); }
.pk-lock {
  margin-left: auto; font-style: normal; font-size: .68rem; font-weight: 800;
  letter-spacing: .06em; color: #ffb4a8; border: 1px solid #ffb4a8;
  border-radius: 999px; padding: .1rem .45rem;
}
.pk-card.pk-locked .pk-line { pointer-events: none; opacity: .55; }
.pk-delta { color: var(--gold); font-weight: 800; }
.pk-lines { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0; }
.pk-lines label { font-size: .72rem; color: var(--muted); font-weight: 800; }
.pk-lines input {
  display: block; min-height: 44px; min-width: 5.5rem; width: 6.5rem;
  background: #070b12; color: var(--ink); border: 1px solid var(--line);
  border-radius: 10px; padding: 0 .6rem; font-size: 1rem;
}
.pk-open summary { cursor: pointer; font-weight: 800; color: var(--gold); min-height: 44px; display: flex; align-items: center; }
.pk-hist { display: block; width: 100%; height: 56px; margin: .2rem 0 .5rem; }
.pk-log { margin: .2rem 0 .6rem; padding-left: 1.1rem; font-size: .75rem; color: var(--muted); max-height: 12rem; overflow: auto; }
.pk-strip { width: 100%; font-size: .78rem; }
.pk-strip th { text-align: left; color: var(--muted); font-size: .68rem; }
.pk-strip td { padding: .2rem .25rem; }

.ap-sheet {
  background: var(--card);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: .7rem .85rem;
  margin: .55rem 0 .9rem;
  min-width: 0;
  overflow: hidden;
}
.ap-sheet[hidden] { display: none !important; }
.ap-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: .5rem; min-height: 44px; border-bottom: 1px solid var(--line);
  font-size: .88rem; min-width: 0;
}
.ap-row > span:first-child {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ap-row > span:last-child { flex: 0 0 auto; white-space: nowrap; }
.ap-row .meta { color: var(--muted); font-size: .72rem; margin-left: .3rem; }
.ap-swap { color: var(--gold); font-weight: 800; font-size: .72rem; }
.ap-sheet .row { margin: .45rem 0 0; }
.ap-sheet .row button { min-height: 44px; }

.hw-row { align-items: center; gap: .5rem; margin: .45rem 0 .7rem; flex-wrap: wrap; }
.hw-row button, .hw-claim { min-height: 44px; }
.hw-chip {
  display: inline-flex; align-items: center; min-height: 32px;
  padding: .15rem .55rem; border-radius: 99px; border: 1px solid var(--line);
  font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.hw-chip.hw-ok { color: var(--on-brand); background: var(--lime); border-color: var(--lime); }
.hw-chip.hw-denied { color: #fda4af; border-color: #fda4af; }
.hw-chip.hw-read_only { color: var(--gold); border-color: var(--gold); }
.hw-modal {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(6, 10, 8, .72);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
}
.hw-modal[hidden] { display: none !important; }
.hw-modal .hw-card {
  width: min(36rem, 100%);
  background: var(--card); border: 1px solid var(--gold); border-radius: 16px;
  padding: .85rem .9rem;
}
.hw-modal .hw-card .row button { min-height: 44px; }
.fa-claim .hw-claim { font-size: .72rem; padding: .2rem .5rem; }

#clockRun[hidden], .clock-run[hidden] { display: none !important; }
#btnClockRun {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
#btnClockRun .clock-spin {
  width: 14px; height: 14px; border-radius: 99px;
  border: 2px solid #ffffff; border-right-color: transparent;
  animation: clock-spin .7s linear infinite;
  flex: 0 0 auto;
}
#btnClockRun .clock-spin[hidden] { display: none !important; }
@keyframes clock-spin { to { transform: rotate(360deg); } }
#clockRunMsg.err { color: #fda4af; }







/* Projection editor · Weekly lines (editor-weekly.js) */
.ew { margin: .4rem 0 1.2rem; }
.ew-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.ew-head select { width: auto; min-width: 9rem; font-weight: 800; }
.ew-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: .45rem; align-items: center; margin: .5rem 0 .2rem; }
.ew-filters input[type=search] { min-width: 0; }
.ew-pos { margin: .35rem 0 .45rem; }
.ew-wrap { max-height: 70vh; overflow: auto; }
.ew-table { font-variant-numeric: tabular-nums; width: 100%; }
.ew-table th { position: sticky; top: 0; background: #0b1220; z-index: 1; }
.ew-table td, .ew-table th { padding: .38rem .45rem; vertical-align: middle; }
.ew-name { min-width: 11rem; }
.ew-pick { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 800; cursor: pointer; text-align: left; min-height: 0; font-size: .92rem; }
.ew-pick:hover, .ew-row.on .ew-pick { color: var(--gold); text-decoration: underline; }
.ew-sub { display: block; color: var(--muted); }
.ew-row.on { background: rgba(245,197,24,.10); }
.ew-gap.hi { color: var(--lime); font-weight: 800; }
.ew-gap.lo { color: #ff8a80; font-weight: 800; }
.ew-yours { color: var(--gold); }
.ew-warn { color: var(--gold); }
.ew-open > td { background: rgba(16,24,38,.95); border-top: 1px solid rgba(245,197,24,.35); border-bottom: 1px solid rgba(245,197,24,.35); padding: .7rem .6rem .8rem; }
.ew-dh { font-size: 1rem; margin: 0 0 .4rem; }
.ew-kpi { margin: .2rem 0 .35rem; }
.ew-p3 b { color: var(--ink); }
.ew-quick, .ew-act { flex-wrap: wrap; gap: .35rem; margin: .4rem 0; }
.ew-grid { display: grid; grid-template-columns: minmax(5.5rem, 1.2fr) minmax(3rem, .8fr) minmax(3rem, .8fr) minmax(5rem, 1fr); gap: .25rem .5rem; align-items: center; margin: .35rem 0 .6rem; max-width: 36rem; }
.ew-gh { font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ew-gl { font-size: .8rem; color: var(--muted); }
.ew-ref { font-size: .86rem; color: var(--muted); text-align: right; padding-right: .3rem; }
.ew-grid input { font-weight: 800; padding: .3rem .45rem; min-height: 36px; }
.ew-two, .ew-three { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin: .4rem 0; max-width: 36rem; }
.ew-three { grid-template-columns: minmax(0, 1.6fr) minmax(0, .7fr) minmax(0, .7fr); }
.ew-two label, .ew-three label, .ew-note { display: flex; flex-direction: column; gap: .15rem; font-size: .72rem; color: var(--muted); }
.ew-note { max-width: 36rem; }
.ew-link { display: inline-flex; align-items: center; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .85rem; }
.ew-tools { margin-top: .6rem; }
.ew-tools summary { cursor: pointer; font-weight: 800; }
.ew-bulk { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .5rem 0 .2rem; }
.ew-bulk select, .ew-bulk input { width: auto; }
.ew-bulk #ewBPct { width: 5rem; }
.ew-bulk #ewBNote { flex: 1 1 10rem; }
.ew-file { position: relative; overflow: hidden; display: inline-flex; align-items: center; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: .85rem; }
.ew-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.lab-edit-chip { margin-left: .25rem; }
@media (max-width: 640px) {
  .ew-filters { grid-template-columns: 1fr 1fr; }
  .ew-filters input[type=search] { grid-column: 1 / -1; }
  .ew-wrap { max-height: none; }
  .ew-table td, .ew-table th { padding: .32rem .3rem; font-size: .82rem; }
  .ew-name { min-width: 8.5rem; }
  .ew-open > td { padding: .55rem .35rem; }
  .ew-grid { grid-template-columns: minmax(4.6rem, 1fr) minmax(2.6rem, .7fr) minmax(2.6rem, .7fr) minmax(4.4rem, 1fr); gap: .2rem .3rem; }
  .ew-three { grid-template-columns: 1fr 1fr; }
  .ew-three label:first-child { grid-column: 1 / -1; }
}
.ew-filters .why-check { display: flex; flex-direction: row; align-items: center; gap: .35rem; white-space: nowrap; font-size: .8rem; color: var(--muted); }
.ew-filters .why-check input { width: auto; min-height: 0; }
/* Club desk grid items could not shrink (min-width:auto) → editor ran 630px wide on a 390px phone. */
.ed-desk > * { min-width: 0; }
.ed-pane .table-wrap { overflow-x: auto; }

/* Header: Other sites menu retired → gold Sunday Empire + lime Sims (sims.html). */
a.ros-go { text-decoration: none; }
a.ros-go:visited { color: var(--on-brand); }
@media (min-width: 820px) { nav.top .game-go::before { content: "Sunday\00a0"; } }

body.signed-in .signed-out-only{display:none!important}
/* League Analyzer roster tiles: own row above the table (were overlapping the first rows). */
#rosTot{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem;margin:.8rem 0 1rem;position:static!important;height:auto!important;width:100%;max-width:none;float:none;clear:both}
#rosTot div{min-width:0;height:auto}
@media (max-width:560px){#rosTot{grid-template-columns:repeat(2,minmax(0,1fr))}}
#wpAucDesk[hidden], #tfDeskWrap[hidden] { display: none !important; }
.tr-odds { margin:.3rem 0 .5rem; }
.tr-odds .tr-odds-v { margin:.2rem 0; font-size:1rem; }
.tr-odds.soon { padding:.4rem .6rem; border:1px dashed #555; border-radius:8px; }
.tr-odds td { white-space:nowrap; }
@media (max-width:480px){ .tr-odds td { font-size:.8rem; } }
/* Trade finder (title odds) — mobile-first full-width tap cards */
.tfx-card{display:block;width:100%;text-align:left;margin:.35rem 0;padding:.6rem .7rem;border-radius:10px;line-height:1.35}
.tf-commit .chip{margin:.15rem .2rem 0 0}

/* Global search palette (nav.js wireSearch) */
.lab-search-go { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--line, #2a2f3a); color: inherit; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; min-height: 32px; }
.lab-search-go svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lab-search-go kbd { font: 11px ui-monospace, monospace; opacity: .6; border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; }
.lab-search-go:hover, .lab-search-go:focus-visible { border-color: var(--accent, #7aa2ff); }
.lab-search { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.55); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 12px 12px; }
.lab-search[hidden] { display: none; }
.lab-search .ls-card { width: min(560px, 100%); background: #101826; color: inherit; border: 1px solid var(--line, #2a2f3a); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.45); overflow: hidden; display: flex; flex-direction: column; max-height: 75vh; }
.lab-search .ls-in { display: flex; gap: 8px; padding: 10px; border-bottom: 1px solid var(--line, #2a2f3a); }
.lab-search input { flex: 1; font: inherit; font-size: 16px; background: transparent; border: 0; outline: 0; color: inherit; padding: 6px 4px; }
.lab-search .ls-x { background: transparent; border: 1px solid var(--line, #2a2f3a); color: inherit; border-radius: 6px; font-size: 12px; padding: 2px 8px; cursor: pointer; }
.lab-search .ls-list { overflow-y: auto; padding: 4px 0; }
.lab-search .ls-h { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .55; padding: 8px 14px 4px; }
.lab-search .ls-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; min-height: 40px; color: inherit; text-decoration: none; }
.lab-search .ls-row.on, .lab-search .ls-row:hover { background: rgba(122,162,255,.12); }
.lab-search .ls-sub { opacity: .6; font-size: 13px; }
.lab-search .ls-tag { margin-left: auto; font-size: 11px; border-radius: 999px; padding: 1px 8px; border: 1px solid var(--line, #2a2f3a); opacity: .8; white-space: nowrap; }
.lab-search .ls-tag.mine { border-color: var(--accent, #7aa2ff); color: var(--accent, #7aa2ff); opacity: 1; }
.lab-search .ls-empty { padding: 16px 14px; opacity: .7; }
.lab-search .ls-skel { display: block; height: 14px; margin: 8px 0; border-radius: 6px; background: rgba(255,255,255,.08); }
.lab-search .ls-foot { font-size: 11px; opacity: .5; padding: 6px 14px; border-top: 1px solid var(--line, #2a2f3a); }
@media (max-width: 640px) { .lab-search-go .lab, .lab-search-go kbd { display: none; } .lab-search { padding-top: 8px; } .lab-search .ls-card { max-height: 88vh; } }

/* Trade desk UX #3: simple default + accept-risk badges */
body.trade-desk:not(.tr-adv-on) .tr-adv { display: none !important; }
.tr-risk { display: inline-block; font-size: 11px; font-weight: 700; line-height: 1.5; padding: 0 6px; border-radius: 999px; border: 1px solid currentColor; vertical-align: middle; white-space: nowrap; }
.tr-risk.up { color: var(--up, #2fbf71); }
.tr-risk.mid { color: var(--mid, #f87171); }
.tr-risk.dn { color: var(--dn, #e5534b); }
/* Trade analyzer vs Trade finder (separate views; finder is admin-only VERY BETA) */
.tr-beta-pill { display:inline-block; font-size:11px; font-weight:800; letter-spacing:.04em; padding:0 6px; border-radius:4px; background:#f87171; color:#111; vertical-align:middle; }
.tr-view-tabs { display:flex; gap:.4rem; margin:.3rem 0 .6rem; }
.tr-view-tabs a { padding:.35rem .7rem; border:1px solid var(--line); border-radius:999px; text-decoration:none; color:inherit; }
.tr-view-analyzer #tvAnalyzer, .tr-view-finder #tvFinder { border-color: currentColor; font-weight:700; }
.tr-view-analyzer .tr-finder-only, .tr-view-analyzer [data-tf-only] { display:none !important; }
.tr-view-finder .tr-analyzer-only { display:none !important; }
.tr-view-finder:not(.tr-finder-loaded) .tr-board, .tr-view-finder:not(.tr-finder-loaded) .tr-dealbar, .tr-view-finder:not(.tr-finder-loaded) #needs { display:none !important; }
.tr-finder-gate { display:none; }
.tr-view-finder body:not(.is-admin) .tr-finder-gate { display:block; }
.tr-view-finder body:not(.is-admin) .tr-finder-only, .tr-view-finder body:not(.is-admin) [data-tf-only] { display:none !important; }

/* Card Why stack — HUMAN · MACHINE · CONSENSUS (start/sit + trade cards) */
.why-card { display: flex; flex-wrap: wrap; gap: .28rem; align-items: center; margin-top: .35rem; min-width: 0; }
.why-card-k { font: inherit; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: transparent; color: var(--muted); border: 1px dashed var(--line); border-radius: 999px; padding: .2rem .5rem; cursor: pointer; min-height: 24px; }
.why-pill { font-size: .66rem; line-height: 1.25; border-radius: 999px; padding: .2rem .5rem; border: 1px solid var(--line);
  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.why-pill b { font-weight: 800; letter-spacing: .07em; font-size: .6rem; margin-right: .15rem; }
.why-pill.human { background: var(--lime); color: var(--on-brand); border-color: transparent; }
.why-pill.clock { background: #1a2433; color: var(--gold); }
.why-pill.machine { background: #122033; color: #7dd3fc; border-color: #1e3a54; }
.why-pill.consensus { background: #1a2030; color: #c4b5fd; border-color: #3b3358; }
.tr-why-list { display: grid; gap: .45rem; margin: .5rem 0; }
.tr-why-row { border: 1px solid var(--line); border-radius: 10px; padding: .45rem .6rem; }
.tr-why-row .nm { font-weight: 700; }
.tr-why-row .dir { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: .3rem; }
@media (max-width: 520px) { .why-pill { font-size: .62rem; } .why-card { gap: .22rem; } }

/* Accuracy summary (Hub + How) */
.acc-sum{display:flex;gap:1rem;align-items:flex-start;flex-wrap:wrap;margin:.3rem 0 .6rem}
.acc-big{display:flex;flex-direction:column;align-items:center;min-width:5.5rem;padding:.4rem .6rem;border:1px solid rgba(255,255,255,.12);border-radius:10px}
.acc-num{font-size:1.9rem;font-weight:800;line-height:1}
.acc-unit{font-size:.7rem;opacity:.7;text-transform:uppercase;letter-spacing:.04em}
.acc-meta{flex:1;min-width:14rem}
.acc-chips{display:flex;flex-wrap:wrap;gap:.3rem;margin:.25rem 0}
.acc-chip{font-size:.75rem;padding:.1rem .45rem;border-radius:999px;background:rgba(255,255,255,.07)}
.acc-chip.acc-wk{opacity:.8}
.acc-detail>summary{cursor:pointer;margin:.3rem 0}

/* Bench card: stretched link so the Why button inside is valid HTML and its own tap target */
.td-card-link { position: relative; }
.td-card-link .td-hit { position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.td-card-link .why-card, .td-card-link .why-card-k, .td-card-link .lab-take, .td-card-link button { position: relative; z-index: 2; }
.td-card-link:focus-within { border-color: var(--lime); }

/* First-run onboarding (onboard.js) */
.onb { border: 1px solid var(--lime); border-radius: 16px; padding: .8rem .9rem; margin: 0 0 1rem; background: var(--card); box-shadow: var(--shadow); }
.onb .sec { margin-top: .2rem; }
.onb-top { display: flex; justify-content: space-between; align-items: center; }
.onb-step { font-size: .68rem; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.onb-x { background: transparent; border: 0; color: var(--muted); font: inherit; font-size: .8rem; min-height: var(--tap); padding: 0 .4rem; cursor: pointer; width: auto; }
.onb-acts { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .5rem 0; }
.onb-cta, .onb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 0 1rem; border-radius: 12px;
  font: inherit; font-weight: 800; text-decoration: none; background: var(--lime); color: var(--on-brand); border: 1px solid transparent; cursor: pointer; width: auto; }
.onb-cta.alt, .onb-btn.alt { background: transparent; color: var(--ink); border-color: var(--line); }
.onb-list { margin: .3rem 0; padding-left: 1.1rem; line-height: 1.5; }
.onb-list a { color: var(--gold); }
.onb-nav { display: flex; justify-content: space-between; gap: .5rem; margin-top: .6rem; }
.onb .why-pill { display: inline-block; }

/* Mobile card polish (~390px): tap targets, breathing room, nothing under the phone bar */
@media (max-width: 519px) {
  .wrap { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  .td-card, .lu-card > summary { padding: .8rem .85rem; gap: .5rem; border-radius: 14px; }
  .td-card .pts, .lu-card .pts { min-width: 3.9rem; }
  .td-card .meta, .lu-card .meta { font-size: .74rem; line-height: 1.35; }
  .why-card { gap: .3rem; margin-top: .45rem; }
  .why-card-k { min-height: 32px; padding: .25rem .7rem; font-size: .66rem; }
  .why-pill { max-width: 100%; white-space: normal; overflow-wrap: anywhere; font-size: .64rem; padding: .22rem .5rem; }
  .why-btn, .why-edit { min-height: var(--tap); }
  .hub-primary { gap: .55rem; }
  .hub-primary .tile { min-height: 76px; padding: .75rem .8rem; }
  .hub-primary .tile small { line-height: 1.3; }
  .hub-more > summary { font-size: .92rem; }
  .acc-sum { gap: .6rem; }
  .acc-meta { min-width: 0; flex-basis: 100%; }
  .acc-big { flex-direction: row; gap: .4rem; align-items: baseline; }
  .acc-chip { font-size: .74rem; padding: .2rem .5rem; }
  .tr-why-row { padding: .6rem .7rem; }
  .onb-acts { grid-template-columns: 1fr; }
  /* Last card clears the bottom bar + home indicator */
  .wrap > :last-child { margin-bottom: calc(var(--bot-safe) + 8px); }
}

/* Trade value charts (trade-values.html, admin-only BETA) */
.tv-gate { display: none; }
body:not(.is-admin).trade-values .tv-gate { display: block; color: var(--muted); }
.tv-tabs { display: flex; gap: .4rem; margin: .6rem 0; position: sticky; top: 0; z-index: 5; background: var(--bg, #080c14); padding: .35rem 0; }
.tv-tabs button { flex: 1 1 0; min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 800; letter-spacing: .04em; cursor: pointer; }
.tv-tabs button.on { border-color: var(--lime); color: var(--lime); background: rgba(239,68,68,.08); }
.tv-mode { font-weight: 800; }
.tv-mode-dyn { color: var(--gold, #f5c542); }
.tv-mode-ros { color: var(--lime); }
.tv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.tv-tier { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: .55rem; border-bottom: 1px solid var(--line); padding-bottom: .15rem; }
.tv-row { display: grid; grid-template-columns: 2.6rem minmax(7rem, 13rem) 4.5rem 1fr 3rem; grid-template-areas: "rk name own bar val" ". band band band band"; align-items: center; gap: .1rem .5rem; padding: .25rem .1rem; }
.tv-rk { grid-area: rk; font-size: .72rem; color: var(--muted); font-weight: 800; }
.tv-name { grid-area: name; text-decoration: none; color: inherit; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-name small { color: var(--muted); font-weight: 600; }
.tv-own { grid-area: own; font-size: .66rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-own.mine { color: var(--lime); font-weight: 800; }
.tv-own.fa { color: var(--gold, #f5c542); }
.tv-bar { grid-area: bar; height: 12px; border-radius: 6px; background: rgba(255,255,255,.05); overflow: hidden; }
.tv-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, rgba(239,68,68,.55), var(--lime)); }
.tv-row.t2 .tv-bar i { background: linear-gradient(90deg, rgba(90,200,255,.5), #5ac8ff); }
.tv-row.t3 .tv-bar i { background: linear-gradient(90deg, rgba(245,197,66,.5), #f5c542); }
.tv-row.t4 .tv-bar i, .tv-row.t5 .tv-bar i, .tv-row.t6 .tv-bar i { background: linear-gradient(90deg, rgba(160,170,190,.35), rgba(160,170,190,.7)); }
.tv-val { grid-area: val; text-align: right; font-variant-numeric: tabular-nums; }
.tv-band { grid-area: band; color: var(--muted); }
.tv-empty { color: var(--muted); padding: 1rem 0; }
/* 0–100 positional tables, L→R like W8 projections */
.trade-values .wrap { max-width: none; }
.tv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; align-items: start; }
.tv-pos h3 { margin: .2rem 0 .3rem; color: var(--lime); letter-spacing: .06em; }
.tv-tbl { width: 100%; border-collapse: collapse; font-size: .8rem; }
.tv-tbl th { text-align: left; font-size: .66rem; color: var(--muted); border-bottom: 1px solid var(--line); padding: .2rem .25rem; }
.tv-tbl td { padding: .18rem .25rem; border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: middle; }
.tv-tbl .tv-val, .tv-tbl .tv-vorp { text-align: right; font-variant-numeric: tabular-nums; width: 2.6rem; }
.tv-tbl .tv-vorp, .tv-tbl .tv-vorp b { font-weight: 900; color: #fff; }
.tv-tbl .tv-name a { color: inherit; font-weight: 700; text-decoration: none; }
.tv-tbl .tv-bar { display: block; height: 4px; margin-top: 2px; }
.tv-tbl tr.tv-tier td { font-size: .62rem; font-weight: 800; text-transform: uppercase; color: var(--muted); padding-top: .45rem; }
.tv-tbl tr.t2 .tv-bar i { background: #5ac8ff; } .tv-tbl tr.t3 .tv-bar i { background: #f5c542; }
@media (min-width: 761px) { .trade-values .tv-tabs { display: none; } }
@media (max-width: 760px) { .tv-grid { grid-template-columns: 1fr; } .tv-pos { display: none; } .tv-pos.on { display: block; } }
@media (max-width: 519px) {
  .tv-row { grid-template-columns: 2.3rem 1fr 3rem; grid-template-areas: "rk name val" "rk bar bar" ". own band"; }
  .tv-band { text-align: right; }
}
/* Phone bar: Trade tab is open to signed-in users; let tabs fill the row. */
nav.bot { grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }

/* Injury history panel (player.html) */
.ih-panel { overflow: hidden; }
.ih-cur { margin: 0 0 .5rem; font-size: .85rem; }
.ih-row { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.ih-map { flex: 0 0 auto; width: 260px; max-width: 100%; background: #f8fafc; border-radius: 10px; padding: 6px; }
.ih-map svg, .ih-tl img { width: 100%; height: auto; display: block; }
.ih-parts { flex: 1 1 260px; min-width: 0; }
.ih-h { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: .8rem 0 .35rem; }
.ih-tl { background: #f8fafc; border-radius: 10px; padding: 4px; max-width: 100%; }
.ih-tb { width: 100%; border-collapse: collapse; font-size: .8rem; }
.ih-tb th, .ih-tb td { border-bottom: 1px solid var(--line); padding: 4px 6px; text-align: left; }
.ih-tb th { color: var(--muted); font-weight: 700; }
.ih-log { max-height: 360px; overflow-y: auto; overflow-x: hidden; }
.ih-src { margin-top: .6rem; }
@media (max-width: 519px) {
  .ih-map { width: 100%; max-width: 300px; margin: 0 auto; }
  .ih-tb { font-size: .72rem; }
  .ih-tb th, .ih-tb td { padding: 3px 4px; word-break: break-word; }
}
.ih-card { position: fixed; z-index: 9999; max-width: min(320px, calc(100vw - 16px)); max-height: 70vh; overflow: auto; background: #0f0f0f; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: .75rem; box-shadow: var(--shadow); pointer-events: none; }
.ih-cb { text-transform: capitalize; font-size: .85rem; }
.ih-ct { color: var(--muted); margin: 2px 0 6px; }
.ih-ce { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 4px; }
.ih-cn { color: var(--muted); padding-left: 8px; }

/* Trade verdict card (trade-verdict.js) + playoff odds / trade grades pages */
.tr-vc { border:1px solid rgba(127,127,127,.35); border-radius:10px; padding:.5rem .7rem; margin:0 0 .6rem; }
.tr-vc-good { border-color:#2fbf71; } .tr-vc-bad { border-color:#e5484d; } .tr-vc-warn { border-color:#f5c542; }
.tr-vc-call { margin:0 0 .35rem; font-size:1.02rem; }
.tr-vc-t td.up, .po-t td.up, .tg-t td.up { color:#2fbf71; } .tr-vc-t td.dn, .po-t td.dn, .tg-t td.dn { color:#e5484d; }
.tg-grade { font-weight:800; font-size:1.05rem; }


/* Snap Kings chrome polish: typography, spacing, cards, nav logo.
   Uses the existing crown-on-football mark. Black / red / white only. */
html, body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
nav.top .brand {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  line-height: 1;
}
nav.top .brand-logo {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 6px;
  flex: 0 0 28px;
  background: #000;
}
.card, .hw-card {
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.tile {
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.tile:hover, .tile:focus-visible {
  border-color: rgba(239,68,68,.4);
  box-shadow: 0 12px 32px rgba(239,68,68,.12);
}
a:focus-visible, button:focus-visible, .tile:focus-visible, nav.top .brand:focus-visible,
nav.bot a:focus-visible, .lg-chip:focus-visible, select:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
@media (max-width: 819px) {
  nav.top .brand-logo { width: 24px; height: 24px; flex-basis: 24px; }
  nav.top {
    padding: .48rem .7rem;
    padding-top: max(.48rem, env(safe-area-inset-top));
    gap: .35rem .45rem;
  }
  nav.top .brand { font-size: .72rem; letter-spacing: .07em; }
  .wrap { padding: 1rem .9rem calc(2.4rem + env(safe-area-inset-bottom, 0px)); }
  h1 { font-size: 1.65rem; letter-spacing: -.03em; }
  .app-title { font-size: clamp(1.85rem, 8.2vw, 2.45rem); margin: .25rem 0 .3rem; }
  .app-sub { margin: 0 0 1.15rem; line-height: 1.45; }
  .tile { min-height: 5.1rem; padding: .85rem .8rem; }
  .sec { margin-top: 1.15rem; }
  nav.bot a { font-size: 10.5px; gap: .15rem; padding: .25rem .05rem .2rem; }
  nav.bot a span.ico { width: 20px; height: 20px; flex-basis: 20px; }
  nav.bot a span.ico svg { width: 20px; height: 20px; }
}
/* Mobile QA (Nov 9): keep the SNAP KINGS wordmark on one line next to the crown logo, and let the
   rankings position chips wrap instead of widening the layout viewport on phones. */
nav.top .brand { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 420px) {
  nav.top { padding-left: .5rem; padding-right: .5rem; gap: .3rem .3rem; }
  nav.top .brand { gap: .25rem; font-size: .62rem; letter-spacing: .03em; }
  nav.top .brand-logo { width: 20px; height: 20px; flex-basis: 20px; }
  nav.top .lg-chip-menu { min-width: 3.9rem; }
  nav.top .lg-chip { font-size: 11px; padding: .24rem .45rem; }
  nav.top .game-go { padding: 0 .45rem; font-size: .72rem; }
  nav.top .more-btn { padding: 0 .55rem !important; }
}
/* Sign-in wall "Sign in" button: brand white, not the old light blue. */
html #labAcctWall a.in, html .lab-acct-card a.in { border-color: rgba(255,255,255,.7); color: #ffffff; }
.tv-tabs.rk-pos { flex-wrap: wrap; }
.tv-tabs.rk-pos button { flex: 1 0 auto; min-width: 2.9rem; padding: 0 .5rem; }

/* Start: lineup controls need a session and a league. Guests see a short prompt instead. */
.sk-lineup-prompt { display: none; margin: .5rem 0; padding: .6rem .8rem; border: 1px solid rgba(239,68,68,.45); border-radius: 10px; background: rgba(239,68,68,.08); color: #fff; font-size: .9rem; }
.sk-lineup-prompt a { color: #f87171; font-weight: 700; margin-left: .35rem; }
html.sk-no-lineup .sk-lineup-ctl { display: none !important; }
html.sk-no-lineup .sk-lineup-prompt { display: block; }


/* Kingdom vault filters + tags. Black / red / white, no new logo. */
.k-vault-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .75rem; }
.k-vault-filters button {
  background: transparent; color: #fff; border: 1px solid #ef4444;
  border-radius: 8px; padding: .4rem .7rem; min-height: 44px; cursor: pointer;
  font: inherit; font-weight: 700;
}
.k-vault-filters button[aria-pressed="true"], .k-vault-filters button.on {
  background: #ef4444; color: #fff;
}
.k-tag {
  display: inline-block; margin-left: .35rem; padding: .05rem .4rem;
  border: 1px solid #ef4444; border-radius: 4px; font-size: .7rem;
  letter-spacing: .04em; text-transform: uppercase; color: #ef4444; font-weight: 800;
  vertical-align: middle;
}
.k-vault-heading { margin: 1rem 0 .4rem; font-size: 1.05rem; color: #fff; }
.k-move {
  background: transparent; color: #fff; border: 1px solid #ef4444;
  border-radius: 8px; padding: .35rem .6rem; min-height: 44px; cursor: pointer; font: inherit;
}
.lg-side .k-move { min-height: 36px; font-size: .72rem; }
nav.top .lg-chip .k-tag { font-size: .58rem; margin-left: .3rem; }
nav.top .lg-chip-menu .lg-drop .lg-drop-row {
  display: flex; align-items: stretch; gap: .2rem;
  border-bottom: 1px solid #222;
}
nav.top .lg-chip-menu .lg-drop .lg-drop-row button[data-lg] { flex: 1; }
nav.top .lg-chip-menu .lg-drop .lg-drop-row .k-move {
  flex: 0 0 auto; width: auto; max-width: 8rem; font-size: .68rem;
  letter-spacing: .02em; padding: .3rem .45rem; white-space: normal; min-height: 44px;
}

/* Phone: the chip sits mid-header, so a left-anchored 18rem menu ran off the
   right edge (~70px at 390px) and clipped "Move to … Kingdom". Position the
   open menu against the sticky header and clamp it to the bar so the full
   Move label stays on screen. Desktop (820px+) keeps the chip-aligned menu. */
@media (max-width: 819px) {
  nav.top { overflow: visible; }
  nav.top .lg-chip-menu { position: static; }
  nav.top .lg-chip-menu .lg-drop {
    left: 0;
    right: 0;
    width: auto;
    min-width: 0;
    max-width: none;
  }
  nav.top .lg-chip-menu .lg-drop .lg-drop-row .k-move { max-width: none; }
}


/* Polish / packaging: honest skeletons and freshness badges. Black / red / white only. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skel, .sk-skel-card, .sk-skel-row {
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.10) 50%, rgba(255,255,255,.04) 75%);
  background-size: 200% 100%;
  animation: skel 1.2s infinite linear;
  border-radius: 10px;
}
.skel { min-height: 120px; }
.sk-skel-card { min-height: 5.2rem; margin: 0 0 .5rem; border: 1px solid var(--line, #222); }
.sk-skel-row { display: block; min-height: 14px; margin: .35rem 0; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel, .sk-skel-card, .sk-skel-row { animation: none; } }

.sk-desk { margin: 0 0 1.15rem; }
.sk-desk > .tiny { max-width: 42rem; }
.sk-fresh { margin: .55rem 0 .2rem; }
.sk-fresh-lead { margin: 0 0 .45rem; }
.sk-fresh-warn { margin: .4rem 0; padding: .55rem .7rem; border: 1px solid #ef4444; border-radius: 10px; color: #fff; }
.sk-fresh-badges { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 .5rem; }
.sk-fresh-badge {
  display: inline-flex; flex-direction: column; gap: .1rem;
  border: 1px solid #ef4444; border-radius: 8px; padding: .3rem .55rem;
  color: #fff; font-size: .72rem; line-height: 1.3; max-width: 16rem;
}
.sk-fresh-badge.sk-fresh-stale { border-color: #ef4444; }
.sk-fresh-badge.sk-fresh-missing { border-color: #555; color: #ddd; }
.sk-fresh-k { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #ef4444; }
.sk-fresh-badge.sk-fresh-missing .sk-fresh-k { color: #bbb; }
.sk-fresh-v { font-weight: 600; }
.sk-fresh-more { border: 1px solid #75343b; border-radius: 8px; padding: 0 .6rem; margin: .35rem 0; }
.sk-fresh-more[open] { padding: .6rem; }
.sk-fresh-more summary {
  cursor: pointer; font-weight: 700; min-height: 44px;
  display: flex; align-items: center; gap: .4rem;
  box-sizing: border-box; padding: .25rem 0;
}
.sk-fresh-more summary::-webkit-details-marker { display: none; }
.sk-fresh-more summary::marker { content: none; }
.sk-fresh-more summary::before {
  content: "▶";
  content: "▶" / "";
  color: currentColor;
  flex: 0 0 auto;
  font-size: .7em;
  line-height: 1;
}
.sk-fresh-more[open] summary::before {
  content: "▼";
  content: "▼" / "";
}
.sk-fresh-list { margin: .4rem 0 0; padding-left: 1.1rem; }
