/* ==========================================================================
   Broadcast-sports design language: midnight navy chrome, an electric blue for
   anything actionable, red reserved for alerts, and dense data cards on a cool
   grey field. Deliberately in the family of televised football coverage without
   reproducing any broadcaster's brand assets, wordmarks or exact palette.

   Fixture difficulty keeps a green-to-red ramp because that reading is
   universal for a 1-5 scale, retuned to sit in this palette.
   ========================================================================== */

:root {
  /* brand */
  --brand-navy: #0a1b30;      /* chrome: headers, table heads, hero */
  --brand-navy-2: #12304f;    /* gradient partner */
  --brand-blue: #1ea7fd;      /* the action colour */
  --brand-blue-2: #6fd0ff;    /* lighter partner for gradients */
  --brand-red: #e5334a;       /* alerts only, never decoration */

  /* surfaces */
  --bg: #eef2f7;
  --panel: #ffffff;
  --panel-2: #f7fafc;
  --ink: #14202e;
  --ink-2: #0a1b30;
  --muted: #5d6b7c;
  --line: #dde5ee;
  --chip: #eaf1f8;

  /* semantic */
  --accent: #0d6fb8;
  --accent-ink: #ffffff;
  --good: #0a7d55;
  --warn: #96650a;
  --bad: #c62839;

  --pitch1: #1a7f4b;
  --pitch2: #169a52;

  --shadow-sm: 0 1px 2px rgba(10, 27, 48, .07);
  --shadow: 0 1px 3px rgba(10, 27, 48, .09), 0 6px 16px rgba(10, 27, 48, .08);
  --shadow-lg: 0 2px 6px rgba(10, 27, 48, .12), 0 16px 40px rgba(10, 27, 48, .14);
  --radius: 12px;
  --radius-sm: 8px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060f1a;
    --panel: #0e1b2b;
    --panel-2: #132436;
    --ink: #e8eff7;
    --ink-2: #ffffff;
    --muted: #8fa3b8;
    --line: #1e3348;
    --chip: #16283b;

    --accent: #46b8ff;
    --accent-ink: #060f1a;
    --good: #34d399;
    --warn: #fbbf24;
    --bad: #fb7185;

    --pitch1: #124e33;
    --pitch2: #14603c;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow: 0 1px 3px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .45);
    --shadow-lg: 0 2px 8px rgba(0, 0, 0, .55), 0 20px 48px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="dark"] {
  --bg: #060f1a; --panel: #0e1b2b; --panel-2: #132436;
  --ink: #e8eff7; --ink-2: #ffffff; --muted: #8fa3b8; --line: #1e3348; --chip: #16283b;
  --accent: #46b8ff; --accent-ink: #060f1a;
  --good: #34d399; --warn: #fbbf24; --bad: #fb7185;
  --pitch1: #124e33; --pitch2: #14603c;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow: 0 1px 3px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.45);
  --shadow-lg: 0 2px 8px rgba(0,0,0,.55), 0 20px 48px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }

/* The browser's own [hidden] rule is display:none, but any author `display`
   declaration outranks it. Several elements here set display (the sign-in
   overlay is display:grid), so hiding them from JavaScript silently did
   nothing. This makes the attribute mean what it says, everywhere. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1 { font-size: 18px; margin: 0; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: 16px; margin: 0 0 10px; letter-spacing: -.01em; font-weight: 700; }
h3 {
  font-size: 12px; margin: 22px 0 10px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .1em; font-weight: 800;
}
a { color: var(--accent); }

/* ---------- top bar ---------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 22px; flex-wrap: wrap; position: sticky; top: 0; z-index: 20;
  background: linear-gradient(100deg, var(--brand-navy) 0%, var(--brand-navy-2) 55%, #1c4a73 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(24, 0, 28, .25);
}
.topbar h1 { color: #fff; }
.brand { display: flex; align-items: center; gap: 13px; }
.logo {
  font-size: 20px; width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--brand-blue); border-radius: 10px;
  box-shadow: 0 3px 10px rgba(30, 167, 253, .40);
}
.sub { color: rgba(255, 255, 255, .82); font-size: 12px; margin-top: 1px; }
.controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.topbar label { color: rgba(255, 255, 255, .8); font-weight: 600; }
.topbar select, .topbar input {
  background: rgba(255, 255, 255, .12); color: #fff;
  border-color: rgba(255, 255, 255, .28);
}
.topbar select option { color: #1b1b1f; background: #fff; }
.topbar button.ghost {
  background: rgba(255, 255, 255, .12); color: #fff;
  border-color: rgba(255, 255, 255, .3);
}
.topbar button.ghost:hover {
  background: var(--brand-blue); color: #04121f;
  border-color: var(--brand-blue);
}

/* ---------- form controls ---------- */
label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--muted); font-weight: 600;
}
label.check { gap: 7px; cursor: pointer; user-select: none; }
label.check:hover { color: var(--ink); }
select, input, button {
  font: inherit; font-size: 13px; color: var(--ink); background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 7px 10px;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
}
select:focus-visible, input:focus-visible, button:focus-visible {
  outline: 2px solid var(--brand-blue-2); outline-offset: 1px;
}
input[type=range] {
  padding: 0; width: 100%; accent-color: var(--brand-navy);
  background: none; border: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) input[type=range] { accent-color: var(--brand-blue); }
}
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--brand-navy); }
input[type=number] { width: 92px; }
input[type=search] { min-width: 230px; }
button { cursor: pointer; font-weight: 650; }
button:hover { border-color: var(--brand-navy); }
button.primary {
  background: var(--brand-blue); color: #04121f;
  border-color: var(--brand-blue); font-weight: 800; letter-spacing: .01em;
  box-shadow: 0 2px 8px rgba(30, 167, 253, .34);
}
button.primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
button.ghost:hover { background: var(--chip); }
button:disabled { opacity: .5; cursor: progress; transform: none; }

/* ---------- tabs ---------- */
.tabs {
  display: flex; gap: 0; padding: 0 22px; background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 66px; z-index: 19; overflow-x: auto;
  box-shadow: var(--shadow-sm);
}
.tab {
  border: none; background: none; border-radius: 0; padding: 13px 16px;
  color: var(--muted); border-bottom: 3px solid transparent;
  font-weight: 700; white-space: nowrap; font-size: 13px;
}
.tab:hover { color: var(--ink); background: var(--panel-2); }
.tab.active {
  color: var(--ink-2); border-bottom-color: var(--brand-blue);
  background: linear-gradient(180deg, transparent 60%, rgba(30, 167, 253, .12) 100%);
}

main { padding: 22px; max-width: 1560px; margin: 0 auto 70px; }
.panel { display: none; }
.panel.active { display: block; animation: rise .18s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }
.loading { color: var(--muted); padding: 30px 0; }

.toolbar {
  display: flex; gap: 15px; align-items: center; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 18px; box-shadow: var(--shadow);
}

/* ---------- landing page ---------- */
.hero {
  background: linear-gradient(115deg, var(--brand-navy) 0%, var(--brand-navy-2) 60%, #1d5480 100%);
  color: #fff; border-radius: var(--radius); padding: 32px 34px;
  box-shadow: var(--shadow-lg); margin-bottom: 8px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(30, 167, 253, .34), transparent 68%);
  pointer-events: none;
}
.hero h2 {
  color: #fff; font-size: 27px; line-height: 1.22; letter-spacing: -.03em;
  max-width: 20ch; margin: 0 0 14px; font-weight: 800;
}
.hero p {
  color: rgba(255, 255, 255, .9); font-size: 14.5px; line-height: 1.65;
  max-width: 68ch; margin: 0;
}
.hero-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.hero-actions .ghost {
  background: rgba(255, 255, 255, .13); color: #fff; border-color: rgba(255, 255, 255, .32);
}
.hero-actions .ghost:hover { background: rgba(255, 255, 255, .22); border-color: #fff; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.step {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 20px 18px; box-shadow: var(--shadow); position: relative;
}
.step-n {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-blue); color: #04121f;
  font-weight: 900; font-size: 16px; margin-bottom: 12px;
  box-shadow: 0 3px 10px rgba(30, 167, 253, .34);
}
.step h4 { margin: 0 0 8px; font-size: 15px; letter-spacing: -.01em; color: var(--ink-2); font-weight: 800; }
.step p { margin: 0 0 9px; font-size: 13px; line-height: 1.6; color: var(--ink); }
.step p:last-child { margin-bottom: 0; }
.tiny { font-size: 11.5px !important; color: var(--muted) !important; line-height: 1.55 !important; }

#tab-guide .card h4 {
  margin: 0 0 10px; font-size: 14px; color: var(--ink-2); font-weight: 800;
  letter-spacing: -.01em;
}
#tab-guide .card p { font-size: 12.5px; line-height: 1.6; margin: 0 0 9px; color: var(--ink); }
#tab-guide .card p:last-child { margin-bottom: 0; }
#tab-guide .callout p { margin: 0 0 10px; line-height: 1.65; }
#tab-guide .grid2 .card::before { content: none; }

/* ---------- stat cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 14px; margin-bottom: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.cards .card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: linear-gradient(180deg, var(--brand-blue), var(--brand-blue-2));
}
.card .k {
  color: var(--muted); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .1em; font-weight: 800;
}
.card .v {
  font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin-top: 3px;
  color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.card .n { color: var(--muted); font-size: 11.5px; margin-top: 3px; }

/* ---------- pitch ---------- */
.pitch {
  background:
    repeating-linear-gradient(180deg, var(--pitch1) 0 54px, var(--pitch2) 54px 108px);
  border-radius: var(--radius); padding: 20px 12px; margin-bottom: 16px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.pitch::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: rgba(255, 255, 255, .13); transform: translateX(-50%);
}
.row { display: flex; justify-content: center; gap: 11px; flex-wrap: wrap; margin-bottom: 15px; position: relative; }
.row:last-child { margin-bottom: 0; }
.shirt {
  background: var(--panel); border-radius: 10px; width: 122px; padding: 9px 7px;
  text-align: center; border: 2px solid transparent;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .3); transition: transform .12s ease;
}
.shirt:hover { transform: translateY(-2px); }
.shirt.cap { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(30, 167, 253, .26), 0 3px 10px rgba(0,0,0,.3); }
.shirt .nm { font-weight: 750; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shirt .meta { color: var(--muted); font-size: 10.5px; margin-top: 2px; font-weight: 600; }
.shirt .pts {
  font-size: 17px; font-weight: 800; margin-top: 4px; color: var(--ink-2);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.shirt .fx { font-size: 10px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge {
  display: inline-block; font-size: 9px; font-weight: 900; padding: 1px 6px;
  border-radius: 999px; background: var(--brand-blue); color: #04121f; margin-left: 4px;
  vertical-align: middle;
}
.bench-wrap {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow);
}
.bench-wrap .row { margin-bottom: 0; }
.bench-wrap .shirt { border: 1px solid var(--line); box-shadow: none; opacity: .9; }

/* ---------- tables ---------- */
.tablewrap {
  overflow-x: auto; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th {
  background: var(--brand-navy); color: #fff; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .09em; font-weight: 800;
  position: sticky; top: 0; z-index: 1;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) th { background: #10263c; color: #e8eff7; }
}
tbody tr:nth-child(even) { background: var(--panel-2); }
tbody tr:hover { background: var(--chip); }
tbody tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.expand { cursor: pointer; font-weight: 650; }
.expand:hover { color: var(--accent); text-decoration: underline; }
tr.detail td { background: var(--chip); font-size: 12px; white-space: normal; line-height: 1.6; }

/* ---------- chips / pills / flags ---------- */
.flag {
  display: inline-block; font-size: 10px; padding: 2px 8px; border-radius: 999px;
  background: var(--chip); color: var(--muted); margin-right: 4px;
  border: 1px solid var(--line); font-weight: 700; letter-spacing: .02em;
}
.flag.warn { color: var(--warn); border-color: var(--warn); background: transparent; }
.flag.bad { color: var(--bad); border-color: var(--bad); background: transparent; }
.flag.good { color: var(--good); border-color: var(--good); background: transparent; font-weight: 800; }
.pill {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums;
}
/* FPL's own fixture-difficulty ramp */
.fdr1 { background: #16b981; color: #04241a; }
.fdr2 { background: #86e2be; color: #04241a; }
.fdr3 { background: #dbe3ec; color: #35424f; }
.fdr4 { background: #f78ba0; color: #40000f; }
.fdr5 { background: #a4132c; color: #ffe1e6; }

.bar { display: flex; height: 18px; border-radius: 5px; overflow: hidden; min-width: 140px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.bar span { display: block; font-size: 9.5px; line-height: 18px; text-align: center; color: #fff; font-weight: 800; }
.bar .h { background: #1d6fb8; }
.bar .d { background: #93a3b5; }
.bar .a { background: var(--brand-red); }

.note { color: var(--muted); font-size: 12px; margin: 11px 0; line-height: 1.6; }
.callout {
  background: var(--panel); border: 1px solid var(--line);
  border-left: 4px solid var(--brand-blue);
  padding: 12px 16px; border-radius: var(--radius-sm); margin: 14px 0;
  font-size: 13px; line-height: 1.6; box-shadow: var(--shadow-sm);
}
.callout.warn { border-left-color: var(--warn); }
.err { color: var(--bad); font-weight: 650; }
.good { color: var(--good); } .bad { color: var(--bad); } .muted { color: var(--muted); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }

.xfer {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
}
.xfer:last-child { border-bottom: none; }
.xfer .arrow { color: var(--brand-blue); font-size: 18px; font-weight: 800; }
.out { color: var(--bad); font-weight: 800; font-size: 10.5px; letter-spacing: .06em; }
.in { color: var(--good); font-weight: 800; font-size: 10.5px; letter-spacing: .06em; }

/* ---------- option sliders ---------- */
.sliders { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; margin-bottom: 18px; }
.slider {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow);
}
.slider-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-size: 12.5px; font-weight: 800; margin-bottom: 9px; color: var(--ink-2);
}
.slider-head output {
  font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 800;
  background: var(--chip); color: var(--ink-2); padding: 2px 9px; border-radius: 999px;
  white-space: nowrap;
}
.slider-note { color: var(--muted); font-size: 11.5px; line-height: 1.55; margin: 10px 0 0; }
.slider-note b { color: var(--ink); font-weight: 750; }

/* ---------- player pickers ---------- */
.pickres { max-height: 165px; overflow-y: auto; margin-top: 9px; }
.pickres:empty { display: none; }
.pickrow {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 6px 9px; border-radius: var(--radius-sm); cursor: pointer; font-size: 12.5px;
}
.pickrow:hover { background: var(--chip); }
.pickrow .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; background: var(--chip);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 12px;
  font-size: 12px; font-weight: 650;
}
.chip button { border: none; background: none; padding: 0 5px; color: var(--muted); font-size: 15px; line-height: 1; }
.chip button:hover { color: var(--bad); background: none; }
.chips:empty::after { content: "none yet"; color: var(--muted); font-size: 12px; }
.card input[type=search] { width: 100%; }

@media (max-width: 640px) {
  main { padding: 14px; }
  .topbar, .tabs { padding-left: 14px; padding-right: 14px; }
  .tabs { top: 0; position: static; }
  .topbar { position: static; }
  .shirt { width: 104px; }
}

/* ---------- inside information ---------- */
.intel { margin: 18px 0; }
.intel .card { border-left: 4px solid var(--brand-blue-2); }
.intel .chips button { border-radius: 999px; font-size: 12px; padding: 5px 12px; }
.intel .toolbar { box-shadow: none; border: none; padding: 0; background: none; margin-bottom: 0; }

/* ---------- sign in ---------- */
.authgate {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  padding: 20px; overflow-y: auto;
  background: linear-gradient(140deg, var(--brand-navy) 0%, #0d2740 55%, #050c15 100%);
}
.authbox {
  background: var(--panel); border-radius: var(--radius); padding: 30px 32px;
  width: min(430px, 100%); box-shadow: var(--shadow-lg);
}
.authbrand { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.authbrand h1 { color: var(--ink-2); }
.authsub { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 0 18px; }
.authfield { display: flex; flex-direction: column; align-items: stretch; gap: 5px;
             margin-bottom: 14px; font-weight: 700; color: var(--ink-2); font-size: 12px; }
.authfield input { width: 100%; padding: 10px 12px; font-size: 14px; }
.authhint { color: var(--muted); font-size: 11.5px; margin: -8px 0 14px; }
#auth_submit { width: 100%; padding: 11px; font-size: 14px; }
.authswap { text-align: center; font-size: 12.5px; color: var(--muted); margin: 16px 0 0; }
.linky { border: none; background: none; color: var(--accent); font-weight: 800;
         padding: 0 4px; text-decoration: underline; }
.linky:hover { border: none; filter: brightness(1.15); }
.authnote { color: var(--muted); font-size: 11px; line-height: 1.55;
            margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
#auth_err { margin: 0 0 14px; font-size: 12.5px; }
.whoami { display: inline-flex; align-items: center; gap: 8px;
          color: rgba(255,255,255,.9); font-size: 12px; font-weight: 700; }

/* ---------- site footer: attribution shown on every page ---------- */
.sitefoot {
  border-top: 1px solid var(--line); background: var(--panel);
  padding: 20px 22px 26px; margin-top: 40px;
}
.sitefoot p {
  max-width: 1516px; margin: 0 auto 8px; color: var(--muted);
  font-size: 11.5px; line-height: 1.6;
}
.sitefoot a { color: var(--muted); text-decoration: underline; }
.sitefoot a:hover { color: var(--accent); }
.sitefoot .linky { font-size: 11.5px; font-weight: 700; }
#tab-credits .card h4 { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); font-weight: 800; }
#tab-credits .card p { font-size: 12.5px; line-height: 1.65; margin: 0 0 10px; }
#tab-credits .card p:last-child { margin-bottom: 0; }
.authterms { align-items: flex-start; gap: 9px; margin: 4px 0 16px;
             font-size: 11.5px; line-height: 1.5; color: var(--muted); font-weight: 500; }
.authterms input { margin-top: 2px; flex: 0 0 auto; }
.authterms a { color: var(--accent); }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 22px 80px; }
.legal h1 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 4px; color: var(--ink-2); }
.legal h2 { font-size: 16px; margin: 32px 0 10px; color: var(--ink-2); }
.legal .updated { color: var(--muted); font-size: 12.5px; margin: 0 0 8px; }
.legal p, .legal li { font-size: 14px; line-height: 1.7; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 7px; }
.legal table { margin: 14px 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.legal th, .legal td { white-space: normal; vertical-align: top; font-size: 13px; }
.legal code { background: var(--chip); padding: 1px 6px; border-radius: 4px; font-size: 12.5px; }

/* Provenance for the predicted line-ups: how fresh they are, and whose they
   are. Muted by default; amber when the pull has gone stale, because a stale
   eleven that still looks authoritative is the failure mode worth flagging. */
.lineups-status {
  margin: 14px 0 0;
  padding: 9px 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--panel-2);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.lineups-status.warn {
  border-left-color: #e8a33d;
  color: var(--ink);
}
.lineups-status a { color: inherit; text-decoration: underline; }
