/* Layout: a scoreboard strip, the pitch as the one hero, and a single reading rail beside it. */
:root {
  /* colour: green-biased neutrals, the two clubs, nothing else. Emphasis is ink, not a hue. */
  --paper: #f2f4f0; --surface: #fbfcfa; --ink: #111517; --ink-2: #454e52; --ink-3: #79838a; --hair: #dadfd8; --fill: #e4e8e1;
  --home: #dc8418; --away: #3a8ed8;
  --grass: #2f7a57; --grass-2: #2a7050; --apron: #235f44; --chalk: rgba(255, 255, 255, .64);
  --good: #0a8f0a; --crit: #c93535; --warn: #b07500;
  --live: #0c7a60; --live-bg: rgba(12, 122, 96, .09); --live-bd: rgba(12, 122, 96, .28);
  /* type: DIN for figures and names (the face of shirt numbers and scoreboards), system text beside it */
  --f-display: "DIN Alternate", "Bahnschrift", "Roboto Condensed", "Arial Narrow", -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --f-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Noto Sans SC", "Segoe UI", "Microsoft YaHei", sans-serif;
  --t-xs: 12px; --t-sm: 13px; --t-md: 14px; --t-lg: 16px; --t-xl: 24px; --t-2xl: 30px;
  --gap: 16px; --r: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0c0f10; --surface: #121617; --ink: #eef2ee; --ink-2: #b4bdb8; --ink-3: #7b8782; --hair: #252c2b; --fill: #222a29;
    --home: #f0941f; --away: #58a6e8; --grass: #216244; --grass-2: #1d593d; --apron: #17462f;
    --good: #35c235; --crit: #ef6f6f; --warn: #f2b02a;
    --live: #36c49e; --live-bg: rgba(54, 196, 158, .13); --live-bd: rgba(54, 196, 158, .34);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0c0f10; --surface: #121617; --ink: #eef2ee; --ink-2: #b4bdb8; --ink-3: #7b8782; --hair: #252c2b; --fill: #222a29;
  --home: #f0941f; --away: #58a6e8; --grass: #216244; --grass-2: #1d593d; --apron: #17462f;
  --good: #35c235; --crit: #ef6f6f; --warn: #f2b02a;
  --live: #36c49e; --live-bg: rgba(54, 196, 158, .13); --live-bd: rgba(54, 196, 158, .34);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); overflow: hidden; font: 400 var(--t-md)/1.45 var(--f-text); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
button, select { font: inherit; color: inherit; }
h2, h3, p, ol, ul { margin: 0; padding: 0; font-weight: inherit; }
ol, ul { list-style: none; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
#status { padding: 48px 16px; text-align: center; color: var(--ink-2); }
select { height: 30px; padding: 0 6px; border: 1px solid var(--hair); border-radius: 6px; background: var(--surface); font-size: var(--t-sm); }
.ic { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 7px; border: 1px solid var(--hair); border-radius: 6px; background: var(--surface); cursor: pointer; font-size: var(--t-sm); line-height: 1; }
.ic:hover { border-color: var(--ink-3); }
.ic:disabled { opacity: .3; cursor: default; }
.ic.primary { min-width: 46px; background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ic.sm { min-width: 26px; height: 26px; }
.ic[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
/* A value's working, as rows: a surface card that hangs off the value, lifts in, and stays when clicked. */
#tip { position: fixed; z-index: 60; min-width: 108px; max-width: min(380px, calc(100vw - 16px)); padding: 9px 12px 10px; border-radius: 9px; pointer-events: none; background: var(--surface); color: var(--ink-2); border: 1px solid var(--hair);
  box-shadow: 0 8px 26px rgba(6, 12, 10, .2), 0 1px 3px rgba(6, 12, 10, .1); font-size: var(--t-xs); line-height: 1.5; font-variant-numeric: tabular-nums; animation: tip-in .13s cubic-bezier(.2, .7, .3, 1); transform-origin: 14px 0; }
#tip[data-side="above"] { transform-origin: 14px 100%; }
#tip.pin { pointer-events: auto; border-color: var(--ink-3); }
#tip h6 { margin: 0 0 5px; padding-bottom: 5px; border-bottom: 1px solid var(--hair); font: 650 11.5px/1.3 var(--f-text); letter-spacing: .02em; color: var(--ink); }
#tip p { overflow-wrap: anywhere; } #tip p + p { margin-top: 2px; } #tip p + h6 { margin-top: 8px; }
#tip p.row { display: flex; justify-content: space-between; gap: 16px; } #tip p.row span:first-child { flex: none; color: var(--ink-3); } #tip p.row span:last-child { color: var(--ink); text-align: right; }
#tip p.row.gap span:first-child { color: var(--warn); } #tip p.row.gap span:last-child { color: var(--ink-2); }
#tip i { font-style: normal; color: var(--ink-3); } #tip b { font-weight: 650; color: var(--ink); } #tip u { text-decoration: none; font-weight: 700; } #tip u.ok { color: var(--good); } #tip u.no { color: var(--crit); }
@keyframes tip-in { from { opacity: .5; transform: translateY(4px) scale(.98); } }   /* starts readable: a throttled page that never runs the animation still shows the card */
/* a 0…max strip in a tip card: the part a random draw can land in is filled, the part the time score cuts off is hatched,
   the draw and his value are ticks labelled above (his) and below (the draw) */
#tip .tbar { display: flex; align-items: center; gap: 6px; margin: 2px 0 6px; font: 500 10.5px/1 var(--f-display); color: var(--ink-3); }
#tip .tb-t { position: relative; flex: 1; height: 6px; margin: 15px 0; border-radius: 3px; background: repeating-linear-gradient(135deg, var(--hair) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--hair); }
#tip .tb-t i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--ink-3); opacity: .38; }
#tip .tb-t b { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); }
#tip .tb-t b.lo { background: var(--ink-2); }
#tip .tb-t b em { position: absolute; left: -1px; white-space: nowrap; font: 600 10.5px/1 var(--f-text); font-style: normal; color: var(--ink); }
#tip .tb-t b.hi em { bottom: calc(100% + 3px); } #tip .tb-t b.lo em { top: calc(100% + 3px); color: var(--ink-2); }
#tip .tb-t b.r em { left: auto; right: -1px; }
/* what the card's words mean: shown when a card is clicked; a hover only says that a click shows it */
#tip.pin { max-height: calc(100vh - 16px); overflow-y: auto; overscroll-behavior: contain; }
#tip p.more { margin-top: 7px; font-size: 10.5px; color: var(--ink-3); }
#tip p.tsub { margin-top: 7px; padding-top: 5px; border-top: 1px dashed var(--hair); font-weight: 650; color: var(--ink); }
#tip h6 + p.tsub { margin-top: 2px; padding-top: 0; border-top: 0; }
#tip details.tip-math { margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--hair); }
#tip details.tip-math > summary { cursor: pointer; font-size: 10.5px; font-weight: 600; color: var(--ink-2); user-select: none; list-style: none; }
#tip details.tip-math > summary::-webkit-details-marker { display: none; }
#tip details.tip-math > summary::before { content: "▸ "; color: var(--ink-3); }
#tip details.tip-math[open] > summary { margin-bottom: 4px; color: var(--ink); }
#tip details.tip-math[open] > summary::before { content: "▾ "; }
#tip .gloss { margin-top: 9px; padding-top: 7px; border-top: 1px solid var(--hair); }
#tip .gloss h6 { border-bottom: 0; padding-bottom: 0; margin-bottom: 4px; color: var(--ink-3); font-weight: 600; }
#tip p.gl { display: grid; grid-template-columns: minmax(4.5em, max-content) 1fr; gap: 10px; line-height: 1.4; }
#tip p.gl + p.gl { margin-top: 5px; }
#tip p.gl b { font-weight: 600; color: var(--ink); } #tip p.gl span { color: var(--ink-2); }
.hv.term { text-decoration-color: var(--hair); cursor: help; } .hv.term:hover, .hv.term.tip-on { text-decoration-color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { #tip { animation: none; } }
[data-tip].tip-on { outline: none; }

/* ---------- shell ---------- */
.app { height: 100%; max-width: 1760px; margin: 0 auto; padding-block: 12px 16px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); gap: 10px; }
.board { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; }
.fixture { display: flex; align-items: center; gap: 10px; font: 700 20px/1 var(--f-display); letter-spacing: .01em; white-space: nowrap; }
.fixture b { font-size: 22px; padding: 4px 9px 3px; border-radius: 4px; background: var(--ink); color: var(--paper); }
.tm { display: inline-flex; align-items: center; gap: 7px; }
.tm::before { content: ""; width: 10px; height: 10px; background: var(--home); border-radius: 2px; }
.tm.away { flex-direction: row-reverse; } .tm.away::before { background: var(--away); }
.when { display: flex; align-items: baseline; gap: 8px; }
.when strong { font: 700 var(--t-2xl)/1 var(--f-display); }
.when span { font-size: var(--t-xs); color: var(--ink-3); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
#moments { max-width: 168px; }
.lang { display: flex; }
.lang button { height: 30px; padding: 0 9px; border: 1px solid var(--hair); background: var(--surface); cursor: pointer; font-size: var(--t-xs); }
.lang button:first-child { border-radius: 6px 0 0 6px; } .lang button:last-child { border-radius: 0 6px 6px 0; margin-left: -1px; }
.lang button[aria-pressed=true] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- time ---------- */
.seek { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: end; }
.ctl { display: flex; gap: 4px; align-items: center; }
.timeline-wrap { position: relative; padding-top: 12px; }
#timeline { display: block; width: 100%; height: 30px; cursor: pointer; touch-action: none; }
#timeline .poss-0 { fill: var(--home); } #timeline .poss-1 { fill: var(--away); } #timeline .poss-none { fill: var(--fill); }
#timeline .rp-span { fill: #f0b429; opacity: .75; } #timeline .rp-span:hover { opacity: 1; }
#timeline .busy { fill: var(--ink-3); }
#timeline .head { stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.markers { position: absolute; inset: 0; pointer-events: none; }
.markers button { position: absolute; transform: translateX(-50%); pointer-events: auto; border: 0; background: none; padding: 0; line-height: 1; cursor: pointer; color: var(--ink); }
.markers button.goal { top: -1px; font-size: 12px; }
.markers button.card-y { top: 0; font-size: 10px; color: #facc15; text-shadow: 0 1px 2px rgba(0,0,0,.55); }
.markers button.shot, .markers button.meta { top: 34px; font-size: 6px; color: var(--ink-3); }
.markers button.meta { color: var(--ink); }
.markers button:hover { transform: translateX(-50%) scale(1.6); color: var(--ink); }
.chain { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding-block: 2px; border-block: 1px solid var(--hair); }
#chain { display: flex; overflow-x: auto; scrollbar-width: none; align-items: center; }
#chain li { display: flex; align-items: center; flex: none; }
#chain li + li::before { content: "›"; color: var(--ink-3); padding: 0 2px; }
#chain button { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px; border: 0; border-radius: 6px; background: none; cursor: pointer; font-size: var(--t-sm); white-space: nowrap; }
#chain button:hover { background: var(--fill); }
#chain button b { font-weight: 600; } #chain button em { font-style: normal; color: var(--ink-3); }
#chain button.now { background: var(--ink); color: var(--paper); } #chain button.now em { color: inherit; opacity: .7; }
#chain .end { display: inline-flex; gap: 5px; align-items: center; padding: 0 8px; font-size: var(--t-sm); color: var(--ink-2); white-space: nowrap; }
#chain .end i { font-style: normal; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.side-0 { background: var(--home); } .dot.side-1 { background: var(--away); }

/* ---------- pitch ---------- */
.main { min-height: 0; display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr) clamp(350px, 29vw, 440px); }
.field { min-width: 0; min-height: 0; display: flex; }
.pitch-wrap { position: relative; flex: 1; min-height: 0; border-radius: var(--r); overflow: hidden; background: var(--apron); }
#pitch { display: block; width: 100%; height: 100%; user-select: none; }
#pitch .turf { fill: var(--grass); } #pitch .stripe { fill: var(--grass-2); }
#pitch .mark { fill: none; stroke: var(--chalk); stroke-width: calc(.2px * var(--k, 1)); } #pitch .spot { fill: var(--chalk); }
#pitch .pl { cursor: pointer; }
#pitch .pl .in { transform: scale(var(--k, 1)); }
#pitch .pl .body { stroke: rgba(0, 0, 0, .55); stroke-width: .18; }
#pitch .pl.side-0 .body { fill: var(--home); } #pitch .pl.side-1 .body { fill: var(--away); }
#pitch .pl .ring, #pitch .pl .pick { fill: none; stroke: none; }
#pitch .pl.k-carry { opacity: .5; }
#pitch .pl.k-new .ring { stroke: #fff; stroke-width: .26; }
#pitch .pl.k-hold .ring { stroke: #fff; stroke-width: .22; stroke-dasharray: .7 .6; }
#pitch .pl.k-ball .ring { stroke: #fff; stroke-width: .5; }
#pitch .pl.sel { opacity: 1; } #pitch .pl.sel .pick { stroke: #fff; stroke-width: .9; opacity: .35; }
#pitch .pl:hover .pick { stroke: #fff; stroke-width: .3; opacity: .7; }
#pitch .pl text { font: 600 1.55px var(--f-text); fill: #fff; text-anchor: middle; paint-order: stroke; stroke: rgba(0, 0, 0, .7); stroke-width: .42px; pointer-events: none; display: none; }
#pitch .pl.sel text, #pitch .pl.tag text, #pitch.names .pl text { display: block; }
#pitch .pl .no { display: none; transform: translate(1.05px, -1.05px) scale(.72); } #pitch .pl.out .no { display: block; }
#pitch .pl .no circle { fill: #14181a; } #pitch .pl .no path { stroke: #ff9c8a; stroke-width: .3; stroke-linecap: round; }
#pitch.dim .pl:not(.lit):not(.sel) { opacity: .14; }
#pitch .ballpt { fill: #fff; stroke: #111; stroke-width: .2; } #pitch .ballshadow { fill: rgba(0, 0, 0, .32); }
#pitch .anim { transition: transform var(--tick, 250ms) linear; }
#pitch .reach { fill: rgba(255, 255, 255, .04); stroke: rgba(255, 255, 255, .35); stroke-width: .13; stroke-dasharray: .7 .6; }
#pitch .reach.on { fill: rgba(255, 255, 255, .09); stroke: rgba(255, 255, 255, .85); }
#pitch .run { stroke: rgba(255, 255, 255, .4); stroke-width: .15; stroke-dasharray: .5 .5; }
#pitch .opt { fill: none; stroke: #fff; stroke-linecap: round; }
#pitch .opt.f-dribble, #pitch .opt.f-keep { stroke-dasharray: .2 .7; } #pitch .opt.f-clear { stroke-dasharray: 1.4 .9; }
#pitch .opt.hot { stroke: #ffe45c; opacity: 1 !important; }
#pitch .optdot { fill: #fff; cursor: help; } #pitch .optdot.hot { fill: #ffe45c; } #pitch .optdot.worst { fill: none; stroke: #ff9c8a; stroke-width: .16; }
#pitch .way { stroke: #fff; stroke-width: .22; stroke-dasharray: .8 .6; fill: none; opacity: .9; }
#pitch .target { fill: none; stroke: #fff; stroke-width: .24; }
#pitch .ghost { fill: none; stroke: #fff; stroke-width: .2; stroke-dasharray: .4 .3; opacity: .8; }
#pitch .threat { fill: none; stroke: #ff7d6b; stroke-width: .32; } #pitch .threat.hot { stroke-width: .7; }
#pitch .lane { stroke: #ff7d6b; stroke-width: .16; stroke-dasharray: .4 .4; }
#pitch .flight { stroke: #fff; stroke-width: .2; stroke-dasharray: .9 .7; opacity: .75; }
#pitch .lbl rect { fill: rgba(10, 14, 16, .86); } #pitch .lbl text { font: 700 1.55px var(--f-display); fill: #fff; }
#pitch .lbl.red rect { fill: #b3382c; }
#pitch .lbl.soft rect { fill: rgba(10, 14, 16, .62); }
#pitch .lbl.hot rect { fill: #ffe45c; } #pitch .lbl.hot text { fill: #14181a; }
#pitch .pathline { stroke: #fff; stroke-width: .16; stroke-dasharray: .25 .5; stroke-linecap: round; fill: none; opacity: .9; }
#pitch .pathline.dim { opacity: .55; }
#pitch .pathdot { fill: #14181a; stroke: #fff; stroke-width: .18; cursor: help; }
#pitch .pathdot.final { fill: #fff; } #pitch .pathdot.dim { opacity: .6; }
#pitch .pathdot.hot { fill: #ffe45c; stroke: #ffe45c; opacity: 1; }
#pitch .prevdot { fill: none; stroke: rgba(255, 255, 255, .62); stroke-width: .18; stroke-dasharray: .35 .3; cursor: help; }
#pitch .prevshift { fill: none; stroke: rgba(255, 255, 255, .42); stroke-width: .14; stroke-dasharray: .45 .45; }
#pitch .hotring { fill: none; stroke: #ffe45c; stroke-width: .34; }
#pitch .turnarc { fill: none; stroke: #fff; stroke-width: .28; cursor: help; }
#pitch .riskring { fill: none; stroke: #ff7d6b; stroke-width: .13; opacity: .55; } #pitch .riskring.on { opacity: 1; stroke-width: .2; }
#pitch .pl .face { fill: #fff; opacity: .9; } #pitch .pl.k-carry .face { opacity: .55; }
#pitch .cone { fill: rgba(255, 255, 255, .055); stroke: rgba(255, 255, 255, .4); stroke-width: .14; stroke-dasharray: .9 .7; cursor: help; }
.called { position: absolute; left: 10px; top: 10px; display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border: 0; border-radius: 6px; cursor: pointer; background: rgba(10, 14, 16, .78); color: #fff; font-size: var(--t-xs); }
.called[aria-pressed=true] { box-shadow: 0 0 0 2px #fff; }
.called b { font: 700 15px/1 var(--f-display); }
.called .dots { display: flex; gap: 2px; }
.called .dots i { width: 6px; height: 6px; border-radius: 50%; background: #f0941f; opacity: .3; }
.called .dots i.side-1 { background: #58a6e8; } .called .dots i.on { opacity: 1; } .called .dots i.k-ball { box-shadow: 0 0 0 1.5px #fff; }
.dir { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); font-size: var(--t-xs); color: rgba(255, 255, 255, .8); white-space: nowrap; pointer-events: none; }
.pitch-tools { position: absolute; right: 10px; top: 10px; display: flex; gap: 4px; }
.mini { position: absolute; right: 10px; bottom: 10px; width: 132px; height: auto; aspect-ratio: 109 / 72; border-radius: 4px; background: rgba(10, 14, 16, .78); cursor: pointer; }
.mini .m-pitch { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 1; } .mini .m-line { stroke: rgba(255, 255, 255, .3); stroke-width: 1; }
.mini .m-dot.side-0 { fill: #f0941f; } .mini .m-dot.side-1 { fill: #58a6e8; } .mini .m-dot.sel { stroke: #fff; stroke-width: 1.2; }
.mini .m-view { fill: rgba(255, 255, 255, .12); stroke: #fff; stroke-width: 1.4; }
.pitch-tools .ic { background: rgba(10, 14, 16, .78); border-color: transparent; color: #fff; }
.pitch-tools .ic[aria-pressed=true] { background: #fff; color: #111; border-color: #fff; }

/* ---------- reading rail ---------- */
.rail { min-height: 0; overflow-y: auto; scrollbar-width: thin; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.lede { display: grid; gap: 5px; }
.who { display: flex; align-items: center; gap: 10px; }
.who .dot { width: 12px; height: 12px; }
.who h2 { font: 700 var(--t-xl)/1.1 var(--f-display); letter-spacing: .02em; text-transform: uppercase; }
.kind { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.kind i { width: 11px; height: 11px; border-radius: 50%; background: var(--ink-3); }
.kind.k-ball i { background: var(--ink); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.kind.k-new i { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ink); } .kind.k-hold i { outline: 1.5px dashed var(--ink); outline-offset: 2px; } .kind.k-carry i { opacity: .4; }
.sub { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: var(--t-xs); color: var(--ink-3); }
.sub span + span::before { content: "·"; margin-right: 10px; }
.story { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 6px; font-size: var(--t-lg); font-weight: 600; line-height: 1.35; }
.story time { font: 700 var(--t-lg)/1 var(--f-display); color: var(--ink-3); }
.arr { font-style: normal; font-weight: 400; color: var(--ink-3); }
.why { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.secs { display: flex; flex-direction: column; }
.sec { display: grid; gap: 10px; padding-block: 14px; border-top: 1px solid var(--hair); }
.sec:last-child { padding-bottom: 0; }
.sec > h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: var(--t-xs); font-weight: 600; color: var(--ink-3); }
.sec > h3 span { font: 700 var(--t-md)/1 var(--f-display); color: var(--ink-2); }
html:lang(en) .sec > h3 { text-transform: uppercase; letter-spacing: .08em; }
.pose { display: flex; gap: 6px 14px; align-items: center; font-size: var(--t-sm); color: var(--ink-2); }
.pose .cmp { width: 18px; height: 18px; flex: none; margin-right: -8px; } .cmp circle { fill: none; stroke: var(--ink-3); stroke-width: 1; } .cmp path { fill: var(--ink); }
.pose b { font: 700 15px/1 var(--f-display); color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-sm); color: var(--ink-2); white-space: nowrap; background: none; border: 0; padding: 0; }
.tag i { font-style: normal; font-size: var(--t-xs); color: var(--ink-3); }
.tag.good i { color: var(--good); } .tag.bad i { color: var(--crit); } .tag.warn i { color: var(--warn); }
.tag.link, button.tag { color: var(--ink); cursor: pointer; text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: 3px; }
.tag.link { margin-left: auto; }
.tag.link:hover, button.tag:hover { text-decoration-color: var(--ink); }
.keys { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: var(--t-xs); color: var(--ink-3); }
.kf { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.key { width: 18px; border-top: 2px solid var(--ink-3); }
.key.f-dribble, .key.f-keep { border-top-style: dotted; } .key.f-clear { border-top-style: dashed; }
.hb { display: grid; gap: 7px; }
.hb li { display: grid; grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr) 3.4em; gap: 10px; align-items: center; }
.hb .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); } .hb .n sup { font-size: 9px; color: var(--ink-3); margin-left: 1px; }
.hb .t { height: 8px; }
.hb .t i { display: block; height: 100%; min-width: 2px; border-radius: 0 3px 3px 0; background: var(--ink-3); opacity: .5; }
.hb .v { font: 700 15px/1 var(--f-display); text-align: right; }
.hb li.win .n { color: var(--ink); font-weight: 600; } .hb li.win .t i { background: var(--ink); opacity: 1; }
.hb li:hover .n { color: var(--ink); } .hb li:hover .t i { opacity: 1; }
.hb.duo .t { position: relative; background: var(--fill); }
.hb.duo .t i, .hb.duo li.win .t i, .hb.duo li:hover .t i { position: absolute; inset: 0 auto 0 0; background: var(--ink-3); opacity: .4; border-radius: 0 3px 3px 0; }
.hb.duo .t b { position: absolute; inset: 0 auto 0 0; min-width: 2px; border-radius: 0 3px 3px 0; background: var(--ink-2); }
.hb.duo li.win .t b { background: var(--ink); }
.hb.funnel li { grid-template-columns: minmax(0, 8em) minmax(0, 1fr) auto; cursor: default; }
.hb.funnel .v { font: 500 var(--t-sm)/1.2 var(--f-text); color: var(--ink-2); max-width: 11em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb.funnel .v b { font: 700 15px/1 var(--f-display); color: var(--ink); }
.hb.funnel li:not(.win) .t b { display: none; }
.hb.spots li { grid-template-columns: minmax(0, 12.2em) minmax(0, 1fr) auto; }
.hb.spots .v { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; }
.hb.spots .spot-fx { grid-column: 1 / -1; margin-top: 4px; }
.eq { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.eq span { display: grid; gap: 3px; } .eq b { font: 700 22px/1 var(--f-display); } .eq small { font-size: var(--t-xs); color: var(--ink-3); }
.eq > i { font-style: normal; color: var(--ink-3); padding-bottom: 17px; }
.eq .res b { box-shadow: inset 0 -3px var(--ink); padding-bottom: 3px; }
.wf { display: grid; gap: 8px; }
.wf li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; align-items: baseline; font-size: var(--t-sm); }
.wf .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.wf .x { font: 700 var(--t-md)/1 var(--f-display); white-space: nowrap; }
.wf .t { grid-column: 1 / -1; position: relative; height: 6px; background: var(--fill); }
.wf .t i { position: absolute; inset: 0 auto 0 0; background: var(--ink-3); opacity: .45; }
.wf .t b { position: absolute; top: 0; bottom: 0; border-radius: 0 3px 3px 0; }
.wf .up .t b { background: var(--ink); }
.wf .down .t b { background: repeating-linear-gradient(135deg, var(--ink-3) 0 1.5px, transparent 1.5px 4px); }
.tds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.td { display: grid; gap: 4px; font-size: var(--t-xs); color: var(--ink-3); }
.td b { font: 700 18px/1 var(--f-display); color: var(--ink); }
.td i { height: 3px; background: var(--fill); } .td i u { display: block; height: 100%; background: var(--ink-2); }
.tl li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; position: relative; padding-bottom: 12px; }
.tl li:last-child { padding-bottom: 0; }
.tl li:not(:last-child)::before { content: ""; position: absolute; left: 10.5px; top: 24px; bottom: 2px; width: 1px; background: var(--hair); }
.tl .nd { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--hair); font-size: 11px; color: var(--ink-2); }
.tl .nd.good { color: var(--good); border-color: currentColor; } .tl .nd.bad { color: var(--crit); border-color: currentColor; }
.tl .nd.weak { color: var(--warn); border: 1px dashed currentColor; }   /* a kick on his weaker foot, as the dashed amber print on the pitch */
.tl b { display: block; line-height: 22px; font-weight: 600; } .tl small { display: block; font-size: var(--t-xs); color: var(--ink-3); }
.tl button.go { all: unset; cursor: pointer; display: block; } .tl button.go b { text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: 3px; } .tl button.go:hover b { text-decoration-color: var(--ink); }
.tl .tags { margin-top: 3px; }
.tl.steps .nd { font: 700 12px/1 var(--f-display); color: var(--ink); }
.tl.steps li[data-hot]:hover .nd { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.slots { display: flex; gap: 2px; max-width: 220px; margin: 5px 0 3px; }
.slots i { flex: 1; height: 6px; background: var(--fill); } .slots i.on { background: var(--ink); }
.mt { display: grid; grid-template-columns: 6.5em minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: var(--t-sm); }
.mt > span:first-child { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt .t { position: relative; height: 4px; background: var(--fill); }
.mt .t i { position: absolute; inset: 0 auto 0 0; background: var(--ink-3); } .mt.hit .t i { background: var(--ink); }
.mt .t u { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.mt b { font: 700 15px/1 var(--f-display); white-space: nowrap; }
.big b { display: block; font-size: 20px; font-weight: 600; line-height: 1.25; } .big small { display: block; margin-top: 2px; font-size: var(--t-sm); color: var(--ink-2); }
.ats { display: grid; gap: 7px; }
.at { display: grid; grid-template-columns: minmax(0, 7em) 1.6em minmax(0, 1fr) 3.8em; gap: 10px; align-items: center; font-size: var(--t-sm); }
.at .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.at .p { font: 700 15px/1 var(--f-display); text-align: right; color: var(--ink-2); }
.at .s { position: relative; height: 4px; background: var(--fill); }
.at .s i { position: absolute; inset: 0 auto 0 0; background: var(--ink-3); opacity: .6; }
.at .s u { position: absolute; top: -5px; width: 3px; height: 14px; margin-left: -1.5px; background: var(--ink); }
.at { row-gap: 1px; } .at .u { grid-column: 1 / -1; font-size: var(--t-xs); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.td.read { color: var(--ink-2); } .td.read::before { content: "●"; font-size: 7px; color: var(--ink); margin-bottom: -2px; } .td:not(.read) b { color: var(--ink-3); }
.at .v { text-align: right; white-space: nowrap; } .at .v b { font: 700 15px/1 var(--f-display); } .at .v small { font-size: var(--t-xs); color: var(--ink-3); }

/* ---------- rules dialog ---------- */
.rules { width: min(980px, calc(100vw - 32px)); max-height: calc(100% - 32px); padding: 20px 22px 22px; border: 1px solid var(--hair); border-radius: var(--r); background: var(--paper); color: var(--ink); }
.rules::backdrop { background: rgba(5, 8, 9, .62); }
.rules header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.rules h2 { font: 700 var(--t-xl)/1.1 var(--f-display); }
.lead { max-width: 65ch; margin-bottom: 12px; color: var(--ink-2); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 16px; font-size: var(--t-xs); color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend svg { width: 14px; height: 14px; } .legend li:nth-child(5) svg, .legend li:nth-child(6) svg { width: 28px; }
.lg { fill: var(--ink-3); } .lg.ball { stroke: var(--ink); stroke-width: 2.4; } .lg.new { stroke: var(--ink); stroke-width: 1.4; } .lg.hold { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 2 1.6; } .lg.carry { opacity: .4; }
.lg-face { fill: var(--ink); } .lg.risk { fill: none; stroke: var(--crit); stroke-width: 1.2; } .lg.cone { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 1.5; }
.lg.threat { fill: none; stroke: var(--crit); stroke-width: 1.6; } .lg.radius { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 1.5; }
.lg-line { stroke: var(--ink-3); stroke-width: 1.5; } .lg-line.chosen { stroke: var(--ink); stroke-width: 3; }
.lg-eye { fill: var(--surface); } .lg-shirt { fill: var(--ink-3); } .lg-no { fill: var(--surface); font: 700 5.6px var(--f-display); text-anchor: middle; }
.lg-stalk { stroke: var(--ink); stroke-width: 1; } .lg-shade { fill: var(--ink-3); }
.atlas-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 0 28px; }
.atlas-cards article { display: grid; gap: 8px; align-content: start; padding-block: 14px; border-top: 1px solid var(--hair); }
.atlas-cards h3 { font-size: var(--t-lg); font-weight: 600; } .atlas-cards p { font-size: var(--t-sm); color: var(--ink-2); }
.stats { display: flex; flex-wrap: wrap; gap: 20px; } .stats span { display: grid; gap: 3px; font-size: var(--t-xs); color: var(--ink-3); } .stats b { font: 700 var(--t-xl)/1 var(--f-display); color: var(--ink); }
.bars { display: grid; gap: 6px; font-size: var(--t-xs); }
.bars div { display: grid; grid-template-columns: 6.5em 1fr 3.5em; gap: 8px; align-items: center; }
.bars i { display: block; height: 8px; border-radius: 0 3px 3px 0; background: var(--ink-3); min-width: 2px; }
.bars span:last-child { text-align: right; font: 700 var(--t-sm)/1 var(--f-display); }
.atlas-cards button { justify-self: start; }
.foot { margin-top: 14px; font-size: var(--t-xs); color: var(--ink-3); }

/* ---------- narrower: the pitch stays in view on top, the rail scrolls under it ---------- */
@media (max-width: 1099px) {
  body { overflow: auto; }
  .app { height: auto; min-height: 100%; grid-template-rows: auto auto auto auto; }
  .main { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .field { display: block; position: sticky; top: 0; z-index: 3; padding-block: 0 12px; background: var(--paper); }
  .pitch-wrap { width: 100%; aspect-ratio: 109 / 72; max-height: 50vh; }
  .rail { overflow: visible; gap: 16px; }
  .lede { padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
  .secs { display: block; columns: 300px; column-gap: 28px; column-rule: 1px solid var(--hair); }
  .sec { break-inside: avoid; border-top: 0; padding-block: 0 20px; }
  .stp-b { max-width: 640px; }
  .stp { scroll-margin-top: calc(min(50vh, 66vw) + 24px); }
}
@media (max-width: 620px) {
  .fixture { font-size: 17px; } .fixture b { font-size: 19px; } .when strong { font-size: 24px; }
  .seek { grid-template-columns: minmax(0, 1fr); }
  .pitch-wrap { max-height: 42vh; }
  .mini { width: 92px; }
  .dir, .called .dots { display: none; }
  .secs { columns: auto; }
  .sec { border-top: 1px solid var(--hair); padding-block: 14px; }
  .lede { border-bottom: 0; padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { #pitch .anim { transition: none; } }

/* ---------- the player's state: compact radar + unified role/formation/signals card + collapsible live telemetry ---------- */
.state { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 6px 10px; align-items: center; margin-top: 2px; }
.state.side-0 { --team: var(--home); } .state.side-1 { --team: var(--away); }
.sr { display: grid; justify-items: center; align-content: center; gap: 2px; } .sr .tag { font-size: 11px; }
.sr .tag.live { color: var(--live); text-decoration-color: var(--live-bd); font-weight: 600; }
.radar { width: 78px; height: 78px; overflow: visible; }
.radar .rg { fill: none; stroke: var(--hair); stroke-width: .6; } .radar .gs { stroke: var(--ink-3); stroke-width: .6; opacity: .5; }
.radar .rb { fill: var(--ink-3); opacity: .36; } .radar .rb.on { fill: var(--live); opacity: 1; } .radar .gl { font: 600 8px/1 var(--f-text); fill: var(--ink-3); }
.radar .rw { fill: transparent; cursor: help; } .radar .rw:hover { fill: var(--ink); fill-opacity: .12; }
.tac-card { display: grid; gap: 5px; min-width: 0; padding: 6px 8px; border: 1px solid var(--hair); border-radius: 8px; background: color-mix(in srgb, var(--fill) 32%, var(--surface)); }
.tac-card.side-0 { --team: var(--home); } .tac-card.side-1 { --team: var(--away); }
.tac-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; min-width: 0; }
.tac-meta { display: grid; gap: 4px; min-width: 0; align-content: center; }
.tac-head { all: unset; display: flex; align-items: center; gap: 6px; min-width: 0; cursor: pointer; }
.tac-head .pos-b { font: 700 12px/1 var(--f-display); padding: 2px 5px; border-radius: 4px; color: var(--team); background: color-mix(in srgb, var(--team) 11%, transparent); border: 1px solid color-mix(in srgb, var(--team) 30%, transparent); }
.tac-head .frm { font: 700 13.5px/1 var(--f-display); color: var(--ink); }
.tac-head .ph { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.tac-head:hover .frm, .tac-head:hover .ph { color: var(--team); }
.tac-roles { all: unset; display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 10px; min-width: 0; cursor: pointer; font-size: 12.5px; line-height: 1.3; }
.tac-roles span { display: inline-flex; align-items: baseline; gap: 4px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tac-roles span.on { color: var(--ink); font-weight: 600; } .tac-roles span.on small { color: var(--team); font-weight: 600; }
.tac-roles span.off { font-size: 11.5px; color: var(--ink-3); }
.tac-roles small { flex: none; font-size: 10.5px; color: var(--ink-3); font-weight: 400; }
.tac-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 5px; }
.tac-live { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 5px; padding-top: 5px; border-top: 1px solid var(--hair); }
.chip { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border: 1px solid var(--hair); border-radius: 999px; background: var(--surface); font-size: 11.5px; line-height: 1.48; color: var(--ink-2); white-space: nowrap; text-decoration: none; }
.chip b { font: 700 12px/1 var(--f-display); color: var(--ink); }
.chip.hv:hover, .chip.hv.tip-on { border-color: var(--ink-3); color: var(--ink); background: var(--surface); }
.chip.mute { color: var(--ink-3); border-style: dashed; background: transparent; }
.chip.mod { border-color: color-mix(in srgb, var(--warn) 45%, var(--hair)); } .chip.mod b { color: var(--warn); }
.chip.live { color: var(--live); background: var(--live-bg); border-color: var(--live-bd); font-weight: 600; }
.chip.live i { font-style: normal; font-size: 9px; color: var(--live); } .chip.live b { color: var(--live); }
.chip.live.off { opacity: .78; border-style: dashed; }
.live-bar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; padding: 4px 7px; border-radius: 7px; background: color-mix(in srgb, var(--fill) 48%, transparent); font-size: 12px; }
.lm { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px; border: 0; border-radius: 5px; background: none; font: inherit; color: var(--ink-2); white-space: nowrap; text-decoration: none; }
button.lm { cursor: pointer; } button.lm:hover, button.lm.open { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); }
.lm b { font: 700 13.5px/1 var(--f-display); color: var(--ink); } .lm small { font-size: 11px; color: var(--ink-3); } .lm .chev { font-style: normal; font-size: 10px; color: var(--ink-3); margin-left: 1px; }
.lm.cond > i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.lm.cond.good > i { background: var(--good); } .lm.cond.warn > i { background: var(--warn); } .lm.cond.warn b { color: var(--warn); } .lm.cond.crit > i { background: var(--crit); } .lm.cond.crit b { color: var(--crit); }
.lm.load.near b { color: var(--warn); } .lm.load.over { background: color-mix(in srgb, var(--crit) 11%, transparent); } .lm.load.over b { color: var(--crit); }
.lm.pose .cmp { width: 14px; height: 14px; flex: none; }
.lm.pre { margin-left: auto; color: var(--ink-3); }
.body-drawer { grid-column: 1 / -1; display: grid; gap: 4px; padding: 7px 10px; border: 1px solid var(--hair); border-radius: 7px; background: var(--surface); font-size: 12.5px; }
.body-drawer .live-t { color: var(--live); font-weight: 600; } .body-drawer .live-t b { color: var(--live); }
.sl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 7px; color: var(--ink-2); line-height: 1.45; }
.sl em { font-style: normal; font-size: var(--t-xs); color: var(--ink-3); min-width: 2.4em; } .sl i { font-style: normal; color: var(--ink-3); } .sl b { font: 700 14px/1 var(--f-display); color: var(--ink); }
.sl span.on { color: var(--ink); font-weight: 600; } .sl .cmp { width: 15px; height: 15px; flex: none; align-self: center; }
.lg-bat { fill: none; stroke: var(--ink-2); stroke-width: 1; } .lg-batf { fill: var(--good); } .lg-bat-n { fill: var(--ink-2); }
/* condition curve and short-term load bar inside the collapsible drawer */
.bd { align-items: center; } .bd > span { display: inline-flex; align-items: center; gap: 5px; cursor: help; }
.cc { width: 108px; height: 22px; flex: none; overflow: visible; cursor: help; }
.cc polyline { fill: none; stroke: var(--ink-2); stroke-width: 1.1; stroke-linejoin: round; } .cc .cc-g { stroke: var(--hair); stroke-dasharray: 2 2; }
.cc .cc-now { stroke: var(--ink-3); stroke-width: .8; } .cc circle { fill: var(--live); }
.bd-l .lb { position: relative; display: inline-flex; width: 64px; height: 6px; border-radius: 3px; background: var(--fill); overflow: visible; }
.bd-l .lb > i { height: 100%; background: var(--ink-3); } .bd-l .lb > i:first-child { border-radius: 3px 0 0 3px; } .bd-l .lb > i.x { background: var(--crit); border-radius: 0 3px 3px 0; }
.bd-l .lb > i.cap { position: absolute; top: -2px; width: 1.5px; height: 10px; background: var(--ink); } .bd-l.over b { color: var(--crit); }
.attrs3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; padding-top: 8px; border-top: 1px solid var(--hair); font-size: var(--t-xs); }
.attrs3 h5 { font: 600 var(--t-xs)/1.2 var(--f-text); color: var(--ink-3); margin-bottom: 4px; }
.attrs3 p { display: flex; align-items: baseline; gap: 4px; padding: 1.5px 0; color: var(--ink-2); cursor: help; } .attrs3 p span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attrs3 p b { font: 700 13px/1 var(--f-display); color: var(--ink); } .attrs3 p small { font: 600 11px/1 var(--f-display); color: var(--ink-3); min-width: 1.4em; text-align: right; }
.attrs3 p.on span { color: var(--live); font-weight: 600; } .attrs3 p.on::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--live); align-self: center; }
/* the tactic board: a pitch seen from behind the own goal, attacking upward */
.bp { fill: var(--grass); } .bl { fill: none; stroke: var(--chalk); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mb-p.side-0, .fb-p.side-0 { --team: var(--home); } .mb-p.side-1, .fb-p.side-1 { --team: var(--away); }
.mb { flex: none; display: grid; justify-items: center; gap: 3px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.mb-p { position: relative; display: block; width: 48px; height: 60px; border-radius: 5px; overflow: hidden; transition: box-shadow .12s; } .mb:hover .mb-p { box-shadow: 0 0 0 2px var(--team); }
.mb-p svg, .fb-p svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mb-p i { position: absolute; width: 4.5px; height: 4.5px; margin: -2.25px 0 0 -2.25px; border-radius: 50%; background: var(--team); box-shadow: 0 0 0 1px rgba(255, 255, 255, .85); } .mb-p i.me { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: #fff; box-shadow: 0 0 0 1.5px #10151a; }
/* ---------- team tactic dialog ---------- */
.tactic-dlg { width: min(880px, calc(100vw - 24px)); max-height: calc(100% - 24px); padding: 0; border: 1px solid var(--hair); border-radius: var(--r); background: var(--paper); color: var(--ink); overflow: auto; }
.tactic-dlg::backdrop { background: rgba(5, 8, 9, .62); }
.tactic-dlg header { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; background: var(--paper); border-bottom: 1px solid var(--hair); }
.seg { display: flex; } .seg button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 1px solid var(--hair); background: var(--surface); color: var(--ink-2); font-size: var(--t-sm); cursor: pointer; }
.seg button:first-child { border-radius: 6px 0 0 6px; } .seg button:last-child { border-radius: 0 6px 6px 0; margin-left: -1px; } .seg button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tm-m { font-size: var(--t-sm); color: var(--ink-3); } .tm-m b { color: var(--ink); font-weight: 600; } .tm-c { margin-left: auto; font-size: var(--t-xs); color: var(--ink-3); }
.tch { position: relative; height: 20px; margin: 8px 20px 0; border-bottom: 1px solid var(--hair); }
.tch button { position: absolute; bottom: -5px; width: 9px; height: 9px; margin-left: -4.5px; padding: 0; border: 1.5px solid var(--ink-3); border-radius: 50%; background: var(--paper); cursor: pointer; transition: transform .12s; }
.tch button::before { content: ""; position: absolute; inset: -7px -3px; } .tch button.on { background: var(--ink); border-color: var(--ink); } .tch button:hover, .tch button.tip-on { border-color: var(--ink); transform: scale(1.3); }
.tch > i { position: absolute; bottom: 0; width: 1.5px; height: 16px; margin-left: -.75px; background: var(--ink); opacity: .45; pointer-events: none; }
.fbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; padding: 14px 16px 4px; }
.fb { margin: 0; display: grid; gap: 6px; } .fb figcaption { display: flex; align-items: baseline; gap: 8px; font-size: var(--t-sm); color: var(--ink-3); } .fb figcaption b { color: var(--ink); font-weight: 600; } .fb figcaption span { font: 700 15px/1 var(--f-display); color: var(--ink-2); }
.fb figcaption em { padding: 1px 7px; border-radius: 999px; background: var(--ink); color: var(--paper); font-style: normal; font-size: 10.5px; }
.fb-p { position: relative; aspect-ratio: 100 / 112; border-radius: 8px; overflow: hidden; }
.fs { position: absolute; display: grid; justify-items: center; gap: 1px; width: 27%; padding: 0; border: 0; background: none; color: #fff; text-align: center; transform: translate(-50%, -9px); cursor: pointer; }
.fs i { width: 16px; height: 16px; border-radius: 50%; background: var(--team); border: 2px solid rgba(255, 255, 255, .92); box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .12s; }
.fs b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 11.5px/1.2 var(--f-text); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.fs span { font-size: 10.5px; line-height: 1.15; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); } .fs small { font-size: 10px; line-height: 1.15; color: rgba(255, 255, 255, .72); }
.fs:hover i, .fs.tip-on i { transform: scale(1.22); } .fs.me i { background: #fff; border-color: #10151a; box-shadow: 0 0 0 3px rgba(255, 255, 255, .4); }
.sheet { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 24px; padding: 12px 16px 2px; align-items: start; }
.cts h4 { margin: 0 0 4px; padding-bottom: 5px; border-bottom: 1px solid var(--hair); font: 600 var(--t-xs)/1.2 var(--f-text); letter-spacing: .03em; color: var(--ink-3); }
.ct { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(3.6em, auto); align-items: center; gap: 9px; padding: 2.5px 0; font-size: var(--t-sm); color: var(--ink-3); } .ct.set { color: var(--ink-2); }
.ct b { font-weight: 600; text-align: right; } .ct.set b { color: var(--ink); }
.pips { display: inline-flex; gap: 3px; } .pips i { width: 7px; height: 7px; border: 1px solid var(--ink-3); border-radius: 50%; opacity: .5; } .pips i.on { background: var(--ink-3); opacity: 1; } .ct.set .pips i.on { background: var(--ink); border-color: var(--ink); }
.gg { display: grid; grid-template-columns: minmax(0, 1fr) 76px 1.7em; align-items: center; gap: 9px; padding: 2.5px 0; font-size: var(--t-sm); color: var(--ink-2); }
.gg .bar { height: 5px; border-radius: 3px; background: var(--fill); overflow: hidden; } .gg .bar i { display: block; height: 100%; border-radius: 3px; background: var(--ink); } .gg b { font: 700 14px/1 var(--f-display); text-align: right; color: var(--ink); }
.sheet-f { padding: 6px 16px 14px; }
@media (max-width: 420px) { .state { grid-template-columns: 1fr; } .mb { grid-auto-flow: column; align-items: center; justify-self: start; gap: 10px; } }

/* ---------- the rail as steps: one line each, the open one explains itself ---------- */
.delta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 7px 10px; border-radius: 6px; background: var(--fill); font-size: var(--t-xs); line-height: 1.5; color: var(--ink-2); }
.delta button.prev-go { all: unset; cursor: pointer; font-weight: 600; color: var(--ink); text-decoration: underline dotted var(--ink-3); text-underline-offset: 2px; white-space: nowrap; }
.delta button.prev-go:hover { text-decoration-color: var(--ink); }
.delta span { min-width: 0; }
.delta b { font: 700 12.5px/1.1 var(--f-display); color: var(--ink); }
.stps { list-style: none; display: flex; flex-direction: column; border-top: 1px solid var(--hair); }
.stp { border-bottom: 1px solid var(--hair); }
.stp-h { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: 18px 4.6em minmax(0, 1fr) 12px; gap: 8px; align-items: baseline; padding: 9px 0; font-size: var(--t-sm); }
html:lang(en) .stp-h { grid-template-columns: 18px 7.6em minmax(0, 1fr) 12px; }
.stp-h i { font: 700 12px/1 var(--f-display); font-style: normal; color: var(--ink-3); }
.stp-h b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.stp-h span { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stp-h::after { content: "▸"; color: var(--ink-3); font-size: 11px; } .stp.open > .stp-h::after { content: "▾"; color: var(--ink); }
.stp-h:hover span, .stp.open > .stp-h span { color: var(--ink); } .stp.open > .stp-h i { color: var(--ink); }
.stp-h:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.stp-b { display: grid; gap: 10px; padding: 2px 0 16px 26px; font-size: var(--t-sm); min-width: 0; }
.stp-b > * { min-width: 0; }
.fx { line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.fx i { font-style: normal; color: var(--ink-3); margin: 0 1px; } .fx b { font: 700 15px/1.1 var(--f-display); } .fx u { text-decoration: none; font-weight: 700; } .fx u.no { color: var(--crit); }
.fx.rule { color: var(--ink-2); padding-left: 10px; border-left: 2px solid var(--hair); font-size: var(--t-xs); } .fx.rule b { font: inherit; font-weight: 600; } .fx.rule + .fx:not(.rule) { margin-top: 2px; }
.fx.lead { font-size: var(--t-md); font-weight: 600; line-height: 1.5; } .fx.lead b { font-size: 17px; }
.fx.c { line-height: 1.55; } .fx.c + .fx.c, .fx.c + .fx.lead, .fx.lead + .fx.c { margin-top: -7px; } .fx.dim { color: var(--ink-3); font-size: var(--t-xs); } .fx.dim b { font-size: 13px; }
.dec { display: grid; gap: 0; } .dec .fx.c + .fx.c, .dec .fx.c + .fx.lead, .dec .fx.lead + .fx.c { margin-top: 0; }
/* a value that explains itself on hover: where it comes from, or the sum behind it */
.hv { text-decoration: underline dotted var(--ink-3); text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; border-radius: 3px; transition: background-color .12s, text-decoration-color .12s; }
.hv:hover, .hv.tip-on, .hv:focus-visible { background: var(--fill); text-decoration-color: var(--ink); outline: none; } .hv[aria-expanded="true"] { text-decoration-style: solid; }
.hv.q::after { content: "?"; font: 600 10px/1 var(--f-text); color: var(--warn); vertical-align: super; margin-left: 1px; }
.eq span[data-tip] b, .mt[data-tip] b, .rd.hv b { text-decoration: underline dotted var(--ink-3); text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.stp-h b.hv { text-decoration-color: var(--hair); } .kind.hv { text-decoration: none; cursor: help; }
.fx.gap { font-size: var(--t-xs); color: var(--ink-3); } .fx.gap u { color: var(--warn); font-weight: 600; } .fx.gap u::before { content: "⚠ "; }
.stp-b > .fx + .fx { margin-top: -6px; }
.stp-b h5 { font: 600 var(--t-xs)/1.2 var(--f-text); letter-spacing: .04em; color: var(--ink-3); margin-top: 6px; }
.rds { display: flex; flex-wrap: wrap; gap: 3px 12px; align-items: baseline; padding-top: 8px; border-top: 1px dashed var(--hair); font-size: var(--t-xs); color: var(--ink-2); }
.rds em { font-style: normal; color: var(--ink-3); } .rd { white-space: nowrap; } .rd b { font: 700 13px/1 var(--f-display); color: var(--ink); }
.terms { list-style: none; display: grid; gap: 5px; }
.terms li { display: grid; grid-template-columns: minmax(0, 1fr) 4em; gap: 10px; align-items: baseline; }
.terms .n { color: var(--ink-2); } .terms .n b { font: 700 14px/1 var(--f-display); color: var(--ink); } .terms .n small { color: var(--ink-3); font-size: var(--t-xs); margin-left: 6px; }
.terms .v { font: 700 15px/1 var(--f-display); text-align: right; } .terms .v b { font: inherit; } .terms .v.neg { color: var(--crit); }
.terms .sum { border-top: 1px solid var(--ink); padding-top: 6px; } .terms .sum .n { font-weight: 600; }
.prs { list-style: none; display: grid; gap: 9px; }
.pr-h { display: grid; grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr) minmax(3.4em, auto); gap: 10px; align-items: center; }
.pr-h .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); } .prs li.win .n { color: var(--ink); font-weight: 600; }
.pr-h .t { position: relative; height: 8px; } .pr-h .t i, .pr-h .t b { position: absolute; inset: 0 auto 0 0; min-width: 2px; border-radius: 0 3px 3px 0; } .pr-h .t i { background: var(--ink-3); opacity: .35; } .pr-h .t b { background: var(--ink); }
.pr-h .v { text-align: right; white-space: nowrap; color: var(--ink-2); } .pr-h .v b { font: 700 15px/1 var(--f-display); color: var(--ink); } .prs li.out .pr-h .v { color: var(--crit); font-size: var(--t-xs); }
.pr-g { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 3px; font-size: var(--t-xs); color: var(--ink-3); } .pr-g .g.bad { color: var(--crit); } .pr-g .g { white-space: nowrap; }
.prs li:hover .pr-h .n { color: var(--ink); }
.fan { display: grid; grid-template-columns: minmax(0, 184px) minmax(0, 1fr); gap: 12px; align-items: center; }
.fan svg { width: 100%; max-width: 184px; overflow: visible; }
.fan-ring { fill: none; stroke: var(--hair); stroke-width: 1; } .fan-lab { font: 500 8px/1 var(--f-text); fill: var(--ink-3); }
.fan-me { fill: var(--ink); } .fan-att { fill: none; stroke: var(--ink-2); stroke-width: 1.2; }
.fan-opp { fill: var(--crit); opacity: .85; } .fan-mate { fill: none; stroke: var(--ink-3); stroke-width: 1.2; }
.fan-c { fill: var(--ink-3); opacity: .55; cursor: pointer; } .fan-c.best { fill: var(--ink); opacity: .9; } .fan-c.win { fill: var(--ink); opacity: 1; stroke: var(--surface); stroke-width: 1.5; paint-order: stroke; } .fan-c:hover { opacity: 1; fill: var(--ink); }
.fan-key { list-style: none; display: grid; gap: 4px; font-size: var(--t-xs); color: var(--ink-2); } .fan-key li { display: flex; align-items: center; gap: 6px; } .fan-key .dim { color: var(--ink-3); }
.fan-key i { flex: none; width: 9px; height: 9px; border-radius: 50%; } .fan-key .k-c { background: var(--ink); } .fan-key .k-opp { background: var(--crit); }
.fan-key .k-me { border-radius: 0; background: var(--ink); clip-path: polygon(50% 0, 100% 100%, 50% 75%, 0 100%); } .fan-key .k-att { border-radius: 0; background: var(--ink-3); clip-path: polygon(50% 0, 100% 100%, 50% 75%, 0 100%); transform: rotate(90deg); }
.frs { list-style: none; display: grid; gap: 6px; }
.frs li { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.15fr) 44px 3.4em; gap: 8px; align-items: center; }
.frs .n { display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; color: var(--ink-2); } .frs .dir { flex: none; width: 13px; height: 13px; fill: var(--ink-2); }
.frs .g { font-size: var(--t-xs); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frs .t { height: 8px; } .frs .t i { display: block; height: 100%; min-width: 2px; border-radius: 0 3px 3px 0; background: var(--ink-3); opacity: .5; }
.frs .v { font: 700 15px/1 var(--f-display); text-align: right; }
.frs li.win .n { color: var(--ink); font-weight: 600; } .frs li.win .t i, .frs li:hover .t i { background: var(--ink); opacity: 1; } .frs li:hover .n { color: var(--ink); } .frs li:hover .dir, .frs li.win .dir { fill: var(--ink); }
.fams li[data-go] { cursor: pointer; } .fams .key { display: inline-block; margin-right: 6px; }
.dx { list-style: none; display: grid; gap: 4px; margin-top: 6px; font-size: var(--t-xs); }
.dx li { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(60px, 1fr) 3.2em; gap: 8px; align-items: center; }
.dx .n { color: var(--ink-2); line-height: 1.35; } .dx .v { font: 700 13px/1 var(--f-display); text-align: right; white-space: nowrap; }
.dx .t { position: relative; height: 10px; background: linear-gradient(var(--hair), var(--hair)) 0 50% / 100% 1px no-repeat; }
.dx .t i { position: absolute; top: 3px; height: 4px; background: var(--ink); } .dx .t b { position: absolute; top: 1px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--ink); }
.dx .t u { position: absolute; top: -1px; bottom: -1px; width: 1px; background: var(--ink-3); }
.dx .hd .t { background: none; display: flex; justify-content: space-between; height: auto; } .dx .hd em { font-style: normal; color: var(--ink-3); white-space: nowrap; } .dx .hd .v { font: 500 var(--t-xs)/1 var(--f-text); color: var(--ink-3); }
.dx .same .n, .dx .same .v, .dx .start .n { color: var(--ink-3); } .dx .same .t b, .dx .start .t b { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.dx .gap .n { color: var(--warn); } .dx .gap .t i { background: none; border-top: 1px dashed var(--warn); top: 5px; height: 0; } .dx .gap .t b { background: var(--warn); }
.dx .down .v { color: var(--ink-2); } .dx .end { border-top: 1px solid var(--hair); padding-top: 4px; } .dx .end .n { color: var(--ink); font-weight: 600; } .dx .end .t { background: none; }
.tl.steps small em { font-style: normal; color: var(--ink-3); margin-right: 6px; } .tl.steps small .slots { display: inline-flex; width: 110px; margin: 0 8px 0 0; vertical-align: middle; }
.stp-b .sec { border-top: 0; padding-block: 0; }
/* what a dribble or control search tried, and the engine's touch scan */
.srch { display: grid; gap: 6px; padding-top: 8px; border-top: 1px dashed var(--hair); }
.rgs { list-style: none; display: grid; gap: 4px; font-size: var(--t-xs); }
.rgs li { display: grid; grid-template-columns: 3.4em minmax(0, 1fr) 4.6em; gap: 8px; align-items: center; }
.rgs .n { color: var(--ink-3); white-space: nowrap; } .rgs .v { text-align: right; white-space: nowrap; color: var(--ink-3); } .rgs .v b { font: 700 13px/1 var(--f-display); color: var(--ink); }
.rgs .t { height: 8px; } .rgs .t > span { display: flex; gap: 1px; height: 100%; } .rgs .t > span > * { min-width: 2px; height: 100%; }
.rgs .t b { background: var(--ink); border-radius: 2px 0 0 2px; } .rgs .t i { background: var(--ink-3); opacity: .35; cursor: pointer; } .rgs .t i:hover, .rgs .t i.tip-on { opacity: .8; }
.rgs .t i.q { background: var(--warn); opacity: .45; } .rgs .t > span > :last-child { border-radius: 0 2px 2px 0; }
.rjs { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: var(--t-xs); color: var(--ink-2); }
.rj { white-space: nowrap; } .rj b { font: 700 13px/1 var(--f-display); color: var(--ink); margin-left: 2px; } .rj.q { color: var(--warn); }
@media (max-width: 420px) { .fan { grid-template-columns: 1fr; } .frs li { grid-template-columns: minmax(0, 1fr) 44px 3.4em; } .frs .g { display: none; } }
#pitch .seen { fill: none; stroke: #fff; stroke-width: .3; } #pitch .unseen { fill: none; stroke: #fff; stroke-width: .16; stroke-dasharray: .5 .5; opacity: .5; }

/* ---------- 3D pitch ---------- */
.pitch3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; } .pitch3d:active { cursor: grabbing; }
.pitch-wrap.is3d .mini { display: none; }

/* ---------- inline ? toggle, Distill-style stacked value/label equations & player-card attribute sheet ---------- */
.step-hd { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.fx-q { all: unset; display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--hair); background: var(--surface); color: var(--ink-3); font: 700 10px/1 var(--f-display); cursor: pointer; flex: none; transition: border-color .12s, color .12s, background .12s; }
.fx-q:hover { border-color: var(--ink-2); color: var(--ink); }
.fx-q[aria-expanded="true"] { border-color: var(--live); background: var(--live); color: #fff; }
.fx-panel { margin-top: 6px; padding: 7px 9px; border: 1px solid var(--hair); border-radius: 7px; background: color-mix(in srgb, var(--fill) 30%, var(--surface)); display: grid; gap: 7px; }
.fx-panel[hidden] { display: none; }
.fx-panel > .permit-box { margin-top: 0; border: 0; padding: 0; background: transparent; }
.step-hd > h5 { margin: 0; }
.fx.dec .fx-q { vertical-align: middle; margin-left: 4px; }
.tbd { display: inline-block; font-size: var(--t-xs); color: var(--ink-3); opacity: .55; font-weight: 500; }
p.tbd { display: block; margin: 2px 0; }
#rail .attr-chip, #rail .eq-t[data-tip], #rail .rd[data-tip], #rail .rj[data-tip], #rail .pr-g .g[data-tip], #rail .at[data-tip], #rail .dx li[data-tip], #rail .wf li[data-tip], #rail .attr-live-tbl tr[data-tip], #rail .hv[data-tip]:not(.stp-h *), #rail .tag[data-tip]:not(button) { cursor: pointer; }
#rail .pin-open { outline: 1.5px solid var(--live); outline-offset: 1px; border-radius: 4px; background: var(--live-bg) !important; color: var(--live) !important; }
#rail tr.pin-open td { background: var(--live-bg); }
.pin-tray { display: grid; gap: 6px; margin-top: 6px; width: 100%; grid-column: 1 / -1; }
.pin-card { padding: 7px 10px; border: 1px solid var(--live-bd); border-radius: 7px; background: var(--surface); box-shadow: 0 2px 8px rgba(0,0,0,.04); font-size: var(--t-xs); display: grid; gap: 4px; text-align: left; }
.pin-card-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 3px; border-bottom: 1px solid var(--hair); }
.pin-card-hd h6 { margin: 0; font: 700 12px/1.3 var(--f-text); color: var(--ink); }
.pin-close { all: unset; cursor: pointer; color: var(--ink-3); font-size: 13px; line-height: 1; padding: 1px 4px; border-radius: 4px; flex: none; }
.pin-close:hover { color: var(--ink); background: var(--fill); }
.pin-card p { margin: 0; color: var(--ink-2); line-height: 1.45; }
.pin-card b, .fx-panel p b { display: inline; line-height: inherit; font-weight: 650; color: var(--ink); }
.pin-card i { font-style: normal; color: var(--ink-3); }
.pin-card u { text-decoration: none; font-weight: 700; } .pin-card u.ok { color: var(--good); } .pin-card u.no { color: var(--crit); }
.pin-card .tsub { font-weight: 600; color: var(--ink); margin-top: 3px; padding-top: 4px; border-top: 1px dashed var(--hair); }
.pin-card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pin-card .row > span:first-child { flex: none; color: var(--ink-3); white-space: nowrap; }
.pin-card .row > span:last-child { color: var(--ink); text-align: right; min-width: 0; overflow-wrap: anywhere; }
.pin-card .tbar { display: flex; align-items: center; gap: 6px; margin: 2px 0 6px; font: 500 10.5px/1 var(--f-display); color: var(--ink-3); }
.pin-card .tb-t { position: relative; flex: 1; height: 6px; margin: 15px 0; border-radius: 3px; background: repeating-linear-gradient(135deg, var(--hair) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--hair); }
.pin-card .tb-t i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--ink-3); opacity: .38; }
.pin-card .tb-t b { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); display: block; }
.pin-card .tb-t b.lo { background: var(--ink-2); }
.pin-card .tb-t b em { position: absolute; left: -1px; white-space: nowrap; font: 600 10.5px/1 var(--f-text); font-style: normal; color: var(--ink); }
.pin-card .tb-t b.hi em { bottom: calc(100% + 3px); } .pin-card .tb-t b.lo em { top: calc(100% + 3px); color: var(--ink-2); }
.pin-card .tb-t b.r em { left: auto; right: -1px; }
.env-pill { margin-left: 8px; padding: 2px 7px; border-radius: 99px; border: 1px solid var(--hair); background: var(--surface); font-size: var(--t-xs); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.env-pill:hover { border-color: var(--ink-3); color: var(--ink); }
.env-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.env-chips .tag { font-size: 11px; }
.eq-line { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 4px; }
.eq-line + .eq-line { padding-top: 6px; border-top: 1px dashed var(--hair); }
.eq-t { display: inline-flex; flex-direction: column; align-items: center; padding: 2px 6px 3px; border-radius: 5px; background: var(--surface); border: 1px solid var(--hair); min-width: 24px; }
.eq-t > b { font: 700 13.5px/1.15 var(--f-display); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.eq-t > small { font: 500 9.5px/1.2 var(--f-text); color: var(--ink-3); white-space: nowrap; margin-top: 1px; }
.eq-t.attr { border-color: var(--live-bd); background: var(--live-bg); cursor: help; }
.eq-t.attr > b { color: var(--live); }
.eq-t.warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--hair)); background: color-mix(in srgb, var(--warn) 8%, var(--surface)); }
.eq-t.warn > b { color: var(--warn); }
.eq-t.res { border-color: color-mix(in srgb, var(--ink) 28%, var(--hair)); background: color-mix(in srgb, var(--ink) 6%, var(--surface)); }
.eq-t.res > b { color: var(--ink); }
.eq-t.plain { background: transparent; border-color: transparent; padding: 2px 2px 3px; }
.eq-op { display: inline-flex; align-items: center; height: 21px; padding: 0 2px; font: 700 14px/1 var(--f-display); color: var(--ink-2); user-select: none; }
.eq-op.eq-eq { color: var(--live); font-size: 15px; }
.eq-fn { display: inline-flex; align-items: center; height: 21px; padding: 0 1px; font: 700 12.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-2); user-select: none; }
.fx-tbl { display: grid; gap: 3px; }
.fx-r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: baseline; line-height: 1.4; }
.fx-r > span { color: var(--ink-2); }
.fx-r > b { font: 600 12px/1.35 var(--f-display); font-variant-numeric: tabular-nums; color: var(--ink); text-align: right; white-space: nowrap; }
.fx-r > b .ok { color: var(--good); margin-left: 3px; }
.fx-r > b .no { color: var(--crit); margin-left: 3px; }
.try-list { list-style: none; display: grid; gap: 4px; font-size: var(--t-xs); }
.try-list li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 6px; align-items: baseline; line-height: 1.4; }
.try-list .tn { font: 700 10.5px/16px var(--f-display); text-align: center; border-radius: 50%; background: var(--fill); color: var(--ink-3); }
.try-list li.hit .tn { background: var(--live); color: #fff; }
.try-list li.miss .tn { background: color-mix(in srgb, var(--crit) 14%, var(--surface)); color: var(--crit); }
.try-list .tk { color: var(--ink-2); } .try-list li.hit .tk { color: var(--ink); font-weight: 600; }
.try-list .tv { font: 600 12px/1.3 var(--f-display); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; color: var(--ink); }
.inline-q-wrap { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.permit-box { margin-top: 6px; padding: 7px 9px; border: 1px solid var(--hair); border-radius: 7px; background: color-mix(in srgb, var(--fill) 28%, var(--surface)); display: grid; gap: 5px; font-size: var(--t-xs); }
.permit-why { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; line-height: 1.35; }
.permit-why small { font-weight: 500; color: var(--ink-3); }
.attr-chip { display: inline-flex; align-items: center; padding: 0 5px; border-radius: 4px; background: var(--live-bg); border: 1px solid var(--live-bd); color: var(--live); font: 700 12px/1.4 var(--f-display); cursor: help; }
.attr-live-wrap { grid-column: 1 / -1; margin-top: 4px; padding: 7px 9px; border: 1px solid var(--hair); border-radius: 7px; background: var(--surface); display: grid; gap: 6px; font-size: var(--t-xs); }
.attr-live-hd { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.attr-live-hd strong { font-size: 12px; color: var(--ink); }
.attr-live-tbl { width: 100%; border-collapse: collapse; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.attr-live-tbl th { font-weight: 500; color: var(--ink-3); text-align: right; padding: 2px 4px 4px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.attr-live-tbl th:first-child, .attr-live-tbl td:first-child { text-align: left; padding-left: 2px; }
.attr-live-tbl td { padding: 3.5px 4px; border-bottom: 1px solid color-mix(in srgb, var(--hair) 55%, transparent); text-align: right; color: var(--ink-2); white-space: nowrap; }
.attr-live-tbl td:first-child { color: var(--ink); font-weight: 600; }
.attr-live-tbl td.u { font: 700 12.5px/1 var(--f-display); color: var(--live); }
.attr-live-tbl td.use { text-align: left; white-space: normal; font-size: 11px; color: var(--ink-3); max-width: 110px; }
