/* kendo world, merged direction (F desk + A body map + B marks and kanji + C counters and game plan)
   on the superstarling system: white ground, ink, hairlines, one teal for state, dusk orange only as a fill. */
:root {
  --ground: #ffffff;
  --panel: #fbfbfa;
  --hover: #f6f5f2;
  --selected: #f0efeb;
  --border: #ecebe8;
  --border-strong: #dfddd8;
  --text: #111318;
  --text-2: #4a4f5b;
  --muted: #6c707b;
  --faint: #8b8f97; /* 3.3:1 on white: still quiet, now legible */
  /* brand: black and white only (owner). "for" (scored, won) is ink, "against" (conceded, lost) a mid grey; the names stay */
  --teal: #111318;
  --teal-soft: rgb(17 19 24 / 9%);
  --dusk: #8b8f97;
  --dusk-soft: rgb(17 19 24 / 4%);
  --solid: #111318;
  --on-solid: #ffffff;
  --sans: "IBM Plex Sans", "IBM Plex Sans JP", system-ui, -apple-system, sans-serif;
  --display: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;  /* names in headers and every large number (DESIGN_SYSTEM.md) */
  /* scale (audit/DESIGN_BRIEF.md, from superstarling / surogate) */
  --step-row: 15px; --lh-row: 22px; --step-secondary: 14px; --step-quiet: 13px; --lh-quiet: 19px; --step-micro: 12px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-8: 32px;
  --control-md: 36px; --control-sm: 30px;
  --shadow-sm: 0 1px 2px rgb(17 19 24 / 6%);
  --motion: 150ms ease-out; --motion-settle: 200ms ease-out; --motion-press: 90ms ease;
  --kanji: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --radius-sm: 7px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 0 0 1px rgb(17 19 24 / 5%), 0 1px 2px rgb(17 19 24 / 4%), 0 8px 24px -8px rgb(17 19 24 / 10%);
  --shadow-lg: 0 0 0 1px rgb(17 19 24 / 7%), 0 2px 4px rgb(17 19 24 / 4%), 0 24px 48px -12px rgb(17 19 24 / 16%);
  --side: 236px;
  --rail: 296px;
  --bar: 56px;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body { background: var(--ground); color: var(--text); font: 400 var(--step-row)/var(--lh-row) var(--sans); font-feature-settings: "cv11"; font-synthesis: none; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: var(--radius-sm); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.k { font-family: var(--kanji); font-weight: 600; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr) var(--rail); height: 100dvh; transition: grid-template-columns .2s ease; }
.app.norail { grid-template-columns: var(--side) minmax(0, 1fr); }
.app.mini { --side: 64px; }
.app.norail .rail { display: none; }
.side { background: var(--panel); border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; min-width: 0; padding: 14px 10px; gap: 12px; overflow: hidden; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
/* brand (art/../brand/BRAND.md): the men mark left of the lowercase wordmark; where there is no room for the mark, the shinai-cut name */
.brand { --brand-paper: var(--panel); color: var(--text); }
.brand .men { width: 34px; height: 34px; flex: none; }
.brand .word { font-family: "Space Grotesk", var(--font, sans-serif); font-weight: 700; font-size: 22px; letter-spacing: -0.045em; text-transform: lowercase; }
.brand.cut { --brand-paper: var(--ground); }
.wordcut { height: 30px; width: auto; display: block; }
.wordcut text { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 96px; letter-spacing: -4px; fill: currentColor; }
.wordcut .knock { stroke: var(--brand-paper); stroke-width: 17; stroke-linecap: round; }
.jump { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--ground); color: var(--muted); text-align: left; box-shadow: 0 1px 2px rgb(17 19 24 / 4%); }
.jump span { flex: 1; }
.key { font: 11px/16px var(--sans); color: var(--muted); border: 1px solid var(--border-strong); border-radius: 5px; padding: 0 5px; background: var(--panel); }
.rooms { display: flex; flex-direction: column; gap: 10px; }
.grp { display: flex; flex-direction: column; gap: 1px; }
.grp h2 { margin-bottom: 4px; }
.rooms a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500; }
.rooms a:hover { background: var(--hover); }
.rooms a[aria-current="page"] { background: var(--selected); color: var(--text); box-shadow: inset 2px 0 0 var(--text); }
.rooms a, .watch a, .jump { white-space: nowrap; }
.rooms svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; }
.side h2 { font-size: 12px; line-height: 17px; font-weight: 600; color: var(--muted); margin: 0; padding: 0 10px; }
.watch { display: flex; flex-direction: column; gap: 1px; min-height: 0; overflow: hidden; }
.watch a { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: var(--radius-sm); color: var(--text-2); position: relative; }
.watch .ini { font-size: 10px; font-weight: 600; color: var(--muted); }
.watch .wf { text-align: center; }
.nd { width: 7px; height: 7px; border-radius: 50%; background: var(--text); }
.newb { margin-left: 6px; font-size: 11px; line-height: 16px; padding: 0 6px; border-radius: 999px; background: var(--solid); color: var(--on-solid); font-weight: 600; vertical-align: 1px; }
.newb:hover { background: #262a33; }
.watch a:hover { background: var(--hover); }
.watch a[aria-current="page"] { background: var(--selected); color: var(--text); }
.watch a span:nth-child(2) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.side .foot { margin-top: auto; font-size: 12px; line-height: 17px; color: var(--muted); padding: 0 0 0 10px; display: flex; align-items: center; gap: 8px; }
.side .foot #foot { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fold { width: 32px; height: 32px; border-radius: var(--radius-sm); display: grid; place-items: center; color: var(--muted); flex: none; }
.fold:hover { background: var(--hover); color: var(--text); }
.fold svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .2s ease; }
/* collapsed: the men mark and icons only; names stay for screen readers, tooltips come from title */
.app.mini .side { padding: 14px 8px; }
.app.mini .side .lbl, .app.mini .brand .word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.app.mini .brand { justify-content: center; padding: 2px 0; }
.app.mini .jump { justify-content: center; padding: 0; }
.app.mini .jump .key { display: none; }
.app.mini .rooms a { justify-content: center; padding: 0; }
.app.mini .side h2 { font-size: 0; line-height: 0; height: 1px; margin: 2px 10px 4px; padding: 0; background: var(--border); }
.app.mini .side h2 .newb { display: none; }
.app.mini .watch a { grid-template-columns: 1fr; justify-items: center; padding: 0; }
.app.mini .watch .nd { position: absolute; top: 6px; right: 10px; }
.app.mini .side .foot { padding: 0; justify-content: center; }
.app.mini .side .foot #foot { display: none; }
.app.mini .fold svg { transform: scaleX(-1); }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.rail { border-left: 1px solid var(--border); background: var(--panel); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.top { display: none; }
.bar { display: none; }

/* ---------- headers ---------- */
.head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 24px; padding: 22px 28px 14px; min-height: 0; }  /* counters drop under the name before the facts squeeze to one per line (1280×720) */
.head .who { flex: 1 1 340px; min-width: 0; }
#main:focus { outline: none; }
.head h1 { margin: 0; font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.028em; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.head h1 .native { white-space: nowrap; font-family: var(--kanji); font-weight: 500; font-size: 20px; color: var(--muted); margin-left: 10px; letter-spacing: 0; }
/* every fact carries its dot in the gap before it; the one that starts a line is clipped away */
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 6px; color: var(--text-2); clip-path: inset(-8px -8px -8px 0); }
.facts > *::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--faint); vertical-align: middle; margin: 0 8px 0 -11px; }
.facts > :first-child::before { display: none; }
.facts a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.logo { width: 64px; height: 64px; border-radius: var(--radius-lg); object-fit: contain; background: var(--ground); box-shadow: var(--shadow); flex: none; }
.mono { width: 64px; height: 64px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--border); display: grid; place-items: center; font-weight: 600; font-size: 20px; color: var(--text-2); flex: none; }
.flag { font-size: 44px; line-height: 64px; flex: none; }

.counters { display: flex; gap: 2px; flex: none; }
.counter { min-width: 64px; padding: 4px 14px; text-align: left; }
.counter b { display: block; font-size: 32px; line-height: 36px; font-weight: 600; letter-spacing: -0.03em; }
.counter span { font-size: 12px; line-height: 17px; color: var(--muted); }
.counter.won b { color: var(--teal); }
.counter + .counter { border-left: 1px solid var(--border); }

/* ---------- tabs ---------- */
.tabs { display: flex; align-items: center; gap: 4px; padding: 0 28px; box-shadow: inset 0 -1px 0 var(--border); flex-wrap: wrap; overflow-x: auto; scrollbar-width: none; flex: none; }
.tabs .actions { margin-left: auto; padding: 5px 0; }  /* same 40px as a tab, so wrapping under the tabs keeps the rhythm */
.tabs .actions .btn { height: 30px; }
.tabs button { height: 40px; padding: 0 12px; white-space: nowrap; flex: none; color: var(--muted); font-weight: 500; position: relative; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- body grid ---------- */
.body { flex: 1; min-height: 0; padding: 18px 28px 22px; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(200px, 1fr); grid-auto-flow: dense; overflow-y: auto; }
.body.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.body.one { grid-template-columns: minmax(0, 1fr); }
.card { background: var(--ground); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden auto; }
/* a card that has to scroll says so: a soft shade at the edge with more below (or above); covers move with the content */
.card { background: linear-gradient(var(--ground) 40%, rgb(255 255 255 / 0)) top / 100% 28px no-repeat local, linear-gradient(rgb(255 255 255 / 0), var(--ground) 60%) bottom / 100% 28px no-repeat local,
  radial-gradient(farthest-side at 50% 0, rgb(17 19 24 / 12%), transparent) top / 100% 10px no-repeat scroll, radial-gradient(farthest-side at 50% 100%, rgb(17 19 24 / 12%), transparent) bottom / 100% 10px no-repeat scroll, var(--ground); }
.card.flat { box-shadow: none; border: 1px solid var(--border); }
.card h3 { margin: 0 0 10px; font-size: 14px; line-height: 21px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.card h3:not(:first-child), .duo-wrap > h3 { margin-top: 16px; }
.card h3 small { font-weight: 400; color: var(--muted); font-size: 13px; }
.card h3 .grow { flex: 1; }
.span2 { grid-column: span 2; }
.span3 { grid-column: span 3; }
.rows2 { grid-row: span 2; }
.fill { flex: 1; min-height: 0; }
.say { color: var(--text-2); margin: 0; }
/* cards whose text must never be squeezed under the next block: no shrinking, scroll if the viewport is short */
.card.fit { overflow-y: auto; }
.card.fit > * { flex-shrink: 0; flex-basis: auto; }  /* flex: 1 would collapse to a 0 basis and let the next block ride over it */
.list.plain p { margin: 0; padding: 10px 2px; border-top: 1px solid var(--border); color: var(--text-2); line-height: 1.45; }
.list.plain p:first-child { border-top: 0; padding-top: 2px; }
.list.plain .conf { display: flex; margin-top: 4px; }
.say b { color: var(--text); font-weight: 600; }
.empty { color: var(--muted); margin: auto; text-align: center; max-width: 40ch; padding: 12px 0; }

/* lists: hairline rows, never boxed */
.list { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.list:not([data-pager]) { flex: none; }  /* only paged lists give up height; a fixed list keeps its rows */
.list > * { flex-shrink: 0; }  /* rows never squeeze: a page that doesn't fit drops a row instead */
.row { display: grid; align-items: center; gap: 10px; min-height: 36px; border-top: 1px solid var(--border); padding: 4px 2px; color: var(--text-2); }
.row:first-child { border-top: 0; }
a.row:hover, button.row:hover { background: var(--hover); color: var(--text); border-radius: var(--radius-sm); }
.row .name, .row .sub { display: block; }
.row > * { min-width: 0; }
.row .name { color: var(--text); font-weight: 500; min-width: 0; }
.row .sub { font-size: 12px; line-height: 17px; color: var(--muted); }
.row .name, .row .sub { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.row .name:has(> .sub) { -webkit-line-clamp: 3; }
.bl .row .sub { -webkit-line-clamp: 1; }  /* bout lists: the event is context, full text on hover; more bouts per page */  /* the city line under a name is one of its lines */
.row .r { text-align: right; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.pager button { width: 28px; height: 28px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--text-2); }
.pager button:disabled { opacity: .35; cursor: default; }

/* results: ○ won, △ drew, ● lost (B), coloured as state (teal) and fill (dusk) */
.mk { display: inline-grid; place-items: center; width: 20px; height: 20px; font-size: 13px; line-height: 1; }
.mk.W { color: var(--teal); }
.mk.D { color: var(--muted); }
.mk.L { color: var(--dusk); }
.form { display: flex; gap: 4px; flex-wrap: wrap; }
.form .mk { width: 24px; height: 24px; border-radius: 50%; font-size: 14px; }
.form .mk.W { background: var(--teal-soft); }
.form .mk.L { background: var(--dusk-soft); }
.pts { display: inline-flex; gap: 3px; }
.pts i { font-style: normal; font-family: var(--kanji); font-size: 12px; min-width: 20px; padding: 0 3px; height: 20px; white-space: nowrap; display: inline-grid; place-items: center; border-radius: 5px; }
.pts i.f { background: var(--teal-soft); color: var(--teal); }
.pts i.a { background: var(--dusk-soft); color: var(--muted); }
.score { font-weight: 600; color: var(--text); }

/* body map (A): where points land */
.bodymap { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bodymap figure { margin: 0; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.bodymap figcaption { font-size: 12px; color: var(--muted); }
.bodymap figcaption b { color: var(--text); font-weight: 600; margin-left: 2px; }
.bodymap svg { flex: 1; min-height: 44px; width: 100%; contain: size; }  /* fills what is left, asks only for a legible minimum */
.bodymap .ink { color: var(--text-2); }
.bodymap .f .z { fill: var(--teal); }
.bodymap .a .z { fill: var(--dusk); }
.bodymap dl { margin: 0; display: grid; gap: 1px; }
.bodymap dl div { display: flex; align-items: baseline; justify-content: space-between; font-size: 12px; line-height: 18px; }
.bodymap dt { color: var(--text-2); }
.bodymap dd { margin: 0; font-weight: 600; }
.bodymap dd span { font-weight: 400; color: var(--muted); margin-left: 6px; display: inline-block; min-width: 30px; text-align: right; }
.bodymap .f dd { color: var(--teal); }
.bodymap .a dd { color: var(--muted); }
.bodymap .zero dt, .bodymap .zero dd { color: var(--faint); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.legend .f::before { background: var(--teal); }
.legend .a::before { background: var(--dusk); }

/* mirrored bars (C): label, track, value on one line */
.mirror { display: grid; grid-template-columns: 28px 1fr 48px 1fr 28px; align-items: center; gap: 6px 8px; font-size: 13px; }
.mirror .t { height: 6px; border-radius: 999px; background: var(--hover); position: relative; overflow: hidden; }
.mirror .t i { position: absolute; top: 0; bottom: 0; border-radius: 999px; }
.mirror .t.l i { right: 0; background: var(--teal); }
.mirror .t.r i { left: 0; background: var(--dusk); }
.mirror .w { text-align: center; color: var(--text-2); }
.mirror .v { font-weight: 600; }
.mirror .v.r { text-align: right; }

/* signature (B): the one big mark */
.sig { display: flex; align-items: center; gap: 18px; flex: 1; }
.sig .glyph { font-family: var(--kanji); font-weight: 700; font-size: clamp(72px, 11vh, 132px); line-height: 1; letter-spacing: -0.02em; }
.sig .glyph.none { color: var(--border-strong); }

/* attribute bars */
.attr { display: grid; grid-template-columns: 110px 1fr 28px; align-items: center; gap: 10px; min-height: 28px; font-size: 13px; color: var(--text-2); }
.attr .t { height: 6px; background: var(--hover); border-radius: 999px; overflow: hidden; }
.attr .t i { display: block; height: 100%; background: var(--text); border-radius: 999px; }
.attr b { text-align: right; color: var(--text); font-weight: 600; }

/* game plan (C) with hanko (B) */
.plan { display: flex; gap: 20px; flex: 1; }
.hanko { width: 64px; height: 64px; flex: none; border-radius: var(--radius-sm); background: var(--dusk); color: #fff; font-family: var(--kanji); font-weight: 700; font-size: 22px; line-height: 24px; display: grid; place-items: center; text-align: center; writing-mode: vertical-rl; letter-spacing: 2px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: s; flex: 1; min-width: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; }
.steps li::before { content: counter(s); grid-row: span 2; font-size: 26px; line-height: 30px; font-weight: 600; color: var(--text); }
.steps b { font-size: 18px; line-height: 26px; font-weight: 600; letter-spacing: -0.01em; }
.steps span { color: var(--muted); font-size: 13px; line-height: 19px; }
.conf { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.conf::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.conf.high::before { background: var(--teal); }
.conf.medium::before { background: var(--faint); }

/* chips, buttons */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border-strong); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); background: var(--ground); }
.chip:hover { background: var(--hover); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--solid); border-color: var(--solid); color: var(--on-solid); }
.btn { height: 34px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--border-strong); display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); background: var(--ground); }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--solid); border-color: var(--solid); color: var(--on-solid); }
.btn.primary:hover { background: #262a33; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; flex: none; }
select.sel { height: 32px; border-radius: var(--radius); border: 1px solid var(--border-strong); padding: 0 10px; font: inherit; background: var(--ground); color: var(--text); max-width: 100%; }

/* key-value details */
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 0 12px; margin: 0; }
.kv dt, .kv dd { margin: 0; padding: 7px 0; border-top: 1px solid var(--border); min-width: 0; }
.kv dt { color: var(--muted); }
.kv dd { color: var(--text); overflow-wrap: anywhere; }
.kv > :nth-child(1), .kv > :nth-child(2) { border-top: 0; }
.kv a { color: var(--teal); }

/* videos */
.vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; align-content: start; flex: 1; min-height: 0; overflow: hidden; }
.vid { display: flex; flex-direction: column; gap: 6px; color: var(--text-2); font-size: 13px; line-height: 18px; }
.vid img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); background: var(--hover); }
.vid { text-align: left; min-width: 0; }
.vid > .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); }
.vid .t .mk { width: 16px; height: 16px; margin-right: 4px; vertical-align: -3px; }
.vid > .sub { font-size: 12px; line-height: 16px; color: var(--muted); margin-top: -4px; }
.vid:hover img { filter: brightness(.9); }
.nothumb { aspect-ratio: 16/9; border-radius: var(--radius); background: var(--hover); display: grid; place-items: center; color: var(--faint); font-size: 22px; }
.player .x { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / 92%); color: var(--text); font-size: 16px; }
.player { position: fixed; inset: 0; background: rgb(17 19 24 / 70%); display: grid; place-items: center; z-index: 30; }
.player iframe { width: min(960px, 92vw); aspect-ratio: 16/9; border: 0; border-radius: var(--radius-lg); background: #000; }

/* podium */
.podium { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; }
.step { border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); padding: 10px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.step b { font-size: 22px; line-height: 26px; }
.step .name { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.step.p1 { min-height: 128px; background: var(--ground); box-shadow: var(--shadow); border: 1.5px solid var(--text); }
.step.p2 { min-height: 104px; }
.step.p3 { min-height: 86px; }

/* rail */
.rail .sec { padding: 16px 16px 10px; display: flex; flex-direction: column; min-height: 0; }
.rail .sec + .sec { border-top: 1px solid var(--border); }
.rail h3 { margin: 0 0 8px; font-size: 13px; line-height: 19px; font-weight: 600; color: var(--text-2); }
.rail .grow { flex: 1; }

/* map */
.mapwrap { flex: 1; min-height: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.leaflet-tile-pane { filter: grayscale(1) contrast(.92) brightness(1.04); }
.mapwrap .leaflet-container { width: 100%; height: 100%; font: 13px var(--sans); background: #f3f2ef; }
.mapctl { position: absolute; top: 12px; right: 12px; z-index: 500; display: flex; gap: 6px; background: var(--ground); padding: 6px; border-radius: var(--radius); box-shadow: var(--shadow); }
.maplegend { position: absolute; left: 12px; bottom: 12px; z-index: 500; display: flex; flex-wrap: wrap; gap: 4px 12px; background: var(--ground); padding: 6px 10px; border-radius: var(--radius); box-shadow: var(--shadow); font-size: 12px; color: var(--text-2); }
.maplegend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--text); border: 1px solid var(--text); margin-right: 6px; vertical-align: -1px; }
.maplegend .dot.o { background: #fff; }
.maplegend .dot.e { background: #fff; border-color: var(--text); }
.mini { flex: 1; min-height: 120px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }

/* palette */
.pal { position: fixed; inset: 0; z-index: 40; background: rgb(17 19 24 / 22%); display: flex; justify-content: center; padding-top: 12vh; }
.pal .box { width: min(620px, 92vw); max-height: 70vh; background: var(--ground); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; }
.pal input { height: 54px; border: 0; border-bottom: 1px solid var(--border); padding: 0 18px; font: 17px var(--sans); outline: none; }
.pal .res { overflow-y: auto; padding: 6px; }
.pal .res a { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius); }
.pal .res a[aria-selected="true"] { background: var(--selected); }
.pal .res .sub { font-size: 12px; color: var(--muted); }
.pal .hint { padding: 10px 18px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); }

/* glossary */
abbr[title] { text-decoration: underline dotted var(--faint); text-underline-offset: 3px; cursor: help; }

/* home */
.big { font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: -0.03em; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stats div span { display: block; font-size: 12px; color: var(--muted); }

/* compare */
.head.cmp { flex-wrap: nowrap; align-items: center; }
.head.cmp .who { flex: 1 1 0; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px 18px; align-items: center; }
.vs .l { text-align: right; }
.duel { height: 10px; display: flex; border-radius: 999px; overflow: hidden; background: var(--hover); }
.duel i { display: block; height: 100%; }

/* ---------- phone: bottom bar, cards become swipeable pages, page never scrolls ---------- */
@media (max-width: 760px) {
  .app, .app.norail { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
  .side, .rail { display: none; }
  .top { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-bottom: 1px solid var(--border); }
  .top .brand { padding: 0; flex: 1; }
  .top button { width: 44px; height: 44px; display: grid; place-items: center; }
  .bar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--border); background: var(--panel); padding-bottom: env(safe-area-inset-bottom); }
  .bar a { position: relative; height: var(--bar); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--muted); }
  .bar a[aria-current="page"] { color: var(--text); }
  .bar svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; }
  .head { padding: 14px 16px 10px; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
  .head h1 { font-size: 22px; line-height: 28px; white-space: normal; }
  .head h1 .native { display: block; margin: 0; font-size: 15px; }
  .logo, .mono { width: 48px; height: 48px; }
  .flag { font-size: 34px; line-height: 48px; }
  .counters { width: 100%; }
  .counter { flex: 1; min-width: 0; padding: 4px 10px; }
  .counter b { font-size: 24px; line-height: 28px; }
  .tabs { padding: 0 8px; }
  .tabs button { height: 44px; flex: none; }
  .tabs .actions { display: none; }
  .body, .body.two, .body.one { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; gap: 12px; padding: 12px 16px 14px; scrollbar-width: none; }
  .body > .card { flex: 0 0 100%; scroll-snap-align: center; }
  .facts { font-size: 13px; }
  .actions .btn { height: 44px; }
  .pager button { width: 44px; height: 44px; }
  .podium { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dots { display: flex; justify-content: center; gap: 6px; padding-bottom: 8px; }
  .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); }
  .dots i.on { background: var(--text); }
}
@media (min-width: 761px) { .dots { display: none; } }
@media (max-width: 1180px) and (min-width: 761px) {
  .app:not(.mini) { --side: 208px; }
  .app.norail { grid-template-columns: var(--side) minmax(0, 1fr); }
  .app:not(.norail) { grid-template-columns: var(--side) minmax(0, 1fr) 36px; }
  .app:not(.railshut):not(.norail) .rail { position: fixed; right: 0; top: 0; bottom: 0; width: 296px; z-index: 30; box-shadow: -8px 0 24px rgb(17 19 24 / 10%); }
  .head { flex-wrap: wrap; }
  .head.cmp h1 { font-size: 22px; line-height: 28px; }
  .body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span3 { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: 1ms !important; scroll-behavior: auto !important; } }
.pm { color: var(--faint); font-size: 11px; margin-left: 3px; }
.attr.w { grid-template-columns: 56px 1fr 64px; }
.attr.w .t i { background: var(--teal); }
.bodymap.duo { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(min-content, 1fr); flex: 1; row-gap: 18px; }
@media (max-width: 760px) { .attr { min-height: 19px; font-size: 12px; } .duo-wrap svg { display: none; } .duo-wrap, .bodymap.duo { flex: none; grid-auto-rows: auto; } .form .form .mk:nth-child(n+5) { display: none; } .vs { gap: 5px 12px; } }
.duo-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.row.thead { font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border-strong); }
.row.thead a.on { color: var(--text); font-weight: 600; }
.row.thead a:hover { color: var(--text); }
.faint { color: var(--faint); }
@container (max-width: 720px) {
  /* narrow: kendoka count plus whichever column the table is sorted by (the sort picker sits in the header) */
  .cov .row { grid-template-columns: 24px 1fr 76px 76px !important; }
  .cov .row > .c { display: none; }
  .cov .row > .c-people, .cov.by-people .row > .c-fighters, .cov.by-fighters .row > .c-fighters, .cov.by-clubs .row > .c-clubs, .cov.by-events .row > .c-events, .cov.by-rated .row > .c-rated { display: block; }
}
@media (min-width: 1181px) { .actions.phone { display: none; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-2); }
.chip .num { color: var(--faint); margin-left: 2px; }
.chip.on { background: var(--solid); color: var(--on-solid); border-color: var(--solid); }
.chip.on .num { color: var(--on-solid); opacity: .7; }
.tag { font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 5px; padding: 0 6px; justify-self: start; }
@container (max-width: 640px) { .evl .row { grid-template-columns: 88px 22px minmax(0, 1fr) auto !important; } .evl .row .name { -webkit-line-clamp: 3; } .evl .row > .tag, .evl .row > :last-child { display: none; } }

/* data quality: where a record comes from and how sure it is */
.badge { font-style: normal; font-size: 11px; line-height: 15px; padding: 0 5px; border-radius: 4px; border: 1px solid var(--border-strong); color: var(--text-2); margin-right: 6px; vertical-align: 1px; white-space: nowrap; font-family: var(--sans); }
.badge.vis { border-color: var(--border-strong); background: var(--panel); color: var(--text-2); }
.src { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); min-width: 0; overflow: hidden; white-space: nowrap; }
.src a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.src .badge { margin: 0; }
.rail h3 small { font-weight: 400; color: var(--muted); font-size: 13px; }
.medal { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 600; font-size: 12px; background: var(--hover); color: var(--text-2); }
.medal.m1 { background: var(--text); color: #fff; }
.medal.m2 { background: #c9cbd0; color: var(--text); }
.medal.m3 { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1.5px #c9cbd0; }
.wdl { display: flex; gap: 1px; height: 8px; border-radius: 999px; overflow: hidden; background: var(--hover); }
.wdl i { display: block; min-width: 0; }
.wdl .w { background: var(--text); }
.wdl .d { background: var(--border-strong); }
.wdl .l { background: var(--faint); }
.wdl-key { display: flex; gap: 12px; white-space: nowrap; align-items: center; font-size: 12px; color: var(--muted); margin: -4px 0 6px; }
.wdl-key i { display: inline-block; width: 10px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: 0; }
.wdl-key .w { background: var(--text); } .wdl-key .d { background: var(--border-strong); } .wdl-key .l { background: var(--faint); }
.wdl-key span { display: inline-flex; align-items: center; }
.wdl-key .r { margin-left: auto; }
.wdl + .num { white-space: nowrap; }
.seg { display: inline-flex; gap: 6px; padding-right: 10px; margin-right: 4px; border-right: 1px solid var(--border); }
.nw { white-space: nowrap; }
.row:focus-visible, .chip:focus-visible { outline-offset: -2px; }
.railcard .sec { display: flex; flex-direction: column; min-height: 0; }
.railcard .sec.grow { flex: 1; }
.railcard .sec + .sec { margin-top: 14px; }
/* loading */
.skel { display: block; height: 12px; border-radius: 6px; background: var(--hover); margin: 6px 0; }
.skel-card .skel:nth-child(1) { width: 40%; height: 14px; margin-bottom: 18px; }
.skel-card .skel:nth-child(2) { width: 90%; }
.skel-card .skel:nth-child(3) { width: 70%; }
@media (prefers-reduced-motion: no-preference) { .skel { animation: pulse 1.2s ease-in-out infinite alternate; } }
@keyframes pulse { to { opacity: .45; } }
.vsx:hover { color: var(--text); }
@media (max-width: 760px) {
  .head .who { flex: 1 1 220px; }
  .flag { font-size: 30px; line-height: 34px; }
  .head.cmp { flex-wrap: nowrap; align-items: center; gap: 8px; }
  .head.cmp .who { flex: 1 1 0; }
  .head.cmp h1 { font-size: 18px; line-height: 23px; }
  .head.cmp .big { font-size: 18px; }
  .bl .row { grid-template-columns: 22px minmax(0,1fr) 36px 64px !important; }
  .bl .row .pts { justify-content: flex-start; overflow: hidden; }
  .bl .row > :nth-child(2), .bl .row > :nth-child(n+6) { display: none; }
  .eb .row { grid-template-columns: minmax(0,1fr) 44px minmax(0,1fr) !important; }
  .eb .row > :first-child { display: none; }
  .step, .step.p1, .step.p2, .step.p3 { min-height: 0; padding: 8px 10px; }
  .step b { font-size: 18px; line-height: 22px; }
  .vids { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 10px; }
  .vid { gap: 4px; font-size: 12px; line-height: 16px; }
  .evl .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -4px 10px; padding: 0 4px; }
  .evl .chip { flex: none; }
  .maplegend { right: 12px; }
  .kv { grid-template-columns: 92px minmax(0, 1fr); }
}
.kv.stack { grid-template-columns: minmax(0, 1fr); }
.kv.stack dt { padding: 8px 0 0; font-size: 12px; line-height: 16px; }
.kv.stack dd { padding: 0 0 8px; border-top: 0; }

/* narrow cards (3 columns on a 1280 laptop): adapt to the card's own width, not the window's */
.body > .card { container-type: inline-size; }
@container (max-width: 300px) {
  .kv { grid-template-columns: 1fr; }
  .kv dt { padding-bottom: 0; font-size: 12px; }
  .kv dd { border-top: 0; padding-top: 2px; overflow-wrap: break-word; }
  .kv > :nth-child(2) { border-top: 0; }
  .kv > dt:not(:first-child) { border-top: 1px solid var(--border); }
  a.row[href^="#/k/"]:has(> .num.muted) { grid-template-columns: minmax(0, 1fr) auto !important; }  /* people lists: the name matters more; "87% won" stays on one line */
  a.row[href^="#/k/"] > .num.muted { display: none; }  /* than the W-D-L record */
}
@container (max-width: 300px) {
  .row .name { -webkit-line-clamp: 3; }  /* a narrow column gets a third line before it cuts a name */
  .row { gap: 6px; }
  .sig { flex: none; margin: auto 0; gap: 12px; align-items: flex-start; }  /* mark beside the words: floated, the last line ran under the mark */
  .sig .glyph { font-size: clamp(44px, 7vh, 72px); }
  .sig .say { font-size: 13px; line-height: 18px; }
  .mirror { gap: 2px 6px; margin-top: 8px; line-height: 18px; }
}
/* the full bout table needs ~660px: below that, drop the extra-time and source columns */
@container (min-width: 380px) and (max-width: 700px) {
  .bl.wide .row { grid-template-columns: 22px 92px minmax(0, 1fr) 40px auto !important; }
  .bl.wide .row > :nth-child(n+6) { display: none; }
}
.noflag { display: inline-block; width: 18px; font-size: 0; }  /* unknown country: an empty slot, not a question mark */
/* bout lists in a half-width card: drop the date column (the event line carries the year) so names stay on one line */
@container (max-width: 520px) {
  .bl:not(.wide) .row { grid-template-columns: 22px minmax(0, 1fr) 40px 76px !important; }
  .bl:not(.wide) .row > .num.muted:nth-child(2) { display: none; }
}

/* ---------- one target per thing: a row opens its main thing (cover link), names and events inside it open theirs ---------- */
.row.hit { position: relative; }
.row.hit .cover::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-sm); }
.row.hit .cover:focus-visible { outline: none; }
.row.hit .cover:focus-visible::after { outline: 2px solid var(--teal); outline-offset: -2px; }
.row.hit a:not(.cover), .row.hit button { position: relative; z-index: 1; }
.row.hit:hover { background: var(--hover); color: var(--text); border-radius: var(--radius-sm); }
.row.hit .cover.score { text-align: right; }
a.lk:hover, .row a.name:hover, .pw a.name:hover, .step a.name:hover { text-decoration: underline; text-underline-offset: 3px; }
.row .sub a.lk { color: inherit; }
.row .sub.lk { color: var(--muted); }
.pw { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.pw .name { min-width: 0; }
.pw.won .name { font-weight: 600; }
.pw.r { justify-content: flex-end; text-align: right; }
.fl { flex: none; line-height: 1; }
.head a.flag:hover { opacity: .85; }
.btn.sm { height: 30px; font-size: 13px; padding: 0 12px; margin-top: 10px; align-self: flex-start; }
.say.sm { font-size: 13px; line-height: 19px; color: var(--muted); margin-top: 8px; }
.center { text-align: center; }
.cell { min-width: 0; overflow-wrap: anywhere; color: var(--text); font-size: 13px; line-height: 19px; }

/* armour line drawings as small accents */
.eq { width: 20px; height: 20px; flex: none; color: var(--text-2); }
.eq * { vector-effect: non-scaling-stroke; }
.eq path, .eq ellipse, .eq circle, .eq line, .eq polyline, .eq polygon, .eq rect { stroke-width: .7px; }
.card h3 > .eq, .mbody h3 > .eq { align-self: center; margin-right: -2px; }
.eq.md { width: 26px; height: 26px; }
.eq.lg { width: 44px; height: 44px; color: var(--faint); }
div.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: auto; padding: 12px 0; text-align: center; color: var(--muted); max-width: 40ch; }
div.empty p { margin: 0; }

/* compare: the tally between the two */
.tally { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 0 0 10px; font-size: 13px; color: var(--text-2); }
.tally b { font-size: 20px; font-weight: 600; color: var(--text); }
.tally .wdl { height: 10px; }
.bodymap.four { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; }
.wide-duo .bodymap { flex: 1; }

/* national team line-up: positions in order, kanji first */
.lineup + .lineup { margin-top: 14px; }
.lineup h4 { margin: 0 0 4px; font-size: 12px; line-height: 17px; font-weight: 600; color: var(--muted); }
.lineup .pos { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 6px 0; border-top: 1px solid var(--border); align-items: baseline; }
.lineup .pos:first-of-type { border-top: 0; }
.pk { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: 6px; font-size: 13px; color: var(--text); font-weight: 600; }  /* the position in English first, the kanji small after (audit) */
.pk .k, .tmb .pos .k { font-size: 12px; color: var(--muted); font-weight: 500; }
.ppl { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ppl a { color: var(--text); font-weight: 500; display: flex; justify-content: space-between; gap: 8px; }
.ppl a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ppl .num { font-weight: 400; font-size: 12px; white-space: nowrap; }

/* ---------- modal: a sheet over the page; a bottom sheet on a phone ---------- */
.modal { position: fixed; inset: 0; z-index: 35; background: rgb(17 19 24 / 32%); display: grid; place-items: center; padding: 24px; }
.sheet { position: relative; width: min(680px, 100%); max-height: min(86dvh, 860px); overflow-y: auto; background: var(--ground); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px 24px 20px; }
.sheet:focus { outline: none; }
.sheet { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 8px; }
.sheet .mbody { grid-area: 1 / 1; min-width: 0; }
.sheet .x { grid-area: 1 / 2; position: sticky; top: 0; margin: -10px -12px 0 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: var(--ground); }
.sheet .x:hover { background: var(--hover); color: var(--text); }
.mbody h3 { margin: 18px 0 8px; font-size: 13px; line-height: 19px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.mbody h2.muted { margin: 0 0 12px; font-size: 18px; font-weight: 600; }
.kicker { margin: 0 0 14px; font-size: 13px; line-height: 19px; color: var(--muted); }
.kicker a { color: var(--text-2); font-weight: 500; }
.kicker a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.bhead { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: start; }
.bside { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bside.white { align-items: flex-end; text-align: right; }
.bside .pw { font-size: 17px; line-height: 23px; }
.bside.white .pw { justify-content: flex-end; }
.bside .name { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.bside .sub { font-size: 12px; line-height: 17px; color: var(--muted); }
.tape { align-self: flex-start; font-size: 11px; line-height: 16px; padding: 0 7px; border-radius: 4px; color: var(--text-2); border: 1px solid var(--border-strong); }
.bside.red .tape { background: #c8373b; border-color: #c8373b; color: #fff; }
.bside.white .tape { align-self: flex-end; }
.tag.win { align-self: flex-start; color: var(--teal); border-color: rgb(17 19 24 / 30%); background: var(--teal-soft); font-weight: 600; }
.bside.white .tag.win { align-self: flex-end; }
.bscore { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 14px; text-align: center; }
.bscore b { font-size: 40px; line-height: 44px; font-weight: 600; letter-spacing: -0.03em; display: flex; gap: 8px; }
.bscore b span { color: var(--faint); font-weight: 400; }
.bscore .sub { font-size: 12px; line-height: 17px; color: var(--muted); }
.seq { list-style: none; margin: 0; padding: 0; }
.seq li { display: grid; grid-template-columns: 18px 84px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 40px; border-top: 1px solid var(--border); padding: 4px 0; }
.seq li:first-child { border-top: 0; }
.tq { display: inline-block; font-size: 11px; line-height: 16px; font-weight: 600; color: var(--text); border: 1px solid var(--text); border-radius: 4px; padding: 0 5px; white-space: nowrap; text-decoration: none; vertical-align: 1px; }
a.tq:hover { background: var(--solid); color: var(--on-solid); }
.tqline { margin: -4px 0 6px; font-size: 12px; line-height: 20px; }
.seq .wz { display: flex; align-items: center; gap: 6px; }
.seq .wz .k { font-size: 17px; white-space: nowrap; }
.seq li.red .wz .k { color: var(--text); }
.seq .by { font-size: 13px; color: var(--text-2); text-align: right; }
.seq li.red .by::before, .seq li.white .by::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.seq li.red .by::before { background: var(--text); }
.seq li.white .by::before { background: var(--ground); box-shadow: inset 0 0 0 1px var(--border-strong); }
.tmrow { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); text-align: center; color: var(--text); }
.tmrow > :last-child { text-align: right; }
.tmrow > :first-child { text-align: left; }
.tmb .row { grid-template-columns: 52px minmax(0, 1fr) auto 40px auto minmax(0, 1fr); gap: 8px; }
.tmb .row .cover { text-align: center; }
.tmb .pos { display: flex; flex-direction: column; line-height: 18px; }
.vid.one { width: min(320px, 100%); }
.msrc { margin: 16px 0 0; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mfoot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.player { z-index: 50; }
@media (max-width: 760px) {
  .modal { place-items: end stretch; padding: 0; }
  .sheet { width: 100%; max-height: 90dvh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); }
  .bscore b { font-size: 30px; line-height: 34px; }
  .bside .pw { font-size: 15px; line-height: 20px; }
  .bhead { gap: 8px; }
  .seq li { grid-template-columns: 16px 80px minmax(0, 1fr); }
  .seq .by { grid-column: 3; text-align: left; margin-top: -4px; }
  .seq li > span:nth-child(3) .muted { display: none; }
  .tmb .row { grid-template-columns: 34px minmax(0, 1fr) 36px minmax(0, 1fr); }
  .tmb .row > .pts { display: none; }
  .tmb .pos .sub { display: none; }
  .mfoot .btn { height: 40px; }
  .bodymap.four { grid-template-columns: 1fr 1fr; }
  .lineup .pos { grid-template-columns: 76px minmax(0, 1fr); }
}
.guess { display: grid; grid-template-columns: auto minmax(60px, 1fr) auto; align-items: center; gap: 10px; font-size: 12px; margin: 0 0 10px; color: var(--text-2); }
.guess .duel { height: 6px; }
.vs { row-gap: 6px; }
@container (max-width: 520px) { .bl.tml .row { grid-template-columns: 22px minmax(0, 1fr) 40px !important; } }
@media (max-width: 760px) { .guess { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; } .guess > .muted { grid-column: 1 / -1; } }
/* national champions: a table on a wide card, one block per year on a narrow one */
@container (max-width: 560px) {
  .champs-h { display: none; }
  .champs .row { grid-template-columns: 44px minmax(0, 1fr) !important; align-items: start; padding: 8px 2px; }
  .champs .row > a { grid-row: span 4; }
  .champs .cell { grid-column: 2; }
  .champs .cell::before { content: attr(data-l) ": "; color: var(--muted); }
}
.l1 .row .name, .l1 .row .sub { -webkit-line-clamp: 1; }
.ppl .nm { min-width: 0; overflow-wrap: anywhere; }
@container (max-width: 300px) { .lineup .pos { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.step .name { overflow-wrap: anywhere; }
.sec > .row, .sec > .btn, .sec > h3 { flex-shrink: 0; }  /* a squeezed .sec shrinks its pager, never the button under it (phone rail card: "Compare with someone else" over "Clubs and teams") */

.home-title { --brand-paper: var(--ground); color: var(--text); } .home-title .wordcut { height: 48px; }

/* phone bar: new results on Watching */
.nbadge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--solid); color: var(--on-solid); font: 600 10px/16px var(--sans); font-style: normal; text-align: center; }

/* home rail: watch list and this week */
.tag.new { font-style: normal; border-color: var(--solid); background: var(--solid); color: var(--on-solid); vertical-align: 1px; margin-left: 4px; }
.form.fm { gap: 1px; flex-wrap: nowrap; }
.form.fm .mk { width: 14px; height: 14px; font-size: 11px; background: none; }
.rail .btn.sm { margin-top: 8px; }

/* tools */
.tooltag { font-size: 11px; line-height: 17px; padding: 0 7px; border-radius: 5px; border: 1px solid var(--text); color: var(--text); font-weight: 600; }
.steps.sm { gap: 10px; }
.steps.sm li { grid-template-columns: 24px 1fr; gap: 0 8px; }
.steps.sm li::before { font-size: 17px; line-height: 22px; }
.steps.sm b { font-size: 14px; line-height: 20px; }
.steps.sm span { font-size: 12px; line-height: 17px; }
@media (min-width: 761px) { .body.doc { display: flex; flex-direction: column; } .body.doc > .card { flex: none; } }
.report .rhead { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.report .rhead .who { flex: 1; min-width: 0; }
.report .rhead .btn.sm { margin-top: 0; }
.report .kicker { margin: 0 0 2px; font-size: 12px; }
.report h2 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.report h2 .native { font-family: var(--kanji); font-weight: 500; font-size: 16px; color: var(--muted); }
.report h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 0 28px; }
.rgrid > div > h3 { margin-top: 14px; }
.report .bodymap { flex: none; }
.report .bodymap svg { flex: none; height: 170px; contain: none; }
.report .say .k { font-size: 15px; }
@container (max-width: 620px) { .rgrid { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 761px) { .card.report { overflow: visible; } }
.pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; flex: none; }
.pick .btn.sm { margin-top: 0; }
.row .x { width: 30px; height: 30px; border-radius: var(--radius-sm); color: var(--muted); display: grid; place-items: center; }
.row .x:hover { background: var(--hover); color: var(--text); }
.tbrow { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 40px; padding: 6px 2px; border-top: 1px solid var(--border); }
.tbrow:first-child { border-top: 0; }
.who2 { min-width: 0; color: var(--text); }
.who2 .name { font-weight: 500; overflow-wrap: anywhere; }
.who2 .why { display: block; font-size: 12px; line-height: 17px; color: var(--muted); }
.mv { display: flex; gap: 4px; }
.mv button { width: 30px; height: 30px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--text-2); }
.mv button:hover:not(:disabled) { background: var(--hover); color: var(--text); }
.mv button:disabled { opacity: .3; cursor: default; }
.tbo + .say .btn.sm { margin: 0 8px 0 0; }
@media (max-width: 760px) {
  .mv button, .row .x { width: 40px; height: 40px; }
  .tbrow { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .tbrow .pk { flex-direction: column; gap: 0; }
}

/* print: the scouting report, one person per page */
@media print {
  @page { size: A4; margin: 12mm; }
  html, body { height: auto; overflow: visible; background: #fff; }
  .app, .app.norail, .app.mini { display: block; height: auto; }
  .side, .rail, .bar, .top, .tabs, .dots, .actions, .noprint, .pal, .modal, .player { display: none !important; }
  .main:has(.body.doc) > .head { display: none; }
  .main, .body { display: block !important; overflow: visible !important; padding: 0 !important; }
  .card { box-shadow: none !important; background: none !important; overflow: visible !important; padding: 0; margin: 0 0 16px; }
  .card.report { break-after: page; margin: 0; }
  .card.report:last-child { break-after: auto; }
  .rgrid > div { break-inside: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* English names first (ui.js nm): a non-Latin original follows, muted; narrow rows drop it and keep it in the tooltip */
.orig { color: var(--muted); font-weight: 400; }
:is(h1, h2) .orig { font-family: var(--kanji); font-weight: 500; font-size: .66em; letter-spacing: 0; }
.head select.sel { max-width: 340px; }  /* a long category name must not squeeze the heading */
.head .horig { margin: 2px 0 0; font-family: var(--kanji); font-size: 17px; line-height: 24px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 760px) { .row .orig, .pw .orig, .tbrow .orig, .chip .orig { display: none; } .head h1 .orig { display: block; font-size: 15px; } .head .horig { font-size: 14px; line-height: 20px; } }

/* ---------- membership preview (ui.js MEMBER): the "View as" switch and the locked panel, ink on paper only ---------- */
.viewas { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-top: 1px solid var(--border); font-size: 12px; line-height: 16px; color: var(--muted); }
.viewas .sub { font-size: 11px; line-height: 15px; white-space: normal; }
.seg2 { display: flex; padding: 2px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--ground); }
.seg2 button { flex: 1; height: 28px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 500; color: var(--text-2); }
.seg2 button[aria-pressed="true"] { background: var(--solid); color: var(--on-solid); }
.app.mini .viewas { padding: 8px 0; align-items: stretch; }
.app.mini .seg2 { flex-direction: column; }
.app.mini .seg2 button { font-size: 10px; height: 24px; }
.viewas-m { display: none; }
@media (max-width: 760px) { .top .viewas-m { display: block; width: auto; height: 30px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--text-2); } }
.lockt { display: inline-grid; place-items: center; margin-left: 6px; color: var(--muted); }
.lockt svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.rooms a .lockt { margin-left: auto; }
.app.mini .rooms a .lockt { display: none; }
.card.lock { justify-content: center; align-items: center; text-align: center; background: var(--ground); border: 1px solid var(--text); box-shadow: none; }
.lockin { max-width: 46ch; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px; --brand-paper: var(--ground); color: var(--text); }
.lockin .men { width: 56px; height: 56px; }
.lockin h3 { margin: 0; font-size: 18px; line-height: 24px; justify-content: center; }
.lockin p { margin: 0; color: var(--text-2); }
.lockin .sub { font-size: 12px; line-height: 17px; color: var(--muted); }
.lockin .btn { margin: 4px 0; }

/* ---------- directories: athletes and clubs ---------- */
.dirbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; flex: none; }
.inp { height: 32px; min-width: 0; flex: 1 1 200px; max-width: 320px; border-radius: var(--radius); border: 1px solid var(--border-strong); padding: 0 10px; font: inherit; background: var(--ground); color: var(--text); }
.dir .chips { flex: none; }
.dir .chips .chip { font-size: 12px; height: 28px; cursor: pointer; }
.dir .row.thead { flex: none; }
.dir .chip .cx { margin-left: 2px; width: 18px; height: 18px; border-radius: 50%; color: inherit; font-size: 11px; }
.clogo { width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; font-size: 10px; font-weight: 600; color: var(--muted); }
.clogo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
@container (max-width: 640px) {
  .dir .row { grid-template-columns: 44px 22px minmax(0, 1fr) max-content !important; }
  .dir .row > .num { white-space: nowrap; }
  .dir .row > .c { display: none; }
  .dir .row:has(.clogo) { grid-template-columns: 30px minmax(0, 1fr) max-content !important; }
}
@media (max-width: 760px) { .dirbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -4px 8px; padding: 2px 4px; } .dirbar > * { flex: none; } .inp { flex: 0 0 180px; } .dir .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .dir .chip { flex: none; } }
a.counter:hover b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- a country's flag waving behind its header (ui.js waveFlag) ---------- */
#main { position: relative; isolation: isolate; overflow: hidden; }  /* the waving flag sits behind the top of the page */
.wave { position: absolute; z-index: -1; right: 2%; top: -38px; height: 200px; aspect-ratio: 3 / 2; display: flex; opacity: .15; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%), linear-gradient(transparent, #000 18%, #000 82%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 50%), linear-gradient(transparent, #000 18%, #000 82%, transparent); mask-composite: intersect; }
.wave i { position: relative; flex: 1 0 0; height: 100%; margin-right: -0.5px; background: var(--flag) no-repeat; background-size: calc(var(--n) * 100%) 100%;
  background-position: calc(var(--i) / (var(--n) - 1) * 100%) 0; will-change: transform; animation: wave 6s ease-in-out calc(var(--i) * -0.16s) infinite alternate; }
.wave i::after { content: ""; position: absolute; inset: 0; background: #000; opacity: 0; animation: fold 6s ease-in-out calc(var(--i) * -0.16s - 1.5s) infinite alternate; }
@keyframes wave { from { transform: translateY(-3.5%) } to { transform: translateY(3.5%) } }
@keyframes fold { from { opacity: 0 } to { opacity: .22 } }
@media (prefers-color-scheme: dark) { .wave { opacity: .11; } }
@media (prefers-reduced-motion: reduce) { .wave i, .wave i::after { animation: none; } }
@media (max-width: 760px) { .wave { top: -30px; height: 180px; right: -18%; opacity: .12; } }
.dir .list { flex: 1 1 0; min-height: 0; }
.dirbar .btn { height: 32px; margin: 0; }
.dir .pager { min-height: 28px; }
@media (max-width: 760px) { .dir .pager { min-height: 44px; } }

/* who is where now, national team history */
.st { font-size: 12px; line-height: 18px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-2); white-space: nowrap; }
.st.on { color: var(--teal); border-color: rgb(17 19 24 / 30%); background: var(--teal-soft); font-weight: 600; }
.tline { margin: 4px 0 10px; line-height: 1.9; }
.hist .hed { padding: 10px 0; border-top: 1px solid var(--border); }
.hist .hed:first-of-type { border-top: 0; padding-top: 2px; }
.hist h4 { margin: 0 0 4px; font-size: 14px; }
.hist .hres { margin: 2px 0 6px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.hist .pos { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 4px 0; font-size: 13px; align-items: baseline; }
.hist .pk { color: var(--muted); font-size: 12px; }
.hist .sub3 { margin-top: 14px; }
.row.on { background: var(--teal-soft); }
.hist .ppl.hppl { display: block; line-height: 1.6; }
.hist .ppl.hppl a { display: inline; font-weight: 500; }
.hist .hscroll { flex: 1; min-height: 0; overflow-y: auto; }

/* ---------- learn: tutorials, teachers, courses, seminars ---------- */
@container (max-width: 640px) { .dir.learn .row, .learn .row { grid-template-columns: minmax(0, 1fr) 52px auto !important; } }
@container (max-width: 640px) { .dir.shop .row { grid-template-columns: 22px minmax(0, 1fr) auto !important; } }
.learn .row .tag, .shop .row .tag, .rail .row .tag, .railcard .row .tag { justify-self: end; }
.facts-list .row { grid-template-columns: 92px minmax(0, 1fr); align-items: baseline; }
.facts-list .row .sub { display: block; font-size: 12px; line-height: 17px; color: var(--muted); }
.facts-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
a.row[aria-current="true"] { background: var(--selected); color: var(--text); border-radius: var(--radius-sm); }

/* Signature: the target in English, the kanji small beside it (owner: a lone 面 said nothing) */
.sigw { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 8px; }
.sigw b { font-size: 34px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em; }
.sigw .k { font-family: var(--kanji); font-size: 22px; color: var(--muted); }
.form a { display: inline-flex; }
.fkey { display: flex; gap: 14px; margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.fkey .mk { display: inline-grid; place-items: center; width: 16px; }

/* shop logos: list row and shop page head (logos stay as the shops make them) */
.slogo { width: auto; max-width: 96px; height: 22px; object-fit: contain; border-radius: 4px; vertical-align: middle; }  /* wide logos keep their shape */
.row .slogo { width: 22px; }
.shoplogo { width: 72px; height: 72px; flex: none; border-radius: var(--radius); background: var(--panel); display: grid; place-items: center; font-weight: 600; font-size: 22px; color: var(--muted); overflow: hidden; }
.shoplogo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

/* No page scrolls (owner 2026-10-12: "users never have to scroll"): every page fits the window and lists page with ‹ ›.
   A short list (a team of five) that does not fit at full height goes dense instead of being split over pages. */
.list.dense .row { padding-top: 3px; padding-bottom: 3px; min-height: 0; }
.list.dense .row .sub { display: none; }
/* a narrow podium card puts two places per line instead of breaking names inside a word ('Mocan / u') */
@container (max-width: 460px) { .podium { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.step .name { overflow-wrap: normal; word-break: normal; }

.counter .move { font-size: 13px; font-weight: 600; margin-left: 4px; vertical-align: 6px; color: var(--muted); }
.counter .move.up { color: var(--text); }
.facts .streak { font-weight: 600; color: var(--text); }
.slogo.dark, .shoplogo.dark { background: var(--text); }
.slogo.dark { padding: 2px; }
.vsline { display: block; font-size: 12px; color: var(--text-2); margin-top: 1px; }
.vslab { font-size: 13px; color: var(--muted); align-self: center; }
/* team order: five rows always fit (owner: no scrolling) - one line per fighter, one for the opponent */
.tbo .tbrow { padding-top: 5px; padding-bottom: 5px; }
.tbo .pk { flex-direction: column; gap: 0; }
.tbo .who2 .name, .tbo .vsline { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* right panel fold (owner): a 36px strip with one button when shut */
.app.railshut:not(.norail) { --rail: 36px; }
.app.railshut .rail > :not(.railfold) { display: none; }
.railfold { align-self: flex-start; margin: 10px 6px 0; width: 24px; height: 24px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: var(--radius-sm); cursor: pointer; flex: none; }
.railfold:hover { background: var(--hover); color: var(--text); }
.railfold svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.app:not(.railshut) .railfold { position: absolute; right: 8px; top: 8px; margin: 0; z-index: 2; }
.rail { position: relative; }

/* ---------- design pass (audit/DESIGN_BRIEF.md) ---------- */
/* 3. flat sections: one ink rule over each, no shadowed boxes, no scroll shades */
.card { background: none !important; border-radius: 0; box-shadow: none; padding: 14px 0 6px; border-top: 1px solid var(--text); }
.body { gap: 20px 32px; }
.card .card, .podium .step.p1 { box-shadow: none; }
/* 7. hover, focus, press, settle */
.row, .btn, .chip, .rooms a, .watch a, .tabs button, .pager button, .mv button, .inp, select.sel, .jump, .railfold {
  transition: background-color var(--motion), color var(--motion), border-color var(--motion), box-shadow var(--motion), transform var(--motion-press); }
.btn:active:not(:disabled), .chip:active, .pager button:active:not(:disabled) { transform: scale(.97); }
.btn:hover { border-color: var(--faint); }
.pager button:hover:not(:disabled), .mv button:hover:not(:disabled) { background: var(--hover); color: var(--text); }
.inp:focus, select.sel:focus, .pal input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgb(17 19 24 / 8%); }
@keyframes settle { from { opacity: 0; } }
#main > .body { animation: settle var(--motion-settle); }
@media (prefers-reduced-motion: reduce) { * { animation-duration: 1ms !important; transition-duration: 1ms !important; } }
/* 8. one control size */
.btn { height: var(--control-md); padding: 0 14px; font-size: var(--step-secondary); }
.btn.sm { height: var(--control-sm); padding: 0 10px; font-size: var(--step-quiet); }
.inp, select.sel { height: var(--control-md); font-size: var(--step-secondary); }
.chip { height: var(--control-sm); font-size: var(--step-quiet); }
/* 9. rows: numbers line up, table heads ruled in ink, context lines on one line */
.row .r, .row > .num, .counter b, .pager .num, .kv dd { font-variant-numeric: tabular-nums; }
.row.thead { border-bottom: 1px solid var(--text); font-weight: 500; }
.row .sub, .counter span, .pager, .legend, .bodymap figcaption, .fkey, .wdl-key { font-size: var(--step-quiet); }
.bl .row .sub, .list.plain .sub { -webkit-line-clamp: 1; }
/* 10. sidebar: the watch list never collapses to a bare heading; one edge for the current room */
.side { overflow-y: auto; }
.watch { flex: none; overflow: visible; }
.rooms a[aria-current="page"] { box-shadow: none; font-weight: 500; }
/* 12. ippon as the shiai sheet writes them: kana in the serif, no boxes; the opponent's in grey */
.pts { gap: 1px; align-items: center; }
.pts i { font-family: var(--kanji); font-size: 16px; font-weight: 500; min-width: 18px; height: 22px; padding: 0; background: none; border-radius: 0; }
.pts i.f { background: none; color: var(--text); }
.pts i.a { background: none; color: var(--muted); opacity: .7; }
.pts i.x { color: var(--muted); font-size: 14px; margin-left: 4px; }
.pts i.f + i.a { margin-left: 6px; }
/* lists keep 14px rows so a page holds enough of them (no page scrolls); prose stays at 15 */
.list .row, .bl .row, .tbo .tbrow { font-size: 14px; line-height: 20px; }
.row .num.muted, .bl .row > .num { white-space: nowrap; }
.card { padding-top: 12px; }
.card h3 { margin-bottom: 8px; }
.facts { font-size: 14px; }

/* map (MapLibre): status dots in black and white */
.sd { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 1px solid var(--text); }
.sd.active { background: var(--text); } .sd.listed { background: #8b8f97; border-color: #8b8f97; } .sd.inactive { background: #fff; } .sd.unknown { background: #d9dbdf; border-color: #bfc2c8; }
.sd.ring { background: none; border-width: 1.5px; }
.mapsep { width: 1px; align-self: stretch; background: var(--border-strong); margin: 0 4px; }
.mapctl .chip[aria-pressed="false"] { opacity: .5; }
.maplibregl-popup-content { font: 13px/18px var(--sans); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-lg, 0 8px 24px rgb(17 19 24 / 14%)); padding: 10px 12px; }
.maplibregl-ctrl-attrib { font-size: 10px; }

/* map filter panel: two groups of switches, clear on/off (owner: filters not visible, not making sense) */
.mappanel { position: absolute; top: 14px; left: 14px; z-index: 2; width: 248px; background: var(--ground); border-radius: var(--radius-lg); box-shadow: 0 8px 28px rgb(17 19 24 / 14%), 0 0 0 1px var(--border); padding: 10px 10px 8px; }
.mappanel h4 { margin: 6px 6px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tog { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 6px; border: 0; background: none; border-radius: var(--radius-sm); font: 13px/18px var(--sans); color: var(--text); cursor: pointer; text-align: left; }
.tog:hover { background: var(--hover); }
.tog span:first-of-type { flex: 1; }
.tog .num { color: var(--muted); font-size: 12px; }
.tog::after { content: ""; flex: none; width: 26px; height: 15px; border-radius: 999px; background: #d9dbdf; box-shadow: inset 0 0 0 1px rgb(17 19 24 / 10%); transition: background var(--motion); background-image: radial-gradient(circle at 7.5px 50%, #fff 5.5px, transparent 6px); }
.tog[aria-checked="true"]::after { background-color: var(--text); background-image: radial-gradient(circle at 18.5px 50%, #fff 5.5px, transparent 6px); }
.tog[aria-checked="false"] { color: var(--muted); }
.sd.ev { border-radius: 50%; } .sd.ev.upcoming { background: #fff; border: 2px solid var(--text); } .sd.ev.recent, .sd.ev.older { background: #c9cbd0; border-color: var(--text); }
.mapnote { margin: 8px 6px 2px; font-size: 11px; line-height: 15px; color: var(--muted); }
.mapwrap { border: 0; }
.mapfilt { display: none; }
@media (max-width: 760px) {
  .mapfilt { display: inline-flex; position: absolute; top: 10px; left: 10px; z-index: 3; box-shadow: 0 4px 14px rgb(17 19 24 / 14%); }
  .mappanel { display: none; top: 54px; left: 10px; right: 10px; width: auto; max-height: 60vh; overflow-y: auto; }
  .mappanel.open { display: block; }
}
.maplibregl-ctrl-attrib.maplibregl-compact { background: rgb(255 255 255 / 70%); }
.maplibregl-ctrl-attrib .maplibregl-ctrl-attrib-inner { display: none !important; }
.maplibregl-ctrl-attrib:hover .maplibregl-ctrl-attrib-inner, .maplibregl-ctrl-attrib:focus-within .maplibregl-ctrl-attrib-inner { display: inline !important; }
@media (max-width: 760px) { .body > .mapwrap { flex: 0 0 100%; height: 100%; } }
/* sidebar (owner: organise it nicer): small caps group labels, tighter rooms, the watch list with room, View as a soft switch */
.side { gap: 8px; overflow-y: auto; }
.rooms { gap: 12px; }
.side h2 { font-size: 10.5px; line-height: 14px; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 2px; }
.grp h2:empty { display: none; }
.rooms a { height: 32px; font-weight: 450; font-size: 14px; }
.rooms a[aria-current="page"] { background: var(--selected); color: var(--text); font-weight: 550; box-shadow: none; }
.watch a { height: 30px; font-size: 13.5px; }
.viewas { padding: 8px 6px 4px; gap: 0; }
.seg2 { background: var(--hover); border: 0; box-shadow: inset 0 0 0 1px var(--border); padding: 3px; }
.seg2 button { height: 26px; }
.seg2 button[aria-pressed="true"] { background: var(--ground); color: var(--text); box-shadow: 0 1px 2px rgb(17 19 24 / 8%), 0 0 0 1px var(--border); }

/* learn, read like a publication: a thumbnail on every tutorial, the length on it, the title in two lines */
.row.tut { align-items: center; min-height: 68px; }
.row.tut .thumb { position: relative; width: 112px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--hover); display: grid; place-items: center; }
.row.tut .thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter var(--motion); }
.row.tut:hover .thumb img { filter: none; }
.row.tut .len { position: absolute; right: 4px; bottom: 4px; font: 600 10.5px/14px var(--sans); color: #fff; background: rgb(17 19 24 / 78%); padding: 0 4px; border-radius: 3px; font-style: normal; }
.row.tut .art { font: 600 11px var(--sans); color: var(--muted); font-style: normal; }
.row.tut .name { font-weight: 550; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rail .row.tut { grid-template-columns: 96px minmax(0, 1fr) !important; min-height: 60px; }
.rail .row.tut .thumb { width: 96px; }
.rail .row.tut > span:last-child:empty { display: none; }
.gseg { display: inline-flex; margin-left: 8px; padding: 2px; border-radius: 999px; background: var(--hover); vertical-align: 1px; }
.gseg button { height: 22px; padding: 0 10px; border-radius: 999px; font: 500 12px var(--sans); color: var(--muted); }
.gseg button[aria-pressed="true"] { background: var(--ground); color: var(--text); box-shadow: 0 1px 2px rgb(17 19 24 / 10%); }

/* ---------- trust: avatar, "Is this you?", forms, claim, privacy, outbox, review desk (ui.js trust block) ---------- */
.ava { flex: none; width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--panel); display: grid; place-items: center; position: relative; overflow: hidden; object-fit: cover; }
.ava svg { position: absolute; width: 78%; height: 78%; top: 6%; left: 11%; color: var(--text); opacity: .13; --brand-paper: var(--panel); }
.ava b { position: relative; font: 700 22px/1 "Space Grotesk", var(--sans); letter-spacing: -0.04em; color: var(--text); }
.ava.sm { width: 48px; height: 48px; } .ava.sm b { font-size: 16px; }
.ava.lg { width: 100%; height: 100%; border: 0; border-radius: 0; } .ava.lg b { font-size: 56px; }
img.ava { filter: grayscale(1); }
.head > .ava { align-self: center; }
.head .bio { margin: 4px 0 2px; color: var(--text-2); max-width: 70ch; }
.vfd { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--text); }
.vfd i { font-style: normal; flex: none; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--text); color: var(--on-solid); font-size: 10px; }
.facts .isme { color: var(--muted); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.facts .isme:hover { color: var(--text); text-decoration-color: currentColor; }
.mewho { display: flex; align-items: center; gap: 16px; }
.mehead { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.mehead h2 { margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -0.02em; }
.paths { display: grid; border-top: 1px solid var(--text); }
.path { display: grid; grid-template-columns: minmax(0, 1fr) 20px; align-items: center; gap: 12px; text-align: left; padding: 14px 4px; border-bottom: 1px solid var(--border); transition: background-color var(--motion); }
.path:hover { background: var(--hover); }
.path b { display: block; font-weight: 600; }
.path span span { display: block; color: var(--text-2); font-size: var(--step-secondary); line-height: 20px; margin-top: 2px; }
.path svg, .row > svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.6; }
form.form { display: grid; gap: 12px; margin-top: 6px; }
form.form h3 { margin: 0; }
.fld { display: grid; gap: 4px; }
.fld > span { font-size: var(--step-quiet); font-weight: 500; color: var(--text-2); }
.fld small { font-size: 12px; line-height: 17px; color: var(--muted); }
.fld textarea.inp { height: auto; padding: 8px 10px; resize: vertical; font: inherit; }
.fld .inp, .fld .sel { width: 100%; }
.inp:focus, .sel:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px var(--teal-soft); }
.factions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.factions.c { justify-content: center; }
.factions .btn.sm { margin-top: 0; }
.fmsg { margin: 0; min-height: 0; font-size: var(--step-quiet); color: var(--text-2); }
.fmsg.err { color: var(--text); font-weight: 600; }
.fmsg.err::before { content: "✕ "; }
.seg3 { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.seg3 legend { font-size: var(--step-quiet); font-weight: 500; color: var(--text-2); margin-bottom: 6px; padding: 0; }
.seg3 label, .chk { display: inline-flex; align-items: center; gap: 8px; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--text); width: 16px; height: 16px; margin: 0; }
.sent { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 18px 0 6px; }
.sent .men { width: 56px; height: 56px; color: var(--text); --brand-paper: var(--ground); }
.sent h3 { margin: 0; font-size: 17px; }
.sent .btn.sm { margin-top: 4px; align-self: center; }
.say.warn { border-left: 2px solid var(--text); padding-left: 10px; }
.steps3 { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; margin: 4px 0 16px; padding: 0; counter-reset: s; }
.steps3 li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: var(--step-secondary); }
.steps3 li + li::before { content: ""; width: 28px; height: 1px; background: var(--border-strong); margin: 0 10px 0 2px; }
.steps3 i { font-style: normal; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border-strong); font-size: 11px; font-weight: 600; }
.steps3 li.ok { color: var(--text); } .steps3 li.ok i { background: var(--text); border-color: var(--text); color: var(--on-solid); }
.steps3 li.cur { color: var(--text); font-weight: 500; } .steps3 li.cur i { border-color: var(--text); }
.ways { border: 0; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--text); }
.way { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--border); cursor: pointer; }
.way:has(input:checked) { background: var(--hover); }
.way input { margin-top: 3px; }
.way b { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.way span span { display: block; color: var(--text-2); font-size: var(--step-secondary); line-height: 20px; }
.way.off { cursor: default; } .way.off b, .way.off span span { color: var(--muted); }
.way .nc { display: inline-block !important; margin-top: 4px; font-size: 12px !important; font-weight: 600; color: var(--text) !important; border: 1px solid var(--border-strong); border-radius: 999px; padding: 0 8px; }
.wayf { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.wayf[hidden] { display: none; }
.ped { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.phwrap { display: grid; gap: 10px; }
.crop { width: 240px; height: 240px; border-radius: 50%; overflow: hidden; position: relative; background: var(--panel); border: 1px solid var(--border-strong); touch-action: none; }
.crop > img:not(.pan) { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.crop.on { cursor: grab; } .crop.on:active { cursor: grabbing; }
.crop img.pan { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; filter: grayscale(1); user-select: none; }
#zoom { width: 240px; accent-color: var(--text); }
.phwrap label.btn { cursor: pointer; }
.linkcard { align-items: center; justify-content: center; }
.vouch { display: grid; justify-items: center; gap: 10px; text-align: center; max-width: 52ch; margin: auto; }
.flatp > .card { box-shadow: none; background: none; border-radius: 0; border-top: 1px solid var(--text); padding: 18px 2px 8px; }
.flatp > .card.art { border-top: 0; }
.span3 { grid-column: span 3; }
/* privacy */
.priv > .card.art { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; overflow: hidden; }
.card.art img { flex: 1; min-height: 0; max-width: 100%; object-fit: contain; filter: grayscale(1) contrast(1.08); opacity: .92; }
.card.art p { margin: 0; font-size: 17px; line-height: 24px; font-weight: 500; letter-spacing: -0.01em; text-align: center; max-width: 26ch; }
.card.art.wide img { width: 100%; }
.plist { margin: 0 0 4px; padding: 0; list-style: none; display: grid; }
.plist li { padding: 8px 0 8px 18px; border-bottom: 1px solid var(--border); position: relative; color: var(--text-2); }
.plist li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 6px; height: 1px; background: var(--text); }
.rgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 6px 0 20px; }
.rgrid > div { border-top: 1px solid var(--border-strong); padding-top: 12px; display: grid; align-content: start; gap: 6px; }
.rgrid b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.rgrid p { margin: 0; color: var(--text-2); }
.rgrid .muted { font-size: 12px; }
.rights .say.sm { max-width: 80ch; }
dd.ph { color: var(--muted); font-style: italic; }
/* sidebar foot links */
.side .foot { flex-wrap: wrap; row-gap: 6px; }
.flinks { order: -1; flex-basis: 100%; display: flex; gap: 14px; }
.flinks a { color: var(--muted); } .flinks a:hover, .flinks a[aria-current] { color: var(--text); }
/* dev outbox and review desk */
.mails .mail { border-bottom: 1px solid var(--border); padding: 12px 0; }
.mail .mh { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.mail pre { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/19px ui-monospace, Menlo, monospace; color: var(--text-2); }
.admin .row.adm { grid-template-columns: minmax(0, 1fr) auto; align-items: start; padding: 10px 2px; }
.row.adm > span:first-child { display: grid; gap: 3px; }
.row.adm .say { font-size: var(--step-secondary); }
@media (max-width: 1180px) and (min-width: 761px) { .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .span3 { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .head > .ava { width: 52px; height: 52px; } .head > .ava b { font-size: 17px; }
  .rgrid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ped { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .flatp > .card { padding: 14px 2px 8px; overflow-y: auto; }
  .card.art img { max-height: 58%; }
  .admin .row.adm { grid-template-columns: minmax(0, 1fr); }
}
.fld .inp { max-width: none; height: 38px; flex: none; } .fld textarea.inp { height: auto; } .fld .sel { height: 38px; max-width: 240px; }
.paths[hidden], .btn[hidden], #zoom[hidden] { display: none; }
@media (max-width: 760px) {
  .ped { justify-items: stretch; } .phwrap { justify-items: center; text-align: center; }
  .steps3 li + li::before { width: 12px; margin: 0 6px 0 2px; }
  .steps3 li { font-size: 13px; gap: 6px; }
}
/* spot illustrations from the kendo kit (art/kit/): empty states, loading, errors */
.spot { width: 88px; height: 88px; color: var(--muted); flex: none; }
div.empty .spot { width: 96px; height: 96px; opacity: .8; }
.head > .spot { width: 64px; height: 64px; margin-right: 4px; }
.spot.breathe { animation: spot-breathe 1.8s ease-in-out infinite; }
@keyframes spot-breathe { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .spot.breathe { animation: none; } }

/* loading: the cut wordmark, centred in the window. The word fades in shimmering grey to ink; the shinai slashes in once at .45 s
   and stays; then word and shinai shimmer together until the page arrives. */
.loadwrap { height: 100%; min-height: 100dvh; display: grid; place-items: center; padding-bottom: 6vh; --brand-paper: var(--ground); color: var(--text); animation: lw-in .3s ease-out .15s both; }
.loadwrap .wordcut { height: clamp(56px, 9vw, 96px); }
.loadwrap text { fill: url(#wcshine); }
.loadwrap .s1 { stop-color: var(--dusk, #8b8f97); stop-opacity: .45; }
.loadwrap .s2 { stop-color: var(--text); }
.loadwrap .wc-cut { animation: wc-slash .38s cubic-bezier(.2, .9, .2, 1) .45s both, wc-pulse 1.6s ease-in-out .85s infinite; }
@keyframes lw-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes wc-slash { from { transform: translate(-46px, 40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wc-pulse { 0%, 100% { color: var(--text); } 50% { color: var(--dusk, #8b8f97); } }
@media (prefers-reduced-motion: reduce) { .loadwrap, .loadwrap .wc-cut { animation: none; } .loadwrap text { fill: var(--text); } }
.tagline { margin: 2px 0 6px; font-size: 13px; color: var(--muted); letter-spacing: .01em; }
.share-m { display: none; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 760px) { .share-m { display: inline; } }

/* Ippo, ippo: one card per fact, each the size of the window */
.body.yearp { display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.ydeck { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.ydeck::-webkit-scrollbar { display: none; }
.ycard { flex: 0 0 100%; scroll-snap-align: center; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 24px clamp(16px, 8vw, 120px); border-top: 1px solid var(--text); overflow: hidden; }
.ycard p { margin: 0; }
.yk { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ybig { font-size: clamp(72px, 16vh, 160px); line-height: 1; font-weight: 700; letter-spacing: -0.04em; }
.ymid { font-size: clamp(28px, 5vh, 48px); line-height: 1.15; font-weight: 650; letter-spacing: -0.02em; }
.ysay { font-size: 18px; color: var(--text-2); } .ysay.sm { font-size: 15px; }
.ybar { max-width: 520px; height: 12px; }
.ytg { display: grid; grid-template-columns: 64px minmax(0, 420px) 40px; gap: 10px 14px; align-items: center; font-size: 16px; }
.ytg .t { height: 10px; border: 1px solid var(--text); } .ytg .t i { display: block; height: 100%; background: var(--text); }
.ytg b { text-align: right; }
.yev { max-width: 640px; } .yev .row { grid-template-columns: 22px minmax(0, 1fr) auto; }
.ynav { display: flex; align-items: center; justify-content: center; gap: 14px; }
.ynav svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.ydots { display: flex; gap: 6px; } .ydots i { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); } .ydots i.on { background: var(--text); }
@media (max-width: 760px) { .body.yearp { display: flex; overflow: hidden; } .ycard { padding: 16px 4px; } .ynav .btn { display: none; } }
.ybars { height: 8px; border: 1px solid var(--text); } .ybars i { display: block; height: 100%; background: var(--text); }

/* polish 2026-10-12 */
.wave { filter: grayscale(1); opacity: .08 !important; }  /* black and white: the flag behind a country's name is grey */
.champs .cell > a.lk + a.lk::before { content: ", "; color: var(--muted); }  /* a team's members, one after another */
@media (max-width: 760px) { .pal .hint { display: none; } }  /* no keyboard on a phone */
.dirf { display: contents; }
.dirf .chips { flex: 1 0 100%; margin: 0; }
.dirfb, .dirdone { display: none; }
@media (max-width: 760px) {
  .dirbar .inp { flex: 1 0 140px; height: 44px; }
  .dirbar .dirfb { display: inline-flex; height: 44px; }
  .dirf { display: none; }
  .dirf.open { display: flex; flex-direction: column; gap: 12px; position: fixed; inset: auto 0 0 0; z-index: 60; max-height: 80dvh; overflow-y: auto; padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--ground); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: 0 0 0 100vmax rgb(17 19 24 / 35%); }
  .dirf.open > * { width: 100%; }
  .dirf.open .sel, .dirf.open .btn { height: 44px; }
  .dirf.open .chips { flex-wrap: wrap; overflow: visible; gap: 8px; }
  .dirf.open .chip { height: 40px; padding: 0 14px; font-size: 14px; }
  .dirf.open .dirdone { display: inline-flex; justify-content: center; margin-top: 4px; }
}
@container (max-width: 640px) {
  .dir .row.tut { grid-template-columns: 112px minmax(0, 1fr) !important; }  /* a thumbnail and its title; the generic directory columns squeezed the title to one word */
  .dir .row.tut > :nth-child(n+3), .dir.learn .row.thead { display: none; }
}
@media (max-width: 760px) {
  .tabs { flex-wrap: nowrap; mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }  /* one swipeable row of tabs, not three rows */
  .head .actions { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }  /* page actions swipe instead of falling off the edge */
  .head .actions > * { flex: none; }
}
/* phone: nothing you read is under 13px (the scoring marks and kanji are glyphs, not text) */
@media (max-width: 760px) {
  .bar a { font-size: 13px; letter-spacing: -0.01em; }
  .top .viewas-m, .chip, .dir .chips .chip, .attr, .pm, .tag, .badge, .tooltag, .src, .kicker, .wdl-key, .fkey, .vid, .pal .sub, .bodymap dt, .bodymap dd, .bodymap dd span { font-size: 13px; }
  .row.tut .len { font-size: 12px; }
}
@media (max-width: 760px) {
  .app:has(.dirf.open) #main { z-index: 70; }  /* #main isolates its children: lift it so the sheet covers the bottom bar */
  .dirf.open > span > .btn { width: 100%; height: 44px; }
}
@media (max-width: 760px) {
  .head .dirfb { display: inline-flex; }
  .head .actions:has(.dirfb) { width: 100%; overflow: visible; }
  .head .actions .inp { flex: 1 1 auto; max-width: none; height: 44px; }
}
@media (max-width: 760px) {
  .facts a, .facts button, .cell a.lk, .kv a.lk { padding-block: 7px; margin-block: -7px; }  /* a thumb-sized hit area around links in running text, same layout */
}
@media (max-width: 760px) {
  .dirf.open .sel { max-width: none; }
  .top .viewas-m { height: 36px; }
  .top .brand { min-height: 44px; }
  .evl .chip { height: 36px; display: inline-flex; align-items: center; }
  .st { font-size: 13px; }
  .head > .ava, .head > .mono, .head > .logo, .head > .flag { align-self: flex-start; }
}
@media (max-width: 760px) {
  .actbar { display: flex; flex-wrap: nowrap; gap: 8px; flex: none; padding: 8px 16px; border-top: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
  .actbar > * { flex: none; }
  .actbar .btn { height: 44px; }
}
.vid img { filter: grayscale(1) contrast(1.05); transition: filter var(--motion); }  /* black and white, like the tutorials; colour on hover */
.vid:hover img { filter: none; }
@media (max-width: 760px) {
  .head > span.ava { display: none; }  /* phone: the initials add nothing and cost a column of the header */
}
@media (max-width: 760px) { .btn.sm { height: 36px; } }

/* sidebar top row: brand left, collapse button right; collapsed, the button sits under the mark. The sidebar never scrolls: rows tighten on short screens */
.sidetop { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.sidetop .brand { min-width: 0; }
.app.mini .sidetop { flex-direction: column; gap: 8px; }
.side { overflow: hidden; }
.rooms a .nbadge { position: static; margin-left: auto; }
.app.mini .rooms a { position: relative; }
.app.mini .rooms a .nbadge { position: absolute; top: 2px; right: 6px; }
/* room to breathe, scaled to the window's height so it never needs a scrollbar */
.side { gap: clamp(8px, 1.6vh, 16px); padding-top: clamp(10px, 2vh, 18px); padding-bottom: clamp(10px, 2vh, 18px); }
.rooms { gap: clamp(8px, 3vh, 28px); }
.rooms .grp { display: flex; flex-direction: column; gap: 2px; }
.rooms a { height: clamp(26px, 4.1vh, 38px); font-size: 14px; }
.side h2 { margin: 0 0 4px; }
.viewas { margin-top: auto; padding-top: 0; }
.side .foot { margin-top: 0; }
@media (max-height: 620px) { .side h2 { display: none; } }

/* visual language (2026-10-14): numbers big, words small. kpis = stat tiles, ychart = one column a year, av = initials disc */
.kpis { display: flex; flex-wrap: wrap; gap: 10px 34px; margin: 2px 0 16px; }
.kpi { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi b { font-size: 30px; line-height: 34px; font-weight: 650; letter-spacing: -0.02em; color: var(--text); }
.kpi > span { font-size: 12.5px; color: var(--muted); }
.kpi .medals3 { display: flex; gap: 14px; font-size: 24px; }
.kpi .medals3 span { display: inline-flex; align-items: center; gap: 6px; }
.kpi .medals3 .medal { width: 20px; height: 20px; font-size: 11px; line-height: 1; letter-spacing: 0; }
.ychart { flex: 1; min-height: 90px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; align-items: stretch; }
.yc { display: grid; grid-template-rows: 1fr 1px 0.55fr 16px; min-width: 0; }
.yc .up { align-self: end; background: var(--border-strong); border-radius: 3px 3px 0 0; min-height: 2px; }
.yc .dn { grid-row: 3; align-self: start; background: var(--text); border-radius: 0 0 3px 3px; }
.yc::after { content: ""; grid-row: 2; background: var(--border); }
.yc .yl { grid-row: 4; font-size: 11px; color: var(--faint); text-align: center; white-space: nowrap; }
.yc:hover .up { background: var(--faint); }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.legend .sw.up { background: var(--border-strong); } .legend .sw.dn { background: var(--text); }
.pulse { display: flex; flex-direction: column; }
.av { width: 28px; height: 28px; border-radius: 50%; background: var(--hover); box-shadow: inset 0 0 0 1px var(--border); display: grid; place-items: center; font-size: 10.5px; font-weight: 600; color: var(--text-2); }
.row.mem .wdl { height: 6px; }
.mrow { display: flex; gap: 3px; align-items: center; }
.mrow .medal { width: 20px; height: 20px; font-size: 11px; }
.mrow small { font-size: 11px; color: var(--muted); margin-left: 2px; }
.card h3 .seg { margin-left: auto; display: inline-flex; background: var(--hover); border-radius: 999px; padding: 2px; }
.card h3 .seg button { font-size: 12px; font-weight: 500; height: 24px; padding: 0 10px; border-radius: 999px; color: var(--muted); }
.card h3 .seg button[aria-pressed="true"] { background: var(--panel, #fff); color: var(--text); box-shadow: 0 0 0 1px var(--border); }
.ifacts { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ifacts li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 14px; line-height: 20px; }
.ifacts svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; color: var(--muted); margin-top: 1px; }
.dojo h4 { font-size: 12px; color: var(--muted); font-weight: 600; margin: 0 0 8px; }
.tchs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 4px 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--border); }
.tch .dan { font-size: 11px; font-weight: 600; background: var(--solid); color: var(--on-solid); border-radius: 999px; padding: 1px 7px; }
.tch:not(:has(.dan)) { padding-right: 10px; }
.dojo .mini { flex: 1; min-height: 120px; border-radius: var(--radius-sm); }
.dojo { display: flex; flex-direction: column; }
.btn.ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; margin-right: 6px; vertical-align: -3px; }
.ychart { justify-content: start; grid-auto-columns: minmax(0, 44px); }
@media (max-width: 760px) { .kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; } .kpi b { font-size: 26px; line-height: 30px; } .kpi .medals3 { gap: 10px; font-size: 20px; } }

/* ---------- kendoka overview (2026-10-14): the figure is the control ---------- */
.body.kov { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) 176px; }
.khero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0 28px; }
.dside { display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 0; }
.seg.lg { display: inline-flex; background: var(--hover); border-radius: 999px; padding: 3px; flex: none; }
.seg.lg button { height: 34px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.seg.lg button b { font-weight: 600; color: inherit; }
.seg.lg button[aria-pressed="true"] { background: var(--ground); color: var(--text); box-shadow: 0 1px 2px rgb(17 19 24 / 8%), 0 0 0 1px var(--border); }
.dfwrap { flex: 1; min-height: 0; width: 100%; display: flex; justify-content: center; padding: 6px 120px 6px 0; }
.dfig { position: relative; height: 100%; max-width: 100%; }
.dfig svg { display: block; width: 100%; height: 100%; }
.dfig .ink { color: var(--text-2); pointer-events: none; }
.dfig .z { fill: var(--text); cursor: pointer; transition: fill-opacity .2s; }
.dfig .z:hover { stroke: var(--text); stroke-width: 1; }
.dfig .z.on { stroke: var(--text); stroke-width: 1.6; stroke-dasharray: 2 1.5; }
.tco { position: absolute; transform: translateY(-50%); display: flex; align-items: center; gap: 8px; white-space: nowrap; padding: 4px 6px; border-radius: 8px; color: var(--text); }
.tco.r { left: calc(100% + 4px); } .tco.l { right: calc(100% + 4px); flex-direction: row-reverse; }
.tco::before { content: ""; width: 22px; height: 1px; background: var(--border-strong); }
.tco b { font-size: 26px; line-height: 28px; font-weight: 650; letter-spacing: -0.02em; }
.tco span { font-size: 14px; color: var(--muted); }
.tco:hover { background: var(--hover); }
.tco.on { background: var(--solid); color: var(--on-solid); } .tco.on span { color: var(--on-solid); opacity: .75; } .tco.on::before { background: var(--text); }
.tco.zero { color: var(--faint); } .tco.zero b { font-weight: 500; }
.dlist { display: flex; flex-direction: column; min-height: 0; }
.dlist h3 { display: flex; align-items: center; gap: 8px; }
.dlist h3 .muted { font-weight: 400; }
.dlist .clr { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; font-size: 18px; line-height: 1; color: var(--muted); }
.dlist .clr:hover { background: var(--hover); color: var(--text); }
.dlbox { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.counter b i { font-style: normal; color: var(--faint); font-weight: 400; margin: 0 2px; }
/* stand-outs: four numbers, no boxes */
.kso { justify-content: center; }
.sogrid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.sogrid div { display: flex; flex-direction: column; gap: 2px; }
.sogrid b { font-size: 34px; line-height: 38px; font-weight: 650; letter-spacing: -0.03em; }
.sogrid span { font-size: 14px; color: var(--muted); }
/* rivals: each meeting as the shiai mark, oldest to newest */
.riv .rv { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); color: inherit; font-size: 15px; }
.riv .rv:hover .name { text-decoration: underline; }
.riv .seq { display: flex; gap: 4px; flex: none; }
.riv .seq .mk { width: 20px; height: 20px; font-size: 14px; }
/* career: competitions as marks over the years, clubs as bands */
.career { overflow: visible; }
.kcline { position: relative; flex: 1; min-height: 0; display: grid; grid-template-rows: minmax(30px, 1fr) 22px 44px; margin: 0 8px; }
.kcmarks { position: relative; border-bottom: 1px solid var(--border-strong); }
.cmk { position: absolute; bottom: 0; width: 4px; margin-left: -2px; border-radius: 2px 2px 0 0; background: var(--border-strong); }
.cmk.med { background: var(--solid); width: 6px; margin-left: -3px; }
.cmk:hover, .cmk:focus-visible { background: var(--text); outline: none; }
.kcaxis { position: relative; }
.cyt { position: absolute; transform: translateX(-50%); top: 4px; font-size: 12px; color: var(--muted); }
a.cyt:hover { color: var(--text); text-decoration: underline; }
.kcbands { position: relative; }
.cbd { position: absolute; height: 20px; border-radius: 4px; background: var(--hover); box-shadow: inset 0 0 0 1px var(--border); font-size: 12px; line-height: 20px; color: var(--text-2); overflow: hidden; }
.cbd span { padding: 0 6px; white-space: nowrap; }
a.cbd:hover { background: var(--selected); color: var(--text); }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--solid); color: var(--on-solid); font-size: 13px; line-height: 18px; padding: 5px 9px; border-radius: 6px; white-space: nowrap; z-index: 5; pointer-events: none; }
.cbd[data-tip]:hover::after { bottom: auto; top: calc(100% + 4px); }
@media (max-width: 760px) {
  .khero { display: flex; flex-direction: column; overflow-y: auto; }
  .dside { flex: none; }
  .dfwrap { height: 280px; flex: none; }
  .dlist { flex: none; height: 440px; margin-top: 14px; }
  .sogrid b { font-size: 30px; }
  .kcline { min-height: 160px; }
}
.khero .row.hr { padding: 8px 0; }
.khero .row.hr .pw { font-size: 15px; }
.khero .row.hr .sub { font-size: 13px; }

/* ---------- the match as a shiai score sheet ---------- */
.ssheet { position: relative; display: grid; gap: 0; margin: 14px 0 10px; border: 1.5px solid var(--text); border-radius: 4px; }
.srow { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto 44px; align-items: stretch; min-height: 78px; }
.srow + .srow { border-top: 1px solid var(--text); }
.srow .tsk { background: var(--border-strong); }
.srow.red .tsk { background: #c8373b; }
.srow .sname { display: flex; align-items: center; padding: 0 16px; font-size: 18px; font-weight: 600; min-width: 0; }
.srow .sname .pw { font-size: 18px; } .srow .sname .name { overflow-wrap: anywhere; }
.srow .cells { display: flex; border-left: 1px solid var(--text); }
.ssheet .sc { width: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-style: normal; border-right: 1px solid var(--border-strong); position: relative; }
.ssheet .sc b { font: 500 30px/34px "Noto Sans JP", var(--sans); color: var(--text); width: 46px; height: 46px; display: grid; place-items: center; }
.ssheet .sc small { font-size: 12px; color: var(--muted); margin-top: -2px; }
.ssheet .sc.first b { border-radius: 50%; box-shadow: inset 0 0 0 2px var(--text); }
.ssheet .sc.mark { font: 500 22px/1 "Noto Sans JP", var(--sans); color: var(--muted); width: 40px; }
.srow .win { display: grid; place-items: center; font-size: 28px; color: var(--text); border-left: 1px solid var(--border-strong); }
.drawx { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 26px; background: var(--ground); padding: 0 6px; line-height: 1; z-index: 1; }
.smeta { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.vid.hero { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--solid); margin: 4px 0 14px; padding: 0; }
.vid.hero img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; }
.vid.hero .play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgb(255 255 255 / 92%); }
.vid.hero .play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 20px solid var(--solid); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.vid.hero:hover .play { background: #fff; transform: scale(1.04); }
.tmlink { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--border); color: inherit; margin-bottom: 14px; font-size: 15px; }
.tmlink span:last-child { text-align: right; } .tmlink b { font-size: 20px; } .tmlink:hover { background: var(--hover); }
/* team match: one sheet row pair per position */
.tsheet { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 14px; }
.trow { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: center; color: inherit; border-radius: 6px; }
.trow:hover .ssheet { background: var(--hover); }
.tpos { display: flex; flex-direction: column; align-items: center; } .tpos b { font: 500 26px/30px "Noto Sans JP", var(--sans); } .tpos small { font-size: 12px; color: var(--muted); }
.ssheet.mini { margin: 0; border-width: 1px; }
.ssheet.mini .srow { min-height: 44px; } .ssheet.mini .sname { font-size: 15px; font-weight: 500; padding: 0 12px; }
.ssheet.mini .sc { width: 44px; } .ssheet.mini .sc b { font-size: 20px; width: 32px; height: 32px; } .ssheet.mini .sc small { display: none; }
.ssheet.mini .sc.mark { width: 30px; font-size: 16px; } .ssheet.mini .win { font-size: 20px; } .ssheet.mini .srow { grid-template-columns: 6px minmax(0, 1fr) auto 32px; }
@media (max-width: 760px) { .ssheet .sc { width: 52px; } .ssheet .sc b { font-size: 26px; width: 40px; height: 40px; } .srow .sname, .srow .sname .pw { font-size: 16px; } .ssheet.mini .sc { width: 36px; } .trow { grid-template-columns: 40px minmax(0, 1fr); } }
@media (max-width: 760px) {
  .bhead { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 6px; }
  .bhead .bscore { grid-column: 1 / -1; grid-row: 1; }
  .tpos b { font-size: 22px; line-height: 24px; }
}

/* ---------- competition: categories as chips, the bracket as the page ---------- */
.catchips { display: flex; flex-wrap: wrap; gap: 6px; flex: none; padding: 0 28px; margin: 4px 0 2px; }
.catchips a { height: 32px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 14px; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--border-strong); }
.catchips a:hover { background: var(--hover); }
.catchips a[aria-current] { background: var(--solid); color: var(--on-solid); box-shadow: none; }
.body.evb { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
.brkcard { padding-bottom: 0; }
.brkbar { display: flex; gap: 4px; flex: none; margin-bottom: 8px; }
.brkbar a { font-size: 13px; padding: 4px 10px; border-radius: 999px; color: var(--muted); }
.brkbar a:hover { color: var(--text); background: var(--hover); }
.brkbar a[aria-current] { color: var(--text); background: var(--hover); font-weight: 600; }
.brkscroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.brk { display: grid; grid-template-columns: repeat(var(--n), minmax(150px, 1fr)); gap: 0 26px; min-height: 100%; padding: 0 8px 12px 0; }
.bcol { display: flex; flex-direction: column; min-width: 0; }
.bcol h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); position: sticky; top: 0; background: var(--ground); z-index: 1; padding: 2px 0; }
.bbody { flex: 1; display: flex; flex-direction: column; }
.pair { flex: 1; display: flex; flex-direction: column; justify-content: space-around; position: relative; gap: 10px; padding: 6px 0; }
.pair:not(.one)::after { content: ""; position: absolute; right: -14px; top: 25%; bottom: 25%; width: 13px; border: 1px solid var(--border-strong); border-left: 0; border-radius: 0 6px 6px 0; }
.pair:not(.one)::before { content: ""; position: absolute; right: -27px; top: 50%; width: 13px; border-top: 1px solid var(--border-strong); }
.bx { position: relative; display: flex; flex-direction: column; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--border); background: var(--ground); color: inherit; min-height: 58px; }
.bx:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
.bx.empty { box-shadow: inset 0 0 0 1px dashed var(--border); opacity: .5; }
.bkl { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 29px; padding: 0 10px; font-size: 14px; color: var(--muted); }
.bkl + .bkl { border-top: 1px solid var(--border); }
.bkl.w { color: var(--text); font-weight: 600; }
.bkl .bn { display: flex; align-items: center; gap: 6px; min-width: 0; } .bkl .bn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bkl .bk { font-family: "Noto Sans JP", var(--sans); font-size: 14px; letter-spacing: 1px; flex: none; }
.bkl.hl { background: var(--solid); color: var(--on-solid); }
.bkl.hl:first-child { border-radius: 8px 8px 0 0; } .bkl.hl:last-of-type { border-radius: 0 0 8px 8px; }
.be { position: absolute; right: -8px; top: -8px; font: 500 11px/18px "Noto Sans JP", var(--sans); font-style: normal; width: 18px; text-align: center; border-radius: 50%; background: var(--ground); box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--muted); }
/* podium as steps */
.pod { justify-content: flex-end; }
.podsteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; align-items: end; flex: 1; min-height: 0; }
.podsteps > div { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; height: 100%; }
.podsteps .who { display: flex; flex-direction: column; gap: 4px; padding: 0 4px 8px; font-size: 14px; text-align: center; align-items: center; }
.podsteps .who .pw { justify-content: center; flex-wrap: wrap; } .podsteps .who .name { font-weight: 600; }
.podsteps .blk { background: var(--hover); border-radius: 6px 6px 0 0; display: grid; place-items: start center; padding-top: 8px; box-shadow: inset 0 0 0 1px var(--border); }
.podsteps .blk b { font-size: 26px; font-weight: 650; color: var(--muted); }
.podsteps .st1 .blk { height: 46%; background: var(--solid); box-shadow: none; } .podsteps .st1 .blk b { color: var(--on-solid); }
.podsteps .st2 .blk { height: 32%; } .podsteps .st3 .blk { height: 20%; }
.evfig { align-items: center; }
.dfwrap.static { padding: 0 110px 0 0; } .dfwrap.static .tco, .dfwrap.static .z { pointer-events: none; }
.smeta.center { text-align: center; margin: 6px 0 0; }
@media (max-width: 760px) { .brk { grid-template-columns: repeat(var(--n), 172px); } .bkl { font-size: 13px; } .catchips { overflow-x: auto; flex-wrap: nowrap; } .catchips a { flex: none; } }
.brkbar a::first-letter, .bcol h4::first-letter { text-transform: uppercase; }
.brkbar { overflow-x: auto; scrollbar-width: none; } .brkbar a { white-space: nowrap; flex: none; }

/* ---------- club: the members by grade, one row per grade, names written across (readable) ---------- */
.body.clb { grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr); }
.hlinks { display: inline-flex; gap: 12px; } .hlinks a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.nafuda .board { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 0; padding: 0; background: none; }
.tier { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.tier .tl { font-size: 14px; font-weight: 650; color: var(--text); padding-top: 7px; }
.tier .tl, .np { writing-mode: horizontal-tb; }
.tplates { display: flex; flex-wrap: wrap; gap: 6px; }
.np { display: inline-flex; align-items: center; height: 34px; padding: 0 12px 0 10px; border-left: 3px solid var(--text); background: var(--hover); border-radius: 0 6px 6px 0; color: var(--text); font-size: 14px; white-space: nowrap; }
.np:hover { background: var(--selected); }
.np.sensei { background: var(--solid); color: var(--on-solid); border-left-color: var(--solid); font-weight: 600; }
.np.past { color: var(--muted); border-left-color: var(--border-strong); }
.np[data-tip]:hover::after { bottom: calc(100% + 6px); top: auto; }
.dojo .ifact { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin: 0 0 12px; font-size: 15px; line-height: 21px; }
.dojo .ifact svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; color: var(--muted); margin-top: 2px; }
.cres .plc { font-size: 18px; font-weight: 650; color: var(--faint); }
.cres .plc.p1 { color: var(--text); } .cres .plc.p2, .cres .plc.p3 { color: var(--text-2); }
@media (max-width: 760px) { .tier { grid-template-columns: 1fr; gap: 6px; } .nafuda .board { max-height: 60vh; } }
.resv { flex: 1; min-height: 0; display: flex; flex-direction: column; } .resv[hidden] { display: none; }

/* ---------- country: champions, the clubs on the map, the national team as shiai marks ---------- */
.body.cty { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
.champs2 .most { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; flex: none; }
.champs2 .most a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--border-strong); color: inherit; font-size: 14px; }
.champs2 .most a:hover { background: var(--hover); }
.champs2 .most b { width: 26px; height: 26px; border-radius: 50%; background: var(--solid); color: var(--on-solid); display: grid; place-items: center; font-size: 13px; }
.champs2 .row .yr { font-size: 17px; font-weight: 650; }
.champs2 .cell { font-size: 15px; }
.cmap { padding: 0 !important; border-top: 0 !important; }
.mini.lg { flex: 1; min-height: 200px; border-radius: 12px; }
.cmapl { display: flex; flex-direction: column; padding: 10px 2px 0; flex: none; }
.cmapl a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); color: inherit; font-size: 15px; }
.cmapl a:hover .name { text-decoration: underline; }
.cmapl .more { border: 0; color: var(--muted); font-size: 14px; }
.strong .rk { font-size: 20px; font-weight: 650; }
.strong .row .name { font-size: 15px; }
.nteam .yr { font-size: 16px; font-weight: 650; }
.nteam .marks { display: flex; flex-wrap: wrap; gap: 3px; }
.nteam .marks .mk { width: 20px; height: 20px; font-size: 15px; }
@media (max-width: 760px) { .champs2 .thead { display: none; } .champs2 .cell:has(> .faint) { display: none; } .champs2 .most a { font-size: 13px; } }

/* ---------- rankings ---------- */
.rkf { align-items: center; gap: 8px; }
.rkf .seg.lg a { height: 34px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; color: var(--muted); }
.rkf .seg.lg a[aria-current] { background: var(--ground); color: var(--text); box-shadow: 0 1px 2px rgb(17 19 24 / 8%), 0 0 0 1px var(--border); }
.rkcard { padding-top: 6px; }
.rktop { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 16px; align-items: end; flex: none; padding: 8px 0 18px; border-bottom: 1px solid var(--text); margin-bottom: 4px; }
.rktop a { display: flex; flex-direction: column; gap: 4px; color: inherit; padding: 14px 16px; border-radius: 12px; }
.rktop a:hover { background: var(--hover); }
.rktop b { font-size: 56px; line-height: 56px; font-weight: 700; letter-spacing: -0.04em; }
.rktop .rk1 b { font-size: 84px; line-height: 84px; }
.rktop .nm { font-size: 20px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.rktop .rk1 .nm { font-size: 24px; }
.rktop .rc { font-size: 15px; color: var(--text-2); } .rktop .cl { font-size: 14px; color: var(--muted); }
.rkl .rkn { font-size: 18px; font-weight: 650; }
.rkl .row .name { font-size: 15px; }
@media (max-width: 760px) { .rktop { grid-template-columns: 1fr; } .rktop .rk1 { order: -1; } .rktop b, .rktop .rk1 b { font-size: 40px; line-height: 44px; } .rkl .row { grid-template-columns: 40px 22px minmax(0,1fr) 80px !important; } .rkl .row > :last-child { display: none; } .rkf { flex-wrap: wrap; } }

/* ---------- home: search first, the week ahead as seven days, the people you follow, results by who won ---------- */
.hhome { align-items: center; gap: 28px; flex-wrap: wrap; }
.hhome .home-title { margin: 0; }
.bigsearch { flex: 1; min-width: 280px; max-width: 640px; height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 18px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--text); background: var(--ground); font-size: 17px; color: var(--muted); text-align: left; }
.bigsearch svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 1.8; flex: none; }
.bigsearch span { flex: 1; } .bigsearch kbd { font-size: 12px; color: var(--muted); border: 1px solid var(--border-strong); border-radius: 6px; padding: 2px 6px; }
.bigsearch:hover { background: var(--hover); }
.body.hm { grid-template-rows: minmax(0, 0.9fr) minmax(0, 1fr); }
.week { display: grid !important; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; padding-top: 0 !important; }
.day { display: flex; flex-direction: column; gap: 6px; padding: 12px 10px; border-left: 1px solid var(--border); min-width: 0; overflow: hidden; }
.day:first-child { border-left: 0; padding-left: 0; }
.day .dh { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; color: var(--muted); font-size: 13px; }
.day .dh b { font-size: 26px; line-height: 28px; font-weight: 650; color: var(--text); }
.day.today .dh span { color: var(--text); font-weight: 600; }
.de { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; line-height: 18px; color: var(--text); padding: 6px 8px; border-radius: 8px; background: var(--hover); }
.de span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.de.sem { background: none; box-shadow: inset 0 0 0 1px var(--border); color: var(--text-2); }
.de:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
.dmore { font-size: 13px; color: var(--muted); padding-left: 8px; }
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; overflow-y: auto; }
.wc { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border); color: inherit; min-width: 0; }
.wc:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
.wc.new { box-shadow: inset 0 0 0 1.5px var(--text); }
.wtop { display: flex; align-items: center; gap: 8px; } .wn { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.wl1 { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wempty { margin: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.res .win { display: block; font-size: 15px; font-weight: 600; }
@media (max-width: 760px) { .week { grid-template-columns: 1fr; overflow-y: auto; } .day { border-left: 0; border-top: 1px solid var(--border); padding: 10px 0; } .day:empty { display: none; } .bigsearch { min-width: 0; font-size: 15px; height: 48px; } .bigsearch kbd { display: none; } }
.de small { display: block; font-size: 12px; color: var(--muted); }
.de span { -webkit-line-clamp: 3; }
@media (max-width: 760px) {
  .hhome .home-title { display: none; }
  .bigsearch { flex-basis: 100%; } .bigsearch span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .week .day { overflow: visible; flex: none; gap: 6px; }
  .week .day:not(:has(.de)):not(.today) { display: none; }
  .week .day .dh b { font-size: 20px; }
}

/* ---------- competitions list: a date block, the name, what the record holds ---------- */
.evr { min-height: 56px; }
.dblk { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.dblk b { font-size: 22px; font-weight: 650; } .dblk span { font-size: 12px; color: var(--muted); margin-top: 3px; text-transform: uppercase; letter-spacing: .04em; }
.evr .name { font-size: 15px; }
.evr .has { display: flex; gap: 6px; justify-content: flex-end; }
.evr .has i svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; color: var(--text-2); }
@media (min-width: 761px) { .dirpage .head { align-items: center; } .dirpage .head .actions { flex-wrap: nowrap; } #evq { width: 260px; } .dirpage .head .actions .dirf { display: contents; } }

/* ---------- directories: the main filters in sight, the rest under More ---------- */
details.more { display: inline-flex; position: relative; }
details.more summary { list-style: none; cursor: pointer; height: 36px; padding: 0 14px; border-radius: 10px; display: inline-flex; align-items: center; box-shadow: inset 0 0 0 1px var(--border-strong); font-size: 14px; }
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary { background: var(--hover); }
details.more[open] > :not(summary) { margin-left: 6px; }
details.more[open] { flex-wrap: wrap; gap: 6px; }
.akr .name { font-size: 15px; }
.danb { font-size: 12px; font-weight: 600; background: var(--solid); color: var(--on-solid); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }

/* ---------- seminars and gradings ---------- */
.prl .row.mhead { min-height: 0; padding: 14px 0 6px; border-bottom: 1px solid var(--text); font-size: 15px; font-weight: 650; }
.pkind { justify-self: end; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text-2); }
.pkind.grading { background: var(--solid); color: var(--on-solid); box-shadow: none; }
.prl .row.mhead > span { grid-column: 1 / -1; }
.rkf .seg.lg a { gap: 6px; }

/* phone: More opens the whole menu as a sheet above the tab bar */
@media (max-width: 760px) {
  .app.navopen .side { display: flex; position: fixed; left: 0; right: 0; top: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 60; overflow-y: auto; padding: 18px 16px; background: var(--panel); }
  .app.navopen .side .sidetop .fold { display: none; }
  .app.navopen .side .rooms a { height: 44px; font-size: 16px; }
}

/* ---------- shops as cards ---------- */
.dir.shop .thead { display: none; }
.dir.shop #dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); grid-auto-rows: 188px; gap: 12px; align-content: start; overflow: hidden; }
.scard { display: flex !important; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--border); border: 0 !important; min-height: 0; height: 100%; overflow: hidden; }
.scard:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
.scard.closed { opacity: .55; }
.slg { width: 100%; height: 64px; display: flex; align-items: center; margin-bottom: 8px; }
.slg img { max-height: 56px; max-width: 160px; object-fit: contain; } .slg img.dark { background: var(--solid); padding: 6px; border-radius: 8px; }
.slg b { width: 52px; height: 52px; border-radius: 12px; background: var(--hover); display: grid; place-items: center; font-size: 18px; color: var(--text-2); }
.sname { font-size: 15px; font-weight: 600; line-height: 20px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.splace { font-size: 13px; color: var(--text-2); } .skinds { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sbad { display: flex; gap: 4px; flex-wrap: wrap; margin-top: auto; } .sbad i { font-style: normal; font-size: 11.5px; padding: 1px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text-2); }
.dirpage .tabs [role=tablist], .tabs[role=tablist] { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.tabs[role=tablist] button { flex: none; }
@media (max-width: 760px) { .dir.shop #dl { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 8px; } }
.dir.shop #dl { grid-auto-rows: 172px; } .slg { height: 52px; margin-bottom: 6px; } .slg img { max-height: 48px; }
.splace { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.scpick { gap: 18px; align-items: center; padding-top: 48px !important; }
.scpick h2 { font-size: 28px; font-weight: 650; letter-spacing: -0.02em; margin: 0; }
.pickbtn { width: min(420px, 100%); height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--muted); font-size: 15px; }
.pickbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; } .pickbtn:hover { box-shadow: inset 0 0 0 1.5px var(--text); color: var(--text); }
.scpick .wgrid { width: 100%; max-width: 980px; margin-top: 18px; }

/* ---------- pools as league sheets ---------- */
.leagues { display: flex; flex-wrap: wrap; gap: 18px 22px; align-content: flex-start; padding-bottom: 12px; }
.league { border-collapse: collapse; font-size: 14px; }
.league caption { text-align: left; font-weight: 650; font-size: 14px; padding: 0 0 6px; caption-side: top; }
.league th, .league td { border: 1px solid var(--border-strong); height: 44px; }
.league thead th { font-size: 12px; color: var(--muted); font-weight: 600; height: 26px; min-width: 44px; }
.league tbody th { text-align: left; font-weight: 500; padding: 0 12px 0 6px; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.league tbody th a { color: inherit; } .league tbody th a:hover { text-decoration: underline; }
.league .li { display: inline-block; width: 18px; color: var(--muted); font-size: 12px; }
.league td { width: 44px; text-align: center; padding: 0; }
.league td a { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: inherit; }
.league td a:hover { background: var(--hover); }
.league td b { font-size: 17px; line-height: 18px; font-weight: 500; color: var(--muted); } .league td b.w { color: var(--text); font-weight: 600; }
.league td small { font: 11px/13px "Noto Sans JP", var(--sans); color: var(--text-2); }
.league td.self { background: repeating-linear-gradient(135deg, var(--hover) 0 4px, transparent 4px 8px); }
.league td.t { font-weight: 650; font-size: 15px; }
.leagues .loose { flex-basis: 100%; min-height: 300px; display: flex; flex-direction: column; }
.seg.lg, .card h3 .seg { border-right: 0; margin-right: 0; padding-right: 3px; }
@media (min-width: 761px) { .mappanel { top: auto !important; bottom: 16px; } }

.rkch .rkline { flex: 1; min-height: 0; width: 100%; color: var(--text); }
.rkline circle { fill: var(--text); } .rkline text { font: 600 15px var(--sans); fill: var(--text); } .rkline text.yr { font-size: 13px; font-weight: 400; fill: var(--muted); }

/* ---------- the drawn kendoka (landing/fig-strike.mjs) inside the app: the hit lit in the tasuki red ---------- */
.mqw { --hit: #c8373b; padding: 0 !important; }
.mqw .mq { display: block; height: 100%; width: auto; max-width: 100%; margin: 0 auto; overflow: visible; }
.mqw .mq-pose { opacity: 0; transition: opacity .3s ease; } .mqw .mq-pose.on { opacity: 1; }
.mqw .mq-lit { opacity: .7; filter: url(#mq-glow); } .mqw .mq-lit.soft { opacity: .3; }
.mqw .mq-zone { fill: var(--hit); }
.mqw .mq-label { opacity: 0; transition: opacity .25s; } .mqw .mq-label.on { opacity: 1; }
.mqw .mq-pct { font-size: 88px; font-weight: 650; letter-spacing: -.03em; fill: var(--hit); font-family: var(--sans); }
.mqw .mq-zn { font-size: 44px; fill: var(--text-2); font-family: var(--sans); }
.mqw .mq-lead { stroke: var(--hit); stroke-width: 2.2; fill: none; vector-effect: non-scaling-stroke; } .mqw .mq-pin { fill: var(--hit); }
.dtabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%; flex: none; }
.dtabs button { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--border); }
.dtabs button b { font-size: 22px; line-height: 26px; font-weight: 650; } .dtabs button span { font-size: 13px; color: var(--muted); }
.dtabs button.lit { box-shadow: inset 0 0 0 1.5px var(--text); }
.dtabs button[aria-pressed="true"] { background: var(--solid); color: var(--on-solid); box-shadow: none; } .dtabs button[aria-pressed="true"] span { color: var(--on-solid); opacity: .75; }
.dtabs button.zero { color: var(--faint); }
@media (max-width: 760px) {
  .khero .dfwrap.mqw { height: 250px; }
  .counter.won b { font-size: 22px; white-space: nowrap; }
  .dtabs button b { font-size: 19px; line-height: 22px; }
}

/* the drawn figure wherever a figure was: caption, the drawing, four counts */
.mqf { margin: 0; min-height: 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mqf figcaption { font-size: 13px; color: var(--muted); } .mqf figcaption b { color: var(--text); font-weight: 600; margin-left: 2px; }
.mqf .mqw { flex: 1; min-height: 120px; --hit: #c8373b; }
.mqf .mqw .mq { height: 100%; width: 100%; }
.mqf dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; text-align: center; }
.mqf dl div { display: flex; flex-direction: column; } .mqf dt { font-size: 12.5px; color: var(--muted); order: 2; } .mqf dd { margin: 0; font-size: 18px; font-weight: 650; }
.mqf dl .zero dd, .mqf dl .zero dt { color: var(--faint); }
.mqf .mqw .mq-label:not(.on) { display: none; }

/* ---------- rankings: list with movement, a preview of the chosen kendoka ---------- */
.body.rkp { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
.rkr { width: 100%; text-align: left; font: inherit; color: inherit; background: none; cursor: pointer; }
.rkr:hover { background: var(--hover); } .rkr.on { background: var(--selected); }
.rkr .rkn { font-size: 18px; font-weight: 650; } .rkr .name { font-size: 15px; }
.rkmv { font-size: 12.5px; font-weight: 600; color: var(--faint); } .rkmv.up { color: var(--text); } .rkmv.dn { color: var(--muted); } .rkmv.new { font-weight: 500; font-style: italic; }
.rkprev { gap: 12px; }
.pvh { display: flex; gap: 12px; align-items: center; } .pvf { font-size: 30px; } .pvn { display: block; font-size: 22px; font-weight: 650; color: var(--text); letter-spacing: -0.01em; } .pvn:hover { text-decoration: underline; }
.pvh .sub { display: block; font-size: 14px; color: var(--muted); }
.pvfig { flex: 1; min-height: 180px; }
.pvform { display: flex; gap: 4px; } .pvform .mk { width: 22px; height: 22px; font-size: 15px; }
.pvbest { margin: 0; font-size: 14px; color: var(--text-2); } .pvbest b { color: var(--text); }
@media (max-width: 760px) { .rkprev { display: none !important; } }
.pvfig .mqw .mq, .mqf .mqw .mq { overflow: visible; width: 88%; }

/* ---------- home: the latest final drawn, this week as an agenda, the people you follow ---------- */
.body.hm2 { grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr); padding-top: 22px; }
.feat { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 0 28px; align-items: center; }
.fstage { position: relative; height: 100%; min-height: 220px; }
.fstage img { position: absolute; bottom: 14px; height: 86%; width: auto; object-fit: contain; }
.fstage .aka { left: 0; } .fstage .shiro { right: 0; }
.ffloor { position: absolute; left: 0; right: 0; bottom: 12px; height: 2px; background: var(--text); opacity: .85; }
.ftext { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; min-width: 0; }
.ftext .kick { margin: 0; font-size: 14px; color: var(--muted); } .ftext .kick a { color: var(--text-2); }
.fpair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: end; width: 100%; }
.fside { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .fside.white { text-align: right; }
.fn { font-size: 24px; line-height: 28px; font-weight: 650; letter-spacing: -0.02em; color: var(--muted); }
.fside.won .fn { color: var(--text); } .fn a { color: inherit; } .fn a:hover { text-decoration: underline; }
.fc { font-size: 13px; color: var(--muted); } .fvs { color: var(--faint); font-size: 18px; padding-bottom: 20px; }
.fsheet { width: 100%; color: inherit; } .fsheet:hover .ssheet { box-shadow: 0 0 0 1px var(--text); }
.agenda .agl { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.agd { font-size: 13px; font-weight: 650; color: var(--text); padding: 14px 0 4px; border-bottom: 1px solid var(--text); position: sticky; top: 0; background: var(--ground); }
.agd:first-child { padding-top: 0; }
.age { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--border); color: var(--text); font-size: 15px; }
.age span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.age.sem { color: var(--text-2); } .age i { font-style: normal; font-size: 12px; color: var(--muted); }
.age:hover span { text-decoration: underline; }
.agenda .more { margin-top: 10px; font-size: 14px; color: var(--muted); }
.follow .fl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; overflow-y: auto; }
.flr { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 2px 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); color: inherit; }
.flr .fln { font-size: 15px; font-weight: 600; } .flr .fll { grid-column: 2 / -1; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flr:hover .fln { text-decoration: underline; }
@media (max-width: 760px) { .feat { grid-template-columns: 1fr; } .fstage { height: 200px; } .follow .fl { grid-template-columns: 1fr; } .fn { font-size: 20px; } }

/* kendoka: best results as cards in one scrolling row */
.bests { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; flex: 1; align-items: stretch; scrollbar-width: thin; }
.best { flex: 0 0 220px; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border); color: inherit; }
.best:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
.best b { font-size: 26px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); } .best.r2 b, .best.r3 b { color: var(--muted); }
.best .bev { font-size: 14px; line-height: 19px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .best .byr { font-size: 13px; color: var(--muted); margin-top: auto; }

/* ---------- type (audit/DESIGN_SYSTEM.md): Space Grotesk for names in headers and large numbers, Plex for reading ---------- */
.head h1, .pvn, .fn, .rktop .nm, .wn, .sname { font-family: var(--display); letter-spacing: -0.02em; }
.head h1 { font-weight: 700; }
.counter b, .kpi b, .sogrid b, .dtabs button b, .best b, .dblk b, .day .dh b, .rktop b, .rkn, .rk, .champs2 .yr, .nteam .yr, .plc, .most b, .yr, .bscore b, .tmlink b, .podsteps .blk b, .league td.t, .rkl .rkn, .mqf dd, .pvf { font-family: var(--display); }
.head h1 .native { font-family: "IBM Plex Sans JP", var(--kanji); }

/* ---------- team order: the line-up, five places facing the opponent's five ---------- */
.tbl { gap: 16px; }
.tbpick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .tbpick .lbl { font-weight: 600; margin-right: 4px; }
.lineup5 { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.slot { display: grid; grid-template-rows: 1fr auto 1fr; gap: 10px; min-width: 0; }
.tbc { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 14px; border-radius: 12px; min-width: 0; position: relative; }
.tbc .name { font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; } .tbc .rec { font-size: 13px; color: var(--muted); }
.tbc.opp { background: var(--hover); } .tbc.opp .name { color: var(--text-2); font-weight: 500; } .tbc.none { color: var(--faint); align-items: center; }
.tbc.mine { box-shadow: inset 0 0 0 1.5px var(--text); }
.tbc.add { align-items: center; color: var(--muted); font-size: 15px; box-shadow: inset 0 0 0 1.5px var(--border-strong); border: 0; background: none; border-radius: 12px; cursor: pointer; }
.tbc.add:hover { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.tbx { display: flex; gap: 4px; align-items: center; margin-top: 6px; } .tbx .mv { display: flex; gap: 2px; } .tbx button { width: 28px; height: 28px; border-radius: 8px; color: var(--muted); } .tbx button:hover:not(:disabled) { background: var(--hover); color: var(--text); } .tbx button:disabled { opacity: .3; }
.tbx .x { margin-left: auto; }
.slot .tpos { display: flex; align-items: center; justify-content: center; gap: 8px; }
.slot .tpos b { font: 600 26px/28px var(--kanji); } .slot .tpos span { font-size: 13px; color: var(--muted); }
.chance { font-style: normal; font-size: 22px; width: 32px; height: 32px; display: grid; place-items: center; }
.tbfoot { display: flex; align-items: center; gap: 14px; flex: none; } .tbfoot .exp b { font-family: var(--display); font-size: 28px; }
@media (max-width: 760px) { .lineup5 { grid-template-columns: 1fr; } .slot { grid-template-columns: 1fr auto 1fr; grid-template-rows: none; align-items: stretch; } .slot .tpos { flex-direction: column; gap: 2px; } .tbc { padding: 10px; } .tbc .name { font-size: 15px; } }
.lineup5 .slot.tbrow { display: grid; grid-template-columns: none; grid-template-rows: 1fr auto 1fr; padding: 0; border: 0; min-height: 0; align-items: stretch; }
.lineup5.tbo { display: grid; flex-direction: initial; }
@media (max-width: 760px) { .lineup5 .slot.tbrow { grid-template-columns: 1fr auto 1fr; grid-template-rows: none; } }
.lineup5 .slot.tbrow, .slot { grid-template-rows: auto auto auto; align-content: center; }
.lineup5 { align-content: center; } .tbc { min-height: 116px; }

/* ---------- lessons as a video library: large thumbnails, the title under ---------- */
.dir.tgrid .thead { display: none; }
.dir.tgrid #dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); grid-auto-rows: 236px; gap: 16px 14px; align-content: start; overflow: hidden; }
.dir.tgrid .row.tut { display: flex !important; flex-direction: column; gap: 8px; border: 0; padding: 0; min-height: 0; height: 100%; }
.dir.tgrid .tut .thumb { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 10px; overflow: hidden; flex: none; }
.dir.tgrid .tut .thumb img { width: 100%; height: 100%; object-fit: cover; }
.dir.tgrid .tut .name { font-size: 14.5px; line-height: 19px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dir.tgrid .tut .sub { font-size: 12.5px; -webkit-line-clamp: 1; }
.dir.tgrid .tut:hover .name { text-decoration: underline; }
@media (max-width: 760px) { .dir.tgrid #dl { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; gap: 10px; } }

/* club record book: a line a year */
.ledger .lgr { grid-template-columns: 64px 90px 110px 80px minmax(0,1.4fr) minmax(0,1fr); min-height: 46px; }
.ledger .yr { font-size: 18px; } .ledger .num.r { font-size: 15px; }
.ledger .chs { display: flex; flex-wrap: wrap; gap: 4px 12px; } .ledger .chs a { color: var(--text); font-weight: 600; } .ledger .chs a:hover { text-decoration: underline; }
.ledger .grs { color: var(--text-2); font-size: 14px; }
@media (max-width: 760px) { .ledger .lgr { grid-template-columns: 52px 60px 80px minmax(0,1fr) !important; } .ledger .lgr > :nth-child(4), .ledger .lgr > :nth-child(6) { display: none; } }

/* countries as tiles */
.ctiles [data-pager="cn"] { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); grid-auto-rows: 132px; gap: 12px; align-content: start; overflow: hidden; }
.ctile { display: flex !important; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--border); border: 0; height: 100%; min-height: 0; }
.ctile:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
.cfl { font-size: 30px; line-height: 32px; } .cnm { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.cst { font-size: 13px; color: var(--muted); } .cst b { color: var(--text-2); font-weight: 600; }
.cld { display: flex; flex-direction: column; font-size: 12.5px; color: var(--text-2); margin-top: auto; } .cld span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .ctiles [data-pager="cn"] { grid-template-columns: 1fr 1fr; grid-auto-rows: 124px; gap: 8px; } }
.ctile { align-items: flex-start; text-align: left; } .ctiles [data-pager="cn"] { grid-auto-rows: 150px; } .cld { align-items: flex-start; }

.pal input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.pal .hint { display: flex; justify-content: space-between; gap: 12px; align-items: center; } .pal .seeall { color: var(--text); font-weight: 600; } .pal .seeall:hover { text-decoration: underline; }
.empty .emptyart { height: min(120px, 22vh); width: auto; margin-bottom: 6px; opacity: .92; }

@media (max-width: 760px) {
  .lineup5 .slot.tbrow, .lineup5 .slot { grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); grid-template-rows: none; align-items: stretch; }
  .lineup5 { gap: 8px; } .tbc { min-height: 0; padding: 10px; } .tbc .name { font-size: 15px; }
  .ctiles [data-pager="cn"] { grid-auto-rows: 158px; } .cst { font-size: 12.5px; }
}
@media (max-width: 760px) { .lineup5 { flex: none; grid-auto-rows: auto; align-content: start; } .tbl { overflow-y: auto; } .tbx button { width: 26px; height: 26px; } .rkl .row, .rklist .rkr { grid-template-columns: 34px 40px 22px minmax(0,1fr) 72px !important; } }
/* the kendoka's Matches filters sit on one line: the competition list takes what is left, never the opponent box */
@media (min-width: 761px) { .dirbar.mf { flex-wrap: nowrap; } .dirbar.mf .inp { flex: 0 1 200px; min-width: 120px; } .dirbar.mf #mfe { flex: 1 1 0; min-width: 0; } .dirbar.mf .sel { flex: none; } }
/* "me": That's me / My dojo / My country (spec 2026-10-14) */
.my-chip { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 14px; background: none; font: inherit; font-size: 13px; color: var(--text); cursor: pointer; white-space: nowrap; }
.my-chip.on { background: var(--text); color: var(--ground); border-color: var(--text); cursor: default; }
.my-chip.on button { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; opacity: .75; }
/* ---------- home from "me" (spec 2026-10-14) ---------- */
.my-card { position: relative; }
.my-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 16px; background: none; color: var(--faint); font-size: 20px; line-height: 1; cursor: pointer; z-index: 1; }
.my-x:hover { color: var(--text); background: var(--surface-2, #f2f2f0); }
.my-hello { display: grid !important; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 0 40px; align-items: center; }
.my-rei { justify-self: center; max-height: 300px; max-width: 100%; object-fit: contain; }
.my-hi { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.my-hi h1 { margin: 0; font-family: var(--display); font-size: 40px; line-height: 44px; letter-spacing: -0.02em; }
.my-find { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 18px; border: 1.5px solid var(--text); border-radius: 28px; background: var(--ground); color: var(--muted); font: inherit; font-size: 17px; cursor: text; text-align: left; }
.my-find svg { width: 20px; height: 20px; color: var(--text); }
.my-find:hover { box-shadow: 0 0 0 1px var(--text); }
.my-or { display: flex; gap: 10px; flex-wrap: wrap; }
.my-or .btn, .my-or .sel { height: 44px; font-size: 15px; }
.my-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.my-day { font-size: 14px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.my-next .agl, .myhome .my-card .agl { flex: 1; min-height: 0; overflow-y: auto; }
.my-res { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); color: inherit; }
.my-res .num { font-family: var(--display); font-size: 17px; } .my-res .name { font-weight: 600; } .my-res .sub { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-res:hover .name { text-decoration: underline; }
.my-cty { display: flex !important; flex-direction: row !important; align-items: center; gap: 24px; } .my-cty .flag { font-size: 64px; } .my-cty h2 { margin: 0 0 12px; font-family: var(--display); font-size: 36px; }
.my-unhide { grid-column: 1 / -1; justify-self: start; margin: 0; font-size: 14px; color: var(--muted); }
.my-unhide button { background: none; border: 0; padding: 0 0 0 8px; font: inherit; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 760px) { .my-hello { grid-template-columns: 1fr; } .my-rei { max-height: 200px; } .my-hi h1 { font-size: 32px; line-height: 36px; } }
.my-find svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; flex: none; }
.my-ev { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); color: inherit; }
.my-ev .dblk { display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.my-ev .dblk .num { font-family: var(--display); font-size: 20px; } .my-ev .dblk span { font-size: 13px; color: var(--muted); text-transform: none; }
.my-ev .name { display: block; font-size: 15px; } .my-ev .sub { display: block; font-size: 13px; color: var(--muted); }
.my-ev:hover .name { text-decoration: underline; }
.myhome .follow .fl { grid-template-columns: 1fr; }
.my-cty { align-items: flex-start !important; overflow-y: auto; } .my-cty .flag { font-size: 72px; line-height: 1; }
.my-ctyb { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; } .my-ctyb h3 { margin: 14px 0 2px; }
.my-ctyb .my-res { grid-template-columns: 64px minmax(0, 1fr); } .my-ctyb .my-res .num { font-size: 14px; color: var(--muted); font-family: var(--sans); }
.my-ctyb .my-acts { margin-top: 14px; }
.my-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 28px; }
/* ---------- kendoka as a diary (spec 2026-10-14) ---------- */
.my-rec { margin: 6px 0 0; font-size: 15px; color: var(--text-2); } .my-rec .lk { margin-left: 10px; font-size: 13px; color: var(--muted); }
.my-mk { font-style: normal; font-family: var(--kanji); font-size: 20px; width: 36px; height: 36px; flex: none; display: inline-grid; place-items: center; border: 1.5px solid var(--text); border-radius: 50%; color: var(--text); }
.my-moms { gap: 2px; }
.my-mom { display: flex; gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); color: inherit; min-width: 0; }
.my-mom > span { min-width: 0; } .my-mom .name { display: block; font-weight: 600; font-size: 15px; }
.my-mom .sub { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.my-mom:hover .name { text-decoration: underline; }
.my-lats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; }
.my-lat { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; border-top: 2px solid var(--text); color: inherit; min-width: 0; }
.my-lat .name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; }
.my-lat .sub { display: block; font-size: 13px; color: var(--muted); }
.my-lat .seq { display: flex; flex-wrap: wrap; gap: 2px; } .my-lat .seq .mk { width: 22px; height: 22px; font-size: 16px; }
.my-lat:hover .name { text-decoration: underline; }
.my-yrs { flex: 1; min-height: 0; overflow-y: auto; }
.my-yr { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.my-yr > .num { font-family: var(--display); font-size: 24px; line-height: 28px; }
.my-yrd { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-weight: 600; } .my-yrd .my-mk { width: 30px; height: 30px; font-size: 16px; }
.my-yre { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 4px 0; color: inherit; align-items: baseline; }
.my-yre .sub { font-size: 13px; color: var(--muted); white-space: nowrap; } .my-yre:hover .name { text-decoration: underline; }
.my-dan { width: 100%; max-height: 260px; } .my-dan path { fill: none; stroke: var(--text); stroke-width: 1.5; }
.my-dan .dtop { fill: var(--text); } .my-dan text { font-family: var(--display); font-size: 15px; fill: var(--text); } .my-dan text.on { fill: var(--ground); }
.my-dan text.y { font-family: var(--sans); font-size: 13px; fill: var(--muted); }
@media (max-width: 760px) { .my-lats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .my-yr { grid-template-columns: 56px minmax(0, 1fr); } .my-yre { grid-template-columns: 1fr; gap: 0; } }
.my-act .my-res .num { font-size: 20px; }
.my-rec a:not(.lk) { color: inherit; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.my-next .more { margin-top: 12px; }
/* countries by continent (spec 2026-10-14) */
.my-cont { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; flex: none; }
.my-cont a { height: 36px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; border-radius: 18px; border: 1px solid var(--border-strong); color: var(--text); font-size: 15px; }
.my-cont a .num { color: var(--muted); font-size: 13px; }
.my-cont a[aria-current] { background: var(--text); color: var(--ground); border-color: var(--text); } .my-cont a[aria-current] .num { color: inherit; opacity: .7; }
.my-cnx .cfl { font-size: 26px; } .my-cnx .name { display: block; font-weight: 600; font-size: 16px; } .my-cnx .sub { display: block; font-size: 13px; color: var(--muted); }
.my-cnn { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; align-items: baseline; font-size: 14px; color: var(--text-2); min-width: 0; }
.my-cnn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .my-cnn .num { font-family: var(--display); color: var(--text); }
@media (max-width: 760px) { .my-cont { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .my-cont a { flex: none; } .my-cnx { grid-template-columns: 36px minmax(0, 1fr) !important; } .my-cnn { grid-column: 2; grid-template-columns: 56px minmax(0, 1fr); } }
.my-ppr { align-items: center; color: inherit; } .my-ppr .score { font-weight: 650; } .my-ppr:hover .name { text-decoration: underline; }
@media (max-width: 760px) {
  .my-pp .my-ppr { grid-template-columns: 22px minmax(0, 1fr) 40px 72px !important; }
  .my-pp .my-ppr > .sub { display: none; }
  .my-pp .my-ppr > .my-me { display: none; }
}
/* Compare: the two of them facing, each lit where they score (spec 2026-10-14) */
.my-face { display: grid !important; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0 24px; }
.my-fside { min-width: 0; display: flex; justify-content: center; } .my-fside > figure { margin: 0; width: 100%; max-width: 360px; }
.my-fside.aka { border-top: 3px solid var(--aka, #c8373b); } .my-fside.shiro { border-top: 3px solid var(--text); }
.my-fvs { font-family: var(--kanji); font-size: 40px; color: var(--muted); }
.my-plan .more { margin-top: 10px; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .my-face { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .my-fvs { display: none; } }
.tally .seq { display: flex; gap: 3px; flex: 1; justify-content: center; } .tally .seq .mk { width: 24px; height: 24px; font-size: 18px; }
.my-vs { grid-template-columns: 200px minmax(0, 1fr) !important; } .my-vs .my-rei { max-height: 200px; }
.my-vs .my-find { max-width: 560px; }
@media (max-width: 760px) { .my-vs { grid-template-columns: 1fr !important; } .my-vs .my-rei { display: none; } }
.my-placed { display: flex !important; flex-direction: row !important; align-items: center; gap: 24px; } .my-placed .my-mk { width: 72px; height: 72px; font-size: 40px; border-width: 2px; }
.my-placed h2 { margin: 4px 0 6px; font-family: var(--display); font-size: 28px; line-height: 32px; } .my-placed h2 a { color: inherit; } .my-placed .kick { margin: 0; color: var(--muted); font-size: 14px; }
/* year cards in kendo marks, not stat tiles (2026-10-16) */
.yk { font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--text-2); font-weight: 600; }
.ymarks { margin: 8px 0; font-family: var(--kanji); font-size: 56px; line-height: 1.15; letter-spacing: .08em; color: var(--text); word-break: break-all; max-width: 760px; }
.yfig { width: min(420px, 100%); } .yfig figure { margin: 0; }
.ydan { display: flex; align-items: center; gap: 22px; margin: 10px 0; font-family: var(--display); font-size: 64px; line-height: 1; }
.ydan .my-mk { width: 96px; height: 96px; font-size: 52px; border-width: 2px; }
@media (max-width: 760px) { .ymarks { font-size: 40px; } .ydan { font-size: 44px; } .ydan .my-mk { width: 64px; height: 64px; font-size: 34px; } }
.yfig figcaption { display: none; }
/* evaluation marks ◎ ○ △ × (the way a sensei marks a sheet), not 1-to-20 bars */
.my-trait { display: flex; align-items: center; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.my-evm { font-style: normal; font-family: var(--kanji); font-size: 22px; width: 28px; text-align: center; color: var(--text); }
/* ---------- phone, 2026-10-16 ---------- */
@media (max-width: 760px) {
  /* Home is a feed you scroll down, each card as tall as what it holds (a deck of full-height cards left one-line cards empty) */
  .body.myhome, .body.feed { display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; scroll-snap-type: none; gap: 28px; }
  .body.myhome > .card, .body.feed > .card { flex: none; min-height: 0; height: auto; }
  .body.myhome > .card .agl { overflow: visible; }
  .body.myhome ~ .dots, .body.feed ~ .dots { display: none; }
  .body.myhome .fstage { height: 220px; }
  /* the Kendoka list: flag, name and club, record; grade and medals live on the person's page */
  .dir .row.akr, .dir:has(.akr) .row.thead { grid-template-columns: 24px minmax(0, 1fr) max-content !important; }  /* no rank number first any more */
  .dir .row.akr > :nth-child(5), .dir:has(.akr) .row.thead > :nth-child(5) { display: none; }
}
.facts > .my-chip::before, .facts > .my-chip + *::before { display: none; } .facts > .my-chip { margin: 0 6px; }
@media (max-width: 760px) {
  /* shop cards keep to their 170px: one row of marks, a smaller logo, nothing under 13px */
  .dir.shop .slg { height: 40px; margin-bottom: 4px; } .dir.shop .slg img { max-height: 36px; max-width: 120px; }
  .dir.shop .splace { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .dir.shop .skinds { font-size: 13px; }
  .dir.shop .sbad { flex-wrap: nowrap; overflow: hidden; max-width: 100%; } .dir.shop .sbad i { font-size: 13px; white-space: nowrap; }
}
.my-champs { grid-template-columns: 64px repeat(3, minmax(0, 1fr)); align-items: baseline; }
@media (max-width: 760px) { .my-champs { grid-template-columns: 48px repeat(3, minmax(0, 1fr)) !important; font-size: 13px; } .my-champs .name { white-space: normal; } }
@media (max-width: 760px) { .body.feed .cmap .mini { height: 240px; } .body.feed .cmap { gap: 8px; } }
/* the search that finds nobody (FUN.md §3): what to do next, instead of a blank box */
.pal .res .pal-none { padding: 14px 12px 10px; }
.pal .res .pal-none p { margin: 0 0 12px; font-size: var(--step-row, 15px); line-height: 1.45; color: var(--muted); }
.pal .res .pal-none p b { color: var(--text); font-weight: 600; }
.pal .res .pal-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.pal .res .pal-acts a.btn { display: inline-flex; grid-template-columns: none; padding: 0 14px; border-radius: var(--radius); }
/* Following, empty: suggestions from the dojo (name, Watch) */
.flr.sug { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto; }
.flr.sug .btn.sm { margin-top: 0; height: 36px; align-self: center; }
/* Home: the next grade (FUN.md §6) */
.my-grade .my-gd { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 6px; }
.my-grade .my-gd b { font: 600 var(--step-title, 24px)/1.2 var(--display); letter-spacing: -0.02em; }
.my-grade .my-gd span { font-size: var(--step-row, 15px); }
.my-grade .smeta { margin: 0 0 10px; }
/* profile: roles the sources name */
.sec.roles .role { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 8px; font-size: var(--step-secondary, 14px); line-height: 1.4; }
.sec.roles .role .num { flex: none; }
