/* Redesigned pages (#pj-view): the homepage's identity, with templates for each page family.
   Tokens repeat the homepage's (base.css) on :is(#pj-view, #pj-fhead) so the old stylesheet's variables can never leak in. */
#pj-view, #pj-fhead, #pj-pending {
  --sand: #e6dbc7; --paper: #efe7d8; --sand-2: #ddd0b9; --sand-3: #d2c3a6; --rest: #c4b597; --rest-edge: #6f6250;
  --ink: #16140f; --ink-2: #2f2b24; --muted: #57503f;
  --blue: #1f45c9; --blue-ink: #efe8da; --blue-soft: #b9c6f4;
  --night: #16140f; --night-ink: #e6dbc7; --night-muted: #a89f8b; --night-blue: #6f8dff; --night-rule: #2e2a22;
  --heat-good: #1f45c9; --heat-bad: #8a6d45;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif; --text: 'Libre Franklin', 'Franklin Gothic Medium', Arial, sans-serif;
  --gut: 40px;
}
html.pj-on .app-main > .view, html.pj-on #page-head, html.pj-on #league-banner { display: none !important; }
#pj-view { font-family: var(--text); color: var(--ink); background: var(--sand); padding: 0 var(--gut) 72px; font-size: 15px; line-height: 1.45; }
:is(#pj-view, #pj-fhead) *, :is(#pj-view, #pj-fhead) *::before, :is(#pj-view, #pj-fhead) *::after { box-sizing: border-box; }
:is(#pj-view, #pj-fhead) button, :is(#pj-view, #pj-fhead) input, :is(#pj-view, #pj-fhead) select { font: inherit; color: inherit; }
:is(#pj-view, #pj-fhead) :focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
:is(#pj-view, #pj-fhead) .num, :is(#pj-view, #pj-fhead) td { font-variant-numeric: tabular-nums; }
:is(#pj-view, #pj-fhead) .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- page head ---------- */
:is(#pj-view, #pj-fhead) .pj-head { padding: 34px 0 22px; }
:is(#pj-view, #pj-fhead) .pj-head h1 { margin: 0; font: 800 76px/.9 var(--display); letter-spacing: -.005em; }
:is(#pj-view, #pj-fhead) .pj-head .dek { margin: 12px 0 0; max-width: 62ch; font-size: 18px; color: var(--ink-2); }
:is(#pj-view, #pj-fhead) .pj-head .meta { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
:is(#pj-view, #pj-fhead) h2 { margin: 0; font: 800 34px/1 var(--display); }
:is(#pj-view, #pj-fhead) h3 { margin: 0; font: 800 24px/1.05 var(--display); }
:is(#pj-view, #pj-fhead) .lede { margin: 6px 0 0; color: var(--ink-2); max-width: 70ch; }
:is(#pj-view, #pj-fhead) .note { font-size: 13.5px; color: var(--muted); max-width: 80ch; }
:is(#pj-view, #pj-fhead) .sec { margin-top: 52px; }
:is(#pj-view, #pj-fhead) .sec > .sh { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }

/* ---------- controls ---------- */
:is(#pj-view, #pj-fhead) .pj-ctl { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; padding: 14px 0; position: sticky; top: 64px; z-index: 5; background: var(--sand); box-shadow: 0 1px 0 var(--rest); }
:is(#pj-view, #pj-fhead) .pj-ctl label, :is(#pj-view, #pj-fhead) .pj-ctl .lbl { font-size: 13px; font-weight: 600; color: var(--muted); margin-right: 8px; }
:is(#pj-view, #pj-fhead) .pj-seg { display: inline-flex; flex-wrap: wrap; padding: 3px; background: var(--sand-2); }
:is(#pj-view, #pj-fhead) .pj-seg button { border: 0; background: none; padding: 7px 11px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-2); min-height: 36px; }
:is(#pj-view, #pj-fhead) .pj-seg button:hover { background: var(--sand-3); }
:is(#pj-view, #pj-fhead) .pj-seg button[aria-pressed="true"] { background: var(--ink); color: var(--sand); }
:is(#pj-view, #pj-fhead) select, :is(#pj-view, #pj-fhead) input[type="search"] { height: 40px; padding: 0 12px; border: 0; background: var(--paper); font-size: 14.5px; }
:is(#pj-view, #pj-fhead) input[type="search"] { min-width: 220px; }
:is(#pj-view, #pj-fhead) .btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 0; background: var(--ink); color: var(--sand); font-weight: 600; cursor: pointer; text-decoration: none; }
:is(#pj-view, #pj-fhead) .btn.ghost { background: var(--sand-2); color: var(--ink); } :is(#pj-view, #pj-fhead) .btn.ghost:hover { background: var(--sand-3); }
:is(#pj-view, #pj-fhead) .push { margin-left: auto; }

/* ---------- night band (the market / movers board) ---------- */
:is(#pj-view, #pj-fhead) .band { margin: 0 calc(-1 * var(--gut)); padding: 18px var(--gut) 20px; background: var(--night); color: var(--night-ink); }
:is(#pj-view, #pj-fhead) .band .note { color: var(--night-muted); }
:is(#pj-view, #pj-fhead) .movers { display: grid; grid-template-columns: auto 1fr 1fr; gap: 6px 36px; align-items: baseline; }
:is(#pj-view, #pj-fhead) .movers h2 { font-size: 26px; }
:is(#pj-view, #pj-fhead) .movers ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
:is(#pj-view, #pj-fhead) .movers li { display: flex; gap: 8px; align-items: baseline; }
:is(#pj-view, #pj-fhead) .movers li b { font: 800 22px/1 var(--display); }
:is(#pj-view, #pj-fhead) .movers .up { color: var(--night-blue); font-weight: 700; } :is(#pj-view, #pj-fhead) .movers .dn { color: #d9b98c; font-weight: 700; }
:is(#pj-view, #pj-fhead) .movers .k { font-size: 13px; color: var(--night-muted); }

/* ---------- explorer: ranked ladder + sticky dossier ---------- */
:is(#pj-view, #pj-fhead) .explorer { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(360px, 1fr); gap: 40px; align-items: start; margin-top: 8px; }
:is(#pj-view, #pj-fhead) .ladder { width: 100%; border-collapse: collapse; }
:is(#pj-view, #pj-fhead) .ladder th { position: sticky; top: 133px; z-index: 2; background: var(--sand); text-align: right; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 10px 8px 8px; box-shadow: 0 1px 0 var(--rest); white-space: nowrap; }
:is(#pj-view, #pj-fhead) .ladder th.l, :is(#pj-view, #pj-fhead) .ladder td.l { text-align: left; }
:is(#pj-view, #pj-fhead) .ladder td { padding: 9px 8px; text-align: right; white-space: nowrap; }
:is(#pj-view, #pj-fhead) .ladder tbody tr { cursor: pointer; }
:is(#pj-view, #pj-fhead) .ladder tbody tr:nth-child(even) td { background: color-mix(in oklab, var(--sand-2) 45%, var(--sand)); }
:is(#pj-view, #pj-fhead) .ladder tbody tr:hover td { background: var(--sand-2); }
:is(#pj-view, #pj-fhead) .ladder tbody tr[aria-selected="true"] td { background: var(--ink); color: var(--sand); }
:is(#pj-view, #pj-fhead) .ladder tbody tr[aria-selected="true"] .muted, :is(#pj-view, #pj-fhead) .ladder tbody tr[aria-selected="true"] small { color: var(--night-muted); }
:is(#pj-view, #pj-fhead) .ladder .rk { font: 800 26px/1 var(--display); text-align: left; width: 44px; }
:is(#pj-view, #pj-fhead) .ladder .tm b { font: 800 21px/1 var(--display); margin-right: 8px; }
:is(#pj-view, #pj-fhead) .ladder .tm small { font-size: 13px; color: var(--muted); }
:is(#pj-view, #pj-fhead) .ladder button.rowbtn { all: unset; cursor: pointer; }
:is(#pj-view, #pj-fhead) .ladder button.rowbtn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
:is(#pj-view, #pj-fhead) .mv { font-size: 13px; font-weight: 700; } :is(#pj-view, #pj-fhead) .mv.u { color: var(--blue); } :is(#pj-view, #pj-fhead) .mv.d { color: var(--heat-bad); }
:is(#pj-view, #pj-fhead) tr[aria-selected="true"] .mv.u { color: var(--night-blue); } :is(#pj-view, #pj-fhead) tr[aria-selected="true"] .mv.d { color: #d9b98c; }
:is(#pj-view, #pj-fhead) .elo { display: grid; grid-template-columns: 120px 42px; gap: 8px; align-items: center; justify-content: end; }
:is(#pj-view, #pj-fhead) .elo i { display: block; height: 8px; background: var(--sand-3); position: relative; }
:is(#pj-view, #pj-fhead) .elo i s { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }
:is(#pj-view, #pj-fhead) tr[aria-selected="true"] .elo i { background: var(--night-rule); } :is(#pj-view, #pj-fhead) tr[aria-selected="true"] .elo i s { background: var(--night-blue); }
:is(#pj-view, #pj-fhead) .pos { color: var(--blue); font-weight: 700; } :is(#pj-view, #pj-fhead) .neg { color: var(--heat-bad); font-weight: 700; }
:is(#pj-view, #pj-fhead) tr[aria-selected="true"] .pos { color: var(--night-blue); } :is(#pj-view, #pj-fhead) tr[aria-selected="true"] .neg { color: #d9b98c; }
:is(#pj-view, #pj-fhead) .form5 { display: inline-flex; gap: 2px; vertical-align: middle; } :is(#pj-view, #pj-fhead) .form5 span { width: 9px; height: 14px; background: var(--rest); } :is(#pj-view, #pj-fhead) .form5 span.w { background: var(--ink); }
:is(#pj-view, #pj-fhead) tr[aria-selected="true"] .form5 span { background: var(--night-rule); } :is(#pj-view, #pj-fhead) tr[aria-selected="true"] .form5 span.w { background: var(--sand); }

:is(#pj-view, #pj-fhead) .dossier { position: sticky; top: 140px; background: var(--paper); padding: 26px 26px 22px; max-height: calc(100vh - 156px); overflow: auto; }
:is(#pj-view, #pj-fhead) .dossier .who { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
:is(#pj-view, #pj-fhead) .dossier .who h2 { font-size: 46px; line-height: .92; }
:is(#pj-view, #pj-fhead) .dossier .who .rkbig { font: 800 64px/.8 var(--display); color: var(--blue); }
:is(#pj-view, #pj-fhead) .dossier .sub { margin-top: 6px; color: var(--ink-2); }
:is(#pj-view, #pj-fhead) .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 18px; }
:is(#pj-view, #pj-fhead) .facts div { background: var(--sand-2); padding: 10px 12px 9px; }
:is(#pj-view, #pj-fhead) .facts b { display: block; font: 800 30px/1 var(--display); }
:is(#pj-view, #pj-fhead) .facts span { font-size: 12.5px; color: var(--muted); }
:is(#pj-view, #pj-fhead) .tabs { display: flex; gap: 2px; margin: 22px 0 14px; flex-wrap: wrap; }
:is(#pj-view, #pj-fhead) .tabs button { border: 0; background: none; padding: 8px 10px; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; border-bottom: 3px solid transparent; min-height: 40px; }
:is(#pj-view, #pj-fhead) .tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
:is(#pj-view, #pj-fhead) .tabs button:hover { background: var(--sand-2); }
:is(#pj-view, #pj-fhead) .kv { width: 100%; border-collapse: collapse; font-size: 14px; }
:is(#pj-view, #pj-fhead) .kv th { text-align: right; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 6px 6px; box-shadow: 0 1px 0 var(--rest); }
:is(#pj-view, #pj-fhead) .kv th.l, :is(#pj-view, #pj-fhead) .kv td.l { text-align: left; }
:is(#pj-view, #pj-fhead) .kv td { text-align: right; padding: 7px 6px; box-shadow: 0 1px 0 color-mix(in oklab, var(--rest) 50%, transparent); }
:is(#pj-view, #pj-fhead) .rankbar { display: grid; grid-template-columns: minmax(0, 1fr) 54px; gap: 10px; align-items: center; padding: 7px 0; }
:is(#pj-view, #pj-fhead) .rankbar .t { font-size: 14px; } :is(#pj-view, #pj-fhead) .rankbar .t small { display: block; color: var(--muted); font-size: 12.5px; }
:is(#pj-view, #pj-fhead) .rankbar .v { text-align: right; font: 800 22px/1 var(--display); }
:is(#pj-view, #pj-fhead) .rankstrip { position: relative; height: 10px; margin-top: 5px; background: linear-gradient(90deg, var(--blue) 0 26.6%, var(--sand-3) 26.6% 73.3%, var(--rest) 73.3%); }
:is(#pj-view, #pj-fhead) .rankstrip i { position: absolute; top: -4px; width: 4px; height: 18px; background: var(--ink); transform: translateX(-2px); }
:is(#pj-view, #pj-fhead) .chart { display: block; width: 100%; height: auto; overflow: visible; }
:is(#pj-view, #pj-fhead) .chart .ln { fill: none; stroke: var(--ink); stroke-width: 2.2; }
:is(#pj-view, #pj-fhead) .chart .ref { stroke: var(--rest-edge); stroke-width: 1.2; stroke-dasharray: 4 4; }
:is(#pj-view, #pj-fhead) .chart .tk { font: 500 12.5px var(--text); fill: var(--muted); }
:is(#pj-view, #pj-fhead) .chart .lab { font: 700 13.5px var(--text); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; }
:is(#pj-view, #pj-fhead) .chart .end { fill: var(--blue); }
:is(#pj-view, #pj-fhead) .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
:is(#pj-view, #pj-fhead) .chip { padding: 3px 8px; font-size: 13px; font-weight: 600; background: var(--sand-2); }
:is(#pj-view, #pj-fhead) .chip.bad { background: var(--ink); color: var(--sand); }

/* ---------- dumbbell: model vs market ---------- */
:is(#pj-view, #pj-fhead) .db { display: grid; grid-template-columns: minmax(130px, 200px) minmax(0, 1fr) 70px; gap: 6px 18px; align-items: center; }
:is(#pj-view, #pj-fhead) .db .g { font-weight: 600; } :is(#pj-view, #pj-fhead) .db .g small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
:is(#pj-view, #pj-fhead) .db svg { width: 100%; height: 30px; overflow: visible; }
:is(#pj-view, #pj-fhead) .db .gap { text-align: right; font: 800 22px/1 var(--display); }
:is(#pj-view, #pj-fhead) .key { display: inline-block; width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px; }
:is(#pj-view, #pj-fhead) .key.m { background: var(--blue); border-radius: 50%; } :is(#pj-view, #pj-fhead) .key.b { background: var(--ink); }

/* ---------- dense research table (terminal) ---------- */
:is(#pj-view, #pj-fhead) .terminal { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
:is(#pj-view, #pj-fhead) .scroll { overflow-x: auto; }
:is(#pj-view, #pj-fhead) .grid { width: 100%; border-collapse: collapse; font-size: 14.5px; }
:is(#pj-view, #pj-fhead) .grid th { position: sticky; top: 133px; z-index: 2; background: var(--sand); text-align: right; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 9px 8px 7px; box-shadow: 0 1px 0 var(--rest); white-space: nowrap; }
:is(#pj-view, #pj-fhead) .grid th button { all: unset; cursor: pointer; } :is(#pj-view, #pj-fhead) .grid th button:focus-visible { outline: 2px solid var(--blue); }
:is(#pj-view, #pj-fhead) .grid th[aria-sort] { color: var(--ink); }
:is(#pj-view, #pj-fhead) .grid th.l, :is(#pj-view, #pj-fhead) .grid td.l { text-align: left; }
:is(#pj-view, #pj-fhead) .grid td { padding: 8px 8px; text-align: right; white-space: nowrap; box-shadow: 0 1px 0 color-mix(in oklab, var(--rest) 45%, transparent); }
:is(#pj-view, #pj-fhead) .grid tbody tr { cursor: pointer; } :is(#pj-view, #pj-fhead) .grid tbody tr:hover td { background: var(--sand-2); }
:is(#pj-view, #pj-fhead) .grid tbody tr[aria-selected="true"] td { background: var(--ink); color: var(--sand); }
:is(#pj-view, #pj-fhead) .grid tbody tr[aria-selected="true"] small { color: var(--night-muted); }
:is(#pj-view, #pj-fhead) .grid td b { font-weight: 700; } :is(#pj-view, #pj-fhead) .grid td small { color: var(--muted); font-size: 12.5px; margin-left: 6px; }
:is(#pj-view, #pj-fhead) .grid td.focus { font: 800 20px/1 var(--display); }
:is(#pj-view, #pj-fhead) .range { display: block; position: relative; width: 150px; height: 14px; margin-left: auto; }
:is(#pj-view, #pj-fhead) .range i { position: absolute; top: 5px; height: 4px; background: var(--rest); }
:is(#pj-view, #pj-fhead) .range b { position: absolute; top: 1px; width: 3px; height: 12px; background: var(--ink); transform: translateX(-1px); }
:is(#pj-view, #pj-fhead) .range u { position: absolute; top: -1px; width: 2px; height: 16px; background: var(--blue); transform: translateX(-1px); }
:is(#pj-view, #pj-fhead) tr[aria-selected="true"] .range i { background: var(--night-rule); } :is(#pj-view, #pj-fhead) tr[aria-selected="true"] .range b { background: var(--sand); }
:is(#pj-view, #pj-fhead) .grade { display: inline-block; min-width: 30px; padding: 2px 6px; text-align: center; font-size: 13px; font-weight: 700; background: var(--sand-2); }
:is(#pj-view, #pj-fhead) .grade.on { background: var(--blue); color: var(--blue-ink); }
:is(#pj-view, #pj-fhead) .card { background: var(--paper); padding: 22px; position: sticky; top: 140px; }
:is(#pj-view, #pj-fhead) .card h2 { font-size: 38px; line-height: .95; }
:is(#pj-view, #pj-fhead) .statrow { display: grid; grid-template-columns: 96px minmax(0, 1fr) 60px; gap: 10px; align-items: center; padding: 6px 0; font-size: 14px; }
:is(#pj-view, #pj-fhead) .statrow .v { text-align: right; font: 800 22px/1 var(--display); }
:is(#pj-view, #pj-fhead) .statrow .range { width: 100%; }
:is(#pj-view, #pj-fhead) .board { margin-top: 10px; }
:is(#pj-view, #pj-fhead) .board .grid th { background: var(--night); color: var(--night-muted); box-shadow: 0 1px 0 var(--night-rule); position: static; }
:is(#pj-view, #pj-fhead) .board .grid td { box-shadow: 0 1px 0 var(--night-rule); }
:is(#pj-view, #pj-fhead) .board .grid tbody tr:hover td { background: #221f18; }
:is(#pj-view, #pj-fhead) .board .grade { background: var(--night-rule); color: var(--night-ink); } :is(#pj-view, #pj-fhead) .board .grade.on { background: var(--night-blue); color: var(--night); }
:is(#pj-view, #pj-fhead) .board .pos { color: var(--night-blue); } :is(#pj-view, #pj-fhead) .board .neg { color: #d9b98c; }

/* ---------- states ---------- */
:is(#pj-view, #pj-fhead) .pj-empty { background: var(--paper); padding: 22px 24px; max-width: 760px; }
:is(#pj-view, #pj-fhead) .pj-empty b { font: 800 24px/1.1 var(--display); display: block; }
:is(#pj-view, #pj-fhead) .pj-empty p { margin: 8px 0 0; color: var(--ink-2); }
#pj-pending { margin: 0 40px 12px; padding: 10px 14px; background: var(--ink); color: var(--sand); font: 500 14px/1.4 var(--text); }
#pj-pending b { color: #fff; }
#pj-pending[hidden] { display: none; }

@media (max-width: 1100px) {
  :is(#pj-view, #pj-fhead) .explorer, :is(#pj-view, #pj-fhead) .terminal { grid-template-columns: minmax(0, 1fr); }
  :is(#pj-view, #pj-fhead) .dossier, :is(#pj-view, #pj-fhead) .card { position: static; max-height: none; }
  :is(#pj-view, #pj-fhead) .movers { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :is(#pj-view, #pj-fhead) { --gut: 16px; font-size: 15px; }
  :is(#pj-view, #pj-fhead) .pj-head { padding: 22px 0 16px; } :is(#pj-view, #pj-fhead) .pj-head h1 { font-size: 50px; } :is(#pj-view, #pj-fhead) .pj-head .dek { font-size: 16px; }
  :is(#pj-view, #pj-fhead) .pj-ctl { top: 56px; gap: 10px; } :is(#pj-view, #pj-fhead) .pj-seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; } :is(#pj-view, #pj-fhead) .pj-seg button { white-space: nowrap; }
  :is(#pj-view, #pj-fhead) .ladder th, :is(#pj-view, #pj-fhead) .grid th { top: 0; position: static; }
  :is(#pj-view, #pj-fhead) .ladder .hide-s, :is(#pj-view, #pj-fhead) .grid .hide-s { display: none; }
  :is(#pj-view, #pj-fhead) .elo { grid-template-columns: 54px 36px; }
  :is(#pj-view, #pj-fhead) .dossier { padding: 18px 16px; margin: 0 -16px; } :is(#pj-view, #pj-fhead) .dossier .who h2 { font-size: 38px; } :is(#pj-view, #pj-fhead) .dossier .who .rkbig { font-size: 50px; }
  :is(#pj-view, #pj-fhead) .db { grid-template-columns: minmax(0, 1fr) 56px; } :is(#pj-view, #pj-fhead) .db { grid-auto-flow: row dense; } :is(#pj-view, #pj-fhead) .db svg { grid-column: 1 / -1; } :is(#pj-view, #pj-fhead) .db .gap { grid-column: 2; }
  :is(#pj-view, #pj-fhead) .card { margin: 0 -16px; padding: 18px 16px; }
  #pj-pending { margin: 0 16px 12px; }
}
@media (prefers-reduced-motion: no-preference) { :is(#pj-view, #pj-fhead) .dossier, :is(#pj-view, #pj-fhead) .card { animation: pjIn .25s ease-out both; } @keyframes pjIn { from { opacity: .4; } } }
/* Sticky table heads need an unclipped ancestor: tables scroll sideways only where they would not fit (phones, tablets). */
@media (min-width: 1101px) { :is(#pj-view, #pj-fhead) .explorer > .scroll, :is(#pj-view, #pj-fhead) .terminal > .scroll { overflow: visible; } }
:is(#pj-view, #pj-fhead) .band .pj-seg { background: var(--night-rule); }
:is(#pj-view, #pj-fhead) .band .pj-seg button { color: var(--night-muted); } :is(#pj-view, #pj-fhead) .band .pj-seg button:hover { background: #3a352b; color: var(--night-ink); }
:is(#pj-view, #pj-fhead) .band .pj-seg button[aria-pressed="true"] { background: var(--night-ink); color: var(--night); }
@media (max-width: 720px) { :is(#pj-view, #pj-fhead) .pj-ctl { position: static; box-shadow: none; } }
/* The filter bar sticks only while its own table is on screen. */
:is(#pj-view, #pj-fhead) .stage { position: relative; }
:is(#pj-view, #pj-fhead) .sec .grid th { top: 64px; }
@media (max-width: 720px) { :is(#pj-view, #pj-fhead) .sec .grid th { position: static; } }
@media (min-width: 1101px) { :is(#pj-view, #pj-fhead) .sec > .scroll { overflow: visible; } }
@media (max-width: 1100px) { :is(#pj-view, #pj-fhead) .grid th, :is(#pj-view, #pj-fhead) .ladder th { position: static; } }

/* =====================================================================================================================
   Framed pages (html.pj-frame): heavy interactive tools keep their working page under the new page head, and every
   component they use is redrawn in the homepage's system: square, cream and ink, Big Shoulders for titles and key
   numbers, segmented controls instead of pills, hairline tables instead of boxes, the night band for market boards.
   Selectors start with :is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) so they beat the older :root:not(#u) rules without !important.
   ===================================================================================================================== */
#pj-fhead { font-family: 'Libre Franklin', 'Franklin Gothic Medium', Arial, sans-serif; color: var(--ink); background: var(--sand); padding: 0 var(--gut) 8px; font-size: 15px; line-height: 1.45; }
#pj-fhead[hidden] { display: none; }
#pj-fhead .pj-head h1 { margin: 0; font: 800 76px/.9 'Big Shoulders Display', 'Arial Narrow', sans-serif; }
#pj-fhead .pj-head .dek { margin: 12px 0 0; max-width: 62ch; font-size: 18px; color: var(--ink-2); }
#pj-fhead .pj-head .meta { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
html.pj-frame #page-head, html.pj-frame #pj-pending { display: none !important; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) { font-family: 'Libre Franklin', 'Franklin Gothic Medium', Arial, sans-serif; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) .view { padding-top: 0; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) .hero-header { padding-top: 0 !important; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) .hero-header .subtitle, :is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) .hero-header p { font-size: 13.5px; color: #57503f; }

/* titles */
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) :is(.section-title, .home-card-title, .results-title, .calib-title, .policy-title, .mt-card-title, .nba-sec > h3, .fh-head h2, .calendar-title, h2) { font-family: 'Big Shoulders Display', 'Arial Narrow', sans-serif; font-weight: 800; font-size: 32px; line-height: 1.02; letter-spacing: 0; text-transform: none; color: #16140f; margin-bottom: 8px; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) :is(.results-subtitle, .nba-box h4, .fh-kicker, h3, h4) { font-family: 'Big Shoulders Display', 'Arial Narrow', sans-serif; font-weight: 800; font-size: 22px; line-height: 1.05; letter-spacing: 0; text-transform: none; color: #16140f; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) .fh-kicker { font-size: 15px; color: #57503f; }

/* surfaces: one flat paper panel, no borders, no rounded corners, no shadows */
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) :is(.home-card, .nba-box, .pikkit-panel, .calib-panel, .policy-panel, .results-panel, .mt-card, .legend-panel, .pick-card, .trade-side, .fh-tool, .stat-box, .slate-stat, .nba-tile, .roster-moves, .league-settings-row, .section-collapsible, .pipeline, .tab-panel > .card, .card) { background: #efe7d8; border: 0; border-radius: 0; box-shadow: none; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) :is(.home-section, .nba-sec) { background: none; border: 0; box-shadow: none; padding-left: 0; padding-right: 0; margin-top: 40px; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) :is(.nfl-phase-note, .legend-note, .calib-note, .policy-note, .results-note) { background: none; border: 0; padding: 0; font-size: 13.5px; color: #57503f; max-width: 82ch; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) :is(.home-note, .nba-note, .mt-sub, .note-clamp) { font-size: 13.5px; color: #57503f; }

/* controls: segmented groups, square buttons */
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) :is(.filter-row, .bb-fgroup, .nba-filter, .ps-bar, .fx-subnav, .tab-row, .fh-tabs, .nba-tabs, .risk-tier-bar, .nba-chips) { gap: 0; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) :is(.filter-btn, .fx-tab, .nba-tab, .ps-pill, .tab-btn, .risk-tier-btn, .fh-tab, .jumpnav-link) { border: 0; border-radius: 0; background: #ddd0b9; color: #2f2b24; font: 600 14px/1 'Libre Franklin', Arial, sans-serif; padding: 10px 12px; min-height: 38px; margin: 0; box-shadow: none; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) :is(.filter-btn, .fx-tab, .nba-tab, .ps-pill, .tab-btn, .risk-tier-btn, .fh-tab, .jumpnav-link):hover { background: #d2c3a6; color: #16140f; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) :is(.filter-btn, .fx-tab, .nba-tab, .ps-pill, .tab-btn, .risk-tier-btn, .fh-tab).active { background: #16140f; color: #e6dbc7; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) :is(.filter-btn, .fx-tab, .nba-tab, .ps-pill, .tab-btn, .risk-tier-btn, .fh-tab).active::after { display: none; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) :is(.bb-flabel, .jumpnav-label, .risk-tier-label, .unit-pct-label, .label) { font: 600 13px 'Libre Franklin', Arial, sans-serif; color: #57503f; text-transform: none; letter-spacing: 0; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) :is(button.home-link, a.home-link, .home-link) { border-radius: 0; color: #1f45c9; font-weight: 600; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) :is(input[type="text"], input[type="search"], input[type="number"], input:not([type]), select, textarea, .table-search, .trade-player-search, .nba-select, .unit-pct-input) { border: 0; border-radius: 0; background: #efe7d8; color: #16140f; min-height: 40px; padding: 0 12px; box-shadow: inset 0 -2px 0 #d2c3a6; font: 500 14.5px 'Libre Franklin', Arial, sans-serif; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) :is(input, select, textarea):focus-visible { outline: 3px solid #1f45c9; outline-offset: 1px; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) :is(.btn, .pikkit-actions button, .wr-actions button, .bankroll-actions button, button.primary) { border-radius: 0; }

/* tables: hairlines, muted heads, tabular numbers */
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) :is(.ratings-table, .nba-table, .mt-table, table) { border-collapse: collapse; border: 0; background: none; font-variant-numeric: tabular-nums; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) :is(.ratings-table, .nba-table, .mt-table) th { background: #e6dbc7; color: #57503f; font: 600 12.5px 'Libre Franklin', Arial, sans-serif; text-transform: none; letter-spacing: 0; border: 0; box-shadow: 0 1px 0 #c4b597; padding: 9px 8px 7px; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) :is(.ratings-table, .nba-table, .mt-table) td { border: 0; box-shadow: 0 1px 0 rgba(196, 181, 151, .5); padding: 8px; background: none; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) :is(.ratings-table, .nba-table, .mt-table) tr:hover td { background: #ddd0b9; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) :is(.pikkit-table-wrap, .nba-scroll) { border: 0; border-radius: 0; background: none; box-shadow: none; }

/* marks: grades square, A in the model's blue */
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) :is(.grade-badge, .nba-chip, .abs-chip, .mt-badge, .legend-summary-chip, .pick-sport, .sg-badge, .chip) { border-radius: 0; border: 0; box-shadow: none; font-weight: 700; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) :is(.grade-A, .grade-card-A .grade-badge) { background: #1f45c9; color: #efe8da; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) .grade-B { background: #16140f; color: #e6dbc7; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) .grade-C { background: #d2c3a6; color: #16140f; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) .grade-PASS { background: #ddd0b9; color: #2f2b24; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) :is(.pos, .positive) { color: #1f45c9; } :is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) :is(.neg, .negative) { color: #8a6d45; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) :is(.stat-box .value, .slate-n, .record-main, .cal-day-num, .pn b, .t-v, .fh-tool b) { font-family: 'Big Shoulders Display', 'Arial Narrow', sans-serif; font-weight: 800; letter-spacing: 0; }

/* empty and loading states */
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) :is(.empty-state, .nba-empty, .home-empty, .mt-none, .no-bets) { border: 0; border-radius: 0; background: #efe7d8; color: #2f2b24; padding: 20px 22px; text-align: left; font-size: 15px; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) .empty-state::before, :is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) .empty-state .empty-icon { display: none; }

/* calendar */
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) .calendar-cell { border-radius: 0; border: 0; background: #efe7d8; box-shadow: none; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) .calendar-cell.today { box-shadow: inset 0 0 0 2px #16140f; }

/* overlays (game, team and player detail views not yet rebuilt as routes) */
:root:not(#u) #entity-overlay .entity-panel { border-radius: 0; background: #e6dbc7; box-shadow: 0 30px 60px -30px rgba(22, 20, 15, .6); }
:root:not(#u) #entity-overlay .gc-teams { font-family: 'Big Shoulders Display', 'Arial Narrow', sans-serif; font-weight: 800; font-size: 40px; letter-spacing: 0; }
:root:not(#u) #entity-overlay :is(.tab-btn, .filter-btn) { border-radius: 0; }

@media (max-width: 720px) {
  #pj-fhead { padding: 0 16px 8px; } #pj-fhead .pj-head h1 { font-size: 50px; } #pj-fhead .pj-head .dek { font-size: 16px; }
  :is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) :is(.filter-row, .bb-fgroup, .nba-filter, .ps-bar, .fx-subnav, .tab-row, .fh-tabs, .nba-tabs) { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  :is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) :is(.filter-btn, .fx-tab, .nba-tab, .ps-pill, .tab-btn, .fh-tab) { white-space: nowrap; flex: none; }
}

/* ---------- markets: track record band, filter groups, the bet board ---------- */
:is(#pj-view, #pj-fhead) .trk { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 8px 36px; align-items: start; }
:is(#pj-view, #pj-fhead) .trk p { margin: 0 0 6px; max-width: 86ch; } :is(#pj-view, #pj-fhead) .trk b.pos { color: var(--night-blue); } :is(#pj-view, #pj-fhead) .trk b.neg { color: #d9b98c; }
:is(#pj-view, #pj-fhead) .acts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; }
:is(#pj-view, #pj-fhead) .lnk { border: 0; background: none; padding: 4px 0; color: var(--blue); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; min-height: 32px; }
:is(#pj-view, #pj-fhead) .band .lnk { color: var(--night-blue); }
:is(#pj-view, #pj-fhead) .wrapctl { flex-wrap: wrap; gap: 8px 18px; }
:is(#pj-view, #pj-fhead) .fg { display: inline-flex; align-items: center; gap: 8px; } :is(#pj-view, #pj-fhead) .fg .lbl { margin: 0; }
:is(#pj-view, #pj-fhead) .wrapctl .pj-seg button { padding: 6px 9px; min-height: 34px; font-size: 13.5px; }
:is(#pj-view, #pj-fhead) .bets { margin-top: 12px; }
:is(#pj-view, #pj-fhead) .bethead, :is(#pj-view, #pj-fhead) details.bet > summary { display: grid; grid-template-columns: 74px minmax(0, 2.6fr) repeat(3, minmax(84px, 1fr)) 60px; gap: 14px; align-items: center; }
:is(#pj-view, #pj-fhead) .bethead { padding: 8px 14px 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); box-shadow: 0 1px 0 var(--rest); }
:is(#pj-view, #pj-fhead) .bethead span:nth-child(n+3) { text-align: right; }
:is(#pj-view, #pj-fhead) details.bet { box-shadow: 0 1px 0 color-mix(in oklab, var(--rest) 55%, transparent); }
:is(#pj-view, #pj-fhead) details.bet > summary { list-style: none; cursor: pointer; padding: 12px 14px; }
:is(#pj-view, #pj-fhead) details.bet > summary::-webkit-details-marker { display: none; }
:is(#pj-view, #pj-fhead) details.bet > summary:hover { background: var(--sand-2); }
:is(#pj-view, #pj-fhead) details.bet[open] > summary { background: var(--ink); color: var(--sand); }
:is(#pj-view, #pj-fhead) details.bet[open] > summary small { color: var(--night-muted); }
:is(#pj-view, #pj-fhead) details.bet[open] > summary .pos { color: var(--night-blue); } :is(#pj-view, #pj-fhead) details.bet[open] > summary .neg { color: #d9b98c; }
:is(#pj-view, #pj-fhead) details.bet .sp { font-weight: 700; font-size: 13.5px; } :is(#pj-view, #pj-fhead) details.bet .sp small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
:is(#pj-view, #pj-fhead) details.bet .hd b { display: block; font: 800 23px/1.05 var(--display); } :is(#pj-view, #pj-fhead) details.bet .hd small { color: var(--muted); font-size: 13px; }
:is(#pj-view, #pj-fhead) details.bet .n { text-align: right; font: 800 22px/1 var(--display); } :is(#pj-view, #pj-fhead) details.bet .n small { display: none; }
:is(#pj-view, #pj-fhead) details.bet .g { text-align: right; }
:is(#pj-view, #pj-fhead) .grade.b { background: var(--ink); color: var(--sand); }
:is(#pj-view, #pj-fhead) details.bet[open] .grade { background: var(--night-rule); color: var(--night-ink); } :is(#pj-view, #pj-fhead) details.bet[open] .grade.on { background: var(--night-blue); color: var(--night); }
:is(#pj-view, #pj-fhead) details.bet .body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 28px; padding: 18px 14px 22px; background: var(--paper); }
:is(#pj-view, #pj-fhead) details.bet .body p { margin: 8px 0; } :is(#pj-view, #pj-fhead) details.bet h4 { margin: 14px 0 4px; font: 800 19px/1 var(--display); }
:is(#pj-view, #pj-fhead) .why { margin: 0; padding: 0; list-style: none; } :is(#pj-view, #pj-fhead) .why li { padding: 4px 0; } :is(#pj-view, #pj-fhead) .why li b { display: inline-block; width: 16px; }
:is(#pj-view, #pj-fhead) .warn { padding: 8px 10px; background: var(--sand-2); }
:is(#pj-view, #pj-fhead) details.bet .facts { grid-template-columns: repeat(2, 1fr); margin-top: 0; align-content: start; }
:is(#pj-view, #pj-fhead) details.bet .facts p { grid-column: 1 / -1; }
:is(#pj-view, #pj-fhead) .facts b small { font: 600 14px var(--text); color: var(--muted); }
:is(#pj-view, #pj-fhead) .mm { position: relative; height: 54px; margin: 6px 0 4px; }
:is(#pj-view, #pj-fhead) .mm i { position: absolute; top: 15px; height: 4px; background: var(--rest); }
:is(#pj-view, #pj-fhead) .mm b { position: absolute; top: 10px; width: 14px; height: 14px; transform: translateX(-7px); }
:is(#pj-view, #pj-fhead) .mm b.m { background: var(--blue); border-radius: 50%; } :is(#pj-view, #pj-fhead) .mm b.k { background: var(--ink); }
:is(#pj-view, #pj-fhead) .mm span { position: absolute; top: 30px; transform: translateX(-50%); font-size: 13px; font-weight: 600; white-space: nowrap; }
:is(#pj-view, #pj-fhead) .mm .ml { color: var(--blue); }
:is(#pj-view, #pj-fhead) details.passes > summary { list-style: none; cursor: pointer; } :is(#pj-view, #pj-fhead) details.passes > summary::-webkit-details-marker { display: none; }
:is(#pj-view, #pj-fhead) details.passes > summary h2::after { content: ' +'; color: var(--muted); } :is(#pj-view, #pj-fhead) details.passes[open] > summary h2::after { content: ' −'; }
:is(#pj-view, #pj-fhead) .grid td.wrap { white-space: normal; min-width: 260px; }
:is(#pj-view, #pj-fhead) .grid td.l small { display: block; margin-left: 0; }
:is(#pj-view, #pj-fhead) .kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
:is(#pj-view, #pj-fhead) .kpis b { display: block; font: 800 48px/1 var(--display); } :is(#pj-view, #pj-fhead) .kpis span { font-size: 13px; color: var(--night-muted); }
:is(#pj-view, #pj-fhead) .kpis b.up { color: var(--night-blue); } :is(#pj-view, #pj-fhead) .kpis b.dn { color: #d9b98c; }
:is(#pj-view, #pj-fhead) .btn[aria-pressed="true"] { background: var(--ink); color: var(--sand); }
@media (max-width: 900px) {
  :is(#pj-view, #pj-fhead) .trk { grid-template-columns: 1fr; }
  :is(#pj-view, #pj-fhead) .bethead { display: none; }
  :is(#pj-view, #pj-fhead) details.bet > summary { grid-template-columns: minmax(0, 1fr) repeat(3, auto); grid-template-areas: "hd hd hd g" "sp n1 n2 n3"; gap: 6px 14px; }
  :is(#pj-view, #pj-fhead) details.bet .hd { grid-area: hd; } :is(#pj-view, #pj-fhead) details.bet .g { grid-area: g; } :is(#pj-view, #pj-fhead) details.bet .sp { grid-area: sp; }
  :is(#pj-view, #pj-fhead) details.bet .n small { display: block; font: 500 12px var(--text); color: var(--muted); }
  :is(#pj-view, #pj-fhead) details.bet .body { grid-template-columns: 1fr; }
  :is(#pj-view, #pj-fhead) .kpis { grid-template-columns: repeat(2, 1fr); }
}
:root :is(#pj-view, #pj-fhead) details > summary { color: var(--ink); font-size: 15px; text-transform: none; }
:root :is(#pj-view, #pj-fhead) details.bet[open] > summary { color: var(--sand); }
@media (min-width: 1101px) { :is(#pj-view, #pj-fhead) .scroll { overflow: visible; } }

/* ---------- Today ---------- */
:is(#pj-view, #pj-fhead) .today-strip { margin: 0 calc(-1 * var(--gut)); }
:is(#pj-view, #pj-fhead) .strip { display: flex; align-items: stretch; gap: 3px; padding: 0 var(--gut) 4px; overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x proximity; }
:is(#pj-view, #pj-fhead) .strip .lg { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; padding: 0 14px 0 6px; font-size: 13px; color: var(--muted); }
:is(#pj-view, #pj-fhead) .strip .lg b { font: 800 22px/1 var(--display); color: var(--ink); }
:is(#pj-view, #pj-fhead) .cell { flex: 0 0 auto; scroll-snap-align: start; display: grid; grid-template-columns: auto auto; gap: 0 14px; align-items: baseline; min-height: 64px; padding: 9px 14px 8px; background: var(--sand-2); border: 0; cursor: pointer; text-align: left; color: var(--ink); }
:is(#pj-view, #pj-fhead) .cell b, :is(#pj-view, #pj-fhead) .cell span { font: 800 21px/1.1 var(--display); } :is(#pj-view, #pj-fhead) .cell span { text-align: right; }
:is(#pj-view, #pj-fhead) .cell small { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); } :is(#pj-view, #pj-fhead) .cell small.t { color: var(--muted); font-size: 12.5px; }
:is(#pj-view, #pj-fhead) .cell:hover { background: var(--sand-3); }
:is(#pj-view, #pj-fhead) .hero2 { margin-top: 26px; padding-top: 30px; padding-bottom: 30px; }
:is(#pj-view, #pj-fhead) .hero2 .kick { margin: 0; font-size: 14px; color: var(--night-muted); font-weight: 600; }
:is(#pj-view, #pj-fhead) .hero2 h2 { font-size: 64px; line-height: .92; margin: 6px 0 14px; }
:is(#pj-view, #pj-fhead) .hero2 .big { display: flex; flex-wrap: wrap; gap: 10px 44px; margin: 0 0 10px; }
:is(#pj-view, #pj-fhead) .hero2 .big span { font: 800 46px/1 var(--display); } :is(#pj-view, #pj-fhead) .hero2 .big span:last-child { color: var(--night-blue); }
:is(#pj-view, #pj-fhead) .hero2 .big small { display: block; font: 500 13px var(--text); color: var(--night-muted); margin-bottom: 4px; }
:is(#pj-view, #pj-fhead) .leagues { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
:is(#pj-view, #pj-fhead) .leagues h3 { margin-bottom: 8px; }
:is(#pj-view, #pj-fhead) a.go { display: block; padding: 9px 0; text-decoration: none; color: var(--ink); box-shadow: 0 1px 0 color-mix(in oklab, var(--rest) 55%, transparent); }
:is(#pj-view, #pj-fhead) a.go b { font-weight: 700; } :is(#pj-view, #pj-fhead) a.go small { display: block; color: var(--muted); font-size: 13px; }
:is(#pj-view, #pj-fhead) a.go:hover b { color: var(--blue); }
:is(#pj-view, #pj-fhead) .rec p { margin: 0 0 6px; max-width: 80ch; }
:is(#pj-view, #pj-fhead) .grid tbody tr[onclick] { cursor: pointer; }
@media (max-width: 900px) { :is(#pj-view, #pj-fhead) .leagues { grid-template-columns: repeat(2, minmax(0, 1fr)); } :is(#pj-view, #pj-fhead) .hero2 h2 { font-size: 46px; } :is(#pj-view, #pj-fhead) .hero2 .big span { font-size: 36px; } }
@media (max-width: 520px) { :is(#pj-view, #pj-fhead) .leagues { grid-template-columns: 1fr; } }
:root :is(#pj-view, #pj-fhead) h2 { margin: 0; font: 800 34px/1 var(--display); letter-spacing: 0; color: inherit; }
:root :is(#pj-view, #pj-fhead) h3 { margin: 0; font: 800 24px/1.05 var(--display); letter-spacing: 0; color: inherit; }
:root :is(#pj-view, #pj-fhead) .pj-head h1 { font: 800 76px/.9 var(--display); letter-spacing: -.005em; }
:root :is(#pj-view, #pj-fhead) .hero2 h2 { font-size: 64px; line-height: .92; margin: 6px 0 14px; }
:root :is(#pj-view, #pj-fhead) .dossier .who h2 { font-size: 46px; line-height: .92; } :root :is(#pj-view, #pj-fhead) .card h2 { font-size: 38px; line-height: .95; } :root :is(#pj-view, #pj-fhead) .movers h2 { font-size: 26px; }
@media (max-width: 900px) { :root :is(#pj-view, #pj-fhead) .hero2 h2 { font-size: 46px; } }
@media (max-width: 720px) { :root :is(#pj-view, #pj-fhead) .pj-head h1 { font-size: 50px; } :root :is(#pj-view, #pj-fhead) .dossier .who h2 { font-size: 38px; } }

/* ---------- NBA games: hub rows, probability split, game page ---------- */
:is(#pj-view, #pj-fhead) .day .sh { align-items: baseline; justify-content: flex-start; gap: 14px; }
:is(#pj-view, #pj-fhead) .gms { display: grid; gap: 2px; }
:is(#pj-view, #pj-fhead) .gm { display: grid; grid-template-columns: 120px minmax(170px, 1.1fr) minmax(220px, 1.4fr) minmax(170px, 1fr) minmax(200px, 1.2fr); gap: 8px 26px; align-items: center; padding: 16px 16px; background: var(--paper); cursor: pointer; }
:is(#pj-view, #pj-fhead) .gm:hover { background: color-mix(in oklab, var(--sand-2) 70%, var(--paper)); }
:is(#pj-view, #pj-fhead) .gm .wh { font-weight: 700; font-size: 14px; } :is(#pj-view, #pj-fhead) .gm .wh small { display: block; color: var(--muted); font-weight: 500; }
:is(#pj-view, #pj-fhead) .tm { line-height: 1; } :is(#pj-view, #pj-fhead) .tm small { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; line-height: 1.3; }
:is(#pj-view, #pj-fhead) .tl { border: 0; background: none; padding: 0; font: 800 30px/1 var(--display); cursor: pointer; color: var(--ink); } :is(#pj-view, #pj-fhead) .tl:hover { color: var(--blue); }
:is(#pj-view, #pj-fhead) .at { font: 500 15px var(--text); color: var(--muted); margin: 0 6px; }
:is(#pj-view, #pj-fhead) .split { display: flex; height: 12px; gap: 2px; } :is(#pj-view, #pj-fhead) .split i { display: block; background: var(--sand-3); } :is(#pj-view, #pj-fhead) .split i.w { background: var(--blue); }
:is(#pj-view, #pj-fhead) .splitl { display: flex; justify-content: space-between; gap: 8px; margin-top: 5px; font-size: 13px; color: var(--ink-2); } :is(#pj-view, #pj-fhead) .splitl b { font: 800 19px/1 var(--display); color: var(--ink); } :is(#pj-view, #pj-fhead) .splitl .c { color: var(--muted); text-align: center; }
:is(#pj-view, #pj-fhead) .ln { display: flex; gap: 22px; } :is(#pj-view, #pj-fhead) .ln span { font: 800 22px/1 var(--display); } :is(#pj-view, #pj-fhead) .ln small { display: block; font: 500 12.5px var(--text); color: var(--muted); margin-bottom: 3px; } :is(#pj-view, #pj-fhead) .ln em { display: block; font: 500 12.5px var(--text); color: var(--muted); font-style: normal; margin-top: 3px; }
:is(#pj-view, #pj-fhead) .vd { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } :is(#pj-view, #pj-fhead) .vd small { flex-basis: 100%; color: var(--muted); font-size: 12.5px; }
:is(#pj-view, #pj-fhead) .vchip { display: inline-flex; gap: 6px; align-items: center; padding: 3px 8px 3px 4px; background: var(--sand-2); font-size: 13px; font-weight: 600; } :is(#pj-view, #pj-fhead) .vt { font-size: 13.5px; color: var(--ink-2); }
:is(#pj-view, #pj-fhead) .gm .av { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; } :is(#pj-view, #pj-fhead) .gm .note, :is(#pj-view, #pj-fhead) .gm .span3 { grid-column: 2 / -1; margin: 0; }
:is(#pj-view, #pj-fhead) .crumb { margin: 24px 0 -18px; }
:is(#pj-view, #pj-fhead) .tl2 { cursor: pointer; } :is(#pj-view, #pj-fhead) .tl2:hover { color: var(--blue); }
:is(#pj-view, #pj-fhead) .pj-head h1 .at { font: 500 28px var(--text); vertical-align: middle; margin: 0 10px; }
:is(#pj-view, #pj-fhead) .probs { display: grid; gap: 18px; max-width: 900px; margin: 4px 0 24px; } :is(#pj-view, #pj-fhead) .probs .split { height: 18px; }
:is(#pj-view, #pj-fhead) .facts.f5 { grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 0 28px; }
:is(#pj-view, #pj-fhead) .facts.f5 b { font-size: 26px; }
:is(#pj-view, #pj-fhead) .board h2 { color: var(--night-ink); }
:is(#pj-view, #pj-fhead) .board .grid td { color: var(--night-ink); }
:is(#pj-view, #pj-fhead) .legacy { margin-top: 18px; }
:is(#pj-view, #pj-fhead) .legacy .nba-tlink { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 1100px) { :is(#pj-view, #pj-fhead) .gm { grid-template-columns: 1fr 1fr; } :is(#pj-view, #pj-fhead) .gm .wh { grid-column: 1 / -1; } :is(#pj-view, #pj-fhead) .gm .av, :is(#pj-view, #pj-fhead) .gm .note, :is(#pj-view, #pj-fhead) .gm .span3 { grid-column: 1 / -1; } :is(#pj-view, #pj-fhead) .facts.f5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { :is(#pj-view, #pj-fhead) .gm { grid-template-columns: 1fr; } }

/* ---------- one palette everywhere: the older semantic colours are remapped inside the new scopes ----------
   positive = the model's blue, negative and caution = the warm brown, B grades = ink. No greens, reds or ambers. */
html.pj-frame .app-main, :is(#pj-view, #pj-fhead) .legacy, #entity-overlay {
  --green: #1f45c9; --green-dim: rgba(31, 69, 201, .12); --red: #8a6d45; --red-dim: rgba(138, 109, 69, .16);
  --yellow: #6f6250; --orange: #8a6d45; --up: #1f45c9; --down: #8a6d45; --caution: #6f6250; --accent-gold: #8a6d45;
}
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy, :root:not(#u) #entity-overlay) :is(div, span, section, article, details, summary, button, table, th, td, a, p, ul, li, label, select, textarea, input:not([type="range"]), b, small, em, i, dd, dt):not(.nline-dot):not(#pj-fhead *) { border-radius: 0; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy, :root:not(#u) #entity-overlay) :is(.nline-dot, .nline-gap, .nline-model) { box-shadow: none; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) .nba-sec > h3 { border-left: 0; padding-left: 0; text-transform: none; letter-spacing: 0; font-size: 30px; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy, :root:not(#u) #entity-overlay) .legend-swatch.tier-veryhigh { background: #1f45c9; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy, :root:not(#u) #entity-overlay) .legend-swatch.tier-high { background: #6f8dff; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy, :root:not(#u) #entity-overlay) .legend-swatch.tier-medium { background: #c4b597; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy, :root:not(#u) #entity-overlay) .legend-swatch.tier-verylow { background: #8a6d45; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy, :root:not(#u) #entity-overlay) :is(.nba-chip, .mt-badge) { background: #ddd0b9; color: #16140f; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy, :root:not(#u) #entity-overlay) :is(.nba-chip.g-A, .mt-badge-verified) { background: #1f45c9; color: #efe8da; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy, :root:not(#u) #entity-overlay) :is(.nba-chip.g-B, .nba-chip.bad) { background: #16140f; color: #e6dbc7; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy, :root:not(#u) #entity-overlay) .nba-chip.warn { background: #d2c3a6; color: #16140f; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy, :root:not(#u) #entity-overlay) .nba-bar.pos { background: #1f45c9; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy, :root:not(#u) #entity-overlay) .nba-bar.neg { background: #8a6d45; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy, :root:not(#u) #entity-overlay) :is(.pick-caveat, .pick-injury, .calib-rep-verdict) { background: #ddd0b9; border: 0; color: #16140f; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy, :root:not(#u) #entity-overlay) .nfl-phase-note { border: 0; }

html.pj-frame:not(#u) #nba-tabs, html.pj-frame:not(#u) #nba-sub { display: none; }
#pj-fhead .top { margin-bottom: 24px; }

/* ---------- model lab: verdict band, dot plots, error bars, pipeline ---------- */
:is(#pj-view, #pj-fhead) .verdictband .kick { margin: 0; color: var(--night-muted); font-weight: 600; font-size: 14px; }
:is(#pj-view, #pj-fhead) .verdictband .vtxt { margin: 6px 0 8px; font: 800 34px/1.08 var(--display); max-width: 34ch; }
:is(#pj-view, #pj-fhead) .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; margin-top: 40px; }
:is(#pj-view, #pj-fhead) .dots { margin: 14px 0 22px; }
:is(#pj-view, #pj-fhead) .dr { display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(0, 1.6fr) 62px; gap: 12px; align-items: center; padding: 5px 0; font-size: 13.5px; }
:is(#pj-view, #pj-fhead) .dt { position: relative; height: 18px; background: linear-gradient(var(--rest), var(--rest)) 0 50% / 100% 1px no-repeat; }
:is(#pj-view, #pj-fhead) .dt i { position: absolute; top: 3px; width: 12px; height: 12px; transform: translateX(-6px); }
:is(#pj-view, #pj-fhead) .dt i.m { background: var(--blue); border-radius: 50%; } :is(#pj-view, #pj-fhead) .dt i.k { background: var(--ink); } :is(#pj-view, #pj-fhead) .dt i.o { border: 2px solid var(--ink-2); border-radius: 50%; background: var(--sand); }
:is(#pj-view, #pj-fhead) .dv { text-align: right; font: 800 18px/1 var(--display); }
:is(#pj-view, #pj-fhead) .dr.axis .dt { background: none; height: 14px; } :is(#pj-view, #pj-fhead) .dr.axis em { position: absolute; font: 500 12px var(--text); color: var(--muted); font-style: normal; transform: translateX(-50%); }
:is(#pj-view, #pj-fhead) .dr.axis em:first-child { transform: none; } :is(#pj-view, #pj-fhead) .dr.axis em:last-child { transform: translateX(-100%); }
:is(#pj-view, #pj-fhead) .key.o { border: 2px solid var(--ink-2); border-radius: 50%; }
:is(#pj-view, #pj-fhead) .bars { display: grid; gap: 4px; max-width: 980px; }
:is(#pj-view, #pj-fhead) .br { display: grid; grid-template-columns: minmax(200px, 1.3fr) minmax(0, 2fr) 56px; gap: 14px; align-items: center; font-size: 14px; }
:is(#pj-view, #pj-fhead) .bt { height: 14px; background: var(--sand-2); } :is(#pj-view, #pj-fhead) .bt i { display: block; height: 100%; background: var(--rest-edge); }
:is(#pj-view, #pj-fhead) .bt i.market { background: var(--ink); } :is(#pj-view, #pj-fhead) .bt i.model { background: var(--blue); } :is(#pj-view, #pj-fhead) .bt i.baseline { background: var(--rest); }
:is(#pj-view, #pj-fhead) .bv { text-align: right; font: 800 19px/1 var(--display); }
:is(#pj-view, #pj-fhead) .pipe { list-style: none; counter-reset: s; margin: 10px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; }
:is(#pj-view, #pj-fhead) .pipe li { counter-increment: s; background: var(--paper); padding: 16px 16px 18px; position: relative; }
:is(#pj-view, #pj-fhead) .pipe li::before { content: counter(s); display: block; font: 800 40px/1 var(--display); color: var(--blue); margin-bottom: 8px; }
:is(#pj-view, #pj-fhead) .pipe li b { display: block; font: 800 22px/1.05 var(--display); margin-bottom: 6px; } :is(#pj-view, #pj-fhead) .pipe li span { font-size: 14px; color: var(--ink-2); }
:is(#pj-view, #pj-fhead) .teampick { display: flex; flex-wrap: wrap; gap: 3px; margin: 6px 0 10px; }
:is(#pj-view, #pj-fhead) .teampick button { border: 0; background: var(--sand-2); padding: 8px 10px; font: 800 18px/1 var(--display); cursor: pointer; min-width: 52px; color: var(--ink); }
:is(#pj-view, #pj-fhead) .teampick button:hover { background: var(--sand-3); } :is(#pj-view, #pj-fhead) .teampick button[aria-pressed="true"] { background: var(--ink); color: var(--sand); }
#pj-fhead .band { margin-top: 0; }
@media (max-width: 1100px) { :is(#pj-view, #pj-fhead) .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); } :is(#pj-view, #pj-fhead) .two { grid-template-columns: 1fr; } }
@media (max-width: 640px) { :is(#pj-view, #pj-fhead) .pipe { grid-template-columns: 1fr; } :is(#pj-view, #pj-fhead) .dr, :is(#pj-view, #pj-fhead) .br { grid-template-columns: minmax(0, 1fr) 56px; } :is(#pj-view, #pj-fhead) .dr, :is(#pj-view, #pj-fhead) .br { grid-auto-flow: row dense; } :is(#pj-view, #pj-fhead) .dr .dt, :is(#pj-view, #pj-fhead) .br .bt { grid-column: 1 / -1; } :is(#pj-view, #pj-fhead) .dr .dv, :is(#pj-view, #pj-fhead) .br .bv { grid-column: 2; } :is(#pj-view, #pj-fhead) .verdictband .vtxt { font-size: 26px; } }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy, :root:not(#u) #entity-overlay) * { text-transform: none; }
:is(#pj-view, #pj-fhead) .verdictband .vtxt { font-size: 30px; max-width: 46ch; }
#pj-fhead .perfband { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
#pj-fhead .sp2 h3 { color: var(--night-ink); margin-bottom: 10px; }
#pj-fhead .kv2 { display: flex; flex-wrap: wrap; gap: 14px 30px; } #pj-fhead .kv2 b { display: block; font: 800 36px/1 var(--display); } #pj-fhead .kv2 span { font-size: 13px; color: var(--night-muted); }
@media (max-width: 800px) { #pj-fhead .perfband { grid-template-columns: 1fr; } }

/* The old NFL "model" tab held five pages in one, reached by anchors; each route now shows only its own sections. */
html[data-pj-route="nfl-games"] #tab-nfl > :not(.risk-tier-bar, .nfl-phase-note, .note-more, #sec-nfl-today, #nfl-games-list, #sec-nfl-tomorrow, #nfl-futures-list) { display: none !important; }
html[data-pj-route="nfl-power"] #tab-nfl > :not(.risk-tier-bar, .nfl-phase-note, .note-more, #sec-nfl-ratings, #nfl-ratings-wrap, #sec-nfl-teamstats, #nfl-teamstats-wrap) { display: none !important; }
html[data-pj-route="nfl-qb"] #tab-nfl > :not(.risk-tier-bar, .nfl-phase-note, .note-more, #sec-nfl-qb, #nfl-qb-wrap) { display: none !important; }
html[data-pj-route="nfl-market"] #tab-nfl > :not(.risk-tier-bar, .nfl-phase-note, .note-more, #sec-nfl-vs-market, #nfl-vs-market-wrap) { display: none !important; }
html[data-pj-route="nfl-schedule"] #tab-nfl > :not(.risk-tier-bar, .nfl-phase-note, .note-more, #sec-nfl-schedule, #nfl-schedule-wrap) { display: none !important; }
html[data-pj-route^="nfl-"] #tab-nfl > .jumpnav { display: none !important; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy) :is(.ratings-table, .nba-table, .mt-table, table) :is(th, thead th) { position: static; top: auto; }
/* Player initials: one quiet chip instead of a colour per name (the old avatars set an inline hue). */
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) :is(#pj-view, #pj-fhead) .legacy, :root:not(#u) #entity-overlay) .avatar { background: #d2c3a6 !important; color: #16140f; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) #entity-overlay) .rating-method.epa { background: #1f45c9; color: #efe8da; }
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) #entity-overlay) .rating-method.box { background: #ddd0b9; color: #2f2b24; }
/* Old dark-theme text colour left in the template (light grey on cream fails contrast). */
:is(html.pj-frame:not(#u) .app-main, :root:not(#u) #entity-overlay) .rationale { color: #2f2b24; }

/* ---------- league switch (Sleeper | ESPN) in the head of fantasy pages ---------- */
:is(#pj-view, #pj-fhead) .pj-head .ht { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
:root:not(#u) .lgsw-slot #league-switch { display: inline-flex; align-items: center; gap: 0; border: 0; border-radius: 0; margin: 0 0 8px; padding: 3px; background: #ddd0b9; overflow: visible; }
:root:not(#u) .lgsw-slot #league-switch[hidden] { display: none; }
:root:not(#u) .lgsw-slot #league-switch .lb { font: 600 13px 'Libre Franklin', Arial, sans-serif; color: #57503f; padding: 0 10px 0 8px; }
:root:not(#u) .lgsw-slot #league-switch a { border: 0; padding: 8px 14px; font: 700 14px/1 'Libre Franklin', Arial, sans-serif; color: #2f2b24; text-decoration: none; background: none; min-height: 36px; display: inline-flex; align-items: center; }
:root:not(#u) .lgsw-slot #league-switch a:hover { background: #d2c3a6; }
:root:not(#u) .lgsw-slot #league-switch a.on { background: #16140f; color: #e6dbc7; }
:root:not(#u) .lgsw-slot #league-switch a:focus-visible { outline: 3px solid #1f45c9; outline-offset: 2px; }

/* ---------- Trades (page-trades.js) ---------- */
#pj-view .hubtabs { display: inline-flex; flex-wrap: wrap; padding: 3px; background: var(--sand-2); margin-bottom: 6px; }
#pj-view .hubtabs button { border: 0; background: none; padding: 9px 16px; font-weight: 700; font-size: 15px; color: var(--ink-2); cursor: pointer; min-height: 40px; }
#pj-view .hubtabs button:hover { background: var(--sand-3); } #pj-view .hubtabs button[aria-current="page"] { background: var(--ink); color: var(--sand); }
#pj-view .tbar { position: static; box-shadow: 0 1px 0 var(--rest); gap: 10px 34px; }
#pj-view .tbar .pj-seg button { padding: 9px 14px; font-size: 15px; min-height: 40px; }
#pj-view .modeline { margin: 12px 0 18px; max-width: 96ch; }
#pj-view .tcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; align-items: stretch; }
#pj-view .tcol { background: var(--paper); display: flex; flex-direction: column; min-width: 0; }
#pj-view .tcol .th { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 16px 16px 10px; }
#pj-view .tcol .th h3 { font-size: 28px; } #pj-view .tcol .th small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; }
#pj-view .tcol .th > div { min-width: 0; }
#pj-view .colh { display: flex; justify-content: space-between; padding: 6px 16px; font-size: 12.5px; font-weight: 600; color: var(--muted); box-shadow: 0 1px 0 var(--rest); }
#pj-view .plist { max-height: 470px; overflow-y: auto; scrollbar-width: thin; }
#pj-view .prow { display: flex; align-items: stretch; box-shadow: 0 1px 0 color-mix(in oklab, var(--rest) 50%, transparent); }
#pj-view .prow .pb { flex: 1; min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 0; background: none; text-align: left; padding: 9px 16px; cursor: pointer; color: var(--ink); min-height: 48px; }
#pj-view .prow .pb.as { cursor: default; }
#pj-view .prow .pb:hover { background: var(--sand-2); } #pj-view .prow .pb.as:hover { background: none; }
#pj-view .prow .nm { min-width: 0; } #pj-view .prow .nm b { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#pj-view .prow .nm small { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#pj-view .prow .v { font: 800 22px/1 var(--display); flex: none; }
#pj-view .prow.on { background: var(--ink); } #pj-view .prow.on .pb, #pj-view .prow.on .pb:hover { background: var(--ink); color: var(--sand); } #pj-view .prow.on .nm small { color: var(--night-muted); }
#pj-view .prow .to { flex: none; border: 0; background: var(--night-rule); color: var(--night-ink); font-size: 12.5px; font-weight: 600; padding: 0 10px; cursor: pointer; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-shadow: inset 1px 0 0 #3a352b; }
#pj-view .prow .to:hover { background: #3a352b; }
#pj-view .trow { display: block; width: 100%; border: 0; background: none; text-align: left; padding: 12px 16px; cursor: pointer; color: var(--ink); box-shadow: 0 1px 0 color-mix(in oklab, var(--rest) 50%, transparent); }
#pj-view .trow:hover { background: var(--sand-2); } #pj-view .trow b { display: block; font: 800 22px/1.1 var(--display); overflow: hidden; text-overflow: ellipsis; } #pj-view .trow small { color: var(--muted); font-size: 13px; }
#pj-view .tcol.add { background: none; box-shadow: inset 0 0 0 2px var(--sand-2); }
#pj-view .addthird { flex: 1; border: 0; background: none; cursor: pointer; padding: 28px 20px; color: var(--ink); text-align: left; }
#pj-view .addthird:hover:not(:disabled) { background: var(--sand-2); } #pj-view .addthird:disabled { cursor: default; color: var(--muted); }
#pj-view .addthird b { display: block; font: 800 28px/1 var(--display); } #pj-view .addthird small { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); max-width: 30ch; }
#pj-view .picks { margin-top: auto; box-shadow: 0 -1px 0 var(--rest); }
#pj-view .pk-add { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 16px; }
#pj-view .pk-add .lbl { font-size: 13px; font-weight: 600; color: var(--muted); margin-right: 4px; } #pj-view .pk-add select { height: 36px; background: var(--sand); padding: 0 8px; font-size: 14px; }
#pj-view .pk-add .btn { min-height: 36px; padding: 0 12px; }
#pj-view .tsum { margin-top: 3px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: start; }
#pj-view .tsum .sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 32px; }
#pj-view .tsum h4 { margin: 0 0 6px; font: 800 24px/1 var(--display); color: var(--night-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#pj-view .tsum p { margin: 3px 0; font-size: 14.5px; } #pj-view .tsum p span { display: inline-block; width: 50px; color: var(--night-muted); font-size: 13px; }
#pj-view .tsum p small, #pj-view .tsum p i { color: var(--night-muted); } #pj-view .tsum .tot { color: var(--night-muted); font-size: 13.5px; }
#pj-view .acts2 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: 420px; } #pj-view .acts2 p { flex-basis: 100%; margin: 4px 0 0; }
#pj-view .btn.primary { background: var(--blue); color: var(--blue-ink); } #pj-view .band .btn.primary { background: var(--night-blue); color: var(--night); }
#pj-view .band .btn.ghost { background: var(--night-rule); color: var(--night-ink); } #pj-view .band .btn.ghost:hover { background: #3a352b; }
#pj-view .btn:disabled { opacity: .45; cursor: default; }
#pj-view .err { color: #f0c9a0; font-weight: 600; }
#pj-view .verdict { margin-top: 3px; padding-top: 26px; padding-bottom: 26px; }
#pj-view .verdict .kick { margin: 0; font-size: 14px; font-weight: 600; color: var(--night-muted); }
:root #pj-view .verdict h2 { font-size: 72px; line-height: .9; margin: 6px 0 10px; color: var(--night-ink); }
:root #pj-view .verdict.good h2 { color: var(--night-blue); } :root #pj-view .verdict.bad h2 { color: #d9b98c; }
#pj-view .verdict .vh { margin: 0 0 8px; font-size: 19px; font-weight: 600; } #pj-view .verdict ul { margin: 0 0 10px; padding-left: 18px; max-width: 100ch; } #pj-view .verdict li { margin: 3px 0; }
#pj-view .facts.f4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 3px 0 0; } #pj-view .facts.f4 b { font-size: 30px; margin-bottom: 4px; } #pj-view .facts.f4 span { font-size: 13.5px; line-height: 1.4; display: block; }
#pj-view .facts b.pos { color: var(--blue); } #pj-view .facts b.neg { color: var(--heat-bad); }
#pj-view h4 { margin: 0 0 6px; font: 800 20px/1.05 var(--display); }
#pj-view .lu { display: grid; grid-template-columns: 54px minmax(0, 1fr) 54px; gap: 8px; padding: 6px 8px; font-size: 14.5px; box-shadow: 0 1px 0 color-mix(in oklab, var(--rest) 50%, transparent); }
#pj-view .lu span:first-child { color: var(--muted); font-weight: 700; font-size: 13px; } #pj-view .lu span:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
#pj-view .lu.new { background: var(--blue-soft); } #pj-view .lu.repl { color: var(--muted); }
#pj-view .impacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px; } #pj-view .impacts .grid th { position: static; }
#pj-view .pc { margin: 6px 0 0; padding-left: 18px; } #pj-view .pc li { margin: 4px 0; } #pj-view .pc li.pos { color: var(--ink); font-weight: 400; } #pj-view .pc li.pos::marker { color: var(--blue); } #pj-view .pc li.neg { color: var(--ink); font-weight: 400; } #pj-view .pc li.neg::marker { color: var(--heat-bad); }
:root #pj-view details.how { margin-top: 14px; } :root #pj-view details.how > summary { cursor: pointer; font-weight: 700; padding: 6px 0; color: var(--blue); } #pj-view details.how ul { margin: 4px 0 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); max-width: 100ch; }
#pj-view .fbar { position: static; box-shadow: none; padding-bottom: 6px; } #pj-view .fbar2 { position: static; padding-top: 6px; }
#pj-view .pj-seg.fl { margin-left: auto; }
#pj-view .deals td.l b { display: block; } #pj-view .deals td.l small { display: block; margin: 0 0 4px; }
#pj-view .deals td .btn { min-height: 36px; padding: 0 12px; }
#pj-view .untouch { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 3px; margin-top: 10px; }
#pj-view .ut { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 0; background: var(--paper); padding: 11px 14px; cursor: pointer; text-align: left; color: var(--ink); min-height: 56px; }
#pj-view .ut:hover { background: var(--sand-2); } #pj-view .ut b { display: block; } #pj-view .ut small { color: var(--muted); font-size: 12.5px; } #pj-view .ut i { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--muted); flex: none; }
#pj-view .ut.on { background: var(--ink); color: var(--sand); } #pj-view .ut.on small { color: var(--night-muted); } #pj-view .ut.on i { color: var(--night-blue); }
@media (max-width: 1100px) { #pj-view .tcols { grid-template-columns: 1fr; } #pj-view .plist { max-height: 340px; } #pj-view .tsum { grid-template-columns: 1fr; } #pj-view .tcol.add { min-height: 0; } #pj-view .pj-seg.fl { margin-left: 0; } }
@media (max-width: 720px) { :root #pj-view .verdict h2 { font-size: 52px; } #pj-view .hubtabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } #pj-view .hubtabs button { white-space: nowrap; padding: 9px 13px; } }
#pj-view .lu.out { background: var(--sand-3); }
html[data-pj-route="fx-trades"] #pj-view .grid th { position: static; }
@media (max-width: 720px) { #pj-view .fg { display: flex; max-width: 100%; min-width: 0; } #pj-view .fg .pj-seg { min-width: 0; } #pj-view .fg .lbl { flex: none; } }
