/* Казначей — стили. Оформление — по дизайну серии: токены из исходников ИнвестКи (см. docs/design.md).
   Всё построено на токенах (:root). Тёмная тема — свои значения тех же токенов:
   по системной настройке (если не выбрана светлая) и по выбору в меню (data-theme). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/vendor/inter/inter-cyrillic-wght-normal.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-display: swap;
  font-weight: 100 900;
  src: url("/vendor/inter/inter-latin-wght-normal.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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  /* заголовки и крупные числа (font-display в ИнвестКе); кириллицы в шрифте нет — она идёт системным шрифтом */
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("/vendor/space-grotesk/space-grotesk-latin-wght-normal.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;
}

/* ================================================================ токены */
:root {
  color-scheme: light;
  --font: "Inter", ui-sans-serif, system-ui, sans-serif;            /* fontFamily.sans */
  --font-display: "Space Grotesk", system-ui, sans-serif;          /* fontFamily.display — заголовки, крупные числа */

  /* значения — из исходников ИнвестКи (src/index.css, HSL → hex), см. docs/design.md */
  --bg: #e6ecef;             /* --background 200 23% 92% */
  --surface: #ffffff;        /* --card */
  --surface-2: #f4f6f8;      /* secondary/50 — поля ввода, невыбранные кнопки-переключатели */
  --surface-3: #e9edf1;      /* --secondary 210 20% 93% — вторичные кнопки, дорожки */
  --surface-4: #dde3e9;      /* вторичная кнопка под курсором (в ИнвестКе нет — телефон) */
  --ink: #1d2530;            /* --foreground 215 25% 15% */
  --ink-2: #343b45;          /* foreground/90 — заголовки разделов */
  --muted: #6c7c93;          /* --muted-foreground 215 15% 50% */
  --line: #e9edf1;           /* разделители внутри карточек (= secondary) */
  --line-2: #dae0e6;         /* --border 210 20% 88% */

  --accent: #17826e;         /* --primary 169 70% 30% */
  --accent-hover: #136f5d;
  --accent-ink: #ffffff;     /* --primary-foreground */
  --accent-text: #17826e;    /* --secondary-foreground (= primary) */
  --accent-soft: #e8f3f1;    /* primary/10 — плитка иконки, чипы «+ 1 000» */
  --accent-soft-2: #dcece9;  /* primary/15 — выбранный вариант (check, «Месяц») */
  --accent-soft-3: #d3e5e3;  /* primary/15 поверх поля — плитка внутри поля */
  --accent-track: #e9edf1;   /* дорожка слайдера/прогресса = secondary */

  --nav-bg: #17826e;         /* нижняя панель BottomTabs: bg-primary */
  --nav-ink: rgba(255, 255, 255, .9);
  --nav-muted: rgba(255, 255, 255, .8);
  --nav-hover: rgba(255, 255, 255, .08);
  --nav-active: rgba(255, 255, 255, .16);
  --nav-mark: #17826e;

  --good: #17826e;
  --good-text: #17826e;
  --good-soft: #e8f3f1;
  --bad: #dc2828;            /* --destructive 0 72% 51% */
  --bad-text: #dc2828;
  --bad-soft: #fce9e9;       /* destructive/10 */
  --warn: #e0a23a;           /* в ИнвестКе нет — свой, тёплый */
  --warn-text: #93620e;
  --warn-soft: #fbf2e0;

  --inc: #17826e;            /* доход — основной зелёный */
  --tr: #0b7bb0;             /* перевод — от --chart-earnings 199 89% 48%, темнее для текста */
  --dom-text: #93620e;
  --dom-soft: #fbf1dc;
  --mf-text: #0b6f9e;
  --mf-soft: #e3f3fb;

  --av-0: #dcece9; --av-0-ink: #17826e;
  --av-1: #e3f3fb; --av-1-ink: #0b6f9e;
  --av-2: #f8ecdc; --av-2-ink: #93620e;
  --av-3: #f3e6ef; --av-3-ink: #8a4776;

  --tip-bg: #1d2530;
  --tip-ink: #ffffff;
  --overlay: rgba(20, 27, 31, .4);

  --shadow-sm: none;
  --shadow: none;            /* карточки — «без теней и границ» */
  --shadow-lg: 0 8px 24px -4px rgba(29, 37, 48, .12), 0 2px 8px rgba(29, 37, 48, .06);  /* --shadow-lg */
  --ring: 0 0 0 2px rgba(23, 130, 110, .3);   /* ring-2 ring-primary/30 */

  --r-sm: 12px;              /* поля (rounded-xl) */
  --r-btn: 14px;             /* кнопки (rounded-md = --radius − 2px) */
  --r: 16px;                 /* --radius */
  --r-lg: 24px;              /* карточки (rounded-3xl), нижняя панель */
  --r-tile: 12px;            /* плитка иконки (rounded-sm), 40×40 */
  --sidebar: 236px;
  --h-control: 40px;         /* h-10 — кнопки и поля по умолчанию */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #141b1f; --surface: #1b222d; --surface-2: #222a35; --surface-3: #29313d; --surface-4: #333c4a;
    --ink: #f0f2f5; --ink-2: #cfd7e2; --muted: #8a99a8;
    --line: #29313d; --line-2: #2d3643;
    --accent: #166959; --accent-hover: #1b7a68; --accent-ink: #f0f2f5; --accent-text: #339986;
    --accent-soft: rgba(22, 105, 89, .22); --accent-soft-2: rgba(22, 105, 89, .32); --accent-soft-3: rgba(51, 153, 134, .22);
    --accent-track: #29313d;
    --nav-bg: #166959; --nav-ink: rgba(217, 217, 217, .9); --nav-muted: rgba(217, 217, 217, .8);
    --nav-hover: rgba(255, 255, 255, .06); --nav-active: rgba(255, 255, 255, .12); --nav-mark: #166959;
    --good: #339986; --good-text: #3fb39c; --good-soft: rgba(22, 105, 89, .22);
    --bad: #bb2b2b; --bad-text: #ef6b6b; --bad-soft: rgba(187, 43, 43, .18);
    --warn: #e0a23a; --warn-text: #f0c26a; --warn-soft: rgba(224, 162, 58, .14);
    --inc: #3fb39c; --tr: #4fb8ec;
    --dom-text: #efc06a; --dom-soft: rgba(239, 192, 106, .14); --mf-text: #6cc4ef; --mf-soft: rgba(14, 162, 231, .15);
    --av-0: rgba(22, 105, 89, .32); --av-0-ink: #6fcdb9;
    --av-1: rgba(14, 162, 231, .2); --av-1-ink: #8dd2f3;
    --av-2: rgba(239, 192, 106, .2); --av-2-ink: #f0cd8c;
    --av-3: rgba(214, 128, 190, .2); --av-3-ink: #e6a9d4;
    --tip-bg: #f0f2f5; --tip-ink: #1b222d; --overlay: rgba(0, 0, 0, .6);
    --shadow-sm: none; --shadow: none; --shadow-lg: 0 8px 24px -4px rgba(0, 0, 0, .4), 0 2px 8px rgba(0, 0, 0, .3);
    --ring: 0 0 0 2px rgba(48, 181, 166, .35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141b1f; --surface: #1b222d; --surface-2: #222a35; --surface-3: #29313d; --surface-4: #333c4a;
  --ink: #f0f2f5; --ink-2: #cfd7e2; --muted: #8a99a8;
  --line: #29313d; --line-2: #2d3643;
  --accent: #166959; --accent-hover: #1b7a68; --accent-ink: #f0f2f5; --accent-text: #339986;
  --accent-soft: rgba(22, 105, 89, .22); --accent-soft-2: rgba(22, 105, 89, .32); --accent-soft-3: rgba(51, 153, 134, .22);
  --accent-track: #29313d;
  --nav-bg: #166959; --nav-ink: rgba(217, 217, 217, .9); --nav-muted: rgba(217, 217, 217, .8);
  --nav-hover: rgba(255, 255, 255, .06); --nav-active: rgba(255, 255, 255, .12); --nav-mark: #166959;
  --good: #339986; --good-text: #3fb39c; --good-soft: rgba(22, 105, 89, .22);
  --bad: #bb2b2b; --bad-text: #ef6b6b; --bad-soft: rgba(187, 43, 43, .18);
  --warn: #e0a23a; --warn-text: #f0c26a; --warn-soft: rgba(224, 162, 58, .14);
  --inc: #3fb39c; --tr: #4fb8ec;
  --dom-text: #efc06a; --dom-soft: rgba(239, 192, 106, .14); --mf-text: #6cc4ef; --mf-soft: rgba(14, 162, 231, .15);
  --av-0: rgba(22, 105, 89, .32); --av-0-ink: #6fcdb9;
  --av-1: rgba(14, 162, 231, .2); --av-1-ink: #8dd2f3;
  --av-2: rgba(239, 192, 106, .2); --av-2-ink: #f0cd8c;
  --av-3: rgba(214, 128, 190, .2); --av-3-ink: #e6a9d4;
  --tip-bg: #f0f2f5; --tip-ink: #1b222d; --overlay: rgba(0, 0, 0, .6);
  --shadow-sm: none; --shadow: none; --shadow-lg: 0 8px 24px -4px rgba(0, 0, 0, .4), 0 2px 8px rgba(0, 0, 0, .3);
  --ring: 0 0 0 2px rgba(48, 181, 166, .35);
}

/* ================================================================ основа */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 600; line-height: 1.2; }
h2 { font-size: 18px; font-weight: 600; line-height: 1.55; }
code { font: 12px/1.4 ui-monospace, "Cascadia Code", Consolas, monospace; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
small { font-size: 12px; }
b, strong { font-weight: 600; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: none; box-shadow: var(--ring); }

.muted { color: var(--muted); }
.neg { color: var(--bad-text); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-inc { color: var(--inc); }
.t-tr { color: var(--tr); }

/* ================================================================ оболочка */
.shell { display: grid; grid-template-columns: calc(var(--sidebar) + 16px) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 16px; height: calc(100vh - 32px); margin: 16px 0 16px 16px;
  display: flex; flex-direction: column; gap: 22px;
  padding: 18px 12px 14px;
  background: var(--nav-bg); color: var(--nav-ink); border-radius: var(--r-lg);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px; color: var(--nav-ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: var(--r-tile); flex: none;
  display: grid; place-items: center;
  background: #ffffff; color: var(--nav-mark); font-weight: 750; font-size: 18px;
}
.brand-text { display: flex; flex-direction: column; font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.2; }
.brand-text small { font-family: var(--font); }
.brand-text small { font-weight: 400; font-size: 11.5px; color: var(--nav-muted); letter-spacing: 0; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px;
  border-radius: var(--r-btn); color: var(--nav-muted); font-weight: 500; font-size: 14.5px;
}
.nav-item .icon-svg { stroke-width: 1.5; }
.nav-item.active .icon-svg { stroke-width: 2; }
.nav-item:hover { background: var(--nav-hover); color: var(--nav-ink); text-decoration: none; }
.nav-item.active { background: var(--nav-active); color: var(--nav-ink); font-weight: 600; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.nav-logout, .nav-logout:hover:not(:disabled) { width: 100%; border: 0; box-shadow: none; background: transparent; justify-content: flex-start; }
.nav-logout:hover:not(:disabled) { background: var(--nav-hover); color: var(--nav-ink); }
.nav-logout:active:not(:disabled) { transform: none; }

/* вход по паролю */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: 100%; max-width: 400px; }
.login-brand { display: flex; align-items: center; gap: 10px; margin: 4px 0 22px; font-family: var(--font-display); font-size: 18px; }
.login-brand .brand-mark { background: var(--accent); color: var(--accent-ink); }

.theme-switch { display: flex; padding: 3px; gap: 2px; background: rgba(0, 0, 0, .14); border-radius: var(--r-sm); }
.theme-switch button {
  flex: 1; height: 30px; border: 0; border-radius: 9px; background: transparent; color: var(--nav-muted);
  display: grid; place-items: center; cursor: pointer; padding: 0; box-shadow: none;
}
.theme-switch button:hover:not(:disabled) { color: var(--nav-ink); background: transparent; }
.theme-switch button.on, .theme-switch button.on:hover:not(:disabled) { background: #ffffff; color: var(--nav-mark); }

.main { min-width: 0; padding: 30px 32px 64px; }
.page { max-width: 1440px; margin: 0 auto; }

/* ================================================================ шапка страницы */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.page-title p { margin: 6px 0 0; color: var(--muted); max-width: 720px; }
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.period-nav {
  display: inline-flex; align-items: center; gap: 2px; height: 44px;
  padding: 0 4px; background: var(--surface); border-radius: var(--r);
}
.period-nav .ibtn { width: 34px; height: 34px; color: var(--accent-text); }
.period-label {
  position: relative; min-width: 140px; padding: 0 6px; text-align: center;
  font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer;
}
.period-label input[type="month"] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; }
.period-label input[type="month"]::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }

/* ================================================================ кнопки */
button, .button {
  font: inherit; font-weight: 500; color: var(--ink);
  height: var(--h-control); padding: 0 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--surface-3); border: 1px solid transparent; border-radius: var(--r-btn);
  box-shadow: none; cursor: pointer; white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s, box-shadow .12s, transform .12s;
}
button:active:not(:disabled), .button:active { transform: scale(.95); }   /* active:scale-95 */
button:hover:not(:disabled), .button:hover { background: var(--surface-4); text-decoration: none; }
button:disabled { opacity: .45; cursor: default; }
button.primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); font-weight: 600; }
button.primary:hover:not(:disabled) { background: var(--accent-hover); }
button.danger { color: var(--bad-text); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); padding: 0 10px; }
.btn-ghost:hover:not(:disabled) { background: var(--surface-3); color: var(--ink); }
.btn-block { width: 100%; margin-top: 14px; }
button.link { height: auto; padding: 0; background: none; border: 0; box-shadow: none; color: var(--accent-text); font-weight: 600; }
button.link:hover:not(:disabled) { background: none; text-decoration: underline; }

.ibtn {
  width: 32px; height: 32px; padding: 0; flex: none; position: relative;
  background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); border-radius: 10px;
}
.ibtn:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent-text); }
.ibtn-danger:hover:not(:disabled) { color: var(--bad-text); background: var(--bad-soft); }
.icon-svg { flex: none; display: block; }

/* ================================================================ поля */
input, select {
  font: inherit; color: var(--ink); height: var(--h-control); min-width: 0;
  padding: 0 12px; background: var(--surface-2); border: 1px solid transparent; border-radius: var(--r-sm);
  caret-color: var(--accent); transition: border-color .12s, box-shadow .12s, background .12s;
}
input::placeholder { color: var(--muted); opacity: .8; }
input:hover, select:hover { border-color: var(--line-2); }
input:focus, select:focus { outline: none; border-color: transparent; box-shadow: var(--ring); }
select {
  appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c7c93' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
input[type="date"] { font-variant-numeric: tabular-nums; }

/* Поле с выпадающим списком (Combo) */
.combo { position: relative; display: flex; min-width: 0; }
.combo > input { flex: 1; width: 100%; padding-right: 32px; }
.combo-btn, .combo-btn:hover:not(:disabled) {
  position: absolute; top: 1px; right: 1px; bottom: 1px; width: 30px; height: auto; padding: 0;
  border: 0; background: none; box-shadow: none; color: var(--muted);
}
.combo-btn:hover:not(:disabled) { color: var(--ink); }
.combo-btn .icon-svg { transform: rotate(90deg); }
.combo-list {
  position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; right: 0; max-height: 264px; overflow-y: auto;
  margin: 0; padding: 5px; list-style: none; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-lg);
}
.combo-item { padding: 8px 11px; border-radius: 10px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.combo-item.is-hi { background: var(--accent-soft); }
.combo-item.is-sel { font-weight: 600; color: var(--accent-text); }
input[type="checkbox"] { width: 16px; height: 16px; padding: 0; accent-color: var(--accent); box-shadow: none; cursor: pointer; }
label.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; color: var(--ink-2); }
.input-amount { font-weight: 600; font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }

/* сегменты: выбранный — мягко-зелёный с зелёным текстом (как «Месяц» в ИнвестКе) */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border-radius: var(--r-sm); }
.seg button {
  height: 32px; padding: 0 13px; border: 0; border-radius: 9px; background: transparent; box-shadow: none;
  color: var(--muted); font-weight: 500;
}
.seg button:active:not(:disabled) { transform: none; }
.seg button:hover:not(.on):not(:disabled) { background: transparent; color: var(--ink); }
.seg button.on { background: var(--accent-soft-2); color: var(--accent-text); font-weight: 600; }

/* ================================================================ мелочи */
.badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 9px;
  font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap;
}
.badge-dom { background: var(--dom-soft); color: var(--dom-text); }
.badge-mf { background: var(--mf-soft); color: var(--mf-text); }
.badge-plain { background: var(--surface-2); color: var(--muted); }
.badge-accent { background: var(--accent-soft); color: var(--accent-text); }
.count {
  display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text); font-size: 11.5px; font-weight: 600; line-height: 20px; text-align: center;
  font-variant-numeric: tabular-nums; vertical-align: 1px;
}
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--muted); }
.dot.t-inc { background: var(--inc); }
.dot.t-tr { background: var(--tr); }
.dot.t-exp { background: color-mix(in srgb, var(--ink) 35%, transparent); }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center; font-size: 12px; font-weight: 650;
}
.avatar-0 { background: var(--av-0); color: var(--av-0-ink); }
.avatar-1 { background: var(--av-1); color: var(--av-1-ink); }
.avatar-2 { background: var(--av-2); color: var(--av-2-ink); }
.avatar-3 { background: var(--av-3); color: var(--av-3-ink); }

.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; margin: 0; }
p.status { display: flex; margin: 10px 0 0; padding: 9px 12px; border-radius: var(--r-sm); font-size: 13px; }
.status-good { color: var(--good-text); }
.status-bad { color: var(--bad-text); }
p.status-bad { background: var(--bad-soft); }
.status-warn { color: var(--warn-text); }
p.status-warn { background: var(--warn-soft); }

.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.delta-good { color: var(--good-text); }
.delta-bad { color: var(--bad-text); }
.delta-note { color: var(--muted); font-weight: 400; margin-left: 3px; }

.spinner {
  width: 16px; height: 16px; border-radius: 50%; display: inline-block; vertical-align: -3px;
  border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 64px; color: var(--muted); }
.empty { color: var(--muted); padding: 32px 16px; text-align: center; margin: 0; }
.error-box { background: var(--bad-soft); color: var(--bad-text); padding: 12px 16px; border-radius: var(--r); margin-bottom: 16px; }
.hint-line { color: var(--muted); font-size: 12.5px; margin: -6px 2px 10px; }
.has-tip { border-bottom: 1px dotted var(--muted); cursor: help; }

/* подсказка: data-tip, появляется сразу */
[data-tip] { position: relative; }
[data-tip]:hover::after, .ibtn[data-tip]:focus-visible::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  z-index: 40; pointer-events: none; width: max-content; max-width: 300px;
  background: var(--tip-bg); color: var(--tip-ink);
  font: 400 12px/1.4 var(--font); letter-spacing: 0; text-align: left; white-space: normal;
  padding: 6px 10px; border-radius: 9px; box-shadow: var(--shadow-lg);
}
.tip-left[data-tip]:hover::after, .tip-left[data-tip]:focus-visible::after,
.row-actions [data-tip]:hover::after, .list-actions [data-tip]:hover::after,
.plan-act [data-tip]:hover::after { left: auto; right: 0; transform: none; }
.stat[data-tip]:hover::after { left: 16px; transform: none; bottom: calc(100% + 6px); }

/* ================================================================ карточки */
.card {
  background: var(--surface); border: 1px solid transparent; border-radius: var(--r-lg);
  padding: 20px 28px 28px; box-shadow: var(--shadow);
}
.card-flush { padding: 0; }
.card-narrow { max-width: 520px; margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-title { display: flex; align-items: center; gap: 12px; min-width: 0; margin-left: -8px; }   /* gap-3 -ml-2 */
.card-title h2 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tile {
  width: 40px; height: 40px; border-radius: var(--r-tile); flex: none;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text);
}
.tile .icon-svg { stroke-width: 1.5; }
.card-meta { color: var(--muted); font-size: 12.5px; }
.card-link { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 500; }
.card-foot { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13px; }
.card-foot .meter { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* ================================================================ цифры */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.stat {
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 20px 24px 22px; display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.stat-label { color: var(--muted); font-size: 14px; font-weight: 400; }
.stat-value { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; white-space: nowrap; }
.stat-sub { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-bad .stat-value { color: var(--bad-text); }
.stat-good .stat-value { color: var(--ink); }
.stat .delta { margin-top: 2px; }

.figure { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.figure-value { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.figure-note { color: var(--muted); font-size: 13px; }

.kv { margin: 14px 0 0; display: flex; flex-direction: column; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 500; }

.meter { position: relative; height: 8px; border-radius: 999px; background: var(--accent-track); overflow: hidden; min-width: 60px; }
.meter[data-tip] { overflow: visible; }
.meter-fill { height: 100%; border-radius: 999px; background: var(--accent); min-width: 0; transition: width .3s ease; }
.meter-done { background: var(--good-soft); }
.meter-done .meter-fill { background: var(--good); }
.goal { margin-top: 16px; }
.goal-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ================================================================ месяц */
.month-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }

.plan-list { list-style: none; margin: 0 -8px; padding: 0; }
.plan-row {
  display: grid; grid-template-columns: 26px minmax(110px, 1fr) minmax(150px, 1.4fr) 110px 32px;
  align-items: center; gap: 14px; padding: 11px 8px; border-radius: 12px;
}
.plan-row + .plan-row { border-top: 1px solid var(--line); border-radius: 0; }
.plan-row.is-idle { opacity: .55; }
.plan-idle-toggle { margin: 10px 0 0; font-size: 12.5px; }
.goal.dom-in { margin: 0 0 12px; }
.dom-who { display: inline-flex; align-items: center; gap: 8px; }
.dom-who .avatar { width: 22px; height: 22px; font-size: 11px; }
.dom-none { margin: 0 0 12px; font-size: 13px; }
.dom-over { color: var(--good-text); font-weight: 600; }
.dom-sub { margin: 16px 0 4px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px;
  font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.list-card > .add-person { margin: 12px 28px 20px; }
button.link.add-person { display: inline-flex; align-items: center; gap: 4px; }
.plan-name { display: flex; flex-direction: column; min-width: 0; }
.plan-name span { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-name small, .plan-progress small { color: var(--muted); }
.plan-progress { display: flex; flex-direction: column; gap: 6px; }
.plan-progress small { font-variant-numeric: tabular-nums; }
.plan-progress small a { color: var(--ink); font-weight: 500; }
.plan-left { text-align: right; display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.plan-left.is-due span { font-weight: 600; color: var(--warn-text); }
.plan-left small { color: var(--muted); }
.plan-left .status { font-size: 13px; }

.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bar-row { display: grid; grid-template-columns: minmax(96px, 170px) minmax(60px, 1fr) 112px; align-items: center; gap: 14px; min-height: 32px; }
.bar-name { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 10px; border-radius: 999px; background: var(--accent-track); }
.bar-fill { height: 100%; min-width: 4px; border-radius: 999px; background: var(--accent); opacity: .85; }
.bar-track:hover .bar-fill { opacity: 1; }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; display: flex; flex-direction: column; line-height: 1.25; }
.bar-dom { color: var(--dom-text); font-weight: 500; font-size: 11.5px; }

/* ================================================================ таблицы */
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.table th {
  text-align: left; font-size: 12px; font-weight: 500; color: var(--muted);
  padding: 12px 12px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; background: var(--surface);
}
.table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody:last-child tr:last-child td { border-bottom: 0; }
.table th.num, .table td.num { text-align: right; }
.card:not(.card-flush) .table th:first-child, .card:not(.card-flush) .table td:first-child { padding-left: 0; }
.card:not(.card-flush) .table th:last-child, .card:not(.card-flush) .table td:last-child { padding-right: 0; }
.card-flush .table th:first-child, .card-flush .table td:first-child { padding-left: 28px; }
.card-flush .table th:last-child, .card-flush .table td:last-child { padding-right: 28px; }
.card-flush .table thead th:first-child { border-top-left-radius: var(--r-lg); }
.card-flush .table thead th:last-child { border-top-right-radius: var(--r-lg); }
.table .row-strong td { font-weight: 600; }
.table .row-muted td { color: var(--muted); }
.table .section-row td {
  background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; padding-top: 8px; padding-bottom: 8px;
}
.section-note { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); margin-left: 6px; }
.table td.row-actions { width: 1%; white-space: nowrap; padding-top: 4px; padding-bottom: 4px; text-align: right; }
.table td.row-actions .ibtn { display: inline-flex; vertical-align: middle; }
.cell-note { display: block; color: var(--muted); font-weight: 400; font-size: 11.5px; }

.table-scroll { overflow-x: auto; }
.table-scroll .sticky { position: sticky; left: 0; z-index: 2; background: var(--surface); min-width: 250px; }
.table-scroll .section-row .sticky { background: var(--surface-2); }
.table-scroll tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); }
.table-scroll tr.section-row:hover td { background: var(--surface-2); }
.table-scroll thead th { position: sticky; top: 0; z-index: 3; }
.table-scroll thead th.sticky { z-index: 4; }

.table-year td.num, .table-year th.num { min-width: 92px; }
.table-year .col-total { background: color-mix(in srgb, var(--surface-2) 55%, var(--surface)); font-weight: 600; }
.table-year th a { color: var(--muted); }
.table-year th a:hover { color: var(--accent-text); }

/* ================================================================ журнал */
.op-form { margin-bottom: 20px; padding: 20px 28px 24px; }
.op-form.editing { border-color: var(--accent); box-shadow: var(--ring), var(--shadow); }
.op-top { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 14px; }
.op-paid { display: inline-flex; align-items: center; gap: 8px; }
.op-paid-label { color: var(--muted); font-size: 12.5px; }
.op-hint { margin-left: auto; color: var(--muted); font-size: 12.5px; display: inline-flex; align-items: center; gap: 8px; }
.op-grid {
  display: grid; align-items: end; gap: 12px;
  grid-template-columns: 150px minmax(200px, 1.2fr) 150px minmax(160px, 1.6fr) minmax(120px, .8fr) auto;
}
.fld { display: flex; flex-direction: column; gap: 5px; position: relative; min-width: 0; }
.fld > span { font-size: 14px; font-weight: 400; color: var(--muted); }
.fld-calc { position: absolute; top: calc(100% + 3px); right: 2px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fld-actions { flex-direction: row; align-items: center; gap: 8px; }
.form-error { display: flex; align-items: center; gap: 7px; margin-top: 12px; color: var(--bad-text); font-weight: 500; }

.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.search { position: relative; display: inline-flex; align-items: center; flex: 1 1 240px; max-width: 320px; }
.search .icon-svg { position: absolute; left: 11px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; padding-left: 34px; }
.toolbar input, .toolbar select { background-color: var(--surface); }
.toolbar input:hover, .toolbar select:hover { border-color: var(--line-2); }

.summary { display: flex; gap: 28px; flex-wrap: wrap; margin: 4px 2px 14px; }
.summary-item { display: flex; flex-direction: column; gap: 1px; }
.summary-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.summary-item b { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.summary-item small { font-size: 11.5px; }

.table.ops td { padding-top: 8px; padding-bottom: 8px; }
.ops .day-head td {
  background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; font-weight: 600;
  padding-top: 7px; padding-bottom: 7px; border-bottom: 1px solid var(--line);
}
.ops .day-head td.num { font-weight: 500; }
.ops tbody:first-of-type .day-head td { border-top: 0; }
.ops .op-row { cursor: pointer; }
.ops .op-row:hover td { background: color-mix(in srgb, var(--surface-2) 55%, var(--surface)); }
.ops .op-row:focus-visible { outline: none; }
.ops .op-row:focus-visible td { background: var(--accent-soft); }
.ops .op-row.sel td { background: var(--accent-soft); }
.ops .op-row.flash td { animation: flash 1.8s ease-out; }
@keyframes flash { from { background: var(--accent-soft-2); } to { background: transparent; } }
.op-cat { display: flex; align-items: center; gap: 10px; min-width: 0; }
.op-cat > div { display: flex; flex-direction: column; min-width: 0; }
.op-cat span { font-weight: 500; }
.op-cat small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 460px; }
.ops .c-who { width: 60px; }
.ops .amount { font-weight: 600; font-size: 14.5px; }

/* ================================================================ счета */
.fill-bar { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-bottom: 16px; padding: 18px 28px; }
.fill-month { display: flex; flex-direction: column; }
.fill-month b { font-size: 17px; }
.fill-month small { font-size: 12px; }
.fill-label { font-size: 12px; color: var(--muted); }
.fill-progress { flex: 1 1 220px; max-width: 360px; }
.fill-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; flex-wrap: wrap; }

.table-balances td { padding-top: 3px; padding-bottom: 3px; }
.table-balances th.num { min-width: 104px; }
.table-balances th.clickable { cursor: pointer; }
.table-balances th.clickable:hover { color: var(--ink); }
.table-balances .col-active { background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
.table-balances th.col-active { color: var(--accent-text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.table-balances th.col-cur::after { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-left: 5px; vertical-align: 2px; }
.table-balances tr:hover td.col-active { background: color-mix(in srgb, var(--accent-soft) 85%, var(--surface)); }
.acc { display: flex; flex-direction: column; min-width: 0; padding: 3px 0; }
.acc-name {
  height: auto; padding: 0; border: 0; background: none; box-shadow: none; justify-content: flex-start;
  color: var(--ink); font-weight: 500; text-align: left;
}
.acc-name:hover:not(:disabled) { background: none; color: var(--accent-text); }
.acc-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; min-width: 0; }
.acc-meta .badge { height: 17px; font-size: 10.5px; padding: 0 5px; }
.acc-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; font-style: italic; }
.not-cap .acc-name { color: var(--ink-2); }
.is-archived td { opacity: .55; }
input.cell {
  width: 100%; min-width: 96px; height: 30px; text-align: right; padding: 0 8px;
  border-color: transparent; background: transparent; font-variant-numeric: tabular-nums;
}
input.cell:hover { border-color: var(--line-2); background: var(--surface-2); }
input.cell:focus { background: var(--surface); border-color: var(--accent); }
input.cell.bad { border-color: var(--bad); color: var(--bad-text); }
input.cell::placeholder { color: var(--muted); font-style: italic; opacity: .75; }

/* ================================================================ правила */
.rule-name { display: flex; align-items: center; gap: 12px; }
.rule-name > div { display: flex; flex-direction: column; }
.rule-name span { font-weight: 600; }
.rule-name small { color: var(--muted); }
.table.rules tr.is-idle td:not(.act) { opacity: .55; }
.history { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 3px 0 10px;
  background: var(--accent-soft); border-radius: 9px; font-size: 12px; white-space: nowrap; color: var(--ink-2);
}
.chip b { color: var(--ink); }
.chip-x { width: 18px; height: 18px; padding: 0; border: 0; box-shadow: none; background: transparent; border-radius: 50%; color: var(--muted); }
.chip-x:hover:not(:disabled) { color: var(--bad-text); background: var(--surface); }

/* ================================================================ справочники */
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; margin-bottom: 16px; }
.list-card { padding: 0; overflow: visible; }
.list-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 16px 16px 28px; }
.list-head .note { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; }
/* действия не занимают место: всплывают поверх колонки «операций» при наведении — названию достаётся вся ширина */
.list-cols, .list-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px; align-items: center; }
.list-cols {
  padding: 7px 10px 7px 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 11.5px; font-weight: 500; color: var(--muted); background: var(--surface-2);
}
.list-cols span:nth-child(2) { text-align: right; padding-right: 2px; }
.list { list-style: none; margin: 0; padding: 0; }
.list-row { position: relative; min-height: 46px; padding: 0 10px 0 28px; border-bottom: 1px solid var(--line); --row-bg: var(--surface); }
.list-row:last-child { border-bottom: 0; }
.list-row:hover, .list-row.is-editing { --row-bg: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); background: var(--row-bg); }
.list-row.is-editing .list-main { padding-right: 60px; }
.list-row-2 { grid-template-columns: minmax(0, 1fr); }
.list-main { display: flex; align-items: center; gap: 8px; min-width: 0; }
.list-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-count { text-align: right; padding-right: 2px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.list-actions {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  display: grid; grid-template-columns: repeat(3, 32px); gap: 2px; justify-content: end;
  padding-left: 18px; background: linear-gradient(to right, transparent, var(--row-bg) 16px);
  opacity: 0; pointer-events: none; transition: opacity .12s;
}
.list-row-2 .list-actions { grid-template-columns: repeat(2, 32px); }
.list-row:hover .list-actions, .list-row:focus-within .list-actions, .list-row.is-editing .list-actions { opacity: 1; pointer-events: auto; }
@media (hover: none) { .list-actions { opacity: 1; pointer-events: auto; } }
.list-row.is-hidden .list-name { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.list-main .badge { background: var(--dom-soft); color: var(--dom-text); cursor: help; }
.list-main .badge-mf { background: var(--mf-soft); color: var(--mf-text); }
.list-main .badge-plain { background: var(--surface-2); color: var(--muted); }
.row-input { width: 100%; height: 32px; margin-left: -12px; }
.list-toggle {
  width: 100%; height: 44px; justify-content: flex-start; padding: 0 28px;
  border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: none;
  background: transparent; color: var(--muted); font-size: 12.5px;
}
.list-toggle:hover:not(:disabled) { color: var(--ink); background: var(--surface-2); }
.list-toggle .icon-svg { transition: transform .15s; }
.list-toggle.open .icon-svg { transform: rotate(90deg); }
.list-card > .button { margin: 0 28px 28px; }

/* ================================================================ диалоги и формы */
.modal-bg {
  position: fixed; inset: 0; z-index: 50; background: var(--overlay); backdrop-filter: blur(2px);
  display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; overflow-y: auto;
  animation: fade .12s ease-out;
}
.modal {
  width: 100%; max-width: 480px; background: var(--surface); border: 0;
  border-radius: var(--r-lg); padding: 20px 28px 28px; box-shadow: var(--shadow-lg); animation: pop .16s ease-out;
}
.modal-wide { max-width: 760px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.modal-head h2 { font-size: 18px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.985); } }
.form-grid { display: flex; flex-direction: column; gap: 14px; }
.form-grid > label, .form-row > label { display: flex; flex-direction: column; gap: 5px; }
.form-grid > label > span, .form-row > label > span, .form-grid .fld > span { font-size: 14px; font-weight: 400; color: var(--muted); }
.form-grid > label.check { flex-direction: row; }
.form-grid p { margin: 0; }
.form-grid small.muted { font-size: 12px; }
.form-row { display: flex; gap: 12px; align-items: flex-end; }
.form-row > label { flex: 1; }
.form-actions { display: flex; gap: 8px; margin-top: 6px; }
.form-actions .right { margin-left: auto; }

/* ================================================================ уведомления */
.toasts { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; flex-direction: column; gap: 8px; max-width: 440px; }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; border-radius: var(--r);
  background: var(--tip-bg); color: var(--tip-ink); box-shadow: var(--shadow-lg); animation: pop .16s ease-out;
}
.toast-error { background: var(--bad); color: #fff; }
.toast .link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.toast-x {
  width: 24px; height: 24px; padding: 0; margin-left: auto; border: 0; box-shadow: none; background: transparent;
  color: inherit; opacity: .6; border-radius: 6px;
}
.toast-x:hover:not(:disabled) { opacity: 1; background: rgba(127, 127, 127, .18); }

/* ================================================================ узкие экраны (черновая адаптация) */
@media (max-width: 1320px) {
  .op-grid { grid-template-columns: 150px minmax(160px, 1fr) 150px minmax(160px, 1.4fr) auto; }
  .op-grid > .fld:nth-child(5) { display: none; }   /* банк — прячем, он необязательный */
}
@media (max-width: 1200px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .month-grid, .cols-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  :root { --sidebar: 72px; }
  .brand-text, .nav-item span { display: none; }
  .brand, .nav-item { justify-content: center; padding: 0; }
  .brand { padding: 4px 0; }
  .theme-switch { flex-direction: column; }
  .theme-switch button { flex: none; }
  .main { padding: 22px 20px 56px; }
  .op-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .op-grid > .fld:nth-child(5) { display: flex; }
}
@media (max-width: 720px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(12px + env(safe-area-inset-bottom));
    height: auto; margin: 0; z-index: 30; flex-direction: row; padding: 8px; border-radius: var(--r-lg);
  }
  .brand, .sidebar-foot { display: none; }
  .nav { flex-direction: row; justify-content: space-around; width: 100%; }
  .nav-item { flex-direction: column; gap: 3px; height: 56px; width: 60px; padding: 0; font-size: 10.5px; }
  .nav-item span { display: block; }
  .main { padding: 16px 16px 112px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .op-grid { grid-template-columns: minmax(0, 1fr); }
  .plan-row { grid-template-columns: 26px minmax(0, 1fr) 90px 32px; }
  .plan-progress { grid-column: 2 / 4; grid-row: 2; }
  .bar-row { grid-template-columns: minmax(90px, 120px) minmax(0, 1fr) 96px; }
  .toasts { left: 16px; right: 16px; bottom: 100px; }
}
