/* Gruvbox dark, hard contrast: the only theme. */
:root {
  --bg: #1d2021; --card: #232524; --raise: #282828; --fg: #fbf1c7; --muted: #d5c4a1; --dim: #928374;
  --line: #32302f; --line-strong: #504945; --accent: #fe8019; --accent-ink: #1d2021; --link: #8ec07c;
  --green: #b8bb26; --aqua: #8ec07c; --gold: #fabd2f; --red: #fb4934; --purple: #d3869b; --shadow: #000a;
  --official: var(--green); --provisional: var(--link); --fft: var(--gold); --review: var(--red);
}
:root { --radius: 4px; --mono: "JetBrains Mono", "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; --wide: 1240px; }

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; transition: background .3s; }
body {
  margin: 0; padding-top: 56px; min-height: 100vh; font: 14px/1.6 var(--mono); color: var(--fg);
  background: radial-gradient(1200px 600px at 85% -10%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%), var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
button, input { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

/* ------------------------------------------------------------ header */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: stretch; height: 56px;
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px; padding: 0 22px; border-right: 1px solid var(--line);
  color: var(--accent); font-weight: 700; letter-spacing: .06em;
}
.brand-mark { width: 20px; height: 20px; border: 1.5px solid var(--accent); border-radius: 50%; display: grid; place-items: center; }
.brand-mark::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px; padding: 0 18px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1 1 auto; }
.nav a { padding: 6px 10px; color: var(--muted); letter-spacing: .08em; white-space: nowrap; font-size: 13px; }
.nav a:hover { color: var(--fg); }
.nav a.on { color: var(--accent); }
.search { margin-left: auto; position: relative; display: flex; align-items: center; padding: 0 16px; }
.search-box {
  display: flex; align-items: center; gap: 10px; height: 36px; width: 260px; padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 4%, transparent);
}
.search-box:focus-within { border-color: var(--accent); }
.search-box svg { flex: none; color: var(--accent); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; letter-spacing: .06em; font-size: 13px; }
.search input::placeholder { color: var(--accent); text-transform: uppercase; }
kbd { font: 11px var(--mono); color: var(--muted); border: 1px solid var(--line-strong); border-radius: 3px; padding: 0 5px; }
.results {
  position: absolute; top: 48px; right: 16px; width: 360px; max-height: 70vh; overflow: auto;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 20px 60px var(--shadow);
}
.results a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line); }
.results a:first-child { border-top: 0; }
.results a:hover, .results a.sel { background: var(--raise); }
.results .empty { padding: 12px; color: var(--dim); }

/* ------------------------------------------------------------ layout */
html, body { overflow-x: hidden; }
main { max-width: var(--wide); margin: 0 auto; padding: 48px 28px 120px; }
.label { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; }
.label.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.label.muted { color: var(--muted); }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; }
.display { font-size: clamp(44px, 7vw, 92px); line-height: .98; margin: 22px 0 26px; }
.display .c { color: var(--accent); }
h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.1; }
h3 { font-size: 15px; letter-spacing: .04em; }
.lede { max-width: 56ch; color: var(--muted); font-size: 15px; line-height: 1.9; }
.section { margin-top: 72px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.c { color: var(--accent); }
.num { font-variant-numeric: tabular-nums; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 24px; }
.stats { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat b { display: block; font-size: 32px; font-weight: 600; line-height: 1.1; }
.stat span { font-size: 11px; color: var(--muted); letter-spacing: .2em; text-transform: uppercase; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 22px; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px;
}
.btn.ghost { background: none; color: var(--muted); padding: 0 6px; }
.btn.ghost:hover { color: var(--fg); }
.actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* ------------------------------------------------------------ cards / rows */
.card { background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line-strong); }
.card-head h2 { font-size: 22px; margin-top: 4px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; border-top: 1px solid var(--line-strong); color: var(--muted); font-size: 12px; }
.card-foot a.c:hover { text-decoration: underline; }
.row { display: grid; align-items: center; gap: 16px; padding: 14px 24px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
a.row:hover { background: var(--raise); }
.row .arrow { color: var(--dim); }
a.row:hover .arrow { color: var(--accent); }
.game-row { grid-template-columns: 84px minmax(0, 1fr) auto 108px 14px; }
.game-row .meta { font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; line-height: 1.5; }
.matchup { display: grid; gap: 3px; min-width: 0; }
.side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.side span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side.win { font-weight: 700; }
.side.loss { color: var(--muted); }
.score { text-align: right; font-size: 15px; display: grid; gap: 3px; }
.logo { width: 22px; height: 22px; object-fit: contain; flex: none; }
.logo.lg { width: 64px; height: 64px; }
.logo.xl { width: 96px; height: 96px; }
.ph { display: inline-grid; place-items: center; background: var(--raise); border: 1px solid var(--line); border-radius: 3px; color: var(--dim); font-size: 10px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; background: var(--raise); }
.avatar.lg { width: 112px; height: 112px; border: 1px solid var(--line-strong); }

.chip {
  display: inline-flex; align-items: center; justify-content: center; height: 24px; padding: 0 9px; border-radius: 3px;
  border: 1px solid currentColor; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  background: color-mix(in srgb, currentColor 10%, transparent);
}
.chip.official { color: var(--official); }
.chip.provisional { color: var(--provisional); }
.chip.fft { color: var(--fft); }
.chip.review { color: var(--review); }
.chip.scheduled { color: var(--dim); }
.chip.plain { color: var(--muted); }
.flag { color: var(--review); }
.notice {
  display: flex; gap: 14px; align-items: start; padding: 14px 18px; margin: 24px 0; border: 1px solid color-mix(in srgb, var(--red) 50%, transparent);
  background: color-mix(in srgb, var(--red) 6%, transparent); border-radius: var(--radius); color: var(--fg);
}
.notice b { color: var(--red); letter-spacing: .14em; font-size: 11px; text-transform: uppercase; flex: none; padding-top: 2px; }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.club-card { padding: 20px; display: grid; gap: 14px; }
.club-card:hover { border-color: var(--accent); }
.club-card .logos { display: flex; gap: 10px; }
.club-card .names { display: grid; gap: 2px; font-size: 12px; }
.club-card .names span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------ game page */
.crumbs { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.crumbs a:hover { color: var(--accent); }
.board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; padding: 40px 0 32px; }
.board .team { display: flex; align-items: center; gap: 20px; min-width: 0; }
.board .team.away { flex-direction: row-reverse; text-align: right; }
.board .team h2 { font-size: clamp(20px, 2.6vw, 32px); }
.board .team .sub { color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; }
.big-score { font-size: clamp(48px, 7vw, 84px); font-weight: 800; line-height: 1; text-align: center; letter-spacing: -.02em; }
.big-score .sep { color: var(--dim); padding: 0 .12em; }
.big-score .ft { color: var(--gold); font-size: .45em; letter-spacing: .1em; }
.under { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 400; color: var(--muted); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding: 12px 16px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
td { padding: 11px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
tr:first-child td { border-top: 0; }
tbody tr:hover td { background: var(--raise); }
td.r, th.r { text-align: right; }
td.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
td.who a:hover { color: var(--accent); }
.ok { color: var(--green); }
.bad { color: var(--red); }
.post { font-size: 13px; color: var(--muted); white-space: pre-wrap; word-break: break-word; }
.tag { font-size: 10px; letter-spacing: .14em; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 3px; padding: 1px 6px; text-transform: uppercase; }
.links { display: flex; gap: 14px; justify-content: flex-end; white-space: nowrap; }
.links a { color: var(--accent); }
.links a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ club page */
.club-nav {
  position: sticky; top: 56px; z-index: 10; display: flex; gap: 0; margin: 28px 0 0; background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-strong);
}
.club-nav a { display: flex; align-items: center; gap: 10px; padding: 14px 20px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.club-nav a:hover { color: var(--fg); }
.club-nav a.on { color: var(--accent); border-color: var(--accent); }
.team-sec { padding-top: 56px; scroll-margin-top: 110px; }
.team-head { display: flex; align-items: center; gap: 24px; margin-bottom: 28px; }
.team-head .rec { display: flex; gap: 36px; margin-left: auto; }

/* ------------------------------------------------------------ player */
.player-head { display: flex; gap: 32px; align-items: center; }
.akas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--muted); font-size: 12px; letter-spacing: .1em; }
.tabs a.on { color: var(--accent); border-color: var(--accent); }
.filter { width: 100%; max-width: 360px; height: 40px; padding: 0 12px; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius); outline: 0; }
.filter:focus { border-color: var(--accent); }
.loading { color: var(--dim); padding: 80px 0; text-align: center; letter-spacing: .2em; }
.empty-note { padding: 22px 24px; color: var(--dim); }
footer { max-width: var(--wide); margin: 0 auto; padding: 28px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero, .grid2 { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .brand { padding: 0 14px; } .brand-text { display: none; } .nav { padding: 0 6px; } .search { padding: 0 10px; }
  .stats { gap: 28px 36px; }
  .results { right: 8px; width: calc(100vw - 16px); }
  .game-row .meta br { display: none; } .game-row .meta .dim { display: block; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-box { width: 44px; } .search input, .search kbd { display: none; }
  .search-box:focus-within { width: 220px; } .search-box:focus-within input { display: block; }
  .board { grid-template-columns: 1fr; text-align: center; gap: 18px; }
  .board .team, .board .team.away { flex-direction: column; text-align: center; }
  .team-head { flex-wrap: wrap; } .team-head .rec { margin-left: 0; }
  .game-row { grid-template-columns: 60px minmax(0, 1fr) auto 14px; } .game-row .st { display: none; }
  main { padding: 32px 16px 80px; } .row { padding: 12px 16px; }
  .hide-sm { display: none; }
}

/* ------------------------------------------------------------ fold-out
   Everything enters on open/refresh: blocks rise in one after another,
   corner brackets deploy, the rank badge spins in, bars fill. */
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes slide { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes deploy { 0% { opacity: 0; width: 0; height: 0; } 50% { opacity: 1; width: 28px; height: 0; } 100% { opacity: 1; width: 28px; height: 28px; } }
@keyframes fill { from { width: 0; } to { width: var(--w); } }
@keyframes draw { 0% { clip-path: inset(0 100% 100% 0); } 50% { clip-path: inset(0 0 100% 0); } 100% { clip-path: inset(0); } }
.fold { animation: rise .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.card .row, tbody tr { animation: rise .4s ease-out both; }
.card .row, tbody tr { animation-delay: calc(min(var(--n, 0), 14) * 28ms + 180ms); }
.board .team { animation: slide .6s cubic-bezier(.2, .7, .2, 1) both .1s; }
.board .team.away { animation-name: rise; }
.big-score { animation: quiet-fade .2s ease-out both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }

/* ------------------------------------------------------------ player page */
.with-rail { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.rail { position: sticky; top: 76px; max-height: calc(100vh - 96px); display: flex; flex-direction: column; border-right: 1px solid var(--line); margin-left: -28px; }
.rail-head { padding: 0 20px; font-size: 13px; letter-spacing: .16em; }
.rail-sub { padding: 4px 20px 14px; font-size: 11px; letter-spacing: .1em; border-bottom: 1px solid var(--line); }
.rail-list { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.rail-list a { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; padding: 8px 20px; font-size: 13px; animation: slide .4s ease-out both; animation-delay: calc(var(--i) * 18ms); }
.rail-list a:hover { background: var(--raise); }
.rail-list a.on { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); box-shadow: inset 2px 0 var(--accent); }
.rail-list .rk { color: var(--accent); }
.rail-list .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-list .ga { color: var(--muted); }

.frame { position: relative; margin-top: 22px; padding: 44px 48px 36px; }
.frame .bk { position: absolute; width: 28px; height: 28px; border: 0 solid var(--accent); opacity: 0; animation: deploy .7s ease-out forwards .15s; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 50%, transparent)); }
.frame .tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.frame .tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.frame .bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.frame .brc { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.hero-p { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.pic { position: relative; }
.pic-img { display: block; width: 180px; height: 180px; object-fit: cover; border: 2px solid var(--accent); border-radius: 2px; box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 15%, transparent); }
.rank {
  position: absolute; top: -14px; right: -18px; min-width: 56px; height: 56px; display: grid; place-items: center; padding: 0 8px;
  background: var(--bg); border: 2px solid var(--accent); color: var(--accent); font-size: 20px; font-weight: 700;
  text-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent);
}
.pic-team { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.pic-team:hover { color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip { height: 28px; font-size: 11px; }
.pname { font-size: clamp(40px, 6vw, 84px); line-height: .95; margin: 18px 0 12px; word-break: break-word; }
.crest-img { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 0 30px color-mix(in srgb, var(--accent) 18%, transparent)); }
.crest .ph { width: 150px; height: 150px; }
.statrow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 40px; text-align: center; }
.sr { display: grid; justify-items: center; gap: 6px; }
.sr span { font-size: 11px; color: var(--muted); letter-spacing: .18em; text-transform: uppercase; }
.sr b { font-size: 26px; font-weight: 600; }
.sr:nth-child(2) b { color: var(--accent); }
.ico { width: 22px; height: 22px; color: var(--accent); flex: none; }
.sr:nth-child(3) .ico { color: var(--green); } .sr:nth-child(4) .ico { color: var(--gold); } .sr:nth-child(5) .ico { color: var(--purple); }

.combine { margin-top: 28px; padding: 24px; }
.combine .label .ico { width: 18px; height: 18px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.tile { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 16px 18px 14px; background: color-mix(in srgb, var(--raise) 50%, transparent); animation: rise .5s ease-out both; animation-delay: calc(var(--i) * 55ms); }
.tile:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.tile-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.tile-top .ico { width: 16px; height: 16px; color: var(--dim); }
.tile-val { display: flex; justify-content: space-between; align-items: end; margin-top: 14px; }
.tile-val b { font-size: 26px; font-weight: 600; line-height: 1; }
/* Percentiles use their own scale, independent of status/theme accents. */
.combine { --pct-low: #f07878; --pct-good: #65cf8c; }
.pct { min-width: 48px; padding: 4px 8px; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); border-radius: 3px; font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; }
.pct-prefix { font-size: 10px; margin-right: 3px; opacity: .75; }
.pct.good { color: var(--pct-good); background: color-mix(in srgb, var(--pct-good) 8%, transparent); }
.pct.low { color: var(--pct-low); background: color-mix(in srgb, var(--pct-low) 8%, transparent); }
.bar { height: 4px; margin-top: 18px; background: color-mix(in srgb, var(--fg) 9%, transparent); overflow: hidden; border-radius: 2px; }
.bar span { display: block; height: 100%; width: var(--w); background: var(--dim); animation: fill .9s ease-out both; animation-delay: calc(var(--i) * 55ms + 300ms); }
.percentile-bar { position: relative; }
.percentile-bar::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--card); }
.bar .good { background: var(--pct-good); } .bar .low { background: var(--pct-low); }
.percentile-key { display: flex; gap: 12px 24px; flex-wrap: wrap; margin-top: 22px; font-size: 11px; }
.percentile-key > span { display: flex; gap: 7px; align-items: center; }
.percentile-key > span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.percentile-key b { color: var(--muted); font-weight: 400; }
.key-low { color: var(--pct-low); } .key-good { color: var(--pct-good); }
.percentile-note { margin: 12px 0 0; font-size: 11px; line-height: 1.8; color: var(--muted); }
.percentile-unranked { margin-top: 14px; color: var(--dim); font-size: 11px; }
.ptabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 40px 0 20px; border-bottom: 1px solid var(--line); }
.ptabs a { padding: 12px 18px; color: var(--muted); letter-spacing: .12em; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ptabs a:hover { color: var(--fg); }
.ptabs a.on { color: var(--accent); border-color: var(--accent); }

@media (max-width: 1100px) {
  .with-rail { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .frame { padding: 32px 18px 26px; }
  .hero-p { grid-template-columns: minmax(0, 1fr); gap: 24px; justify-items: start; }
  .crest { display: none; }
  .pic-img { width: 128px; height: 128px; }
  .statrow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; }
}

/* ------------------------------------------------------------ season bar */
.search { margin-left: auto; }
.season-bar { display: flex; height: 10px; gap: 3px; margin: 8px 0 18px; }
.season-bar span { height: 100%; border-radius: 2px; transform-origin: left; animation: grow .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 120ms + 250ms); }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
.legend { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 8px; background: var(--c); vertical-align: 0; }
.legend b { color: var(--fg); font-weight: 600; margin-right: 6px; }
.md-big { font-size: clamp(56px, 9vw, 120px); line-height: .9; margin: 22px 0 8px; }
.md-big small { display: block; font-size: .32em; letter-spacing: .06em; color: var(--muted); margin-bottom: 14px; }
.hero-sub { color: var(--muted); margin: 0 0 34px; font-size: 14px; }

/* ------------------------------------------------------------ home band + standings */
.band { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 56px; align-items: end; padding: 8px 0 8px; }
.band-md h1 { font-size: clamp(44px, 6vw, 76px); line-height: .95; margin: 16px 0 10px; animation: rise .55s cubic-bezier(.2, .7, .2, 1) both .05s; }
.band-bar { padding-bottom: 6px; }
.band-bar .season-bar { height: 12px; margin-top: 0; }
.stand-sec { margin-top: 56px; }
.stand-note { margin: -4px 0 18px; font-size: 12px; }
.stand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stand-grid.full { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.stand { border-top: 2px solid var(--accent); }
.stand-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 16px 12px; font-size: 12px; }
.stand-head h3 { font-size: 20px; color: var(--accent); }
.stand table td, .stand table th { padding: 9px 10px; }
.stand table td:first-child, .stand table th:first-child { padding-left: 14px !important; }
.stand table td:last-child, .stand table th:last-child { padding-right: 14px !important; }
.stand tbody tr { cursor: pointer; }
.stand table { table-layout: fixed; }
.stand col.c-rk { width: 36px; } .stand col.c-n { width: 34px; } .stand col.c-g { width: 44px; } .stand col.c-gd { width: 46px; } .stand col.c-pts { width: 44px; }
.stand col.c-dots { width: 58px; } .stand table.compact col.c-n { width: 30px; } .stand table.compact col.c-pts { width: 38px; } .stand col.c-form { width: 130px; }
.stand .tm .side { min-width: 0; } .stand .tm .side > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stand table.compact td, .stand table.compact th { padding-left: 4px; padding-right: 4px; }
.stand table.compact th { font-size: 10px; letter-spacing: .1em; }
.stand .side span { font-size: 13px; } .stand table.compact .logo { width: 18px; height: 18px; } .stand table.compact .side { gap: 8px; }
.stand .rk { color: var(--dim); width: 24px; }
.stand .pts { font-weight: 700; color: var(--fg); font-size: 15px; }
.stand tr.lead td { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.stand tr.lead .rk, .stand tr.lead .pts { color: var(--accent); }
.un-n { color: var(--provisional); font-size: 9px; margin-left: 2px; }
.form { display: flex; gap: 3px; }
.fm { width: 20px; height: 18px; display: grid; place-items: center; border-radius: 2px; font-size: 9px; font-weight: 700; color: var(--bg); }
.fm.w { background: var(--green); } .fm.l { background: var(--red); } .fm.otl { background: var(--gold); } .fm.d { background: var(--dim); }
.fm.un { opacity: .5; }
.form.dots { gap: 4px; } .form.dots .fm { width: 8px; height: 8px; border-radius: 50%; }
.seg { display: flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.seg button { background: none; border: 0; padding: 8px 14px; color: var(--muted); font-size: 12px; letter-spacing: .1em; cursor: pointer; }
.seg button.on { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.stand-grid.full .stand .side span { font-size: 14px; }
@media (max-width: 1100px) { .stand-grid { grid-template-columns: minmax(0, 1fr); } .band { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ------------------------------------------------------------ admin (signed-in only) */
.admin-bar { display: flex; align-items: center; gap: 12px; margin-left: auto; padding-left: 12px; }
.admin-bar + .search { margin-left: 0; }
.admin-who { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.admin-who .avatar { width: 24px; height: 24px; }
.admin-btn { height: 32px; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--review) 60%, transparent); border-radius: var(--radius);
  background: color-mix(in srgb, var(--review) 10%, transparent); color: var(--fg); font-size: 12px; letter-spacing: .08em; cursor: pointer; }
.admin-btn:hover { border-color: var(--review); }
.admin-btn:disabled { opacity: .5; cursor: wait; }
.admin-nav { color: var(--review) !important; }
.admin-card { border-color: color-mix(in srgb, var(--review) 45%, var(--line-strong)); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 50; padding: 12px 18px; background: var(--card);
  border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 10px 40px var(--shadow); font-size: 13px; animation: rise .3s ease-out both; }
@media (max-width: 900px) { .admin-who span:not(.chip) { display: none; } }
.gap-n { color: var(--gold); font-size: 9px; margin-left: 2px; cursor: help; }

/* Result provenance stays readable on phones without hiding source details. */
.verification-summary { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.verification-summary h3 { color: var(--accent); margin: 0 0 8px; }
.verification-summary p, .verification-help p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 80ch; }
.source-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, auto) 180px; gap: 20px; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); font-size: 13px; }
.source-time { display: block; font-size: 11px; margin-top: 6px; }
.source-check { text-align: right; font-size: 12px; }
.verification-help { padding: 18px 24px; }
.verification-help summary { cursor: pointer; color: var(--fg); font-size: 13px; line-height: 1.6; }
.verification-help p { margin-top: 16px; }
.replay-provenance { padding-left: 20px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.replay-provenance li { margin-top: 14px; }
.replay-provenance code { display: block; font-size: 11px; overflow-wrap: anywhere; color: var(--dim); }
@media (max-width: 640px) {
  .source-item { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 16px; }
  .source-check { grid-column: 1 / -1; text-align: left; }
  .source-score { overflow-wrap: anywhere; max-width: 160px; }
  .verification-summary, .verification-help { padding: 18px 16px; }
}
.verification-summary .score-order { font-size: 11px; margin-top: 12px; color: var(--dim); }

.pm-positive { color: #65cf8c; } .pm-negative { color: #f07878; }
.rail-list { overscroll-behavior: contain; }

/* Image pixels, square border and rank badge enter as a single unit. */
.portrait { position: relative; width: 180px; height: 180px; }
.portrait.is-loading { opacity: 0; }
.portrait.is-ready { animation: portrait-in .55s cubic-bezier(.2,.7,.2,1) both; }
.portrait-fallback { display: none; }
.portrait-failed .pic-img { display: none; }
.portrait-failed .portrait-fallback { display: grid; place-items: center; width: 100%; height: 100%; border: 2px solid var(--accent); background: var(--card); color: var(--accent); font-size: 64px; }
@keyframes portrait-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) { .portrait { width: 128px; height: 128px; } }
@media (prefers-reduced-motion: reduce) { .portrait.is-ready { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .frame .bk { opacity: 1; } }

/* A roster directory: team context and alphabetical names, without player ranks. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.directory-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px 20px 8px; }
.directory-controls label { min-width: 0; }
.directory-controls .filter { max-width: none; font-size: 12px; }
.directory-division { width: 100%; font: inherit; font-size: 12px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--fg); background: var(--card); }
.directory-count { padding: 4px 20px 14px; font-size: 10px; border-bottom: 1px solid var(--line); }
.directory-list { min-height: 0; }
.directory-group { margin: 0; padding-bottom: 12px; }
.directory-group h3 { font-size: 11px; letter-spacing: .03em; text-transform: none; }
.directory-group h3 a { display: flex; align-items: center; gap: 8px; padding: 16px 16px 8px; animation: none; color: var(--muted); }
.directory-group h3 a > span:not(.tag) { min-width: 0; overflow-wrap: anywhere; flex: 1; }
.directory-group h3 .logo { width: 18px; height: 18px; }
.directory-group h3 .tag { font-size: 9px; }
.directory-list .directory-player { display: flex; align-items: center; gap: 10px; padding: 8px 20px; font-size: 12px; animation: none; }
.directory-player .avatar { width: 24px; height: 24px; }
.directory-player .nm { flex: 1; min-width: 0; }
.directory-inactive { font-size: 9px; color: var(--dim); }
.directory-page { padding: 12px; }
.directory-page .directory-controls { grid-template-columns: minmax(0, 360px) 160px; }
.directory-page .directory-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; overflow: visible; }
.directory-page .directory-group { border: 1px solid var(--line); border-radius: var(--radius); }
.directory-player:hover { background: var(--raise); }
.directory-player.on { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); box-shadow: inset 2px 0 var(--accent); }
.directory-group[hidden], .directory-player[hidden], .directory-empty[hidden] { display: none !important; }
@media (max-width: 1000px) { .directory-page .directory-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .directory-page .directory-list, .directory-page .directory-controls { grid-template-columns: minmax(0, 1fr); } }

.match-vs { font-size: 22px; font-weight: 400; line-height: 1.5; text-align: center; color: var(--dim); letter-spacing: .04em; animation: quiet-fade .2s ease-out both; }
@keyframes quiet-fade { from { opacity: 0; } to { opacity: 1; } }

/* Discord account controls stay available in the fixed header. */
.account { display: flex; align-items: center; padding: 0 16px 0 4px; flex: none; }
.login-btn { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 7px 12px; font-size: 12px; white-space: nowrap; color: var(--fg); }
.login-btn:hover { border-color: var(--accent); color: var(--accent); }
.account-menu { position: relative; }
.account-menu summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.account-caret { color: var(--muted); }
.account-popover { position: absolute; right: 0; top: calc(100% + 14px); min-width: 180px; padding: 8px; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 10px 30px var(--shadow); }
.account-popover > span { display: block; padding: 8px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.account-popover a { display: block; padding: 8px; font-size: 12px; }
.account-popover a:hover { color: var(--accent); background: var(--raise); }
@media (max-width: 900px) { .account { padding-right: 10px; } .account-name { display: none; } .login-btn { padding: 6px 8px; font-size: 11px; } }

.call-up { color: var(--aqua); border-color: color-mix(in srgb, var(--aqua) 40%, transparent); }
.directory-player .call-up { font-size: 9px; white-space: nowrap; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.admin-heading .display { font-size: clamp(36px,5vw,64px); }
.admin-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.admin-summary .card { padding: 20px; display: grid; gap: 12px; }
.admin-summary span { font-size: 12px; color: var(--muted); }
.admin-summary b { font-size: 30px; color: var(--accent); }
.admin-health { margin: 20px 0 36px; font-size: 12px; }
.admin-confirm-row { display: flex; align-items: center; gap: 16px; padding-right: 20px; border-bottom: 1px solid var(--line); }
.admin-confirm-row > .game-row { flex: 1; min-width: 0; border-bottom: 0; }
@media (max-width:700px) { .admin-summary { grid-template-columns: repeat(2,minmax(0,1fr)); } .admin-heading { align-items: start; flex-direction: column; } .admin-confirm-row { gap: 4px; padding-right: 12px; } }

.inbox-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:28px 0 16px; font-size:12px; }
.inbox-toolbar select,.period-choice select,.add-period select { font:inherit; background:var(--card); border:1px solid var(--line-strong); color:var(--fg); border-radius:var(--radius); padding:7px 10px; }
.game-inbox { display:grid; gap:14px; }
.game-review { scroll-margin-top:76px; }
.game-review[hidden] { display:none; }
.game-review > summary { display:flex; align-items:center; gap:20px; padding:24px; cursor:pointer; list-style:none; }
.game-review > summary::-webkit-details-marker { display:none; }
.review-fixture { flex:1; min-width:0; }
.review-fixture > span { font-size:11px; }
.review-fixture h3 { font-size:16px; margin:8px 0 12px; line-height:1.5; }
.review-labels { display:flex; flex-wrap:wrap; gap:6px; }
.review-state { font-size:11px; color:var(--accent); white-space:nowrap; }
.review-state.manually_accepted,.review-state.automatically_accepted { color:var(--green); }
.review-state.problem_detected,.review-state.rejected,.review-warning { color:var(--review); }
.review-state.needs_review { color:var(--accent); }
.review-chevron { color:var(--dim); }.game-review[open] .review-chevron { transform:rotate(180deg); }
.game-review-body { border-top:1px solid var(--line-strong); padding:24px; }
.review-local-note { font-size:12px; color:var(--muted); padding:14px 16px; background:var(--raise); border-left:2px solid var(--accent); line-height:1.8; }
.review-checks { color:var(--gold); font-size:12px; line-height:1.9; padding-left:20px; }
.review-source-grid { display:flex; flex-wrap:wrap; gap:24px 40px; margin:24px 0 32px; }
.review-source-grid > div { display:grid; gap:6px; font-size:12px; }.review-source-grid strong { font-size:18px; }
.review-editor > p { font-size:12px; }.period-choice { display:grid; grid-template-columns:minmax(140px,.7fr) minmax(0,1.4fr) auto; gap:12px; padding:16px 0; border-bottom:1px solid var(--line); font-size:12px; align-items:center; }
.period-choice small { grid-column:1 / -1; overflow-wrap:anywhere; }.period-choice .links { justify-content:start; }
.review-reason { display:grid; gap:8px; font-size:12px; margin:20px 0 12px; }
.review-reason textarea { width:100%; min-height:78px; resize:vertical; padding:12px; background:var(--bg); color:var(--fg); border:1px solid var(--line-strong); border-radius:var(--radius); font:inherit; }
.review-subhead { margin:36px 0 18px; }.period-stats { min-width:0; border:1px solid var(--line); margin:16px 0; padding:12px; }.period-stats legend { color:var(--muted); font-size:12px; padding:0 8px; }
.review-table-scroll { overflow-x:auto; }.period-stats table { min-width:650px; }.period-stats td,.period-stats th { padding:10px 8px; }.period-stats td:first-child { min-width:170px; }.period-stats small { display:block; margin-top:4px; font-size:10px; }
.period-stats input[type=number] { width:60px; background:var(--bg); border:1px solid var(--line-strong); border-radius:2px; padding:6px; color:var(--fg); font:inherit; }.period-stats [data-stat=seconds] { width:78px; }
.review-actions,.add-period { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:20px 0; }.review-actions a { font-size:12px; }.add-period input { min-width:0; flex:1; max-width:340px; padding:8px; font:inherit; font-size:12px; background:var(--bg); border:1px solid var(--line); color:var(--fg); }
.review-history,.official-reference,.supporting-review { margin-top:24px; font-size:12px; }.supporting-review { margin-top:36px; }.review-history summary,.official-reference summary,.supporting-review summary { cursor:pointer; padding:12px 0; color:var(--muted); }.audit-entry,.orphan-row { padding:14px; border-top:1px solid var(--line); }.audit-entry code,.orphan-row code { display:block; font-size:10px; overflow-wrap:anywhere; }.audit-entry span { color:var(--dim); }.audit-entry p { margin:6px 0; }
.review-save-status { color:var(--accent); min-height:20px; }
@media(max-width:700px) { .game-review > summary { padding:18px 16px; gap:10px; flex-wrap:wrap; }.review-fixture { flex-basis:100%; }.review-fixture h3 { font-size:14px; }.game-review-body { padding:16px; }.period-choice { grid-template-columns:minmax(0,1fr); }.period-choice small { grid-column:auto; }.inbox-toolbar { align-items:start; flex-direction:column; }.review-state { white-space:normal; } }

/* ------------------------------------------------------------ document review */
kbd { font: 11px var(--mono); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 3px; padding: 0 5px; margin: 0 2px; color: var(--muted); }
.doc-start { margin-left: auto; }
body.doc-open { overflow: hidden; }
.doc-view { position: fixed; inset: 56px 0 0; z-index: 40; display: grid; grid-template-rows: 1fr auto; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(6px); animation: doc-fade .16s ease-out; }
.doc-scroll { overflow-y: auto; padding: 32px 20px 24px; }
.doc-stage { max-width: 760px; margin: 0 auto; }
.doc-page { background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 32px 36px; box-shadow: 0 18px 50px var(--shadow); }
.doc-page.in { animation: doc-fade .16s ease-out; }
.doc-page.in-right { animation: doc-in-right .2s ease-out; }
.doc-page.in-left { animation: doc-in-left .2s ease-out; }
.doc-page.out-right { transition: transform .18s ease-in, opacity .18s; transform: translateX(60px); opacity: 0; }
.doc-page.out-left { transition: transform .18s ease-in, opacity .18s; transform: translateX(-60px); opacity: 0; }
@keyframes doc-fade { from { opacity: 0; } }
@keyframes doc-in-right { from { opacity: 0; transform: translateY(12px); } }
@keyframes doc-in-left { from { opacity: 0; transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .doc-view, .doc-page { animation: none !important; transition: none !important; } }
.doc-head { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .08em; }
.doc-title { font-size: clamp(20px, 3vw, 28px); margin: 6px 0 18px; line-height: 1.25; }
.doc-verdict { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line-strong); border-left: 3px solid var(--dim); border-radius: var(--radius); background: var(--raise); }
.doc-verdict > div { display: grid; flex: 1; } .doc-verdict span:not(.doc-icon):not(.review-state) { font-size: 12px; color: var(--muted); }
.doc-verdict.pass { border-left-color: var(--green); } .doc-verdict.warn { border-left-color: var(--gold); } .doc-verdict.fail { border-left-color: var(--red); }
.doc-icon { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 1.5px solid var(--dim); color: var(--dim); }
.pass > .doc-icon { color: var(--green); border-color: var(--green); } .warn > .doc-icon { color: var(--gold); border-color: var(--gold); }
.fail > .doc-icon { color: var(--red); border-color: var(--red); } .info > .doc-icon { color: var(--link); border-color: var(--link); }
.doc-note { font-size: 12px; margin: 12px 0 0; }
.doc-checks { list-style: none; padding: 0; margin: 22px 0 0; }
.doc-check { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.doc-check > div { min-width: 0; flex: 1; } .doc-check p { margin: 2px 0 0; font-size: 13px; }
.doc-check details summary { cursor: pointer; font-size: 11px; color: var(--dim); margin-top: 6px; letter-spacing: .06em; }
.doc-check details > p { font-size: 12px; }
.doc-proof { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-size: 12px; padding: 8px 10px; margin-top: 6px; background: var(--raise); border-radius: var(--radius); }
.doc-proof small, .doc-proof code { flex-basis: 100%; font-size: 11px; } .doc-proof code { color: var(--dim); overflow-wrap: anywhere; }
.doc-sub { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; }
.doc-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.doc-team h4 { margin: 0 0 6px; font-size: 13px; } .doc-team table { width: 100%; font-size: 12px; } .doc-team td, .doc-team th { padding: 5px 4px; }
.doc-bad { color: var(--red); border-color: var(--red); }
.doc-bar { border-top: 1px solid var(--line-strong); background: var(--bg); padding: 12px 20px 14px; }
.doc-actions { max-width: 760px; margin: 0 auto; display: flex; gap: 8px; align-items: center; }
.doc-key { font: 12px var(--mono); color: var(--fg); background: var(--raise); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 8px 12px; cursor: pointer; }
.doc-key:hover { border-color: var(--muted); }
.doc-key.reject { color: var(--red); } .doc-key.accept { margin-left: auto; color: var(--green); border-color: color-mix(in srgb, var(--green) 50%, var(--line-strong)); }
.doc-prompt { max-width: 760px; margin: 0 auto 10px; display: grid; gap: 4px; font-size: 12px; }
.doc-prompt label { display: grid; gap: 6px; } .doc-prompt textarea { font: 13px var(--mono); color: var(--fg); background: var(--card); border: 1px solid var(--accent); border-radius: var(--radius); padding: 8px; resize: vertical; }
.doc-status { max-width: 760px; margin: 6px auto 0; min-height: 1.2em; font-size: 12px; color: var(--muted); }
.doc-done { text-align: center; padding: 60px 20px; }
@media (max-width: 700px) {
  .doc-scroll { padding: 16px 10px; } .doc-page { padding: 20px 16px; } .doc-teams { grid-template-columns: 1fr; }
  .doc-actions { flex-wrap: wrap; } .doc-key[data-doc="prev"], .doc-key[data-doc="edit"] { display: none; } .doc-key.reject, .doc-key.accept { flex: 1; }
  .doc-start { margin-left: 0; }
}
.doc-prompt[hidden] { display: none; }
.result-fix { margin: 20px 0 8px; padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--raise); }
.result-fix h3 { margin-top: 0; } .result-fix > p { font-size: 12px; }
.result-originals { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; margin: 8px 0 14px; }
.result-fixed .tag { color: var(--gold); border-color: var(--gold); }
.result-inputs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; }
.result-inputs select, .result-inputs input { font: 13px var(--mono); color: var(--fg); background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 6px 8px; }
.result-inputs input { width: 56px; } .result-inputs input:disabled { opacity: .4; }
.result-score { display: flex; align-items: center; gap: 8px; }
.result-hint { font-size: 11px; margin: 8px 0 0; }
.result-inputs .result-reason { width: auto; flex: 1 1 260px; }
