/* Traffic table — стили. Источник вида: creative-lab/docs/mockups/v11-forks.html (страница «Таблица»).
   Всё под .tt, чтобы таблицу можно было вставить в чужую страницу (портал на htmx). */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

.tt{
  color-scheme: light;
  --bg:#f4f5f7; --surface:#ffffff; --surface-2:#f0f2f5; --hover:#f5f7fa;
  --line:#e3e6eb; --line-strong:#cbd1d9;
  --text:#14171b; --text-2:#545e6a; --text-3:#8a929c;
  --accent:#2256d0; --accent-ink:#ffffff; --accent-soft:#e7eefc; --accent-tint:#f3f7ff;
  --ok:#16774a; --ok-soft:#e1f2e8;
  --warn:#955a00; --warn-soft:#faefd8;
  --lp:#7448c2; --lp-soft:#f0eafb;   /* блок «Лендинг · выдача»: не FB-синий и не Google-зелёный */
  --bad:#bd3428; --bad-soft:#fbe4e1;
  --info:#2256d0; --info-soft:#e7eefc;
  --mute:#69717b; --mute-soft:#eceef1;
  --scrim:rgba(20,24,28,.24);
  --shadow:0 12px 40px rgba(20,24,28,.14), 0 1px 3px rgba(20,24,28,.08);
  --edge:rgba(20,24,28,.09);
  --font:'Onest',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  --side:176px;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .tt{
    color-scheme: dark;
    --bg:#0d0f11; --surface:#14171a; --surface-2:#1a1e22; --hover:#1c2025;
    --line:#242a30; --line-strong:#353c45;
    --text:#e6e8eb; --text-2:#a1a9b2; --text-3:#6e7680;
    --accent:#6f98ff; --accent-ink:#0a0c10; --accent-soft:#1a2543; --accent-tint:#141c30;
    --ok:#4ec48b; --ok-soft:#12281d;
    --warn:#e2a748; --warn-soft:#2d2312;
    --lp:#b39af5; --lp-soft:#251d38;
    --bad:#f07b70; --bad-soft:#331a17;
    --info:#6f98ff; --info-soft:#1a2543;
    --mute:#8a929c; --mute-soft:#1e2328;
    --scrim:rgba(0,0,0,.5);
    --shadow:0 16px 48px rgba(0,0,0,.5), 0 1px 3px rgba(0,0,0,.4);
    --edge:rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] .tt{
  color-scheme: dark;
  --bg:#0d0f11; --surface:#14171a; --surface-2:#1a1e22; --hover:#1c2025;
  --line:#242a30; --line-strong:#353c45;
  --text:#e6e8eb; --text-2:#a1a9b2; --text-3:#6e7680;
  --accent:#6f98ff; --accent-ink:#0a0c10; --accent-soft:#1a2543; --accent-tint:#141c30;
  --ok:#4ec48b; --ok-soft:#12281d;
  --warn:#e2a748; --warn-soft:#2d2312;
  --lp:#b39af5; --lp-soft:#251d38;
  --bad:#f07b70; --bad-soft:#331a17;
  --info:#6f98ff; --info-soft:#1a2543;
  --mute:#8a929c; --mute-soft:#1e2328;
  --scrim:rgba(0,0,0,.5);
  --shadow:0 16px 48px rgba(0,0,0,.5), 0 1px 3px rgba(0,0,0,.4);
  --edge:rgba(0,0,0,.5);
}
:root[data-theme="dark"]{color-scheme:dark}
:root[data-theme="light"]{color-scheme:light}

.tt *,.tt *::before,.tt *::after{box-sizing:border-box}
.tt [hidden]{display:none!important}
.tt{color:var(--text);font:14px/1.45 var(--font);-webkit-font-smoothing:antialiased}
.tt button,.tt input{font:inherit;color:inherit}
.tt button{cursor:pointer;background:none;border:0;padding:0;text-align:inherit}
.tt :focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.tt .ic{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.tt .num{font-variant-numeric:tabular-nums}
.tt .mono{font-family:var(--mono);font-size:12px;letter-spacing:.01em;font-variant-numeric:tabular-nums}
.tt .pos{color:var(--ok)} .tt .neg{color:var(--bad)} .tt .dim{color:var(--text-3)}
.tt table{border-collapse:separate;border-spacing:0;width:100%}

/* ───────── оболочка страницы (index.html) ───────── */
html.tt-html,body.tt-page{margin:0;background:var(--bg);overflow-x:hidden}
body.tt-page{min-height:100vh}
.tt .app{display:grid;grid-template-columns:var(--side) minmax(0,1fr);min-height:100vh;transition:grid-template-columns .22s cubic-bezier(.2,.7,.2,1)}
.tt .side{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:14px;padding:14px 8px;border-right:1px solid var(--line);background:var(--surface);z-index:20}
.tt .brand{display:flex;align-items:center;gap:8px;padding:2px 8px;font-weight:600;font-size:14px;letter-spacing:-.01em;white-space:nowrap}
.tt .mark{width:20px;height:20px;flex:none}
.tt .nav{display:flex;flex-direction:column;gap:1px}
.tt .nav a{display:flex;align-items:center;gap:8px;height:30px;padding:0 8px;border-radius:7px;font-size:13px;color:var(--text-2);white-space:nowrap;text-decoration:none;transition:background .12s,color .12s}
.tt .nav a .ic{width:16px;height:16px}
.tt .nav a:hover{background:var(--hover);color:var(--text)}
.tt .nav a.on{background:var(--accent-soft);color:var(--accent);font-weight:500}
.tt .side-foot{margin-top:auto;display:flex;gap:2px;padding:0 2px}
.tt .side-foot .icon-btn{width:30px;height:30px}
.tt .side-foot .icon-btn .ic{width:16px;height:16px}
.tt #sidetog{margin-left:auto}
@media (min-width:821px){
  .tt .side{overflow-x:hidden;overflow-y:auto;scrollbar-width:none;transition:padding .22s}
  .tt .side::-webkit-scrollbar{display:none}
  body.side-min{--side:48px}
  body.side-min .side{padding:14px 6px}
  body.side-min .brand{justify-content:center;padding:2px 0}
  body.side-min .brand span,body.side-min .nav .nl{display:none}
  body.side-min .nav a{justify-content:center;padding:0}
  body.side-min .side-foot{flex-direction:column;align-items:center;padding:0}
  body.side-min #sidetog{margin-left:0}
}
.tt .icon-btn{width:34px;height:34px;display:grid;place-items:center;border-radius:7px;color:var(--text-2);transition:background .12s,color .12s}
.tt .icon-btn:hover{background:var(--hover);color:var(--text)}
.tt .app>main{min-width:0;padding:12px 16px 12px;width:100%}
@media (max-width:820px){
  .tt{--side:0px}
  .tt .app{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr}
  .tt .side{position:sticky;top:0;height:auto;flex-direction:row;align-items:center;gap:8px;padding:8px 16px;border-right:0;border-bottom:1px solid var(--line)}
  .tt .brand{padding:0}
  .tt .nav{flex-direction:row;flex:1;min-width:0}
  .tt .nav a .ic{display:none}
  .tt .side-foot{margin:0;padding:0}
  .tt #sidetog{display:none}
  .tt .app>main{padding:10px 12px 12px}
}

/* ───────── кнопки, чипы, сегменты ───────── */
.tt .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:36px;padding:0 14px;border-radius:8px;font-weight:500;white-space:nowrap;border:1px solid transparent;transition:background .12s,filter .12s,border-color .12s,color .12s}
.tt .btn .ic{width:16px;height:16px}
.tt .btn.primary{background:var(--accent);color:var(--accent-ink)}
.tt .btn.primary:hover{filter:brightness(1.08)}
.tt .btn.primary:disabled{opacity:.4;cursor:default;filter:none}
.tt .btn.ghost{border-color:var(--line-strong);color:var(--text)}
.tt .btn.ghost:hover{background:var(--hover)}
.tt .btn.plain{color:var(--text-2);padding:0 10px}
.tt .btn.plain:hover{color:var(--text);background:var(--hover)}
.tt .btn.sm{height:30px;padding:0 12px;font-size:13px}
.tt .seg{display:inline-flex;gap:2px;padding:3px;border-radius:9px;background:var(--surface-2);border:1px solid var(--line);max-width:100%;overflow-x:auto;scrollbar-width:none;min-width:0}
.tt .seg::-webkit-scrollbar{display:none}
.tt .seg button{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 12px;border-radius:7px;color:var(--text-2);white-space:nowrap;transition:background .12s,color .12s}
.tt .seg button:hover{color:var(--text)}
.tt .seg button.on{background:var(--surface);color:var(--text);font-weight:500;box-shadow:0 1px 2px rgba(0,0,0,.08),0 0 0 1px var(--line)}
.tt .seg.xs{padding:2px;border-radius:7px}
.tt .seg.xs button{height:24px;padding:0 9px;font-size:12px;border-radius:5px}
.tt .seg.off{opacity:.4;pointer-events:none}
.tt .chip{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 8px;border-radius:999px;font-size:12px;font-weight:500;white-space:nowrap;background:var(--mute-soft);color:var(--mute)}
.tt .chip .ic{width:13px;height:13px;stroke-width:2}
.tt .chip .dot{width:6px;height:6px;border-radius:50%;background:currentColor}
.tt .chip.ok{background:var(--ok-soft);color:var(--ok)}
.tt .chip.warn{background:var(--warn-soft);color:var(--warn)}
.tt .chip.bad{background:var(--bad-soft);color:var(--bad)}
.tt .chip.info{background:var(--info-soft);color:var(--info)}
.tt .card{background:var(--surface);border:1px solid var(--line);border-radius:12px}
.tt .twin{display:inline-flex;align-items:center;height:16px;padding:0 5px;margin-left:6px;border-radius:4px;font:600 10px/16px var(--font);letter-spacing:.03em;color:var(--warn);background:var(--warn-soft);vertical-align:1px;cursor:help;white-space:nowrap}
.tt .demo{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 9px;border-radius:999px;font-size:12px;font-weight:600;color:var(--warn);background:var(--warn-soft);white-space:nowrap;cursor:help;flex:none}
.tt .demo .dot{width:6px;height:6px;border-radius:50%;background:currentColor}

/* ───────── верхняя панель ───────── */
.tt .st-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:8px;min-width:0}
.tt .st-tools .ddb{height:32px;gap:6px;padding:0 7px 0 10px}
.tt .st-tools .st-q{height:32px;margin-left:auto}
.tt .ddb{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 10px 0 12px;border-radius:8px;border:1px solid var(--line-strong);background:var(--surface);font-size:13px;max-width:440px;min-width:0}
.tt .ddb:hover{background:var(--hover)}
.tt .ddb .dl{color:var(--text-3)}
.tt .ddb .dv{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.tt .ddb .ic{width:14px;height:14px;transform:rotate(90deg);color:var(--text-3);flex:none}
.tt .ddb .ic.fi{transform:none;width:14px;height:14px;margin-left:-1px}
.tt .ddb.on{border-color:color-mix(in srgb,var(--accent) 40%,var(--line-strong))}
.tt .ddb.on .ic.fi{color:var(--accent)}
.tt .ddb.on .dl{color:var(--text)}
.tt .ddb .bdg{min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--accent);color:var(--accent-ink);font:600 11px/18px var(--font);text-align:center}
.tt .ddb .dv.dz{font-weight:500;color:var(--text-2)}
.tt .ddb .dm{font-size:12px;color:var(--accent)}
.tt .fchip{display:inline-flex;align-items:center;height:28px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:12.5px;min-width:0;max-width:100%}
.tt .fchip .fb{display:inline-flex;align-items:center;gap:4px;height:100%;padding:0 2px 0 11px;min-width:0;color:inherit;border-radius:999px 0 0 999px}
.tt .fchip .fb span{color:color-mix(in srgb,var(--accent) 70%,var(--text-2))}
.tt .fchip .fb b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:190px}
.tt .fchip .fx{width:24px;height:24px;margin-right:2px;display:grid;place-items:center;border-radius:50%;color:inherit;opacity:.7}
.tt .fchip .fx:hover{opacity:1;background:color-mix(in srgb,var(--accent) 16%,transparent)}
.tt .fchip .fx .ic{width:12px;height:12px;stroke-width:2.2}
.tt .st-q{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 10px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);color:var(--text-3)}
.tt .st-q .ic{width:15px;height:15px}
.tt .st-q input{border:0;outline:none;background:none;width:160px;color:var(--text)}
.tt .st-q .qx{display:none;width:18px;height:18px;place-items:center;border-radius:50%;color:var(--text-3)}
.tt .st-q.has .qx{display:grid}
.tt .st-q .qx:hover{color:var(--text);background:var(--hover)}
.tt .st-q .qx .ic{width:11px;height:11px;stroke-width:2.2}
@media (max-width:1240px){
  .tt .st-tools .st-q{flex:none;width:32px;padding:0 8px;cursor:pointer;transition:width .15s}
  .tt .st-tools .st-q input{width:0;padding:0}
  .tt .st-tools .st-q:focus-within,.tt .st-tools .st-q.has{width:220px;cursor:text}
  .tt .st-tools .st-q:focus-within input,.tt .st-tools .st-q.has input{width:100%}
}
.tt .per{display:inline-flex;align-items:stretch;flex:none;height:32px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);min-width:0}
.tt .per-b{display:inline-flex;align-items:center;gap:7px;padding:0 10px;font-size:13px;white-space:nowrap;min-width:0;border-inline:1px solid var(--line)}
.tt .per-b .ic{width:15px;height:15px;color:var(--accent);flex:none}
.tt .per-b .pv{font-weight:600}
.tt .per-b .ps{color:var(--text-3);overflow:hidden;text-overflow:ellipsis}
.tt .per-a{width:28px;display:grid;place-items:center;color:var(--text-3);flex:none}
.tt .per-a:first-child{border-radius:7px 0 0 7px}
.tt .per-a:last-child{border-radius:0 7px 7px 0}
.tt .per-a .ic{width:14px;height:14px}
.tt .per-a:first-child .ic{transform:rotate(180deg)}
.tt .per-b:hover,.tt .per-a:hover:not(:disabled){background:var(--hover);color:var(--text)}
.tt .per-a:disabled{opacity:.35;cursor:default}
.tt .st-bs{display:contents}
@media (max-width:560px){
  .tt .st-tools .per{width:100%}
  .tt .st-tools .per-b{flex:1;justify-content:center}
  .tt .st-tools .ddb{padding:0 10px}.tt .st-tools .ddb>.ic:last-child{display:none}
  .tt .st-tools .st-q:focus-within,.tt .st-tools .st-q.has{flex:1 1 100%;width:auto}
}

/* пометки выгрузки: иконка в панели рядом с поиском, список во всплывашке */
.tt .st-nw{display:contents}
.tt .st-tools .ntb{margin-left:auto}
.tt .st-tools .st-nw:has(.ntb)~.st-q{margin-left:0}
.tt .ntb{width:32px;height:32px;flex:none;display:grid;place-items:center;border-radius:8px;color:var(--warn)}
.tt .ntb:hover{background:var(--warn-soft)}
.tt .ntb .ic{width:18px;height:18px}
.tt .cpop.npop{width:min(480px,calc(100vw - 16px))}
.tt .np-l{margin:0;padding:2px 6px 4px;list-style:none;display:flex;flex-direction:column;gap:8px;font-size:12.5px;line-height:18px;color:var(--text-2)}
.tt .np-l li{padding-left:12px;position:relative}
.tt .np-l li::before{content:"";position:absolute;left:1px;top:7.5px;width:4px;height:4px;border-radius:50%;background:var(--text-3)}
.tt .np-m{margin:4px -6px -6px;padding:8px 12px;border-top:1px solid var(--line);font-size:11.5px;color:var(--text-3)}

/* ───────── поповеры ───────── */
.tt .gpop{position:fixed;z-index:75;width:220px;background:var(--surface);border:1px solid var(--line-strong);border-radius:10px;box-shadow:var(--shadow);padding:6px;overflow-y:auto}
.tt .cpop{width:240px}
.tt .cpop.wide{width:286px}
.tt .gp-r{display:flex;align-items:center;gap:10px;width:100%;padding:7px 8px;border-radius:7px;font-size:13px;min-width:0}
.tt .gp-r>span:not([class]){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.tt .gp-r:hover{background:var(--hover)}
.tt .gp-r .cbx{width:16px;height:16px;border-radius:4px;border:1.5px solid var(--line-strong);display:grid;place-items:center;flex:none}
.tt .gp-r.on .cbx{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.tt .gp-r .cbx .ic{width:11px;height:11px;stroke-width:2.6}
.tt .gp-r .rdo{width:16px;height:16px;border-radius:50%;border:1.5px solid var(--line-strong);flex:none;transition:border-width .12s}
.tt .gp-r.on .rdo{border:5px solid var(--accent)}
.tt .gp-r .cnt{margin-left:auto;font-size:12px;color:var(--text-3);flex:none;padding-left:6px}
.tt .gp-r .mono{flex:none}
.tt .gp-r.dd-a{color:var(--text-2);padding-top:6px;padding-bottom:6px}
.tt .gp-r.dd-a:hover{color:var(--text)}
.tt .gp-r.dd-a .pl{width:16px;height:16px;display:grid;place-items:center;color:var(--text-3)}
.tt .gp-r.dd-a:hover .pl{color:var(--accent)}
.tt .gp-r.dd-a .pl .ic{width:14px;height:14px}
/* фильтр: панель полей, у каждого — выпадающий список с поиском */
.tt .cpop.fpop{width:420px;max-width:calc(100vw - 16px);padding:6px 6px 10px}
.tt .fp-b{display:flex;flex-direction:column;gap:2px;padding-top:4px}
.tt .fp-s{font-size:11px;color:var(--text-3);text-transform:uppercase;letter-spacing:.06em;padding:12px 8px 3px}
.tt .fp-r{display:grid;grid-template-columns:116px minmax(0,1fr);align-items:center;gap:8px;padding:0 4px 0 8px;min-height:36px}
.tt .fp-l{font-size:13px;color:var(--text-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tt .fsel{position:relative;display:flex;align-items:center;min-width:0;height:32px;border:1px solid var(--line-strong);border-radius:7px;background:var(--surface);transition:border-color .12s,box-shadow .12s}
.tt .fsel:hover{border-color:color-mix(in srgb,var(--text-3) 60%,var(--line-strong))}
.tt .fsel.on{border-color:color-mix(in srgb,var(--accent) 45%,var(--line-strong));background:var(--accent-tint)}
.tt .fsel.open{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.tt .fsel-b{flex:1;display:flex;align-items:center;gap:6px;height:100%;min-width:0;padding:0 8px 0 10px;font-size:13px;text-align:left;border-radius:7px}
.tt .fsel-b:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.tt .fsel .fv{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}
.tt .fsel.on .fv{font-weight:500}
.tt .fsel .fv.ph{color:var(--text-3)}
.tt .fsel .fv-n{flex:none;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--accent);color:var(--accent-ink);font:600 11px/18px var(--font);text-align:center}
.tt .fsel .fch{width:13px;height:13px;flex:none;color:var(--text-3);transform:rotate(90deg);transition:transform .15s}
.tt .fsel.open .fch{transform:rotate(-90deg);color:var(--accent)}
.tt .fsel-x{flex:none;width:26px;height:26px;margin-right:3px;display:grid;place-items:center;border-radius:5px;color:var(--text-3)}
.tt .fsel-x:hover{color:var(--text);background:var(--hover)}
.tt .fsel-x .ic{width:12px;height:12px;stroke-width:2.2}
.tt .fsel:has(.fsel-x) .fsel-b{padding-right:2px}
.tt .fdd{z-index:76;display:flex;flex-direction:column;padding:0;overflow:hidden;width:300px}
.tt .fdd[hidden]{display:none}
.tt .fp-q{display:flex;align-items:center;gap:6px;height:32px;padding:0 10px;border:1px solid var(--line);border-radius:7px;color:var(--text-3);flex:none}
.tt .fp-q:focus-within{border-color:var(--accent)}
.tt .fp-q .ic{width:14px;height:14px;flex:none}
.tt .fp-q input{border:0;outline:none;background:none;width:100%;min-width:0;font-size:13px;color:var(--text)}
.tt .fdd-q{margin:6px 6px 0}
.tt .fdd-a{display:flex;align-items:center;gap:12px;padding:6px 10px 6px 12px;border-bottom:1px solid var(--line);font-size:12px;color:var(--text-3);flex:none}
.tt .fdd-a .fdd-c{margin-right:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tt .fdd-a .pp-l{white-space:nowrap}
.tt .fdd-a .pp-l[hidden]{display:none}
.tt .fdd-l{overflow-y:auto;overscroll-behavior:contain;padding:4px;min-height:0}
.tt .fdd .fo{padding:6px 8px}
.tt .fdd .fo .fo-l{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tt .fdd .fo .fo-d{flex:none;font-size:11.5px;color:var(--text-3)}
.tt .fdd .fo .cnt{margin-left:0;min-width:28px;text-align:right}
.tt .fdd .fo .fo-o{flex:none;display:none;font-size:11.5px;color:var(--accent);font-weight:500;padding:1px 6px;border-radius:4px}
.tt .fdd .fo .fo-o:hover{background:var(--accent-soft)}
.tt .fdd .fo:hover .fo-o,.tt .fdd .fo.act .fo-o{display:inline}
.tt .fdd .fo.act{background:var(--hover);box-shadow:inset 2px 0 0 var(--accent)}
.tt .fdd .fo:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.tt .fdd .fo.z .fo-l{color:var(--text-3)}
.tt .fdd .fo.on .fo-l{color:var(--text);font-weight:500}
.tt .fdd-sep{font-size:11px;color:var(--text-3);text-transform:uppercase;letter-spacing:.06em;padding:10px 8px 4px;margin-top:4px;border-top:1px solid var(--line)}
.tt .fdd-sep[hidden],.tt .fdd-e[hidden],.tt .fdd .fo[hidden]{display:none}
.tt .fdd-e{padding:14px 10px;font-size:12.5px;color:var(--text-3);text-align:center}
@media (max-width:560px){
  .tt .fp-r{grid-template-columns:96px minmax(0,1fr);padding-left:6px}
  .tt .fsel{height:36px}
  .tt .fdd .fo{padding:9px 8px}
}
.tt .cp-g{font-size:11px;color:var(--text-3);text-transform:uppercase;letter-spacing:.06em;padding:8px 8px 4px}
.tt .cp-g .pp-l{float:right;text-transform:none;letter-spacing:0;font-size:11.5px}
.tt .cp-g .cp-s{margin-left:6px;text-transform:none;letter-spacing:0;font-size:11px;opacity:.75}
.tt .cp-g .cp-s::before{content:'· '}
.tt .dd-i .ds{margin-left:auto;font-style:normal;font-size:11px;color:var(--text-3);white-space:nowrap}
.tt .dd-i .ds+.dd-x{margin-left:4px}
.tt .pp-h{display:flex;align-items:center;gap:8px;margin:-6px -6px 4px;padding:8px 10px 8px 12px;border-bottom:1px solid var(--line)}
.tt .pp-h:has(+.sw-r){border-bottom:0;padding-bottom:6px}
.tt .pp-h>b{font-size:13px;font-weight:600}
.tt .pp-h>.pp-t{font-size:12px;color:var(--text-3)}
.tt .pp-a{margin-left:auto;display:flex;gap:12px}
.tt .pp-l{font-size:12px;color:var(--accent);font-weight:500}
.tt .pp-l:hover{text-decoration:underline;text-underline-offset:2px}
.tt .pp-l:disabled{color:var(--text-3);text-decoration:none;cursor:default}
.tt .sw-r{display:flex;align-items:center;gap:8px;width:calc(100% + 12px);margin:-4px -6px 4px;padding:6px 12px 8px;border-bottom:1px solid var(--line);font-size:12.5px;color:var(--text-2)}
.tt .sw-r .ic{width:14px;height:14px;color:var(--text-3)}
.tt .sw-r:hover{color:var(--text)}
.tt .psw{margin-left:auto;width:28px;height:16px;border-radius:999px;background:var(--line-strong);position:relative;transition:background .15s;flex:none}
.tt .psw::after{content:'';position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:var(--surface);box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform .15s}
.tt .psw.on{background:var(--accent)}.tt .psw.on::after{transform:translateX(12px)}
.tt .sw-r[aria-checked="true"] .ic{color:var(--accent)}
.tt .dd-empty{margin:2px 2px 4px;padding:10px 12px;border:1px dashed var(--line-strong);border-radius:7px;font-size:12.5px;color:var(--text-3);line-height:1.4}
.tt .dd-empty b{display:block;color:var(--text-2);font-weight:500}
.tt .dd-list{display:flex;flex-direction:column;gap:2px;padding:2px 2px 4px}
.tt .dd-i{display:flex;align-items:center;gap:8px;height:32px;padding:0 6px 0 8px;border-radius:7px;background:var(--surface-2);cursor:grab;font-size:13px}
.tt .dd-i:hover{background:var(--hover)}
.tt .dd-i .grip{color:var(--text-3);letter-spacing:-2px;font-size:12px}
.tt .dd-i .dd-n{font:500 11px var(--mono);color:var(--text-3);width:12px}
.tt .dd-i .at{margin-left:auto}
.tt .dd-x{width:24px;height:24px;display:grid;place-items:center;border-radius:6px;color:var(--text-3);margin-left:auto}
.tt .dd-i .at+.dd-x{margin-left:4px}
.tt .dd-x:hover{color:var(--text);background:var(--surface)}
.tt .dd-x .ic{width:13px;height:13px}
.tt .dragging{opacity:.4}
.tt .dd-i.drop-b{box-shadow:inset 0 2px 0 var(--accent)}.tt .dd-i.drop-a{box-shadow:inset 0 -2px 0 var(--accent)}
.tt .st th.drop-b{box-shadow:inset 2px 0 0 var(--accent)}.tt .st th.drop-a{box-shadow:inset -2px 0 0 var(--accent)}
.tt .gp-r .at,.tt .st .at{font-style:normal;font-size:10px;font-weight:600;letter-spacing:.03em;color:var(--accent);background:var(--accent-soft);padding:0 5px;border-radius:4px;margin-left:auto}
.tt .st th .at{margin-left:5px}
.tt .cp-h{display:block;text-transform:none;letter-spacing:0;font-size:11.5px;color:var(--text-3);margin-top:2px}

/* календарь */
.tt .cpop.calp{width:auto;max-width:calc(100vw - 16px);padding:0;overflow:hidden}
.tt .cal{display:flex}
.tt .cal-pre{display:flex;flex-direction:column;gap:1px;padding:10px 8px;border-right:1px solid var(--line);min-width:140px}
.tt .cal-pre button{text-align:left;height:30px;padding:0 10px;border-radius:7px;font-size:13px;color:var(--text-2);white-space:nowrap}
.tt .cal-pre button:hover{background:var(--hover);color:var(--text)}
.tt .cal-pre button.on{background:var(--accent-soft);color:var(--accent);font-weight:500}
.tt .cal-pre button{display:flex;align-items:center;justify-content:space-between;gap:14px}
.tt .cal-pre button .num{font-size:11.5px;color:var(--text-3);font-weight:400}
.tt .cal-pre button.on .num{color:inherit;opacity:.7}
.tt .cal-u{margin-top:auto;padding:10px 10px 2px;font-size:11.5px;color:var(--text-3);cursor:help}
.tt .cal-ms{display:flex;gap:20px;padding:12px 14px 8px}
.tt .cal-m{width:252px}
.tt .cal-mh{display:flex;align-items:center;justify-content:space-between;height:30px;margin-bottom:6px}
.tt .cal-mh b{font-size:13.5px;font-weight:600}
.tt .cal-sp{width:28px}
.tt .cal-nav{width:28px;height:28px;display:grid;place-items:center;border-radius:7px;color:var(--text-2)}
.tt .cal-nav:hover{background:var(--hover);color:var(--text)}
.tt .cal-nav:disabled{opacity:.3;cursor:default;background:none}
.tt .cal-nav[data-cnav="-1"] .ic{transform:rotate(180deg)}
.tt .cal-nav .ic{width:15px;height:15px}
.tt .cal-wd,.tt .cal-g{display:grid;grid-template-columns:repeat(7,36px)}
.tt .cal-wd span{height:24px;display:grid;place-items:center;font-size:11px;color:var(--text-3)}
.tt .cal-g{row-gap:2px}
.tt .cd{position:relative;display:grid;place-items:center;padding:0;height:34px;font-size:13px;font-variant-numeric:tabular-nums;color:var(--text);isolation:isolate}
.tt .cd::before{content:'';position:absolute;inset:0;z-index:-1}
.tt .cd::after{content:'';position:absolute;inset:1px 2px;border-radius:8px;z-index:-1;transition:background .08s}
.tt .cd:hover:not(:disabled)::after{background:var(--hover);box-shadow:inset 0 0 0 1px var(--line-strong)}
.tt .cd.nd{color:var(--text-3)}
.tt .cd:disabled{color:var(--text-3);opacity:.45;cursor:default}
.tt .cd.td{font-weight:700}
.tt .cd.td:not(.s):not(.e)::after{box-shadow:inset 0 0 0 1px var(--accent)}
.tt .cd.in::before{background:var(--accent-soft)}
.tt .cd.s:not(.e)::before{background:linear-gradient(90deg,transparent 50%,var(--accent-soft) 50%)}
.tt .cd.e:not(.s)::before{background:linear-gradient(90deg,var(--accent-soft) 50%,transparent 50%)}
.tt .cd.pv.in::before{background:color-mix(in srgb,var(--accent-soft) 60%,transparent)}
.tt .cd.s,.tt .cd.e{color:var(--accent-ink);font-weight:600}
.tt .cd.s::after,.tt .cd.e::after,.tt .cd.s:hover::after,.tt .cd.e:hover::after{background:var(--accent);box-shadow:none}
.tt .cal-f{display:flex;align-items:center;gap:6px;padding:10px 12px;border-top:1px solid var(--line)}
.tt .cal-r{margin-right:auto;display:flex;flex-direction:column;line-height:1.3;min-width:0}
.tt .cal-r b{font-size:13px;font-weight:600}
.tt .cal-r span{font-size:11.5px;color:var(--text-3)}
@media (max-width:640px){
  .tt .cal{flex-direction:column}
  .tt .cal-pre{flex-direction:row;overflow-x:auto;scrollbar-width:none;border-right:0;border-bottom:1px solid var(--line);padding:8px;min-width:0}
  .tt .cal-pre::-webkit-scrollbar{display:none}
  .tt .cal-pre button{flex:none;height:28px;border-radius:999px;border:1px solid var(--line);font-size:12.5px}
  .tt .cal-pre button.on{border-color:transparent}
  .tt .cal-pre button .num,.tt .cal-u{display:none}
  .tt .cal-ms{justify-content:center;padding:10px 8px 6px}
  .tt .cal-m{width:auto}
  .tt .cal-wd,.tt .cal-g{grid-template-columns:repeat(7,minmax(34px,40px))}
}

/* ───────── таблица ───────── */
.tt .st-card{overflow:auto;overscroll-behavior:contain;max-height:max(280px,calc(100vh - var(--st-top,140px) - 12px));max-height:max(280px,calc(100dvh - var(--st-top,140px) - 12px))}
.tt .st{font-size:13px;line-height:20px}
.tt .st th,.tt .st td{padding:6px 8px;white-space:nowrap;border-bottom:1px solid var(--line)}
.tt .st th:first-child,.tt .st td:first-child{padding-left:12px}.tt .st th:last-child,.tt .st td:last-child{padding-right:14px}
.tt .st th.r,.tt .st td.r{width:1%}
.tt .st thead th{position:sticky;background:var(--surface);z-index:2;font-weight:500;color:var(--text-3);font-size:12px;text-align:left}
.tt .st thead tr.gh th{top:0;height:20px;padding-top:5px;padding-bottom:0;font-size:10.5px;line-height:15px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;border-bottom:0}
.tt .st thead tr:nth-child(2) th{top:20px;padding-top:4px;padding-bottom:5px;cursor:pointer;user-select:none}
.tt .st thead tr:nth-child(2) th:hover{color:var(--text)}
.tt .st tfoot tr.tot td{position:sticky;bottom:0;z-index:2;background:var(--surface-2);font-weight:600;border-bottom:0;border-top:1px solid var(--line-strong)}
.tt .st .r{text-align:right}
.tt .st .gh .g-buy{color:var(--accent)} .tt .st .gh .g-sell{color:var(--ok)} .tt .st .gh .g-tot{color:var(--text-2)} .tt .st .gh .g-in{color:var(--warn)}
/* проверка выдачи: шкала долей (низкая — тёплая), k/n рядом с Google */
.tt .st .gh .g-lp{color:var(--lp)}
.tt .q0{color:var(--bad)} .tt .q1{color:color-mix(in srgb,var(--warn) 85%,var(--bad))} .tt .q2{color:inherit}
.tt .pq-k{margin-left:5px;font-size:11px;color:var(--text-3)}
.tt .pq-m{font-weight:600}
.tt .st .gh th[class^="g-"]{box-shadow:inset 1px 0 0 var(--line)}
.tt .st .so{color:var(--accent);margin-left:3px}
.tt .st tbody tr:hover td{background:var(--hover)}
.tt .st tbody tr[data-sexp]{cursor:pointer}
.tt .st td.lc{position:relative}
.tt .st .lc{padding-right:34px}
.tt .st .opn{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:24px;height:24px;display:grid;place-items:center;border-radius:6px;color:var(--text-3);opacity:0;transition:opacity .12s}
.tt .st .opn .ic{width:15px;height:15px}
.tt .st .opn:hover{background:var(--surface);color:var(--accent)}
.tt .st tbody tr:hover .opn,.tt .st .opn:focus-visible,.tt .st tr.sel .opn{opacity:1}
@media (hover:none){.tt .st .opn{opacity:1}}
.tt .st tbody tr.sel td{background:var(--accent-tint)}
.tt .st td.dc{max-width:220px;overflow:hidden;text-overflow:ellipsis}
.tt .st td.dc:first-child{max-width:280px}
.tt .st td.dc.d-hook,.tt .st td.dc.d-hook_text,.tt .st td.dc.d-post{max-width:260px}
.tt .st .lcx{display:flex;align-items:center;gap:4px;min-width:0}
.tt .st .lv{overflow:hidden;text-overflow:ellipsis;min-width:0}
.tt .st .cv0{width:20px;flex:none}
.tt .chev-b{width:20px;height:20px;flex:none;display:grid;place-items:center;border-radius:6px;color:var(--text-3)}
.tt .chev-b:hover{background:var(--surface-2);color:var(--text)}
.tt .chev-b .ic{width:14px;height:14px;transition:transform .15s}
.tt .chev-b.on .ic{transform:rotate(90deg)}
.tt .st tr.camp td{background:var(--surface-2);font-size:12.5px;padding-top:4px;padding-bottom:4px}
.tt .st .cn-c .chip{height:18px;font-size:11px;padding:0 7px;gap:5px;vertical-align:1px}
.tt .st .cn-c .chip .dot{width:5px;height:5px}
.tt .st td.dc .chip{height:18px;font-size:11px;padding:0 7px;gap:5px}
.tt .st td.dc .chip .dot{width:5px;height:5px}
.tt .st td.cn-c .cn{margin-right:8px}
.tt .st .cn{color:var(--text);font-size:12.5px}
.tt .st .cn-ch{color:var(--mute);font-size:11.5px;margin-right:8px;white-space:nowrap}
.tt .st td.dc.mono,.tt .st .gl.mono{font-size:12px}
.tt .st td.dc.auto{color:var(--text-2)}
.tt .st .cc{font-family:var(--mono);font-size:12px;color:var(--text)}
.tt .flag{display:inline-block;width:18px;height:12px;border-radius:2px;box-shadow:0 0 0 1px var(--line);vertical-align:-1px;margin-right:6px;flex:none}
.tt .st .geo .cc.dim{color:var(--text-3);font-size:11px;margin-left:6px}
.tt .st .cn-nm{color:var(--text-3);font-size:11.5px;margin-right:8px;display:inline-block;max-width:320px;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}
/* закрепление слева */
.tt .st .sl{background:var(--surface)}
.tt .st.pin .sl{position:sticky;left:var(--l,0px);z-index:1}
.tt .st.pin thead th.sl,.tt .st.pin tfoot td.sl{z-index:3}
.tt .st.pin td.sl.sl-x{z-index:auto}.tt .st.pin thead th.sl.sl-x,.tt .st.pin tfoot td.sl.sl-x{z-index:2}
.tt .st .sl-e::after{content:'';position:absolute;top:0;bottom:-1px;right:-12px;width:12px;background:linear-gradient(90deg,var(--edge),transparent);pointer-events:none;opacity:0;transition:opacity .15s}
.tt .st-card.sx .st.pin .sl-e::after{opacity:1}
.tt .st tfoot td.sl{background:var(--surface-2)}
.tt .st .pin-b{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:22px;height:22px;display:grid;place-items:center;border-radius:6px;color:var(--text-3);opacity:0;transition:opacity .12s}
.tt .st .pin-b .ic{width:14px;height:14px}
.tt .st .pin-b:hover{background:var(--hover);color:var(--text)}
.tt .st .pin-b.on{color:var(--accent)}
.tt .st th:hover .pin-b,.tt .st .pin-b:focus-visible{opacity:1}
@media (hover:none){.tt .st .pin-b{opacity:.7}}
.tt .st th[draggable="true"]{cursor:grab}
.tt .st.tree tr.tl{cursor:pointer}
.tt .st td.grp-c{max-width:420px;overflow:hidden;text-overflow:ellipsis}
.tt .st .chev-i{display:inline-grid;place-items:center;width:18px;height:18px;flex:none;color:var(--text-3)}
.tt .st .chev-i .ic{width:13px;height:13px;transition:transform .15s}
.tt .st .chev-i.on .ic{transform:rotate(90deg)}
.tt .st .gl{font-weight:500}
.tt .st tr.tl-1 .gl,.tt .st tr.tl-2 .gl,.tt .st tr.tl-3 .gl{font-weight:400}
.tt .st tr.tl-1 td{background:color-mix(in srgb,var(--surface-2) 40%,var(--surface))}
.tt .st tr.tl-2 td,.tt .st tr.tl-3 td{background:color-mix(in srgb,var(--surface-2) 75%,var(--surface))}
.tt .st tr.more td{background:var(--surface);padding-top:8px;padding-bottom:8px}
.tt .st tr.camp.more td{background:var(--surface-2)}
.tt .more-b{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 12px;border-radius:7px;border:1px solid var(--line-strong);font-size:12.5px;font-weight:500;color:var(--text-2);background:var(--surface)}
.tt .more-b:hover{color:var(--text);border-color:var(--text-3)}
.tt .more-b+.more-b{margin-left:6px}
.tt .st .empty{padding:32px;text-align:center;color:var(--text-3)}
/* разброс */
.tt .spr{display:inline-flex;align-items:center;gap:8px;vertical-align:middle}
.tt .spr svg{display:block;overflow:visible}
.tt .spr .sb{fill:var(--surface-2);stroke:var(--line-strong);stroke-width:1}
.tt .spr .s0{stroke:var(--text-3);stroke-width:1;stroke-dasharray:2 2}
.tt .spr .dp{fill:var(--ok);fill-opacity:.8}.tt .spr .dn{fill:var(--bad);fill-opacity:.8}.tt .spr .dz{fill:var(--text-3);fill-opacity:.55}
.tt .spr-t{font-size:11.5px;min-width:78px;text-align:left}
/* плотность */
.tt.dense .st{font-size:12.5px;line-height:18px}
.tt.dense .st th,.tt.dense .st td{padding-top:3px;padding-bottom:3px}
.tt.dense .st thead tr:nth-child(2) th{padding-top:2px;padding-bottom:3px}
.tt.dense .st tr.camp td{padding-top:2px;padding-bottom:2px;font-size:12px}
.tt.dense .st .opn{width:20px;height:20px}
.tt.dense .chev-b{width:18px;height:18px}
@media (max-width:560px){
  .tt .st .cn-c .chip{font-size:0;gap:0;padding:0 6px}
  .tt .st.pin td.lc,.tt .st.pin th.lc{max-width:52vw;overflow:hidden;text-overflow:ellipsis}
  .tt .st.pin td.cn-c{max-width:58vw}
  .tt .st .cn-nm,.tt .st .ch-old{display:none}
}
.tt .loading{padding:48px;text-align:center;color:var(--text-3)}
.tt .loading.err{color:var(--bad)}

/* ───────── панель справа ───────── */
.tt .scrim{position:fixed;inset:0;background:var(--scrim);opacity:0;pointer-events:none;transition:opacity .18s;z-index:30}
.tt .scrim.on{opacity:1;pointer-events:auto}
.tt .drawer{position:fixed;top:0;right:0;height:100%;width:min(500px,100%);background:var(--surface);border-left:1px solid var(--line);box-shadow:var(--shadow);transform:translateX(104%);transition:transform .22s cubic-bezier(.2,.7,.2,1);display:flex;flex-direction:column;z-index:40;visibility:hidden}
.tt .drawer.open{transform:none;visibility:visible}
.tt .dr-h{display:flex;align-items:flex-start;gap:12px;padding:18px 22px 14px;border-bottom:1px solid var(--line)}
.tt .dr-h>div{min-width:0}
.tt .dr-h .eyebrow{font-size:12px;color:var(--text-3);display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tt .dr-h h2{font-size:18px;font-weight:600;margin:4px 0 0;letter-spacing:-.01em;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tt .dr-h .nm{font-family:var(--mono);font-size:11.5px;color:var(--text-3);margin-top:4px;word-break:break-all}
.tt .dr-h .icon-btn{margin-left:auto;margin-top:-4px;flex:none}
.tt .dr-b{flex:1;overflow-y:auto;padding:18px 22px 28px}
.tt .sec{margin-bottom:22px}
.tt .sec h3{font-size:11px;font-weight:500;color:var(--text-3);text-transform:uppercase;letter-spacing:.07em;margin:0 0 8px;display:flex;align-items:center;gap:8px}
.tt .sec h3 .dim{text-transform:none;letter-spacing:0;font-weight:400;margin-left:auto}
.tt .banner{display:flex;gap:10px;padding:10px 12px;border-radius:9px;margin-bottom:18px;background:var(--warn-soft);color:var(--warn);font-size:13px}
.tt .banner .ic{width:16px;height:16px;margin-top:1px}
.tt .banner b{display:block;font-weight:600}
.tt .banner span{color:var(--text-2)}
.tt .kpi{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:18px}
.tt .kpi div{display:flex;flex-direction:column;gap:1px;padding:8px 10px;border-radius:9px;background:var(--surface-2);min-width:0}
.tt .kpi span{font-size:11.5px;color:var(--text-3)}
.tt .kpi b{font-size:16px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tt .kpi.kpi-lp{margin-top:-10px}
.tt .kpi.kpi-lp div{background:var(--lp-soft)}
.tt .kpi.kpi-lp b span{font-size:inherit;color:inherit;cursor:help}
.tt .kpi.kpi-lp b .q0{color:var(--bad)} .tt .kpi.kpi-lp b .q1{color:color-mix(in srgb,var(--warn) 85%,var(--bad))} .tt .kpi.kpi-lp b .dim{color:var(--text-3)}
.tt .kpi.kpi-lp b .pq-k{font-size:11px;color:var(--text-3)}
.tt .kv{display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px 14px;margin:0}
.tt .kv dt{font-size:12px;color:var(--text-3);padding-top:1px}
.tt .kv dd{margin:0;min-width:0;overflow-wrap:anywhere}
.tt .kv a{color:var(--accent);text-decoration:none}
.tt .kv a:hover{text-decoration:underline;text-underline-offset:2px}
.tt .kv .sub{display:block;font-size:12px;color:var(--text-3);margin-top:2px}
.tt .kv .lnk{color:var(--accent);font-weight:500}
.tt .hook{font-size:15px;line-height:1.4;font-weight:500;margin:0;padding-left:12px;border-left:3px solid var(--accent)}
.tt .vis{display:block;width:120px;aspect-ratio:4/5;object-fit:cover;border-radius:8px;border:1px solid var(--line);margin-top:6px;background:var(--surface-2)}
.tt .spk{width:100%;height:auto;display:block}
.tt .spk .ax{stroke:var(--line-strong);stroke-width:1}
.tt .spk .bp{fill:var(--ok)}.tt .spk .bn{fill:var(--bad)}
.tt .spk .ls{fill:none;stroke:var(--text-2);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.tt .spk .hv{fill:transparent}
.tt .spk .hv:hover{fill:var(--hover);fill-opacity:.6}
.tt .spk text{font:10.5px var(--font);fill:var(--text-3)}
.tt .spk-l{display:flex;gap:14px;font-size:12px;color:var(--text-2);margin:2px 0 6px}
.tt .spk-l i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:5px;vertical-align:-1px}
.tt .spk-l i.l{height:2px;border-radius:1px;background:var(--text-2);vertical-align:3px}
.tt .spk-l i.p{background:linear-gradient(90deg,var(--ok) 50%,var(--bad) 50%)}
.tt .spk-tip{font-size:12px;color:var(--text-2);min-height:18px;font-variant-numeric:tabular-nums}
.tt .dt{width:100%;font-size:12.5px}
.tt .dt th{font-size:11px;font-weight:500;color:var(--text-3);text-align:right;padding:6px 6px;border-bottom:1px solid var(--line);white-space:nowrap;background:var(--surface)}
.tt .dt th:first-child,.tt .dt td:first-child{text-align:left;padding-left:0}
.tt .dt td{padding:5px 6px;border-bottom:1px solid var(--line);text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.tt .dt td:last-child,.tt .dt th:last-child{padding-right:0}
.tt .dt tr.z td{color:var(--text-3)}
.tt .dt tfoot td{font-weight:600;border-bottom:0}
.tt .dt .chip{height:16px;font-size:10.5px;padding:0 6px}
@media (min-width:1100px){
  .tt .scrim{display:none}
  body.dr-open .app>main,.tt.dr-open:not(body){padding-right:516px}
}
@media (max-width:820px){.tt .dr-h,.tt .dr-b{padding-left:16px;padding-right:16px}.tt .kpi{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (prefers-reduced-motion:reduce){
  .tt *,.tt *::before,.tt *::after{transition:none!important;animation:none!important}
}
.tt .tt-alert{display:flex;gap:12px;align-items:flex-start;padding:16px 18px;color:var(--warn);background:var(--warn-soft);border-color:transparent;max-width:720px}
.tt .tt-alert .ic{width:18px;height:18px;margin-top:1px}
.tt .tt-alert b{display:block;font-weight:600;color:var(--text)}
.tt .tt-alert span{display:block;font-size:13px;color:var(--text-2);margin-top:2px;overflow-wrap:anywhere}
.tt .hook-t{margin:10px 0 0;font-size:13px;line-height:1.5;color:var(--text-2)}
.tt .gp-r:disabled{cursor:default;opacity:.55}
.tt .gp-r:disabled:hover{background:none;color:var(--text-2)}
.tt .gp-r .at.nd{color:var(--text-3);background:var(--surface-2)}
@media (max-width:560px){.tt .st td.dc,.tt .st td.dc:first-child{max-width:40vw}.tt .st td.grp-c{max-width:58vw}}
.tt .dr-h .st-at{font-size:12px;font-weight:400;color:var(--text-3);margin-left:2px;margin-right:-4px}
.tt .st-tools .demo{margin-left:auto}
.tt .st-tools .demo+.st-q{margin-left:0}
.tt .alltime{margin:-8px 0 18px;font-size:12.5px;color:var(--text-2)}
.tt .dr-b{overflow-x:hidden}
.tt .dt-w{overflow-x:auto;margin:0 -2px;padding:0 2px}
.tt .dt td.mono{font-size:11px}

/* ───────── столбики по дням (как в мониторе ironfli-bridge) ───────── */
.tt .st .gh .g-dd{color:var(--text-2)}
.tt .st th.dd,.tt .st td.dd{width:1%}
.tt .st thead tr:nth-child(2) th.dd{cursor:default}
.tt .dspk{display:block;overflow:hidden;cursor:crosshair}
.tt .dspk .p{fill:var(--ok)}.tt .dspk .n{fill:var(--bad)}.tt .dspk .m{fill:var(--text-3);fill-opacity:.6}
.tt .dspk .inc{opacity:.4}
.tt .dspk .o{fill:var(--line-strong)}
.tt .dspk .z{stroke:var(--line-strong);stroke-width:1}
.tt .dspk .ref{stroke:var(--text);stroke-width:1;stroke-dasharray:2 2;opacity:.5}
.tt .dspk .hl{fill:var(--text);opacity:.1;visibility:hidden}.tt .dspk:hover .hl{visibility:visible}
.tt .dtip{position:fixed;z-index:60;pointer-events:none;max-width:340px;padding:7px 10px;border-radius:8px;background:var(--surface);border:1px solid var(--line-strong);box-shadow:var(--shadow);color:var(--text);font-size:12px;line-height:17px;font-variant-numeric:tabular-nums;white-space:nowrap}
.tt .dtip[hidden]{display:none}
.tt .dtip .dt-h{font-weight:600;margin-bottom:2px}
.tt .dtip .dt-w{color:var(--warn);margin-top:2px}

/* ───────── расчёт, полуночный хвост, покрытие ───────── */
/* «По каналам / Как в ironfli» — компактный сегмент в панели, разбор — на ⓘ */
.tt .cm{display:inline-flex;align-items:center;gap:2px;flex:none}
.tt .cm .seg.xs button{height:26px}
.tt .inf{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:6px;color:var(--text-3);cursor:help;flex:none}
.tt .inf:hover{color:var(--text);background:var(--hover)}
.tt .inf .ic{width:15px;height:15px}
/* бейдж на кнопке периода: дни без переноса хвоста / хвост выключен */
.tt .per-b .pwarn{display:inline-flex;align-items:center;height:18px;padding:0 6px;border-radius:999px;font-size:11px;font-weight:600;color:var(--warn);background:var(--warn-soft);cursor:help;flex:none}
.tt .per-b .pwarn.raw{color:var(--text-2);background:var(--surface-2)}
/* тумблер хвоста во всплывашке периода */
.tt .cal-tl{border-top:1px solid var(--line)}
.tt .cal-tl .sw-r{width:100%;margin:0;padding:9px 12px;border-bottom:0;font-size:13px;color:var(--text)}
.tt .cal-tl .sw-r .inf{width:20px;height:20px}
.tt .cal-th{width:0;min-width:100%;box-sizing:border-box;margin:0;padding:0 12px 10px;font-size:12px;line-height:17px;color:var(--text-2)}
.tt .np-p{margin:0;padding:2px 6px 4px;font-size:12.5px;line-height:18px;color:var(--text-2)}
/* «нет данных» по meta.coverage: вне покрытия — приглушённо; часть фактов вне — пунктир */
.tt .nd{color:var(--text-3);font-size:11.5px;font-weight:400;cursor:help;white-space:nowrap}
.tt .st td.ndp{cursor:help}
.tt .kpi b .nd{font-size:13px}
/* ≈ — хвост дня оценкой; сегодняшний день не закрыт — приглушён */
.tt .est{color:var(--warn);font-weight:600;cursor:help}
.tt .dopen{display:inline-flex;align-items:center;height:16px;padding:0 5px;margin-left:4px;border:1px dashed var(--line-strong);border-radius:4px;font-size:10.5px;font-weight:500;color:var(--text-3);white-space:nowrap;vertical-align:1px}
.tt .st tr.dop>td:not(.sl),.tt .dt tr.dop>td{opacity:.55}
.tt .dtip .dt-nd{white-space:normal}
@media (max-width:560px){.tt .per-b .pwarn{font-size:10.5px;padding:0 5px}}
/* с сегментом расчёта панель длиннее: поиск сворачивается в иконку раньше, чтобы панель осталась в одну строку */
@media (max-width:1560px){
  .tt .st-tools:has(.cm) .st-q{flex:none;width:32px;padding:0 8px;cursor:pointer;transition:width .15s}
  .tt .st-tools:has(.cm) .st-q input{width:0;padding:0}
  .tt .st-tools:has(.cm) .st-q:focus-within,.tt .st-tools:has(.cm) .st-q.has{width:220px;cursor:text}
  .tt .st-tools:has(.cm) .st-q:focus-within input,.tt .st-tools:has(.cm) .st-q.has input{width:100%}
}
@media (max-width:560px){
  .tt .st-tools:has(.cm) .st-q:focus-within,.tt .st-tools:has(.cm) .st-q.has{flex:1 1 100%;width:auto}
}
.tt .twin.tw-n{margin-left:0;margin-right:2px}
.tt .kpi b .nd{color:var(--text-3)}
