/* Parser: the page. Colours, fonts and radii are tokens: the interface (ui.css, html[data-skin="6"]) sets them, so
   every part — cards, windows, tables, the Vision tab — follows. */
:root {
  --bg: #0a0c0f;
  --nav: #0d1014;
  --panel: #11151a;
  --panel-2: #171c22;
  --sunken: #0c0f13;
  --line: #1d242c;
  --line-2: #29323c;
  --fg: #e6ebf0;
  --dim: #9aa6b2;
  --mute: #66717d;
  --accent: #f0a020;
  --on-accent: #111;
  --accent-bg: rgba(240, 160, 32, 0.13);
  --up: #23c483;
  --up-bg: rgba(35, 196, 131, 0.13);
  --down: #ef5a5a;
  --down-bg: rgba(239, 90, 90, 0.13);
  --warn: #e8b13a;
  --warn-bg: rgba(232, 177, 58, 0.14);
  --live: #ff4d4d;
  --poly: #8b7cf6;
  --bk: #f0863b;
  --mono: "Cascadia Mono", "JetBrains Mono", Consolas, ui-monospace, monospace;
  --sans: Bahnschrift, "Segoe UI", system-ui, -apple-system, sans-serif;
  --head: Bahnschrift, "Segoe UI", system-ui, sans-serif;
  --radius: 4px;
  --radius-sm: 3px;
  --ctl: 28px;
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
  --label-case: uppercase;
  --label-track: 0.08em;
  --nav-w: 216px;
  --rail-w: 304px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 13px/1.4 var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
input, select {
  font: inherit; color: var(--fg); background: var(--sunken); border: 1px solid var(--line); border-radius: var(--radius-sm);
  height: var(--ctl); padding: 0 8px;
}
input:focus, select:focus { outline: none; border-color: var(--accent); }
input[type="checkbox"] { height: auto; padding: 0; margin: 0; accent-color: var(--accent); }
input[type="range"] { padding: 0; height: 18px; accent-color: var(--accent); background: none; border: 0; }
a { color: var(--accent); text-decoration: none; }
[hidden] { display: none !important; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
/* Changing numbers sit in slots of fixed width (in characters, centred; .r = right-aligned), and every
   digit has the same width, so a number that grows or shrinks never moves anything around it. */
body, input, button, select { font-variant-numeric: tabular-nums; }
.slot { display: inline-block; text-align: center; white-space: nowrap; }
.slot.r { text-align: right; }
.w2 { min-width: 2ch; } .w3 { min-width: 3ch; } .w4 { min-width: 4ch; } .w5 { min-width: 5ch; } .w6 { min-width: 6ch; }
.w7 { min-width: 7ch; } .w8 { min-width: 8ch; } .w9 { min-width: 9ch; }
.w10 { min-width: 10ch; } .w11 { min-width: 11ch; } .w12 { min-width: 12ch; }
.dim { color: var(--dim); }
.mute { color: var(--mute); }
.up { color: var(--up); }
.down { color: var(--down); }
.warn { color: var(--warn); }
.bad-text { color: var(--down); }
.spacer { flex: 1 1 0; min-width: 0; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- the three columns: menu, content, filters ---------- */
.app { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr) var(--rail-w); height: 100vh; height: 100dvh; min-height: 0; }
.mid { display: flex; flex-direction: column; min-width: 0; min-height: 0; }

/* ---------- left menu ---------- */
.nav { display: flex; flex-direction: column; min-height: 0; background: var(--nav); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 18px; flex: none; border-bottom: 1px solid var(--line); }
.brand b { font-family: var(--head); font-size: 17px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.brand-mark { width: 18px; height: 18px; flex: none; position: relative; border-radius: 3px; background: var(--accent); }
.brand-mark::after { content: ""; position: absolute; inset: 5px 4px 5px 9px; background: var(--nav); border-radius: 1px; }
.menu { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; flex: none; }
.menu-gap { height: 10px; }
.mi {
  display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 12px; border: 0; border-radius: var(--radius);
  background: transparent; color: var(--dim); text-align: left; position: relative; transition: background 0.12s, color 0.12s;
}
.mi:hover { color: var(--fg); background: var(--panel); }
.mi.on { color: var(--fg); background: var(--panel-2); }
.mi.on::before { content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.mi-i { width: 18px; height: 18px; flex: none; display: grid; place-items: center; }
.mi-i svg { width: 18px; height: 18px; }
.mi.on .mi-i { color: var(--accent); }
.mi-t { flex: 1 1 auto; font-size: 14px; font-weight: 500; white-space: nowrap; }
.mi .cnt { font-family: var(--mono); font-size: 12px; color: var(--mute); min-width: 5ch; text-align: right; }
.mi.on .cnt { color: var(--fg); }
#cnt-matches { min-width: 7ch; }
.navfoot { margin-top: auto; padding: 10px 18px 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; color: var(--mute); font-size: 11.5px; flex: none; }
.navfoot .kv { display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; }
.navfoot .kv b { font-family: var(--mono); font-weight: 500; color: var(--dim); }
.navfoot .kv .dot { margin-right: 6px; vertical-align: 1px; }

/* ---------- top bar: the venues ---------- */
.top {
  display: flex; align-items: center; gap: 10px; min-width: 0; height: 56px; flex: none;
  padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--nav);
}
/* The venues take the free room of the top bar. Each card is at least its light, logo, balance and eye;
   the small line (delay, events) fills what is left, up to a full card, and gives way first. */
.venues { display: flex; align-items: stretch; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; height: 42px; flex: 1 1 auto; }
.top > .spacer { flex-grow: 0; }
.venues::-webkit-scrollbar { display: none; }
/* A venue in one line (owner, 2026-11-16): its light at the start, a bigger logo, the balance, the delay and
   the events small; a bookmaker's eye at the end hides all its events. */
.ven {
  display: flex; align-items: center; height: 42px; flex: 1 1 auto; max-width: 300px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--fg);
  transition: border-color 0.12s, background 0.12s;
}
.ven:hover { border-color: var(--line-2); background: var(--panel-2); }
.ven-main { display: flex; flex: 1 1 auto; align-items: center; gap: 7px; height: 100%; min-width: 0; padding: 0 10px; background: transparent; border: 0; border-radius: inherit; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.vdot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--mute); }
.ven.ok .vdot { background: var(--up); box-shadow: 0 0 0 3px var(--up-bg); }
.ven.warn .vdot { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-bg); }
.ven.bad .vdot { background: var(--down); box-shadow: 0 0 0 3px var(--down-bg); }
.ven .vl.lg { width: 24px; height: 24px; border-radius: 6px; font-size: 11px; flex: none; }
.ven .vl.lg.b-polymarket { border-radius: 50%; }
.ven-v { font-family: var(--mono); font-size: 14.5px; font-weight: 700; white-space: nowrap; flex: none; }
.ven-s { color: var(--mute); font-size: 10.5px; white-space: nowrap; flex: 1 1 auto; width: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ven-main > :not(.ven-s) { flex: none; }
.ven-eye { width: 24px; height: 22px; margin-right: 6px; }
.ven-eye.on { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 55%, var(--line-2)); }
.ven-re, .ven-pw { margin-right: 4px; }
.ven-re.spin svg { animation: pm-spin 0.8s linear infinite; }
.ven-re:disabled { opacity: 0.35; cursor: default; }
/* The line switch right of ↻ (owner, 2026-11-17): green while the line takes odds, red while it is off; a
   switch off asks a second click within 4 s, meanwhile the button is solid red (its size never changes). */
.ven-pw.pw-on { color: var(--up); }
.ven-pw.pw-on:hover, .ven-pw.pw-on:focus-visible { color: var(--down); border-color: var(--down); background: var(--down-bg); outline: none; }
.ven-pw.pw-off { color: var(--down); border-color: color-mix(in srgb, var(--down) 55%, var(--line-2)); background: var(--down-bg); }
.ven-pw.pw-off:hover, .ven-pw.pw-off:focus-visible { color: var(--up); border-color: var(--up); background: var(--up-bg); outline: none; }
.ven-pw.pw-arm, .ven-pw.pw-arm:hover { color: #fff; border-color: var(--down); background: var(--down); }
.ven-pw.busy svg { animation: pm-pulse 0.8s ease-in-out infinite; }
.ven.lineoff .ven-main { opacity: 0.6; }
/* «Прокси для коэффициентов»: the type and the field only for a proxy of one's own. */
#set-proxies .pxrow { padding: 6px 0 8px; border-top: 1px solid var(--line); }
#set-proxies .px-ctl { flex-wrap: wrap; gap: 6px; }
#set-proxies .pxrow:not(.custom) .px-c { display: none; }
#set-proxies .px-f { flex: 1 1 260px; min-width: 0; display: flex; }
#set-proxies .px-f input { flex: 1; min-width: 0; }
#set-proxies [data-px-mode] { width: auto; min-width: 230px; }
#set-proxies [data-px-kind] { width: auto; min-width: 104px; }
.ven.off .ven-main { opacity: 0.5; }
.ven.bad { border-color: color-mix(in srgb, var(--down) 50%, var(--line)); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; flex: none; background: var(--panel); }
.seg button {
  display: inline-flex; align-items: center; justify-content: center; height: 30px; min-width: 34px; white-space: nowrap;
  background: transparent; border: 0; padding: 0 10px; color: var(--dim);
}
.seg button svg { width: 16px; height: 16px; }
.seg button:hover { color: var(--fg); }
.seg button.on { background: var(--accent); color: var(--on-accent); }
.clock { font-family: var(--mono); color: var(--mute); flex: none; min-width: 8ch; text-align: right; font-size: 12.5px; }
.burger {
  display: none; flex: none; width: 36px; height: 34px; border: 1px solid var(--line); border-radius: var(--radius);
  background: transparent; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.burger span { display: block; width: 16px; height: 2px; border-radius: 1px; background: var(--dim); }
.ftoggle { display: none; flex: none; width: 36px; height: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--dim); padding: 0; place-items: center; }
.ftoggle svg { width: 18px; height: 18px; }
.scrim { display: none; }

/* Sound: the speaker turns it on and off, the arrow opens the choice of sound. */
.snd { position: relative; display: inline-flex; flex: none; }
.snd-b, .snd-m {
  height: 34px; border: 1px solid var(--line); background: var(--panel); color: var(--dim); display: grid; place-items: center; padding: 0;
}
.snd-b { width: 38px; border-radius: var(--radius) 0 0 var(--radius); }
.snd-m { width: 20px; border-left: 0; border-radius: 0 var(--radius) var(--radius) 0; }
.snd-b svg { width: 18px; height: 18px; }
.snd-m svg { width: 10px; height: 10px; }
.snd-b:hover, .snd-m:hover { color: var(--fg); }
.snd-b.on { color: var(--accent); }
.snd-pop {
  position: absolute; top: 40px; right: 0; z-index: 50; width: 300px; padding: 12px; display: flex; flex-direction: column; gap: 10px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow);
}
.snd-pop h4 { margin: 0; font-size: 12px; color: var(--mute); text-transform: var(--label-case); letter-spacing: var(--label-track); font-weight: 600; }
.snd-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.snd-list button {
  display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--sunken); color: var(--dim); text-align: left; font-size: 12px; white-space: nowrap; overflow: hidden;
}
.snd-list button:hover { color: var(--fg); border-color: var(--line-2); }
.snd-list button.on { border-color: var(--accent); color: var(--fg); background: var(--accent-bg); }
.snd-list button i { font-style: normal; font-family: var(--mono); color: var(--mute); font-size: 11px; flex: none; }
.snd-row { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 12px; }
.snd-row input[type="range"] { flex: 1; }
.snd-row .check { height: auto; }
.snd-note { color: var(--mute); font-size: 11px; line-height: 1.45; }

/* ---------- sports ---------- */
.sportbar {
  display: flex; align-items: center; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--line);
  flex: none; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
}
.sportbar::-webkit-scrollbar { display: none; }
.sp {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 32px; flex: none; white-space: nowrap;
  padding: 0 11px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); color: var(--dim);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.sp:hover { color: var(--fg); border-color: var(--line-2); }
.sp svg { width: 17px; height: 17px; flex: none; }
.sp.on { color: var(--fg); border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); background: var(--accent-bg); }
.sp.off { opacity: 0.5; }
.sp .cnt { font-family: inherit; font-size: inherit; font-weight: 700; line-height: 1; min-width: 3ch; text-align: center; color: var(--mute); font-variant-numeric: tabular-nums lining-nums; }
.sp.on .cnt { color: var(--fg); }
.sp .cnt.hot { color: var(--up); }
.sp.all { font-weight: 600; }
/* The leagues of a sport (owner, 2026-11-21): the arrow is the button's right end — from a thin line after the counter to
   the button's edge, its whole height —, so a click right of the arrow opens the list too (owner, 2026-11-21: «если я
   чуть-чуть правее … нажимаю … все равно у нас должен выпадать список меню»). Every sport has it, on or off, so a button
   never changes its width when it is switched. */
.sportbar .sp.has-lg, :root[data-skin] .sportbar .sp.has-lg { padding-right: 0; }
.sp-lg { align-self: stretch; display: inline-flex; align-items: center; justify-content: center; margin-left: -1px; padding: 0 9px 0 7px; border-left: 1px solid color-mix(in srgb, var(--line-2) 70%, transparent); border-radius: 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0; color: var(--mute); cursor: pointer; transition: color 0.12s, background 0.12s; }
.sp .sp-lg svg { width: 11px; height: 11px; transition: transform 0.15s; }
.sp-lg:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 10%, transparent); }
.sp-lg.open { color: var(--accent); }
.sp-lg.open svg { transform: rotate(180deg); }
.sp-lg.cut { color: var(--warn); }
.lgpop { position: fixed; z-index: 9990; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; animation: toast-in 0.12s ease-out; }
.lgpop[hidden] { display: none; }
.lgp-h { flex: none; display: flex; align-items: center; gap: 7px; padding: 9px 10px 8px 12px; border-bottom: 1px solid var(--line); }
.lgp-h .spi { width: 16px; height: 16px; }
.lgp-h b { font-family: var(--head); font-size: 13.5px; white-space: nowrap; }
.lgp-n { flex: 1 1 auto; color: var(--mute); font-size: 11.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lgp-q { flex: none; margin: 8px 10px 2px; height: 28px; padding: 0 9px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--sunken); color: var(--fg); font: inherit; font-size: 12.5px; outline: none; }
.lgp-q:focus { border-color: var(--accent); }
.lgp-l { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px; display: flex; flex-direction: column; gap: 3px; scrollbar-width: thin; }
.lgi { display: grid; grid-template-columns: 14px 20px minmax(0, 1fr) auto auto; align-items: center; column-gap: 8px; width: 100%; min-height: 32px; padding: 4px 9px 4px 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--fg); text-align: left; cursor: pointer; transition: background 0.12s, border-color 0.12s, opacity 0.12s; }
.lgi:hover { background: var(--panel-2); border-color: var(--line-2); }
.lgi.on { background: var(--accent-bg); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.lgi.off { opacity: 0.5; }
.lgi.off .lgi-n { text-decoration: line-through; }
.lgi-ck { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.lgi.on .lgi-ck { border-color: var(--accent); background: var(--accent); }
.lgi.on .lgi-ck::after { content: ''; width: 7px; height: 4px; margin-top: -2px; border: solid #111; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.lgi-p { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; }
.lgi-p.none { display: grid; place-items: center; opacity: 0.55; }
.lgi-p.none .spi { width: 16px; height: 16px; }
.lgi-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.lgi-c { color: var(--mute); font-size: 12px; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.lgi-f { color: var(--up); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lgp-empty { padding: 14px; color: var(--mute); font-size: 12.5px; text-align: center; }
.lgp-ft { flex: none; padding: 7px 12px 8px; border-top: 1px solid var(--line); color: var(--mute); font-size: 11px; line-height: 1.35; }
/* The sports' pictures (owner, 2026-11-19: his own pictures, cut out and fitted to one size): in the bar left of the
   name, in a card's tag and before a sport's name in a line (`sportPic`). */
.spi { display: inline-block; flex: none; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.sp > .spi { width: 18px; height: 18px; }
.tag > .spi { width: 13px; height: 13px; margin: 0 4px 0 -1px; vertical-align: -2px; }
.spi.sm { width: 13px; height: 13px; margin-right: 4px; vertical-align: -2px; }
/* A link's copy button: a small icon, the accent under the mouse, green for a moment once copied. */
.cpy { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--mute); cursor: pointer; transition: color 0.12s, background 0.12s; }
.cpy svg { width: 12px; height: 12px; }
.cpy:hover, .cpy:focus-visible { color: var(--accent); background: var(--accent-bg); outline: none; }
.cpy.ok { color: var(--up); }

/* ---------- content ---------- */
.list { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 14px 16px 28px; scrollbar-gutter: stable; min-height: 0; }
.empty { color: var(--mute); text-align: center; padding: 60px 0; font-size: 14px; }
.empty.sm { padding: 24px 0; }
.sech { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; white-space: nowrap; min-height: 28px; }
.sech h3 { margin: 0; font-family: var(--head); font-size: 12px; font-weight: 700; letter-spacing: var(--label-track); text-transform: var(--label-case); color: var(--fg); }
.sech .sc { font-family: var(--mono); font-size: 12px; color: var(--mute); }
.sech::after { content: ""; flex: 1 1 0; height: 1px; background: var(--line); order: 5; }
.sech .sech-tools { order: 6; display: inline-flex; align-items: center; gap: 8px; }
.sec-block { margin-bottom: 22px; }
/* The lists lay out their cards by their own width (a panel, a phone): skins.css, @container. */
#rest, #bets-main { container-type: inline-size; }

/* ---------- right rail: filters ---------- */
.rail { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; background: var(--nav); border-left: 1px solid var(--line); }
.filters { display: flex; flex-direction: column; gap: 14px; padding: 0 16px 16px; }
.filters.hidden { display: none; }
.rail-h { display: flex; align-items: center; gap: 8px; height: 56px; flex: none; border-bottom: 1px solid var(--line); margin: 0 -16px; padding: 0 16px; }
.rail-h b { font-family: var(--head); font-size: 13px; letter-spacing: var(--label-track); text-transform: var(--label-case); }
.fsum { color: var(--mute); font-size: 11.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; }
.rail-x { display: none; }
.fgroup { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fgroup > label { color: var(--mute); font-size: 11px; text-transform: var(--label-case); letter-spacing: var(--label-track); font-weight: 600; }
.fgroup select { width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
/* The owner's test of the coupon (2026-11-19): two choices, the stake and the button in one line. */
.chips.testc .testsel { width: auto; min-width: 84px; max-width: 132px; text-align: left; font-family: var(--sans); }
.chips.testc #test-go[disabled] { opacity: .6; cursor: progress; }
/* A group that does not act now (the input of the site's window while «Через окно сайта» is off). */
.chips.dim > .chip { opacity: .55; }
/* What each browser's walk does now, right of the «Прогулка по сайту» chip (owner, 2026-11-19). */
.chips .wlk { align-self: center; color: var(--mute); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; min-width: 0; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; height: var(--ctl); white-space: nowrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 9px; color: var(--dim);
}
.chip:hover { color: var(--fg); border-color: var(--line-2); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip.hot.on { background: var(--bk); border-color: var(--bk); color: #111; }
/* «Логика покупки» → «Программа» asks a second click (owner's rule for a switch that changes what is bought); the check's
   counts beside the chips. */
.chip.armed { background: var(--down); border-color: var(--down); color: #fff; }
.eng-chk { align-self: center; margin-left: 6px; font-size: 11.5px; color: var(--mute); white-space: nowrap; font-variant-numeric: tabular-nums; }
.eng-chk.bad { color: var(--down); font-weight: 700; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 10px; }
.fgrid .fgroup > label { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inp { width: 84px; text-align: center; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.fgrid .inp { width: 100%; }
.check { display: inline-flex; align-items: center; gap: 7px; color: var(--dim); height: var(--ctl); font-size: 12.5px; }
#row-forks, #row-spreads { display: flex; flex-direction: column; gap: 14px; }

/* Hedge: what to do with the Polymarket leg when its price moved after the bookmaker accepted. */
.hedge { display: flex; flex-direction: column; gap: 6px; }
.hedge .hl { color: var(--mute); font-size: 11px; text-transform: var(--label-case); letter-spacing: var(--label-track); font-weight: 600; }
.hseg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.hseg .hb { background: var(--panel); border: 0; border-left: 1px solid var(--line); color: var(--dim); font: inherit; font-size: 12.5px; height: 30px; padding: 0 6px; cursor: pointer; white-space: nowrap; }
.hseg .hb:first-child { border-left: 0; }
.hseg .hb.on { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.hseg .hb:hover:not(.on) { color: var(--fg); }
.hnote { color: var(--mute); font-size: 11px; line-height: 1.45; }
/* The test button of the coupon (owner, 2026-11-18: «мы ее потом удалим»): dashed, so it reads as temporary;
   only the bookmaker's own coupon call goes, never a bet. */

/* ---------- shared bits ---------- */
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); flex: none; display: inline-block; }
.dot.ok { background: var(--up); }
.dot.bad { background: var(--down); }
.dot.slow, .dot.warn { background: var(--warn); }
.tag { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 0 6px; font-size: 11px; color: var(--fg); line-height: 18px; }
.live { color: var(--live); font-weight: 700; letter-spacing: 0.04em; }
.live::before { content: "● "; }
.pre { color: var(--dim); }
.badge { font-size: 11px; border-radius: var(--radius-sm); padding: 0 6px; line-height: 18px; border: 1px solid var(--line-2); color: var(--dim); white-space: nowrap; flex: none; }
.badge.warn { border-color: var(--warn); color: var(--warn); background: var(--warn-bg); }
.badge.bad { border-color: var(--down); color: var(--down); background: var(--down-bg); }
.badge.ok { border-color: var(--up); color: var(--up); background: var(--up-bg); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: var(--ctl); white-space: nowrap;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 0 10px; color: var(--dim);
}
.btn:hover { color: var(--fg); border-color: var(--accent); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.pri { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.ok { border-color: var(--up); color: var(--up); }
.btn.no { border-color: var(--down); color: var(--down); }
.btn.sm { height: 24px; padding: 0 8px; font-size: 12px; }
.ib {
  display: inline-grid; place-items: center; width: 30px; height: 26px; padding: 0; flex: none;
  background: transparent; border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--mute);
  transition: color 0.12s, border-color 0.12s, background-color 0.12s;
}
.ib svg { width: 15px; height: 15px; display: block; }
.ib.fav:hover, .ib.fav:focus-visible { color: var(--accent); border-color: var(--accent); background: var(--accent-bg); outline: none; }
.ib.fav.on { color: var(--accent); border-color: var(--accent); }
.ib.fav.on svg { fill: currentColor; }
.ib.hide:hover, .ib.hide:focus-visible { color: var(--down); border-color: var(--down); background: var(--down-bg); outline: none; }
.ib.hide.on { color: var(--dim); }
.ib.hide.on:hover, .ib.hide.on:focus-visible { color: var(--up); border-color: var(--up); background: var(--up-bg); }
.ib.vcopy:hover, .ib.vcopy:focus-visible { color: var(--accent); border-color: var(--accent); background: var(--accent-bg); outline: none; }

/* Venue logos: Polymarket round, bookmakers rounded squares; the first letter shows until the picture loads. */
.vl {
  position: relative; display: inline-grid; place-items: center; flex: none; overflow: hidden; vertical-align: middle;
  width: 16px; height: 16px; border-radius: 4px; background: var(--panel-2); color: var(--dim);
  font-size: 9px; font-weight: 700; line-height: 1; font-style: normal;
}
.vl img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.vl.xs { width: 14px; height: 14px; font-size: 8px; }
.vl.md { width: 20px; height: 20px; border-radius: 5px; font-size: 10px; }
.vl.lg { width: 30px; height: 30px; border-radius: 8px; font-size: 13px; }
.vl.in { margin-right: 5px; top: -1px; }
.vl.b-polymarket { border-radius: 50%; background: #1652f0; color: #fff; }
.vl.b-solcasino { background: #0f1e30; box-shadow: inset 0 0 0 1px var(--line-2); }
.vl.b-solcasino img { inset: 16%; width: 68%; height: 68%; }
.vl.b-bcgame { background: #2a2a2a; }
/* Team logos, or the initials while there is none. */
.tl {
  position: relative; width: 20px; height: 20px; border-radius: 5px; flex: none; display: inline-grid; place-items: center; overflow: hidden;
  background: var(--panel-2); border: 1px solid var(--line-2); color: var(--dim); font-size: 9px; font-weight: 700;
  vertical-align: middle; letter-spacing: 0.2px;
}
.tl img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; background: var(--panel-2); }
.tl.sm { width: 16px; height: 16px; font-size: 8px; border-radius: 4px; }
.logos { display: inline-flex; align-items: center; gap: 3px; flex: none; }

/* ---------- cards: shared parts (the ticket and the tiles are in skins.css) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(500px, 100%), 1fr)); gap: 12px; align-content: start; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; position: relative;
  transition: border-color 0.15s;
}
.card > * { min-width: 0; }
.card:hover { border-color: var(--line-2); }
.card.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.card.neg { opacity: 0.74; }
.card.unconf { opacity: 0.55; border-style: dashed; }
.card .row2 { min-height: 20px; }
.card.ghost { visibility: hidden; pointer-events: none; }
.card.ghost .cact, .card.ghost .cact .ib.fav { visibility: visible; }
.card.ghost .cact .ib.fav { border: 1.5px dashed var(--line-2); background: transparent; color: var(--mute); }
.card.ghost .cact .ib.fav svg { opacity: 0.55; fill: none; }
.cact { display: inline-flex; align-items: center; gap: 4px; }
/* The hide button stands right after the market, apart from the star at the top right. */
.ib.hx { width: 26px; height: 22px; }
.ib.hx svg { width: 13px; height: 13px; }
.profit { display: flex; align-items: center; gap: 10px; min-width: 0; white-space: nowrap; }
.big { font-family: var(--mono); font-size: 21px; font-weight: 700; padding: 0 10px; border-radius: var(--radius-sm); line-height: 34px; flex: none; min-width: calc(10ch + 20px); text-align: center; }
.big.up { background: var(--up-bg); color: var(--up); }
.big.down { background: var(--down-bg); color: var(--down); }
.roi { font-family: var(--mono); font-weight: 700; font-size: 13px; padding: 0 9px; line-height: 22px; border-radius: 999px; background: var(--accent); color: var(--on-accent); flex: none; min-width: calc(8ch + 18px); text-align: center; }
.roi.neg { background: var(--down-bg); color: var(--down); }
.profit .sub { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.alive {
  flex: none; min-width: calc(14ch + 20px); text-align: center; font-family: var(--mono);
  color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 0 9px; line-height: 22px;
}
.sub { color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legs { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); gap: 10px; align-items: center; }
.plus { color: var(--mute); font-size: 18px; text-align: center; }
.leg { display: flex; gap: 10px; align-items: center; min-width: 0; }
.leg > div:last-child { flex: 1 1 auto; min-width: 0; }
.leg > div:last-child > div { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leg .o { font-weight: 600; font-size: 14px; }
.leg .site { font-size: 11px; color: var(--mute); }
.leg .stake { font-family: var(--mono); font-size: 13.5px; }
.leg .px { font-family: var(--mono); }
.conf { font-size: 11px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conf.stale { color: var(--warn); }
.conf .ago { display: inline-block; min-width: 24ch; }

/* The live score after the market: esports — maps won as pips, this map's rounds or kills, map N/M;
   elsewhere — the score, period and clock, as Polymarket shows them. */
.score { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--radius-sm); background: var(--sunken); border: 1px solid var(--line-2); color: var(--fg); }
.score b { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.score small { font-family: var(--mono); color: var(--mute); font-size: 11px; }
.score.fin { opacity: 0.75; }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 7px; height: 7px; border-radius: 1.5px; background: var(--line-2); display: block; }
.pips i.on { background: var(--up); }

/* ---------- favourites: buying ---------- */
.card.fav { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); container-type: inline-size; }
.card.fav:hover { border-color: var(--accent); }
.card.wait, .card.gone { cursor: default; }
.card.gone { opacity: 0.6; }
/* The buy bar (owner, 2026-11-19: «одну длинную кнопку покупки вилки … левую часть выделить под лог»): the log of the
   purchase over the first two thirds, one button for the whole fork — both logos and the sum — over the last. */
.buybar {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: stretch; gap: 6px; cursor: default;
  margin: 2px -14px -12px; padding: 10px 14px; border-top: 1px solid var(--line);
  background: var(--sunken); border-radius: 0 0 var(--radius) var(--radius);
}
.buybar .bb { min-width: 0; padding: 0 8px; }
.bb .bb-2 { display: inline-flex; align-items: center; gap: 3px; flex: none; }
/* The log: what is going on (a spinner), the result in its colour with why it did not go, what stops the fork now, or
   — nothing going on — how the bank splits between the legs. Two lines at most; the whole text in its tooltip. */
.blog { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 36px; padding: 3px 10px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--panel); color: var(--dim); font-size: 12px; line-height: 1.25; }
.blog .bl-t { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.blog .bl-i { flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-style: normal; font-size: 10px; font-weight: 800; line-height: 1; }
.blog.run { color: var(--fg); background: var(--accent-bg); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.blog.run .bl-i { width: 12px; height: 12px; border: 2px solid var(--accent); border-top-color: transparent; animation: pm-spin 0.8s linear infinite; }
.blog.ok { color: var(--up); background: var(--up-bg); border-color: color-mix(in srgb, var(--up) 50%, transparent); }
.blog.ok .bl-i { background: var(--up); color: var(--bg); }
.blog.ok .bl-i::before { content: "✓"; }
.blog.bad { color: var(--down); background: var(--down-bg); border-color: color-mix(in srgb, var(--down) 50%, transparent); }
.blog.bad .bl-i { background: var(--down); color: #fff; }
.blog.bad .bl-i::before { content: "✕"; }
.blog.warn, .blog.min { color: var(--warn); background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 55%, transparent); }
.blog.warn .bl-i, .blog.min .bl-i { background: var(--warn); color: var(--bg); }
.blog.warn .bl-i::before, .blog.min .bl-i::before { content: "!"; }
.blog.idle { justify-content: center; gap: 10px; border-style: dashed; background: transparent; }
.blog .bl-leg { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.blog .bl-leg b { color: var(--fg); font-family: var(--mono); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.blog .bl-leg .vl { width: 16px; height: 16px; }
.blog .bl-plus { color: var(--mute); }
.blog.run > .limrow { flex: 1 1 auto; margin: 0; padding: 0; border: 0; background: transparent; color: var(--fg); }
/* A purchase in progress: the card stays as it was bought, its line says how it goes. */
.card.buying { border-color: var(--accent); }
.card.buying.closed { border-style: dashed; }
/* «Сумма на вилку» over the favourites: the bank of the filters, for every favourite card. */
.favsum { display: inline-flex; align-items: center; gap: 7px; color: var(--mute); font-size: 12px; white-space: nowrap; margin-right: 12px; }
.favsum-f { display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 2px 0 8px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--sunken); color: var(--fg); font-family: var(--mono); font-weight: 600; }
.favsum-f:focus-within { border-color: var(--accent); }
.favsum .inp { width: 70px; height: 26px; border: 0; background: transparent; padding: 0 4px; font-family: var(--mono); font-weight: 600; font-size: 13px; }
.bb {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 32px; padding: 0 11px; border-radius: var(--radius-sm);
  white-space: nowrap; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--fg);
  transition: border-color 0.12s, background-color 0.12s;
}
/* The three buttons alike, grey; the one under the mouse turns blue (owner, 2026-11-19: «все три кнопки … обычный у нас
   серый … при наведении … подсвечиваться эта уже кнопка синим цветом»). */
.bb:hover:not(:disabled) { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.bb.pri { font-weight: 600; }
.bb:disabled { opacity: 0.45; cursor: not-allowed; }
.bb .bb-s { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- order book of a favourite (the representations; each design picks one) ---------- */
.book { display: flex; flex-direction: column; gap: 8px; min-width: 0; cursor: default; }
.reserve { font-family: var(--mono); font-weight: 700; }
.reserve.ok { color: var(--up); }
.reserve.thin { color: var(--warn); }
.reserve.none { color: var(--down); }
table.lv { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; table-layout: fixed; }
table.lv th { text-align: right; color: var(--mute); font-weight: 500; padding: 3px 6px; font-family: var(--sans); font-size: 10.5px; white-space: nowrap; }
table.lv th:first-child, table.lv td:first-child { text-align: left; }
table.lv td { text-align: right; padding: 3px 6px; border-top: 1px solid var(--line); position: relative; white-space: nowrap; }
table.lv td.bar { padding: 0; }
table.lv td.bar i { position: absolute; left: 0; top: 3px; bottom: 3px; background: var(--up-bg); border-right: 2px solid color-mix(in srgb, var(--up) 60%, transparent); }
table.lv tr.minus td.bar i { background: var(--warn-bg); border-right-color: color-mix(in srgb, var(--warn) 60%, transparent); }
table.lv tr.loss td.bar i { background: var(--down-bg); border-right-color: color-mix(in srgb, var(--down) 50%, transparent); }
table.lv tr.mine td { background: color-mix(in srgb, var(--accent) 9%, transparent); }
table.lv tr.mine td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
table.lv tr.edge td { border-bottom: 1px dashed var(--accent); }
/* The levels as a traffic light (owner, 2026-11-16): green — buying down to here, each share adds profit;
   yellow — this level already loses, the fork as a whole is still in plus; red — the fork is in minus. */
table.lv tbody tr:not(.minus):not(.loss) td:not(.bar) { color: var(--up); }
table.lv tr.minus td:not(.bar) { color: var(--warn); }
table.lv tr.loss td:not(.bar) { color: var(--down); }

/* ---------- my bets: shared parts ---------- */
.bets { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bets-tools { display: inline-flex; align-items: center; gap: 10px; color: var(--mute); font-size: 12px; }
.bets-tools b { color: var(--fg); font-family: var(--mono); font-weight: 600; }
.bets-empty { color: var(--mute); font-size: 12.5px; text-align: center; padding: 18px 10px; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.pur { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; position: relative; }
.pur.warn { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); }
.pur.bad { border-color: color-mix(in srgb, var(--down) 55%, var(--line)); }
.pur-legs { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pr { display: inline-flex; align-items: baseline; gap: 6px; padding: 1px 8px; border-radius: var(--radius-sm); background: var(--up-bg); min-width: 0; max-width: 100%; }
.pr.down { background: var(--down-bg); }
.pr b { font-family: var(--mono); font-weight: 700; }
.pr span { color: var(--dim); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.btag { display: inline-block; padding: 0 5px; border-radius: 3px; border: 1px solid var(--line-2); color: var(--mute); font-size: 10px; line-height: 15px; font-family: var(--sans); white-space: nowrap; }
.btag.real { border-color: var(--up); color: var(--up); background: var(--up-bg); }
.btag.warn, .btag.bad { border-color: var(--down); color: var(--down); background: var(--down-bg); }
.btag.slow { border-color: var(--warn); color: var(--warn); }

/* ---------- PNL (web/pnl.js) ---------- */
.pnv { position: relative; display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 1600px; margin: 0 auto; padding-top: 10px; }
.pnv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pnv-per, .pnv-grp { display: flex; flex-wrap: wrap; gap: 6px; }
.pnv-grp { margin-left: auto; }
.pnv-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); color: var(--dim); font-size: 12.5px; white-space: nowrap; transition: border-color 0.12s, color 0.12s, background 0.12s; }
.pnv-chip:hover { border-color: var(--line-2); color: var(--fg); }
.pnv-chip.on { border-color: var(--accent); color: var(--fg); background: var(--accent-bg); }
.pnv-chip svg { flex: none; }
.pnv-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-size: 12.5px; }
.pnv-pname { font-family: var(--head); font-size: 17px; color: var(--fg); }
.pnv-gtag { padding: 1px 8px; border-radius: 10px; background: var(--accent-bg); color: var(--fg); font-size: 11.5px; }

/* The numbers of the period: the hero tile over two columns, the others by its side. */
.pnv-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 10px; }
.pnv-k { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.pnv-k.big { grid-column: span 2; }
.pnv-kl { color: var(--mute); font-size: 11.5px; font-weight: 600; }
.pnv-kv { font-size: 22px; font-weight: 600; line-height: 1.15; white-space: nowrap; font-variant-numeric: normal; color: var(--fg); }
.pnv-k.big .pnv-kv { font-size: 34px; }
.pnv-kv.up { color: var(--up); }
.pnv-kv.down { color: var(--down); }
.pnv-k small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--dim); font-size: 11.5px; line-height: 1.45; }
.pnv-k small b { font-weight: 600; }
.pnv-k small b.up { color: var(--up); }
.pnv-k small b.down { color: var(--down); }
.pnv-pill { display: inline-block; padding: 1px 8px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: 11.5px; font-weight: 600; }
.pnv-pill.neg { background: var(--down); color: #fff; }

/* The charts: the curve wider than the days on a wide screen, one under the other on a narrow one. */
.pnv-charts { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 10px; }
.pnv-card { min-width: 0; padding: 12px 14px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.pnv-ch { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; }
.pnv-ch > b { font-family: var(--head); font-size: 13.5px; font-weight: 600; }
.pnv-chs { color: var(--mute); font-size: 11.5px; }
.pnv-plot { min-height: 240px; }
.pnv-svg { display: block; max-width: 100%; height: auto; overflow: visible; }
.pnv-gl { stroke: var(--line); stroke-width: 1; }
.pnv-gl.z { stroke: var(--line-2); }
.pnv-ax { fill: var(--mute); font: 10.5px var(--sans); font-variant-numeric: tabular-nums; }
.pnv-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pnv-area { fill: var(--accent); opacity: 0.1; stroke: none; }
.pnv-end, .pnv-dot { fill: var(--accent); stroke: var(--panel); stroke-width: 2; }
.pnv-endl { fill: var(--fg); font: 600 12px var(--sans); }
.pnv-cross { stroke: var(--dim); stroke-width: 1; pointer-events: none; }
.pnv-dot { pointer-events: none; }
.pnv-hit, .pnv-bhit { fill: transparent; }
.pnv-hit { cursor: crosshair; }
.pnv-bar { stroke: none; transition: opacity 0.1s; }
.pnv-bar.up { fill: var(--up); }
.pnv-bar.down { fill: var(--down); }
.pnv-days .pnv-svg:hover .pnv-bar:not(.hot) { opacity: 0.55; }
.pnv-empty { display: grid; place-items: center; height: 220px; color: var(--mute); font-size: 12.5px; }

/* The tooltip: the value first and strong, the label after it. */
.pnv-tip { position: absolute; z-index: 40; max-width: 340px; padding: 8px 10px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); pointer-events: none; display: flex; flex-direction: column; gap: 4px; }
.pnv-tip[hidden] { display: none; }
.pnv-tr { display: flex; flex-direction: column; gap: 0; }
.pnv-tr b { font-size: 13px; font-weight: 600; color: var(--fg); }
.pnv-tr.up b { color: var(--up); }
.pnv-tr.down b { color: var(--down); }
.pnv-tr span { color: var(--dim); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The breakdowns. */
.pnv-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.pnv-tab { height: 24px; padding: 0 10px; border: 1px solid transparent; border-radius: var(--radius-sm); background: none; color: var(--dim); font-size: 12px; }
.pnv-tab:hover { color: var(--fg); }
.pnv-tab.on { border-color: var(--line-2); background: var(--panel-2); color: var(--fg); }
table.pnv-bt, table.pnv-t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pnv-bt th, .pnv-t th { text-align: left; color: var(--mute); font-weight: 600; font-size: 11px; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pnv-bt td, .pnv-t td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pnv-bt tr:last-child td, .pnv-t tr:last-child td { border-bottom: 0; }
.pnv-bt .r, .pnv-t .r { text-align: right; white-space: nowrap; }
.pnv-bt td.up b, .pnv-t td.up b { color: var(--up); }
.pnv-bt td.down b, .pnv-t td.down b { color: var(--down); }
.pnv-bn { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 320px; }
.pnv-bn > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pnv-bn .spi { width: 16px; height: 16px; }
.pnv-brkb { overflow-x: auto; }
.pnv-bcol { width: 22%; min-width: 80px; }
.pnv-bb { display: block; height: 6px; margin-top: 6px; border-radius: 3px; }
.pnv-bb.up { background: var(--up); }
.pnv-bb.down { background: var(--down); }

/* The purchases. */
.pnv-tw { overflow-x: auto; }
.pnv-t th.pnv-sort { cursor: pointer; user-select: none; }
.pnv-t th.pnv-sort:hover, .pnv-t th.pnv-sort.on { color: var(--fg); }
.pnv-nw { white-space: nowrap; }
.pnv-ev { min-width: 200px; max-width: 360px; }
.pnv-ev b { display: block; font-family: var(--head); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pnv-ev small { display: flex; align-items: center; gap: 5px; color: var(--mute); font-size: 11.5px; }
.pnv-ev small .spi { width: 14px; height: 14px; }
.pnv-acc { white-space: nowrap; }
.pnv-acc small { display: block; color: var(--mute); font-size: 11px; }
.pnv-accn { display: inline-block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; padding: 0 7px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line-2); font-size: 11.5px; line-height: 18px; }
.pnv-legs { display: flex; flex-direction: column; gap: 3px; }
.pnv-leg { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; }
.pnv-lo { max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.pnv-ln { color: var(--dim); font-variant-numeric: tabular-nums; }
.pnv-st { display: inline-block; padding: 0 7px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); color: var(--dim); font-size: 11px; line-height: 19px; white-space: nowrap; }
.pnv-st.won, .pnv-st.lost { border-color: var(--up); color: var(--up); }
.pnv-st.half { border-color: var(--down); color: var(--down); }
.pnv-none { padding: 18px 8px !important; text-align: center; }
.pnv-more { display: flex; justify-content: center; padding-top: 8px; }
.pnv-more:empty { display: none; }
.pnv-note { color: var(--mute); font-size: 12px; line-height: 1.5; padding-bottom: 6px; }

/* The calendar of dates: two months, the days with purchases marked by a dot. */
.pnv-calw:empty { display: none; }
.pnv-cal { display: inline-flex; flex-direction: column; gap: 10px; max-width: 100%; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); }
.pnv-calh { display: flex; align-items: center; justify-content: space-between; }
.pnv-nav { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); color: var(--fg); font-size: 16px; line-height: 1; }
.pnv-nav:disabled { opacity: 0.35; cursor: default; }
.pnv-ms { display: flex; flex-wrap: wrap; gap: 18px; }
.pnv-m { width: 252px; }
.pnv-mh { margin-bottom: 6px; font-family: var(--head); font-weight: 600; text-align: center; }
.pnv-wd, .pnv-dg { display: grid; grid-template-columns: repeat(7, 36px); }
.pnv-wd span { color: var(--mute); font-size: 11px; text-align: center; padding-bottom: 4px; }
.pnv-d { position: relative; height: 32px; border: 0; background: none; color: var(--fg); font-size: 12.5px; border-radius: 0; padding: 0; }
.pnv-d.void { pointer-events: none; }
button.pnv-d:hover { background: var(--panel-2); border-radius: var(--radius-sm); }
.pnv-d.fut { color: var(--mute); opacity: 0.4; display: grid; place-items: center; }
.pnv-d.today { box-shadow: inset 0 0 0 1px var(--line-2); border-radius: var(--radius-sm); }
.pnv-d.has::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 2px; background: var(--up); }
.pnv-d.in { background: var(--accent-bg); }
.pnv-d.lo, .pnv-d.hi { background: var(--accent) !important; color: #fff; }
.pnv-d.lo { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.pnv-d.hi { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.pnv-d.lo.hi { border-radius: var(--radius-sm); }
.pnv-calf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.pnv-pick { flex: 1 1 200px; color: var(--dim); font-size: 12.5px; }
.pnv-calq { display: flex; gap: 6px; }
.pnv-btn { height: 28px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--panel-2); color: var(--fg); }
.pnv-btn.pri { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pnv-btn:disabled { opacity: 0.45; cursor: default; }

@media (max-width: 1099px) {
  .pnv-charts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 699px) {
  .pnv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pnv-k.big { grid-column: span 2; }
  .pnv-grp { margin-left: 0; }
  .pnv-m { width: 100%; }
  .pnv-wd, .pnv-dg { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .pnv-bcol { display: none; }
  .pnv-bt small { display: none; }
}
.stl { display: inline-block; font-size: 11px; padding: 0 7px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); color: var(--dim); white-space: nowrap; line-height: 19px; }
.stl.won { color: var(--up); border-color: var(--up); background: var(--up-bg); }
.stl.lost { color: var(--down); border-color: var(--down); background: var(--down-bg); }
.stl.open { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 60%, transparent); }

/* ---------- tables ---------- */
table.grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.grid th {
  position: sticky; top: -14px; z-index: 1; background: var(--bg); text-align: left; font-weight: 600; color: var(--mute);
  font-size: 11px; text-transform: var(--label-case); letter-spacing: var(--label-track); padding: 8px; border-bottom: 1px solid var(--line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
table.grid td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.grid tr.row { cursor: pointer; }
table.grid tr.row:hover td { background: color-mix(in srgb, var(--fg) 3%, transparent); }
table.grid tr.sel td { background: var(--accent-bg); }
table.grid tr.unconf td { opacity: 0.55; }
table.grid tr.grp td { padding: 16px 8px 6px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: var(--label-track); text-transform: var(--label-case); }
table.grid tr.grp td .sc { margin-left: 8px; font-family: var(--mono); color: var(--mute); }
.cell-ev b, .cell-ev span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-ev span { color: var(--mute); font-size: 11px; }
.cell-ev .evline { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cell-ev .evline b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg { display: flex; flex-direction: column; min-width: 0; }
.lg > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg .site { font-size: 11px; color: var(--mute); }
.cell-btns { text-align: right; }
.cell-btns .btn + .btn { margin-left: 4px; }
.st { display: inline-block; font-size: 11px; border-radius: var(--radius-sm); padding: 0 7px; line-height: 20px; border: 1px solid var(--line-2); white-space: nowrap; }
.st.confirmed { color: var(--up); border-color: var(--up); background: var(--up-bg); }
.st.pending { color: var(--warn); border-color: var(--warn); background: var(--warn-bg); }
.st.checking { color: var(--accent); border-color: var(--accent); background: var(--accent-bg); }
.st.rejected { color: var(--down); border-color: var(--down); background: var(--down-bg); }
.st.none { color: var(--mute); }
table.grid tr.det td { background: var(--sunken); white-space: normal; overflow: visible; }
table.slots { width: 100%; border-collapse: collapse; font-size: 12px; table-layout: fixed; }
table.slots th { text-align: left; color: var(--mute); font-weight: 500; padding: 4px 6px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.slots td { padding: 4px 6px; border-top: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.det-head { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; min-width: 0; }
.det-head > span { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- boxes and rows of the windows ---------- */
.box { background: var(--sunken); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.row2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.row2 > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row2 b { font-family: var(--mono); font-weight: 600; white-space: nowrap; flex: none; }
.row2 a { white-space: nowrap; flex: none; }
table.book { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; }
table.book th { text-align: right; color: var(--mute); font-weight: 500; padding: 3px 6px; font-family: var(--sans); font-size: 11px; }
table.book td { text-align: right; padding: 3px 6px; border-top: 1px solid var(--line); }
.close { margin-left: auto; background: transparent; border: 0; color: var(--mute); font-size: 18px; flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border-radius: var(--radius-sm); }
.close:hover { color: var(--fg); background: var(--sunken); }

/* ---------- toasts ---------- */
/* All notices of one width, the text from the start (owner, 2026-11-20: «ширина блока уведомления … везде пускай будет
   одинаковая … выравнивания по началу»): a short one no longer shrinks to the right edge. */
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 9999; display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: min(460px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; cursor: pointer; background: var(--panel-2); color: var(--fg); border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 9px 12px; font-size: 13px; line-height: 1.4; box-shadow: var(--shadow); animation: toast-in 0.16s ease-out; transition: opacity 0.25s ease; }
.toast.ok { border-left-color: var(--up); }
.toast.bad { border-left-color: var(--down); }
.toast.slow { border-left-color: var(--warn); }
.toast.out { opacity: 0; }
.toast { text-align: left; }
/* The bookmaker and the account a notice is about (owner, 2026-11-20), laid out on 2026-11-21 («значок и имя не
   отцентрированы по сравнению с надписью … чтобы было аккуратно и красиво»): the logo at the left in the middle of the
   notice's height, the account in bold and the bookmaker small on the first line, the text under them. */
.toast.wh { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 11px; align-items: center; padding: 9px 12px 10px 11px; }
.t-lg { display: grid; place-items: center; align-self: center; }
.t-bd { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.t-hd { display: flex; align-items: center; gap: 6px; min-width: 0; line-height: 1.25; white-space: nowrap; }
.t-hd b { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--fg); font-weight: 700; font-size: 13px; }
.t-hd span { flex: none; color: var(--mute); font-size: 11.5px; }
.t-hd span::before { content: '·'; margin-right: 6px; }
.t-tx { display: block; color: var(--fg); overflow-wrap: anywhere; }
.toast.wh .t-tx { color: var(--dim); }
.jr-c .t-hd { margin-bottom: 2px; }
.jr-c .t-hd b { font-size: 12.5px; }
.jr-tx { display: block; }
/* The journal of notices (owner, 2026-11-20): a panel under the menu at the right, every notice with its time, newest
   first, its own scroll. */
.jr { position: fixed; z-index: 9998; top: 52px; right: 16px; width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 68px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); }
.jr[hidden] { display: none; }
.jr-h { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--line); }
.jr-h b { font-family: var(--head); font-size: 14px; }
.jr-h .spacer { flex: 1 1 auto; }
.jr-n { color: var(--mute); font-size: 12px; font-variant-numeric: tabular-nums; }
.jr-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.jr-e { flex: none; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: start; padding: 7px 10px; background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); font-size: 12.5px; line-height: 1.45; }
.jr-e.ok { border-left-color: var(--up); }
.jr-e.bad { border-left-color: var(--down); }
.jr-e.slow { border-left-color: var(--warn); }
.jr-t { font-family: var(--mono); font-size: 11px; line-height: 20px; color: var(--mute); white-space: nowrap; font-variant-numeric: tabular-nums; }
.jr-c { min-width: 0; overflow-wrap: anywhere; }
.jr-empty { padding: 18px 12px; color: var(--mute); font-size: 12.5px; text-align: center; }
.mi.jr-on { color: var(--fg); background: var(--panel-2); }
.mi.jr-on .mi-i { color: var(--accent); }
@media (max-width: 999px) {
  .jr { top: 8px; right: 8px; left: 8px; width: auto; max-height: calc(100vh - 16px); }
  .jr-e { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
}
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- settings ---------- */
.settings { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.settings h2 { margin: 0; font-family: var(--head); font-size: 16px; }
.settings .sec { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.settings .line { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.settings .line > label { color: var(--mute); width: 150px; flex: none; }
.settings .line input[type="text"] { flex: 1 1 260px; min-width: 0; font-family: var(--mono); }
.settings .hint { color: var(--mute); font-size: 12px; }
.settings .state { display: flex; align-items: center; gap: 8px; min-width: 0; }
.settings .state > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings .err { color: var(--down); }
.settings .stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.settings .stat { background: var(--sunken); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; white-space: nowrap; }
.settings .stat b { font-family: var(--mono); font-weight: 600; }
table.bench td.best { color: var(--up); font-weight: 600; }
table.bench tr.cur td { background: var(--accent-bg); }

/* ---------- Vision profiles ---------- */
.vision { max-width: 1480px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.vision .err { color: var(--down); }
.vhero { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.vhero h2 { margin: 0; font-family: var(--head); font-size: 18px; }
.vhero p { margin: 4px 0 0; color: var(--mute); font-size: 12.5px; max-width: 760px; }
.vhero .btn { flex: none; }
.vtiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1300px) { .vtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vtile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vt-label { font-size: 10.5px; letter-spacing: var(--label-track); text-transform: var(--label-case); color: var(--mute); font-weight: 600; }
.vt-main { display: flex; align-items: center; gap: 8px; min-height: 24px; font-size: 14px; color: var(--fg); min-width: 0; }
.vt-main > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-token { font-family: var(--mono); font-size: 13px; color: var(--fg); background: var(--sunken); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 1px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.vt-mono { font-family: var(--mono); font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.vt-sub { color: var(--mute); font-size: 12px; min-height: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-form { display: flex; align-items: center; gap: 6px; margin-top: 4px; min-width: 0; }
.vt-form input { height: 28px; font-size: 12px; }
.vt-form input#v-token, .vt-form input#v-args, .vt-form input#v-mmp { flex: 1 1 auto; min-width: 0; font-family: var(--mono); }
.vt-form input#v-port { width: 76px; flex: none; text-align: center; font-family: var(--mono); }
.vt-pre { color: var(--mute); font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.vmsg { font-size: 12.5px; color: var(--up); }
.vmsg.err { color: var(--down); }
.vmsg:empty { display: none; }
.vcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; min-width: 0; }
.vcard-h { display: flex; align-items: center; gap: 10px; min-height: 30px; margin-bottom: 6px; min-width: 0; }
.vcard-h h3, .vfolders h3 { margin: 0; font-size: 14px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcard-h h3 { flex: 1 1 auto; }
.vcard-h input { width: 280px; max-width: 55%; height: 30px; }
.vcount { font-family: var(--mono); color: var(--mute); }
.vsplit { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 18px; align-items: start; }
.vfolders { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vfolders h3 { min-height: 30px; display: flex; align-items: center; }
.vflist { display: flex; flex-direction: column; gap: 4px; }
.vfi {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 10px; text-align: left;
  border: 1px solid transparent; border-radius: var(--radius); background: transparent; color: var(--dim);
  transition: background-color 0.12s, border-color 0.12s, color 0.12s;
}
.vfi:hover { background: var(--sunken); color: var(--fg); }
.vfi.on { color: var(--fg); border-color: color-mix(in srgb, var(--fc) 55%, transparent); background: color-mix(in srgb, var(--fc) 13%, transparent); }
.vfi .ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; color: var(--fc); background: color-mix(in srgb, var(--fc) 16%, transparent); }
.vfi .ic svg { width: 15px; height: 15px; }
.vfi .nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.vfi .vrc { flex: none; min-width: 3ch; color: var(--up); font-size: 12px; text-align: right; }
.vfi .cnt { flex: none; font-family: var(--mono); color: var(--mute); font-size: 12px; }
/* The table lays itself out by its own width: one line per profile when it is wide, two lines (the key and
   MetaMask under the rest) when it is not, the phone layout below 860 px of screen. */
.vtable { min-width: 0; container: vt / inline-size; }
.vtr {
  display: grid; grid-template-columns: 8px minmax(130px, 1.2fr) minmax(0, 1fr) 124px 88px 150px 240px 196px;
  align-items: center; gap: 10px; min-height: 48px; padding: 5px 8px; border-top: 1px solid var(--line);
}
@container vt (max-width: 1039px) {
  .vtr { grid-template-columns: 8px minmax(120px, 1.3fr) minmax(0, 1fr) 124px 88px 196px; grid-template-areas: "dot name note state port acts" "dot key key mm mm mm"; row-gap: 6px; }
  .vtr > .dot, .vtr > .vt-dot { grid-area: dot; align-self: start; margin-top: 12px; }
  .vtr > .vt-name { grid-area: name; }
  .vtr > .vt-note { grid-area: note; }
  .vtr > .vt-state { grid-area: state; }
  .vtr > .vt-portc { grid-area: port; }
  .vtr > .vt-key { grid-area: key; }
  /* The «↻» stays next to the state, not at the far end of the line. */
  .vtr > .vt-mm { grid-area: mm; max-width: 320px; }
  .vtr > .vt-acts { grid-area: acts; }
}
.vtbody .vtr:hover { background: color-mix(in srgb, var(--fg) 3%, transparent); }
.vth { min-height: 28px; border-top: 0; color: var(--mute); font-size: 10.5px; letter-spacing: var(--label-track); text-transform: var(--label-case); font-weight: 600; }
.vtr > .dot { justify-self: center; }
.vt-name { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.vt-name b, .vt-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-name small { color: var(--mute); font-size: 11px; }
.vt-note { color: var(--dim); font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-portc { min-width: 0; }
.vt-portc b { font-size: 13px; }
.vt-pin { width: 84px; height: 28px; text-align: center; font-family: var(--mono); font-size: 12px; }
.vt-acts { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.vchip { display: inline-block; font-size: 11.5px; line-height: 20px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--mute); white-space: nowrap; }
.vchip.ok { color: var(--up); border-color: color-mix(in srgb, var(--up) 50%, transparent); background: var(--up-bg); }
.vchip.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 50%, transparent); background: var(--warn-bg); }
.vnote { padding: 14px 8px; color: var(--mute); border-top: 1px solid var(--line); }
/* MetaMask (owner, 2026-11-20): the profile's key and its MetaMask, two columns of the table. */
.vt-key, .vt-mm { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; line-height: 1.3; }
.vt-key > b { font-weight: 500; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-key code { font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.vt-key small { display: flex; gap: 12px; min-width: 0; }
.vtr .lnk { text-decoration: none; font-size: 11.5px; white-space: nowrap; }
.vtr .lnk:hover { text-decoration: underline; }
.vision .lnk.no { color: var(--down); }
.vision .lnk.arm { font-weight: 700; text-decoration: underline; }
.vt-mm .mm1 { display: flex; align-items: center; gap: 7px; min-width: 0; }
.vt-mm .mm1 > b { flex: 1 1 auto; min-width: 0; font-weight: 500; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-mm .ib { width: 24px; height: 22px; font-size: 14px; line-height: 1; }
.vt-mm .ib:disabled { opacity: 0.45; cursor: default; }
.ib.vmm-go:hover:not(:disabled), .ib.vmm-go:focus-visible { color: var(--accent); border-color: var(--accent); background: var(--accent-bg); outline: none; }
.vt-mm small { color: var(--mute); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-mm small.err { color: var(--down); }
.vt-mm .btn.sm { align-self: flex-start; height: 22px; }
.vision .btn.arm { background: var(--down); border-color: var(--down); color: #fff; }
.dot.pulse { animation: pm-pulse 1s ease-in-out infinite; }
/* The key field under a profile's row: masked by `secret`, never a password field. */
.vkedit { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 8px 8px 10px 26px; border-top: 1px dashed var(--line-2); background: var(--sunken); }
.vkedit .vk-l { color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.vkedit input { flex: 1 1 300px; min-width: 0; height: 28px; font-family: var(--mono); font-size: 12px; }
.vkedit .vk-h { flex-basis: 100%; color: var(--mute); font-size: 11px; }

/* ---------- bookmaker windows (BC.Game, Solcasino, BTi, 1win) ---------- */
body.bk-open, body.pm-open { overflow: hidden; }
/* A bookmaker's window: what is going on and what to do, coloured by the venue's light. */
.bkh { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--sunken); font-size: 12.5px; line-height: 1.45; }
.bkh b { font-weight: 600; color: var(--fg); }
.bkh span { color: var(--dim); }
.bkh.ok { border-color: color-mix(in srgb, var(--up) 35%, var(--line)); }
.bkh.warn { border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); background: var(--warn-bg); }
.bkh.bad { border-color: color-mix(in srgb, var(--down) 55%, var(--line)); background: var(--down-bg); }
.bcstats { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--dim); font-size: 12px; }
.bcstats b { color: var(--fg); font-weight: 600; }
.bclog-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--dim); font-size: 12px; margin-top: 2px; }
.bclog { display: flex; flex-direction: column; gap: 5px; max-height: 360px; overflow-y: auto; font-size: 12px; }
.bcl { display: grid; grid-template-columns: 64px 44px minmax(0, 1fr); gap: 7px; align-items: start; padding: 7px 9px; border-radius: var(--radius); background: var(--sunken); border: 1px solid var(--line); }
.bcl.ok { border-color: color-mix(in srgb, var(--up) 30%, var(--line)); }
.bcl.bad { border-color: color-mix(in srgb, var(--down) 40%, var(--line)); }
.bct { color: var(--mute); font-family: var(--mono); font-size: 11px; }
.bcl > b { color: var(--dim); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.3px; }
.bcm { min-width: 0; color: var(--fg); line-height: 1.4; overflow-wrap: anywhere; }
.bcx { display: block; color: var(--dim); margin-top: 2px; }

/* ---------- windows ---------- */
.pmm {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px;
  background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  opacity: 0; transition: opacity 0.18s ease;
}
.pmm[hidden] { display: none; }
.pmm.in { opacity: 1; }
.pmm-card-w {
  width: min(480px, 100%); max-height: min(780px, calc(100vh - 32px)); display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: calc(var(--radius) * 2 + 4px);
  box-shadow: var(--shadow); transform: translateY(10px) scale(0.98); transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.1); overflow: hidden;
}
.pmm.in .pmm-card-w { transform: none; }
.pmm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; }
.pmm-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pmm-title h3 { margin: 0; font-family: var(--head); font-size: 19px; letter-spacing: 0.2px; }
.pmm-sub { display: flex; align-items: center; gap: 7px; color: var(--dim); font-size: 12px; margin-top: 3px; min-width: 0; }
.pmm-x {
  width: 34px; height: 34px; flex: none; border-radius: var(--radius); border: 1px solid var(--line); background: var(--sunken);
  color: var(--dim); font-size: 20px; line-height: 1; display: grid; place-items: center; transition: color 0.15s, border-color 0.15s;
}
.pmm-x:hover { color: var(--fg); border-color: var(--accent); }
/* «×» everywhere (owner, 2026-11-17: «кнопки хрестик отцентрируй»): one SVG icon (X_ICON), centred by each
   button's own grid; a font's × glyph sits off the middle by the font's metrics. */
.xic { display: block; width: 14px; height: 14px; flex: none; pointer-events: none; }
.pmm-x { padding: 0; }
.pmm-x .xic { width: 16px; height: 16px; }
.rail-x .xic { width: 13px; height: 13px; }
.pmm-body { padding: 14px 18px 18px; overflow-y: auto; min-height: 140px; animation: pm-fade 0.18s ease; display: flex; flex-direction: column; gap: 12px; }
@keyframes pm-fade { from { opacity: 0; transform: translateY(4px); } }
.pmm-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--radius); background: var(--sunken); border: 1px solid var(--line); }
.pmm-seg button { height: 38px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--dim); font-weight: 600; transition: background 0.15s, color 0.15s; }
.pmm-seg button.on { background: var(--panel-2); color: var(--fg); box-shadow: 0 0 0 1px var(--line-2) inset; }
.pmm-seg.sm { width: max-content; grid-template-columns: auto auto; }
.pmm-seg.sm button { height: 28px; padding: 0 12px; font-weight: 500; font-size: 12px; }
.pmm-seg3 { grid-template-columns: repeat(3, 1fr); }
.pmm-hint { margin: 0; color: var(--dim); line-height: 1.5; }
.pmm-hint b { color: var(--fg); font-weight: 600; }
.pmm-c { display: flex; align-items: flex-start; gap: 10px; color: var(--fg); line-height: 1.35; cursor: pointer; }
.pmm-c input { margin-top: 2px; width: 16px; height: 16px; flex: none; }
.pmm-c div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pmm-c b { font-weight: 500; }
.pmm-c span { display: block; color: var(--mute); font-size: 11px; }
.pmm-step { display: flex; flex-direction: column; gap: 9px; padding: 12px 13px; border-radius: var(--radius); background: var(--sunken); border: 1px solid var(--line); transition: border-color 0.25s; }
.pmm-step.done { border-color: color-mix(in srgb, var(--up) 40%, var(--line)); }
.pmm-step-h { display: flex; align-items: center; gap: 9px; }
.pmm-step-h > b { font-size: 13.5px; flex: none; }
.pmm-num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 12px; font-weight: 700; background: var(--panel-2); color: var(--dim); transition: background 0.25s, color 0.25s; }
.pmm-step.done .pmm-num { background: var(--up-bg); color: var(--up); }
.pmm-step-s { margin-left: auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font-size: 11.5px; color: var(--dim); text-align: right; }
.pmm-step-s > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pmm-in { width: 100%; height: 40px; padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); color: var(--fg); font-size: 13px; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.pmm-in:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.pmm-in.mono { font-family: var(--mono); font-size: 12.5px; }
/* Masked by CSS, never type="password": the browser has nothing to offer to save. */
.secret { -webkit-text-security: disc; text-security: disc; }
.pmm-help { color: var(--mute); font-size: 11px; line-height: 1.55; }
.pmm-help code { font-family: var(--mono); font-size: 10.5px; color: var(--dim); background: var(--panel-2); padding: 0 4px; border-radius: 3px; white-space: nowrap; }
.pmm-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pmm-pres { font-size: 12px; line-height: 1.45; padding: 8px 10px; border-radius: var(--radius); animation: pm-fade 0.18s ease; }
.pmm-pres.ok { background: var(--up-bg); color: var(--fg); border: 1px solid color-mix(in srgb, var(--up) 40%, transparent); }
.pmm-pres.warn { background: var(--warn-bg); color: var(--fg); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); }
.pmm-pres.bad { background: var(--down-bg); color: var(--fg); border: 1px solid color-mix(in srgb, var(--down) 40%, transparent); }
.pmm-pres.run { display: flex; align-items: center; gap: 8px; background: var(--panel-2); color: var(--dim); border: 1px solid var(--line-2); }
.pmm-pres.run .dot { animation: pm-pulse 1s ease-in-out infinite; }
.pmm-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--radius); background: var(--sunken); border: 1px solid var(--line); }
.pmm-card.sm { padding: 10px 12px; gap: 4px; }
.pmm-addr { display: flex; flex-direction: column; gap: 3px; padding: 5px 0; border-top: 1px solid var(--line); }
.pmm-addr-h { display: flex; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; }
.pmm-addr-h > span { font-size: 12.5px; font-weight: 600; color: var(--fg); }
.pmm-addr-h > small { font-size: 11px; color: var(--mute); }
.pmm-addr-v { display: flex; align-items: center; gap: 8px; }
.pmm-addr-v code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.35; color: var(--fg); overflow-wrap: anywhere; word-break: break-all; user-select: all; }
.pmm-addr-v .ib.done, .pmm-kv .ib.done { color: var(--up); border-color: var(--up); }
.pmm-lim.wide input { width: 140px; height: 38px; }
.pmm-pline { display: flex; flex-direction: column; min-width: 0; font-size: 12px; }
.pmm-pline > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pmm-go { height: 48px; border: 0; border-radius: var(--radius); color: var(--on-accent); font-weight: 600; font-size: 14.5px; background: var(--accent); transition: transform 0.12s, filter 0.15s, opacity 0.15s; }
.pmm-go:hover:not(:disabled) { filter: brightness(1.08); }
.pmm-go:active:not(:disabled) { transform: translateY(1px); }
.pmm-go:disabled { opacity: 0.6; cursor: default; }
.pmm-err { color: var(--down); font-size: 12px; line-height: 1.4; }
.pmm-err:empty { display: none; }
.pmm-link { align-self: center; background: none; border: 0; color: var(--dim); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.pmm-prog { height: 3px; border-radius: 3px; background: transparent; overflow: hidden; margin-bottom: -6px; }
.pmm-prog.on { background: var(--panel-2); }
.pmm-prog i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width 0.35s ease; }
.pmm-prog:not(.on) i { opacity: 0; transition: width 0.35s ease, opacity 0.5s 0.4s; }
.pmm-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ck { display: flex; align-items: center; gap: 11px; padding: 7px 4px; border-radius: var(--radius); transition: background 0.2s; }
.ck div { min-width: 0; display: flex; flex-direction: column; }
.ck b { font-size: 12.5px; font-weight: 600; }
.ck small { color: var(--mute); font-size: 11.5px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.ck.fail small { color: var(--down); }
.ck.warn small { color: var(--warn); }
.ck-i { width: 20px; height: 20px; flex: none; border-radius: 50%; position: relative; border: 2px solid var(--line-2); transition: border-color 0.2s, background 0.2s; }
.ck.run .ck-i { border-top-color: var(--accent); animation: pm-spin 0.75s linear infinite; }
.ck.ok .ck-i { border-color: var(--up); background: var(--up-bg); }
.ck.ok .ck-i::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid var(--up); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ck.fail .ck-i { border-color: var(--down); background: var(--down-bg); }
.ck.fail .ck-i::before, .ck.fail .ck-i::after { content: ""; position: absolute; left: 7px; top: 3px; width: 2px; height: 10px; background: var(--down); border-radius: 1px; transform: rotate(45deg); }
.ck.fail .ck-i::after { transform: rotate(-45deg); }
.ck.warn .ck-i { border-color: var(--warn); background: var(--warn-bg); }
.ck.warn .ck-i::after { content: "!"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--warn); font-weight: 700; font-size: 12px; line-height: 16px; text-align: center; }
.ck.skip .ck-i { border-style: dashed; }
.ck.wait { opacity: 0.55; }
@keyframes pm-spin { to { transform: rotate(360deg); } }
@keyframes pm-pulse { 50% { opacity: 0.35; } }
.pmm-state { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: var(--radius); font-weight: 600; font-size: 13px; line-height: 1.35; }
.pmm-state.ok { background: var(--up-bg); color: var(--fg); border: 1px solid color-mix(in srgb, var(--up) 40%, transparent); }
.pmm-state.warn { background: var(--warn-bg); color: var(--fg); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); font-weight: 500; }
.pmm-state.run { background: var(--panel-2); color: var(--dim); border: 1px solid var(--line-2); }
.pmm-who { display: flex; align-items: center; gap: 10px; }
.pmm-who b { display: block; font-size: 14px; }
.pmm-who small { color: var(--mute); font-size: 11.5px; }
.pmm-ava { width: 34px; height: 34px; border-radius: 50%; flex: none; position: relative; overflow: hidden; display: grid; place-items: center; background: #1652f0; color: #fff; font-weight: 700; }
.pmm-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pmm-bal { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding: 6px 0 8px; border-bottom: 1px solid var(--line); }
.pmm-bal > span { color: var(--mute); font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; width: 100%; }
.pmm-bal b { font-size: 26px; font-weight: 700; letter-spacing: -0.3px; }
.pmm-bal small { color: var(--dim); font-size: 12px; }
.pmm-kv { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 28px; }
.pmm-kv > span:first-child { color: var(--mute); font-size: 12px; }
.pmm-kv code { font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg); }
.pmm-kv b { font-weight: 500; font-size: 12.5px; grid-column: 2 / -1; }
.pmm-lim { grid-column: 2 / -1; display: inline-flex; align-items: center; gap: 6px; color: var(--dim); }
.pmm-lim input { width: 90px; height: 30px; text-align: right; font-family: var(--mono); border-radius: var(--radius-sm); }
.pmm-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.pmm-actions .mute { margin-right: auto; font-size: 11.5px; }
.pmm-empty { color: var(--mute); text-align: center; padding: 34px 0; }
.pmm-skel { display: flex; flex-direction: column; gap: 8px; }
.pmm-skel i { display: block; height: 40px; border-radius: var(--radius); background: linear-gradient(90deg, var(--sunken) 0%, var(--panel-2) 50%, var(--sunken) 100%); background-size: 200% 100%; animation: pm-shimmer 1.1s linear infinite; }
@keyframes pm-shimmer { to { background-position: -200% 0; } }
.pmm-side { font-size: 11px; padding: 1px 7px; border-radius: 3px; background: var(--panel-2); color: var(--dim); white-space: nowrap; }
.pmm-side.buy { background: var(--up-bg); color: var(--up); }
.pmm-side.sell { background: var(--down-bg); color: var(--down); }
.pmm-more { align-self: center; height: 32px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--sunken); color: var(--dim); }
.pmm-more:hover:not(:disabled) { color: var(--fg); border-color: var(--accent); }
.pmm.ask .askrow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 10px; }
.pmm.ask .askrow .mute { color: var(--mute); font-size: 12px; }
.pmm.ask .askrow .inp { width: 64px; text-align: right; }

/* ---------- Polymarket portfolio window: as on polymarket.com (dark) ---------- */
.pmm.port .pmm-card-w { width: min(1040px, 100%); max-height: min(880px, calc(100vh - 32px)); }
/* The Polymarket window keeps one size whatever it shows (owner, 2026-11-21: «зафиксируй … на определенном уровне открытие
   полимаркет окна … даже когда я там нажимаю подключение, портфель … в одном уже готовом окне»): «Портфель», «Подключение»,
   «Депозит» and every list scroll inside it, the window never grows, shrinks or narrows. */
#pmm .pmm-card-w { width: min(1040px, 100%); height: min(880px, calc(100vh - 32px)); max-height: none; }
#pmm .pf-body, #pmm .pmm-body { flex: 1 1 auto; min-height: 0; }
#pmm .pmm-body[data-tab="conn"] > * { width: min(720px, 100%); margin-left: auto; margin-right: auto; }
.pf-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px 0; }
.pf-head .pmm-title { flex: 1 1 auto; }
.pf-nav { display: inline-flex; gap: 4px; padding: 3px; border-radius: var(--radius); background: var(--sunken); border: 1px solid var(--line); }
.pf-nav button { height: 30px; padding: 0 12px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--dim); font-weight: 600; font-size: 12.5px; }
.pf-nav button.on { background: var(--panel-2); color: var(--fg); }
.pf-body { padding: 16px 20px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; min-height: 200px; }
.pf-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.pf-card { background: var(--sunken); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; position: relative; }
.pf-lbl { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 13px; }
.pf-lbl .ib { width: 24px; height: 22px; border: 0; }
.pf-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pf-val { font-family: var(--sans); font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; }
.pf-val .ib { vertical-align: middle; margin-left: 6px; border: 0; color: var(--mute); }
.pf-chg { font-size: 12.5px; }
.pf-avail { text-align: right; }
.pf-avail span { display: block; color: var(--dim); font-size: 12px; }
.pf-avail b { display: block; font-size: 22px; font-weight: 700; white-space: nowrap; }
.pf-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 14px; }
.pf-btn { height: 44px; border-radius: calc(var(--radius) + 4px); border: 1px solid var(--line-2); background: transparent; color: var(--fg); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pf-btn svg { width: 16px; height: 16px; }
.pf-btn.pri { background: #3b6cff; border-color: #3b6cff; color: #fff; }
.pf-btn:hover { filter: brightness(1.1); }
/* «Депозит» exactly as Polymarket's documentation gives it (owner, 2026-11-21, evening: «сугубо, как указано по официальной
   документации»): back, the title with the balance, ×; the documented steps; the chains as a grid, each with its address type
   and the bridge's own least sum; the chosen chain's address with its copy and QR buttons; its tokens; the bridge's estimate
   (/quote); the transfers of the four addresses (/status); the documented warnings. */
.pf-card.dep { max-width: 880px; width: 100%; margin: 0 auto; gap: 14px; padding: 16px 18px 18px; }
.dep-h { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; align-items: center; }
.dep-ic { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--dim); cursor: pointer; }
.dep-ic:hover { color: var(--fg); background: var(--panel-2); }
.dep-ic svg { width: 18px; height: 18px; }
.dep-ic .xic { width: 15px; height: 15px; }
.dep-t { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.dep-t b { font-size: 18px; font-weight: 700; }
.dep-t span { color: var(--mute); font-size: 12.5px; }
.dep-steps { margin: 0; padding: 0 0 0 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 22px; color: var(--dim); font-size: 12.5px; line-height: 1.45; }
.dep-steps b { color: var(--fg); }
.dep-sec { color: var(--mute); font-size: 12px; font-weight: 600; }
.dep-chains { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 6px; }
.dep-ch { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); color: var(--fg); text-align: left; cursor: pointer; }
.dep-ch b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.dep-ch small { color: var(--mute); font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dep-ch:hover { border-color: #3b6cff; }
.dep-ch.on { border-color: #3b6cff; background: color-mix(in srgb, #3b6cff 16%, var(--panel)); }
.dep-ch.na { opacity: 0.55; }
.dep-qr { align-self: center; padding: 12px; border-radius: 14px; background: #fff; line-height: 0; }
.dep-qr img { width: 176px; height: 176px; display: block; image-rendering: pixelated; }
.dep-a { display: flex; flex-direction: column; gap: 7px; }
.dep-al { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 600; }
.dep-fam { color: var(--mute); font-weight: 500; font-size: 11.5px; text-align: right; }
.dep-addr { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.dep-addr code { padding: 11px 12px; font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; color: var(--fg); background: var(--panel); }
.dep-acts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); }
.dep-copy { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border: 0; background: var(--panel-2); color: var(--fg); font-weight: 700; cursor: pointer; }
.dep-copy + .dep-copy { border-left: 1px solid var(--line-2); }
.dep-copy svg { width: 16px; height: 16px; }
.dep-copy:hover { filter: brightness(1.12); }
.dep-copy.done { color: var(--up); }
.dep-copy.done span::after { content: ' ✓'; }
.dep-box { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.dep-bh { display: flex; align-items: center; gap: 10px; min-height: 22px; }
.dep-bh b { font-size: 13px; white-space: nowrap; }
.dep-bh span { flex: 1 1 auto; min-width: 0; color: var(--mute); font-size: 11.5px; }
.dep-bh .ib { flex: none; }
.dep-tt { display: flex; flex-direction: column; max-height: 216px; overflow-y: auto; overscroll-behavior: contain; }
.dep-tr { display: grid; grid-template-columns: minmax(64px, auto) minmax(0, 1fr) auto auto; align-items: center; column-gap: 12px; padding: 4px 2px; border-top: 1px solid var(--line); font-size: 12.5px; }
.dep-tr:first-child { border-top: 0; }
.dep-tr span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mute); }
.dep-tr .dep-tm { color: var(--dim); font-variant-numeric: tabular-nums; }
.dep-ta { padding: 0; border: 0; background: none; color: #6f94ff; font-family: var(--mono); font-size: 11.5px; cursor: pointer; }
.dep-qf { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.dep-qf .pf-sort { height: 36px; padding: 0 8px; }
.dep-in { height: 36px; min-width: 0; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--sunken); color: var(--fg); font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; outline: none; }
.dep-in:focus { border-color: #3b6cff; }
.dep-qf .pf-btn { height: 36px; padding: 0 16px; }
.dep-qr-res { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 22px; font-size: 12.5px; }
.dep-qr-res div { display: flex; justify-content: space-between; gap: 10px; color: var(--mute); }
.dep-qr-res b { color: var(--fg); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dep-qr-res b.up { color: var(--up); }
.dep-hr { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; align-items: baseline; column-gap: 10px; font-size: 12.5px; }
.dep-hr b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.dep-hr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mute); }
.dep-hr a { color: #6f94ff; font-size: 11.5px; white-space: nowrap; }
.dep-hs { padding: 1px 7px; border-radius: 999px; background: var(--panel-2); color: var(--warn) !important; font-size: 11.5px; }
.dep-hs.ok { color: var(--up) !important; }
.dep-hs.bad { color: var(--down) !important; }
.dep-ht { font-family: var(--mono); font-size: 11.5px; }
.dep-hist0 { margin: 0; color: var(--mute); font-size: 12px; line-height: 1.45; }
.dep-warn { margin: 0; padding: 0 0 0 18px; color: var(--dim); font-size: 12px; line-height: 1.55; }
.dep-warn a { color: #6f94ff; }
.dep-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 8px; text-align: center; }
.dep-wait { margin: 0; color: var(--dim); }
.dep-err { margin: 0; color: var(--down); }
@media (max-width: 620px) { .dep-steps, .dep-qr-res { grid-template-columns: 1fr; } }
.pf-ranges { display: inline-flex; gap: 2px; }
.pf-ranges button { height: 26px; min-width: 34px; padding: 0 7px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--dim); font-size: 12px; font-weight: 700; }
.pf-ranges button.on { background: color-mix(in srgb, #3b6cff 22%, transparent); color: #8eaaff; }
.pf-pnl { font-size: 30px; font-weight: 700; white-space: nowrap; }
.pf-chart { height: 120px; margin-top: 4px; }
.pf-chart svg { width: 100%; height: 100%; display: block; }
.pf-chart .ln { fill: none; stroke: #8e6cf6; stroke-width: 2; }
.pf-chart .ar { fill: url(#pfg); }
.pf-tabs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pf-tabseg { display: inline-flex; gap: 2px; padding: 3px; border-radius: calc(var(--radius) + 4px); border: 1px solid var(--line); background: var(--sunken); }
.pf-tabseg button { height: 32px; padding: 0 14px; border: 0; border-radius: calc(var(--radius) + 2px); background: transparent; color: var(--dim); font-weight: 700; }
.pf-tabseg button.on { background: var(--panel-2); color: var(--fg); }
.pf-search { flex: 1 1 160px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--sunken); color: var(--mute); min-width: 0; }
.pf-search input { flex: 1; border: 0; background: transparent; height: 100%; padding: 0; min-width: 0; }
.pf-search svg { width: 16px; height: 16px; flex: none; }
.pf-sort { height: 40px; border-radius: calc(var(--radius) + 4px); background: var(--sunken); }
.pf-arch { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--fg); font-weight: 600; font-size: 13px; cursor: pointer; user-select: none; }
.pf-tog { width: 38px; height: 22px; border-radius: 11px; background: var(--line-2); position: relative; transition: background 0.15s; flex: none; }
.pf-tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.pf-tog.on { background: #3b6cff; }
.pf-tog.on::after { transform: translateX(16px); }
table.pft { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 13px; }
table.pft th { text-align: left; color: var(--dim); font-weight: 600; font-size: 12.5px; padding: 4px 12px; white-space: nowrap; }
table.pft th.r, table.pft td.r { text-align: right; }
table.pft td { padding: 10px 12px; background: var(--sunken); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
table.pft td:first-child { border-left: 1px solid var(--line); border-radius: calc(var(--radius) + 4px) 0 0 calc(var(--radius) + 4px); }
table.pft td:last-child { border-right: 1px solid var(--line); border-radius: 0 calc(var(--radius) + 4px) calc(var(--radius) + 4px) 0; }
.pf-mk { display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 380px; }
.pf-mk img, .pf-mk .ph { width: 44px; height: 44px; border-radius: 10px; flex: none; object-fit: cover; background: var(--panel-2); }
.pf-mk div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pf-mk a, .pf-mk b { color: var(--fg); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-mk a:hover { color: #8eaaff; }
.pf-out { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--dim); }
.pf-pill { display: inline-block; padding: 1px 8px; border-radius: 6px; font-weight: 700; font-size: 12px; background: var(--up-bg); color: var(--up); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-pill.no { background: var(--down-bg); color: var(--down); }
.pf-avg b { color: var(--fg); }
.pf-v b { display: block; font-size: 14px; }
.pf-v small { font-size: 12px; }
.pf-sell { height: 34px; padding: 0 16px; border-radius: 9px; border: 0; background: #3b6cff; color: #fff; font-weight: 700; display: inline-flex; align-items: center; }
.pf-sell:hover { filter: brightness(1.1); }
button.pf-sell { cursor: pointer; font: inherit; font-weight: 700; }
/* «Продать»: the cash out window, as polymarket.com's (always dark). */
.psl-back { position: fixed; inset: 0; z-index: 3000; background: rgba(0, 0, 0, 0.55); display: grid; place-items: center; padding: 16px; }
.psl { width: min(430px, 100%); background: #1f262c; color: #f2f4f6; border-radius: 18px; padding: 20px 22px 18px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55); display: grid; gap: 6px; }
.psl-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 19px; }
.psl-h b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psl-h .pmm-x { color: #a7b0b8; }
.psl-t { color: #a7b0b8; font-size: 13.5px; line-height: 1.35; }
.psl-l { margin-top: 12px; font-weight: 700; font-size: 15px; }
.psl-v { color: #3fcf74; font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
.psl-s { color: #a7b0b8; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.psl input.psl-range { -webkit-appearance: none; appearance: none; width: calc(100% - 20px); margin: 20px 10px 4px; height: 4px; border-radius: 2px; outline: none; cursor: pointer;
  background: linear-gradient(to right, #3b6cff var(--p, 100%), #3a444d var(--p, 100%)); }
.psl input.psl-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #3b6cff; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); cursor: grab; }
.psl input.psl-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #3b6cff; border: 3px solid #fff; cursor: grab; }
.psl-dots { position: relative; height: 30px; margin: 0 10px; }
.psl-dots button { position: absolute; left: var(--x); transform: translateX(-50%); top: 0; background: none; border: 0; padding: 0; color: #8b949d; display: grid; justify-items: center; gap: 4px; font-size: 12px; cursor: pointer; font-variant-numeric: tabular-nums; }
.psl-dots i { width: 9px; height: 9px; border-radius: 50%; background: #3a444d; }
.psl-dots button.on { color: #8fb0ff; }
.psl-dots button.on i { background: #3b6cff; }
.psl-n { font-size: 12.5px; color: #a7b0b8; min-height: 17px; line-height: 1.35; }
.psl-n.err { color: #ff7676; }
.psl-b { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.psl-b .pf-btn { color: #f2f4f6; border-color: #3a444d; }
.psl-b .pf-btn.pri { color: #fff; border-color: #3b6cff; }
.psl-b .pf-btn:disabled { opacity: 0.55; cursor: default; filter: none; }
.pf-ic { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 0; background: transparent; color: var(--dim); }
.pf-ic svg { width: 17px; height: 17px; }
.pf-empty { color: var(--mute); text-align: center; padding: 40px 0; }
.pf-hist { display: flex; flex-direction: column; gap: 6px; }
/* «История» as polymarket.com shows it (2026-11-17): Activity · Market · Value · Time. */
.pf-hh, .pf-h { display: grid; grid-template-columns: 136px minmax(0, 1fr) 110px 104px; align-items: center; gap: 12px; }
.pf-hh { padding: 0 12px 2px; color: var(--dim); font-size: 12.5px; font-weight: 600; }
.pf-hh .r { text-align: right; }
.pf-h { padding: 10px 12px; background: var(--sunken); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); }
.pf-h .k { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 13px; color: var(--fg); min-width: 0; }
.pf-h .ki { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: var(--line-2); color: var(--fg); }
.pf-h .ki svg { width: 14px; height: 14px; display: block; }
.pf-h .ki.redeem { background: var(--up); color: #fff; }
.pf-h .ki.loss { background: var(--down); color: #fff; }
.pf-h .t { color: var(--dim); font-size: 12.5px; text-align: right; white-space: nowrap; }
.pf-h .a { text-align: right; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-h .pf-mk { max-width: none; }
/* «Позиции»: a win waits for Polymarket's own redemption; «Вы выиграли» over the tabs. */
.pf-pill.yes { background: var(--up-bg); color: var(--up); }
.pf-wonl { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.pf-wonl svg { width: 12px; height: 12px; }
.pf-auto { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 9px; border: 1px dashed var(--line-2); color: var(--dim); font-size: 12px; font-weight: 600; white-space: nowrap; cursor: help; vertical-align: middle; }
.pf-sell.ghost { background: transparent; border: 1px solid var(--line-2); color: var(--fg); }
.pf-won { flex-direction: row; align-items: center; gap: 16px; padding: 14px 20px; }
.pf-won-i { display: flex; flex: none; padding-left: 4px; }
.pf-won-i:empty { display: none; }
.pf-won-i img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; border: 2px solid var(--sunken); transform: rotate(-7deg); }
.pf-won-i img + img { margin-left: -14px; transform: rotate(7deg); }
.pf-won-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pf-won-t b { font-size: 20px; }
.pf-won-b { height: 40px; padding: 0 18px; flex: none; }
.pf-dep { display: flex; flex-direction: column; gap: 12px; }
.pf-dep .pmm-addr-v code { font-size: 14px; }
@media (max-width: 860px) {
  .pf-top { grid-template-columns: minmax(0, 1fr); }
  table.pft th:nth-child(3), table.pft td:nth-child(3), table.pft th:nth-child(4), table.pft td:nth-child(4) { display: none; }
  .pf-hh { display: none; }
  .pf-h { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; }
  .pf-h .pf-kl, .pf-h .t { display: none; }
  .pf-won { flex-wrap: wrap; }
}

/* ---------- narrow screens ---------- */
@media (max-width: 1500px) {
  :root { --rail-w: 280px; --nav-w: 200px; }
  .clock { display: none; }
}
@media (max-width: 1280px) {
  .app { grid-template-columns: var(--nav-w) minmax(0, 1fr); }
  .ftoggle { display: inline-grid; }
  .rail { position: fixed; top: 0; right: 0; bottom: 0; z-index: 35; width: min(340px, 92vw); transform: translateX(102%); transition: transform 0.2s ease; box-shadow: var(--shadow); }
  .rail-x { display: inline-grid; }
  body.rail-open .rail { transform: none; }
  body.rail-open .scrim { display: block; position: fixed; inset: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 55%, transparent); }
}
@media (max-width: 980px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .burger { display: inline-flex; }
  .nav { position: fixed; top: 0; bottom: 0; left: 0; z-index: 36; width: min(270px, 86vw); transform: translateX(-102%); transition: transform 0.2s ease; box-shadow: var(--shadow); }
  body.side-open .nav { transform: none; }
  body.side-open .scrim { display: block; position: fixed; inset: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 55%, transparent); }
  .vtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  /* Section headings wrap: «Мои ставки» carries its totals and two buttons. */
  .sech { flex-wrap: wrap; white-space: normal; row-gap: 6px; }
  .sech::after { display: none; }
  .sech .sech-tools { flex-wrap: wrap; row-gap: 6px; }
  .bets-tools { flex-wrap: wrap; row-gap: 2px; }
  .top { gap: 6px; padding: 0 10px; }
  .ven-main { gap: 7px; padding: 0 8px 0 9px; }
  .ven .ven-v, .ven .ven-s { display: none; }
  .ven.pm .ven-v { display: block; }
  .ven-eye { margin-right: 5px; width: 24px; }
  .sportbar { padding: 8px 10px; }
  .list { padding: 10px 10px 20px; }
  .work { width: 100vw; }
  table.grid, table.grid tbody, table.grid tr, table.grid td { display: block; width: 100%; }
  table.grid colgroup, table.grid thead, table.grid tr:first-child:has(th) { display: none; }
  table.grid tr.row { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-bottom: 10px; padding: 6px 4px; }
  table.grid td { border: 0; padding: 4px 10px; white-space: normal; }
  table.grid td[data-l]::before { content: attr(data-l); display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--mute); }
  table.grid td.num { text-align: left; }
  table.grid tr.det td { padding: 8px; }
  .cell-btns { text-align: left; }
  .vsplit { grid-template-columns: minmax(0, 1fr); }
  .vth { display: none; }
  .vtr { grid-template-columns: 8px minmax(0, 1fr) auto; grid-template-areas: "dot name acts" "dot state port" "dot key key" "dot mm mm"; row-gap: 6px; padding: 8px; }
  .vtr > .dot { grid-area: dot; align-self: start; margin-top: 7px; }
  .vt-name { grid-area: name; }
  .vt-acts { grid-area: acts; }
  .vt-state { grid-area: state; }
  .vt-portc { grid-area: port; justify-self: end; }
  .vt-key { grid-area: key; }
  .vt-mm { grid-area: mm; }
  .vt-note { display: none; }
  .vkedit { padding-left: 8px; }
}
@media (max-width: 600px) {
  body { font-size: 12.5px; }
  .card { padding: 10px 11px; }
  .legs { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .plus { display: none; }
  .big { font-size: 18px; line-height: 30px; padding: 0 8px; min-width: calc(9ch + 16px); }
  .roi { min-width: calc(7ch + 14px); }
  .alive { min-width: 0; flex: 1 1 0; overflow: hidden; text-overflow: ellipsis; }
  .profit .sub { display: none; }
  .card .row2:not(:has(.pmb)) { display: none; }
  .settings .line > label { width: 100%; }
  .vtiles { grid-template-columns: minmax(0, 1fr); }
  .vhero { flex-direction: column; }
  .buybar { margin: 2px -11px -10px; padding: 10px 11px; }
  .pmm { padding: 0; place-items: end center; }
  .pmm-card-w { width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; transform: translateY(40px); }
  #pmm .pmm-card-w { height: 92vh; }
  .pmm-step-h { flex-wrap: wrap; }
  .pmm-step-s { margin-left: 31px; width: calc(100% - 31px); align-items: flex-start; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .pmm, .pmm-card-w, .pmm-body, .ck-i, .ck-i::after, .pmm-prog i, .rail, .nav { transition: none !important; animation: none !important; }
}

/* ---------- 2026-11-17 (owner): the money over the favourites, the order of «Все вилки», one's own
   profit, the book turned over, the legs of «Мои ставки» ---------- */
/* «Банк», «Макс. Polymarket», «Макс. БК» in the header of «Избранное» (the same settings as the filters). */
.fav-money { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; min-width: 0; }
.fav-money .favsum { margin-right: 0; }
.fav-money .favsum .inp { width: 64px; }
.fav-money .favsum .inp::placeholder { color: var(--mute); font-weight: 400; }
/* % or $: the order of «Все вилки». */
.sortsw button { height: 24px; min-width: 32px; padding: 0 9px; font-family: var(--mono); font-size: 12.5px; font-weight: 700; }
.sortsw button.on { background: var(--accent); color: var(--on-accent); }
/* «Профит, %» of one's own: a field as tall as the chips, lit while it decides. */
.chip-in { width: 68px; height: var(--ctl); padding: 0 6px; border-radius: var(--radius-sm); font-size: 12px; }
.chip-in::placeholder { color: var(--mute); font-family: var(--sans); font-size: 11.5px; }
.chip-in.on { border-color: var(--accent); background: var(--accent-bg); color: var(--fg); font-weight: 700; }

/* «Ликвидность» in the filters (owner, 2026-11-19): wide enough for «10 000 000», the digits right-aligned. */
.chip-in.liqin { width: 108px; text-align: center; font-variant-numeric: tabular-nums; }
:root[data-skin="6"] .chip-in.liqin { width: 96px; }
/* «Запас» right of it (owner, 2026-11-20): «×1.5», «×12.5», «нет». */
.chip-in.rsvin { width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
:root[data-skin="6"] .chip-in.rsvin { width: 62px; }

/* «Скрыть матч» (owner, 2026-11-19): by the match's name, away from the card's own hide button; quiet until the
   card is under the mouse. */
.hmb { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; padding: 0; margin-left: 2px; border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--mute); cursor: pointer; opacity: 0.5; align-self: center; }
.hmb svg { width: 13px; height: 13px; }
.card:hover .hmb { opacity: 0.9; }
.hmb:hover, .hmb:focus-visible { color: var(--down); border-color: var(--down); background: var(--down-bg); opacity: 1; outline: none; }
.hmb.on { color: var(--up); opacity: 1; }
.hmb.on:hover, .hmb.on:focus-visible { color: var(--up); border-color: var(--up); background: var(--up-bg); }
.kt11 .t-top .hmb { width: 20px; height: 20px; margin: 0; }

/* The matches hidden whole, at the top of «Скрытые». */
.hgs { margin: 4px 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.hgs-h { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.hgs-h > span:last-child { color: var(--mute); font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hg { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 12px; }
.hg + .hg { border-top: 1px solid var(--line-2); }
.hg b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--head); font-weight: 600; }
.hg small { flex: 0 1000 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mute); }
.hg .hg-at { margin-left: auto; flex: none; color: var(--mute); font-size: 12px; white-space: nowrap; }
.hg .btn { flex: none; }

/* «Перелив ликвидности»: the button with what is ticked, the list of every bookmaker's accounts over the page. */
.pour { position: relative; min-width: 0; }
.chip.pour-b { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.chip.pour-b span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.pour-b svg { width: 10px; height: 10px; flex: none; opacity: 0.75; }
.chip.pour-b[aria-expanded="true"] svg { transform: rotate(180deg); }
.pour-pop { position: fixed; z-index: 90; width: max-content; min-width: 250px; max-width: min(340px, calc(100vw - 16px)); max-height: 60vh; overflow: auto; padding: 8px 12px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pour-g + .pour-g { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.pour-gh { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 12px; }
.pour-gh small { min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent-bg); color: var(--accent); font-weight: 700; text-align: center; }
.pour-a { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; font-size: 13px; }
.pour-a input { flex: none; width: 15px; height: 15px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.pour-a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pour-a.off span { opacity: 0.55; text-decoration: line-through; }
.pour-a small { color: var(--mute); font-size: 11px; }
.pour-note, .pour-none { margin: 8px 0 0; color: var(--mute); font-size: 11.5px; line-height: 1.35; }
.acc-pour { flex: none; margin-left: 4px; font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent); }
/* «Ввод в окне сайта» per bookmaker (owner, 2026-11-21: «для каждого букмекера … отдельный выбор ввода»): a row per
   bookmaker — its logo and name, the three ways, its «По записи Hotjar»; the button says what each one uses. */
.chip.inp-b { max-width: 340px; }
.chip.walk-b { max-width: 260px; }
.pour-pop.inp-pop { max-width: min(780px, calc(100vw - 16px)); }
.inp-r { display: grid; grid-template-columns: minmax(104px, auto) auto minmax(118px, auto) auto; align-items: center; gap: 10px; padding: 5px 0; }
.inp-r + .inp-r { border-top: 1px solid var(--line-2); }
.inp-bk { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12.5px; white-space: nowrap; }
.inp-r .chips { flex-wrap: nowrap; }
.inp-r .chip { height: 24px; padding: 0 8px; font-size: 11.5px; }
.inp-r .chip.inp-hj.dim, .inp-r .chip.inp-nav.dim { opacity: 0.5; }
.inp-hj-none { color: var(--mute); font-size: 11px; text-align: center; cursor: help; }
.pour-a .vl { flex: none; }
.pour-a.nohand span { opacity: 0.55; }
/* Hotjar records this account's session (owner, 2026-11-21): a small red «REC» after the name. */
.acc-hj { flex: none; margin-left: 5px; padding: 0 3px; border: 1px solid currentColor; border-radius: 3px; font-style: normal; font-size: 8.5px; font-weight: 800; line-height: 11px; letter-spacing: 0.04em; color: var(--live); }
/* The hidden matches block is the list's first item: over the whole row of a card grid. */
.cards > .hgs, .cards > [data-k="hg"] { grid-column: 1 / -1; }

/* ---------- the three groups (owner, 2026-11-22): the switcher in the menubar, the marks of a group ---------- */
.grpsw { display: flex; align-items: center; gap: 3px; padding: 0 8px; flex: none; }
.gsw { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); color: var(--dim); font-size: 12px; white-space: nowrap; }
.gsw:hover { color: var(--fg); border-color: var(--line-2); }
.gsw.on { background: var(--accent-bg); border-color: var(--accent); color: var(--fg); }
.gsw b { font-weight: 700; }
.gsw-d { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); flex: none; }
.gsw-d.run { background: var(--up); animation: gswp 1.6s infinite; }
.gsw-d.bad { background: var(--down); }
@keyframes gswp { 0% { box-shadow: 0 0 0 0 rgba(38, 166, 154, 0.55); } 70% { box-shadow: 0 0 0 6px rgba(38, 166, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(38, 166, 154, 0); } }
@media (prefers-reduced-motion: reduce) { .gsw-d.run { animation: none; } }
@media (min-width: 1000px) and (max-width: 1499px) { .gsw-l { display: none; } }
.abuy-g { margin-left: 5px; padding: 0 5px; border-radius: 8px; background: var(--panel-2); color: var(--dim); font-size: 10px; font-weight: 600; vertical-align: 1px; }
.acc-gr { margin: 0 6px; padding: 0 7px; border-radius: 9px; background: var(--accent-bg); color: var(--fg); font-size: 10.5px; font-weight: 600; line-height: 17px; white-space: nowrap; }
.pb-grp { flex: none; margin-right: 3px; padding: 0 6px; border-radius: 999px; background: var(--accent-bg); color: var(--fg); font-size: 10px; font-weight: 600; line-height: 16px; white-space: nowrap; }
.bgrp { margin-left: 6px; height: 20px !important; padding: 0 7px !important; font-size: 10.5px !important; }
.bkbr-g { margin-left: 6px; color: var(--mute); font-size: 11px; }
.vbr-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 10px; border-bottom: 1px solid var(--line); box-sizing: border-box; }
.vbr-row.cur { background: var(--accent-bg); }
.vbr-rn { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.vbr-rn b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vbr-rn small { color: var(--mute); font-size: 11px; }
.vbr-mvs { display: flex; gap: 4px; flex: none; }
.vbr-mv { height: 22px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--panel-2); color: var(--fg); font-size: 11px; white-space: nowrap; }
.vbr-mv:hover { border-color: var(--accent); }
.vbr-mv.here { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.roimax.on { border-color: var(--accent); color: var(--fg); }
.jr-ms svg, .pb-ms svg { width: 11px; height: 11px; flex: none; }

/* ---------- «Журнал» → «Попытки ставок» (owner, 2026-11-22), the processing time of «Мои ставки» ---------- */
.jr-seg { margin-left: 10px; }
.jr-seg button { height: 24px; padding: 0 9px; font-size: 12px; }
.jr-an { margin-left: 5px; font-style: normal; color: var(--down); font-weight: 700; font-size: 11px; }
.jr-an:empty { display: none; }
.jr-all { height: 22px; padding: 0 8px; font-size: 11px; margin-right: 6px; }
.jr-e.jr-a { grid-template-columns: auto minmax(0, 1fr) auto; }
.jr-a .jr-ev { display: block; color: var(--fg); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jr-a .jr-why { display: block; color: var(--dim); font-size: 12px; line-height: 1.4; }
.jr-res { font-weight: 600; }
.jr-res.ok { color: var(--up); }
.jr-res.bad { color: var(--down); }
.jr-res.slow { color: var(--warn); }
.jr-side { display: flex; align-items: flex-start; gap: 6px; white-space: nowrap; }
.jr-ms, .pb-ms { display: inline-flex; align-items: center; gap: 3px; color: var(--dim); font-size: 11px; font-variant-numeric: tabular-nums; }
.jr-gr { color: var(--mute); font-size: 11px; }
.jr-ch { width: 22px; height: 22px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--panel-2); color: var(--fg); font-size: 11px; line-height: 1; padding: 0; }
.jr-ch.on, .jr-ch:hover { border-color: var(--accent); }
.jr-det { grid-column: 1 / -1; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 12px; margin: 6px 0 2px; padding: 8px 10px; background: var(--sunken); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 12px; }
.jr-det dt { color: var(--mute); }
.jr-det dd { margin: 0; color: var(--fg); overflow-wrap: anywhere; }
.pb-ms { margin-left: 6px; }

/* ---------- the hedge calculator (owner, 2026-11-22; web/calc.js) ---------- */
.calc-b { display: inline-flex; align-items: center; gap: 5px; }
.calc-b svg { flex: none; }
.cal-ov { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(5, 7, 12, 0.62); }
.cal { width: min(920px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cal-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cal-h > b { font-family: var(--head); font-size: 15px; }
.cal-seg button { height: 26px; padding: 0 10px; font-size: 12px; }
.cal-b { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 14px; overflow-y: auto; }
.cal-in { display: flex; flex-direction: column; gap: 10px; }
.cal-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.cal-row .cal-f { flex: 1 1 140px; }
.cal-f { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-f > span { color: var(--dim); font-size: 12px; }
.cal-f input { height: 32px; font-size: 15px; font-variant-numeric: tabular-nums; }
.cal-f small { color: var(--mute); font-size: 11px; }
.cal-f.bad input { border-color: var(--down); }
.cal-f small.cal-e { color: var(--down); }
.cal-of { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; color: var(--dim); font-size: 12px; }
.cal-fee .cal-f { flex: 0 1 110px; }
.cal-fee .check { align-self: center; padding-top: 14px; }
.cal-fn { color: var(--mute); font-size: 11px; line-height: 1.4; }
.cal-sl { display: flex; flex-direction: column; gap: 4px; color: var(--dim); font-size: 12px; }
.cal-sl input { width: 100%; }
.cal-out { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: var(--sunken); border: 1px solid var(--line); border-radius: var(--radius); }
.cal-none { place-content: center; color: var(--mute); min-height: 200px; text-align: center; }
.cal-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.cal-big > span { width: 100%; color: var(--mute); font-size: 12px; }
.cal-big > b { font-size: 30px; font-weight: 600; font-variant-numeric: normal; }
.cal-big > b.up { color: var(--up); }
.cal-big > b.down { color: var(--down); }
.cal-big > small { color: var(--dim); font-size: 12px; }
.cal-pill { font-style: normal; padding: 1px 8px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 600; }
.cal-pill.neg { background: var(--down); color: #fff; }
.cal-l { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; }
.cal-l > span { color: var(--dim); }
.cal-l > b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.cal-l > b.up { color: var(--up); }
.cal-l > b.down { color: var(--down); }
.cal-pr { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; }
.cal-pr b { color: var(--fg); }
.cal-be { display: flex; flex-direction: column; gap: 3px; color: var(--dim); font-size: 12px; line-height: 1.45; }
.cal-be b { color: var(--fg); }
.cal-ft { padding: 8px 14px 12px; color: var(--mute); font-size: 11.5px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .cal-b { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1000px) {
  :root[data-skin="6"] .filters .fcalc { margin-left: auto; }
  :root[data-skin="6"] .filters .fcalc + .fsnd { margin-left: 0; }
}
@container flt (max-width: 1439px) { .filters .fcalc { order: 2; } }
.cal-f input { width: 100%; }
.snd-row { display: flex; align-items: center; gap: 6px; }
.calc-b { width: 30px; height: 28px; padding: 0; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--dim); }
.calc-b:hover { color: var(--fg); border-color: var(--accent); }
@media (min-width: 1000px) { :root[data-skin="6"] .fsnd .calc-b { height: 24px; width: 28px; } }

/* ---------------------------------------------------------------- client-server (owner, 2026-11-22)
   The owner's panel of users (web/admin.js) and a user's program: login, profile, the banner of a broken link
   (web/client.js). Only the server itself shows «Пользователи»; a user's program has no spreads, no list of matches and no
   controls of the scanner's own lines. */
html:not([data-role="server"]) .mi-users { display: none; }
html[data-role="client"] .mi[data-view="spreads"],
html[data-role="client"] .mi[data-view="matches"],
html[data-role="client"] .ven-re,
html[data-role="client"] .ven-pw { display: none !important; }

.cl-ov {
  position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 16px; overflow-y: auto;
  background: radial-gradient(1200px 600px at 50% -10%, var(--accent-bg), transparent 60%), var(--bg);
}
.cl-card {
  width: min(440px, 100%); background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 22px 22px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
}
.cl-brand { display: flex; align-items: center; gap: 8px; color: var(--dim); }
.cl-brand b { color: var(--fg); font-family: var(--head); font-size: 15px; }
.cl-ver { margin-left: auto; font-size: 11px; color: var(--mute); }
.cl-card h1 { margin: 2px 0 4px; font: 600 20px/1.2 var(--head); }
.cl-why { padding: 8px 10px; border-radius: 6px; background: var(--warn-bg); color: var(--warn); font-size: 12.5px; }
.cl-why.bad { background: var(--down-bg); color: var(--down); }
.cl-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 8px; align-items: center; }
.cl-row label { color: var(--dim); font-size: 12px; }
.cl-row input, .cl-row select { width: 100%; min-width: 0; }
.cl-px .cl-row { grid-template-columns: 70px 92px 1fr; }
.cl-btns { grid-template-columns: 1fr 1fr; }
.cl-btns .btn { height: 32px; }
.cl-msg { min-height: 18px; font-size: 12.5px; color: var(--up); }
.cl-msg.bad { color: var(--down); }
.cl-more { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--accent); font-size: 12px; }
.cl-px { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px dashed var(--line-2); border-radius: 8px; }
.cl-hint { font-size: 11.5px; color: var(--mute); line-height: 1.45; }
.cl-ban {
  position: fixed; left: 50%; top: 10px; transform: translateX(-50%); z-index: 800; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px;
  background: var(--warn-bg); border: 1px solid var(--warn); color: var(--warn); font-size: 12.5px; box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.cl-ban .btn { height: 24px; }
.cl-ban .spin { width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: clspin 0.8s linear infinite; flex: none; }
@keyframes clspin { to { transform: rotate(360deg); } }

.prof { position: relative; display: flex; align-items: center; margin-left: 6px; }
.prof-b {
  display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px;
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--fg); font-size: 12px; white-space: nowrap;
}
.prof-b:hover { border-color: var(--accent); }
.prof-l { font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.prof-d { color: var(--dim); font-variant-numeric: tabular-nums; }
.prof-u { color: var(--accent); font-size: 10px; }
.prof .dot, .settings .dot, .adm .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mute); flex: none; }
.prof .dot.ok, .settings .dot.ok, .adm .dot.ok { background: var(--up); }
.prof .dot.warn, .settings .dot.warn, .adm .dot.warn { background: var(--warn); }
.prof .dot.bad, .settings .dot.bad, .adm .dot.bad { background: var(--down); }
.pp {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 700; width: 300px; padding: 12px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 6px; font-size: 12.5px;
}
.pp-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.pp-h b { font-size: 14px; }
.pp-st { font-size: 11px; padding: 2px 7px; border-radius: 9px; background: var(--panel-2); color: var(--dim); }
.pp-st.ok { background: var(--up-bg); color: var(--up); }
.pp-st.warn { background: var(--warn-bg); color: var(--warn); }
.pp-st.bad { background: var(--down-bg); color: var(--down); }
.pp-r { display: flex; justify-content: space-between; gap: 10px; }
.pp-r span { color: var(--dim); }
.pp-r b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pp-why { color: var(--warn); font-size: 11.5px; }
.pp-upd { padding: 7px 9px; border-radius: 6px; background: var(--accent-bg); color: var(--accent); font-size: 12px; }
.pp-ok { color: var(--mute); font-size: 11.5px; }
.pp-b { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid var(--line); }
.pp-b .btn { flex: 1 1 auto; }

.adm { padding: 14px 16px 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.adm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.adm-head h2 { margin: 0; font: 600 18px/1.2 var(--head); }
.adm-hub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--dim); font-size: 12px; }
.adm-msg { min-height: 16px; font-size: 12.5px; color: var(--up); }
.adm-msg.bad { color: var(--down); }
.adm-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
@media (min-width: 1280px) { .adm-body:has(.adm-det) { grid-template-columns: minmax(0, 1fr) minmax(460px, 560px); } }
.adm-list { overflow-x: auto; }
.adm-users { width: 100%; min-width: 860px; }
.adm-users td, .adm-users th { white-space: nowrap; }
.adm-u { cursor: pointer; }
.adm-u:hover td { background: var(--panel-2); }
.adm-u.sel td { background: var(--accent-bg); }
.adm-note { display: block; color: var(--mute); font-size: 11px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.adm-st { display: inline-block; padding: 2px 8px; border-radius: 9px; font-size: 11.5px; background: var(--panel-2); color: var(--dim); }
.adm-st.ok { background: var(--up-bg); color: var(--up); }
.adm-st.bad { background: var(--down-bg); color: var(--down); }
.adm-on { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--up-bg); color: var(--up); font-weight: 600; }
.adm-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.adm-card h3 { margin: 0; font: 600 15px/1.2 var(--head); }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.adm-grid label { display: flex; flex-direction: column; gap: 4px; color: var(--dim); font-size: 12px; }
.adm-grid label.wide { grid-column: 1 / -1; }
.adm-grid small { color: var(--mute); font-size: 11px; }
.adm-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-pass pre { margin: 0; padding: 10px; border-radius: 6px; background: var(--sunken); border: 1px solid var(--line-2); white-space: pre-wrap; font-size: 13px; user-select: all; }
.adm-dh { display: flex; align-items: center; gap: 10px; }
.adm-dh h3 { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.adm-sec { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); min-width: 0; }
.adm-sec h4 { margin: 0; font-size: 11px; color: var(--dim); text-transform: var(--label-case); letter-spacing: var(--label-track); }
.adm-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.adm-line > span:first-child { width: 70px; color: var(--dim); font-size: 12px; flex: none; }
.adm-line input { flex: 1 1 160px; min-width: 0; }
.adm-left { color: var(--accent); margin-left: 6px; }
.adm-t { width: 100%; font-size: 12px; }
.adm-sec > .adm-t, .adm-sec > table { display: block; overflow-x: auto; }
.adm-t td small { display: block; color: var(--mute); }
.adm-sec .hint { font-size: 11.5px; color: var(--mute); }
.btn.sm { height: 24px; padding: 0 8px; font-size: 12px; }
.segs { display: inline-flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.segs .seg { border: 0; background: var(--panel-2); padding: 0 12px; height: 26px; color: var(--dim); }
.segs .seg + .seg { border-left: 1px solid var(--line-2); }
.segs .seg.on { background: var(--accent); color: var(--on-accent); font-weight: 600; }
#adm-pnl { min-width: 0; }
/* The administrator's account (owner's local panel): the QR code of the authenticator app beside the steps. */
.adm-self .hint { font-size: 12px; color: var(--mute); }
.adm-qr { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.adm-qr-img svg { display: block; width: 200px; height: 200px; background: #fff; border-radius: 8px; padding: 6px; }
.adm-qr-t { display: flex; flex-direction: column; gap: 8px; flex: 1 1 240px; min-width: 0; font-size: 13px; }
.cs-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px 14px; }
.cs-kv div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cs-kv span { color: var(--mute); font-size: 11px; }
.cs-kv b { font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
