/* Пул ставок — общий стиль. Учётная книга: сводка сверху, таблицы ниже, янтарный акцент. */
:root {
  --bg: #f4f3ee; --panel: #fffdf8; --sunk: #ecebe4; --line: #dcd9cf; --fg: #1e1d1a; --muted: #6c695f;
  --accent: #a8631a; --accent-ink: #fff; --accent-soft: #f3e3cf;
  --pos: #1d7a46; --neg: #b3352b; --warn-bg: #fbe4e1;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 10px;
  /* цвета участников в графиках (проверены на дальтонизм) */
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root {
  --bg: #151513; --panel: #1e1d1a; --sunk: #262521; --line: #36342f; --fg: #eeece5; --muted: #a29e93;
  --accent: #e0953f; --accent-ink: #1a1307; --accent-soft: #3a2a17; --pos: #5fc98a; --neg: #f07a6e; --warn-bg: #3a1d1a;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767; color-scheme: dark } }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 15px/1.45 var(--body); }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 16px; padding-block: 24px 64px; display: grid; gap: 20px; }
h1 { font: 600 clamp(22px, 4vw, 30px)/1.1 var(--display); margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h2 { font: 600 16px/1.3 var(--body); margin: 0; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos { color: var(--pos); } .neg { color: var(--neg); }
[hidden] { display: none !important; }

header.top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; }
.badge { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--sunk); color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.tile .k { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.tile .v { font: 500 24px/1.15 var(--display); font-variant-numeric: tabular-nums; }
.tile .s { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tile.accent { background: var(--accent-soft); border-color: transparent; }
.stakes { display: flex; flex-wrap: wrap; gap: 6px 14px; font-variant-numeric: tabular-nums; }
.stakes b { font: 500 20px/1.2 var(--display); } .stakes span { display: grid; }
.alert { background: var(--warn-bg); color: var(--neg); border-radius: var(--r); padding: 12px 16px; font-weight: 600; }

.tabs { display: flex; gap: 4px; background: var(--sunk); padding: 4px; border-radius: 12px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tabs button { all: unset; cursor: pointer; padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--panel); color: var(--fg); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; min-width: 0; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }

form.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; align-items: end; }
label.f { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); min-width: 0; }
label.f.wide { grid-column: span 2; }
@media (max-width: 520px) { label.f.wide { grid-column: auto; } }
input, select, textarea { font: inherit; font-size: 14px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
textarea { min-height: 120px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn { all: unset; cursor: pointer; padding: 9px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; background: var(--sunk); color: var(--fg); text-align: center; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--muted); padding: 6px 8px; } .btn.ghost:hover { color: var(--fg); }
.btn.danger { color: var(--neg); }
.chip { all: unset; cursor: pointer; font-size: 13px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--accent); }

.tablebox { overflow-x: auto; margin-inline: -16px; padding-inline: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
td.who { min-width: 180px; } td .sub { display: block; font-size: 12px; color: var(--muted); }
tr.open td { color: var(--muted); }
.mine { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
td input { padding: 6px 8px; } td input.pct { width: 72px; text-align: right; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--sunk); white-space: nowrap; }
.pill.won { background: color-mix(in srgb, var(--pos) 18%, transparent); color: var(--pos); }
.pill.lost { background: color-mix(in srgb, var(--neg) 16%, transparent); color: var(--neg); }
.pill.cash { background: var(--accent-soft); color: var(--accent); }
.empty { padding: 28px 12px; text-align: center; color: var(--muted); }
.note { font-size: 13px; color: var(--muted); max-width: 72ch; margin: 0; }
.msg { font-size: 13px; min-height: 1em; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--body); }
.tip { position: absolute; pointer-events: none; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font-size: 12px; white-space: nowrap; box-shadow: 0 4px 12px rgb(0 0 0 / .12); }

/* аналитика */
h2.sec { font: 600 15px/1.3 var(--display); margin: 8px 0 -4px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.donut { position: relative; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: center; }
.donut svg { width: 180px; height: 180px; display: block; overflow: visible; }
.donut .c1 { font: 500 15px var(--display); fill: var(--fg); font-variant-numeric: tabular-nums; }
.donut .c2 { font: 11px var(--body); fill: var(--muted); }
.donut .seg { transition: opacity .15s; cursor: default; } .donut .seg.dim { opacity: .3; }
@media (max-width: 440px) { .donut { grid-template-columns: 1fr; justify-items: center; } }
.legend { display: grid; gap: 2px; font-size: 13px; width: 100%; }
.legend .li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 0 8px; align-items: center; padding: 5px 8px; border-radius: 6px; transition: opacity .15s; }
.legend .val { grid-column: 2; color: var(--muted); font-variant-numeric: tabular-nums; } .legend .val b { color: var(--fg); font-weight: 600; }
.legend .li:hover { background: var(--sunk); } .legend .li.dim { opacity: .4; }
.legend .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.grid-d { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
#a-kpi { grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr)); }
.legend-row { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; margin-bottom: 6px; }
.legend-row > span { display: inline-flex; align-items: center; gap: 6px; }
.legend-row .dash { width: 16px; border-top: 2px dashed var(--fg); opacity: .7; }
.tip .tt { font-weight: 600; margin-bottom: 2px; }
.tip .tr { display: grid; grid-template-columns: 10px auto auto; gap: 6px; align-items: center; justify-content: start; }
.tip .tr .num { margin-left: 10px; } .tip .tr.strong { font-weight: 600; }
.chart .bar { transition: opacity .15s; } .chart .bar.hot { opacity: .75; }
.mcard .who-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mcard .who-head h2 { font: 600 16px/1.2 var(--display); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr)); gap: 12px 16px; margin: 0; }
.kv > div { display: grid; gap: 2px; align-content: start; min-width: 0; }
.kv dt { font-size: 12px; color: var(--muted); }
.kv dd { margin: 0; font: 500 16px/1.25 var(--display); font-variant-numeric: tabular-nums; }
.kv dd small { display: block; font: 12px/1.3 var(--body); color: var(--muted); }
.mini-weeks { font-size: 13px; } .mini-weeks td, .mini-weeks th { padding: 5px 8px; }

/* ===== Dota-аналитика ===== */
:root { --ta: #2a78d6; --tb: #eb6834; }
@media (prefers-color-scheme: dark) { :root { --ta: #3987e5; --tb: #d95926; } }
.controls { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: end; }
.controls .vs { font: 600 14px var(--display); color: var(--muted); padding-bottom: 10px; }
.controls2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; align-items: end; }
@media (max-width: 560px) { .controls { grid-template-columns: 1fr; } .controls .vs { padding: 0; text-align: center; } }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.dot.a { background: var(--ta); } .dot.b { background: var(--tb); }
.verdict { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.verdict .side { display: grid; gap: 2px; min-width: 0; }
.verdict .side.b { text-align: right; }
.verdict .nm { font-weight: 600; display: flex; gap: 8px; align-items: center; min-width: 0; }
.verdict .side.b .nm { justify-content: flex-end; }
.verdict .nm span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verdict .pc { font: 500 clamp(28px, 6vw, 44px)/1.05 var(--display); font-variant-numeric: tabular-nums; }
.verdict .mid { font-size: 12px; color: var(--muted); text-align: center; }
.split { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--panel); }
.split i { display: block; height: 100%; }
.split i.a { background: var(--ta); border-radius: 6px 0 0 6px; } .split i.b { background: var(--tb); border-radius: 0 6px 6px 0; }
table.markets td, table.markets th { vertical-align: middle; }
table.markets input { width: 76px; text-align: right; padding: 6px 8px; }
.edge { font-weight: 600; white-space: nowrap; }
.edge.good { color: var(--pos); } .edge.bad { color: var(--muted); }
.stakehint { font-size: 12px; color: var(--muted); display: block; }
.cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.kv2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 10px 16px; margin: 0; }
.kv2 > div { display: grid; gap: 2px; min-width: 0; }
.kv2 dt { font-size: 12px; color: var(--muted); }
.kv2 dd { margin: 0; font: 500 16px/1.25 var(--display); font-variant-numeric: tabular-nums; }
.kv2 dd small { display: block; font: 12px/1.3 var(--body); color: var(--muted); }
.formrow { display: flex; flex-wrap: wrap; gap: 3px; }
.formrow span { width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center; font-size: 11px; font-weight: 700; cursor: default; }
.formrow .w { background: color-mix(in srgb, var(--pos) 20%, transparent); color: var(--pos); }
.formrow .l { background: color-mix(in srgb, var(--neg) 16%, transparent); color: var(--neg); }
.tchead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tchead h2 { font: 600 17px/1.2 var(--display); }
.tchead img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }
.players { display: grid; gap: 10px; }
.pl { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 6px; }
.pl .top { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.pl .top b { font-size: 15px; }
.pl .stats { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.badge.warn { background: var(--warn-bg); color: var(--neg); }
.heroes { display: flex; flex-wrap: wrap; gap: 6px; }
.hero { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px 2px 2px; font-size: 12px; font-variant-numeric: tabular-nums; background: var(--bg); }
.hero img { width: 36px; height: 20px; object-fit: cover; border-radius: 4px; display: block; }
.hero .hn { font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero .hs { color: var(--muted); }
.hero.pos .hw { color: var(--pos); font-weight: 600; } .hero.neg .hw { color: var(--neg); font-weight: 600; }
.status { font-size: 13px; color: var(--muted); }
.calib td .bar { display: block; height: 6px; border-radius: 3px; background: var(--sunk); position: relative; min-width: 80px; }
.calib td .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--accent); }
.calib td .bar b { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--fg); }
.loading { padding: 40px 12px; text-align: center; color: var(--muted); }
#result > *, .cols2 > *, .verdict > * { min-width: 0; }
table.markets td { border-bottom: 0; padding-block: 5px; }
table.markets tr.mhead td { font-weight: 600; padding-top: 12px; border-top: 1px solid var(--line); }
table.markets tr.mlast td { padding-bottom: 10px; }
table.markets .mtname { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) {
  .verdict .pc { font-size: 30px; }
  .stakehint { white-space: normal; max-width: 120px; margin-left: auto; }
}
.card > *, details { min-width: 0; }
table.markets { max-width: 820px; }

/* ===== v2: навигация, команды, драфт ===== */
a { color: inherit; }
.brand { text-decoration: none; }
.tabs a { all: unset; cursor: pointer; padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); white-space: nowrap; }
.tabs a[aria-current="page"] { background: var(--panel); color: var(--fg); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.tabs a:focus-visible { outline: 2px solid var(--accent); }
.spacer { flex: 1; }
.grow { flex: 1 1 200px; width: auto; }
.filters select { width: auto; }
.stack { display: grid; gap: 16px; }
.btn.xs { padding: 2px 8px; font-size: 16px; line-height: 1; }
.alert a { text-decoration: underline; }

.tlogo { display: inline-grid; place-items: center; flex: none; border-radius: 10px; overflow: hidden; background: var(--sunk); color: var(--muted); font-weight: 700; font-family: var(--display); }
.tlogo img { width: 100%; height: 100%; object-fit: contain; }
.dots { display: inline-flex; gap: 3px; align-items: center; flex-wrap: wrap; }
.dots i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dots i.w { background: var(--pos); } .dots i.l { background: var(--neg); opacity: .75; }

/* главная */
.qmatch { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 10px; align-items: center; }
.qmatch .vs { font: 600 14px var(--display); color: var(--muted); }
@media (max-width: 640px) { .qmatch { grid-template-columns: 1fr; } .qmatch .vs { text-align: center; } }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.tcard { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; background: var(--panel); transition: border-color .15s, transform .15s; min-width: 0; }
.tcard:hover { border-color: var(--accent); transform: translateY(-1px); }
.tc-top { display: flex; gap: 10px; align-items: center; min-width: 0; }
.tc-name { display: grid; min-width: 0; flex: 1; } .tc-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank { font: 600 13px var(--display); color: var(--muted); }
.tc-mid { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tc-mid .big { font: 500 22px var(--display); font-variant-numeric: tabular-nums; }
.tc-bot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* герои */
.hport { width: 64px; height: 36px; object-fit: cover; border-radius: 5px; display: block; flex: none; background: var(--sunk); }
.hicon { width: 28px; height: 28px; object-fit: cover; border-radius: 5px; display: block; flex: none; background: var(--sunk); }
.hfb { display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--muted); }
.hgrid { display: flex; flex-wrap: wrap; gap: 8px; }
.htile { all: unset; box-sizing: border-box; display: grid; justify-items: center; gap: 3px; width: 74px; padding: 4px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font-variant-numeric: tabular-nums; }
.htile .hport { width: 64px; height: 36px; }
.htile .hlabel { display: grid; justify-items: center; line-height: 1.2; }
.htile .hlabel b { font-size: 13px; } .htile .hlabel span { font-size: 11px; color: var(--muted); }
.htile.pos .hlabel b { color: var(--pos); } .htile.neg .hlabel b { color: var(--neg); }
.htile.small { width: 62px; } .htile.small .hport { width: 54px; height: 30px; }
button.htile { cursor: pointer; } button.htile:hover { border-color: var(--accent); } button.htile[disabled] { opacity: .3; cursor: not-allowed; }
.hgrid.dense { gap: 6px; }

/* страница команды */
.thero { gap: 16px; }
.thead { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.thead .tinfo { flex: 1 1 220px; min-width: 0; }
.tname { font: 600 clamp(22px, 4vw, 30px)/1.1 var(--display); }
.tact { display: flex; gap: 8px; flex-wrap: wrap; flex: 1 1 260px; justify-content: flex-end; }
.tact input { flex: 1 1 140px; width: auto; max-width: 260px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.kpi { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; background: var(--sunk); min-width: 0; }
.kpi .k { font-size: 12px; color: var(--muted); } .kpi .v { font: 500 18px/1.2 var(--display); font-variant-numeric: tabular-nums; } .kpi .s { font-size: 12px; color: var(--muted); }

/* матч */
.matchhead { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.mteam { display: flex; gap: 10px; align-items: center; text-decoration: none; min-width: 0; }
.mteam div { display: grid; min-width: 0; } .mteam b { font: 600 17px/1.2 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mteam.right { justify-content: flex-end; text-align: right; }
.mvs { display: grid; justify-items: center; text-align: center; } .mvs b { font: 500 20px var(--display); font-variant-numeric: tabular-nums; }
.msettings { gap: 8px 18px; } .msettings select { width: auto; } .lineinp { width: 120px; }
@media (max-width: 560px) { .matchhead { grid-template-columns: 1fr 1fr; } .mvs { grid-column: 1 / -1; order: 3; } .mteam b { font-size: 15px; } }

.draft { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.dcol { display: grid; gap: 8px; align-content: start; padding: 12px; border-radius: 10px; border: 1px solid var(--line); }
.dcol.a { border-top: 3px solid var(--ta); } .dcol.b { border-top: 3px solid var(--tb); }
.dhead { display: flex; gap: 8px; align-items: center; } .dhead b { font: 600 15px var(--display); }
.slot { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: start; padding: 6px 0; border-top: 1px solid var(--line); }
.hslot { all: unset; box-sizing: border-box; cursor: pointer; width: 112px; height: 63px; border-radius: 8px; border: 2px dashed var(--line); display: grid; place-items: center; overflow: hidden; background: var(--sunk); }
.hslot:hover, .hslot:focus-visible { border-color: var(--accent); }
.hslot.filled { border-style: solid; border-color: transparent; }
.hslot .hport, .hslot .hfb { width: 100%; height: 100%; border-radius: 0; }
.hslot .plus { font: 500 28px var(--display); color: var(--muted); }
.scol { display: grid; gap: 3px; min-width: 0; }
.srow { display: flex; gap: 4px; align-items: center; }
.pselect { padding: 4px 8px; font-size: 13px; }
.shero { font-size: 14px; }
.sinfo { display: grid; font-size: 12px; line-height: 1.35; }
.segs { display: inline-flex; background: var(--sunk); border-radius: 8px; padding: 2px; gap: 2px; }
.seg { all: unset; cursor: pointer; padding: 4px 10px; border-radius: 6px; font-weight: 600; font-size: 13px; color: var(--muted); }
.seg.on { background: var(--panel); color: var(--fg); box-shadow: 0 1px 2px rgb(0 0 0 / .1); }
.wait p { margin: 0; }
.heroes5 { display: flex; gap: 3px; justify-content: center; margin: 2px 0; }
.heroes5 .hicon { width: 24px; height: 24px; }
.factors { display: grid; gap: 6px; }
.frow { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr minmax(110px, 1fr); gap: 10px; align-items: center; font-size: 13px; }
.fbar { position: relative; height: 10px; background: var(--sunk); border-radius: 5px; }
.fbar i { position: absolute; top: 0; bottom: 0; } .fbar i.a { background: var(--ta); border-radius: 5px 0 0 5px; } .fbar i.b { background: var(--tb); border-radius: 0 5px 5px 0; }
.fbar b { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--muted); }
.fval { font-variant-numeric: tabular-nums; color: var(--muted); }
@media (max-width: 560px) { .frow { grid-template-columns: 1fr 1fr; } .frow .fval { grid-column: 1 / -1; } }
table.matrix { width: auto; border-collapse: separate; border-spacing: 3px; }
table.matrix th, table.matrix td { border: 0; padding: 0; }
table.matrix .mxh { padding: 2px; } table.matrix .mxh .hicon { width: 34px; height: 34px; }
table.matrix .corner { font-size: 11px; color: var(--muted); font-weight: 500; text-align: left; padding-right: 6px; white-space: nowrap; }
td.mx { width: 64px; height: 44px; text-align: center; border-radius: 6px; background: var(--sunk); font-variant-numeric: tabular-nums; }
td.mx b { display: block; font-size: 13px; } td.mx span { font-size: 10px; color: var(--muted); }
td.mx.pos { background: color-mix(in srgb, var(--pos) 22%, transparent); } td.mx.pos b { color: var(--pos); }
td.mx.neg { background: color-mix(in srgb, var(--neg) 18%, transparent); } td.mx.neg b { color: var(--neg); }
.syn { display: grid; gap: 6px; align-content: start; }
.synrow { display: grid; grid-template-columns: 28px 28px minmax(0, 1fr) auto; gap: 6px; align-items: center; font-size: 13px; }
.synrow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.synrow.pos b { color: var(--pos); } .synrow.neg b { color: var(--neg); }

/* выбор героя */
.modal { position: fixed; inset: 0; background: rgb(0 0 0 / .45); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal-box { background: var(--panel); border-radius: 14px; width: min(860px, 100%); max-height: calc(100vh - 32px); display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 12px; padding: 16px; box-shadow: 0 20px 60px rgb(0 0 0 / .3); }
#picker-body { overflow-y: auto; display: grid; gap: 14px; align-content: start; padding-right: 4px; }
.psec { display: grid; gap: 6px; }

/* мета */
table.meta th a { text-decoration: none; } table.meta th a.on { color: var(--fg); text-decoration: underline; }
.mbar { display: inline-block; width: 70px; height: 6px; border-radius: 3px; background: var(--sunk); position: relative; vertical-align: middle; margin-right: 6px; }
.mbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--accent); }
label.row select { width: auto; }
@media (max-width: 560px) {
  .verdict .mid .heroes5 { display: none; }
  header.top > .row { width: 100%; justify-content: space-between; }
}

/* добавление команд */
.addteam > summary { list-style: none; cursor: pointer; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.addteam > summary::-webkit-details-marker { display: none; }
.addteam > summary h2::before { content: '+'; display: inline-block; width: 1.1em; color: var(--accent); }
.addteam[open] > summary h2::before { content: '−'; }
.addteam:not([open]) { gap: 0; }
.tres { display: grid; gap: 6px; }
.tres:empty { display: none; }
.tres-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.tres-row .btn { flex: none; }
.chip.static { cursor: default; display: inline-flex; align-items: center; gap: 2px; }
.chip.static a { color: var(--fg); text-decoration: none; font-weight: 600; } .chip.static a[href]:hover { color: var(--accent); }
.chip .x { all: unset; cursor: pointer; padding: 0 4px 0 6px; color: var(--muted); font-size: 15px; line-height: 1; }
.chip .x:hover, .chip .x:focus-visible { color: var(--neg); }
.tcard.tracked { border-style: dashed; }
.tcard.waiting { cursor: default; } .tcard.waiting:hover { transform: none; border-color: var(--line); }
.warnbox { border: 1px solid var(--line); border-left: 4px solid var(--s4); background: var(--panel); border-radius: var(--r); padding: 10px 14px; display: grid; gap: 6px; font-size: 14px; }
.warnbox p { margin: 0; max-width: 80ch; }
.card > .msg:empty { display: none; }
