/* TikTok Turbo styles. Colour tokens come from the panel-v2 design; Task 9 extends this file. */
:root {
  --bg:#f5f7fb;--surface:#ffffff;--surface2:#f8fafd;--hover:#f3f6fb;--sel:#f2f7ff;
  --text:#1e2022;--text2:#677788;--text3:#8c98a4;--line:#e7eaf3;--line2:#d8deea;
  --primary:#377dff;--primary-h:#1f66eb;--primary-soft:rgba(55,125,255,.1);
  --ink:#1e2022;--ink-fg:#ffffff;--canvas:#e6eaf2;
  --shadow:0 14px 40px rgba(30,32,34,.16),0 2px 6px rgba(30,32,34,.06);
  --warn:oklch(0.72 0.16 62);--warn-fg:oklch(0.5 0.13 55);
  --danger:oklch(0.57 0.2 25);--danger-fg:oklch(0.52 0.19 25);--ok-fg:oklch(0.5 0.12 150);
  color-scheme:light;
}
:root[data-tt="dark"] {
  --bg:#0e1115;--surface:#151920;--surface2:#1a1f27;--hover:#1d232c;--sel:#16202f;
  --text:#e4e7eb;--text2:#97a3b3;--text3:#6f7b8a;--line:#252b34;--line2:#333a45;
  --primary:#4f8dff;--primary-h:#79a8ff;--primary-soft:rgba(79,141,255,.16);
  --ink:#e4e7eb;--ink-fg:#0e1115;--canvas:#07080a;
  --shadow:0 14px 44px rgba(0,0,0,.55);
  --warn:oklch(0.74 0.15 65);--warn-fg:oklch(0.82 0.12 72);
  --danger:oklch(0.6 0.2 25);--danger-fg:oklch(0.75 0.15 25);--ok-fg:oklch(0.78 0.12 150);
  color-scheme:dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tt="light"]) {
    --bg:#0e1115;--surface:#151920;--surface2:#1a1f27;--hover:#1d232c;--sel:#16202f;
    --text:#e4e7eb;--text2:#97a3b3;--text3:#6f7b8a;--line:#252b34;--line2:#333a45;
    --primary:#4f8dff;--primary-h:#79a8ff;--primary-soft:rgba(79,141,255,.16);
    --ink:#e4e7eb;--ink-fg:#0e1115;--canvas:#07080a;
    --shadow:0 14px 44px rgba(0,0,0,.55);
    --warn:oklch(0.74 0.15 65);--warn-fg:oklch(0.82 0.12 72);
    --danger:oklch(0.6 0.2 25);--danger-fg:oklch(0.75 0.15 25);--ok-fg:oklch(0.78 0.12 150);
    color-scheme:dark;
  }
}

/* Login */
* { box-sizing: border-box; }
body.tt-login-page {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 13px; line-height: 1.4;
}
.tt-login-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; }
.tt-login {
  width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 14px;
  padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.tt-login h1 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.tt-brand { display: flex; align-items: center; gap: 10px; }
.tt-logo {
  width: 30px; height: 30px; border-radius: 8px; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px;
}
.tt-brand-name { font-weight: 700; font-size: 14.5px; }
.tt-login label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; color: var(--text2); }
.tt-login input {
  height: 38px; padding: 0 12px; font: inherit; font-size: 13.5px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line2); border-radius: 6px;
}
.tt-login input:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
.tt-login input[aria-invalid="true"] { border-color: var(--danger); }
.tt-login input:disabled { background: var(--surface2); color: var(--text3); }
.tt-login button {
  height: 38px; border: 0; border-radius: 6px; background: var(--primary); color: #fff;
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.tt-login button:hover { background: var(--primary-h); }
.tt-login button:disabled { opacity: .5; cursor: default; }
.tt-err { color: var(--danger-fg); font-size: 12.5px; }
.tt-err code { font-family: ui-monospace, Consolas, monospace; }
.tt-small { margin: 0; font-size: 12px; color: var(--text3); }
.tt-notice { font-size: 12.5px; color: var(--ok-fg); }

/* Shell (panel-v2 design) */
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-h); text-decoration: underline; }
input::placeholder, textarea::placeholder { color: var(--text3); }
.ms {
  font-family: 'Material Symbols Rounded'; font-weight: 400; font-style: normal; line-height: 1;
  font-size: 20px; letter-spacing: normal; text-transform: none; white-space: nowrap; word-wrap: normal;
  direction: ltr; display: inline-block; flex: none; -webkit-font-smoothing: antialiased;
  font-feature-settings: 'liga'; font-variation-settings: 'FILL' 0;
  user-select: none;
}
.tt-body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Inter, system-ui, -apple-system, sans-serif; font-size: 13px; line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
.tt-app { position: relative; display: flex; height: 100vh; height: 100dvh; overflow: hidden; background: var(--bg); }
.tt-logo {
  width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; letter-spacing: -.02em;
}

.tt-side { width: 228px; flex: none; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); }
.tt-side-brand { height: 60px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.tt-brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.tt-side .tt-brand-name { font-weight: 700; font-size: 14.5px; letter-spacing: -.01em; }
.tt-brand-sub { font-size: 11.5px; color: var(--text2); }
.tt-nav { display: flex; flex-direction: column; gap: 2px; padding: 16px 10px; }
.tt-nav-head { padding: 0 10px 8px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); }
.tt-nav-item {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 6px;
  color: var(--text); font-size: 13.5px; font-weight: 500;
}
.tt-nav-item:hover { color: var(--primary); text-decoration: none; }
.tt-nav-item .tt-nav-icon { color: var(--text2); }
.tt-nav-item.is-active { background: var(--primary-soft); color: var(--primary); }
.tt-nav-item.is-active .tt-nav-icon { color: var(--primary); font-variation-settings: 'FILL' 1; }
.tt-nav-label { flex: 1; }
.tt-nav-count { font-size: 12px; color: var(--text3); font-variant-numeric: tabular-nums; }
.tt-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center;
}

.tt-col { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.tt-head {
  height: 60px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 24px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.tt-logo-head { display: none; }
.tt-head-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.tt-head h1 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.tt-head-sub { font-size: 12px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-assist-switch {
  flex: none; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 8px;
  border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--text);
  font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.tt-assist-switch[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); }
.tt-switch { position: relative; width: 30px; height: 18px; flex: none; border-radius: 9px; background: var(--line2); transition: background .15s; }
.tt-switch-knob {
  position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 7px; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s;
}
.tt-assist-switch[aria-pressed="true"] .tt-switch { background: var(--primary); }
.tt-assist-switch[aria-pressed="true"] .tt-switch-knob { left: 14px; }
.tt-assist-short { display: none; }
.tt-theme-btn {
  flex: none; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text2); cursor: pointer; padding: 0;
}
.tt-theme-btn:hover { color: var(--primary); }
.tt-logout { margin: 0; flex: none; }
.tt-avatar {
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 16px; background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}

.tt-assist-banner {
  display: none; flex: none; align-items: center; gap: 10px; padding: 10px 24px;
  background: var(--ink); color: var(--ink-fg); font-size: 13px; line-height: 1.35;
}
[data-assistant="1"] .tt-assist-banner { display: flex; }
.tt-assist-text { flex: 1; min-width: 0; text-wrap: pretty; }
.tt-assist-text b { font-weight: 600; }
.tt-assist-exit {
  flex: none; height: 32px; padding: 0 12px; border: 1px solid currentColor; border-radius: 6px;
  background: transparent; color: inherit; font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer;
}
/* in the assistant view anything that edits, reveals or copies is gone (pages mark it .tt-edit) */
[data-assistant="1"] .tt-edit { display: none !important; }

.tt-stage { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }
.tt-main { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 16px 24px 32px; }
.tt-page { display: flex; flex-direction: column; gap: 12px; max-width: 1480px; margin: 0 auto; }

.tt-summary { display: flex; align-items: center; gap: 6px 4px; flex-wrap: wrap; }
.tt-sum {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px;
  border-radius: 7px; color: var(--text); white-space: nowrap;
}
.tt-sum:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.tt-sum-label { font-size: 12.5px; color: var(--text2); }
.tt-sum-n { font-size: 15.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tt-sum-extra { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--danger-fg); }
.tt-hot-debt .tt-sum-n { color: var(--danger-fg); }
.tt-hot-px .tt-sum-n { color: var(--warn-fg); }
.tt-sum-sep { width: 1px; height: 18px; flex: none; background: var(--line2); margin: 0 4px; }

.tt-toast {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 8px; max-width: calc(100% - 32px); box-sizing: border-box;
  padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--ink-fg);
  font-size: 13px; box-shadow: var(--shadow); white-space: nowrap;
}
.tt-toast[hidden] { display: none; }
.tt-toast .ms { font-size: 18px; }
.tt-toast span:last-child { overflow: hidden; text-overflow: ellipsis; }

.tt-tabs { display: none; }

/* ------------------------------------------------------------------ bundles page (Task 10) */
[hidden] { display: none !important; }
.tt-num { font-variant-numeric: tabular-nums; }
.tt-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; }
.tt-muted { color: var(--text2); }
.tt-none { color: var(--text3); }
.tt-okfg { color: var(--ok-fg); }
.tt-warnfg { color: var(--warn-fg); }
.tt-strong { font-weight: 500; }
.tt-sm { font-size: 12px; }
.tt-xs { font-size: 11.5px; }
.tt-ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tt-lh24 { line-height: 24px; }
.tt-phone-only { display: none !important; }
.tt-offscreen { position: fixed; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; }

/* status colours (the design's ST table): every status-aware piece reads var(--c) */
.st-new { --c: oklch(0.64 0.03 250); }
.st-built { --c: oklch(0.58 0.16 300); }
.st-card { --c: oklch(0.62 0.11 205); }
.st-mod { --c: oklch(0.74 0.15 82); }
.st-work { --c: oklch(0.63 0.16 150); }
.st-pause { --c: oklch(0.52 0.04 255); }
.st-problem { --c: oklch(0.67 0.18 48); }
.st-ban { --c: oklch(0.58 0.21 25); }
.st-archive { --c: oklch(0.7 0.01 250); }
.tt-dot { width: 6px; height: 6px; flex: none; border-radius: 3px; background: var(--c, var(--text3)); }

/* tones (the design's TONE table) */
.tt-tone-danger { background: color-mix(in oklch, var(--danger) 14%, transparent); color: var(--danger-fg); }
.tt-tone-warn { background: color-mix(in oklch, var(--warn) 22%, transparent); color: var(--warn-fg); }
.tt-tone-ok { background: color-mix(in oklch, oklch(0.63 0.16 150) 15%, transparent); color: var(--ok-fg); }
.tt-tone-mute { background: var(--surface2); color: var(--text2); }

/* buttons */
.tt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 12px;
  border: 1px solid var(--line2); border-radius: 7px; background: var(--surface); color: var(--text);
  font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.tt-btn .ms { font-size: 18px; }
.tt-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.tt-btn:disabled { cursor: not-allowed; color: var(--text2); }
.tt-btn-sm { height: 32px; padding: 0 12px 0 9px; font-size: 12.5px; }
.tt-btn-sm .ms { font-size: 17px; }
.tt-btn-primary { border: 0; background: var(--primary); color: #fff; font-weight: 600; padding: 0 14px 0 10px; }
.tt-btn-primary:hover:not(:disabled) { background: var(--primary-h); color: #fff; }
.tt-btn-primary:disabled { color: #fff; opacity: .6; }
.tt-btn-ico { width: 44px; height: 44px; padding: 0; }
.tt-ico {
  flex: none; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--text3); cursor: pointer;
}
.tt-ico .ms { font-size: 15px; }
.tt-ico[data-reveal] .ms { font-size: 16px; }
.tt-ico:hover, .tt-ico.is-on { color: var(--primary); }
.tt-ico:hover { background: var(--hover); }
.tt-ico-pull { margin-left: -4px; }

/* counters strip: the active filter, the sync note and the disabled refresh */
.tt-sum.is-active { background: var(--primary-soft); }
.tt-sum.is-active .tt-sum-label, .tt-sum.is-active .tt-sum-n { color: var(--primary); }
.tt-sum-sync { margin-left: auto; flex: none; display: flex; align-items: center; gap: 10px; padding-left: 12px; }
.tt-sum-synced { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text2); white-space: nowrap; }
.tt-sum-synced .ms { font-size: 15px; }

/* toolbar and chips */
.tt-bundles { display: flex; flex-direction: column; gap: 12px; }
.tt-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tt-search {
  flex: 1 1 260px; max-width: 380px; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 7px; color: var(--text3);
}
.tt-search:focus-within { border-color: var(--primary); }
.tt-search .ms { font-size: 18px; }
.tt-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text);
  font: inherit; font-size: 13px; -webkit-appearance: none; appearance: none;
}
.tt-toolbar-btns { display: flex; gap: 8px; margin-left: auto; }
.tt-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tt-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.tt-chip .tt-dot { width: 7px; height: 7px; border-radius: 4px; }
.tt-chip-ico { font-size: 14px; color: var(--c); }
.tt-chip-issues { --c: var(--danger); }
.tt-chip-n { font-size: 11.5px; color: var(--text3); font-variant-numeric: tabular-nums; }
.tt-chip.is-active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.tt-chip.is-active .tt-chip-n { color: var(--primary); }
.tt-chip-sep { width: 1px; height: 20px; flex: none; background: var(--line2); margin: 0 4px; }
.tt-chip-arrow { font-size: 16px; color: var(--text3); margin: 0 -3px; }
.tt-empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--text2);
}

/* the table: rows grouped per bundle; bundle, account and proxy cells span the cabinet sub-rows */
.tt-table { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; }
.tt-table-in { min-width: 1180px; }
.tt-grid {
  display: grid;
  grid-template-columns: minmax(170px,1fr) minmax(220px,1.3fr) minmax(180px,1fr) minmax(150px,.85fr) minmax(190px,1.05fr) minmax(120px,.7fr) minmax(130px,.85fr);
}
.tt-thead { background: var(--surface2); font-size: 11.5px; font-weight: 600; color: var(--text2); letter-spacing: .01em; border-radius: 8px 8px 0 0; }
.tt-th { padding: 9px 12px; display: flex; align-items: center; gap: 4px; }
.tt-th.tt-c1 { padding-left: 16px; }
.tt-th-ico { font-size: 14px; color: var(--text3); }
.tt-row { border-top: 1px solid var(--line); cursor: pointer; }
.tt-row:hover { background: var(--hover); }
.tt-row.is-sel, .tt-row.is-sel:hover { background: var(--sel); box-shadow: inset 3px 0 0 var(--primary); }
.tt-row.is-archived, .tt-card.is-archived { opacity: .6; }
.tt-td { padding: 11px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tt-gap3 { gap: 3px; }
.tt-c1 { grid-column: 1; padding-left: 16px; gap: 3px; }
.tt-c2 { grid-column: 2; }
.tt-c3 { grid-column: 3; gap: 2px; }
.tt-c4 { grid-column: 4; }
.tt-c5 { grid-column: 5; }
.tt-c6 { grid-column: 6; }
.tt-c7 { grid-column: 7; flex-direction: row; flex-wrap: wrap; gap: 4px; align-content: flex-start; }
.tt-thead > .tt-th { grid-column: auto; }
.tt-r1 { grid-row: 1; } .tt-r2 { grid-row: 2; } .tt-r3 { grid-row: 3; } .tt-r4 { grid-row: 4; } .tt-r5 { grid-row: 5; }
.tt-r6 { grid-row: 6; } .tt-r7 { grid-row: 7; } .tt-r8 { grid-row: 8; } .tt-r9 { grid-row: 9; } .tt-r10 { grid-row: 10; }
.tt-span-1 { grid-row: 1 / span 1; } .tt-span-2 { grid-row: 1 / span 2; } .tt-span-3 { grid-row: 1 / span 3; }
.tt-span-4 { grid-row: 1 / span 4; } .tt-span-5 { grid-row: 1 / span 5; } .tt-span-6 { grid-row: 1 / span 6; }
.tt-span-7 { grid-row: 1 / span 7; } .tt-span-8 { grid-row: 1 / span 8; } .tt-span-9 { grid-row: 1 / span 9; }
.tt-span-10 { grid-row: 1 / span 10; }
.tt-cab-next { border-top: 1px dashed var(--line2); }
.is-dim { opacity: .4; }
.tt-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tt-line-tight { gap: 2px; }

.tt-bname { font-weight: 600; font-size: 14px; line-height: 1.3; }
.tt-dolphin { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11.5px; color: var(--text2); }
.tt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 3px; }
.tt-count { font-size: 11px; font-weight: 500; color: var(--text2); background: var(--surface2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.tt-warn { width: 22px; height: 22px; flex: none; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; }
.tt-warn .ms { font-size: 15px; }
.tt-warn-lg { width: 24px; height: 24px; }
.tt-warn-lg .ms { font-size: 16px; }

.tt-pill {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 11px;
  background: color-mix(in oklch, var(--c) 15%, transparent); color: color-mix(in oklch, var(--c) 66%, var(--text));
  font-size: 12px; font-weight: 600; white-space: nowrap; flex: none;
}
.tt-pill .tt-dot { background: var(--c); }
.tt-pill .ms { font-size: 14px; }
.tt-since { margin-left: auto; font-size: 11.5px; color: var(--text3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tt-segs { display: flex; gap: 2px; flex: none; }
.tt-segs > span { width: 12px; height: 4px; border-radius: 2px; background: var(--line2); }
.tt-segs > span.on { background: var(--c); }
.tt-sub { font-size: 12px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tt-sub b, .tt-card-sub b { font-weight: 600; }
.tt-sub-plain { color: var(--text); }
.tt-sub-status { color: color-mix(in oklch, var(--c) 66%, var(--text)); }
.tt-sub-warn { color: var(--warn-fg); }
.tt-sub-mute { color: var(--text2); }

/* account cell; in the assistant view the values give way to «скрыто» */
.tt-acc-line { display: flex; align-items: center; gap: 2px; min-width: 0; }
.tt-acc-k { display: none; }
.tt-acc-v { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tt-acc-mail { font-size: 12px; font-weight: 400; color: var(--text2); }
.tt-pw {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; padding: 1px 4px; margin-left: -4px;
  border-radius: 4px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.tt-pw.is-shown { background: var(--primary-soft); color: var(--text); }
/* several lines of stored values: keep the breaks, wrap long tokens, never widen the page */
.tt-pw-block { white-space: pre-wrap; overflow-wrap: anywhere; text-overflow: clip; max-width: 100%; flex: 1; }
.tt-line-top { align-items: flex-start; }
.tt-hid {
  display: none; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border: 1px dashed var(--line2);
  border-radius: 4px; font-size: 11.5px; color: var(--text3); white-space: nowrap; flex: none;
}
.tt-hid .ms { font-size: 12px; }
[data-assistant="1"] .login, [data-assistant="1"] .email, [data-assistant="1"] .secret { display: none !important; }
[data-assistant="1"] .tt-hid { display: inline-flex; }
[data-assistant="1"] .tt-acc { gap: 5px; }
[data-assistant="1"] .tt-acc-line { gap: 8px; }
[data-assistant="1"] .tt-acc-k { display: inline; width: 44px; flex: none; font-size: 12px; color: var(--text3); }

/* proxy, cabinet and card, money, offers */
/* the design lets «Amsterdam, NL» push its days badge into the cell padding rather than cut it */
.tt-c4 { overflow: hidden; }
.tt-c4 > .tt-line:first-child { gap: 6px; }
.tt-place { font-size: 13px; font-weight: 500; white-space: nowrap; flex: none; }
.tt-days {
  margin-left: auto; flex: none; font-size: 11.5px; font-weight: 500; padding: 1px 6px; border-radius: 4px;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.tt-days.tt-tone-danger { background: var(--danger); color: #fff; font-weight: 600; }
.tt-days.tt-tone-warn { background: color-mix(in oklch, var(--warn) 24%, transparent); font-weight: 600; }
.tt-ip { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; color: var(--text2); white-space: nowrap; }
.tt-cabname { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tt-adv { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11.5px; color: var(--text3); white-space: nowrap; flex: none; }
.tt-cardline { gap: 6px; font-size: 12.5px; }
.tt-cardico { font-size: 16px; color: var(--text3); }
.tt-tag { flex: none; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.tt-td > .tt-none { font-size: 12px; }
.tt-bal { font-size: 13px; font-weight: 500; white-space: nowrap; }
.tt-m2 { font-size: 12px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-m2-danger { color: var(--danger-fg); font-weight: 600; }
.tt-m2.tt-m2-mute { white-space: normal; }
.tt-offers { display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start; }
.tt-tagbox { font-size: 12px; line-height: 18px; padding: 1px 7px; border-radius: 4px; background: var(--surface2); border: 1px solid var(--line); white-space: nowrap; }

/* phone cards (< 760 px) */
.tt-cards { display: none; flex-direction: column; gap: 10px; }
.tt-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tt-card.is-sel { border-color: var(--primary); }
.tt-card-head {
  width: 100%; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 6px 8px 12px;
  border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.tt-card-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tt-card-name { display: flex; align-items: center; gap: 8px; }
.tt-card-bname { font-size: 15px; font-weight: 600; }
.tt-card-warns { display: flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; max-width: 120px; }
.tt-card-chev { font-size: 22px; color: var(--text3); }
.tt-card-acc { border-top: 1px solid var(--line); }
.tt-cr {
  width: 100%; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px 0 12px; border: 0;
  border-bottom: 1px solid var(--line); background: transparent; color: inherit; font: inherit; text-align: left;
}
button.tt-cr { cursor: pointer; }
.tt-cr-k { width: 58px; flex: none; font-size: 12px; color: var(--text2); }
.tt-cr-v { flex: 1; min-width: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-cr .tt-pw { font-size: 13px; margin-left: 0; padding: 0; background: transparent; }
.tt-cr .tt-pw.is-shown { background: var(--primary-soft); padding: 1px 4px; }
.tt-cr-mail { font-size: 13px; }
.tt-cr-ico { width: 44px; flex: none; text-align: center; font-size: 18px; color: var(--text3); }
.tt-ico44 {
  width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center;
  padding: 0; border: 0; background: transparent; color: var(--text3); cursor: pointer;
}
.tt-ico44 .ms { font-size: 18px; }
.tt-ico44[data-reveal] .ms { font-size: 20px; }
.tt-ico44.is-on { color: var(--primary); }
.tt-cr-px { padding-right: 12px; border-bottom: 0; }
.tt-cr-stack { display: flex; flex-direction: column; line-height: 1.3; font-size: 13px; }
.tt-cr-px .tt-days { padding: 2px 7px; }
[data-assistant="1"] .tt-cr .tt-hid { height: 22px; padding: 0 8px; }
.tt-card-cab { border-top: 1px solid var(--line); padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 7px; cursor: pointer; }
.tt-card-cab .tt-pill { height: 24px; padding: 0 9px; border-radius: 12px; }
.tt-card-sub { font-size: 12.5px; color: var(--text2); text-wrap: pretty; }
.tt-card-kv { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 6px 8px; font-size: 12.5px; align-items: baseline; }
.tt-card-kv .tt-kv-k { font-size: 12px; color: var(--text2); }
.tt-card-kv .tt-line { gap: 6px; }

/* the drawer */
.tt-drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: 600px; max-width: 100%; z-index: 30;
  display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow);
}
.tt-dr { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tt-dr-head { flex: none; padding: 12px 12px 0 20px; border-bottom: 1px solid var(--line); }
.tt-dr-top { display: flex; align-items: flex-start; gap: 8px; }
.tt-dr-title { flex: 1; min-width: 0; padding-top: 2px; }
.tt-dr-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tt-dr-bname { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.tt-dr-reason { font-size: 12.5px; font-weight: 600; color: color-mix(in oklch, var(--c) 66%, var(--text)); }
.tt-dr-sub { font-size: 12px; color: var(--text2); margin-top: 3px; }
.tt-dr-close, .tt-dr-back {
  width: 36px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; background: transparent; color: var(--text2); cursor: pointer; padding: 0;
}
.tt-dr-close:hover, .tt-dr-back:hover { background: var(--hover); }
.tt-dr-close .ms, .tt-dr-back .ms { font-size: 22px; }
.tt-dr-back { display: none; width: 40px; height: 40px; margin-left: -8px; color: var(--text); }
.tt-dr-cabs { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; }
.tt-dr-cab {
  flex: none; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.tt-dr-cab .tt-dot { width: 7px; height: 7px; border-radius: 4px; }
.tt-dr-cab.is-active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.tt-dr-cab-st { font-size: 11.5px; color: var(--text3); }
.tt-dr-views { display: flex; gap: 20px; margin-top: 6px; }
.tt-dr-view {
  height: 34px; padding: 0; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent;
  color: var(--text2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.tt-dr-view.is-active { border-bottom-color: var(--primary); color: var(--text); }
.tt-dr-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 14px 20px 28px; }
.tt-alerts { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.tt-alert { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 7px; font-size: 12.5px; font-weight: 500; line-height: 1.35; }
.tt-alert .ms { font-size: 17px; flex: none; }
.tt-alert span:last-child { text-wrap: pretty; }
.tt-sync {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 8px 8px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface2);
}
.tt-sync-ico { font-size: 18px; color: var(--text2); }
.tt-sync-text { flex: 1; min-width: 160px; font-size: 12px; color: var(--text2); line-height: 1.35; }
.tt-sync-strong { color: var(--text); font-weight: 500; }
.tt-dsec { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.tt-dsec-last { border-bottom: 0; padding-bottom: 0; }
.tt-dsec-head { display: flex; align-items: center; gap: 8px; }
.tt-dsec-head.tt-baseline { align-items: baseline; }
.tt-dsec-title { font-size: 13.5px; font-weight: 600; }
.tt-dsec-ico { font-size: 18px; color: var(--text2); }
.tt-dsec-aside { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--text3); white-space: nowrap; }
.tt-dsec-aside .ms { font-size: 14px; }
.tt-baseline > .tt-dsec-aside { font-size: 12px; }
.tt-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.tt-step { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tt-step-bar { height: 4px; border-radius: 2px; background: var(--line2); }
.tt-step.on .tt-step-bar { background: var(--c); }
.tt-step-label { font-size: 11px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-step.on .tt-step-label { color: var(--text); }
.tt-step.cur .tt-step-label { font-weight: 600; }
.tt-dr-note { font-size: 13px; text-wrap: pretty; }
.tt-dnote { display: flex; gap: 10px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--text2); line-height: 1.45; }
.tt-dnote .ms { font-size: 18px; }

.tt-st-open { align-self: flex-start; }
.tt-stform { display: flex; flex-direction: column; gap: 10px; }
.tt-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.tt-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tt-field-wide { grid-column: 1 / -1; }
.tt-field-k { font-size: 12px; font-weight: 500; color: var(--text2); }
.tt-input {
  width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 7px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 13px; outline: 0;
}
select.tt-input { padding: 0 8px; }
.tt-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.tt-hint { display: flex; align-items: flex-start; gap: 6px; font-size: 11.5px; line-height: 1.35; color: var(--warn-fg); }
.tt-hint .ms { font-size: 15px; flex: none; }
.tt-stform-foot { display: flex; align-items: center; gap: 10px; }
.tt-stform-err { flex: 1; min-width: 0; font-size: 12.5px; color: var(--danger-fg); text-wrap: pretty; }

.tt-kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 9px 12px; align-items: baseline; font-size: 13px; }
.tt-kv > .tt-kv-k { font-size: 12.5px; color: var(--text2); }
.tt-flexw { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.tt-flexw.tt-baseline { align-items: baseline; }
.tt-kv-col { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tt-chipt { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.tt-chipt .ms { font-size: 14px; }
.tt-quote { padding: 8px 10px; border-radius: 6px; background: var(--surface2); border: 1px solid var(--line); font-size: 12.5px; line-height: 1.45; overflow-wrap: anywhere; }
.tt-req { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 10px 0 6px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.tt-req-ico { font-size: 20px; color: var(--text2); }
.tt-req.is-verify .tt-req-ico { color: var(--warn-fg); }
.tt-req.is-done .tt-req-ico { color: var(--primary); font-variation-settings: 'FILL' 1; }
.tt-req-t { flex: 1; min-width: 0; font-size: 13px; }
.tt-req.is-done .tt-req-t { color: var(--text3); text-decoration: line-through; }
.tt-req-since { font-size: 11.5px; color: var(--text3); white-space: nowrap; }
.tt-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tt-tile { display: flex; flex-direction: column; gap: 3px; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.tt-tile-k { font-size: 11.5px; color: var(--text2); white-space: nowrap; }
.tt-tile-v { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tt-tile-sub { font-size: 11.5px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-tile.is-empty .tt-tile-v { color: var(--text3); }
.tt-tile.is-danger { background: color-mix(in oklch, var(--danger) 9%, var(--surface)); border-color: color-mix(in oklch, var(--danger) 45%, var(--line)); }
.tt-tile.is-danger span { color: var(--danger-fg); }
.tt-tx { font-weight: 600; }
.tt-tx-danger { color: var(--danger-fg); }
.tt-tx-ok { color: var(--ok-fg); }
.tt-sib {
  align-self: flex-start; display: flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 8px; margin-left: -8px;
  border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; font-size: 12.5px; cursor: pointer;
}
.tt-sib:hover { background: var(--hover); }
.tt-sib-tt { font-weight: 500; color: var(--primary); }

.tt-hgroups { display: flex; gap: 2px; margin-bottom: 14px; background: var(--surface2); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.tt-hgroup {
  flex: 1; min-width: 0; height: 34px; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; color: var(--text2);
  font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tt-hgroup.is-active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.tt-hist-empty { margin-bottom: 8px; }
.tt-ev { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; }
.tt-ev-rail { position: relative; display: flex; justify-content: center; }
.tt-ev-rail::before { content: ""; position: absolute; top: 24px; bottom: 0; left: 11.5px; width: 1px; background: var(--line2); }
.tt-ev.is-last .tt-ev-rail::before, .tt-hist > .tt-ev:last-child .tt-ev-rail::before { display: none; }
.tt-ev-ico {
  position: relative; width: 24px; height: 24px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line2);
  display: flex; align-items: center; justify-content: center; color: var(--text2);
}
.tt-ev-ico .ms { font-size: 14px; }
.tt-ev-primary { color: var(--primary); }
.tt-ev-st { color: var(--c); }
.tt-ev-body { padding: 2px 0 16px; min-width: 0; }
.tt-ev-top { display: flex; align-items: baseline; gap: 8px; }
.tt-ev-title { flex: 1; min-width: 0; font-size: 13px; font-weight: 500; text-wrap: pretty; overflow-wrap: anywhere; }
.tt-ev-at { flex: none; font-size: 11.5px; color: var(--text3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tt-ev-sub { font-size: 12px; color: var(--text2); margin-top: 2px; text-wrap: pretty; overflow-wrap: anywhere; }

@media (max-width: 759px) {
  .tt-sum-sync { display: none; }
  .tt-wide-only { display: none; }
  button.tt-phone-only { display: inline-flex !important; }
  span.tt-phone-only { display: inline !important; }
  .tt-search { flex: 1 1 150px; max-width: none; height: 44px; }
  .tt-toolbar .tt-btn { height: 44px; min-width: 44px; }
  .tt-toolbar .tt-btn[data-modal="proxy"] { padding: 0; width: 44px; }
  .tt-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 0 12px 2px; }
  .tt-chip { height: 40px; border-radius: 20px; }
  .tt-table { display: none; }
  .tt-cards { display: flex; }
  .tt-drawer { width: 100%; border-left: 0; }
  .tt-dr-head { padding: 12px 12px 0; }
  .tt-dr-back { display: flex; }
  .tt-dr-close { display: none; }
  .tt-dr-cab, .tt-dr-view, .tt-hgroup { height: 44px; }
  .tt-dr-body { padding: 14px 12px 28px; }
  .tt-kv { grid-template-columns: 108px minmax(0, 1fr); }
  .tt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tt-req { min-height: 44px; }
  .tt-sync .tt-btn-sm { height: 40px; }
  .tt-form-grid { grid-template-columns: minmax(0, 1fr); }
  .tt-input { height: 44px; }
  .tt-stform .tt-btn { height: 44px; }
  .tt-ico { width: 40px; height: 40px; }
  .tt-tab-form { flex: 1; display: flex; margin: 0; }
  .tt-tab-out { border: 0; background: transparent; font: inherit; cursor: pointer; width: 100%; padding: 0; }
}

@media (max-width: 759px) {
  .tt-side { display: none; }
  .tt-head { padding: 0 12px; }
  .tt-logo-head { display: flex; }
  .tt-avatar { display: none; }
  .tt-assist-long { display: none; }
  .tt-assist-short { display: inline; }
  .tt-assist-switch, .tt-theme-btn { height: 44px; }
  .tt-theme-btn { width: 44px; }
  .tt-assist-banner { padding: 10px 12px; }
  .tt-main { padding: 10px 12px 20px; }
  .tt-summary { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 0 12px 2px; }
  .tt-toast { bottom: 78px; }
  .tt-tabs { flex: none; display: flex; border-top: 1px solid var(--line); background: var(--surface); padding-bottom: 4px; }
  .tt-tab {
    flex: 1; height: 58px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; color: var(--text2); font-size: 11px; font-weight: 500;
  }
  .tt-tab:hover { color: var(--primary); text-decoration: none; }
  .tt-tab .ms { font-size: 23px; }
  .tt-tab.is-active { color: var(--primary); }
  .tt-tab.is-active .ms { font-variation-settings: 'FILL' 1; }
  .tt-badge-tab { position: absolute; top: 7px; left: calc(50% + 8px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; font-size: 10px; }
}

/* ---- proxies and cards pages (Task 11) ---- */
.tt-table[hidden], .tt-cards[hidden], .tt-prow[hidden], .tt-pgroup[hidden], .tt-pgroup-m[hidden],
.tt-pxcard[hidden] { display: none !important; }
.tt-px-in { min-width: 1040px; }
.tt-cx-in { min-width: 1000px; }
.tt-pgrid, .tt-prow {
  display: grid;
  grid-template-columns: minmax(130px,1fr) minmax(140px,.9fr) minmax(150px,1fr) minmax(180px,1.15fr) minmax(160px,1.05fr) minmax(150px,1fr) minmax(110px,.75fr);
}
.tt-cgrid, .tt-crow {
  display: grid;
  grid-template-columns: minmax(190px,1.15fr) minmax(110px,.65fr) minmax(140px,.8fr) minmax(210px,1.3fr) minmax(220px,1.3fr) minmax(140px,.8fr);
}
.tt-th.tt-pth-first { padding-left: 14px; }
.tt-prow, .tt-crow { border-top: 1px solid var(--line); }
.tt-prow.is-soon { background: color-mix(in oklch, var(--warn) 8%, var(--surface)); }
.tt-crow.is-archived { opacity: .6; }
.tt-pcell { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tt-pcell:first-child { padding-left: 14px; }
.tt-pgroup {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-top: 1px solid var(--line);
  font-size: 12px; font-weight: 600;
}
.tt-pgroup .ms, .tt-pgroup-m .ms { font-size: 16px; }
.tt-pgroup-soon { background: color-mix(in oklch, var(--warn) 16%, var(--surface)); color: var(--warn-fg); }
.tt-pgroup-rest { background: var(--surface2); color: var(--text2); }
.tt-pgroup-n { font-weight: 500; opacity: .75; }
.tt-pgroup-m { display: flex; align-items: center; gap: 6px; padding: 6px 2px 0; font-size: 12.5px; font-weight: 600; }
.tt-pgroup-m.tt-pgroup-soon { background: transparent; color: var(--warn-fg); }
.tt-pgroup-m.tt-pgroup-rest { background: transparent; color: var(--text2); }
.tt-px-city { font-size: 13px; font-weight: 600; }
.tt-px-geo, .tt-px-sub { font-size: 12px; color: var(--text2); }
.tt-pc-ip { flex-direction: row; align-items: flex-start; gap: 2px; }
.tt-px-ip { font-size: 12.5px; line-height: 24px; color: var(--text); }
.tt-px-kind { font-size: 12.5px; }
.tt-px-ports { font-size: 11.5px; color: var(--text2); }
.tt-pc-acc { padding-top: 8px; padding-bottom: 8px; gap: 0; }
.tt-pc-acc .login { font-size: 12px; }
.tt-pc-use { flex-direction: row; align-items: flex-start; gap: 7px; }
.tt-px-use-box { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tt-px-use { font-size: 13px; font-weight: 500; }
.tt-px-use-link { color: var(--primary); }
.tt-px-use-mute { color: var(--text2); }
.tt-px-use-none { color: var(--text3); }
.tt-px-use-ico { font-size: 16px; margin-top: 1px; }
.tt-px-use-ico-link { color: var(--primary); }
.tt-px-use-ico-mute { color: var(--text2); }
.tt-px-use-ico-none { color: var(--text3); }
.tt-pc-until { align-items: flex-start; gap: 3px; }
.tt-px-until { font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tt-pcell .tt-days { margin-left: 0; }
.tt-pc-order { font-size: 12px; }

.tt-note { flex: 1 1 360px; display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--text2); text-wrap: pretty; }
.tt-note .ms { font-size: 17px; }
.tt-net {
  width: 34px; height: 22px; flex: none; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line2); border-radius: 4px; background: var(--surface2);
  font-size: 8.5px; font-weight: 700; letter-spacing: .04em; color: var(--text2);
}
.tt-cc-card { flex-direction: row; align-items: center; gap: 10px; }
.tt-cc-name { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tt-cc-center { justify-content: center; font-size: 13px; }
.tt-cc-lim { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-content: center; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.tt-pcell.tt-cc-set { flex-direction: row; flex-wrap: wrap; gap: 4px; align-content: center; }
.tt-cc-bind { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.tt-bind { display: flex; align-items: center; gap: 6px; font-size: 12.5px; white-space: nowrap; }
.tt-bind:hover { text-decoration: none; }
.tt-bind:hover .tt-bind-name { text-decoration: underline; }
.tt-bind .tt-dot { background: var(--c); }
.tt-bind-name { font-weight: 500; color: var(--primary); }
.tt-bind-tt { font-size: 12px; color: var(--text2); }
.tt-bind-pf { font-size: 11.5px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-active { --c: oklch(0.63 0.16 150); } .cs-expired { --c: oklch(0.58 0.21 25); }
.cs-frozen { --c: oklch(0.62 0.11 205); } .cs-declined { --c: oklch(0.67 0.18 48); }
.cs-closed { --c: oklch(0.7 0.01 250); } .cs-mute { --c: var(--text3); }
.tt-cc-state { justify-content: center; align-items: flex-start; gap: 3px; }
.tt-ccard { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.tt-ccard-head { display: flex; align-items: center; gap: 10px; }
.tt-ccard .tt-card-kv { grid-template-columns: 72px minmax(0, 1fr); }
.tt-ccard .tt-cc-bind { gap: 3px; }
.tt-pxcard.is-soon { background: color-mix(in oklch, var(--warn) 8%, var(--surface)); border-color: color-mix(in oklch, var(--warn) 45%, var(--line)); }
.tt-pxcard-head { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; }
.tt-pxcard-until { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.tt-pxcard .tt-pxcard-until .tt-days { margin-left: 0; padding: 2px 7px; }
.tt-cr-btn { border-top: 1px solid var(--line); cursor: pointer; }
.tt-pxcard .tt-px-acc { border-top: 1px solid var(--line); }
.tt-pxcard .tt-acc-line { min-height: 44px; padding: 0 4px 0 12px; gap: 8px; border-top: 1px solid var(--line); }
.tt-pxcard .tt-acc-line:first-child { border-top: 0; }
.tt-pxcard .tt-acc-k { display: inline; width: 50px; flex: none; font-size: 12px; color: var(--text2); }
.tt-pxcard .tt-acc-line .login, .tt-pxcard .tt-acc-line .tt-pw { flex: 1; margin-left: 0; font-size: 12.5px; }
.tt-pxcard .tt-cr-px { border-top: 1px solid var(--line); font-size: 12px; color: var(--text2); }
.tt-px-order { margin-left: auto; }
[data-assistant="1"] .tt-pc-acc { gap: 5px; }
[data-assistant="1"] .tt-pc-acc .tt-acc-line { gap: 8px; }

/* ---- modals ---- */
.tt-modal {
  position: fixed; inset: 0; z-index: 40; display: flex; justify-content: center; align-items: center;
  padding: 32px; background: rgba(10, 14, 20, .5);
}
.tt-modal[hidden] { display: none; }
.tt-modal-box {
  width: 100%; max-width: 760px; max-height: 100%; display: flex; flex-direction: column; margin: 0;
  background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden;
}
.tt-modal-mid { max-width: 700px; }
.tt-modal-narrow { max-width: 560px; }
.tt-modal-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.tt-modal-titles { flex: 1; min-width: 0; }
.tt-modal-title { font-size: 16px; font-weight: 600; }
.tt-modal-sub { font-size: 12.5px; color: var(--text2); }
.tt-modal-x {
  width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; background: transparent; color: var(--text2); cursor: pointer;
}
.tt-modal-x:hover { background: var(--hover); }
.tt-modal-x .ms { font-size: 22px; }
.tt-modal-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 20px; }
.tt-modal-body-flush { padding: 0; }
.tt-modal-foot { flex: none; display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--surface2); }
.tt-modal-hint { flex: 1; min-width: 0; font-size: 12px; color: var(--text2); }
.tt-modal-err { flex: 1; min-width: 0; font-size: 12.5px; color: var(--danger-fg); text-wrap: pretty; }
.tt-modal-err:empty { display: none; }
.tt-modal-err:not(:empty) ~ .tt-modal-hint { display: none; }
.tt-modal [hidden] { display: none !important; }
.tt-modal .tt-field-k { display: flex; align-items: center; gap: 6px; }
.tt-field-aside { margin-left: auto; font-weight: 400; }
.tt-enc { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 400; color: var(--ok-fg); }
.tt-enc .ms { font-size: 13px; }
.tt-field-help { font-size: 12px; color: var(--text2); text-wrap: pretty; }
.tt-msec { display: flex; flex-direction: column; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.tt-msec-last { border-bottom: 0; padding-bottom: 20px; }
.tt-msec-head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.tt-msec-n {
  width: 20px; height: 20px; border-radius: 10px; background: var(--primary-soft); color: var(--primary);
  font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.tt-msec-note { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; color: var(--text2); line-height: 1.4; }
.tt-msec-note .ms { font-size: 15px; }
.tt-mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.tt-mono-in { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.tt-area { height: auto; padding: 8px 10px; line-height: 1.45; resize: vertical; }
textarea.tt-mono-in { font-size: 12.5px; line-height: 1.5; }
.tt-paste { line-height: 1.6; }
.tt-input[readonly] { background: var(--surface2); }
.tt-secret-in { position: relative; display: block; }
.tt-secret-in .tt-input { padding-right: 40px; }
.tt-eye {
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--text3); cursor: pointer;
}
.tt-eye:hover, .tt-eye.is-on { color: var(--primary); }
.tt-eye .ms { font-size: 18px; }
.tt-check-box { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 7px; background: var(--surface); font-size: 13px; }
.tt-check-box input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); }
.tt-tags {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 36px; padding: 4px 6px;
  border: 1px solid var(--line2); border-radius: 7px; background: var(--surface);
}
.tt-tags:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.tt-tags-in { flex: 1; min-width: 150px; height: 28px; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; }
.tt-tag-chip {
  display: inline-flex; align-items: center; gap: 2px; height: 26px; padding: 0 2px 0 8px; border-radius: 5px;
  background: var(--surface2); border: 1px solid var(--line); font-size: 12px; white-space: nowrap;
}
.tt-tag-chip button { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border: 0; padding: 0; background: transparent; color: var(--text3); cursor: pointer; }
.tt-tag-chip .ms { font-size: 14px; }
.tt-linkbtn {
  align-self: flex-start; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 4px; border: 0;
  background: transparent; color: var(--primary); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer;
}
.tt-linkbtn .ms { font-size: 17px; }
.tt-steps2 { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--surface2); font-size: 12.5px; }
.tt-step2-n {
  width: 20px; height: 20px; border-radius: 10px; background: var(--line); color: var(--text2);
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.tt-step2-n.is-on { background: var(--primary); color: #fff; }
.tt-step2-n.is-done { background: var(--primary-soft); color: var(--primary); }
.tt-step2-t { font-weight: 500; }
.tt-step2-t.is-dim { color: var(--text2); }
.tt-step2-line { width: 24px; height: 1px; background: var(--line2); }
.tt-pstep { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.tt-pstep[hidden] { display: none; }
.tt-psum { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; font-size: 13px; }
.tt-psum .ms { font-size: 18px; }
.tt-psum.is-ok { background: color-mix(in oklch, oklch(0.63 0.16 150) 13%, transparent); color: var(--ok-fg); }
.tt-psum.is-warn { background: color-mix(in oklch, var(--warn) 18%, transparent); color: var(--warn-fg); }
.tt-pgrid2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tt-pgrid2 .tt-field-k { white-space: nowrap; font-weight: 500; }
.tt-miss { margin-left: auto; font-size: 11px; font-weight: 400; color: var(--warn-fg); }
.tt-input.is-missing { border-color: var(--warn); }
.tt-pwchip { display: flex; align-items: center; gap: 5px; height: 36px; padding: 0 10px; border: 1px dashed var(--line2); border-radius: 7px; font-size: 12.5px; color: var(--text2); }
.tt-pwchip .ms { font-size: 14px; }
.tt-btn-back { display: flex; align-items: center; gap: 4px; height: 36px; padding: 0 8px 0 4px; border: 0; background: transparent; color: var(--text2); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.tt-btn-back .ms { font-size: 18px; }
[data-assistant="1"] .tt-modal-x { display: flex; }

@media (max-width: 759px) {
  .tt-modal { padding: 0; align-items: flex-end; }
  .tt-modal-box, .tt-modal-mid, .tt-modal-narrow { max-width: none; max-height: 96%; border-radius: 14px 14px 0 0; }
  .tt-modal-body, .tt-pstep { padding-left: 14px; padding-right: 14px; }
  .tt-modal-head { padding-left: 14px; }
  .tt-modal-foot { padding: 10px 14px; flex-wrap: wrap; }
  .tt-modal-foot .tt-btn { height: 44px; }
  .tt-modal-hint { flex-basis: 100%; }
  .tt-mgrid { grid-template-columns: minmax(0, 1fr); }
  .tt-pgrid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tt-steps2 { padding: 10px 14px; }
  .tt-check-box { height: 44px; }
  .tt-note { flex-basis: 100%; }
  #tt-proxies .tt-toolbar-btns, #tt-cardspage .tt-toolbar-btns { margin-left: 0; width: 100%; }
  #tt-proxies .tt-toolbar-btns .tt-btn, #tt-cardspage .tt-toolbar-btns .tt-btn { flex: 1; width: auto; padding: 0 14px 0 10px; }
  .tt-tags-in { height: 36px; }
}

/* edit mode of the modals: tt.js sets data-mode="edit"; creation-only and edit-only parts swap */
.tt-modal[data-mode="edit"] [data-create-only] { display: none !important; }
.tt-modal:not([data-mode="edit"]) [data-edit-only] { display: none !important; }
.tt-clearchk { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--text2); cursor: pointer; }
.tt-clearchk input { width: 14px; height: 14px; margin: 0; accent-color: var(--primary); }
.tt-pedit-wide { grid-column: 1 / -1; }
@media (max-width: 759px) { .tt-pedit-until { grid-column: 1 / -1; } }
.tt-pgrid2 input[type="datetime-local"] { min-width: 0; }
.tt-pedit-use { display: flex; flex-direction: column; gap: 8px; }
.tt-pedit-note { font-size: 12.5px; color: var(--text2); }
.tt-editsec .tt-dsec-head { flex-wrap: wrap; row-gap: 8px; }
.tt-editsec .tt-dsec-aside { flex-wrap: wrap; }
.tt-editbtns { gap: 6px; }
.tt-editsec select.tt-input { max-width: 100%; min-width: 0; width: 100%; }
.tt-pxcard-head .tt-ico, .tt-ccard-head .tt-ico { flex: none; }

/* fonts:begin (written by tools/fetch_fonts.py) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/static/fonts/inter-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/static/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('/static/fonts/jetbrains-mono-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('/static/fonts/jetbrains-mono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Material Symbols Rounded'; font-style: normal; font-weight: 400; font-display: block; src: url('/static/fonts/icons.woff2') format('woff2'); }
/* fonts:end */
