@font-face { font-family: "Verdict Mono"; src: url(fonts/VerdictMono-Regular.woff2?v=5561f1da) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Verdict Mono"; src: url(fonts/VerdictMono-Medium.woff2?v=8b80f96e) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Verdict Mono"; src: url(fonts/VerdictMono-SemiBold.woff2?v=e51a7bbf) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Verdict Mono"; src: url(fonts/VerdictMono-Bold.woff2?v=ed5a364b) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

@property --sheen { syntax: "<angle>"; inherits: false; initial-value: 158deg; }

:root {
  color-scheme: dark;
  --mono: "Verdict Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --bg: #19191b; --bg-rgb: 25 25 27;
  --surface: #232326;
  --fill: rgb(255 255 255 / .065); --fill-2: rgb(255 255 255 / .1); --fill-3: rgb(255 255 255 / .15);
  --stripe: rgb(255 255 255 / .04); --hover: rgb(255 255 255 / .07);
  --sep: rgb(255 255 255 / .085); --sep-2: rgb(255 255 255 / .14);

  --ink: #f2f2f4; --ink-2: #c2c2c8; --ink-3: #a0a0a8;

  --accent: #e3c27f; --accent-hi: #f4ddb0; --accent-ink: #1c1508; --accent-rgb: 227 194 127;

  --run: #40a2ff; --run-rgb: 64 162 255;
  --pass: #34d35e; --pass-rgb: 52 211 94;
  --fail: #ff5d60; --fail-rgb: 255 93 96;
  --warn: #ffd60a; --warn-rgb: 255 214 10;
  --pend: #a9a9b1;
  --del: #6f6f78;

  --inset: 10px; --gut: 24px;
  --tb-h: 52px; --edge-h: calc(var(--inset) * 2 + var(--tb-h));
  --r-card: 18px;

  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; font-feature-settings: "calt" 0, "liga" 0, "tnum" 1 !important; }
html { background: var(--bg); color: var(--ink); font: 400 12.5px/1.4 var(--mono); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  scroll-padding-top: calc(var(--edge-h) + 40px); }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.dim { color: var(--ink-3); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 15px; height: 15px; } .ico-xs { width: 12px; height: 12px; stroke-width: 2.1; }
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 8px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; border-radius: 6px; }
.content:focus { outline: none; }
html .phone-only { display: none; }
.page-shell { display: contents; }
.dot-sep { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55; margin: 0 7px; vertical-align: middle; }

.error-message, .warning-message, .status-message { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--surface); color: var(--ink);
  box-shadow: inset 3px 0 0 var(--c, var(--ink-3)), inset 0 .5px 0 rgb(255 255 255 / .05); }
.error-message { --c: var(--fail); background: rgb(var(--fail-rgb) / .1); } .warning-message { --c: var(--warn); background: rgb(var(--warn-rgb) / .08); } .status-message { --c: var(--pass); background: rgb(var(--pass-rgb) / .08); }
:is(.error-message, .warning-message, .status-message) pre { margin: 0; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.sheet-body > .error-message { margin: 0 4px 14px; }

.glass { position: relative; z-index: 0; color: var(--ink);
  --g-tint: rgb(52 52 58 / .42); --g-blur: 16px; --g-sat: 1.9; --g-hi: .62; --g-lo: .16;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / calc(var(--g-hi) * .5)),
    inset 0 -1px 0 rgb(255 255 255 / var(--g-lo)),
    inset 0 0 0 .5px rgb(255 255 255 / .06),
    inset 0 10px 18px -12px rgb(255 255 255 / .09),
    0 0 0 .5px rgb(0 0 0 / .6),
    0 2px 5px rgb(0 0 0 / .22),
    0 14px 32px -10px rgb(0 0 0 / .55);
}
.glass::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / .075), rgb(255 255 255 / .018) 46%, rgb(255 255 255 / .04)), var(--g-tint);
  -webkit-backdrop-filter: blur(var(--g-blur)) saturate(var(--g-sat)) brightness(1.05);
  backdrop-filter: blur(var(--g-blur)) saturate(var(--g-sat)) brightness(1.05); }
.lg-lens .glass[style*="--lens"]::before { -webkit-backdrop-filter: var(--lens); backdrop-filter: var(--lens); }
.glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(var(--sheen),
    rgb(255 255 255 / var(--g-hi)) 0%, rgb(255 255 255 / .2) 14%, rgb(255 255 255 / .06) 36%,
    rgb(255 255 255 / .05) 64%, rgb(255 255 255 / .16) 86%, rgb(255 255 255 / calc(var(--g-hi) * .7)) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: --sheen .9s var(--ease); }
.glass-lg { --g-tint: rgb(44 44 50 / .5); --g-blur: 26px; --g-hi: .52; --g-lo: .12; }
.glass.tinted { color: var(--accent-ink); --g-hi: .85; --g-lo: .3;
  --g-tint: linear-gradient(180deg, rgb(246 222 170 / .94), rgb(222 186 116 / .92)); }
.glass.tinted::before { background: linear-gradient(180deg, rgb(255 255 255 / .22), rgb(255 255 255 / 0) 55%), var(--g-tint); }

.brand { display: inline-flex; align-items: center; gap: 9px; font: 600 15px/1 var(--mono); letter-spacing: 0; }
.brand img { border-radius: 7px; box-shadow: 0 1px 2px rgb(0 0 0 / .4); }

.toolbar { position: fixed; z-index: 30; top: var(--inset); left: var(--gut); right: var(--gut); height: var(--tb-h);
  display: flex; align-items: center; gap: 12px; pointer-events: none; }
.toolbar > * { pointer-events: auto; }
.tb-title { min-width: 0; }
.large-title { letter-spacing: -.015em; }
.tb-title h1 { font: 700 17px/1.2 var(--mono); letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub { font-size: 12px; color: var(--ink-2); white-space: nowrap; display: flex; align-items: center; }
.sub a:hover { color: var(--ink); }
.sub-more { display: inline-flex; align-items: center; min-width: 0; }
.live-state { display: inline-flex; align-items: center; gap: 6px; }
.live-mirror { display: none; }
.dots { display: flex; flex-wrap: wrap; align-items: center; --dot-gut: calc(1ch + 6px); margin-left: calc(-1 * var(--dot-gut)); clip-path: inset(-6px -6px -6px calc(var(--dot-gut) - 4px)); }
.dots > :not(.dc), .dots > .dc > * { margin-left: var(--dot-gut); position: relative; white-space: nowrap; }
.dots > .dc { display: contents; }
.dots > :not(.dc)::before, .dots > .dc > *::before { content: "·"; position: absolute; left: calc(-1ch - 3px); margin: 0; color: var(--ink-3); opacity: .8; }
.page-head .sub.dots { row-gap: 2px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pass); box-shadow: 0 0 0 3px rgb(var(--pass-rgb) / .16); animation: ping 2.8s var(--ease) infinite; }
.live-paused .live-dot { background: var(--ink-3); box-shadow: none; animation: none; }
@keyframes ping { 0%, 60%, 100% { box-shadow: 0 0 0 3px rgb(var(--pass-rgb) / .16); } 30% { box-shadow: 0 0 0 5px rgb(var(--pass-rgb) / .05); } }
.tb-items { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.capsule { display: inline-flex; align-items: center; height: 36px; border-radius: 999px; padding: 0 4px; gap: 2px; font-weight: 500;
  transition: transform .35s var(--spring), --sheen .9s var(--ease); }
.capsule.round { width: 36px; justify-content: center; padding: 0; }
.capsule:hover { --sheen: 202deg; }
.capsule:active, .cap-btn:active { transform: scale(1.04); }
.cap-btn { height: 30px; min-width: 32px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--ink); transition: background-color .15s, transform .3s var(--spring); }
.cap-btn:hover { background: var(--fill-2); }
.cap-btn.txt { padding: 0 13px; }
.cap-btn .ico { width: 17px; height: 17px; }
.cap-btn[aria-disabled="true"] { color: var(--ink-2); cursor: default; }
.cap-btn[aria-disabled="true"]:hover { background: none; }
.cap-btn:disabled { opacity: .5; }
.new-btn { anchor-name: --new; padding: 0 12px 0 10px; gap: 6px; font-weight: 600; }
.new-btn .ico { stroke-width: 2.1; }
.new-btn .ico-xs { opacity: .7; margin-left: -1px; }
#live-toggle .fa-solid { display: block; width: 15px; height: 15px; background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
#live-toggle .fa-solid::before { content: none; }
.fa-pause { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='3.5' y='2.5' width='3' height='11' rx='1'/%3E%3Crect x='9.5' y='2.5' width='3' height='11' rx='1'/%3E%3C/svg%3E"); }
.fa-play { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 2.9v10.2a.9.9 0 0 0 1.4.8l7.6-5.1a.9.9 0 0 0 0-1.6L5.9 2.1a.9.9 0 0 0-1.4.8Z'/%3E%3C/svg%3E"); }

.search { anchor-name: --search; gap: 7px; padding: 0 6px 0 12px; width: 210px; color: var(--ink-2); cursor: text; }
.search .ico { width: 16px; height: 16px; }
.search input { flex: 1; min-width: 0; height: auto; padding: 0; background: none; border: 0; outline: 0; box-shadow: none; color: var(--ink); font-size: 13px; }
.search input:focus { box-shadow: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search input::placeholder { color: var(--ink-2); }
.search:focus-within { outline: 2px solid var(--accent-hi); outline-offset: 2px; }

.seg { position: relative; display: inline-flex; align-items: center; }
.seg > button, .seg > label { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 30px; padding: 0 12px;
  border-radius: 999px; color: var(--ink-2); font-weight: 500; white-space: nowrap; cursor: pointer; transition: color .15s; }
.seg > button:hover, .seg > label:hover { color: var(--ink); }
.seg > [aria-pressed="true"], .seg > [aria-selected="true"], .seg > label:has(:checked) { color: var(--ink); }
.seg .n { font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.seg > [aria-pressed="true"] .n { color: var(--ink); }
.seg-thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; width: var(--w, 0); transform: translateX(var(--x, 0)); border-radius: 999px;
  background: var(--fill-3); box-shadow: inset 0 .5px 0 rgb(255 255 255 / .16), 0 1px 3px rgb(0 0 0 / .25); transition: transform .32s var(--spring), width .32s var(--spring); }
.seg:not([data-ready]) > [aria-pressed="true"], .seg:not([data-ready]) > [aria-selected="true"], .seg:not([data-ready]) > label:has(:checked) { background: var(--fill-3); }
.seg-glass { padding: 0 3px; }
.seg-content { background: var(--fill); border-radius: 999px; padding: 2px; }
.seg-content > button, .seg-content > label { height: 28px; }
.seg-content .seg-thumb { top: 2px; bottom: 2px; background: rgb(255 255 255 / .17); }
.seg label input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(:focus-visible) { outline: 2px solid var(--accent-hi); outline-offset: 1px; }
.seg-sm > button { height: 26px; padding: 0 11px; font-size: 12.5px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 999px; font-weight: 500;
  background: var(--fill-2); color: var(--ink); box-shadow: inset 0 .5px 0 rgb(255 255 255 / .1); transition: background-color .15s, transform .3s var(--spring); }
.btn:hover { background: var(--fill-3); }
.btn:active { transform: scale(.97); }
.btn-quiet { background: none; box-shadow: none; color: var(--ink-2); padding: 0 10px; }
.btn-quiet:hover { background: var(--fill); color: var(--ink); }
.btn-prominent { background: linear-gradient(180deg, var(--accent-hi), var(--accent)); color: var(--accent-ink); font-weight: 600; box-shadow: inset 0 .5px 0 rgb(255 255 255 / .5), 0 1px 2px rgb(0 0 0 / .3); }
.btn-prominent:hover { background: linear-gradient(180deg, #f8e6c0, var(--accent-hi)); }
.icon-btn, .icon-button { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--ink-2); transition: background-color .15s, color .15s; }
.icon-btn:hover, .icon-button:hover { background: var(--fill-2); color: var(--ink); }
.icon-btn .ico { width: 17px; height: 17px; }
.icon-button.danger, .icon-button.danger:hover { color: var(--fail); }

.edge { position: fixed; left: 0; right: 0; pointer-events: none; }
.edge-top { top: 0; height: calc(var(--edge-h) + 22px); z-index: 20;
  background: linear-gradient(180deg, rgb(var(--bg-rgb) / .9) 0%, rgb(var(--bg-rgb) / .72) 52%, rgb(var(--bg-rgb) / 0) 100%);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  -webkit-mask: linear-gradient(180deg, #000 55%, transparent); mask: linear-gradient(180deg, #000 55%, transparent);
  opacity: 0; transition: opacity .25s var(--ease); }
html[data-scrolled] .edge-top { opacity: 1; }
.edge-bottom, .tabbar { display: none; }

.content { display: block; padding: calc(var(--edge-h) + 2px) var(--gut) 28px; min-height: 100vh; position: relative; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding: 16px 12px 0; border-top: .5px solid var(--sep); color: var(--ink-3); font-size: 12px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 16px; } .foot a:hover { color: var(--ink); }

.fleet { display: grid; grid-template-columns: 1.55fr 1fr 1.9fr 1.2fr; background: var(--surface); border-radius: 16px; margin: 6px 0 10px;
  box-shadow: inset 0 .5px 0 rgb(255 255 255 / .05); }
.fl { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-content: end; padding: 11px 18px 12px; min-width: 0; position: relative; }
.fl + .fl::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: .5px; background: var(--sep-2); }
.fl-k { grid-column: 1 / -1; font-size: 12px; color: var(--ink-2); }
.fl-v { font: 600 21px/1.25 var(--mono); letter-spacing: 0; white-space: nowrap; }
.fl-v small { font: 500 12px var(--mono); color: var(--ink-2); margin-left: 6px; letter-spacing: 0; }
.fl-v .dot-sep { color: var(--ink-2); } .fl-v .dot-sep + small { margin-left: 0; }
a.fl { border-radius: 0; transition: background-color .15s; } a.fl:hover { background: var(--hover); }
.fl-strip { position: relative; align-self: center; height: 22px; margin-top: 2px; min-width: 120px; }
.fl-axis { position: absolute; left: 0; right: 0; top: 8px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, rgb(var(--fail-rgb) / .45), rgb(255 255 255 / .1) 30% 70%, rgb(var(--pass-rgb) / .45)); }
.fl-zero { position: absolute; left: 50%; top: 4px; width: 1px; height: 12px; background: rgb(255 255 255 / .35); }
.fl-dot { position: absolute; top: 5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; border: 2px solid var(--surface); }
.fl-dot.neg { background: var(--fail); } .fl-dot.pos { background: var(--pass); }

.trow { display: grid; grid-template-columns: var(--cols); grid-template-rows: auto auto 16px; align-content: center; column-gap: 16px; align-items: center; }
.trow > * { grid-row: 1 / -1; }
:root { --cols: 20px minmax(180px, 1.2fr) minmax(150px, .9fr) minmax(124px, .7fr) minmax(150px, .9fr) minmax(110px, 1.15fr) 28px; }
.wl .w { grid-column: 1; justify-self: start; color: var(--pass); } .wl .d { grid-column: 2; color: var(--ink-2); } .wl .l { grid-column: 3; justify-self: end; color: var(--fail); }

.tgroup { margin-top: 4px; }
.tgroup-head { display: flex; align-items: baseline; gap: 8px; padding: 15px 12px 6px; }
.tgroup-head h2 { font: 700 15px/1.2 var(--mono); letter-spacing: 0; }
.tgroup-head .count { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.tgroup-note { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.tsub { padding: 8px 12px 3px; font-size: 12px; font-weight: 600; color: var(--ink-3); }

.trow { position: relative; min-height: 50px; padding: 5px 12px; border-radius: 10px; transition: background-color .12s; }
.tlist > .trow:nth-child(odd of .trow) { background: var(--stripe); }
.tlist > .trow:hover { background: var(--hover); }
.t-name { font-weight: 600; font-size: 13.5px; letter-spacing: 0; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-name::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.t-name:focus-visible { outline: none; }
.t-name:focus-visible::after { outline: 2px solid var(--accent-hi); outline-offset: -2px; }
.c-id { min-width: 0; }
.t-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.t-head .t-name { min-width: 0; flex: 0 1 auto; }
.tbadge { flex: none; display: inline-flex; align-items: center; height: 17px; padding: 0 6px; border-radius: 5px; font-size: 10.5px; font-weight: 600; line-height: 1;
  background: var(--fill-2); color: var(--ink-2); position: relative; z-index: 1; }
.tbadge.odds { background: rgb(var(--warn-rgb) / .14); color: var(--warn); }
.tbadge.err { background: rgb(var(--fail-rgb) / .18); color: #ff8a8c; min-width: 17px; justify-content: center; padding: 0; }
.t-meta { display: flex; flex-wrap: wrap; gap: 0; font-size: 11px; color: var(--ink-3); white-space: nowrap; margin-top: 1px; }
.t-meta a { position: relative; z-index: 1; } .t-meta a:hover { color: var(--ink); }
.c-cmp { position: relative; z-index: 1; width: 28px; height: 28px; color: var(--ink-3); opacity: .8; }
.trow:hover .c-cmp { opacity: 1; }
.c-note { font-size: 12.5px; line-height: 1.3; color: var(--ink-2); min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.c-note.is-nil { color: var(--ink-3); }
.t-note-inline { display: none; }

.st { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; flex: none; }
.st svg { width: 14px; height: 14px; fill: none; stroke: #0f0f10; stroke-width: 2.4; stroke-linecap: round; }
.st-running { border: 2px solid var(--run); } .st-running::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--run); }
.st-pending { border: 2px dashed var(--pend); }
.st-passed { background: var(--pass); } .st-failed { background: var(--fail); } .st-yellow { background: var(--warn); }
.st-deleted { border: 2px solid var(--del); } .st-deleted svg { stroke: var(--del); }
.st-stopped, .st-finished { background: var(--ink-3); } .st-stopped svg rect { fill: #0f0f10; stroke: none; }

.c-llr, .c-elo, .c-games { min-width: 0; display: grid; grid-template-rows: subgrid; align-self: stretch; }
.c-top { align-self: end; } :is(.c-llr, .c-elo, .c-games) > :is(.track, .ci, .wdl) { align-self: start; }
.c-top { display: flex; align-items: baseline; justify-content: center; justify-content: safe center; gap: 0 8px; white-space: nowrap; text-align: center; }
.c-top b { font-weight: 600; font-size: 13px; }
.c-aside { font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.c-top:has(.c-word) { flex-wrap: wrap; row-gap: 0; }
.c-top .c-word { overflow: visible; text-overflow: clip; }
.c-elo .c-word { white-space: normal; }
.trow.is-running .c-llr .c-aside { color: var(--ink-2); }
.track { position: relative; height: 4px; margin-top: 6px; border-radius: 2px; background: rgb(255 255 255 / .09); }
.track .mid { position: absolute; left: var(--zero, 50%); top: -3px; bottom: -3px; width: 1px; background: rgb(255 255 255 / .32); }
.track .fill { position: absolute; top: 0; bottom: 0; border-radius: 2px; }
.track-llr .fill { left: min(var(--zero), var(--at)); right: calc(100% - max(var(--zero), var(--at))); }
.dir-down .fill { background: linear-gradient(90deg, var(--fail), rgb(var(--fail-rgb) / .35)); }
.dir-up .fill { background: linear-gradient(90deg, rgb(var(--pass-rgb) / .35), var(--pass)); }
.track .knob { position: absolute; top: 50%; left: var(--at); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #f4f4f6; box-shadow: 0 0 0 2px var(--bg), 0 1px 3px rgb(0 0 0 / .5); }
.dir-down .knob { background: var(--fail); } .dir-up .knob { background: var(--pass); }
.dir-flat .knob { background: var(--pend); }
.dir-warn .fill { background: linear-gradient(90deg, var(--warn), rgb(var(--warn-rgb) / .35)); } .dir-warn .knob { background: var(--warn); }
.is-pending .track { opacity: .7; }
.track-progress .fill { left: 0; background: linear-gradient(90deg, rgb(var(--run-rgb) / .45), var(--run)); }
.c-llr .c-top b { color: var(--ink); }
.c-llr:has(.track-progress) > .c-top { container-type: inline-size; }
.c-llr:has(.track-progress) .c-top b { font-size: clamp(11px, 10.3cqi, 13px); }
.trow.is-passed .c-llr b { color: var(--pass); } .trow.is-failed .c-llr b { color: var(--fail); } .trow.is-yellow .c-llr b { color: var(--warn); }
.trow.is-stopped .c-llr b, .trow.is-finished .c-llr b { color: var(--ink-2); }
.trow .c-llr:has(.track-progress) .c-top b, .trow .c-games:has(.wdl .g) .c-top b { color: var(--run); }

.ci { position: relative; height: 4px; margin-top: 6px; border-radius: 2px; background: rgb(255 255 255 / .07); }
.ci .zero { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: rgb(255 255 255 / .32); }
.ci .bar { position: absolute; top: 0; bottom: 0; left: var(--lo); right: calc(100% - var(--hi)); border-radius: 2px; background: rgb(255 255 255 / .42); }
.ci.pos .bar { background: rgb(var(--pass-rgb) / .7); } .ci.neg .bar { background: rgb(var(--fail-rgb) / .7); }
.ci .dot { position: absolute; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #f4f4f6; box-shadow: 0 0 0 2px var(--bg); }
.ci.over-hi .bar { border-radius: 2px 0 0 2px; } .ci.over-hi::after { content: ""; position: absolute; right: -6px; top: -3px; border: 5px solid transparent; border-left: 6px solid rgb(var(--pass-rgb) / .8); border-right: 0; }
.ci.over-lo .bar { border-radius: 0 2px 2px 0; } .ci.over-lo::before { content: ""; position: absolute; left: -6px; top: -3px; border: 5px solid transparent; border-right: 6px solid rgb(var(--fail-rgb) / .8); border-left: 0; }
.ci.over-lo.over-hi .bar { border-radius: 0; }
.c-elo.is-empty b, .c-elo.is-empty .c-aside, .c-llr.is-empty .c-top b { color: var(--ink-3); }

.wdl { display: flex; height: 4px; margin-top: 6px; border-radius: 2px; overflow: hidden; background: rgb(255 255 255 / .07); gap: 1px; }
.wdl .w { background: var(--pass); } .wdl .d { background: rgb(255 255 255 / .28); } .wdl .l { background: var(--fail); }
.wdl .g { background: var(--run); }
.c-games .wl { container: games / inline-size; display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 6px; margin-top: 3px; font-size: 11.5px; line-height: 13px; white-space: nowrap; }
.wl > span { font-size: min(11.5px, calc(((100cqi - 12px) / (2 * var(--ns) + var(--nd)) - .6px) / .61)); }
@container games (max-width: 139px) { .wl .d { display: none; } }
@container games (max-width: 179px) { .wl.is-long .d { display: none; } }
@container games (max-width: 139px) { .wl > span { font-size: min(11.5px, calc(((100cqi - 12px) / (2 * var(--ns)) - .6px) / .61)); } }
@container games (max-width: 179px) { .wl.is-long > span { font-size: min(11.5px, calc(((100cqi - 12px) / (2 * var(--ns)) - .6px) / .61)); } }
@container games (max-width: 100px) { .wl > * { visibility: hidden; } }

.c-penta { display: flex; align-items: flex-end; gap: 2px; height: 24px; }
.c-penta i { flex: 1; min-height: 2px; border-radius: 1.5px 1.5px 0 0; }
.c-penta .p0 { background: var(--fail); } .c-penta .p1 { background: rgb(var(--fail-rgb) / .55); } .c-penta .p2 { background: rgb(255 255 255 / .4); }
.c-penta .p3 { background: rgb(var(--pass-rgb) / .55); } .c-penta .p4 { background: var(--pass); }
.c-penta.sm { height: 16px; width: 40px; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 18px 0 2px; }
.pagination .pages { display: flex; gap: 4px; }
.pagination .page { min-width: 32px; height: 32px; padding: 0 9px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--fill); color: var(--ink-2); font-size: 13px; }
.pagination a.page:hover { background: var(--fill-3); color: var(--ink); }
.pagination .page.current { background: var(--fill-3); color: var(--ink); font-weight: 600; }
.pagination .page.ellipsis { background: none; min-width: 20px; padding: 0; }
.pagination .page .ico { width: 14px; height: 14px; }
.pagination .page.is-off { opacity: .4; pointer-events: none; }
.tempty { margin: 0; padding: 12px 12px 8px; color: var(--ink-3); }
.tempty a { color: var(--accent); }

[hidden] { display: none !important; }
[data-filter-on="active"] .tgroup:not([data-group="active"]), [data-filter-on="pending"] .tgroup:not([data-group="pending"]), [data-filter-on="finished"] .tgroup:not([data-group="finished"]) { display: none; }

.menu { position: fixed; inset: auto; margin: 0; padding: 6px; min-width: 232px; border: 0; border-radius: 18px; overflow: visible;
  --g-tint: rgb(40 40 46 / .62); --g-blur: 24px; --g-hi: .45; color: var(--ink); }
.menu:popover-open { display: grid; animation: menu-in .22s var(--spring); transform-origin: var(--origin, top right); }
@keyframes menu-in { from { opacity: 0; transform: scale(.92); } }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: 12px; font-size: 13px; font-weight: 500; text-align: left; width: 100%; }
.menu .ico { width: 17px; height: 17px; color: var(--ink-2); }
.menu a:hover, .menu button:hover, .menu a:focus-visible, .menu button:focus-visible { background: var(--accent); color: var(--accent-ink); outline: none; }
.menu a:hover .ico, .menu button:hover .ico, .menu :focus-visible .ico { color: var(--accent-ink); }
.menu .danger { color: var(--fail); } .menu .danger .ico { color: var(--fail); }
.menu .danger:hover { background: var(--fail); color: #1a0b0b; } .menu .danger:hover .ico { color: #1a0b0b; }
.menu hr { border: 0; height: .5px; background: var(--sep-2); margin: 5px 10px; }
.menu [aria-disabled="true"] { color: var(--ink-3); pointer-events: none; } .menu [aria-disabled="true"] .ico { opacity: .5; }
.menu-live { display: contents; }
#new-menu { position-anchor: --new; top: anchor(bottom); right: anchor(right); margin-top: 8px; --origin: top right; }
.tb-account { anchor-name: --acct-top; display: none; }
.nav-account, .tb-account { padding: 0 14px; font-weight: 500; }
.nav-login + .nav-login { margin-left: -2px; }
.menu-phone { display: none; }
#search-pop { position-anchor: --search; top: anchor(bottom); left: anchor(left); margin-top: 8px; width: 340px; --origin: top left; }
.pop-label { font: 600 11px/1 var(--mono); color: var(--ink-3); padding: 8px 10px 6px; }
#search-pop a { height: auto; min-height: 34px; padding: 5px 10px; }
#search-pop .st { width: 15px; height: 15px; } #search-pop .st svg { width: 11px; height: 11px; }
.pop-name { display: grid; line-height: 1.25; min-width: 0; } .pop-name small { font-size: 11.5px; color: var(--ink-3); font-weight: 400; }
#search-pop a:hover .pop-name small { color: rgb(28 21 8 / .75); }
.pop-name mark { background: none; color: var(--accent); font-weight: 700; }
#search-pop a:hover mark { color: var(--accent-ink); text-decoration: underline; }
#test-menu { position-anchor: --more; top: anchor(bottom); right: anchor(right); margin-top: 8px; }
.more-btn { anchor-name: --more; }

.hero { position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: 460px; pointer-events: none;
  background: radial-gradient(60% 90% at 70% 0%, var(--hero-glow), transparent 70%), linear-gradient(180deg, var(--hero-top) 0%, var(--hero-mid) 38%, var(--bg) 100%); }
.tone-fail { --hero-glow: rgb(255 93 96 / .13); --hero-top: #2b1f20; --hero-mid: #241d1e; }
.tone-pass { --hero-glow: rgb(52 211 94 / .11); --hero-top: #1c2620; --hero-mid: #1d221f; }
.tone-warn { --hero-glow: rgb(255 214 10 / .1); --hero-top: #27241a; --hero-mid: #22201b; }
.tone-neutral { --hero-glow: rgb(255 255 255 / .045); --hero-top: #232326; --hero-mid: #1f1f22; }

.verdict { padding: 18px 12px 26px; }
.v-eyebrow { display: flex; align-items: center; gap: 0; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.v-eyebrow .st { margin-right: 8px; width: 15px; height: 15px; } .v-eyebrow .st svg { width: 11px; height: 11px; } .v-eyebrow .st-running::after { width: 5px; height: 5px; }
.v-state { color: var(--run); font-weight: 600; }
.is-passed .v-state { color: var(--pass); } .is-failed .v-state { color: var(--fail); } .is-yellow .v-state { color: var(--warn); }
.is-pending .v-state { color: var(--pend); } .is-stopped .v-state, .is-finished .v-state, .is-deleted .v-state { color: var(--ink-2); }
.v-title { font: 700 40px/1.08 var(--mono); letter-spacing: -.02em; margin: 10px 0 10px; }
.v-title em { font-style: normal; }
.to-fail { color: var(--fail); } .to-pass { color: var(--pass); } .to-warn { color: var(--warn); } .to-neutral { color: var(--ink); }
.gauge { margin-top: 24px; padding: 0 2px; }
.g-ends { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); }
.g-ends > span { display: inline-flex; align-items: baseline; gap: 6px; } .g-ends b { color: var(--ink); font-weight: 600; }
.g-track { position: relative; height: 10px; margin: 14px 0 12px; border-radius: 5px;
  background: rgb(255 255 255 / .08); box-shadow: inset 0 1px 2px rgb(0 0 0 / .35); }
.g-fill { position: absolute; top: 0; bottom: 0; left: min(var(--zero, 0%), var(--at)); right: calc(100% - max(var(--zero, 0%), var(--at))); border-radius: 5px; }
.v-tone-fail .g-fill, .gauge.dir-down .g-fill { background: linear-gradient(90deg, var(--fail), rgb(var(--fail-rgb) / .55)); }
.v-tone-warn .g-fill { background: linear-gradient(90deg, var(--warn), rgb(var(--warn-rgb) / .55)); }
.verdict.v-progress .g-fill { left: 0; right: calc(100% - var(--at)); background: linear-gradient(90deg, rgb(var(--run-rgb) / .45), var(--run)); }
.v-tone-pass .g-fill, .gauge.dir-up .g-fill { background: linear-gradient(90deg, rgb(var(--pass-rgb) / .55), var(--pass)); }
.g-tick { position: absolute; top: 2px; bottom: 2px; width: 1px; background: rgb(255 255 255 / .2); }
.g-zero { top: -4px; bottom: -4px; background: rgb(255 255 255 / .55); }
.g-knob { --kw: calc(var(--n, 6) * 1ch + 18px); position: absolute; top: 50%; left: clamp(calc(var(--kw) / 2 + 3px), var(--at), calc(100% - var(--kw) / 2 - 3px));
  min-width: var(--kw); height: 24px; padding: 0 9px; transform: translate(-50%, -50%); border-radius: 999px; display: grid; place-items: center;
  background: #f6f6f8; color: #19191b; font-weight: 700; font-size: 12.5px; white-space: nowrap;
  box-shadow: 0 0 0 2.5px var(--knob, rgb(var(--fail-rgb))), 0 0 0 5px rgb(var(--bg-rgb) / .6), 0 3px 10px rgb(0 0 0 / .45); }
.v-tone-pass { --knob: rgb(var(--pass-rgb)); } .v-tone-warn { --knob: rgb(var(--warn-rgb)); } .v-tone-neutral { --knob: rgb(255 255 255 / .55); }
.verdict.v-progress { --knob: rgb(var(--run-rgb)); }
.v-progress .v-title em { color: var(--run); }
.g-scale { position: relative; height: 16px; margin-top: 0; font-size: 11px; color: var(--ink-3); }
.g-scale span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.g-scale span:first-child { transform: none; } .g-scale span:last-child { transform: translateX(-100%); }

.card { background: var(--surface); border-radius: var(--r-card); box-shadow: inset 0 .5px 0 rgb(255 255 255 / .05); }
.card-head { display: flex; align-items: center; gap: 12px; min-height: 30px; margin-bottom: 10px; }
.card-head h2 { font: 700 15px/1.2 var(--mono); letter-spacing: 0; }
.card-head .meta { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.card-head .seg, .card-head .btn { margin-left: auto; }
.card-head .meta a:hover { color: var(--ink); }
.metrics { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 12px; }
.metric { padding: 16px 18px 16px; display: flex; flex-direction: column; min-width: 0; }
.m-k { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.m-v { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.m-v b { font: 700 30px/1.1 var(--mono); letter-spacing: -.015em; }
.m-v span { color: var(--ink-2); font-size: 14px; }
.hyp { position: relative; height: 62px; margin-top: auto; padding-top: 18px; }
.hyp-axis { position: absolute; left: 0; right: 0; top: 36px; height: 1px; background: var(--sep-2); }
.hyp-axis i { position: absolute; top: -3px; width: 1px; height: 7px; background: var(--sep-2); }
.hyp-h { position: absolute; top: 14px; bottom: 20px; width: 0; border-left: 1px dashed rgb(255 255 255 / .3); }
.hyp-h span { position: absolute; top: -14px; left: 0; transform: translateX(-50%); font-size: 11px; font-style: normal; color: var(--ink-3); white-space: nowrap; }
.hyp-h.h1 { border-left-color: rgb(var(--pass-rgb) / .55); } .hyp-h.h1 span { color: var(--pass); }
.hyp-bar { position: absolute; top: 33px; height: 6px; border-radius: 3px; background: rgb(255 255 255 / .4); }
.hyp-dot { position: absolute; top: 31px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--surface); }
.hyp-scale { position: absolute; left: 0; right: 0; top: 44px; font-size: 11px; color: var(--ink-3); }
.hyp-scale span { position: absolute; transform: translateX(-50%); }
.wdl-lg { height: 8px; border-radius: 4px; margin-top: 14px; gap: 2px; }
.metric .wdl-lg { margin-top: auto; } .metric .m-v:has(+ .wdl-lg) { margin-bottom: 14px; }
.wld { display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 10px; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.wld .w { grid-column: 1; justify-self: start; color: var(--pass); } .wld .d { grid-column: 2; color: var(--ink-2); } .wld .l { grid-column: 3; justify-self: end; color: var(--fail); }
.wld.is-empty :is(.w, .l) { color: var(--ink-2); }
.penta-lg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: end; height: 118px; margin-top: 10px; }
.pcol { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 5px; }
.pcol i { width: 100%; max-width: 46px; border-radius: 6px 6px 2px 2px; min-height: 4px; }
.pcol .p0 { background: var(--fail); } .pcol .p1 { background: rgb(var(--fail-rgb) / .55); } .pcol .p2 { background: rgb(255 255 255 / .38); } .pcol .p3 { background: rgb(var(--pass-rgb) / .55); } .pcol .p4 { background: var(--pass); }
.penta-lg.is-empty i { background: rgb(255 255 255 / .38); }
.pv { font-size: 12px; font-weight: 600; } .pl { font-size: 11px; color: var(--ink-3); }

.chart-card { padding: 16px 18px 12px; margin-top: 12px; }
.chart { height: 290px; }
.chart svg { display: block; width: 100%; height: 100%; font: 11px var(--mono); fill: var(--ink-3); }
.chart:focus-visible { outline-offset: 4px; border-radius: 8px; }
.chart-readout { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.card.spsa { padding: 8px 18px 12px; margin-top: 12px; }
.spsa-table th, .spsa-table td { white-space: nowrap; }
.spsa-table tbody td { text-align: right; } .spsa-table tbody td:first-child { text-align: left; }
.btn-wide { width: 100%; justify-content: center; }

.split { display: grid; grid-template-columns: 1.45fr 1fr; gap: 12px; margin-top: 12px; align-items: start; }
.split-side { display: grid; gap: 12px; }
.cfg, .edit, .statblock, .sum, .mach { padding: 16px 18px; }
.table-scroll { position: relative; overflow-x: auto; overscroll-behavior-x: contain; }
.dtable, :where(.panel) table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dtable :is(th, td), :where(.panel) :where(th, td) { text-align: left; padding: 8px 10px; border-bottom: .5px solid var(--sep); vertical-align: middle; }
.dtable thead th { font-size: 11.5px; font-weight: 500; color: var(--ink-3); padding-top: 4px; padding-bottom: 6px; border-bottom-color: var(--sep-2); }
.dtable tbody th { font-weight: 500; color: var(--ink-2); }
.dtable tbody tr:last-child > * { border-bottom: 0; }
.dtable .r { text-align: right; }
.dtable tbody tr:nth-child(even) > * { background: var(--stripe); }
.dtable tr.active-highlight > th { box-shadow: inset 3px 0 0 var(--pass); }
.cmp-table tbody th { width: 120px; }
.cmp-table tr.differs th { box-shadow: inset 2px 0 0 var(--accent); }
.side { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); }
.side::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.side-dev::before { background: var(--accent); } .side-base::before { background: var(--ink-3); }
.sha { font-family: var(--mono); font-size: 12px; color: var(--accent); border-bottom: 1px dotted rgb(var(--accent-rgb) / .5); }
.delta { font-size: 11.5px; color: var(--warn); margin-left: 4px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-top: 14px; padding: 14px 10px 4px; border-top: .5px solid var(--sep); }
.kv dt { font-size: 11.5px; color: var(--ink-3); } .kv dd { margin-top: 2px; }
.kv a { color: var(--accent); }
.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.field { display: grid; gap: 5px; font-size: 12px; color: var(--ink-3); }
.field-wide { grid-column: 1 / -1; }
.edit-foot { display: flex; justify-content: flex-end; margin-top: 12px; }
input, select, textarea { background: var(--fill); border: 0; border-radius: 8px; height: 30px; padding: 0 10px; min-width: 0; width: 100%;
  box-shadow: inset 0 0 0 .5px rgb(255 255 255 / .1), inset 0 1px 1px rgb(0 0 0 / .2); color: var(--ink); font-size: 13px; transition: box-shadow .15s; }
textarea { height: auto; padding: 7px 10px; resize: vertical; line-height: 1.4; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / .8), 0 0 0 3.5px rgb(var(--accent-rgb) / .3); }
select { appearance: none; padding-right: 28px; cursor: pointer;
  background: var(--fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16' fill='none' stroke='%23c2c2c8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 6 3-3 3 3M3 10l3 3 3-3'/%3E%3C/svg%3E") right 9px center / 10px 14px no-repeat; }
select option { background: #2a2a2e; }
.statblock pre { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgb(0 0 0 / .25); font: 12px/1.6 var(--mono); color: var(--ink-2); overflow-x: auto; box-shadow: inset 0 0 0 .5px var(--sep); }
[data-done] { color: var(--pass) !important; }
.sum, .mach { margin-top: 12px; }

.share { display: inline-block; vertical-align: middle; width: 120px; height: 5px; border-radius: 3px; background: rgb(255 255 255 / .08); overflow: hidden; margin-right: 10px; }
.share i { display: block; height: 100%; background: var(--run); border-radius: 3px; }
.share-n { color: var(--ink-2); font-size: 12px; }
.elo-inline { display: flex; align-items: center; gap: 12px; } .elo-inline > span { min-width: 108px; } .elo-inline .ci { flex: 1; max-width: 140px; margin: 0; }
.penta-row { display: flex; align-items: center; gap: 10px; } .penta-row .dim { font-size: 12px; }
.sum .penta-row .num { white-space: nowrap; }
#summary-container { overflow-x: auto; }
.mach-id { display: inline-flex; align-items: center; gap: 8px; }
.dtable .warn { color: var(--warn); }

html.p-new { overflow: hidden; }
.p-new .behind { pointer-events: none; }
.scrim { position: fixed; inset: 0; z-index: 50; background: rgb(0 0 0 / .42); }
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 58px var(--gut) 18px; overflow: hidden; }
.sheet { width: min(640px, 100%); max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); display: flex; flex-direction: column; border-radius: 28px;
  --lab: 136px; --g-tint: rgb(36 36 41 / .86); --g-blur: 40px; --g-hi: .45; --g-lo: .1;
  box-shadow: inset 0 1px 1px -.5px rgb(255 255 255 / .3), 0 0 0 .5px rgb(0 0 0 / .6), 0 24px 70px rgb(0 0 0 / .55), 0 4px 14px rgb(0 0 0 / .3); }
.sheet-form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 16px 24px 6px; transition: box-shadow .2s var(--ease); }
.sheet[data-scrolled] .sheet-head { box-shadow: 0 .5px 0 var(--sep-2); position: relative; z-index: 1; }
.sheet-title h1 { font: 700 20px/1.2 var(--mono); letter-spacing: 0; }
.sheet-title .sub { margin-top: 2px; font-size: 12.5px; color: var(--ink-2); white-space: normal; }
.sheet-x, .sheet-ok, .grabber { display: none; }
.sheet-body { overflow: auto; padding: 0 24px 16px; flex: 1; min-height: 0; scrollbar-width: thin; overscroll-behavior: contain; }
.fsec { margin-top: 10px; }
.h-legend { display: grid; grid-template-columns: calc(var(--lab) + 10px) 1fr 1fr; column-gap: 12px; align-items: baseline; }
.h-legend .legend { display: contents; }
.h-legend .side { font-size: 12px; font-weight: 600; }
.fsec h2 { font: 600 13px/1.3 var(--mono); color: var(--ink); margin: 0 0 6px 4px; }
.fsec h2 .dim { font-weight: 400; }
.fgroup { background: rgb(255 255 255 / .045); border-radius: 14px; box-shadow: inset 0 .5px 0 rgb(255 255 255 / .06); padding: 0 14px; }
.frow { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); align-items: center; gap: 14px; min-height: 42px; padding: 5px 0; }
.frow + .frow, .prow + .prow, .fgroup > div + .frow { border-top: .5px solid var(--sep); }
.flabel, .plabel { display: grid; font-size: 13px; color: var(--ink); font-weight: 500; }
.flabel small, .plabel small { font-size: 11.5px; color: var(--ink-3); font-weight: 400; }
.fctl { min-width: 0; display: flex; }
.fctl > .seg { width: 100%; }
.fctl > .seg > label { flex: 1; }
.ui-proxy { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.prow { display: grid; grid-template-columns: var(--lab) 1fr 1fr; gap: 12px; align-items: center; min-height: 42px; padding: 5px 0; }
.prow-wide .pcell { grid-column: 2 / -1; }
.prow-wide textarea { resize: none; }
.phead { min-height: 26px; padding: 8px 0 0; }
.phead + .prow { border-top: 0; }
.presets .frow { grid-template-columns: var(--lab) minmax(0, 1fr); }
.presets .seg-fill { width: 100%; border-radius: 12px; }
.presets .seg-fill .seg-thumb, .presets .seg-fill > label { border-radius: 10px; }
.presets .seg-fill > label { flex: 1; gap: 6px; height: 30px; padding: 0 8px; min-width: 0; }
.presets .seg-fill > label small { font-size: 11.5px; color: var(--ink-2); font-weight: 400; }
.presets .seg-fill > label:has(:checked) small { color: var(--ink); }
.sheet-form[data-mode="GAMES"] .row-sprt, .sheet-form:not([data-mode="GAMES"]) .row-games { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0; }
.chip-btn { height: 28px; padding: 0 12px; border-radius: 999px; background: var(--fill-2); font-size: 12.5px; }
.chip-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.notes { padding: 6px; } .notes textarea { box-shadow: none; background: transparent; resize: none; }
.sheet-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 24px 14px; border-top: .5px solid var(--sep-2); background: rgb(30 30 34 / .55); border-radius: 0 0 28px 28px; }
.sheet-foot .btn { height: 32px; padding: 0 18px; flex: none; }

.discs { padding: 0 14px; }
.disc + .disc { border-top: .5px solid var(--sep); }
.disc summary { display: grid; grid-template-columns: minmax(0, 1fr) 10px; align-items: center; gap: 14px; min-height: 40px; cursor: pointer; list-style: none; border-radius: 10px; }
.disc summary::-webkit-details-marker { display: none; }
@media (min-width: 701px) { .sheet-a .disc summary { min-height: 36px; } }
.disc summary:focus-visible { outline-offset: -2px; }
.disc-k { font-weight: 500; }
.disc-chev { width: 10px; height: 10px; color: var(--ink-3); transition: transform .2s var(--ease); }
.disc[open] .disc-chev { transform: rotate(90deg); }
.disc summary:hover .disc-chev { color: var(--ink-2); }
.disc-body { border-top: .5px solid var(--sep); padding-bottom: 4px; }
.disc-body.pairs .phead { padding-top: 6px; }

.prow.stack { grid-template-columns: var(--lab) 1fr; row-gap: 6px; } .stack .plabel { grid-row: span 2; }
.stack .pcell { display: flex; align-items: center; gap: 8px; } .stack .pcell::before { content: attr(data-side); width: 34px; flex: none; font-size: 11.5px; color: var(--ink-3); }

@media (max-width: 700px) {
  .sheet-wrap { padding: 10px 0 0; place-items: end stretch; }
  .sheet { width: 100%; height: calc(100vh - 10px); height: calc(100dvh - 10px); max-height: none; border-radius: 30px 30px 0 0; }
  .grabber { display: block; position: absolute; top: 6px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: rgb(255 255 255 / .28); }
  .sheet-head { padding: 20px 14px 8px; }
  .sheet-x, .sheet-ok { display: inline-grid; width: 40px; height: 40px; background: var(--fill-2); color: var(--ink); flex: none; }
  .sheet-ok { background: linear-gradient(180deg, var(--accent-hi), var(--accent)); color: var(--accent-ink); }
  .sheet-title { flex: 1; text-align: center; min-width: 0; } .sheet-title h1 { font-size: 17px; } .sheet-title .sub { display: none; }
  .sheet-body { padding: 0 14px 28px; }
  .sheet-foot { display: none; }
  .frow, .presets .frow { grid-template-columns: 1fr; gap: 6px; }
  .presets .seg-fill > label { flex-direction: column; gap: 0; height: 40px; line-height: 1.15; padding: 0 4px; }
  .presets .seg-fill > label small { font-size: 11px; }
  .prow { grid-template-columns: 1fr 1fr; } .prow .plabel { grid-column: 1 / -1; } .phead { display: none; }
  .prow .pcell::before { content: attr(data-side); display: block; font-size: 11px; color: var(--ink-3); margin-bottom: 3px; }
  .prow.stack { grid-template-columns: 1fr; } .stack .plabel { grid-row: auto; } .stack .pcell { display: block; } .stack .pcell::before { width: auto; }
  .h-legend { display: block; } .h-legend .legend { display: none; }
  .prow-wide .pcell { grid-column: 1 / -1; } .prow-wide .pcell::before { display: none; }
}
@media (max-width: 420px) {
  .presets .seg-fill > label { white-space: normal; text-align: center; line-height: 1.15; height: auto; min-height: 30px; padding: 5px 4px; overflow-wrap: anywhere; }
}

@media (max-width: 1300px) {
  :root { --cols: 20px minmax(180px, 1.25fr) minmax(140px, .9fr) minmax(116px, .72fr) minmax(140px, .82fr) minmax(110px, .95fr) 28px; }
}
@media (max-width: 1100px) {
  :root { --cols: 20px minmax(190px, 1.4fr) minmax(140px, .95fr) minmax(112px, .75fr) minmax(140px, .85fr) 28px; }
  .c-note { display: none; }
  .t-note-inline { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 12px; color: var(--ink-2); white-space: normal; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
  .trow { min-height: 58px; }
  .fleet { grid-template-columns: 1.25fr 1fr 1.75fr 1.4fr; }
  .fl { padding: 10px 14px 11px; }
  .sum .penta-row { flex-direction: column; align-items: flex-start; gap: 3px; }
  :root { --gut: 18px; }
}
@media (max-width: 860px) {
  .fleet { grid-template-columns: 1fr 1.6fr 1fr; } .fl-run { grid-column: 1 / -1; border-bottom: .5px solid var(--sep); } .fl-run + .fl::before { display: none; }
  .metrics { grid-template-columns: 1fr 1fr; } .metrics .metric:first-child { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr; }
  .seg-glass .n { display: none; }
  .seg-glass > button { padding: 0 10px; }
  :root { --cols: 20px minmax(140px, 1.4fr) minmax(120px, .95fr) minmax(100px, .72fr) minmax(140px, .9fr) 28px; }
  .trow { column-gap: 14px; }
  .tb-title .sub > :not(.live-state) { display: none; }
  .tb-title .dot-sep { display: none; }
}
@media (min-width: 701px) { .metrics.metrics-2 { grid-template-columns: 1fr 1fr; } .metrics-2 .metric:first-child { grid-column: auto; } }

@media (max-width: 700px) {
  :root { --gut: 16px; --tb-h: 44px; --edge-h: 56px; }
  html .phone-only { display: block; }
  html .seg.phone-only { display: flex; }
  .toolbar { top: 6px; left: 12px; right: 12px; }
  .tb-items .seg-glass, .tb-items .search { display: none; }
  .tb-account { display: inline-flex; }
  .menu-phone { display: contents; }
  #account-menu { position-anchor: --acct-top; top: anchor(bottom); left: anchor(left); bottom: auto; margin: 8px 0 0; --origin: top left; }
  .tb-title { flex: 1; opacity: 0; transition: opacity .2s; pointer-events: none; }
  .tb-title h1 { font-size: 13.5px; } .tb-title .sub { display: none; }
  html[data-scrolled] .tb-title { opacity: 1; }
  .tb-items { gap: 8px; }
  .capsule { height: 44px; } .capsule.round { width: 44px; } .cap-btn { height: 38px; min-width: 40px; }
  .new-btn { width: 44px; padding: 0; justify-content: center; } .new-btn span, .new-btn .ico-xs { display: none; } .new-btn .ico { width: 20px; height: 20px; }
  .edge-top { height: 76px; }
  .edge-bottom { display: block; bottom: 0; height: 120px; z-index: 20;
    background: linear-gradient(0deg, rgb(var(--bg-rgb) / .92) 0%, rgb(var(--bg-rgb) / .6) 50%, rgb(var(--bg-rgb) / 0)); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
    -webkit-mask: linear-gradient(0deg, #000 45%, transparent); mask: linear-gradient(0deg, #000 45%, transparent); }
  html { --bg: #0f0f10; --bg-rgb: 15 15 16; }
  .content { padding: 58px 16px calc(112px + env(safe-area-inset-bottom)); }
  .page-head { padding: 0 4px; }
  .large-title { font: 700 32px/1.1 var(--mono); }
  .page-head .sub { margin-top: 4px; font-size: 13px; white-space: normal; }
  .seg-content.phone-only { margin: 14px 0 12px; }
  .seg-content.phone-only > button { flex: 1; padding: 0 6px; }
  .fleet { grid-template-columns: 1fr 1fr; grid-auto-flow: dense; border-radius: 22px; }
  .fl { padding: 11px 16px; }
  .fl + .fl::before { display: none; }
  .fl:nth-child(n+2) { border-top: .5px solid var(--sep); } .fl-eta { border-left: .5px solid var(--sep); }
  .fl-mach, .fl:nth-child(2):nth-last-child(2) { grid-column: 1 / -1; }
  .fl-run { border-bottom: 0; }
  .fl-v { font-size: 19px; }
  .tgroup-head { padding: 15px 6px 8px; } .tgroup-head h2 { font-size: 19px; }
  .tlist { background: var(--surface); border-radius: 22px; padding: 4px 0; }
  .tlist > .trow:nth-child(odd of .trow) { background: none; }
  .trow { grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "st id id" ". llr elo" ". games games"; row-gap: 9px; column-gap: 14px;
    padding: 12px 16px 13px 14px; border-radius: 0; align-items: start; }
  .trow + .trow::before, .tsub + .trow::before { content: ""; position: absolute; top: 0; left: 48px; right: 0; height: .5px; background: var(--sep); }
  .tsub + .trow::before { display: none; }
  .trow > .st { grid-area: st; margin-top: 1px; } .c-id { grid-area: id; } .c-llr { grid-area: llr; } .c-elo { grid-area: elo; } .c-games { grid-area: games; }
  .c-cmp, .c-note { display: none; }
  .t-note-inline { font-size: 12.5px; margin-top: 2px; }
  .t-name { font-size: 15px; }
  .t-meta { font-size: 12.5px; }
  .tsub { padding: 10px 16px 2px 48px; }
  .tsub:first-child { padding-top: 8px; }
  .c-top b { font-size: 14px; }
  .tabbar { position: fixed; z-index: 40; left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; gap: 10px; }
  .tb-tabs { flex: 1; display: flex; height: 60px; border-radius: 30px; padding: 4px; --g-hi: .5; }
  .tb-tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 26px; font-size: 10.5px; font-weight: 600; color: var(--ink); }
  .tb-tabs a .ico { width: 22px; height: 22px; stroke-width: 1.8; }
  .tb-tabs a[aria-current] { color: var(--accent); background: var(--fill-2); }
  .tb-search { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; }
  .tb-search .ico { width: 22px; height: 22px; }
  .foot { margin-top: 28px; flex-direction: column; }
  .pager { padding-left: 6px; }
  .p-test .tb-items .acts { display: none; }
  .verdict { padding: 8px 4px 22px; }
  .test-head { padding: 0 4px 12px; border-bottom: .5px solid var(--sep); margin-bottom: 12px; }
  .test-head .large-title { font-size: 28px; overflow-wrap: anywhere; }
  .v-title { font-size: 32px; }
  .g-ends { font-size: 12px; } .g-ends > span { flex-direction: column; }
  .hero { height: 380px; }
  .metrics { grid-template-columns: 1fr; } .metrics .metric:first-child { grid-column: auto; }
  .card { border-radius: 22px; }
  .fields { grid-template-columns: 1fr 1fr; }
  .kv { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .dtable th, .dtable td { padding: 8px 6px; }
  .share { width: 54px; } .elo-inline { flex-direction: column; align-items: flex-start; gap: 6px; } .elo-inline .ci { flex: none; width: 90px; }
  .chart-card .card-head .meta { display: none; }
  .cmp-table tbody th { width: 84px; }
  .chart { height: 220px; }
  .menu { min-width: 240px; }
  .page-head .sub .live-mirror { display: inline-flex; }
  .t-head { flex-wrap: wrap; row-gap: 3px; }
  .c-llr:has(.track-progress) .c-top b { font-size: clamp(11px, 10.3cqi, 14px); }
  .c-llr, .c-elo, .c-games { display: flex; flex-direction: column; } .c-llr, .c-elo { align-self: stretch; justify-content: flex-end; }
  .c-top, :is(.c-llr, .c-elo, .c-games) > :is(.track, .ci, .wdl) { align-self: auto; }
}
@media (max-width: 420px) {
  .split, .split-side { grid-template-columns: minmax(0, 1fr); }
  .cmp-table { table-layout: fixed; } .cmp-table thead th:first-child, .cmp-table tbody th { width: 70px; } .cmp-table td { overflow-wrap: anywhere; }
  .card-head { flex-wrap: wrap; row-gap: 2px; } .card-head .meta { margin-left: 0; width: 100%; }
  .dtable { font-size: 12px; } .dtable th, .dtable td { padding: 7px 4px; }
  .mach, .sum { overflow-x: auto; }
}

@media (max-width: 360px) { .tb-tabs a { font-size: 9.5px; padding: 0 2px; } .tb-tabs a span { white-space: nowrap; letter-spacing: -.02em; } }

.navbar, .nav-tabs > .nav-more { display: none; }
@media (min-width: 701px) {
  .navbar { position: fixed; z-index: 30; top: var(--inset); left: var(--gut); right: var(--gut); height: var(--tb-h);
    display: flex; align-items: center; gap: 16px; pointer-events: none; }
  .navbar > * { pointer-events: auto; flex: none; }
  .navbar .brand { padding-right: 2px; }
  .nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
  .nav-tabs { margin-left: 12px; padding: 0 3px; }
  .nav-tabs > a { display: inline-flex; }
  .nav-tabs > a, .nav-tabs > .nav-more { position: relative; z-index: 1; align-items: center; justify-content: center; gap: 4px; height: 30px; padding: 0 13px;
    border-radius: 999px; color: var(--ink-2); font-weight: 500; white-space: nowrap; transition: color .15s; }
  .nav-tabs > a:hover, .nav-tabs > .nav-more:hover, .nav-tabs > .nav-more:popover-open { color: var(--ink); }
  .nav-tabs > a[aria-current] { color: var(--ink); }
  .nav-tabs:not([data-ready]) > a[aria-current] { background: var(--fill-3); }
  .nav-tabs > .nav-more { padding-right: 11px; } .nav-more .ico-xs { opacity: .7; }
  .nav-tabs > a:focus-visible, .nav-tabs > .nav-more:focus-visible { outline-offset: -2px; border-radius: 999px; }

  .nav-account { anchor-name: --acct; }
  #account-menu { position-anchor: --acct; top: anchor(bottom); right: anchor(right); bottom: auto; left: auto; margin: 8px 0 0; --origin: top right; }
  .nav-more { anchor-name: --navmore; }
  #more-menu { position-anchor: --navmore; top: anchor(bottom); left: anchor(left); margin-top: 8px; min-width: 210px; --origin: top left; }
  .toolbar { position: relative; z-index: 1; top: auto; left: auto; right: auto; height: auto; min-height: 52px; margin: 4px 0 8px; padding: 0; gap: 14px; pointer-events: auto; }
  .tb-title h1 { font-size: 24px; line-height: 1.15; }
  .tb-title .sub { margin-top: 4px; }
  .toolbar .glass { box-shadow: none; }
  #toolbar .glass::before, #toolbar .glass::after { content: none; }
  #toolbar .capsule { background: color-mix(in srgb, #fff 6.5%, var(--bg)); }
  #toolbar .capsule.round { transition: transform .35s var(--spring), --sheen .9s var(--ease), background-color .15s; }
  @media (hover: hover) {
    #toolbar :is(.capsule.round, .head-act):hover { background-color: color-mix(in srgb, #fff 15%, color-mix(in srgb, #fff 6.5%, var(--bg))); }
  }
  .toolbar .capsule { height: auto; padding: 2px; }
  .toolbar .capsule:active { transform: none; }
  .toolbar .seg-glass > button, .toolbar .cap-btn { height: 28px; }
  .toolbar .seg-thumb { top: 2px; bottom: 2px; background: rgb(255 255 255 / .17); }
  .toolbar .capsule.round { width: 32px; height: 32px; padding: 0; }
  .toolbar .cap-btn:hover { background: var(--fill-3); }
  .toolbar .new-btn { display: none; }
  .toolbar .back { margin-right: -2px; }
  .p-test .toolbar { margin-bottom: 14px; }

}

@media (min-width: 701px) and (max-width: 1350px) {
  .navbar .search { width: 170px; }
}
@media (min-width: 701px) and (max-width: 860px) {
  .navbar .search { width: 140px; }
}
@media (min-width: 701px) and (max-width: 1310px) {
  .nav-tabs > :is([data-k="networks"], [data-k="users"], [data-k="errors"], [data-k="manage"]) { display: none; }
  .nav-tabs > .nav-more { display: inline-flex; }
  #more-menu :is(.msec-testing, [data-k="activity"]) { display: none; }
}
@media (min-width: 701px) and (max-width: 1010px) {
  .nav-tabs > :is([data-k="search"], [data-k="activity"]) { display: none; }
  #more-menu .msec-testing { display: block; } #more-menu [data-k="activity"] { display: flex; }
}
@media (min-width: 701px) and (max-width: 800px) {
  .navbar .new-btn { width: 36px; padding: 0; justify-content: center; } .navbar .new-btn :is(span, .ico-xs) { display: none; }
}
@media (min-width: 701px) and (max-width: 760px) {
  .navbar .search:not(:focus-within) { width: 36px; padding: 0; justify-content: center; cursor: pointer; }
  .navbar .search:not(:focus-within) input { position: absolute; width: 1px; opacity: 0; }
}

.panel, .form-page, .auth-form { background: var(--surface); border-radius: var(--r-card); box-shadow: inset 0 .5px 0 rgb(255 255 255 / .05); }
.panel { padding: 16px 18px; margin-bottom: 12px; }
.directory-panel { padding-top: 10px; padding-bottom: 6px; margin-bottom: 0; }
.panel-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; min-height: 30px; margin-bottom: 8px; }
.panel-heading h2 { display: flex; align-items: baseline; gap: 8px; font: 700 15px/1.2 var(--mono); letter-spacing: 0; }
.count-badge { font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.panel-meta { margin-left: auto; font-size: 12px; color: var(--ink-3); }
:is(.panel, .form-page, .auth-form) a:where(:not([class])) { color: var(--accent); }
:is(.panel, .form-page, .auth-form) a:where(:not([class])):hover { color: var(--accent-hi); }
.panel > .table-scroll { margin: 0 -18px; padding: 0 18px; }
.panel pre { margin: 0; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.panel .event-log { font-size: 12px; line-height: 1.65; tab-size: 4; color: var(--ink-2); }
.log-panel { padding: 16px 20px; }

:where(.panel) th { padding-top: 4px; padding-bottom: 6px; font-size: 11.5px; font-weight: 500; color: var(--ink-3); white-space: nowrap; border-bottom-color: var(--sep-2); }
:where(.panel) td { color: var(--ink); }
:where(.panel) :where(tr:last-child > td) { border-bottom: 0; }
:where(.panel) :where(tr:nth-child(even of :not(.table-header, .table-spacer)) > td) { background: var(--stripe); }
:where(.panel) :where(.hoverable tr:not(.table-header):hover > td) { background: var(--hover); }
.numeric { text-align: right; } .textcenter { text-align: center; } .left-align { text-align: left; }
.table-sort { display: inline-flex; align-items: center; gap: 4px; color: inherit; font-weight: inherit; }
.table-sort:hover { color: var(--ink); } .table-sort span { color: var(--ink-3); }
.empty-state { padding: 22px 12px; text-align: center; color: var(--ink-3); white-space: normal; }
.empty-state i { display: none; }
.empty-state strong { display: block; margin-bottom: 4px; font-weight: 500; color: var(--ink); }
.directory-table { min-width: 680px; }
.directory-table .timestamp { white-space: nowrap; color: var(--ink-2); }
.events-table td:last-child, .errors-table td:nth-child(5) { min-width: 220px; overflow-wrap: anywhere; }
.users-table td:first-child a { color: var(--ink); font-weight: 600; }
.users-table td:first-child a:hover { color: var(--accent); }
.manage-table td:nth-child(2) { min-width: 220px; max-width: 520px; overflow-wrap: anywhere; }
.manage-table :is(th, td):nth-child(n+3) { text-align: center; white-space: nowrap; }
.log-link { min-height: 26px; padding: 0 12px; font-size: 12px; white-space: nowrap; }
.cursor { cursor: pointer; }
.default-network { color: var(--pass); } .was-default-network { color: var(--warn); } .non-default-network { color: var(--ink-3); }
.panel i[style*="grey"] { color: var(--ink-3) !important; }
.panel i[style*="#A03030"], .form-page i[style*="#A00000"] { color: var(--fail) !important; }
.panel a:hover > i[style*="grey"], .icon-button:hover > i[style*="grey"] { color: var(--ink) !important; }

.machine-panel { padding-top: 8px; padding-bottom: 8px; }
.test-config .td-label { width: 200px; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.test-config td { overflow-wrap: anywhere; }
.test-config .table-spacer td { height: 12px; padding: 0; font-size: 0; line-height: 0; background: none; border-bottom: 0; }

.button, .anchorbutton { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; padding: 0 14px; width: auto;
  border: 0; border-radius: 999px; background: var(--fill-2); color: var(--ink); font-size: 12.5px; font-weight: 500; text-align: center; cursor: pointer;
  box-shadow: inset 0 .5px 0 rgb(255 255 255 / .1); transition: background-color .15s, filter .15s, transform .3s var(--spring); }
.button:hover, .anchorbutton:hover { background: var(--fill-3); color: var(--ink); }
.button:active, .anchorbutton:active { transform: scale(.97); }
.button-primary, .btn-start, :is(.form-page, .auth-form) input[type="submit"] { background: linear-gradient(180deg, var(--accent-hi), var(--accent)); color: var(--accent-ink); font-weight: 600;
  box-shadow: inset 0 .5px 0 rgb(255 255 255 / .5), 0 1px 2px rgb(0 0 0 / .3); }
.button-primary:hover, .btn-start:hover, :is(.form-page, .auth-form) input[type="submit"]:hover { background: linear-gradient(180deg, var(--accent-hi), var(--accent)); color: var(--accent-ink); filter: brightness(1.07); }
.btn-disabled, .anchorbutton[aria-disabled="true"], .button:disabled { background: var(--fill); color: var(--ink-3); box-shadow: none; cursor: not-allowed; pointer-events: none; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 19px; padding: 0 7px; border-radius: 5px; background: var(--fill-2); color: var(--ink-2); font-size: 11px; font-weight: 600; white-space: nowrap; }
.badge-green { background: rgb(var(--pass-rgb) / .14); color: var(--pass); }
.badge-deleted { background: var(--fill); color: var(--ink-2); }

.anchor-container { display: flex; width: max-content; max-width: 100%; gap: 2px; padding: 2px; margin: 0 0 14px; border-radius: 999px; background: var(--fill); }
.anchor-container > .anchorbutton { flex: 1 1 auto; min-height: 28px; padding: 0 16px; background: none; box-shadow: none; color: var(--ink-2); font-weight: 500; filter: none; }
.anchor-container > .anchorbutton:hover { background: none; color: var(--ink); filter: none; }
.anchor-container > .anchorbutton.is-current { background: rgb(255 255 255 / .17); color: var(--ink); box-shadow: inset 0 .5px 0 rgb(255 255 255 / .16), 0 1px 3px rgb(0 0 0 / .25); }

#toolbar .head-act { gap: 7px; height: 32px; min-height: 0; padding: 0 14px; color: var(--ink); font-size: 12.5px; font-weight: 500; filter: none; }
#toolbar .head-act i { font-size: 13px; }

.form-page { max-width: 1000px; margin-bottom: 12px; padding: 6px 18px 16px; }
.form-page + br { display: none; }
.form { width: 100%; }
.form :is(.col, .col-full) { display: block; width: 100%; padding: 0; }
.form .row { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 44px; margin: 0; padding: 6px 0; }
.form .row + .row { border-top: .5px solid var(--sep); }
.form .row > label { flex: none; width: 136px; font-size: 13px; font-weight: 500; color: var(--ink); }
.form .row > :is(input, select, textarea) { flex: 1 1 auto; }
.form-page:not(.search-form) .row:has(> input:not([type="checkbox"], [type="radio"], [type="file"])) { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  margin: 0 -4px; padding-inline: 4px; }
.form-page:not(.search-form) .row > label { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 10px 0 0 var(--surface); }
.form-page:not(.search-form) .row > input:not([type="checkbox"], [type="radio"], [type="file"]) { field-sizing: content; width: auto; flex: 1 0 auto; min-width: 0; }
.form .row > span { flex: none; display: inline-flex; align-items: center; }
.form .row > span[onclick] { width: 30px; height: 30px; justify-content: center; border-radius: 50%; cursor: pointer; }
.form .row > span[onclick]:hover { background: var(--fill-2); }
.form .row input[readonly] { color: var(--ink-2); }
.form .row textarea { font: 12px/1.55 var(--mono); }
.form h3 { margin: 18px 0 4px; font: 600 13px/1.3 var(--mono); color: var(--ink); }
.form h3 + .row { border-top: 0; }
.form-page .form > .col-full > h3:first-child { margin-top: 10px; font: 700 15px/1.2 var(--mono); }
.form hr { margin: 10px 0; border: 0; border-top: .5px solid var(--sep-2); }
.form-page input[type="submit"] { display: flex; width: auto; min-width: 150px; min-height: 32px; margin: 14px 0 0 auto; padding: 0 18px; }
input:is([type="checkbox"], [type="radio"]):not(.seg *) { flex: none; width: 16px; height: 16px; padding: 0; box-shadow: none; background: none; accent-color: var(--accent); }
input[type="file"] { height: auto; padding: 4px; }
input[type="file"]::file-selector-button { margin-right: 10px; padding: 4px 12px; border: 0; border-radius: 999px; background: var(--fill-2); color: var(--ink); font: inherit; cursor: pointer; }
input:is([type="submit"], [type="button"]) { height: auto; }
#engines-container span { display: inline-flex; align-items: center; gap: 6px; }

.auth-form { max-width: 400px; margin: 24px auto; padding: 22px 22px 20px; }
.auth-form .row { flex-direction: column; align-items: stretch; gap: 6px; min-height: 0; padding: 0; margin-bottom: 14px; }
.auth-form .row + .row { border-top: 0; }
.auth-form .row > label { width: auto; font-size: 12px; color: var(--ink-2); }
.auth-form br { display: none; }
.auth-form input[type="submit"] { display: flex; width: 100%; min-height: 36px; margin-top: 18px; }

.form-page.search-form { max-width: none; padding: 14px 18px 16px; }
.search-form .form > .col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; }
.search-form .row { flex-direction: column; align-items: stretch; gap: 5px; min-height: 0; padding: 0; }
.search-form .row + .row { border-top: 0; }
.search-form .row > label { width: auto; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.search-form .row :is(input, select) { flex: none; max-width: 100%; margin: 0; }
.search-form :is(br, hr) { display: none; }
.search-form .status-filters { grid-column: 1 / span 2; align-self: center; margin: 4px 0 0; }
.search-form input[type="submit"] { grid-column: 3; justify-self: end; align-self: center; margin: 4px 0 0; }
.status-filters { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.status-filters label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }

.w-100 { width: 100%; } .mw-20 { max-width: 20%; }
.mt-4 { margin-top: 12px; } .mb-4 { margin-bottom: 14px; } .mr-2 { margin-right: 6px; }

@media (max-width: 1100px) {
  .search-form .form > .col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-form .status-filters { grid-column: 1 / -1; }
  .search-form input[type="submit"] { grid-column: 2; }
}
@media (max-width: 700px) {
  .panel, .form-page, .auth-form { border-radius: 22px; }
  .page-head + :is(.panel, .form-page, .auth-form, .anchor-container, #machines-live) { margin-top: 12px; }
  .panel { padding: 14px 16px; }
  .directory-panel { padding-top: 8px; padding-bottom: 4px; }
  .panel > .table-scroll { margin: 0 -16px; padding: 0 16px; }
  .panel-meta { margin-left: 0; width: 100%; }
  :where(.panel) :where(th, td) { padding: 8px 8px; }
  :where(.panel) table:not(.test-config) { width: max-content; min-width: 100%; }
  :where(.panel) table:not(.test-config) td { white-space: nowrap; }
  .events-table td:last-child, .errors-table td:nth-child(5) { min-width: 200px; max-width: 260px; white-space: normal; }
  .directory-table { min-width: 0; }
  .test-config .td-label { width: 1%; padding-right: 14px; }
  .test-config td { font-size: 12.5px; }
  .log-panel { padding: 14px 16px; }
  #toolbar .head-act { height: 44px; padding: 0 16px; background: none; color: var(--ink); font-size: 13px; box-shadow: none; }
  .anchor-container { width: 100%; margin-bottom: 12px; }
  .anchor-container > .anchorbutton { min-height: 32px; }
  .form-page { max-width: none; padding: 8px 16px 16px; }
  .form-page:not(.search-form) .row { flex-wrap: wrap; gap: 6px 10px; padding: 10px 0; }
  .form-page:not(.search-form) .row > label { width: 100%; font-size: 12.5px; color: var(--ink-2); }
  .form-page:not(.search-form) .row > :is(select, textarea) { flex: 1 1 0; min-width: 0; }
  .form .row :is(input:not([type="checkbox"], [type="radio"], [type="file"]), select) { min-height: 40px; font-size: 16px; }
  .form .row textarea { font-size: 13px; }
  .form .row select.mw-20 { max-width: 100%; }
  .form-page input[type="submit"], .auth-form input[type="submit"] { width: 100%; min-height: 44px; margin-left: 0; font-size: 15px; }
  .auth-form { margin: 8px auto 16px; padding: 18px 16px; }
  .auth-form .row :is(input, select) { min-height: 44px; font-size: 16px; }
  .form-page.search-form { padding: 12px 16px 16px; }
  .search-form .form > .col { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .search-form .status-filters, .search-form input[type="submit"] { grid-column: 1; }
  .status-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
  .status-filters label { font-size: 13px; }
  .button, .anchorbutton, .icon-button { min-height: 40px; }
  .icon-button { width: 40px; height: 40px; }
  .log-link { min-height: 32px; }
  .pagination { gap: 4px; align-items: flex-start; }
  .pagination .pages { flex: 0 1 auto; min-width: 0; flex-wrap: wrap; justify-content: center; }
  .pagination .page { min-width: 40px; height: 40px; }
  table[data-stack] { display: block; width: 100%; min-width: 0; }
  table[data-stack] :is(thead, tr.table-header) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  table[data-stack] > tbody { display: grid; gap: 8px; padding: 6px 0; }
  table[data-stack] tr:not(.table-header) { display: block; padding: 6px 12px; border-radius: 14px; background: rgb(255 255 255 / .045); }
  table[data-stack] tr.active-highlight { box-shadow: inset 3px 0 0 var(--pass); }
  table[data-stack] tr > :is(td, th)[data-label] { display: grid; grid-template-columns: 80px minmax(0, 1fr); column-gap: 12px; align-items: baseline; justify-items: start; width: auto; min-width: 0; max-width: none;
    padding: 4px 0; border: 0; background: none; box-shadow: none; text-align: left; white-space: normal; overflow-wrap: anywhere; }
  table[data-stack] tr > :is(td, th)[data-label]::before { content: attr(data-label); grid-row: 1 / span 3; font-size: 11.5px; color: var(--ink-3); }
  table[data-stack] tr > :is(td, th)[data-label] > * { grid-column: 2; }
  table[data-stack] .penta-row .num { white-space: normal; }
  table[data-stack] tr > :is(td:not([data-label], [colspan]), [data-label].hide-sm) { display: none; }
  table[data-stack] tr > td[colspan] { display: block; border: 0; background: none; }
}
@media (max-width: 420px) {
  .status-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (forced-colors: active) {
  .track i, .ci i, .wdl i, .c-penta i, .penta-lg i, .g-fill, .g-tick, .g-knob, .hyp i, .fl-strip i, .share i, .tbadge { forced-color-adjust: none; }
  .ci .bar, .hyp-bar, .c-penta .p2, .penta-lg .p2 { background: CanvasText; }
  .wdl { forced-color-adjust: none; background: Canvas; }
  .wdl .d { background: CanvasText; }
  .wdl:empty, .wdl:has(> .g) { box-shadow: inset 0 0 0 1px GrayText; }
  .ci.pos .bar { background: rgb(var(--pass-rgb)); } .ci.neg .bar { background: rgb(var(--fail-rgb)); }
  .ci .zero, .track .mid, .g-zero, .fl-zero, .hyp-axis i { background: CanvasText; }
  .ci .dot, .hyp-dot, .fl-dot { background: CanvasText; box-shadow: 0 0 0 2px Canvas; border-color: Canvas; }
  #live-toggle .fa-solid { forced-color-adjust: none; background: ButtonText; }
  .dot-sep { forced-color-adjust: none; background: CanvasText; }
  .glass, .card, .fleet { border: 1px solid CanvasText; }
  .st { forced-color-adjust: none; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .glass::before { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass::before { background: #2c2c31; }
  .glass-lg::before, .sheet::before { background: #28282c; }
  .glass.tinted::before { background: linear-gradient(180deg, var(--accent-hi), var(--accent)); }
  .edge-top, .edge-bottom { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .scrim { background: rgb(0 0 0 / .65); }
}
@media (prefers-contrast: more) {
  :root { --ink-2: #d4d4da; --ink-3: #b2b2ba; --sep: rgb(255 255 255 / .22); --sep-2: rgb(255 255 255 / .32); --stripe: rgb(255 255 255 / .05); }
  .glass::before { background: #1f1f23; }
  .glass::after { background: rgb(255 255 255 / .7); }
  .glass.tinted::before { background: var(--accent-hi); }
  .card, .fleet { box-shadow: inset 0 0 0 1px var(--sep-2); }
  .track, .ci, .wdl { background: rgb(255 255 255 / .2); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
  .capsule:active, .cap-btn:active, .btn:active { transform: none; }
}
.live-paused *, .live-paused *::before, .live-paused *::after { animation-play-state: paused !important; }
