/* vlrstats: minimal register (monochrome ink accent, warm neutrals, ring + layered shadows) */
:root {
  --bg: oklch(0.975 0.004 80);
  --surface: oklch(0.995 0.002 80);
  --sunken: oklch(0.952 0.005 80);
  --fg: oklch(0.21 0.006 80);
  --fg-2: oklch(0.43 0.006 80);
  --fg-3: oklch(0.52 0.006 80);
  --line: oklch(0.21 0.006 80 / .08);
  --line-strong: oklch(0.21 0.006 80 / .14);
  --danger: oklch(0.55 0.17 27);
  --danger-soft: oklch(0.96 0.025 27);
  --e1: 0 1px 1px oklch(0.21 0.006 80 / .04), 0 2px 4px -1px oklch(0.21 0.006 80 / .05), 0 0 0 1px var(--line);
  --e2: 0 1px 1px oklch(0.21 0.006 80 / .04), 0 6px 16px -4px oklch(0.21 0.006 80 / .10), 0 0 0 1px var(--line);
  --top: inset 0 1px 0 oklch(1 0 0 / .9);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
/* Dark tokens: data-theme is set before paint by the head script in ui.tsx */
:root[data-theme="dark"] {
  --bg: oklch(0.17 0.004 80);
  --surface: oklch(0.21 0.004 80);
  --sunken: oklch(0.145 0.004 80);
  --fg: oklch(0.94 0.004 80);
  --fg-2: oklch(0.78 0.004 80);
  --fg-3: oklch(0.66 0.004 80);
  --line: oklch(0.94 0.004 80 / .09);
  --line-strong: oklch(0.94 0.004 80 / .16);
  --danger: oklch(0.72 0.15 27);
  --danger-soft: oklch(0.26 0.05 27);
  --e1: 0 1px 2px oklch(0 0 0 / .5), 0 0 0 1px var(--line);
  --e2: 0 10px 24px -8px oklch(0 0 0 / .7), 0 0 0 1px var(--line);
  --top: inset 0 1px 0 oklch(1 0 0 / .05);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 15px/1.5 var(--font); color: var(--fg); background: var(--bg);
  -webkit-font-smoothing: antialiased; position: relative;
}
a { color: inherit; }
img { display: block; }
h1, h2, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.dots {
  position: absolute; inset: 0 0 auto 0; height: 380px; pointer-events: none; z-index: -1;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 50% 100% at 30% 0, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 50% 100% at 30% 0, #000 10%, transparent 70%);
}
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }
.page { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 40px; padding: 32px 0 64px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.mark { width: 22px; height: 22px; border-radius: 6px; background: var(--fg); color: var(--bg); display: grid; place-items: center; }
.mini { position: relative; width: 260px; max-width: 100%; display: flex; gap: 6px; }
.mini input {
  height: 36px; width: 100%; min-width: 0; border: 0; border-radius: 10px; background: var(--sunken);
  box-shadow: inset 0 0 0 1px var(--line); padding: 0 12px 0 34px; font-weight: 500; font-size: 14px;
}
.mini input::placeholder { color: var(--fg-3); }
.mini > svg { position: absolute; left: 11px; top: 10px; color: var(--fg-3); pointer-events: none; }
.mini select { height: 36px; border: 0; border-radius: 10px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); padding: 0 6px; font-size: 13px; font-weight: 500; }

.foot { padding: 24px 0 32px; border-top: 1px solid var(--line); font-size: 12px; color: var(--fg-3); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* primitives */
.card { background: var(--surface); border-radius: 16px; box-shadow: var(--e1), var(--top); }
.clip { overflow: hidden; }
.scroll { overflow-x: auto; }
.pad { padding: 18px; }
.btn {
  height: 36px; padding: 0 12px; border-radius: 10px; border: 0; background: var(--surface);
  box-shadow: var(--e1), var(--top); font: 600 13px/1 var(--font); color: var(--fg);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-decoration: none;
  transition: box-shadow .15s var(--ease), transform .15s var(--ease), opacity .15s var(--ease);
}
.btn:hover { box-shadow: var(--e2), var(--top); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--fg); color: var(--bg); box-shadow: var(--e1); }
.btn-ink:hover { opacity: .88; box-shadow: var(--e2); }
.iconbtn { width: 36px; padding: 0; flex: none; }
.iconbtn .i-sun, :root[data-theme="dark"] .iconbtn .i-moon { display: none; }
:root[data-theme="dark"] .iconbtn .i-sun { display: block; }
[aria-busy="true"] { opacity: .55; transition: opacity .2s var(--ease) .12s; pointer-events: none; }
.btn-lg { height: 44px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--fg-3); }
.sub { color: var(--fg-2); font-size: 14px; }
.small { font-size: 12px; }
.r { text-align: right; }
.hatch { background-color: var(--sunken); background-image: repeating-linear-gradient(45deg, var(--line-strong) 0 1px, transparent 1px 6px); box-shadow: inset 0 0 0 1px var(--line); }
.title { font-size: 28px; line-height: 1.1; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
.sh { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sh h2 { font-size: 15px; font-weight: 600; }
.tabs { display: inline-flex; gap: 4px; padding: 3px; border-radius: 12px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); }
.tab { height: 30px; padding: 0 12px; border-radius: 9px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; color: var(--fg-2); text-decoration: none; white-space: nowrap; }
.tab:hover { color: var(--fg); }
.tab.on { background: var(--surface); color: var(--fg); box-shadow: var(--e1), var(--top); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.tag.ink { background: var(--fg); color: var(--bg); }
.tag.out { box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--fg-2); }
.bar { height: 6px; border-radius: 99px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--fg); border-radius: 99px; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.kv:first-child { border-top: 0; }
.kv > :last-child { text-align: right; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 760px) { .two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.kpi b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12px; color: var(--fg-3); }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col { display: flex; flex-direction: column; min-width: 0; }
.hrow { display: flex; gap: 10px; align-items: center; min-width: 0; }

/* images: fixed boxes so nothing shifts while loading */
.ag { width: 32px; height: 32px; border-radius: 8px; flex: none; object-fit: cover; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); }
.ag-sm { width: 28px; height: 28px; border-radius: 7px; }
.rank { width: 44px; height: 44px; flex: none; object-fit: contain; }
.rank-sm { width: 22px; height: 22px; flex: none; object-fit: contain; }
.pcard { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); }
.av { width: 36px; height: 36px; border-radius: 10px; flex: none; object-fit: cover; background: var(--sunken); }
.mapimg { width: 96px; height: 64px; border-radius: 12px; flex: none; object-fit: cover; background: var(--sunken); }

/* home */
.home { max-width: 560px; margin: 0 auto; padding: 120px 0 64px; display: flex; flex-direction: column; gap: 32px; }
@media (max-width: 560px) { .home { padding-top: 56px; } }
.hero { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.hero p { margin: 0 auto; max-width: 46ch; color: var(--fg-2); text-wrap: pretty; }
.search { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.form { display: flex; gap: 8px; align-items: flex-end; }
.form .grow { flex: 1 1 auto; min-width: 0; }
@media (max-width: 560px) { .form { flex-direction: column; align-items: stretch; } .form > * { width: 100%; } .form .select { width: 100%; } }
.label { font-size: 12px; font-weight: 500; color: var(--fg-3); display: block; margin-bottom: 6px; }
.field { position: relative; }
.field svg { position: absolute; left: 14px; top: 14px; color: var(--fg-3); pointer-events: none; }
.input { height: 44px; width: 100%; border: 0; border-radius: 12px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); padding: 0 14px 0 40px; font-weight: 500; font-size: 15px; }
.input::placeholder { color: var(--fg-3); }
.select { height: 44px; border: 0; border-radius: 12px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); padding: 0 12px; font-weight: 500; font-size: 14px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-decoration: none; border-top: 1px solid var(--line); transition: background .15s var(--ease); }
.row:first-child { border-top: 0; }
.row:hover { background: var(--sunken); }
.go { opacity: 0; flex: none; transition: opacity .15s var(--ease), transform .15s var(--ease); }
.row:hover .go, .mrow:hover .go { opacity: 1; }
.linkbtn { border: 0; background: none; padding: 0; font-size: 12px; font-weight: 500; color: var(--fg-3); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* profile */
.prof { display: flex; flex-wrap: wrap; gap: 40px; padding: 32px 0 64px; align-items: flex-start; }
.side { flex: 1 1 280px; max-width: 320px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 900px) { .side { max-width: none; } }
.main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mrow, .mhead { display: grid; grid-template-columns: 40px minmax(0, 1.7fr) 64px 92px 52px 52px 68px 16px; align-items: center; gap: 12px; padding: 10px 16px; }
.mrow { text-decoration: none; border-top: 1px solid var(--line); transition: background .15s var(--ease); }
.mrow:first-child { border-top: 0; }
.mrow:hover { background: var(--sunken); }
.mhead { font-size: 11px; font-weight: 500; color: var(--fg-3); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); }
.res { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.res.w { background: var(--fg); color: var(--bg); }
.res.l { box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--fg-2); }
.res.e { background: var(--sunken); color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line); }
.empty { padding: 28px 16px; text-align: center; color: var(--fg-3); font-size: 14px; }
.spark { color: var(--fg); }

/* tables (stats, match) */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { font-size: 11px; font-weight: 500; color: var(--fg-3); text-transform: uppercase; letter-spacing: .04em; text-align: right; padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
td { padding: 9px 16px; text-align: right; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr:first-child td { border-top: 0; }
tbody tr:hover td { background: var(--sunken); }
tr.me td { background: var(--sunken); font-weight: 600; }
td a { text-decoration: none; }
td a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lgd { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }
.mapline { display: grid; grid-template-columns: 76px minmax(0, 1fr) 44px 64px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.mapline:first-child { border-top: 0; }
.acc { display: flex; height: 14px; border-radius: 99px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }

/* match */
.mhero { padding: 24px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.score { display: flex; align-items: center; gap: 20px; }
.score b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.mine { display: grid; grid-template-columns: repeat(4, auto); gap: 4px 24px; font-size: 13px; }
.mine b { font-weight: 600; }
.rounds { display: flex; gap: 6px; align-items: flex-end; min-width: max-content; }
.rounds .lbl { font-size: 11px; width: 44px; flex: none; align-self: center; color: var(--fg-3); }
.rounds .sep { width: 1px; height: 36px; background: var(--line-strong); margin: 0 8px; flex: none; }
.rd { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rd i { width: 22px; height: 22px; border-radius: 6px; display: block; }
.rd.w i { background: var(--fg); }
.rd.l i { box-shadow: inset 0 0 0 1px var(--line-strong); }
.rd span { font-size: 10px; color: var(--fg-3); font-variant-numeric: tabular-nums; }

/* states */
.state { max-width: 460px; margin: 0 auto; padding: 96px 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); color: var(--fg-2); }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--danger-soft); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--danger) 30%, transparent); color: var(--fg); }
.alert svg { color: var(--danger); flex: none; margin-top: 2px; }
.note { font-size: 12px; color: var(--fg-3); display: inline-flex; gap: 6px; align-items: center; }

/* motion */
.in { animation: in .5s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes in { from { opacity: 0; transform: translateY(10px); filter: blur(2px); } }
@media (prefers-reduced-motion: reduce) { .in { animation: none; } .btn, .btn:hover, .btn:active { transform: none; } }

/* Smooth full-page navigations where supported (profile -> match, etc.) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
}

/* skeletons: one shared shimmer (fixed background = every bar in phase), text bars sized to the type */
:root { --sk: color-mix(in oklab, var(--fg) 7%, transparent); --sk-hi: color-mix(in oklab, var(--surface) 75%, transparent); }
:root[data-theme="dark"] { --sk: color-mix(in oklab, var(--fg) 8%, transparent); --sk-hi: color-mix(in oklab, var(--fg) 7%, transparent); }
.sk {
  display: block; flex: none; max-width: 100%; border-radius: 6px; background-color: var(--sk);
  background-image: linear-gradient(100deg, transparent 42%, var(--sk-hi) 50%, transparent 58%);
  background-size: 200vw 100%; background-repeat: no-repeat; background-attachment: fixed;
  animation: sk 1.9s linear infinite;
}
@keyframes sk { from { background-position: -100vw 0; } to { background-position: 100vw 0; } }
.sk-row { pointer-events: none; }
.sk-reveal { animation: skin .32s var(--ease) both; }
@keyframes skin { from { opacity: 0; filter: blur(3px); } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; background-image: none; } .sk-reveal { animation: none; } }

/* ---- charts (history, admin) ---- */
.chart { display: block; width: 100%; min-width: 640px; height: auto; overflow: visible; }
.ax { font-size: 11px; fill: var(--fg-3); font-variant-numeric: tabular-nums; }
.ax.strong { fill: var(--fg); font-weight: 600; }
.hit { fill: transparent; cursor: crosshair; }
.hit:hover { fill: color-mix(in oklab, var(--fg) 5%, transparent); }
svg [data-tip]:not(.hit):hover { stroke: var(--fg); stroke-width: 1.5; }
.lgd-line { display: inline-block; width: 14px; height: 2px; border-radius: 2px; background: var(--fg); }
.lgd-dot { display: inline-block; width: 9px; height: 9px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1.6px var(--fg); }
.lgd-dot.bad { background: var(--danger); box-shadow: none; }
.cal { display: inline-block; width: 11px; height: 11px; border-radius: 3px; }
.mult { padding: 14px 16px 12px; }
.mapline.wide { grid-template-columns: 128px minmax(0, 1fr) 44px 64px; }
a.lift { text-decoration: none; color: inherit; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
a.lift:hover { box-shadow: var(--e2), var(--top); transform: translateY(-1px); }
.tip {
  position: fixed; z-index: 50; pointer-events: none; max-width: 260px; padding: 8px 10px; border-radius: 10px;
  background: var(--surface); box-shadow: var(--e2), var(--top); font-size: 12px; line-height: 1.45;
  white-space: pre-line; font-variant-numeric: tabular-nums; color: var(--fg-2);
}
.tip::first-line { color: var(--fg); font-weight: 600; }

/* RR won/lost per match row */
.rrd { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 40px; height: 22px; padding: 0 7px; border-radius: 7px; font-weight: 600; font-size: 13px; }
.rrd.up { background: var(--fg); color: var(--bg); }
.rrd.down { background: var(--sunken); color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line); }
.rrd.drop { color: var(--danger); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--danger) 40%, transparent); }
.rk-xs { width: 16px; height: 16px; }

/* Performance Score */
.crown { color: var(--fg); vertical-align: -2px; display: inline-block; }
.grade { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 6px; border-radius: 5px; font-size: 10px; font-weight: 600; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-strong); vertical-align: 1px; }
.perf { display: grid; grid-template-columns: 200px minmax(0, 1fr); }
.perf-total { padding: 18px; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid var(--line); }
.perf-total b { font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.perf-parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 6px 18px; column-gap: 28px; }
.perf-part { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13px; padding: 9px 0; border-top: 1px solid var(--line); }
.perf-part:nth-child(-n+2) { border-top: 0; }
.arw { font-weight: 600; font-size: 12px; letter-spacing: -.05em; color: var(--fg-3); }
.arw.up, .arw.double_up { color: var(--fg); }
.arw.down, .arw.double_down { color: var(--danger); }
@media (max-width: 640px) {
  .perf { grid-template-columns: 1fr; }
  .perf-total { border-right: 0; border-bottom: 1px solid var(--line); }
  .perf-parts { grid-template-columns: 1fr; }
  .perf-part:nth-child(2) { border-top: 1px solid var(--line); }
}

/* Compare */
.cmp-form { display: flex; gap: 8px; flex-wrap: wrap; }
.cmp-form .input { width: 240px; height: 36px; padding-left: 12px; font-size: 14px; }
.cmp-form .btn { height: 36px; }
.cmp-map { width: 48px; }
.cmp-heads { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: center; }
.cmp-head { display: flex; align-items: center; gap: 14px; padding: 14px; text-decoration: none; min-width: 0; transition: box-shadow .15s var(--ease), transform .15s var(--ease); }
.cmp-head:hover { box-shadow: var(--e2), var(--top); transform: translateY(-1px); }
.cmp-head.right { flex-direction: row-reverse; text-align: right; }
.cmp-head .pcard { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.cmp-vs { font-size: 13px; font-weight: 600; }
.cmp { display: flex; flex-direction: column; }
.cmp-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 96px; gap: 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--fg-2); }
.cmp-row:first-child { border-top: 0; }
.cmp-row .r { text-align: right; }
.cmp-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cmp-bar { width: 100%; max-width: 360px; height: 6px; border-radius: 99px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line-strong); overflow: hidden; display: block; }
.cmp-bar i { display: block; height: 100%; background: var(--fg); }
.best { color: var(--fg); font-weight: 600; }
.cmp-match { grid-template-columns: minmax(0, 1fr) auto 16px; }
@media (max-width: 640px) {
  .cmp-heads { grid-template-columns: 1fr; }
  .cmp-vs { text-align: center; }
  .cmp-head.right { flex-direction: row; text-align: left; }
  .cmp-row { grid-template-columns: 72px minmax(0, 1fr) 72px; }
  .cmp-form .input { width: 100%; }
  .cmp-agents { grid-template-columns: 1fr; }
}

/* Favorite toggle */
.fav[aria-pressed="true"] svg { fill: currentColor; }

/* Admin funnel */
.fun { display: flex; flex-direction: column; gap: 16px; }
.fun-step { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }

/* Act recap */
.recap-fig { padding: 0; overflow: hidden; margin: 0; }
.recap-fig img { display: block; width: 100%; height: auto; }
.recap-act { gap: 8px; flex-wrap: wrap; }

/* Agent win rate per map */
.amaps { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; align-items: start; }
.amap { padding: 0; }
.amap-head { position: relative; height: 64px; }
.amap-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.amap-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, oklch(0.17 0.004 80 / 0.82), oklch(0.17 0.004 80 / 0.25)); }
.amap-title { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; color: oklch(0.97 0.004 80); font-size: 13px; }
.amap-title b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.amap-list { padding: 6px 16px 10px; }
.amap-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; grid-template-areas: "ag wl pct" "bar bar bar"; column-gap: 10px; row-gap: 6px; align-items: center; padding: 8px 0; font-size: 14px; }
.amap-row + .amap-row { border-top: 1px solid var(--line); }
.amap-row > .hrow { grid-area: ag; }
.amap-row > .small { grid-area: wl; }
.amap-pct { grid-area: pct; text-align: right; font-weight: 600; }
.amap-row > .bar { grid-area: bar; height: 4px; }
.amap-row.few { color: var(--fg-3); }
.amap-row.few .amap-pct { font-weight: 500; }
.amap-row.few .bar i { opacity: 0.45; }
