/* look.css — the app's dress, taken from fantasymonday.com (which took it from
   learntocodewithsports.com): Anton for titles and big numbers, JetBrains Mono
   for labels, Barlow for everything else, flat hairline panels with square
   corners, and one gold accent.

   Loaded after app.css. index.html / demo.html / applyTheme() stamp
   data-look="night" or "day" from the resolved theme: the shape and type rules
   below are shared, only the two palettes differ. A page that loads app.css
   without the stamp (the MCP widget) keeps app.css's own themes.

   Layout is NOT touched here: only colour, type and corner shape. */

/* ── Shared: shape + type ── */
:root[data-look] {
  /* square corners everywhere (true circles use 50% and stay round) */
  --radius: 0px;
  --r14: 0px; --r12: 0px; --r10: 0px; --r9: 0px; --r8: 0px; --r6: 0px; --r5: 0px; --r4: 0px;
  --r-pill: 0px;

  --sans: "Barlow", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --display: "Anton", "Barlow", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* no drop shadows: a card is a hairline box */
  --shadow-card: 0 0 0 1px var(--line);

  /* The accent as a fill is gold in both palettes, always under ink text.
     As TEXT (links, the active tab, sorted headers) it is --accent, which the
     day palette darkens: gold on chalk does not read. */
  --accent-fill: #f8d24a; --accent-fill-hover: #ffe27a; --on-accent-fill: #0b0f12;
}

/* ── Night: near-black ground, chalk type ── */
:root[data-look="night"] {
  --ink: #f3f5f4; --ink-body: #dde1e0; --ink-2: #9aa4ae; --ink-3: #78838e; --on-ink: #0b0f12;
  --surface: #141a1f; --page: #0b0f12; --frame: #06090b;
  --line: #242c33; --line-strong: #38424b;
  --hover: #1c242b; --hover-2: #25303a; --control: #1c242b; --control-2: #38424b;
  --muted-row: #171e24; --muted-row-2: #10151a;
  --knob: #f3f5f4; --on-accent: #0b0f12;

  --accent: #f8d24a; --accent-hover: #ffe27a; --accent-wash: rgba(248, 210, 74, 0.12); --accent-disabled: #4a4326;

  /* lanes + signals (you = blue, other side = orange — unchanged meaning) */
  --blue: #58a6ff; --blue-hover: #7ab8ff; --blue-disabled: #2b3d55;
  --blue-fill: rgba(88, 166, 255, 0.24); --blue-stroke: rgba(88, 166, 255, 0.85);
  --blue-wash: rgba(88, 166, 255, 0.10); --blue-tint: #13243a; --blue-tint-2: #0f1b2b; --blue-ink: #9cc8ff;
  --green: #7ee787; --green-fill: rgba(126, 231, 135, 0.22); --green-stroke: rgba(126, 231, 135, 0.75);
  --red: #ff6b6b;
  /* Orange is pulled well off the gold: gold is "tap this" and nothing else,
     so the other side's name must never read as a link. */
  --orange: #ff8a45; --orange-fill: rgba(255, 138, 69, 0.24); --orange-stroke: rgba(255, 138, 69, 0.78);
  --lucky-bg: #12261a; --unlucky-bg: #321a1a; --lucky-ink: #7ee787; --unlucky-ink: #ff9a9a;
  --warn-bg: #2a2410; --warn-ink: #f8d24a; --warn-ink-2: #ff9f43;
  --amber-ink: #ff9a5c; --amber-ink-2: #ffb787;
  /* What wasn't a choice (drift / schedule / luck) stays warm. Luck is usually
     the biggest slab and it is noise, so it is the one that recedes: a muted
     tan — still in the family, told from rust drift by lightness and chroma.
     Trades is taken down from the app.css cyan for the same reason. */
  --mg-drift: #9c4f14; --mg-schedule: #ee9440; --mg-draw: #a88c68;
  --mg-trades: #3aa3b5;
  --gate: #ff9f43; --gate-bg: #2a2410; --gate-alt: #6b4a12; --gate-alt-bg: #1f1b10;
  --yellow: #f8d24a;

  --ink-rgb: 243, 245, 244; --shadow-c: 0, 0, 0;
  --pop-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  --glass: rgba(11, 15, 18, 0.92); --glass-2: rgba(20, 26, 31, 0.97);
  --ink-wash: rgba(243, 245, 244, 0.06); --ink-wash-2: rgba(243, 245, 244, 0.1);
}

/* ── Day: the same dress on chalk. White panels on a chalk page, ink type. ── */
:root[data-look="day"] {
  --ink: #0b0f12; --ink-body: #1c242b; --ink-2: #4f5963; --ink-3: #6b7580; --on-ink: #f3f5f4;
  --surface: #ffffff; --page: #e9ecea; --frame: #d9dddb;
  --line: #c3c9c7; --line-strong: #8a9399;
  --hover: #f1f3f2; --hover-2: #e2e6e4; --control: #dfe3e1; --control-2: #c6ccca;
  --muted-row: #f3f5f4; --muted-row-2: #f9faf9;
  --knob: #ffffff; --on-accent: #ffffff;

  /* accent as text is INK here; links carry a gold underline (below) */
  --accent: #0b0f12; --accent-hover: #1c242b; --accent-wash: rgba(248, 210, 74, 0.22); --accent-disabled: #e9e2c4;

  --blue: #1f6feb; --blue-hover: #1a5fd0; --blue-disabled: #b9cdea;
  --blue-fill: rgba(31, 111, 235, 0.22); --blue-stroke: rgba(31, 111, 235, 0.8);
  --blue-wash: rgba(31, 111, 235, 0.06); --blue-tint: #e3edfb; --blue-tint-2: #f2f7fe; --blue-ink: #164a9e;
  --green: #1a7f37; --green-fill: rgba(26, 127, 55, 0.2); --green-stroke: rgba(26, 127, 55, 0.7);
  --red: #cf222e;
  --orange: #c2620a; --orange-fill: rgba(219, 119, 6, 0.24); --orange-stroke: rgba(194, 98, 10, 0.75);
  --warn-bg: #fbf1cc; --warn-ink: #5f4800;

  --ink-rgb: 11, 15, 18; --shadow-c: 11, 15, 18;
  --pop-shadow: 0 12px 32px rgba(11, 15, 18, 0.18);
  --glass: rgba(233, 236, 234, 0.94); --glass-2: rgba(255, 255, 255, 0.97);
  --ink-wash: rgba(11, 15, 18, 0.045); --ink-wash-2: rgba(11, 15, 18, 0.08);
}

[data-look] body { font-size: 14.5px; }
[data-look] :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Titles: Anton, caps. Screen and card titles only — never a table row. ── */
[data-look] .appbar-title,
[data-look] .hero-name,
[data-look] .hub-hd-title,
[data-look] .connect h1,
[data-look] .pl-detail-name,
[data-look] .mg-head-nm,
[data-look] .admin-head h2,
[data-look] .pr-verdict {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.1;
}
[data-look] .appbar-title { font-size: 17px; letter-spacing: 0.06em; }
[data-look] .hero-name { font-size: 24px; }
[data-look] .hub-hd-title { font-size: 20px; }
[data-look] .connect h1 { font-size: 32px; }
[data-look] .pl-detail-name { font-size: 28px; }
[data-look] .mg-head-nm { font-size: 20px; }

/* ── Big numbers: Anton. The existing rules carry 700–800 weights and tight
      negative tracking for the system face; Anton has one weight and wants
      air, so both are reset here. ── */
[data-look] .lu-wp-num,
[data-look] .lu-wp-line-num,
[data-look] .tw-actual,
[data-look] .tw-luck,
[data-look] .tile-val,
[data-look] .hero-luck,
[data-look] .roscard-lede-val,
[data-look] .ceil-lede-val,
[data-look] .blunder-lede-val,
[data-look] .tr-delta,
[data-look] .tr-lt-delta,
[data-look] .oc-stat-val,
[data-look] .fa-week-p,
[data-look] .txn-rollup-one-val,
[data-look] .sb-wp,
[data-look] .pulling-week,
[data-look] .dr-baseval,
[data-look] .mg-crow-val,
[data-look] .mg-lkwk-score,
[data-look] .decomp-val,
[data-look] .pv-ros,
[data-look] .admin-tile-val,
[data-look] .auth-code {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
[data-look] .lu-wp-num { font-size: 56px; line-height: 0.95; }

/* ── Labels: mono, tracked caps. ── */
[data-look] .eyebrow,
[data-look] .tab,
[data-look] .appbar-sub,
[data-look] .decomp-label,
[data-look] .tile-rank,
[data-look] .legend-item,
[data-look] .lm-plat {
  font-family: var(--mono);
  font-weight: 500;
}
[data-look] .eyebrow { letter-spacing: 0.16em; font-size: 9.5px; color: var(--ink-2); }
[data-look] .hub-hd .eyebrow,
[data-look] .hub-index-hd { font-size: 10px; }
[data-look] .tab { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; }
[data-look] .appbar-sub { font-size: 10px; }

/* ── Chrome ── */
[data-look] .appbar,
[data-look] .tabbar { backdrop-filter: none; background: var(--page); }
[data-look] .tab[aria-current="page"],
[data-look] .ms-row[aria-current="page"] { color: var(--accent); }
[data-look] .tab[aria-current="page"] { box-shadow: inset 0 2px 0 var(--accent-fill); }

[data-look] .league-menu,
[data-look] .more-sheet { box-shadow: var(--pop-shadow); border-color: var(--line-strong); }

[data-look] .tile { box-shadow: 0 0 0 1px var(--line); }
[data-look] .iconbtn { border-radius: 0; }

/* Segmented control: a ruled strip, the pressed cell inverted (chalk on ink). */
[data-look] .segmented {
  background: transparent; padding: 0; gap: 0;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
[data-look] .segmented button {
  font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: 0.04em;
  color: var(--ink-2);
}
[data-look] .segmented button + button { box-shadow: inset 1px 0 0 var(--line-strong); }
[data-look] .segmented button[aria-pressed="true"] {
  background: var(--ink); color: var(--on-ink); font-weight: 700; box-shadow: none;
}

/* Buttons: one gold call to action per screen; the rest are outlines. */
[data-look] .btn {
  background: var(--accent-fill); color: var(--on-accent-fill);
  font-family: var(--display); font-weight: 400; font-size: 17px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
[data-look] .btn:hover { background: var(--accent-fill-hover); }
[data-look] .btn:disabled { background: var(--control); color: var(--ink-3); }
[data-look] .btn.btn-secondary {
  background: transparent; color: var(--ink); border: 1px solid var(--line-strong);
}
[data-look] .btn.btn-secondary:hover { background: var(--ink-wash); border-color: var(--ink); }
[data-look] .btn-2 { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
[data-look] .btn-2:hover { background: var(--accent-wash); }

[data-look] .input:focus { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

[data-look] .banner { box-shadow: inset 2px 0 0 var(--accent-fill); }
[data-look] .refresh-toast { font-family: var(--mono); font-weight: 500; box-shadow: none; border-color: var(--line-strong); }

/* The desktop phone-frame: a hairline, not a lifted sheet. */
@media (min-width: 600px) {
  [data-look] .shell { box-shadow: 0 0 0 1px var(--line); }
}

/* Action buttons inside cards take the call-to-action dress too. */
[data-look] .tr-eval,
[data-look] .dr-printbtn {
  font-family: var(--display); font-weight: 400; font-size: 15px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-accent-fill);
}
[data-look] .demobar { color: var(--on-accent-fill); }

/* Card titles */
[data-look] .pl-h,
[data-look] .chart-title {
  font-family: var(--display); font-weight: 400; font-size: 16px;
  letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.15;
}

/* Selected matchup chip: an ink frame on the panel colour with the gold bar
   under it. No lane-blue wash — blue here would say "you", and this chip
   means "this screen". */
[data-look] .lu-chip-active,
[data-look] .lu-chip-active:hover {
  border-color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 -3px 0 var(--accent-fill);
}
[data-look] .lu-chip-tag { font-family: var(--mono); font-weight: 700; letter-spacing: 0.06em; }

/* ── Day only: the hairline look needs more ink on a light ground. ── */
/* Labels: darker and tighter than the night setting, which goes faint here. */
[data-look="day"] .eyebrow { color: var(--ink-2); letter-spacing: 0.1em; font-weight: 700; }

/* Appbar team switcher: its fill was the page colour, which is the appbar's
   own ground in this look — outline it so it still reads as a control. */
[data-look] .switcher { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
[data-look] .switcher:hover { background: var(--ink-wash); }

/* The "You" tag on the selected matchup chip: gold, not lane blue. */
[data-look] .lu-chip-tag { background: var(--accent-fill); color: var(--on-accent-fill); }

/* The moves "Hide washes" toggle sits beside a segmented control: same dress. */
[data-look] .txn-washtoggle {
  background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong);
  font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: 0.04em;
}

/* ── Day only, continued ── */
/* Segmented controls: tabs, not boxes. A solid ink cell is the loudest thing
   on a light page, and a ruled grid of white cells on a white panel doubles
   its borders — so no cells at all: one hairline under the strip, the
   selected label in ink over the gold bar (the active tab and the selected
   matchup chip say "selected" the same way). */
[data-look="day"] .segmented { box-shadow: inset 0 -1px 0 var(--line); }
[data-look="day"] .segmented button + button { box-shadow: none; }
[data-look="day"] .segmented button { color: var(--ink-3); }
[data-look="day"] .segmented button:hover { color: var(--ink); }
[data-look="day"] .segmented button[aria-pressed="true"] {
  background: transparent; color: var(--ink); font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--accent-fill);
}
[data-look="day"] .txn-washtoggle { box-shadow: inset 0 -1px 0 var(--line); color: var(--ink-3); }
[data-look="day"] .txn-washtoggle[aria-pressed="true"] {
  background: transparent; color: var(--ink); font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--accent-fill);
}
[data-look="night"] .txn-washtoggle[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); box-shadow: none; }
/* The team filter under it: an outlined field, not a grey slab. */
[data-look] .txn-teamsel select { background-color: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* Unselected matchup chips: no dimming — on white it reads as dirt. The ink
   frame + gold bar already mark the selected one. */
[data-look="day"] .lu-chip { opacity: 1; }

/* Links: ink with a gold underline (the day accent-as-text is ink — gold or a
   darkened gold as TEXT on white reads as brown). */
[data-look="day"] .linkbtn,
[data-look="day"] .skip,
[data-look="day"] .lm-door,
[data-look="day"] .sub-tools-link,
[data-look="day"] .tr-even,
[data-look="day"] .tf-more,
[data-look="day"] .lu-waiver-link,
[data-look="day"] .txn-alllink,
[data-look="day"] .txn-rollup-back,
[data-look="day"] .mg-link,
[data-look="day"] .mg-colink,
[data-look="day"] .pr-go,
[data-look="day"] .pr-team-go,
[data-look="day"] .pr-moves-ask,
[data-look="day"] .pr-moves-more,
[data-look="day"] .ts-link,
[data-look="day"] .dr-livelink,
[data-look="day"] .dr-dialback,
[data-look="day"] .about-vget,
[data-look="day"] .about-body a,
[data-look="day"] .auth-ctx a,
[data-look="day"] .free-bar a,
[data-look="day"] .ob-ext-steps a,
[data-look="day"] .pl-detail-sub a {
  text-decoration: underline;
  text-decoration-color: var(--accent-fill);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
[data-look="day"] .linkbtn:hover { background: var(--accent-wash); }

/* ── One "selected" idiom ──────────────────────────────────────────────────
   Gold FILL is for actions (Find trades, Evaluate). A selected option is a
   tab: day = ink label over the gold bar, night = the inverted chalk cell.
   The finder's lens/mode buttons and the position chips were each their own
   dialect (gold block, ink block). */
[data-look] .tf-lens { gap: 0; }
[data-look] .tf-lens-btn {
  border: 0; font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: 0.04em;
  padding: 8px 12px;
}
[data-look="night"] .tf-lens-btn { box-shadow: inset 0 0 0 1px var(--line-strong); }
[data-look="night"] .tf-lens-btn + .tf-lens-btn:not(.tf-filter-btn) { margin-left: -1px; }
[data-look="night"] .tf-lens-btn.is-on { background: var(--ink); color: var(--on-ink); font-weight: 700; box-shadow: none; }
[data-look="day"] .tf-lens { box-shadow: inset 0 -1px 0 var(--line); }
[data-look="day"] .tf-lens-btn { color: var(--ink-3); }
[data-look="day"] .tf-lens-btn:hover { color: var(--ink); }
[data-look="day"] .tf-lens-btn.is-on {
  background: transparent; color: var(--ink); font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--accent-fill);
}
/* Filter is a button beside the tabs, not one of them. */
[data-look] .tf-lens-btn.tf-filter-btn,
[data-look] .tf-lens-btn.tf-filter-btn.is-on {
  background: transparent; color: var(--ink); font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
[data-look] .tf-lens-btn.tf-filter-btn.is-on { box-shadow: inset 0 0 0 1px var(--ink), inset 0 -3px 0 var(--accent-fill); }
[data-look] .tf-filter { background: transparent; border-color: var(--line-strong); }
[data-look] .tf-chip.is-req { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent-fill); }

/* Position / lens chips (Players, Adds, Draft, Managers) in day: outlined,
   the selected one framed in ink over the gold bar. */
[data-look="day"] .dr-chip[aria-pressed="true"],
[data-look="day"] .mg-lenschip[aria-pressed="true"],
[data-look="day"] .mg-segbtn[aria-pressed="true"] {
  background: var(--surface); color: var(--ink); border-color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--accent-fill);
}

/* Team pickers on Trade / Adds / Players: a field, not a heading. */
[data-look] .tr-sel,
[data-look] .pl-teamsel .wknav-sel {
  background-color: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong);
}
