/* ============ Assbet — dizayn sistemi ============ */
:root, :root[data-theme="dark"] {
  --bg: #0e1016;
  --s1: #171a22;
  --s2: #1f232d;
  --s3: #272c38;
  --line: #2a2f3b;
  --text: #eceef3;
  --muted: #8a91a1;
  --faint: #5f6677;
  --acc: #4a63ff;
  --acc-2: #6b80ff;
  --acc-soft: rgba(74, 99, 255, .16);
  --on-acc: #ffffff;
  --good: #22c27a;
  --good-soft: rgba(34, 194, 122, .14);
  --warn: #f2a93b;
  --warn-soft: rgba(242, 169, 59, .14);
  --bad: #ff5d5d;
  --bad-soft: rgba(255, 93, 93, .14);
  --draw: #8a91a1;
  --shadow: 0 1px 0 rgba(255,255,255,.02);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #eef0f4;
  --s1: #ffffff;
  --s2: #f4f5f8;
  --s3: #e9ebf0;
  --line: #e3e6ec;
  --text: #121621;
  --muted: #646b7b;
  --faint: #9aa0ad;
  --acc: #3b52f0;
  --acc-2: #3b52f0;
  --acc-soft: rgba(59, 82, 240, .1);
  --on-acc: #ffffff;
  --good: #0f9d5c;
  --good-soft: rgba(15, 157, 92, .1);
  --warn: #c27a0e;
  --warn-soft: rgba(194, 122, 14, .1);
  --bad: #d93838;
  --bad-soft: rgba(217, 56, 56, .09);
  --draw: #8c93a1;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.4 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
h1, h2, h3, h4, p { margin: 0; }

/* ============ header ============ */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--s1); border-bottom: 1px solid var(--line); }
.hdr-in { max-width: 1480px; margin: 0 auto; height: 60px; padding: 0 20px; display: flex; align-items: center; gap: 24px; }
.brand { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.nav { display: flex; gap: 4px; }
.nav a { height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border-radius: 8px; color: var(--muted); font-weight: 600; }
.nav a svg { width: 17px; height: 17px; }
.slip-ttl { display: inline-flex; align-items: center; gap: 8px; }
.btn svg { width: 16px; height: 16px; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); background: var(--s2); }
.search { flex: 1; min-width: 0; max-width: 380px; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 10px; background: var(--s2); border: 1px solid transparent; color: var(--muted); }
.search:focus-within { border-color: var(--acc); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); height: 100%; }
.hdr-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.upd { color: var(--faint); font-size: 12px; white-space: nowrap; }
.ib { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); background: var(--s2); }
.ib:hover { color: var(--text); }
.ib.spin svg { animation: spin .9s linear infinite; }
.ib.on { color: var(--acc-2); background: var(--acc-soft); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ shell ============ */
.shell { max-width: 1480px; margin: 0 auto; padding: 16px 20px 32px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.app { min-width: 0; }
.card { background: var(--s1); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 0; }
.pad { padding: 16px; }
.stack > * + * { margin-top: 12px; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); font-weight: 700; }
.sec-h .muted { font-weight: 500; font-size: 12.5px; }
.lbl { font-size: 12px; color: var(--muted); }

/* pills / tabs */
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { height: 32px; padding: 0 14px; border-radius: 999px; background: var(--s2); color: var(--muted); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pill:hover { color: var(--text); }
.pill.on { background: var(--text); color: var(--bg); }
.pill b { font-weight: 700; opacity: .7; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 8px; overflow-x: auto; scrollbar-width: none; }
.tabs button { height: 44px; padding: 0 14px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--acc-2); border-bottom-color: var(--acc); }
.sel { height: 32px; padding: 0 30px 0 12px; border-radius: 999px; border: 0; background: var(--s2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a91a1' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px; appearance: none; font-weight: 600; font-size: 13px; color: var(--muted); max-width: 210px; }
.btn { height: 38px; padding: 0 14px; border-radius: 9px; background: var(--s2); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.btn:hover:not(:disabled) { background: var(--s3); }
.btn.pri { background: var(--acc); color: var(--on-acc); }
.btn.pri:hover:not(:disabled) { background: var(--acc-2); }

/* level badge & dots */
.lv { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: var(--s2); color: var(--muted); }
.lv.ok { background: var(--good-soft); color: var(--good); }
.lv.wait { background: var(--warn-soft); color: var(--warn); }
.lv.bad { background: var(--bad-soft); color: var(--bad); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); display: inline-block; flex: none; }
.dot.ok { background: var(--good); } .dot.wait { background: var(--warn); } .dot.bad { background: var(--bad); } .dot.none { background: transparent; }

/* ============ odds cell (bütün əmsal düymələri eyni) ============ */
.odd { height: 44px; min-width: 0; width: 100%; padding: 0 10px; border-radius: 8px; background: var(--s2); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; text-align: left; border: 1px solid transparent; transition: background .12s; }
.odd:hover { background: var(--s3); }
.odd .k { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.odd .k span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.odd .k small { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.odd .o { font-weight: 700; font-size: 14.5px; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 3px; }
.odd .mv { font-size: 9px; }
.mv.dn { color: var(--good); } .mv.up { color: var(--bad); }
.odd.on { background: var(--acc); border-color: var(--acc); }
.odd.on .k span, .odd.on .k small, .odd.on .o, .odd.on .mv { color: var(--on-acc); }
.odd.alt { border-color: var(--acc); }
.odd.off { opacity: .35; pointer-events: none; }
.odd.c { height: 40px; padding: 0 8px; grid-template-columns: auto minmax(0, 1fr); }
.odd.c .k span { font-size: 11px; }
.odd.c .o { justify-content: flex-end; font-size: 14px; }

/* ============ home: list + detail ============ */
.split { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 16px; align-items: start; }
.list-pane { min-width: 0; }
.detail-pane { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; min-width: 0; border-radius: 12px; scrollbar-width: thin; }
.lp-top { padding: 12px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); }
.lp-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.lp-row .pills { flex-wrap: nowrap; }
.lp-row .sel { flex: 0 1 190px; min-width: 0; }
.lg-h { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 14px; background: var(--s2); font-weight: 700; font-size: 13px; border-top: 1px solid var(--line); }
.lg-h:first-child { border-top: 0; }
.lg-h span:last-child { color: var(--muted); font-weight: 600; font-size: 12px; }
.mrow { display: grid; grid-template-columns: 44px minmax(0, 1fr) 162px 8px; align-items: center; gap: 10px; height: 60px; padding: 0 14px 0 12px; border-top: 1px solid var(--line); cursor: pointer; }
.lg-h + .mrow { border-top: 0; }
.mrow:hover { background: var(--s2); }
.mrow.cur { background: var(--acc-soft); box-shadow: inset 3px 0 0 var(--acc); }
.mrow .t { font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.25; font-variant-numeric: tabular-nums; }
.mrow .t b { display: block; color: var(--text); font-size: 13px; }
.mrow .nm { min-width: 0; line-height: 1.35; }
.mrow .nm div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
.mrow .ods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mrow .ods .odd { height: 34px; padding: 0 4px; grid-template-columns: 1fr; text-align: center; justify-items: center; }
.mrow .ods .odd .k { display: none; }
.mrow .ods .odd .o { font-size: 13px; justify-content: center; }
.more-row { width: 100%; height: 44px; color: var(--acc-2); font-weight: 700; border-top: 1px solid var(--line); }

/* ============ match detail ============ */
.mh { padding: 18px 16px 16px; }
.mh .lgn { text-align: center; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.vs { display: grid; grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1fr); align-items: center; }
.side { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; text-align: center; }
.side .lgo { width: 56px; height: 56px; border-radius: 12px; background: var(--s2); display: grid; place-items: center; overflow: hidden; }
.side .lgo img { width: 44px; height: 44px; object-fit: contain; }
.side .lgo span { font-weight: 800; font-size: 20px; color: var(--muted); }
.side .tn { font-weight: 700; font-size: 15px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.side:hover .tn { color: var(--acc-2); }
.side .lnk { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.side a.lnk:hover .tn { color: var(--acc-2); }
.side .ts { font-size: 12px; color: var(--muted); height: 22px; display: flex; align-items: center; gap: 2px; }
.side .ts .favb { width: 22px; height: 22px; font-size: 13px; }
.lg-r { display: inline-flex; align-items: center; gap: 4px; }
.lg-h .favb { width: 24px; height: 24px; font-size: 13px; }
.kick { text-align: center; }
.kick b { display: block; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kick span { font-size: 12px; color: var(--muted); }
.wbox { margin-top: 16px; background: var(--s2); border-radius: 10px; padding: 12px; }
.wbox .wt { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.wbar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; gap: 2px; }
.wbar i { display: block; height: 100%; }
.wbar i:nth-child(1) { background: var(--good); } .wbar i:nth-child(2) { background: var(--draw); } .wbar i:nth-child(3) { background: var(--acc); }
.wleg { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 8px; font-size: 12.5px; }
.wleg div:nth-child(2) { text-align: center; } .wleg div:nth-child(3) { text-align: right; }
.wleg b { font-variant-numeric: tabular-nums; }
.o3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }

.blk { padding: 16px; border-top: 1px solid var(--line); }
.blk:first-child { border-top: 0; }
.blk-t { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; margin-bottom: 12px; }
.blk-t .muted { font-weight: 500; font-size: 12.5px; }
.sigs { list-style: none; margin: 0; padding: 0; }
.sigs li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; padding: 7px 0; font-size: 13.5px; border-top: 1px solid var(--line); }
.sigs li:first-child { border-top: 0; padding-top: 0; }
.sigs i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; margin-top: 1px; }
.sigs .bad i { background: var(--bad-soft); color: var(--bad); }
.sigs .warn i { background: var(--warn-soft); color: var(--warn); }
.sigs .good i { background: var(--good-soft); color: var(--good); }
.sigs .info i { background: var(--s2); color: var(--muted); }
.sigs .info { color: var(--muted); }
.mvs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mvs div { background: var(--s2); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; color: var(--muted); }
.mvs b { display: block; color: var(--text); font-size: 14px; font-variant-numeric: tabular-nums; }

.cmp { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cmp td { padding: 9px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; vertical-align: middle; }
.cmp tr:first-child td { border-top: 0; padding-top: 0; }
.cmp td:first-child { width: 36%; }
.cmp td:nth-child(2) { text-align: center; color: var(--muted); font-size: 12.5px; }
.cmp td:last-child { width: 36%; text-align: right; }
.cmp .w { color: var(--good); font-weight: 700; }
.cmp .hd td { font-weight: 700; }
.form { display: inline-flex; gap: 3px; }
.cmp td:last-child .form { justify-content: flex-end; }
.fr { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: #fff; }
.fr.Q { background: var(--good); } .fr.H { background: var(--draw); } .fr.M { background: var(--bad); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ph { font-weight: 700; font-size: 13px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; }
.ph a:hover { color: var(--acc-2); }
.pl { list-style: none; margin: 0; padding: 0; }
.pl li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.pl li:first-child { border-top: 0; }
.pl .pn { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl .pn em { font-style: normal; color: var(--warn); margin-right: 4px; }
.pl .ps { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg { height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; background: var(--s2); color: var(--muted); white-space: nowrap; }
.tg.bad { background: var(--bad-soft); color: var(--bad); }
.tg.wait { background: var(--warn-soft); color: var(--warn); }
.tg.ok { background: var(--good-soft); color: var(--good); }
.xi { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

.mgrp { border-top: 1px solid var(--line); }
.mgrp:first-child { border-top: 0; }
.mgrp > summary { list-style: none; height: 46px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 700; }
.mgrp > summary::-webkit-details-marker { display: none; }
.mgrp > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-top: -4px; }
.mgrp[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.mgrp > summary span { margin-left: auto; margin-right: 14px; color: var(--muted); font-weight: 500; font-size: 12.5px; }
.mkts { padding: 0 16px 16px; display: grid; gap: 14px; }
.mkt h4 { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.mkt .grid { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 6px; }

.vd { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.vd b { font-size: 18px; }
.vd-t { color: var(--muted); font-size: 13.5px; margin-top: 8px; line-height: 1.5; }
.links { list-style: none; margin: 0; padding: 0; }
.links li { padding: 10px 0; border-top: 1px solid var(--line); }
.links li:first-child { border-top: 0; padding-top: 0; }
.links a.h { font-size: 13.5px; font-weight: 600; display: block; }
.links a.h:hover { color: var(--acc-2); }
.links .src { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; gap: 10px; }
.tr { color: var(--acc-2); font-weight: 600; font-size: 12px; white-space: nowrap; }
.tr:hover { text-decoration: underline; }
.h2b { display: flex; height: 6px; border-radius: 3px; overflow: hidden; gap: 2px; margin: 10px 0 4px; }
.h2b i:nth-child(1) { background: var(--good); } .h2b i:nth-child(2) { background: var(--draw); } .h2b i:nth-child(3) { background: var(--acc); }
.h2l { display: grid; grid-template-columns: repeat(3, 1fr); font-size: 12.5px; }
.h2l div:nth-child(2) { text-align: center; } .h2l div:nth-child(3) { text-align: right; }
.gl { list-style: none; margin: 10px 0 0; padding: 0; }
.gl li { display: grid; grid-template-columns: 84px minmax(0, 1fr) 54px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; align-items: center; }
.gl li span:nth-child(2) { text-align: right; }
.gl li b { text-align: center; font-variant-numeric: tabular-nums; }
.gl .d { color: var(--muted); font-size: 12px; }

/* ============ analysis page ============ */
.ah { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; }
.ah h1 { font-size: 20px; }
.ah .muted { font-size: 12.5px; margin-top: 2px; }
.prog { height: 4px; background: var(--s2); }
.prog i { display: block; height: 100%; background: var(--acc); transition: width .4s; }
.af { padding: 12px 16px; border-top: 1px solid var(--line); }
.arow { display: grid; grid-template-columns: 52px minmax(0, 1fr) 150px; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); align-items: start; cursor: pointer; }
.arow:hover { background: var(--s2); }
.arow .t { font-weight: 700; font-variant-numeric: tabular-nums; padding-top: 1px; }
.arow .t small { display: block; color: var(--muted); font-weight: 500; font-size: 11.5px; }
.at { display: flex; align-items: center; gap: 8px; min-width: 0; }
.at .nm { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as { font-size: 12.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arow .sigs { margin-top: 8px; }
.arow .sigs li { padding: 3px 0; border: 0; font-size: 12.5px; grid-template-columns: 16px minmax(0, 1fr); }
.arow .sigs i { width: 16px; height: 16px; font-size: 10px; }
.arow .sigs li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apk { display: grid; gap: 6px; }

/* ============ team page ============ */
.th { display: flex; align-items: center; gap: 16px; padding: 18px 16px; }
.th .lgo { width: 64px; height: 64px; border-radius: 14px; background: var(--s2); display: grid; place-items: center; flex: none; }
.th .lgo img { width: 50px; height: 50px; object-fit: contain; }
.th h1 { font-size: 22px; }
.th .meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
/* KPI şəbəkələri: xətlər "gap" ilə çəkilir, ona görə sətir natamam qalmır */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); overflow: hidden; }
.kpis div { padding: 12px 16px; min-width: 0; box-shadow: 0 0 0 .5px var(--line); }
.kpis b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.kpis span { font-size: 12px; color: var(--muted); }
.fx { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.fx:first-child { border-top: 0; padding-top: 0; }
.fx .d { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.fx .r { display: flex; align-items: center; gap: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ============ history ============ */
.hk { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-radius: 12px; overflow: hidden; }
.hk div { padding: 14px 16px; min-width: 0; box-shadow: 0 0 0 .5px var(--line); }
.hk div:last-child:nth-child(odd) { grid-column: auto; }
.hk span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hk b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; }
.hk span { font-size: 12px; color: var(--muted); }
.hc .hh { display: grid; grid-template-columns: minmax(0, 1fr) auto 30px; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); }
.hc .hh-l, .hc .hh-r { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hc .hh-r { align-items: flex-end; }
.hc .hh-l b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc .hh .muted { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc .hh .sp { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.hc .del { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.hc .del:hover { background: var(--s2); color: var(--bad); }
.hl { list-style: none; margin: 0; padding: 4px 16px 8px; }
.hl li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; align-items: center; }
.hl li:first-child { border-top: 0; }
.hl .d { color: var(--muted); font-variant-numeric: tabular-nums; }
.hl .p { color: var(--muted); font-size: 12px; }
.hl .o { font-weight: 700; font-variant-numeric: tabular-nums; }

.stg { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.stg div { background: var(--s2); border-radius: 8px; padding: 8px 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
.stg span { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stg b { font-variant-numeric: tabular-nums; }
.stg i { font-style: normal; font-size: 11.5px; color: var(--faint); align-self: end; }

.sys summary { list-style: none; cursor: pointer; }
.sys summary::-webkit-details-marker { display: none; }
.mform { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 8px; padding: 0 16px 16px; align-items: end; }
.mform label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mform span { font-size: 11.5px; color: var(--muted); }
.mform input { height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--s2); padding: 0 10px; outline: 0; min-width: 0; }
.mform input:focus { border-color: var(--acc); }
@media (max-width: 900px) { .mform { grid-template-columns: 1fr 1fr; } .mform .btn { grid-column: 1 / -1; } }

/* modal / auth */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(5, 7, 12, .72); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.mbox { width: 100%; max-width: 380px; background: var(--s1); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.mtop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mtop .brand { font-size: 20px; }
.aform { display: grid; gap: 10px; }
.aform label { display: flex; flex-direction: column; gap: 4px; }
.aform span { font-size: 12px; color: var(--muted); }
.aform input { height: 42px; border: 1px solid var(--line); border-radius: 9px; background: var(--s2); padding: 0 12px; outline: 0; }
.aform input:focus { border-color: var(--acc); }
.aform .btn { height: 44px; margin-top: 4px; }
.aerr { min-height: 18px; font-size: 12.5px; color: var(--bad); }
.tunurl { background: var(--s2); border-radius: 9px; padding: 10px 12px; font-size: 13px; font-weight: 600; word-break: break-all; }
.tunurl a { color: var(--acc-2); }

/* live page */
.lrow { display: grid; grid-template-columns: 48px minmax(0, 1fr) 28px; gap: 10px; align-items: center; height: 58px; padding: 0 16px; border-top: 1px solid var(--line); }
.lg-h + .lrow { border-top: 0; }
.lrow.mine { background: var(--acc-soft); box-shadow: inset 3px 0 0 var(--acc); }
.lm-t { color: var(--bad); font-weight: 700; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.lm-n { min-width: 0; line-height: 1.4; font-size: 13.5px; }
.lm-n div { display: flex; min-width: 0; }
.lm-n a:hover { color: var(--acc-2); }
.lm-s { display: flex; flex-direction: column; align-items: center; line-height: 1.4; font-variant-numeric: tabular-nums; }
.favb { width: 28px; height: 28px; border-radius: 7px; display: inline-grid; place-items: center; color: var(--faint); font-size: 15px; }
.favb:hover { color: var(--warn); background: var(--s3); }
.favb.on { color: var(--warn); }

/* discipline & balance */
.stop { margin: 12px 16px 0; padding: 10px 12px; border-radius: 9px; background: var(--bad-soft); color: var(--bad); font-size: 12.5px; line-height: 1.45; }
.stop b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.bline { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); padding: 8px 2px 0; }
.bline b { color: var(--text); font-variant-numeric: tabular-nums; }
.bal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; padding: 16px; }
.bal-in { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 10px; }
.bal-in input { width: 6.5ch; border: 0; outline: 0; background: none; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; padding: 0; border-bottom: 1px dashed var(--line); }
.bal-in input:focus { border-bottom-color: var(--acc); }
.bal-in span { color: var(--muted); font-weight: 700; }
.goal { height: 6px; border-radius: 3px; background: var(--s2); overflow: hidden; margin-bottom: 6px; }
.goal i { display: block; height: 100%; background: var(--good); }
.bal-r { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-content: start; }
.bal-r label { background: var(--s2); border-radius: 9px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bal-r span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bal-r input { border: 0; outline: 0; background: none; font-weight: 700; font-size: 15px; width: 100%; padding: 0; font-variant-numeric: tabular-nums; }
.bal-f { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.bal-f b { color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .bal { grid-template-columns: 1fr; } }

/* model & accuracy */
.mdl { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.mdl td { padding: 7px 0; border-top: 1px solid var(--line); text-align: right; }
.mdl td:first-child { text-align: left; }
.mdl tr.thr td { border-top: 0; padding-top: 0; color: var(--faint); font-size: 11.5px; font-weight: 600; }
.vrow { display: grid; grid-template-columns: minmax(0, 1fr) 60px; gap: 8px; align-items: center; margin-top: 6px; }
.vv { text-align: right; font-weight: 800; color: var(--good); font-variant-numeric: tabular-nums; }
.lv.val { background: var(--acc-soft); color: var(--acc-2); }
.acc { margin-bottom: 12px; }
.acc .sec-h { border-bottom: 1px solid var(--line); }
.acc .sec-h:last-child { border-bottom: 0; }
.accx { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin-top: 12px; }
.accx div { background: var(--s2); border-radius: 8px; padding: 10px 12px; }
.accx b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.accx span { font-size: 12px; color: var(--muted); }

/* live chip */
.lc { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; margin-top: 5px; border-radius: 5px; background: var(--s2); color: var(--muted); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lc.kecdi { background: var(--good-soft); color: var(--good); }
.lc.yandi { background: var(--bad-soft); color: var(--bad); }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--bad); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.mset { display: inline-flex; gap: 4px; }
.mset .tg { cursor: pointer; width: 24px; justify-content: center; padding: 0; }
.c-ok { color: var(--good); } .c-bad { color: var(--bad); }

/* ============ slip ============ */
.slip { position: sticky; top: 76px; max-height: calc(100vh - 92px); display: flex; flex-direction: column; background: var(--s1); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.slip-h { height: 50px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 15px; }
.close-slip { display: none; }
.slip-b { overflow-y: auto; flex: 1; scrollbar-width: thin; }
.ktabs { display: flex; gap: 6px; padding: 12px 16px 0; flex-wrap: wrap; }
.ktab { height: 30px; min-width: 52px; padding: 0 12px; border-radius: 999px; background: var(--s2); color: var(--muted); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ktab.on { background: var(--acc); color: var(--on-acc); }
.ktab small { font-weight: 600; opacity: .8; }
.kbody { padding: 12px 16px 0; }
.legs { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.leg { display: grid; grid-template-columns: minmax(0, 1fr) auto 26px; gap: 8px; align-items: center; padding: 10px 6px 10px 12px; border-top: 1px solid var(--line); }
.leg:first-child { border-top: 0; }
.leg .lm { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; min-width: 0; }
.leg .lm a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leg .lm a:hover { color: var(--text); }
.leg .lp { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.leg .lo { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.25; }
.leg .lo small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.leg .lo small.up { color: var(--bad); } .leg .lo small.dn { color: var(--good); }
.leg .rm { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: var(--faint); }
.leg .rm:hover { background: var(--s2); color: var(--bad); }
.leg .rm svg { width: 14px; height: 14px; }
.kempty { padding: 26px 12px; text-align: center; color: var(--muted); font-size: 13px; border: 1px dashed var(--line); border-radius: 10px; }
.ksum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.ksum div { background: var(--s2); border-radius: 8px; padding: 7px 10px; min-width: 0; }
.ksum span { display: block; font-size: 11.5px; color: var(--muted); }
.ksum b { font-size: 15px; font-variant-numeric: tabular-nums; }
.ksum input { width: 100%; border: 0; outline: 0; background: none; font-weight: 700; font-size: 15px; padding: 0; font-variant-numeric: tabular-nums; }
.kpay { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-size: 13px; color: var(--muted); }
.kpay b { font-size: 18px; color: var(--text); font-variant-numeric: tabular-nums; }
.sblk { padding: 14px 16px 0; }
.sblk-t { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.budget { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 40px; padding: 0 12px; border-radius: 9px; background: var(--s2); font-size: 13px; color: var(--muted); }
.budget input { width: 70px; border: 0; outline: 0; background: none; text-align: right; font-weight: 700; color: var(--text); font-size: 14px; }
.wl { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wl li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; font-size: 12.5px; line-height: 1.4; padding: 8px 10px; border-radius: 8px; background: var(--warn-soft); color: var(--warn); }
.wl li.bad { background: var(--bad-soft); color: var(--bad); }
.wl li.ok { background: var(--good-soft); color: var(--good); }
.scn { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.scn td { padding: 7px 0; border-top: 1px solid var(--line); text-align: right; }
.scn td:first-child { text-align: left; color: var(--muted); }
.scn tr:first-child td { border-top: 0; }
.scn .p { color: var(--good); font-weight: 700; } .scn .n { color: var(--bad); }
.scn .thr td { color: var(--faint); font-size: 11.5px; font-weight: 600; padding-top: 0; }
.scn td + td { width: 22%; }
.big { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.big b { font-size: 22px; font-variant-numeric: tabular-nums; }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 14px 16px 16px; }
.acts .btn { width: 100%; }
.acts .wide { grid-column: 1 / -1; }

.only-m { display: none !important; }
.back-m { height: 44px; display: flex; align-items: center; gap: 6px; padding: 0 12px; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .only-m { display: flex !important; } }

/* ============ mobile chrome ============ */
.tabbar, .scrim { display: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; transition: .2s; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; z-index: 80; pointer-events: none; max-width: calc(100vw - 32px); font-weight: 600; font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ responsive ============ */
@media (max-width: 1360px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .slip { position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 100vw; max-height: none; border-radius: 0; border-width: 0 0 0 1px; z-index: 60; transform: translateX(100%); transition: transform .22s ease; }
  .slip.open { transform: none; }
  .close-slip { display: grid; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .scrim.open { opacity: 1; pointer-events: auto; }
  .tabbar { display: grid; position: fixed; right: 20px; bottom: 20px; left: auto; z-index: 50; grid-template-columns: auto; }
  .tabbar a { display: none; }
  .tabbar button { height: 46px; padding: 0 18px; border-radius: 999px; background: var(--acc); color: var(--on-acc); font-weight: 800; display: flex; align-items: center; gap: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
  .tabbar .tb-ic { position: relative; display: grid; place-items: center; }
  .tabbar button b { position: absolute; top: -8px; right: -12px; min-width: 18px; height: 18px; border-radius: 9px; background: #fff; color: var(--acc); display: grid; place-items: center; font-size: 11px; padding: 0 5px; }
}
@media (max-width: 1100px) {
  .split { grid-template-columns: 380px minmax(0, 1fr); }
  .hk { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hdr-in { gap: 12px; padding: 0 14px; }
  .nav, .upd { display: none; }
  .search { max-width: none; }
  .shell { padding: 12px 12px 84px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split .detail-pane { display: none; position: static; max-height: none; overflow: visible; }
  .split.show-detail .list-pane { display: none; }
  .split.show-detail .detail-pane { display: block; }
  .tabbar { left: 0; right: 0; bottom: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--s1); border-top: 1px solid var(--line);
    height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 58px; min-width: 0;
    color: var(--muted); font-weight: 600; font-size: 11px; border-radius: 0; background: none; box-shadow: none; padding: 0; }
  .tabbar span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tabbar svg { width: 22px; height: 22px; stroke-width: 1.8; }
  .tabbar a.on { color: var(--acc-2); }
  .tabbar button b { top: -6px; right: -10px; background: var(--acc); color: var(--on-acc); }
  .toast { bottom: calc(72px + env(safe-area-inset-bottom)); }
  .shell { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .slip { width: 100%; }
  .two, .tops { grid-template-columns: 1fr; }
  .kpis, .hk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hk div:last-child:nth-child(odd), .kpis div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .arow { grid-template-columns: 44px minmax(0, 1fr); }
  .apk { grid-column: 2; grid-template-columns: 1fr 1fr; }
  .ah { flex-direction: column; align-items: stretch; }
}
@media (max-width: 600px) {
  #tema, #yenile { display: none; }
  .lp-row { flex-wrap: wrap; }
  .lp-row .pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .lp-row .sel { flex: 1 1 120px; max-width: none; }
  .bal-r { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .bal-r label { padding: 8px; }
  .hc .hh { grid-template-columns: minmax(0, 1fr) auto 28px; padding-left: 14px; }
  .af .pills, .ah .pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .af .pills::-webkit-scrollbar, .lp-row .pills::-webkit-scrollbar { display: none; }
  .ah .pills .btn { flex: 1; }
  .arow .sigs li span { white-space: normal; }
  .ah h1 { font-size: 18px; }
}
@media (max-width: 420px) {
  .mrow { grid-template-columns: 40px minmax(0, 1fr) 140px 8px; gap: 8px; padding: 0 10px; }
  .vs { grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr); }
  .kick b { font-size: 22px; }
}
