/* Экран «Токены» r5 (19.10, префикс tk-): Баланс · Расход · Логи — вкладки-плашка вверху, как в «Компаниях».
   «Баланс» — тёмное ядро (оба оформления): кольцо дней работы с делениями, баланс, что дал Продажник, луч времени с
   продолжением от выбранного пополнения, стеклянные пакеты, одна главная кнопка «Оплатить» (бледная, светлая на тёмном).
   Свет — только лиловый и мятный, янтарь — когда баланса меньше чем на две недели; красного нет (язык сигналов r4).
   Движение — мягкое и выключается при «уменьшить движение» (prefers-reduced-motion). Раскладка — по ширине колонки
   (container tk), а не окна.
   r8 (22.10): ядро «Баланса» — образец общего набора css/core.css (.core). Им же теперь сделаны низ «Баланса»
   (автопополнение и история — .core.is-panel, переключатель мягкий), «Логи» (ядро журнала .core.is-hero и дни — панелями)
   и окно вызова; панели «Расхода» — .tk-core + .core (переключатель, выбор, сегменты и подсказки — из набора). */

.tk { container-type: inline-size; container-name: tk; max-width: 1240px; }
.tk-top { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; margin-bottom: 16px; }
.tk-top h1 { font-size: 24px; line-height: 1.2; font-weight: 640; letter-spacing: -.018em; color: var(--ink); }
.tk-tabs { flex: 0 0 auto; }
.tk-top .tk-demo { margin-left: auto; }
.tk-demo { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--l2); color: var(--mut); font-size: 10.5px; font-weight: 600; letter-spacing: .01em; line-height: 1; flex: 0 0 auto; }

/* ══ Ядро «Баланса» ═══════════════════════════════════════════════════════════════════ */
.tk-core {
  --k-ink: #f6f3ff; --k-mut: rgba(var(--k-mu), .78); --k-mut2: rgba(var(--k-mu), .58); --k-line: rgba(var(--k-on), .11);
  --k-glass: rgba(var(--k-on), .045); --k-glass2: rgba(var(--k-on), .085); --k-lilac: #c4b5fd; --k-mint: #5eead4; --k-mint-ink: #8af0d9;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(260px, 340px);
  grid-template-areas: "ring stat gain" "beam beam beam" "store store store";
  align-items: center; column-gap: 30px;
  padding: 26px 28px 24px; border-radius: 22px; color: var(--k-ink);
  background:
    radial-gradient(38% 55% at var(--mx, 16%) var(--my, 0%), rgba(139, 92, 246, .26), transparent 70%),
    radial-gradient(60% 90% at 0% 0%, rgba(124, 77, 255, .36), transparent 60%),
    radial-gradient(55% 80% at 100% 0%, rgba(94, 234, 212, .09), transparent 62%),
    radial-gradient(70% 90% at 80% 112%, rgba(139, 92, 246, .24), transparent 60%),
    linear-gradient(165deg, #1e1244 0%, #160d35 48%, #0f0a26 100%);
  border: 1px solid rgba(167, 139, 250, .30);
  box-shadow: 0 28px 70px -38px rgba(76, 29, 149, .7), inset 0 1px 0 rgba(var(--k-on), .07);
}
/* r32: без сетки-«чертежа» (Кирилл: «клеточку убираем») */
.tk-core::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: radial-gradient(85% 75% at 20% 16%, #000 0%, transparent 72%); mask-image: radial-gradient(85% 75% at 20% 16%, #000 0%, transparent 72%); }
/* медленно плывущие пятна света */
.tk-core-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; border-radius: inherit; }
.tk-core-fx i { position: absolute; border-radius: 50%; filter: blur(64px); }
.tk-core-fx i:nth-child(1) { width: 360px; height: 340px; left: -90px; top: -170px; background: #7c3aed; opacity: .42; animation: tk-drift1 19s ease-in-out infinite alternate; }
.tk-core-fx i:nth-child(2) { width: 280px; height: 260px; right: 10%; top: -150px; background: #2dd4bf; opacity: .13; animation: tk-drift2 23s ease-in-out infinite alternate; }
.tk-core-fx i:nth-child(3) { width: 460px; height: 240px; right: -140px; bottom: -150px; background: #6d28d9; opacity: .32; animation: tk-drift1 27s ease-in-out infinite alternate-reverse; }
@keyframes tk-drift1 { to { transform: translate(70px, 44px) scale(1.08); } }
@keyframes tk-drift2 { to { transform: translate(-60px, 36px) scale(.9); } }
.tk-core.is-low { border-color: rgba(251, 191, 36, .34); }
.tk-core.is-low .tk-core-fx i:nth-child(2) { background: #f59e0b; opacity: .16; }

.tk-kick { font-size: 11px; line-height: 14px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--k-mut2); }
.tk-core .link { color: var(--k-lilac); }
.tk-core .link:hover { color: var(--k-hi); }

/* ── Кольцо дней работы ── */
.tk-ring { grid-area: ring; position: relative; width: 168px; height: 168px; }
.tk-ring-s { display: block; width: 100%; height: 100%; overflow: visible; }
.tk-ticks line { stroke: rgba(var(--k-on), .13); stroke-width: 1.5; stroke-linecap: round; }
.tk-ticks line.on { stroke: rgba(var(--k-li), .82); }
.tk-core.is-low .tk-ticks line.on { stroke: rgba(253, 224, 138, .85); }
.tk-ring-tr { fill: none; stroke: rgba(var(--k-on), .07); }
.tk-ring-arc, .tk-ring-gl { fill: none; stroke-linecap: round; stroke-dasharray: var(--dash) var(--len); }
.tk-ring-gl { opacity: .55; filter: blur(7px); }
.tk-ring-kb { fill: #fff; filter: drop-shadow(0 0 6px rgba(var(--k-li), .95)); }
.tk-core.is-low .tk-ring-kb { filter: drop-shadow(0 0 6px rgba(251, 191, 36, .95)); }
.tk-ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.tk-ring-c b { font-size: 46px; line-height: 1; font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--k-hi); text-shadow: 0 0 26px rgba(var(--k-li), .6); }
.tk-ring-c em { font-style: normal; font-size: 10px; line-height: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--k-mut2); }
.tk-ring-c b + em { margin-top: 6px; }
/* вступление — дуга «набегает», деления загораются; после оплаты — дуга растёт от прежнего запаса, по рамке вспышка */
.tk-core.is-intro .tk-ring-arc, .tk-core.is-intro .tk-ring-gl { animation: tk-arc 1.3s cubic-bezier(.2, .8, .2, 1) both; }
.tk-core.is-intro .tk-ring-kb { animation: tk-fade .5s 1.05s both; }
.tk-core.is-intro .tk-ticks line.on { animation: tk-fade .9s .25s both; }
.tk-core.is-charge .tk-ring-arc, .tk-core.is-charge .tk-ring-gl { animation: tk-arc2 1.4s cubic-bezier(.2, .8, .2, 1) both; }
.tk-core.is-charge::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(var(--k-li), .8), inset 0 0 70px rgba(139, 92, 246, .55); animation: tk-flash 2.2s ease-out both; }
@keyframes tk-arc { from { stroke-dasharray: 0 var(--len); } }
@keyframes tk-arc2 { from { stroke-dasharray: var(--from) var(--len); } }
@keyframes tk-fade { from { opacity: 0; } }
@keyframes tk-flash { 0% { opacity: 0; } 14% { opacity: 1; } 100% { opacity: 0; } }

/* ── Баланс и темп ── */
.tk-stat { grid-area: stat; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.tk-bal { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.tk-bal b { font-size: 58px; line-height: 1; font-weight: 650; letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap;
  color: var(--k-hi); background: linear-gradient(180deg, #ffffff 35%, #d8cbff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tk-bal small { font-size: 26px; font-weight: 600; color: var(--k-mut); }
.tk-pace { font-size: 13.5px; line-height: 19px; color: var(--k-mut); }
.tk-autol { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; max-width: 100%; margin-top: 8px; padding: 6px 10px 6px 10px; border-radius: 11px; background: var(--k-glass); border: 1px solid var(--k-line);
  font: inherit; font-size: 12.5px; line-height: 17px; color: var(--k-mut); text-align: left; }
button.tk-autol { flex-wrap: nowrap; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
button.tk-autol:hover { border-color: rgba(var(--k-li), .45); background: var(--k-glass2); color: var(--k-ink); }
button.tk-autol:focus-visible { outline: 2px solid var(--k-lilac); outline-offset: 2px; }
button.tk-autol > span { min-width: 0; }
.tk-autol > svg { flex: 0 0 auto; color: var(--k-mut2); }
.tk-autol.is-on > svg:first-child { color: var(--k-mint); }
.tk-autol .link { padding: 0 2px; font-size: 12.5px; }

/* ── Что дал Продажник ── */
.tk-gain { grid-area: gain; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; padding: 16px 18px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(var(--k-on), .07), rgba(var(--k-on), .025)); border: 1px solid var(--k-line); }
.tk-gain ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 9px 12px; }
.tk-gain li { display: contents; }
.tk-gain li b { justify-self: end; font-size: 18px; line-height: 1.2; font-weight: 650; letter-spacing: -.02em; color: var(--k-hi); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tk-gain li span { min-width: 0; font-size: 12.5px; line-height: 17px; color: var(--k-mut); }
.tk-gain li.is-money b { color: var(--k-mint-ink); text-shadow: 0 0 18px rgba(94, 234, 212, .4); }
.tk-gain .link { padding: 0 1px; font-size: 12.5px; }

/* ── Луч времени ── */
.tk-beam { grid-area: beam; position: relative; margin-top: 18px; padding-top: 48px; min-width: 0; }
.tk-beam-bar { position: relative; height: 8px; border-radius: 999px; background: rgba(var(--k-on), .07); box-shadow: inset 0 0 0 1px rgba(var(--k-on), .05); }
.tk-bm-now { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; overflow: hidden;
  background: linear-gradient(90deg, #6d28d9, #a78bfa 72%, #ddd6fe); box-shadow: 0 0 16px rgba(167, 139, 250, .6); transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.tk-bm-now::after { content: ''; position: absolute; top: 0; bottom: 0; left: -80px; width: 70px; background: linear-gradient(90deg, transparent, rgba(var(--k-on), .85), transparent); animation: tk-stream 3.8s cubic-bezier(.45, 0, .2, 1) infinite; }
@keyframes tk-stream { 0% { left: -80px; } 70%, 100% { left: 100%; } }
.tk-core.is-low .tk-bm-now { background: linear-gradient(90deg, #b45309, #f59e0b 70%, #fde68a); box-shadow: 0 0 16px rgba(245, 158, 11, .55); }
.tk-bm-add { position: absolute; top: 1px; bottom: 1px; left: 0; width: 0; border-radius: 0 999px 999px 0;
  background: repeating-linear-gradient(90deg, rgba(94, 234, 212, .9) 0 6px, rgba(94, 234, 212, .28) 6px 9px);
  box-shadow: 0 0 14px rgba(94, 234, 212, .35); transition: left .7s cubic-bezier(.2, .8, .2, 1), width .7s cubic-bezier(.2, .8, .2, 1); }
.tk-bm-auto { position: absolute; top: 50%; z-index: 2; width: 10px; height: 10px; margin: -5px 0 0 -5px; transform: rotate(45deg); border-radius: 2px; background: #140c30; border: 2px solid var(--k-mint); cursor: help; transition: left .7s cubic-bezier(.2, .8, .2, 1); }
.tk-pin { position: absolute; top: 0; bottom: 0; width: 0; z-index: 3; transition: left .7s cubic-bezier(.2, .8, .2, 1); }
.tk-pin-d { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(167, 139, 250, .28), 0 0 16px rgba(var(--k-li), .9); }
.tk-pin.is-new .tk-pin-d { box-shadow: 0 0 0 4px rgba(94, 234, 212, .26), 0 0 16px rgba(94, 234, 212, .9); }
.tk-pin-l { position: absolute; bottom: calc(100% + 13px); left: -7px; display: flex; flex-direction: column; gap: 1px; white-space: nowrap; }
.tk-pin.is-r .tk-pin-l { left: auto; right: -7px; align-items: flex-end; text-align: right; }
.tk-pin-l b { font-size: 13.5px; line-height: 17px; font-weight: 650; color: var(--k-hi); }
.tk-pin-l em { font-style: normal; font-size: 11.5px; line-height: 15px; color: var(--k-mut2); }
.tk-pin.is-new .tk-pin-l b { color: var(--k-mint-ink); }
.tk-pin.is-mute .tk-pin-l { display: none; }
.tk-pin[hidden], .tk-bm-add[hidden], .tk-bm-auto[hidden] { display: none; }
.tk-ticks-x { position: relative; height: 16px; margin-top: 13px; }
.tk-tk { position: absolute; top: 0; transform: translateX(-50%); font-size: 11px; line-height: 16px; color: var(--k-mut2); white-space: nowrap; }
.tk-tk::before { content: ''; position: absolute; left: 50%; top: -9px; width: 1px; height: 5px; background: rgba(var(--k-on), .22); }
.tk-tk.is-0 { transform: none; color: var(--k-mut); }
.tk-tk.is-0::before { left: 0; }
.tk-tk.is-y { color: var(--k-lilac); font-weight: 650; }

/* ── Магазин: пакеты, своя сумма, итог и «Оплатить» ── */
.tk-store { grid-area: store; display: flex; flex-direction: column; gap: 14px; min-width: 0; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--k-line); }
.tk-store-h { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.tk-store-n { font-size: 12.5px; color: var(--k-mut2); }
.tk-packs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding-top: 6px; }
.tk-pk { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; padding: 16px 16px 14px; border-radius: 16px; text-align: left; cursor: pointer;
  font: inherit; color: var(--k-ink); background: var(--k-glass); border: 1px solid var(--k-line); transition: transform .18s ease, background .18s, border-color .18s, box-shadow .25s; }
.tk-pk:hover { transform: translateY(-2px); background: var(--k-glass2); border-color: rgba(var(--k-li), .4); }
.tk-pk:focus-visible { outline: 2px solid var(--k-lilac); outline-offset: 2px; }
.tk-pk[aria-checked="true"] { background: linear-gradient(160deg, rgba(139, 92, 246, .36), rgba(94, 234, 212, .10)); border-color: rgba(var(--k-li), .85);
  box-shadow: 0 0 0 1px rgba(var(--k-li), .45), 0 16px 40px -14px rgba(139, 92, 246, .8); transform: none; }
.tk-pk-hit { position: absolute; top: -10px; left: 14px; display: inline-flex; align-items: center; height: 20px; padding: 0 9px; border-radius: 999px; white-space: nowrap;
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--k-soft, #ece6ff); background: #2b1a62; border: 1px solid rgba(var(--k-li), .65); box-shadow: 0 4px 14px -4px rgba(139, 92, 246, .9); }
.tk-pk-p { font-size: 22px; line-height: 1.15; font-weight: 650; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tk-pk-b { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 650; white-space: nowrap; color: var(--k-mint-ink); background: rgba(94, 234, 212, .13); }
.tk-pk-b.is-none { color: var(--k-mut2); background: rgba(var(--k-on), .06); font-weight: 560; }
.tk-pk-d { font-size: 12.5px; line-height: 17px; color: var(--k-mut); }
.tk-pk-own { border-style: dashed; border-color: rgba(var(--k-li), .3); background: transparent; }
.tk-pk-own .tk-pk-p { font-size: 16px; line-height: 26px; letter-spacing: -.01em; }
.tk-pk-own[aria-checked="true"] { cursor: default; border-style: solid; }
.tk-pk-own-i { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.tk-pk-in { display: flex; align-items: baseline; gap: 4px; width: 100%; cursor: text; }
.tk-pk-in input { field-sizing: content; width: auto; min-width: 3.2ch; max-width: calc(100% - 22px); padding: 0 0 2px; border: 0; border-bottom: 1px dashed rgba(var(--k-li), .6); border-radius: 0; background: transparent; color: var(--k-hi);
  font: inherit; font-size: 22px; line-height: 1.15; font-weight: 650; letter-spacing: -.02em; outline: none; font-variant-numeric: tabular-nums; }
.tk-pk-in input:focus { border-bottom-color: var(--k-mint); }
.tk-pk-in input::placeholder { color: var(--k-mut2); font-weight: 500; }
.tk-pk-in i { font-style: normal; font-size: 18px; font-weight: 600; color: var(--k-mut); }
.tk-sum { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-top: 4px; }
.tk-sum-t { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1 1 320px; }
.tk-sum-v { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.tk-sum-l { font-size: 13.5px; color: var(--k-mut); }
.tk-sum-v b { font-size: 26px; line-height: 1.1; font-weight: 650; letter-spacing: -.02em; color: var(--k-hi); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tk-sum-v em { font-style: normal; font-size: 12.5px; font-weight: 650; color: var(--k-mint-ink); white-space: nowrap; }
.tk-sum-n { font-size: 12px; line-height: 16px; color: var(--k-mut2); }
.tk-nudge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px dashed rgba(94, 234, 212, .55); background: rgba(94, 234, 212, .08);
  color: var(--k-mint-ink); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; align-self: center; }
.tk-nudge:hover { background: rgba(94, 234, 212, .16); }
/* главная кнопка страницы — одна: светлая на тёмном (бледная), с мягким «дыханием» и бликом под указателем */
.tk-pay { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 50px; padding: 0 26px; border-radius: 15px; border: 0; cursor: pointer; flex: 0 0 auto;
  font: inherit; font-size: 15px; font-weight: 650; letter-spacing: -.005em; white-space: nowrap; color: #24124f; background: linear-gradient(180deg, #fbf9ff, #e7ddff);
  box-shadow: inset 0 0 0 1px rgba(var(--k-on), .6), 0 12px 34px -10px rgba(167, 139, 250, .8); animation: tk-breathe 3.8s ease-in-out infinite; transition: transform .15s ease; }
.tk-pay > svg { flex: 0 0 auto; color: #6d28d9; }
.tk-pay:hover { transform: translateY(-1px); }
.tk-pay::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(var(--k-on), .9), transparent); pointer-events: none; }
.tk-pay:hover::after { animation: tk-sheen .9s ease; }
.tk-pay:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.tk-pay:disabled { opacity: .5; cursor: default; animation: none; transform: none; }
@keyframes tk-sheen { to { left: 130%; } }
@keyframes tk-breathe { 0%, 100% { box-shadow: inset 0 0 0 1px rgba(var(--k-on), .6), 0 12px 32px -12px rgba(167, 139, 250, .65); } 50% { box-shadow: inset 0 0 0 1px rgba(var(--k-on), .6), 0 14px 44px -8px rgba(167, 139, 250, 1); } }

/* ── Под ядром (r8): автопополнение (колода карт) и история — тёмные панели ядра (.core.is-panel) ── */
.tk-low { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; margin-top: 16px; align-items: stretch; }
.tk-low > .core + .core { margin-top: 0; }
.tk-lo-h { align-items: flex-start; flex-wrap: nowrap; margin-bottom: 16px; }
.tk-lo-t { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tk-lo-t h2 { font-size: 16px; line-height: 21px; }
.tk-lo-t .core-sub { font-size: 13px; line-height: 19px; }
.tk-lo-t .core-sub b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tk-lo-h .core-h-r { flex: 0 0 auto; padding-top: 1px; }
.tk-au { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px 26px; }
.tk-au-deck { display: flex; justify-content: center; min-width: 0; transition: opacity .25s, filter .25s; }
.tk-au-r { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tk-autoc .field-l { color: var(--k-mut2); }
.tk-autoc.is-off .tk-au-deck { opacity: .5; filter: saturate(.6); }
.tk-autoc.is-off .tk-au-r { opacity: .72; }
/* колода на тёмном: точки — как в окне оплаты, «Новая карта» — стеклянная плитка пунктиром */
.tk-autoc .tk-dot { background: rgba(var(--k-on), .22); }
.tk-autoc .tk-dot[aria-selected="true"] { background: #c4b5fd; box-shadow: 0 0 10px rgba(var(--k-li), .8); }
.tk-autoc .tk-dot:focus-visible { outline: 2px solid var(--k-lilac); }
.tk-autoc .tk-c3.is-add .tk-c3-f { background: linear-gradient(160deg, rgba(var(--k-on), .07), rgba(var(--k-on), .02)); border-color: rgba(var(--k-li), .45); color: var(--k-lilac); }
.tk-autoc .tk-c3-add em { color: var(--k-mut2); }
.tk-autoc .ib:focus-visible { outline: 2px solid var(--k-lilac); outline-offset: 2px; }
/* история: строки на стекле, сумма зачисления — мятным со свечением */
.tk-hl { display: flex; flex-direction: column; gap: 6px; }
.tk-hr { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; padding: 11px 14px; border-radius: 14px; background: var(--k-glass); border: 1px solid var(--k-line); transition: background .2s, border-color .2s; }
.tk-hr:hover { background: var(--k-glass2); border-color: rgba(var(--k-li), .3); }
.tk-hr-ic { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; background: rgba(var(--k-on), .07); color: var(--k-mut); box-shadow: inset 0 0 0 1px rgba(var(--k-on), .06); }
.tk-hr-t { display: flex; flex-direction: column; gap: 2px; flex: 1 1 180px; min-width: 0; }
.tk-hr-t b { font-size: 13.5px; font-weight: 640; color: var(--k-hi); }
.tk-hr-t em { font-style: normal; font-size: 12px; line-height: 16px; color: var(--k-mut2); }
.tk-hr-v { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: 0 0 auto; }
.tk-hr-v b { font-size: 15.5px; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--k-mint-ink); text-shadow: 0 0 16px rgba(94, 234, 212, .4); }
.tk-hr-v em { font-style: normal; font-size: 11.5px; color: var(--k-mut2); white-space: nowrap; }
.tk-hr.is-wait { border-color: rgba(251, 191, 36, .28); }
.tk-hr.is-wait .tk-hr-v b { color: var(--k-hi); text-shadow: none; }
.tk-hr.is-wait .tk-hr-ic { color: var(--k-amber-ink); }
.tk-hr-a { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; flex: 0 0 auto; margin-left: auto; }
.tk-hl-more { align-self: flex-start; margin: 10px 2px 0; font-size: 12.5px; }

/* ══ Объёмная карта (r6) ══════════════════════════════════════════════════════════════
   Размеры — от одной меры --k (1 = 300 × 189 px, как банковская карта): мини-карта в автопополнении — та же, меньше.
   Наклон за указателем — --rx/--ry (ставит JS), переворот — .is-flip (код с оборота), блик — --gx/--gy. */
.tk-c3 { --k: 1; --rx: 0deg; --ry: 0deg; position: relative; flex: 0 0 auto; width: calc(var(--k) * 300px); height: calc(var(--k) * 189px); border-radius: calc(var(--k) * 16px); perspective: 1100px; color: var(--k-hi); }
.tk-c3.is-mini { --k: .74; }
.tk-c3-in { position: absolute; inset: 0; border-radius: inherit; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.tk-c3.is-flip .tk-c3-in { transform: rotateX(var(--rx)) rotateY(calc(180deg + var(--ry))); transition-duration: .75s; }
.tk-c3-f, .tk-c3-b { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow: 0 calc(var(--k) * 20px) calc(var(--k) * 38px) calc(var(--k) * -16px) rgba(var(--k-dk, 14, 6, 44), .75), inset 0 0 0 1px rgba(var(--k-on), .16); }
.tk-c3-b { transform: rotateY(180deg); visibility: hidden; transition: visibility 0s linear .38s; }
/* невидимая сторона — скрыта и для чтения с экрана: меняется на середине поворота */
.tk-c3.is-flip .tk-c3-b { visibility: visible; transition-delay: 0s; }
.tk-c3.is-flip .tk-c3-f { visibility: hidden; transition: visibility 0s linear .38s; }
/* карты за передней — только цвет и край: их надписи закрыты передней картой */
.tk-deck-it:not([data-pos="0"]) .tk-c3-f > *, .tk-deck-it:not([data-pos="0"]) .tk-c3-b > * { visibility: hidden; }
/* тиснение: тонкие диагональные линии и мягкое пятно света — «живая» поверхность без картинок */
.tk-c3-f::before, .tk-c3-b::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(var(--k-on), .04) 0 1px, transparent 1px 7px), radial-gradient(70% 90% at 85% 0%, rgba(var(--k-on), .16), transparent 60%); }
.tk-c3[data-tone="violet"] .tk-c3-f, .tk-c3[data-tone="violet"] .tk-c3-b {
  background: radial-gradient(90% 120% at 0% 0%, rgba(var(--k-li), .55), transparent 55%), radial-gradient(70% 90% at 100% 100%, rgba(94, 234, 212, .38), transparent 60%), linear-gradient(135deg, #2a1660 0%, #4c1d95 50%, #173a5c 100%); }
.tk-c3[data-tone="graphite"] .tk-c3-f, .tk-c3[data-tone="graphite"] .tk-c3-b {
  background: radial-gradient(80% 110% at 0% 0%, rgba(203, 213, 225, .32), transparent 55%), radial-gradient(60% 90% at 100% 100%, rgba(167, 139, 250, .26), transparent 60%), linear-gradient(135deg, #1a1e29 0%, #394154 52%, #11141c 100%); }
.tk-c3[data-tone="mint"] .tk-c3-f, .tk-c3[data-tone="mint"] .tk-c3-b {
  background: radial-gradient(80% 110% at 0% 0%, rgba(153, 246, 228, .42), transparent 55%), radial-gradient(60% 90% at 100% 100%, rgba(167, 139, 250, .3), transparent 60%), linear-gradient(135deg, #064e3b 0%, #0f766e 50%, #1e3a5f 100%); }
.tk-c3[data-tone="new"] .tk-c3-f, .tk-c3[data-tone="new"] .tk-c3-b {
  background: radial-gradient(90% 120% at 0% 0%, rgba(240, 171, 252, .4), transparent 55%), radial-gradient(70% 90% at 100% 100%, rgba(94, 234, 212, .4), transparent 60%), linear-gradient(135deg, #312e81 0%, #6d28d9 46%, #0e7490 100%); }
.tk-c3-lb { position: absolute; left: calc(var(--k) * 20px); top: calc(var(--k) * 17px); font-size: calc(var(--k) * 10.5px); line-height: 1.2; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: rgba(var(--k-on), .74); white-space: nowrap; }
.tk-c3-br { position: absolute; right: calc(var(--k) * 18px); top: calc(var(--k) * 11px); font-size: calc(var(--k) * 20px); line-height: 1.2; font-weight: 800; font-style: italic; letter-spacing: .02em; white-space: nowrap;
  color: var(--k-hi); background: linear-gradient(180deg, #ffffff 30%, #c4b5fd); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tk-c3-chip { position: absolute; left: calc(var(--k) * 20px); top: calc(var(--k) * 58px); width: calc(var(--k) * 42px); height: calc(var(--k) * 32px); border-radius: calc(var(--k) * 7px);
  background: linear-gradient(135deg, #fde68a 0%, #d4a017 42%, #fef3c7 68%, #b7791f 100%); box-shadow: inset 0 0 0 1px rgba(110, 72, 0, .35); }
.tk-c3-chip::before { content: ''; position: absolute; left: 0; right: 0; top: 34%; bottom: 34%; border-top: 1px solid rgba(110, 72, 0, .42); border-bottom: 1px solid rgba(110, 72, 0, .42); }
.tk-c3-chip::after { content: ''; position: absolute; top: 0; bottom: 0; left: 32%; right: 32%; border-left: 1px solid rgba(110, 72, 0, .42); border-right: 1px solid rgba(110, 72, 0, .42); }
.tk-c3-nfc { position: absolute; left: calc(var(--k) * 72px); top: calc(var(--k) * 62px); width: calc(var(--k) * 24px); height: calc(var(--k) * 24px); fill: none; stroke: rgba(var(--k-on), .78); stroke-width: 1.8; stroke-linecap: round; }
.tk-c3-no { position: absolute; left: calc(var(--k) * 20px); right: calc(var(--k) * 16px); bottom: calc(var(--k) * 50px); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: calc(var(--k) * 19px); line-height: 1.2; font-weight: 600; letter-spacing: .09em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 1px rgba(0, 0, 0, .35); font-variant-numeric: tabular-nums; }
.tk-c3-hd { position: absolute; left: calc(var(--k) * 20px); bottom: calc(var(--k) * 18px); max-width: 60%; font-size: calc(var(--k) * 12px); line-height: 1.25; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(var(--k-on), .9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-c3-ex { position: absolute; right: calc(var(--k) * 20px); bottom: calc(var(--k) * 15px); display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.tk-c3-ex em { font-style: normal; font-size: calc(var(--k) * 9px); line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; color: rgba(var(--k-on), .62); }
.tk-c3-ex b { font-size: calc(var(--k) * 13.5px); line-height: 1.2; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.tk-c3-strip { position: absolute; left: 0; right: 0; top: calc(var(--k) * 24px); height: calc(var(--k) * 40px); background: linear-gradient(180deg, #0b0718, #1f1638); }
.tk-c3-sig { position: absolute; left: calc(var(--k) * 20px); right: calc(var(--k) * 20px); top: calc(var(--k) * 84px); height: calc(var(--k) * 36px); display: flex; }
.tk-c3-sig i { flex: 1 1 auto; border-radius: calc(var(--k) * 4px) 0 0 calc(var(--k) * 4px); background: repeating-linear-gradient(135deg, #f5f3ff 0 6px, #e6e0fa 6px 12px); }
.tk-c3-sig b { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: calc(var(--k) * 68px); border-radius: 0 calc(var(--k) * 4px) calc(var(--k) * 4px) 0; background: #fff;
  color: #1b1340; font-size: calc(var(--k) * 17px); font-weight: 700; font-style: italic; letter-spacing: .22em; box-shadow: 0 0 0 2px rgba(var(--k-li), .9); }
.tk-c3-bn { position: absolute; left: calc(var(--k) * 20px); right: calc(var(--k) * 20px); bottom: calc(var(--k) * 16px); font-style: normal; font-size: calc(var(--k) * 10.5px); line-height: 1.35; color: rgba(var(--k-on), .74); }
/* блик под указателем — только у передней карты колоды */
.tk-c3-gl { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(55% 60% at var(--gx, 30%) var(--gy, 20%), rgba(var(--k-on), .3), transparent 62%); mix-blend-mode: soft-light; }
.tk-deck-st:hover .tk-deck-it[data-pos="0"] .tk-c3-gl { opacity: 1; }
.tk-c3.is-flip .tk-c3-gl { opacity: 0 !important; }
/* «Новая карта» в колоде автопополнения — пунктирная плитка */
.tk-c3.is-add .tk-c3-f { display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--acc) 5%, var(--l1)); border: 1.5px dashed var(--acc-soft-brd); box-shadow: none; color: var(--acc); }
.tk-c3.is-add .tk-c3-f::before { display: none; }
.tk-c3-add { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 14px; text-align: center; }
.tk-c3-add b { font-size: 14px; font-weight: 650; }
.tk-c3-add em { font-style: normal; font-size: 11.5px; line-height: 15px; color: var(--mut2); }

/* ── Колода: передняя карта, две выглядывают сзади; смена — карта «отлетает» и уходит назад ── */
.tk-deck { --k: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tk-deck.is-mini { --k: .74; gap: 10px; }
.tk-deck-st { position: relative; width: calc(var(--k) * 300px + var(--k) * 44px); height: calc(var(--k) * 189px + var(--k) * 30px); }
.tk-deck-it { position: absolute; left: 0; bottom: 0; transform-origin: 50% 100%; cursor: pointer;
  transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .45s ease, filter .45s ease; }
.tk-deck-it[data-pos="0"] { z-index: 3; transform: none; cursor: default; }
.tk-deck-it[data-pos="1"] { z-index: 2; transform: translate(calc(var(--k) * 22px), calc(var(--k) * -15px)) scale(.94); opacity: .8; filter: brightness(.8) saturate(.85); }
.tk-deck-it[data-pos="2"] { z-index: 1; transform: translate(calc(var(--k) * 42px), calc(var(--k) * -29px)) scale(.88); opacity: .5; filter: brightness(.65) saturate(.7); }
.tk-deck-it[data-pos="h"] { z-index: 0; transform: translate(calc(var(--k) * 50px), calc(var(--k) * -34px)) scale(.84); opacity: 0; pointer-events: none; }
.tk-deck-it[data-pos="1"]:hover { transform: translate(calc(var(--k) * 26px), calc(var(--k) * -20px)) scale(.95); opacity: .95; }
.tk-deck-it.is-leave { animation: tk-leave .62s cubic-bezier(.3, .7, .3, 1); }
@keyframes tk-leave { 0% { transform: none; opacity: 1; z-index: 4; } 42% { transform: translate(-58%, 8px) rotate(-8deg) scale(.95); opacity: .95; z-index: 4; } 60% { z-index: 0; } }
.tk-deck-nav { display: flex; align-items: center; gap: 8px; }
.tk-deck-dots { display: flex; align-items: center; gap: 6px; }
.tk-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; background: var(--line-2); transition: width .3s ease, background .3s; }
.tk-dot[aria-selected="true"] { width: 22px; background: var(--acc); }
.tk-dot:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ══ Окно оплаты r6: сцена способа слева (тёмная), суммы и подробности справа ═══════════════════════ */
.tk-paym .sb { padding: 18px 20px 18px; }
.tk-pm { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; align-items: stretch; }
.tk-pm-stage { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 352px; padding: 22px 16px; border-radius: 18px;
  color: var(--k-soft, #f6f3ff); border: 1px solid rgba(167, 139, 250, .32);
  background: radial-gradient(60% 70% at 0% 0%, rgba(124, 77, 255, .45), transparent 62%), radial-gradient(60% 70% at 100% 100%, rgba(94, 234, 212, .16), transparent 62%), linear-gradient(165deg, #1e1244 0%, #150c33 55%, #0f0a26 100%);
  box-shadow: inset 0 1px 0 rgba(var(--k-on), .07); }
.tk-pm-stage::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 45% at 50% 40%, rgba(167, 139, 250, .22), transparent 70%);
  -webkit-mask-image: radial-gradient(75% 70% at 50% 45%, #000, transparent 75%); mask-image: radial-gradient(75% 70% at 50% 45%, #000, transparent 75%); }
.tk-pm-stage .tk-dot { background: rgba(var(--k-on), .22); }
.tk-pm-stage .tk-dot[aria-selected="true"] { background: #c4b5fd; box-shadow: 0 0 10px rgba(var(--k-li), .8); }
.tk-pm-stage .ib { color: rgba(var(--k-mu), .8); }
.tk-pm-stage .ib:hover { background: rgba(var(--k-on), .1); border-color: rgba(var(--k-on), .16); color: var(--k-hi); }
.tk-pm-st { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tk-pm-cap { font-size: 12.5px; line-height: 17px; color: rgba(var(--k-mu), .76); }
.tk-pm-cap b { color: var(--k-hi); font-weight: 650; font-variant-numeric: tabular-nums; }
/* проводим платёж: по передней карте бежит блик; после — карта светится мятным */
.tk-pm-st.is-busy .tk-deck-it[data-pos="0"] .tk-c3-f::after { content: ''; position: absolute; top: 0; bottom: 0; left: -45%; width: 40%; transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(var(--k-on), .55), transparent); animation: tk-sweep 1s linear infinite; }
@keyframes tk-sweep { to { left: 120%; } }
.tk-pm-st.is-done .tk-deck-it[data-pos="0"] .tk-c3-f { box-shadow: 0 20px 38px -16px rgba(var(--k-dk, 14, 6, 44), .75), 0 0 0 2px rgba(94, 234, 212, .85), 0 0 40px rgba(94, 234, 212, .45); transition: box-shadow .6s; }
.tk-pm-st.is-done .tk-deck-nav { visibility: hidden; }
.tk-pm-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tk-pm-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 14px; border: 1px solid var(--line); background: var(--l2); overflow: hidden; }
.tk-pm-sum > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 11px 14px; }
.tk-pm-sum > div + div { border-left: 1px solid var(--line); }
.tk-pm-sum span { font-size: 10.5px; line-height: 13px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--mut2); }
.tk-pm-sum b { font-size: 17px; line-height: 1.2; font-weight: 650; letter-spacing: -.015em; color: var(--ink); white-space: nowrap; }
.tk-pm-sum em { font-style: normal; font-size: 11.5px; font-weight: 650; color: var(--vyg); white-space: nowrap; }
.tk-meth { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tk-m { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 9px 11px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--l1); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .2s; }
.tk-m > svg { flex: 0 0 auto; color: var(--icon); }
.tk-m > span { display: flex; flex-direction: column; min-width: 0; }
.tk-m b { font-size: 13.5px; line-height: 18px; font-weight: 640; }
.tk-m em { font-style: normal; font-size: 11.5px; line-height: 15px; color: var(--mut2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-m:hover { border-color: var(--acc-soft-brd); }
.tk-m:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tk-m[aria-checked="true"] { border-color: var(--acc); background: var(--acc-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 14%, transparent); }
.tk-m[aria-checked="true"] > svg { color: var(--acc); }
.tk-pm-det { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tk-pm-t { display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 19px; color: var(--mut); }
.tk-pm-t b { font-size: 15px; line-height: 20px; font-weight: 650; color: var(--ink); }
.tk-pm-note { display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; line-height: 18px; color: var(--mut2); }
.tk-pm-note > svg { flex: 0 0 auto; margin-top: 2px; }
.tk-pm-lead { font-size: 13.5px; line-height: 19px; color: var(--mut); }
.tk-steps { list-style: none; margin: 0; padding: 0; counter-reset: tks; display: flex; flex-direction: column; gap: 10px; }
.tk-steps li { counter-increment: tks; display: flex; align-items: center; gap: 10px; font-size: 13.5px; line-height: 19px; color: var(--mut); }
.tk-steps li::before { content: counter(tks); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  background: var(--acc-soft); color: var(--acc); font-size: 12px; font-weight: 700; }
.tk-steps b { color: var(--ink); font-weight: 640; }
/* новая карта: номер во всю ширину, ниже — срок, код и имя в одну строку */
.tk-ncf { display: flex; flex-direction: column; gap: 10px; }
.tk-ncf-r { display: grid; grid-template-columns: 86px 72px minmax(0, 1fr); gap: 10px; }
.tk-ncf .in { font-variant-numeric: tabular-nums; }
.tk-ncf-no .in { letter-spacing: .06em; }
.tk-ncf-why { display: flex; align-items: center; gap: 6px; min-height: 18px; font-size: 12.5px; line-height: 17px; color: var(--mut2); }
.tk-ncf-why > svg { flex: 0 0 auto; color: var(--vyg); }
.tk-savecard, .tk-autotick { margin: 0; }
.tk-pay-demo { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: var(--mut2); }
.tk-pay-demo > svg { flex: 0 0 auto; }
.tk-pay-go.is-busy { pointer-events: none; }
.tk-pay-go.is-busy > svg { display: none; }
.tk-pay-go.is-busy::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: tk-spin .8s linear infinite; }
@keyframes tk-spin { to { transform: rotate(360deg); } }
/* СБП: телефон с QR-кодом, по коду бежит луч «сканера» */
.tk-phone { position: relative; width: 190px; height: 292px; padding: 9px; border-radius: 30px; background: linear-gradient(160deg, #2c2552, #120c26);
  box-shadow: 0 0 0 1px rgba(var(--k-on), .16), 0 26px 50px -20px rgba(var(--k-dk, 6, 2, 30), .95), inset 0 1px 0 rgba(var(--k-on), .12); }
.tk-phone::before { content: ''; position: absolute; top: 15px; left: 50%; z-index: 1; width: 50px; height: 6px; border-radius: 4px; background: #0a0716; transform: translateX(-50%); }
.tk-phone-scr { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 100%; padding: 26px 12px 14px; border-radius: 22px;
  background: linear-gradient(180deg, #fbfaff, #eee8fd); color: #1b1340; }
.tk-phone-n { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; line-height: 15px; font-weight: 650; color: #4c1d95; }
.tk-phone-qr { position: relative; overflow: hidden; padding: 8px; border-radius: 12px; background: #fff; line-height: 0; box-shadow: 0 8px 20px -10px rgba(var(--k-dk, 36, 20, 90), .55); }
.tk-phone-qr .tk-ok-ic { width: 128px; height: 128px; margin: 0; }
.tk-scan { position: absolute; left: 6px; right: 6px; top: 8%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #8b5cf6, transparent); box-shadow: 0 0 12px #a78bfa;
  animation: tk-scan 2.2s ease-in-out infinite alternate; }
@keyframes tk-scan { to { top: 90%; } }
.tk-pm-st.is-busy .tk-scan { animation-duration: .5s; }
.tk-phone-t { font-size: 11.5px; line-height: 15px; color: #5b5470; text-align: center; }
/* счёт: лист бумаги, покупатель меняется с выбором плательщика; после выставления — номер и печать */
.tk-paper { position: relative; display: flex; flex-direction: column; gap: 9px; width: 300px; padding: 18px 18px 24px; border-radius: 10px; background: #fff; color: #1d2433;
  font-size: 11.5px; line-height: 15px; transform: rotate(-2deg); transition: transform .45s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 28px 50px -24px rgba(var(--k-dk, 6, 2, 30), .95), 0 0 0 1px rgba(0, 0, 0, .05); }
.tk-pm-stage:hover .tk-paper, .tk-pm-st.is-busy .tk-paper { transform: rotate(0deg) translateY(-3px); }
.tk-paper-h { display: flex; flex-direction: column; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid #e3e8f2; }
.tk-paper-h b { font-size: 13.5px; line-height: 18px; font-weight: 700; }
.tk-paper-h em { font-style: normal; font-size: 11px; color: #7a8193; }
.tk-paper-p { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 8px; }
.tk-paper-p > span { grid-row: span 2; color: #7a8193; }
.tk-paper-p b { font-weight: 640; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-paper-p em { font-style: normal; color: #7a8193; }
.tk-paper-t, .tk-paper-v { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tk-paper-t { padding: 8px 10px; border: 1px solid #d7e0ed; border-radius: 6px; }
.tk-paper-t b, .tk-paper-v b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tk-paper-v { padding: 0 10px; color: #5b6275; }
.tk-paper-ln { display: block; height: 6px; width: 84%; border-radius: 3px; background: #eef1f7; }
.tk-paper-ln.is-s { width: 56%; }
.tk-paper-st { position: absolute; right: 16px; bottom: 14px; padding: 3px 9px; border: 2px solid #c4b5fd; border-radius: 8px; color: #7c3aed; font-size: 10.5px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; transform: rotate(-11deg); opacity: .85; }
.tk-paper.is-done .tk-paper-st { border-color: #34d399; color: #059669; animation: tk-stamp .5s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes tk-stamp { from { transform: rotate(-11deg) scale(2.3); opacity: 0; } }
/* после оплаты — итог справа */
.tk-ok { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; height: 100%; padding: 6px 4px; text-align: left; }
.tk-ok-ic { display: inline-flex; align-items: center; justify-content: center; width: 80px; height: 80px; border-radius: 50%; color: var(--vyg);
  background: radial-gradient(circle, color-mix(in srgb, var(--vyg) 20%, transparent), transparent 70%); }
.tk-ok-ic svg { width: 66px; height: 66px; fill: none; stroke: var(--vyg); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tk-ok-ic svg circle { stroke-dasharray: 145; stroke-dashoffset: 145; animation: tk-draw .7s ease-out forwards; }
.tk-ok-ic svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: tk-draw .45s .55s ease-out forwards; }
@keyframes tk-draw { to { stroke-dashoffset: 0; } }
.tk-ok-k { font-size: 11px; line-height: 14px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--mut2); }
.tk-ok-v { font-size: 38px; line-height: 1.1; font-weight: 680; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; animation: tk-pop .6s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes tk-pop { from { transform: translateY(8px) scale(.94); opacity: 0; } }
.tk-ok:not(.is-inv) .tk-ok-v { color: var(--vyg); }
.tk-ok p { max-width: 420px; font-size: 14px; line-height: 20px; color: var(--mut); }
.tk-ok .tk-ok-s { font-size: 12.5px; line-height: 18px; color: var(--mut2); }
/* низкое окно (1100×560): окно оплаты целиком, без прокрутки */
@media (max-height: 640px) {
  .tk-paym .sb { padding: 12px 18px 12px; }
  .tk-pm { grid-template-columns: 330px minmax(0, 1fr); gap: 16px; }
  .tk-pm-stage { min-height: 300px; padding: 14px 12px; }
  .tk-pm-stage .tk-deck { --k: .86; gap: 10px; }
  .tk-pm-side { gap: 10px; }
  .tk-pm-sum > div { padding: 8px 12px; gap: 2px; }
  .tk-pm-sum b { font-size: 16px; }
  .tk-m { padding: 7px 10px; }
  .tk-m em { display: none; }
  .tk-ncf { gap: 8px; }
  .tk-phone { width: 162px; height: 252px; border-radius: 26px; }
  .tk-phone-scr { gap: 8px; padding: 22px 10px 10px; border-radius: 19px; }
  .tk-phone-qr svg { width: 104px; height: 104px; }
  .tk-phone-qr .tk-ok-ic { width: 104px; height: 104px; }
  .tk-paper { width: 280px; padding: 14px 16px 20px; gap: 7px; }
  .tk-ok-v { font-size: 32px; }
}
@media (max-width: 860px) {
  .tk-pm { grid-template-columns: minmax(0, 1fr); }
  .tk-pm-stage { min-height: 0; }
}
/* счёт на пополнение — белый лист в обоих оформлениях */
.tk-inv { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; border-radius: 12px; background: #fff; color: #1d2433; border: 1px solid var(--line-2); box-shadow: 0 10px 30px -18px rgba(36, 59, 104, .35); }
.tk-inv-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tk-inv-h b { font-size: 15px; line-height: 20px; font-weight: 700; }
.tk-inv-demo { flex: 0 0 auto; padding: 2px 7px; border-radius: 6px; background: #fff5e2; border: 1px solid #f1dfba; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7a5718; }
.tk-inv-p { display: grid; grid-template-columns: 100px minmax(0, 1fr); column-gap: 12px; font-size: 13px; line-height: 18px; }
.tk-inv-p > span { grid-row: span 2; color: #667085; }
.tk-inv-p em { font-style: normal; font-size: 12px; color: #667085; }
.tk-inv-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.tk-inv-t th, .tk-inv-t td { padding: 8px 10px; border: 1px solid #d7e0ed; text-align: left; vertical-align: top; }
.tk-inv-t th { background: #f3f6fb; font-size: 12px; font-weight: 600; color: #4d5059; }
.tk-inv-t .r { text-align: right; white-space: nowrap; }
.tk-inv-t td em { display: block; margin-top: 2px; font-style: normal; font-size: 11.5px; color: #667085; }
.tk-inv-s { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 13px; }
.tk-inv-w { font-size: 12.5px; color: #4d5059; }

/* ══ «Расход» r6: тёмное ядро, как у «Баланса» ═══════════════════════════════════════════════════
   Итог и изменение, период; «кто тратит» — кольцо и строки агентов; столбцы по дням долями агентов с подсказкой;
   четыре плитки со спарклайнами; выбранный день. Ниже — тёмные панели: по задачам, по компаниям, лимиты (r6, круг 2);
   r8 — у всех панелей ещё и класс .core общего набора. */
.tk-ucore { display: flex; flex-direction: column; align-items: stretch; gap: 18px; padding: 24px 26px 16px; }
.tk-u-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.tk-u-tot { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.tk-u-vs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; line-height: 18px; color: var(--k-mut); }
.tk-core .tk-chg { color: var(--k-lilac); background: rgba(var(--k-li), .14); }
.tk-core .tk-chg.is-good { color: var(--k-mint-ink); background: rgba(94, 234, 212, .14); }
/* период, кнопки-значки, выбор и переключатель на тёмном — из общего набора (.core в core.css, r8): у панелей «Расхода»
   классы tk-core и core вместе */
.tk-u-mid { display: grid; grid-template-columns: 296px minmax(0, 1fr); gap: 22px; align-items: stretch; }
/* кто тратит */
.tk-u-who { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px 14px 12px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(var(--k-on), .07), rgba(var(--k-on), .025)); border: 1px solid var(--k-line); }
.tk-dn { position: relative; align-self: center; width: 120px; height: 120px; flex: 0 0 auto; }
.tk-dn > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tk-dn-tr { fill: none; stroke: rgba(var(--k-on), .07); stroke-width: 12; }
.tk-dn-s { fill: none; stroke-width: 12; transition: opacity .2s, stroke-width .2s; filter: drop-shadow(0 0 5px rgba(var(--k-li), .35)); animation: tk-dn 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.tk-dn-s.is-dim { opacity: .16; }
@keyframes tk-dn { from { stroke-dasharray: 0 400; } }
.tk-dn-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--k-mut2); pointer-events: none; }
.tk-dn-c em { font-style: normal; font-size: 10px; line-height: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.tk-u-ags { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.tk-u-ag { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto 34px; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 9px; background: transparent;
  color: var(--k-ink); font: inherit; font-size: 12.5px; line-height: 17px; text-align: left; cursor: pointer; transition: background .15s, opacity .2s, box-shadow .2s; }
.tk-u-ag:hover { background: rgba(var(--k-on), .07); }
.tk-u-ag[aria-pressed="true"] { background: rgba(var(--k-li), .12); box-shadow: inset 0 0 0 1px rgba(var(--k-li), .42); }
.tk-u-ag:focus-visible { outline: 2px solid var(--k-lilac); outline-offset: 1px; }
.tk-u-ag > i { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.tk-u-ag > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-u-ag > b { font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tk-u-ag > em { font-style: normal; color: var(--k-mut2); text-align: right; white-space: nowrap; }
.tk-u-ag.is-dim { opacity: .42; }
/* столбцы по дням */
.tk-u-chart { display: flex; flex-direction: column; min-width: 0; }
.tk-uc { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; column-gap: 8px; flex: 1 1 auto; min-height: 256px; }
.tk-uc-y { position: relative; grid-row: 2; grid-column: 1; }
.tk-uc-y span { position: absolute; right: 0; transform: translateY(50%); font-size: 10.5px; line-height: 12px; color: var(--k-mut2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tk-uc-plot { position: relative; grid-row: 2; grid-column: 2; min-height: 200px; border-bottom: 1px solid rgba(var(--k-on), .16); }
.tk-uc-g { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed rgba(var(--k-on), .08); pointer-events: none; }
.tk-uc-avg { position: absolute; left: 0; right: 0; z-index: 2; height: 0; border-top: 1.5px dashed rgba(94, 234, 212, .6); pointer-events: none; }
.tk-uc-lg { grid-row: 1; grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 16px; min-height: 18px; margin-bottom: 10px; font-size: 11.5px; line-height: 16px; color: var(--k-mut2); }
.tk-uc-lg > span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.tk-uc-lg i { display: block; width: 18px; border-top: 1.5px dashed rgba(94, 234, 212, .7); }
.tk-uc-bars { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; align-items: end; }
.tk-uc-b { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 100%; padding: 0; border: 0; border-radius: 6px 6px 0 0; background: transparent; cursor: pointer; transition: background .15s; }
.tk-uc-b:hover { background: rgba(var(--k-on), .045); }
.tk-uc-b:focus-visible { outline: 2px solid var(--k-lilac); outline-offset: 1px; }
.tk-uc-st { display: flex; flex-direction: column-reverse; width: min(100%, 24px); height: var(--h); border-radius: 5px 5px 2px 2px; overflow: hidden; transform-origin: 50% 100%; transition: box-shadow .2s; }
.tk-uc-st > i { display: block; min-height: 0; background: var(--c); opacity: .76; transition: opacity .2s; }
.tk-uc-b.is-we .tk-uc-st > i { opacity: .5; }
.tk-uc-b:hover .tk-uc-st > i, .tk-uc-b.is-sel .tk-uc-st > i { opacity: 1; }
.tk-uc-st > i.is-dim, .tk-uc-b:hover .tk-uc-st > i.is-dim, .tk-uc-b.is-sel .tk-uc-st > i.is-dim { opacity: .14; }
.tk-uc-b.is-sel .tk-uc-st { box-shadow: 0 0 0 1.5px rgba(var(--k-on), .9), 0 0 20px rgba(var(--k-li), .75); }
.tk-uc.is-grow .tk-uc-st { animation: tk-grow .8s var(--d, 0ms) cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tk-grow { from { transform: scaleY(0); } }
.tk-uc-x { position: relative; grid-row: 3; grid-column: 2; height: 22px; }
.tk-uc-x span { position: absolute; top: 7px; transform: translateX(-50%); font-size: 10.5px; line-height: 13px; color: var(--k-mut2); white-space: nowrap; }
.tk-uc-x span.is-st { transform: translateX(-28%); }
.tk-uc-x span.is-end { left: auto !important; right: 0; transform: none; color: var(--k-mut); }
/* подсказка у столбца */
.tk-uc-tip { position: absolute; z-index: 5; display: flex; flex-direction: column; gap: 6px; width: max-content; min-width: 176px; max-width: 250px; padding: 10px 12px; border-radius: 12px; pointer-events: none;
  background: rgba(var(--k-dk, 19, 12, 46), .95); border: 1px solid rgba(var(--k-li), .36); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .7); color: var(--k-ink); font-size: 12px; line-height: 16px; }
.tk-uc-tip[hidden] { display: none; }
.tk-uc-tip > b { font-weight: 600; color: var(--k-mut); }
.tk-uc-tv { display: flex; align-items: baseline; gap: 8px; font-size: 18px; line-height: 22px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; }
.tk-uc-tv em { font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--k-mut2); }
.tk-uc-tip ul { list-style: none; margin: 0; padding: 6px 0 0; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--k-line); }
.tk-uc-tip li { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; align-items: center; gap: 7px; }
.tk-uc-tip li > i { width: 7px; height: 7px; border-radius: 50%; }
.tk-uc-tip li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-uc-tip li > b { font-weight: 640; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tk-uc-tip li.is-dim { opacity: .45; }
/* плитки в ядре */
.tk-u-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tk-ut { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 12px 14px; border-radius: 14px; background: var(--k-glass); border: 1px solid var(--k-line); transition: background .2s, border-color .2s, transform .2s; }
.tk-ut:hover { background: var(--k-glass2); border-color: rgba(var(--k-li), .32); transform: translateY(-1px); }
.tk-ut-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 30px; }
.tk-ut-h .tk-kick { padding-top: 2px; white-space: nowrap; }
.tk-ut .spark { flex: 0 1 84px; min-width: 40px; max-width: 84px; height: 30px; overflow: visible; }
.tk-ut-v { font-size: 24px; line-height: 1.1; font-weight: 650; letter-spacing: -.02em; color: var(--k-hi); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tk-ut-s { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; line-height: 16px; color: var(--k-mut2); }
/* выбранный день */
.tk-u-day { padding-top: 12px; border-top: 1px solid var(--k-line); }
.tk-daynav { display: inline-flex; gap: 6px; }
.tk-dayline { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.tk-dayline-t { display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; font-size: 13.5px; line-height: 19px; }
.tk-dayline-t b { font-weight: 640; color: var(--k-hi); }
.tk-dayline-t span { color: var(--k-mut); }
.tk-dayline-h { font-size: 12px; line-height: 16px; color: var(--k-mut2); }
.tk-dayline-go { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(var(--k-li), .42); background: rgba(var(--k-li), .12);
  color: var(--k-soft, #f2edff); font: inherit; font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s; }
.tk-dayline-go:hover { background: rgba(var(--k-li), .22); border-color: rgba(var(--k-li), .7); }
.tk-dayline-go:focus-visible { outline: 2px solid var(--k-lilac); outline-offset: 2px; }
/* изменение к прошлому периоду: лучше — зелёным, иначе — лиловым (красного нет) */
.tk-chg { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 12px; font-weight: 650; white-space: nowrap; line-height: 1;
  color: var(--acc); background: color-mix(in srgb, var(--acc) 9%, transparent); }
.tk-chg.is-good { color: var(--vyg); background: color-mix(in srgb, var(--vyg) 11%, transparent); }

/* ── «Куда уходят токены», компании и лимиты (r6, круг 2) — тёмные панели в языке ядра ── */
.tk-flow, .tk-side { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.tk-flow { margin-top: 16px; padding: 20px 22px 18px; }
.tk-side { padding: 18px 20px 18px; }
.tk-flow-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px 18px; }
.tk-flow-t { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tk-flow-t p { font-size: 12.5px; line-height: 18px; color: var(--k-mut2); }
.tk-flow .tk-hint { color: var(--k-mut2); margin-left: 2px; vertical-align: -1px; }
.tk-dayline-go.is-soft { border-color: var(--k-line); background: rgba(var(--k-on), .05); color: var(--k-mut); }
.tk-dayline-go.is-soft:hover { color: var(--k-hi); border-color: rgba(var(--k-li), .45); background: rgba(var(--k-li), .12); }
/* строки задач */
.tk-tl { display: flex; flex-direction: column; gap: 6px; }
.tk-tr { position: relative; border-radius: 14px; background: var(--k-glass); border: 1px solid var(--k-line); transition: background .2s, border-color .2s, opacity .25s, box-shadow .3s, transform .2s cubic-bezier(.2, .8, .2, 1); }
.tk-tr::before { content: ''; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); opacity: 0; transition: opacity .2s; box-shadow: 0 0 12px var(--c); }
.tk-tr:hover { background: var(--k-glass2); border-color: rgba(var(--k-li), .32); transform: translateX(2px); }
.tk-tr:hover::before, .tk-tr.is-open::before { opacity: 1; }
.tk-tr.is-open { background: linear-gradient(160deg, rgba(139, 92, 246, .14), rgba(var(--k-on), .03)); border-color: rgba(var(--k-li), .5); box-shadow: 0 18px 40px -26px rgba(139, 92, 246, .95); transform: none; }
.tk-tr.is-dim { opacity: .38; }
.tk-tr.is-in { animation: tk-rise .55s var(--d, 0ms) cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tk-rise { from { opacity: 0; transform: translateY(8px); } }
.tk-tr-h { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(110px, 1fr) 82px minmax(120px, .95fr) 78px 22px; align-items: center; gap: 14px; width: 100%;
  padding: 10px 14px; border: 0; border-radius: inherit; background: none; color: var(--k-ink); font: inherit; text-align: left; cursor: pointer; }
.tk-tr-h:focus-visible { outline: 2px solid var(--k-lilac); outline-offset: 1px; }
.tk-tr-n { display: grid; grid-template-columns: 8px minmax(0, 1fr); align-items: center; column-gap: 10px; row-gap: 1px; min-width: 0; }
.tk-tr-n > i { grid-row: span 2; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.tk-tr-n b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; line-height: 18px; font-weight: 620; }
.tk-tr-n em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; font-size: 11.5px; line-height: 16px; color: var(--k-mut2); }
.tk-tr-sp { display: flex; align-items: flex-end; gap: 2px; height: 30px; min-width: 0; }
.tk-tr-sp > i { flex: 1 1 0; min-width: 2px; max-width: 12px; border-radius: 2px 2px 1px 1px; background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 30%, transparent)); opacity: .5; transform-origin: 50% 100%; transition: opacity .2s, box-shadow .2s; }
.tk-tr:hover .tk-tr-sp > i, .tk-tr.is-open .tk-tr-sp > i { opacity: .85; }
.tk-tr-sp > i.is-sel { opacity: 1 !important; background: linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--c) 60%, #ffffff)); box-shadow: 0 0 10px rgba(var(--k-on), .75); }
.tk-tr.is-in .tk-tr-sp > i { animation: tk-grow .7s var(--d, 0ms) cubic-bezier(.2, .8, .2, 1) both; }
.tk-tr-q { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.tk-tr-q b { font-size: 13.5px; font-weight: 640; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tk-tr-q em { font-style: normal; font-size: 11px; color: var(--k-mut2); white-space: nowrap; }
.tk-tr-sh { display: flex; align-items: center; gap: 9px; min-width: 0; }
.tk-tr-bar { flex: 1 1 auto; min-width: 30px; height: 6px; border-radius: 999px; background: rgba(var(--k-on), .08); overflow: hidden; }
.tk-tr-bar > i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c), #5eead4); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 60%, transparent); }
.tk-tr.is-in .tk-tr-bar > i { animation: tk-fill 1s var(--d, 0ms) cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tk-fill { from { width: 0; } }
.tk-tr-sh em { flex: 0 0 36px; font-style: normal; font-size: 12px; color: var(--k-mut); text-align: right; white-space: nowrap; }
.tk-tr-v { font-size: 14px; font-weight: 650; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--k-hi); }
.tk-tr-x { display: inline-flex; justify-content: center; color: var(--k-mut2); transition: transform .3s cubic-bezier(.2, .8, .2, 1), color .2s; }
.tk-tr:hover .tk-tr-x { color: var(--k-hi); }
.tk-tr.is-open .tk-tr-x { transform: rotate(180deg); color: var(--k-hi); }
.tk-tr-d { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px; padding: 2px 14px 12px 32px; animation: tk-open .32s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tk-open { from { opacity: 0; transform: translateY(-4px); } }
.tk-tr-d > span:not(.grow) { display: flex; flex-direction: column; gap: 2px; }
.tk-tr-d em { font-style: normal; font-size: 10.5px; line-height: 13px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--k-mut2); }
.tk-tr-d b { font-size: 13.5px; font-weight: 640; color: var(--k-hi); white-space: nowrap; }
.tk-tr-d .tk-tr-dq { display: none; }
/* компании и лимиты — две панели рядом */
.tk-flow2 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: stretch; }
.tk-flow2 > .core + .core { margin-top: 0; }   /* зазор — у сетки (у панелей набора подряд — свой отступ сверху) */
.tk-og { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; flex: 1 1 auto; align-content: start; }
.tk-ogc { display: grid; grid-template-columns: 74px minmax(0, 1fr) minmax(150px, 190px); grid-template-areas: "r t l" "r v l"; align-items: center; gap: 4px 14px; min-width: 0; padding: 14px; border-radius: 14px;
  background: var(--k-glass); border: 1px solid var(--k-line); transition: background .2s, border-color .2s, transform .2s cubic-bezier(.2, .8, .2, 1); }
.tk-ogc:hover { background: var(--k-glass2); border-color: rgba(var(--k-li), .32); transform: translateY(-2px); }
.tk-ogc-r { grid-area: r; position: relative; width: 74px; height: 74px; }
.tk-mr { display: block; width: 100%; height: 100%; overflow: visible; }
.tk-mr-t { fill: none; stroke: rgba(var(--k-on), .08); stroke-width: 7; }
.tk-mr-a { fill: none; stroke: #a78bfa; stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(167, 139, 250, .7)); animation: tk-mr 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.tk-mr.is-lim .tk-mr-a { stroke: #5eead4; filter: drop-shadow(0 0 6px rgba(94, 234, 212, .65)); }
.tk-ogc.is-hot .tk-mr-a { stroke: #fbbf24; filter: drop-shadow(0 0 6px rgba(251, 191, 36, .6)); }
@keyframes tk-mr { from { stroke-dasharray: 0 var(--len); } }
.tk-ogc-p { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.tk-ogc-p b { font-size: 15px; line-height: 1.1; font-weight: 680; color: var(--k-hi); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tk-ogc-p em { font-style: normal; font-size: 9.5px; line-height: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--k-mut2); }
.tk-ogc-t { grid-area: t; display: flex; flex-direction: column; gap: 1px; min-width: 0; align-self: end; }
.tk-ogc-t b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 640; }
.tk-ogc-t em { font-style: normal; font-size: 11.5px; color: var(--k-mut2); white-space: nowrap; }
.tk-ogc-v { grid-area: v; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; align-self: start; }
.tk-ogc-v > b { font-size: 20px; line-height: 1.15; font-weight: 680; letter-spacing: -.02em; color: var(--k-hi); white-space: nowrap; }
.tk-ogc-l { grid-area: l; align-self: center; }
.tk-lm { display: flex; flex-direction: column; gap: 9px; padding: 12px 14px; border-radius: 14px; background: var(--k-glass); border: 1px solid var(--k-line); transition: background .2s, border-color .2s; }
.tk-lm:hover { background: var(--k-glass2); }
.tk-lm-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tk-lm-h .sel { flex: 0 0 auto; width: 128px; }
.tk-lm-bar { position: relative; height: 10px; border-radius: 999px; background: rgba(var(--k-on), .07); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(var(--k-on), .04); }
.tk-lm-bar > i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--f); border-radius: inherit; background: linear-gradient(90deg, #6d28d9, #a78bfa 62%, #5eead4);
  box-shadow: 0 0 14px rgba(167, 139, 250, .55); animation: tk-fill 1s cubic-bezier(.2, .8, .2, 1) both; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.tk-lm.is-near .tk-lm-bar > i { background: linear-gradient(90deg, #b45309, #f59e0b 60%, #fde68a); box-shadow: 0 0 14px rgba(245, 158, 11, .5); }
.tk-lm.is-off .tk-lm-bar > i { background: rgba(var(--k-on), .2); box-shadow: none; }
.tk-lm-t { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12.5px; line-height: 17px; color: var(--k-mut); }
.tk-lm-t em { font-style: normal; color: var(--k-mint-ink); white-space: nowrap; }
.tk-lm.is-off .tk-lm-t em { color: var(--k-mut2); }
.tk-lm-m { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; font-size: 12.5px; color: var(--k-mut); }
/* переключатель лимита — мягкий, из набора (.core .toggle); подпись — плотнее */
.tk-lm-h .toggle-l { font-weight: 600; }

/* ══ «Логи» r8: ядро журнала (.core.is-hero) и дни — тёмными панелями (.core.is-panel) ══════════════════════
   Ядро: кольцо «из кэша» · итог журнала крупно и строка о вызовах · стекло «Кто запускал» (метки со спарклайном) /
   луч вызовов по часам / поиск и выгрузка. Дни ниже: шапка дня кнопкой (свернуть), таблица вызовов в языке ядра. */
.tk-lcore { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(290px, 350px); grid-template-areas: "ring stat who" "beam beam beam" "tools tools tools";
  align-items: center; column-gap: 28px; padding: 22px 26px 20px; }
/* панели «Токенов» обрезают, но не прокручиваются: у overflow:hidden содержимое сдвигает scrollIntoView и фокус (подсказка
   луча на миг делала ядро «прокручиваемым» — точки уезжали из-под указателя) */
.tk-lcore, .tk-day, .tk-cw, .tk-autoc, .tk-hist { overflow: clip; }
.tk-l-ring { grid-area: ring; }
.tk-l-stat { grid-area: stat; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.tk-l-stat .core-big { margin-top: 2px; }
.tk-l-stat .core-sub { max-width: 540px; }
.tk-l-stat .core-sub .link { padding: 0; font-size: inherit; line-height: inherit; font-weight: 600; }
.tk-dayonly { margin-top: 6px; flex-wrap: wrap; }
.tk-dayonly > svg { color: var(--k-lilac); }
.tk-dayonly .link { padding: 0 2px; font-size: 12.5px; font-weight: 600; }
/* кто запускал — стеклянная колонка, у метки: точка цвета агента, имя, сумма, спарклайн накопленного расхода */
.tk-l-who { grid-area: who; align-self: stretch; display: flex; flex-direction: column; gap: 8px; padding: 14px 12px 10px 14px; }
.tk-l-who > .core-kick { padding-left: 2px; }
.tk-lchs { display: flex; flex-direction: column; gap: 2px; }
.tk-lch { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto 56px; align-items: center; gap: 10px; width: 100%; min-width: 0; padding: 6px 8px; border: 1px solid transparent; border-radius: 10px;
  background: none; color: var(--k-ink); font: inherit; font-size: 13px; line-height: 18px; text-align: left; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .2s; }
.tk-lch:hover { background: rgba(var(--k-on), .07); }
.tk-lch[aria-pressed="true"] { background: rgba(var(--k-li), .14); border-color: rgba(var(--k-li), .45); box-shadow: 0 0 22px -8px rgba(167, 139, 250, .9); }
.tk-lch:focus-visible { outline: 2px solid var(--k-lilac); outline-offset: 1px; }
.tk-lch > i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.tk-lch[data-id="all"] > i { background: none; box-shadow: inset 0 0 0 1.5px var(--c); }
.tk-lch-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.tk-lch > b { font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--k-hi); }
.tk-lch-sp { display: flex; justify-content: flex-end; min-width: 0; }
.tk-lch-sp .core-spark { width: 56px; height: 20px; }
/* луч вызовов: дорожка дней (прошлое — светится, остаток дня — пунктиром), «сейчас», точки вызовов */
.tk-l-beam { grid-area: beam; position: relative; min-width: 0; margin-top: 22px; }
.tk-lb-tr { position: relative; height: 32px; }
.tk-lb-tr::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 999px; background: rgba(var(--k-on), .07); box-shadow: inset 0 0 0 1px rgba(var(--k-on), .04); }
.tk-lb-past { position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 999px; background: linear-gradient(90deg, rgba(109, 40, 217, .5), #a78bfa 78%, #ddd6fe); box-shadow: 0 0 14px rgba(167, 139, 250, .45); }
.tk-lb-fut { position: absolute; right: 0; top: 50%; height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, rgba(var(--k-mu), .34) 0 5px, transparent 5px 10px); }
.tk-lb-sep { position: absolute; top: 5px; bottom: 5px; width: 1px; margin-left: -.5px; background: rgba(var(--k-on), .2); }
.tk-lb-now { position: absolute; top: -2px; bottom: -2px; z-index: 1; width: 2px; margin-left: -1px; border-radius: 2px; background: #fff; box-shadow: 0 0 10px rgba(var(--k-li), .95), 0 0 22px rgba(167, 139, 250, .7); }
.tk-lb-d { position: absolute; top: 50%; z-index: 2; width: var(--d); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2); padding: 0; border: 0; border-radius: 50%; cursor: pointer; font: inherit;
  background: radial-gradient(circle at 34% 30%, rgba(var(--k-on), .9) 0 9%, var(--c) 52%, color-mix(in srgb, var(--c) 62%, #1b1140) 100%);
  box-shadow: 0 0 0 2px rgba(var(--k-dk, 15, 10, 38), .85), 0 0 12px var(--c); transition: transform .18s cubic-bezier(.2, .8, .2, 1), opacity .2s, box-shadow .2s; }
/* наведение — ореол, почти без роста: до соседней точки (зазор 5 px) не достаёт */
.tk-lb-d:hover, .tk-lb-d.is-hot { z-index: 4; transform: scale(1.06); box-shadow: 0 0 0 2px rgba(var(--k-dk, 15, 10, 38), .85), 0 0 0 3px color-mix(in srgb, var(--c) 55%, transparent), 0 0 20px var(--c); }
.tk-lb-d.is-dim { opacity: .2; box-shadow: 0 0 0 2px rgba(var(--k-dk, 15, 10, 38), .85); }
/* слитая точка — кольцо долей агентов и число вызовов внутри */
.tk-lb-d.is-grp { display: inline-flex; align-items: center; justify-content: center; background: conic-gradient(var(--g)); }
.tk-lb-d.is-grp::before { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #3d2c80, #1a1040 72%); }
.tk-lb-d.is-grp > b { position: relative; font-size: 11px; line-height: 1; font-weight: 700; color: var(--k-hi); font-variant-numeric: tabular-nums; }
.tk-lb-tip span.is-dim { opacity: .45; }
.tk-lcore.is-intro .tk-lb-d { animation: tk-dot-in .55s var(--i, 0ms) cubic-bezier(.2, .8, .2, 1) both; }
.tk-lcore.is-intro .tk-lb-past { animation: tk-fill 1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tk-dot-in { from { transform: scale(0); opacity: 0; } }
.tk-lb-x { position: relative; height: 16px; margin-top: 8px; }
.tk-lb-t { position: absolute; top: 0; transform: translateX(-50%); font-size: 11px; line-height: 16px; color: var(--k-mut2); white-space: nowrap; }
.tk-lb-t.is-0 { transform: none; }
.tk-lb-t.is-day { color: var(--k-mut); font-weight: 650; }
.tk-lb-t.is-fut { opacity: .62; }
.tk-lb-t.is-now { color: var(--k-hi); font-weight: 650; text-shadow: 0 0 12px rgba(var(--k-li), .8); }
.core .tk-lb-tip { min-width: 190px; max-width: 300px; white-space: normal; background: rgba(var(--k-dk, 19, 12, 46), .98); }
.core .tk-lb-tip span i { border-radius: 50%; }
.core .tk-lb-tip .tk-lb-tc { color: var(--k-mut2); }
/* поиск и выгрузка — нижней строкой ядра */
.tk-l-tools { grid-area: tools; display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--k-line); }
.tk-l-tools .search { width: min(340px, 100%); }
/* дни — панели ядра */
.tk-groups { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.tk-groups > .core + .core { margin-top: 0; }
.tk-day { padding: 0; border-radius: 18px; }
.tk-day.is-none { padding: 18px; }
.tk-gh { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 18px; border: 0; border-radius: inherit; background: none; color: var(--k-ink); font: inherit; text-align: left; cursor: pointer; transition: background .15s; }
.tk-gh:hover { background: rgba(var(--k-on), .035); }
.tk-gh:focus-visible { outline: 2px solid var(--k-lilac); outline-offset: -2px; }
.tk-gh-c { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 999px; border: 1px solid var(--k-line); background: rgba(var(--k-on), .06); color: var(--k-mut); }
.tk-gh-c > svg { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.tk-day.is-open .tk-gh-c > svg { transform: rotate(180deg); }
.tk-gh:hover .tk-gh-c { color: var(--k-hi); border-color: rgba(var(--k-li), .4); }
.tk-gh-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
.tk-gh-t b { font-size: 15px; font-weight: 640; letter-spacing: -.01em; color: var(--k-hi); }
.tk-gh-t em { font-style: normal; font-size: 12.5px; color: var(--k-mut2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-gh-s { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; flex: 0 0 auto; }
.tk-gh-s b { font-size: 16px; font-weight: 650; white-space: nowrap; color: var(--k-hi); font-variant-numeric: tabular-nums; }
.tk-gh-s em { font-style: normal; font-size: 12.5px; color: var(--k-mut2); white-space: nowrap; }
.tk-day .tbl-wrap { border: 0; border-top: 1px solid var(--k-line); border-radius: 0; background: none; }
.tk-tbl td { padding: 11px 14px; }
.tk-tbl td:nth-child(2) { min-width: 222px; }
.tk-tbl td:nth-child(2) .t-main em, .tk-tbl .t-main em { color: var(--k-mut2); }
.tk-t { font-weight: 650; white-space: nowrap; color: var(--k-hi); font-variant-numeric: tabular-nums; }
.tk-who { display: inline-flex; align-items: center; gap: 7px; }
.tk-who > i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 999px; background: var(--c, var(--k-violet)); box-shadow: 0 0 8px var(--c, var(--k-violet)); }
.tk-ell { display: block; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-tok b { font-size: 13px; font-weight: 560; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* полоска токенов вызова: из кэша (мятный) · новый вход (лиловый) · ответ (сиреневый) — со свечением */
.tk-tbar { display: flex; gap: 2px; width: 112px; height: 5px; margin: 7px 0 2px auto; border-radius: 999px; }
.tk-tbar > i { display: block; min-width: 0; border-radius: 999px; transition: filter .2s, box-shadow .2s; }
.tk-tbar > i.is-c { background: linear-gradient(90deg, #0f766e, #2dd4bf 70%, #99f6e4); box-shadow: 0 0 8px rgba(94, 234, 212, .5); }
.tk-tbar > i.is-f { background: linear-gradient(90deg, #6d28d9, #a78bfa); box-shadow: 0 0 8px rgba(167, 139, 250, .55); }
.tk-tbar > i.is-o { background: #e9d5ff; box-shadow: 0 0 8px rgba(233, 213, 255, .7); }
.tk-tbl tbody tr.is-click:hover .tk-tbar > i, .tk-tbl tbody tr.is-hot .tk-tbar > i { filter: brightness(1.15) saturate(1.2); }
/* строка вызова: кромка цвета агента при наведении и у строки, чья точка подсвечена на луче */
.tk-tbl tbody tr.is-click td:first-child { box-shadow: inset 0 0 0 transparent; transition: box-shadow .2s, background .15s; }
.tk-tbl tbody tr.is-click:hover td:first-child, .tk-tbl tbody tr.is-hot td:first-child { box-shadow: inset 3px 0 0 var(--c, var(--k-violet)); }
.tk-tbl tbody tr.is-hot td { background: rgba(167, 139, 250, .09); }
.tk-pr { font-weight: 650; white-space: nowrap; color: var(--k-hi); font-variant-numeric: tabular-nums; }
.tk-tok-in { display: none; }
.tbl tbody tr.is-click:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.core .tbl tbody tr.is-click:focus-visible { outline: none; }
.tk-modal:focus-visible { outline: none; }

/* ── Окно вызова (r8): тело — панель ядра; цена крупно, кольцо «из кэша», полоска токенов с долями ── */
.tk-callm .sb { padding: 16px 18px 18px; }
.tk-cw { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 10px; }
.tk-cw-top { display: flex; align-items: center; gap: 22px; }
.tk-cw-ring { flex: 0 0 auto; }
.tk-cw-main { display: flex; flex-direction: column; gap: 14px; flex: 1 1 auto; min-width: 0; }
.tk-cw-v { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tk-cw-tok { display: flex; flex-direction: column; gap: 9px; }
.tk-tbar.is-big { width: 100%; height: 10px; margin: 0; gap: 3px; }
.tk-cw-lg { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.tk-cw-lg li { display: inline-flex; align-items: baseline; gap: 7px; font-size: 12.5px; line-height: 17px; color: var(--k-mut); }
.tk-cw-lg li > i { flex: 0 0 auto; align-self: center; width: 8px; height: 8px; border-radius: 50%; }
.tk-cw-lg li.is-c > i { background: #5eead4; box-shadow: 0 0 8px rgba(94, 234, 212, .7); }
.tk-cw-lg li.is-f > i { background: #a78bfa; box-shadow: 0 0 8px rgba(167, 139, 250, .7); }
.tk-cw-lg li.is-o > i { background: #e9d5ff; box-shadow: 0 0 8px rgba(233, 213, 255, .7); }
.tk-cw-lg b { font-size: 15px; font-weight: 650; color: var(--k-hi); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tk-cw-lg li.is-c b { color: var(--k-mint-ink); }
.tk-cw-lg li.is-none > i { background: rgba(var(--k-on), .22); box-shadow: none; }
.tk-cw .kvs { padding-top: 4px; border-top: 1px solid var(--k-line); }
/* низкое окно (1100×560): окно вызова целиком, без прокрутки */
@media (max-height: 640px) {
  .tk-callm .sb { padding: 12px 16px 14px; }
  .tk-cw { gap: 10px; padding: 14px 18px 6px; }
  .tk-cw-ring .core-ring { --rs: 92px !important; }
  .tk-cw-main { gap: 10px; }
  .tk-cw .kv { padding: 7px 0; }
}

/* ══ Узкая колонка ════════════════════════════════════════════════════════════════════ */
/* ~1000 px и уже (окно 1100): пакеты и «Оплатить» — сразу под балансом, чтобы были в первом экране 1100×560;
   луч и «что дал Продажник» — ниже. «Расход»: итог и столбцы — первыми, выбранный день — под ними, «кто тратит» и плитки — ниже */
@container tk (max-width: 1000px) {
  .tk-core { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ring stat" "store store" "beam beam" "gain gain"; column-gap: 24px; padding: 20px 22px 20px; }
  .tk-gain { margin-top: 18px; }
  .tk-gain ul { grid-template-columns: repeat(2, auto minmax(0, 1fr)); column-gap: 12px; }
  .tk-ring { width: 128px; height: 128px; }
  .tk-ring-c b { font-size: 36px; }
  .tk-ring-c em { font-size: 9px; line-height: 11px; }
  .tk-ring-c b + em { margin-top: 4px; }
  .tk-bal b { font-size: 46px; }
  .tk-bal small { font-size: 22px; }
  .tk-beam { margin-top: 20px; padding-top: 58px; border-top: 1px solid var(--k-line); }
  .tk-store { margin-top: 16px; padding-top: 14px; gap: 10px; }
  .tk-pk { padding: 14px 13px 12px; gap: 6px; }
  .tk-pk-p, .tk-pk-in input { font-size: 19px; }
  .tk-pk-in i { font-size: 16px; }
  .tk-pk-d { font-size: 12px; line-height: 16px; }
  .tk-pk-b { font-size: 11px; padding: 0 6px; }
  .tk-sum-v b { font-size: 22px; }
  .tk-pay { height: 46px; padding: 0 22px; }
  .tk-low { grid-template-columns: minmax(0, 1fr); }
  .tk-ucore { gap: 14px; padding: 18px 20px 14px; }
  .tk-u-top { order: 1; }
  .tk-u-mid { order: 2; display: flex; flex-direction: column-reverse; gap: 14px; }
  .tk-u-day { order: 3; }
  .tk-u-tiles { order: 4; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tk-u-who { flex-direction: row; align-items: center; gap: 18px; padding: 10px 14px; }
  .tk-dn { width: 92px; height: 92px; }
  .tk-u-ags { flex: 1 1 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
  .tk-uc { min-height: 196px; }
  .tk-uc-plot { min-height: 168px; }
  /* строки задач: число вызовов уходит в раскрытую строку, столбики — уже */
  .tk-tr-h { grid-template-columns: minmax(0, 1.4fr) minmax(90px, .9fr) minmax(100px, .8fr) 72px 20px; gap: 12px; }
  .tk-tr-q { display: none; }
  .tk-tr-d .tk-tr-dq { display: flex; }
  .tk-flow2 { grid-template-columns: minmax(0, 1fr); }
  .tk-flow { padding: 18px 18px 16px; }
  /* «Логи» (окно 1100): итог, «кто запускал» и луч — в первом экране 1100×560, под ними видна шапка первого дня */
  .tk-lcore { grid-template-columns: auto minmax(0, 1fr) minmax(244px, 272px); column-gap: 18px; padding: 16px 18px 14px; }
  .tk-l-ring .core-ring { --rs: 92px !important; }
  .tk-l-ring .core-ring-c em { margin-top: 3px; font-size: 9.5px; letter-spacing: .1em; }
  .tk-l-stat { gap: 4px; }
  .tk-l-stat .core-big b { font-size: 40px; }
  .tk-l-stat .core-big small { font-size: 20px; }
  .tk-l-stat .core-sub { font-size: 12.5px; line-height: 17px; }
  .tk-l-who { gap: 6px; padding: 10px 8px 8px 10px; }
  .tk-lch { grid-template-columns: 8px minmax(0, 1fr) auto 40px; gap: 8px; padding: 4px 6px; font-size: 12.5px; line-height: 17px; }
  .tk-lch-sp .core-spark { width: 40px; height: 16px; }
  .tk-l-beam { margin-top: 12px; }
  .tk-lb-x { margin-top: 6px; }
  .tk-l-tools { margin-top: 8px; padding-top: 10px; }
}
@container tk (max-width: 760px) {
  .tk-tr-h { grid-template-columns: minmax(0, 1fr) minmax(90px, .8fr) 70px 20px; }
  .tk-tr-sp { display: none; }
  .tk-tr-d { padding-left: 14px; }
  .tk-packs { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
  .tk-gain ul { grid-template-columns: auto minmax(0, 1fr); }
  .tk-tokc { display: none; }
  .tk-tok-in { display: inline; }
  .tk-tbl td { padding: 10px 10px; }
  .tk-tbl td:nth-child(2) { min-width: 0; }
  .tk-ell { max-width: 180px; }
  .tk-u-ags { grid-template-columns: minmax(0, 1fr); }
  .tk-uc-bars { gap: 2px; }
  /* «Логи» уже: «кто запускал» — строкой стеклянных меток под лучом */
  .tk-lcore { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ring stat" "beam beam" "who who" "tools tools"; }
  .tk-l-who { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 14px; padding: 8px 10px; }
  .tk-l-who > .core-kick { padding: 0 4px 0 2px; }
  .tk-lchs { flex-direction: row; flex-wrap: wrap; gap: 4px 6px; }
  .tk-lch { width: auto; grid-template-columns: 8px auto auto 40px; }
  .tk-lch > b:empty { display: none; }
}
@container tk (max-width: 560px) {
  .tk-ogc { grid-template-columns: 74px minmax(0, 1fr); grid-template-areas: "r t" "r v" "l l"; }
  .tk-ogc-l { margin-top: 8px; }
  .tk-core { grid-template-columns: minmax(0, 1fr); grid-template-areas: "ring" "stat" "beam" "store" "gain"; justify-items: start; row-gap: 14px; }
  .tk-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-bal b { font-size: 40px; }
  .tk-meth { grid-template-columns: minmax(0, 1fr); }
  .tk-au { grid-template-columns: minmax(0, 1fr); }
  .tk-u-who { flex-direction: column; align-items: stretch; }
  .tk-lcore { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stat" "beam" "who" "tools"; }
  .tk-l-ring { display: none; }
  .tk-l-tools .search { width: 100%; }
  .tk-cw-top { gap: 14px; }
}
@container tk (max-width: 440px) {
  .tk-u-tiles { grid-template-columns: minmax(0, 1fr); }
}

/* ── Меньше движения — по желанию системы ── */
@media (prefers-reduced-motion: reduce) {
  .tk-core-fx i, .tk-bm-now::after, .tk-pay, .tk-core.is-intro *, .tk-core.is-charge *, .tk-core.is-charge::after, .tk-ok-ic svg *, .tk-ok-v,
  .tk-deck-it.is-leave, .tk-scan, .tk-uc.is-grow .tk-uc-st, .tk-dn-s, .tk-paper-st, .tk-pm-st.is-busy .tk-c3-f::after,
  .tk-tr.is-in, .tk-tr.is-in .tk-tr-sp > i, .tk-tr.is-in .tk-tr-bar > i, .tk-tr-d, .tk-mr-a, .tk-lm-bar > i,
  .tk-lcore.is-intro .tk-lb-d, .tk-lcore.is-intro .tk-lb-past { animation: none !important; }
  .tk-bm-now, .tk-bm-add, .tk-bm-auto, .tk-pin, .tk-pk, .tk-deck-it, .tk-c3-in, .tk-paper, .tk-ut, .tk-tr, .tk-ogc, .tk-lm-bar > i,
  .tk-lb-d, .tk-lch, .tk-hr, .tk-gh-c > svg, .tk-au-deck { transition: none !important; }
  .tk-lb-d:hover, .tk-lb-d.is-hot { transform: none; }
  .tk-ok-ic svg circle, .tk-ok-ic svg path { stroke-dashoffset: 0; }
}

/* FIN (18.11): режим сервера — карта провайдера в автопополнении, промокод у тарифа, расход по дням и «кто тратит» */
.tk-au-card { display: flex; align-items: flex-start; gap: 8px; margin: 0; max-width: 340px; font-size: 13px; line-height: 19px; color: var(--k-mut); }
.tk-au-card > svg { flex: 0 0 auto; margin-top: 2px; }
.tk-promo { display: flex; align-items: center; gap: 12px; padding: 4px 0 2px; }
.tk-promo .inp { width: 200px; max-width: 100%; text-transform: uppercase; }
.tk-sbars { display: flex; align-items: flex-end; gap: 3px; height: 90px; margin: 14px 0 4px; }
.tk-sb { flex: 1 1 0; min-width: 2px; height: var(--h); border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, var(--k-acc, #8b6cf6), color-mix(in srgb, var(--k-acc, #8b6cf6) 45%, transparent)); opacity: .9; }
.tk-sb.is-we { opacity: .55; }
.tk-who { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.tk-who li { display: flex; justify-content: space-between; gap: 12px; min-width: 0; }
.tk-who li b { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.tk-who li span { white-space: nowrap; font-variant-numeric: tabular-nums; }
