/* ==========================================================================
   ForgetAPI — дизайн v2.
   Стиль ForgetGPT: чёрный фон, монохром, белая главная кнопка, тонкие рамки, линейные иконки ForgetGPT.
   Элементы — свои, под кабинет, а не перенесённые настройки чата: заголовок раздела над карточкой,
   таблицы с шапкой, плитки итогов, списки «подпись — значение», шаги, плитки-ссылки.
   Цвет — только смысловой (зелёный / жёлтый / красный) и синий в графиках.
   Файл грузится ТОЛЬКО в новом дизайне (<html data-ui="v2">); классический его не видит.

   1. Токены и база              7. Расходы: график и доли
   2. Каркас: сайдбар, шапка     8. Пополнение
      телефона, страница         9. Код, окна, меню, тосты
   3. Разделы, карточки, итоги  10. Строки настроек (профиль, Telegram, админка)
   4. Кнопки, ссылки, поля      11. Мелочи и совместимость
   5. Метки, чипы, сегменты     12. Вход
   6. Таблицы, «подпись —
      значение», шаги, плитки
   ========================================================================== */

:root[data-ui="v2"] {
    color-scheme: dark;
    --bg: #000;
    --surface: #0b0b0d;
    --surface-2: #121215;
    --surface-3: #1b1b1f;
    --line: rgba(255,255,255,0.085);
    --line-soft: rgba(255,255,255,0.06);
    --line-strong: rgba(255,255,255,0.17);
    --text: #fafafa;
    --text-2: #d4d4d8;
    --text-3: #a1a1aa;
    --text-4: #82828c;
    --text-5: #5a5a63;
    --ok: #4ade80;
    --warn: #fbbf24;
    --bad: #f87171;
    --chart: #3987e5;
    --fg-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    --fg-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, Consolas, monospace;
    --fg-sidebar-w: 248px;
    /* Прежние имена: их читают packages.css, catalog-admin.css и скрипты страниц */
    --fg-panel: #0b0b0d;
    --fg-panel-hover: #121215;
    --fg-panel-border: rgba(255,255,255,0.085);
    --fg-panel-text: #d4d4d8;
    --fg-panel-muted: #a1a1aa;
    --fg-dot: #d4d4d8;
}

/* 1. База ------------------------------------------------------------------ */
html[data-ui="v2"] body {
    background: var(--bg);
    color: var(--text-2);
    font-family: var(--fg-sans);
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    font-size: 14px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}
html[data-ui="v2"] ::-webkit-scrollbar { width: 8px; height: 8px; }
html[data-ui="v2"] ::-webkit-scrollbar-track { background: transparent; }
html[data-ui="v2"] ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; border: 2px solid transparent; background-clip: padding-box; }
html[data-ui="v2"] ::-webkit-scrollbar-thumb:hover { background-color: rgba(255,255,255,0.18); }
html[data-ui="v2"] ::selection { background: rgba(255,255,255,0.22); color: #fff; }
html[data-ui="v2"] .font-mono, .mono { font-family: var(--fg-mono); }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-4); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeIn .2s ease-out; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes cmenuIn { from { opacity: 0; transform: translateY(4px) scale(.98); } to { opacity: 1; transform: none; } }

.ui-icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }

/* 2. Каркас ---------------------------------------------------------------- */
.app-sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 50;
    width: var(--fg-sidebar-w);
    display: flex; flex-direction: column;
    background: #000;
    border-right: 1px solid var(--line-soft);
    transition: transform .2s ease;
}
@media (max-width: 1023px) {
    .app-sidebar { transform: translateX(-100%); }
    .app-sidebar.open { transform: none; box-shadow: 0 0 80px rgba(0,0,0,0.7); }
}
.app-sidebar-head { display: flex; align-items: center; gap: 8px; height: 64px; padding: 0 12px 0 18px; flex-shrink: 0; }
.app-brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; text-decoration: none; }
.app-logo { width: 24px; height: 24px; border-radius: 6px; filter: grayscale(1) brightness(1.35) contrast(1.1); }
.app-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: #fff; white-space: nowrap; }
.app-nav { flex: 1; min-height: 0; overflow-y: auto; padding: 0 12px 16px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent; }
.app-sidebar-foot { flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-top: 1px solid var(--line-soft); }
.app-overlay { position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }

.nav-item {
    position: relative;
    display: flex; align-items: center; gap: 11px; width: 100%; height: 36px;
    padding: 0 10px; border-radius: 9px; border: none; background: transparent;
    color: var(--text-2); font: 400 14px/1 var(--fg-sans);
    cursor: pointer; text-align: left; text-decoration: none;
    transition: background .12s, color .12s;
}
.nav-item + .nav-item { margin-top: 2px; }
.nav-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.nav-item.active { background: rgba(255,255,255,0.09); color: #fff; font-weight: 500; }
.nav-item .ui-icon { width: 16px; height: 16px; color: var(--text-4); transition: color .12s; }
.nav-item:hover .ui-icon, .nav-item.active .ui-icon { color: #fff; }
.nav-item .nav-ext { width: 12px; height: 12px; margin-left: auto; opacity: .7; }
.nav-item:focus-visible { outline: 2px solid rgba(255,255,255,.45); outline-offset: -2px; }
.nav-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-tag {
    margin-left: auto; padding: 4px 7px; border-radius: 6px; border: 1px solid var(--line);
    font: 500 11px/1 var(--fg-sans); color: var(--text-4); flex-shrink: 0; font-variant-numeric: tabular-nums;
}
.nav-count {
    margin-left: auto; min-width: 19px; height: 19px; padding: 0 6px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    background: #fff; color: #000; font: 600 11px/1 var(--fg-sans); font-variant-numeric: tabular-nums;
}
.nav-section { padding: 20px 10px 7px; }
.nav-section-title { font-size: 12px; font-weight: 500; color: var(--text-4); }

.sidebar-toggle {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; border: none;
    background: transparent; color: var(--text-3); cursor: pointer;
    align-items: center; justify-content: center;
    transition: color .15s, background .15s;
    -webkit-tap-highlight-color: transparent;
}
.sidebar-toggle .ui-icon { width: 17px; height: 17px; }
@media (hover: hover) { .sidebar-toggle:hover { color: #fff; background: rgba(255,255,255,0.06); } }
.sidebar-toggle:active { color: #fff; background: rgba(255,255,255,0.08); }
.sidebar-toggle:focus-visible { outline: 2px solid rgba(255,255,255,.45); outline-offset: -2px; }

/* Баланс внизу сайдбара */
.side-balance {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 12px 12px 14px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--surface);
}
.side-balance.active { border-color: var(--line-strong); background: var(--surface-2); }
.side-balance-text { flex: 1; min-width: 0; }
.side-balance-label { font-size: 12px; color: var(--text-4); }
.side-balance-amount {
    margin-top: 3px; font-size: 16px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em;
    color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Профиль */
.profile-wrap { position: relative; }
.profile-trigger {
    display: flex; align-items: center; gap: 10px; width: 100%; height: 44px;
    padding: 0 10px 0 8px; border-radius: 10px; border: none; background: transparent;
    color: var(--text-2); cursor: pointer; font-family: inherit; text-align: left;
    transition: background .15s;
}
.profile-trigger:hover { background: rgba(255,255,255,0.05); }
.profile-avatar {
    width: 28px; height: 28px; border-radius: 999px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: #27272a; border: 1px solid rgba(255,255,255,0.1);
    color: #fff; font-size: 12.5px; font-weight: 600; text-transform: uppercase;
}
.profile-avatar.large { width: 48px; height: 48px; font-size: 19px; }
.profile-trigger-name { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-chev { width: 10px; height: 10px; flex-shrink: 0; opacity: .5; transform: rotate(180deg); transition: transform .15s; }
.profile-trigger[aria-expanded="true"] .profile-chev { transform: none; }
.profile-menu {
    position: absolute; bottom: calc(100% + 6px); left: 0; right: 0; z-index: 70;
    background: #0f0f12; border: 1px solid var(--line-strong); border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6); overflow: hidden;
    animation: cmenuIn .14s ease-out;
}
.profile-menu-head { display: flex; align-items: center; gap: 10px; padding: 13px 13px 12px; border-bottom: 1px solid var(--line-soft); }
.profile-ids { min-width: 0; }
.profile-name { font-size: 14px; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-email { margin-top: 2px; font-size: 12.5px; color: var(--text-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-menu-items { padding: 6px; }
.profile-logout { border-top: 1px solid var(--line-soft); }
.profile-item {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px;
    padding: 8px 10px; border-radius: 8px; border: none; background: transparent;
    color: var(--text-2); font: 400 13.5px/1.25 var(--fg-sans);
    cursor: pointer; text-align: left; text-decoration: none; transition: background .12s, color .12s;
}
.profile-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.profile-item .ui-icon { width: 15px; height: 15px; color: var(--text-3); }
.profile-item-end { margin-left: auto; font-size: 12.5px; color: var(--text-4); }
/* Выбор оформления в меню профиля: текущее отмечено галочкой */
.profile-themes { border-top: 1px solid var(--line-soft); }
.profile-group-title { padding: 6px 10px 4px; font-size: 12px; color: var(--text-4); }
.profile-item.on { color: #fff; }
.profile-item .profile-item-check { margin-left: auto; width: 13px; height: 13px; color: #fff; }

/* Шапка — только на телефоне и планшете: меню, логотип, баланс */
.app-main { min-height: 100vh; display: flex; flex-direction: column; }
@media (min-width: 1024px) { .app-main { padding-left: var(--fg-sidebar-w); } }
.app-topbar {
    position: sticky; top: 0; z-index: 30;
    height: 56px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 0 12px 0 8px;
    background: rgba(0,0,0,0.86);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 1024px) { .app-topbar { display: none; } }
.topbar-brand { display: flex; align-items: center; gap: 9px; min-width: 0; text-decoration: none; }
.topbar-balance {
    display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px 0 11px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface); color: #fff; text-decoration: none;
    font: 600 13.5px/1 var(--fg-sans); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.topbar-balance .ui-icon { width: 15px; height: 15px; color: var(--text-3); }

/* Страница */
.page { width: 100%; max-width: 1140px; margin: 0 auto; padding: 44px 40px 88px; }
.page.narrow { max-width: 800px; }
@media (max-width: 1279px) { .page { padding: 36px 28px 80px; } }
@media (max-width: 639px) { .page { padding: 22px 16px 56px; } }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 32px; }
.page-head-text { flex: 1 1 380px; min-width: 0; }
.page-title { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -0.025em; color: #fff; }
.page-sub { margin: 8px 0 0; max-width: 700px; font-size: 15px; line-height: 1.55; color: var(--text-3); }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.page-actions:empty { display: none; }
.page-back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px; font-size: 13.5px; color: var(--text-3); text-decoration: none; transition: color .12s; }
.page-back:hover { color: #fff; }
.page-back .ui-icon { width: 13px; height: 13px; }
@media (max-width: 639px) {
    .page-head { margin-bottom: 24px; }
    .page-title { font-size: 25px; }
    .page-sub { font-size: 14px; }
    .page-actions { width: 100%; }
}

/* 3. Разделы, карточки, итоги ------------------------------------------------ */
* + .sec, .sec + .notice, .sec + .card { margin-top: 44px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.sec-head-text { min-width: 0; flex: 1 1 240px; }
.sec-title { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; color: #fff; }
.sec-count { font-weight: 500; color: var(--text-4); font-variant-numeric: tabular-nums; }
.sec-desc { margin: 5px 0 0; max-width: 760px; font-size: 14px; line-height: 1.55; color: var(--text-3); }
.sec-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 639px) {
    * + .sec, .sec + .notice, .sec + .card { margin-top: 36px; }
    .sec-title { font-size: 17px; }
}

.card { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.card-body { padding: 22px 24px; }
.card-body + .card-body { border-top: 1px solid var(--line-soft); }
.card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; }
.card-title { margin: 0; font-size: 15.5px; line-height: 1.35; font-weight: 600; color: #fff; }
.card-desc { margin: 5px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--text-3); }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 24px; border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--text-3); }
@media (max-width: 639px) {
    .card-body { padding: 18px 16px; }
    .card-foot { padding: 14px 16px; }
}

.cols { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
    .cols.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cols.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cols.wide-left { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
}

/* Итоги — плитки с одним числом */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1100px) {
    .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .stats.s3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 700px) and (max-width: 1099px) { .stats.s3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 559px) { .stats { gap: 10px; } .stats.s3 > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
.stat {
    display: flex; flex-direction: column; min-width: 0;
    padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
    color: inherit; text-decoration: none;
}
/* Плитки одного ряда выровнены по строкам: подпись в две строки не сдвигает число соседей */
@supports (grid-template-rows: subgrid) {
    .stats > .stat { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; align-content: start; }
    .stats > .stat > .stat-top { align-self: start; }
}
a.stat { transition: border-color .15s, background .15s; }
a.stat:hover { border-color: var(--line-strong); background: var(--surface-2); }
.stat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 20px; }
.stat-label { display: flex; align-items: flex-start; gap: 8px; min-width: 0; font-size: 13.5px; line-height: 20px; color: var(--text-3); }
.stat-label .ui-icon { width: 15px; height: 15px; margin-top: 2.5px; color: var(--text-4); }
.stat-go { width: 14px; height: 14px; margin-top: 3px; color: var(--text-5); transition: color .15s, transform .15s; }
a.stat:hover .stat-go { color: #fff; transform: translateX(2px); }
.stat-value {
    margin-top: 12px; font-size: 28px; line-height: 1.1; font-weight: 600; letter-spacing: -0.025em;
    color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stat-value small { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-4); }
.stat-meta { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--text-4); }
.stat-meta b { color: var(--text-2); font-weight: 500; }
.stat-foot { margin-top: auto; padding-top: 16px; }
.stat .fg-progress { margin-top: 12px; }
@media (max-width: 559px) {
    .stat { padding: 16px; }
    .stat-value { font-size: 22px; margin-top: 10px; }
    .stat-value small { font-size: 14px; }
    .stat-meta { font-size: 12.5px; }
}

/* 4. Кнопки, ссылки, поля ------------------------------------------------------ */
.settings-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 15px;
    border-radius: 10px; border: 1px solid rgba(255,255,255,0.13); background: rgba(255,255,255,0.045);
    color: #f4f4f5; font: 500 13.5px/1 var(--fg-sans); white-space: nowrap; text-decoration: none;
    cursor: pointer; transition: background .15s, color .15s, border-color .15s, opacity .15s;
    -webkit-tap-highlight-color: transparent;
}
.settings-btn:hover:not(:disabled) { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.2); color: #fff; }
.settings-btn:disabled { opacity: .45; cursor: default; }
.settings-btn:focus-visible { outline: 2px solid rgba(255,255,255,.55); outline-offset: 2px; }
.settings-btn .ui-icon { width: 14px; height: 14px; color: currentColor; opacity: .75; }
.settings-btn.primary { border-color: #fff; background: #fff; color: #000; }
.settings-btn.primary .ui-icon { opacity: 1; }
.settings-btn.primary:hover:not(:disabled) { border-color: #e4e4e7; background: #e4e4e7; color: #000; }
.settings-btn.ghost { border-color: transparent; background: transparent; color: var(--text-3); }
.settings-btn.ghost:hover:not(:disabled) { background: rgba(255,255,255,0.06); color: #fff; }
.settings-btn.danger { border-color: rgba(248,113,113,0.3); background: rgba(248,113,113,0.08); color: #fca5a5; }
.settings-btn.danger:hover:not(:disabled) { border-color: rgba(248,113,113,0.45); background: rgba(248,113,113,0.15); color: #fecaca; }
.settings-btn.small { height: 30px; gap: 6px; padding: 0 11px; border-radius: 8px; font-size: 13px; }
.settings-btn.small .ui-icon { width: 13px; height: 13px; }
.settings-btn.lg { height: 42px; padding: 0 20px; border-radius: 11px; font-size: 14px; }
.settings-btn.icon { width: 36px; padding: 0; }
.settings-btn.icon.small { width: 30px; }
.settings-btn.icon .ui-icon { width: 15px; height: 15px; opacity: .85; }
.settings-btn.icon.small .ui-icon { width: 14px; height: 14px; }
.settings-btn.ok, .settings-btn.ok .ui-icon { color: var(--ok); opacity: 1; }
.settings-btn.primary.ok, .settings-btn.primary.ok .ui-icon { color: #15803d; }
.settings-btn.full { width: 100%; }

.btn-primary, .btn-ghost, .btn-danger {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 42px; padding: 0 18px; border-radius: 11px; font: 500 14px/1 var(--fg-sans);
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s, opacity .15s;
}
.btn-primary { flex: 1; border: none; background: #fff; color: #000; }
.btn-primary:hover:not(:disabled) { background: #e4e4e7; }
.btn-primary:disabled { opacity: .35; cursor: not-allowed; }
.btn-ghost { border: 1px solid rgba(255,255,255,0.12); background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,0.06); }
.btn-danger { flex: 1; border: 1px solid rgba(248,113,113,0.3); background: rgba(248,113,113,0.12); color: #fca5a5; }
.btn-danger:hover:not(:disabled) { background: rgba(248,113,113,0.2); color: #fecaca; }
.btn-danger:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary:focus-visible, .btn-ghost:focus-visible, .btn-danger:focus-visible { outline: 2px solid rgba(255,255,255,.55); outline-offset: 2px; }

.link { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.3); text-underline-offset: 3px; transition: text-decoration-color .15s; }
.link:hover { text-decoration-color: #fff; }
.link-more {
    display: inline-flex; align-items: center; gap: 6px; height: 30px;
    font-size: 14px; font-weight: 500; color: var(--text-2); text-decoration: none; white-space: nowrap;
    background: none; border: none; padding: 0; cursor: pointer; font-family: inherit;
}
.link-more .ui-icon { width: 13px; height: 13px; transition: transform .15s; }
.link-more:hover { color: #fff; }
.link-more:hover .ui-icon { transform: translateX(2px); }
.settings-link {
    padding: 4px 0; border: none; background: none; color: var(--text-3); cursor: pointer;
    font: 400 13.5px/1.4 var(--fg-sans);
    text-decoration: underline; text-decoration-color: rgba(161,161,170,0.45); text-underline-offset: 3px;
}
.settings-link:hover { color: #fff; }

.fg-input, .amount-input {
    width: 100%; height: 42px; padding: 0 14px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1); background: #0e0e11;
    color: #fff; font-size: 14px; outline: none; transition: border-color .15s, background .15s;
}
.fg-input:hover, .amount-input:hover { border-color: rgba(255,255,255,0.15); }
.fg-input:focus, .amount-input:focus { border-color: rgba(255,255,255,0.34); background: #111114; }
.fg-input::placeholder, .amount-input::placeholder { color: var(--text-5); }
.fg-input:disabled, .amount-input:disabled { opacity: .55; }
.fg-input.mono { font-family: var(--fg-mono); font-size: 13.5px; }
select.fg-input, .fg-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #82828c 50%), linear-gradient(135deg, #82828c 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.fg-label { display: block; margin-bottom: 8px; font-size: 13.5px; font-weight: 500; color: #fff; }
.fg-hint { margin-top: 7px; font-size: 13px; line-height: 1.5; color: var(--text-4); }
.fg-field + .fg-field { margin-top: 18px; }
.setting-label { font-size: 13.5px; color: #fff; font-weight: 500; }
.pz-textarea {
    width: 100%; min-height: 96px; padding: 12px 14px; resize: vertical; outline: none; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1); background: #0e0e11; color: #fff;
    font: 400 14px/1.6 var(--fg-sans); transition: border-color .15s;
}
.pz-textarea:hover { border-color: rgba(255,255,255,0.15); }
.pz-textarea:focus { border-color: rgba(255,255,255,0.34); }
.pz-textarea::placeholder { color: var(--text-5); }
.search-field { position: relative; min-width: 0; }
.search-field > .ui-icon { position: absolute; left: 14px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--text-4); pointer-events: none; }
.search-field .fg-input { padding-left: 40px; }
@media (max-width: 639px) { .fg-input, .amount-input, .pz-textarea { font-size: 16px; } }

/* Поле с адресом/ключом и кнопкой «Копировать» */
.code-field {
    display: flex; align-items: center; gap: 8px; min-width: 0;
    height: 42px; padding: 0 5px 0 14px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1); background: #0e0e11;
}
.code-field code { flex: 1; min-width: 0; font-family: var(--fg-mono); font-size: 13.5px; color: #f4f4f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copy-chip {
    display: inline-flex; align-items: center; gap: 8px; max-width: 100%; height: 34px; padding: 0 8px 0 12px;
    border-radius: 9px; border: 1px solid var(--line); background: #0e0e11; color: #f4f4f5; cursor: pointer;
    font-family: var(--fg-mono); font-size: 13px; transition: border-color .15s, background .15s;
}
.copy-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-chip .ui-icon { width: 14px; height: 14px; color: var(--text-4); transition: color .15s; }
.copy-chip:hover { border-color: var(--line-strong); background: #121215; }
.copy-chip:hover .ui-icon { color: #fff; }
.copy-chip.ok .ui-icon { color: var(--ok); }
.copy-id {
    display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 0; border: none; background: none;
    font-family: var(--fg-mono); font-size: 12.5px; color: var(--text-4); cursor: pointer; text-align: left;
}
.copy-id span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-id .ui-icon { width: 12px; height: 12px; opacity: 0; transition: opacity .15s; }
.copy-id:hover { color: #fff; }
.copy-id:hover .ui-icon, .copy-id:focus-visible .ui-icon { opacity: 1; }
.copy-id.ok, .copy-id.ok .ui-icon { color: var(--ok); opacity: 1; }

/* 5. Метки, чипы, сегменты, переключатели ------------------------------------------ */
.fg-badge {
    display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px;
    font-size: 12.5px; font-weight: 500; line-height: 1; color: var(--text-2); white-space: nowrap;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.09);
}
.fg-badge .ui-icon { width: 12px; height: 12px; }
.fg-badge.ok { color: #86efac; background: rgba(74,222,128,0.09); border-color: rgba(74,222,128,0.24); }
.fg-badge.warn { color: #fcd34d; background: rgba(251,191,36,0.09); border-color: rgba(251,191,36,0.24); }
.fg-badge.bad { color: #fca5a5; background: rgba(248,113,113,0.09); border-color: rgba(248,113,113,0.24); }
.fg-badge.small { height: 20px; padding: 0 7px; font-size: 11.5px; }
.status-dot { display: inline-block; width: 7px; height: 7px; flex-shrink: 0; border-radius: 999px; background: var(--text-5); }
.status-dot.ok { background: var(--ok); }
.status-dot.warn { background: var(--warn); }
.status-dot.bad { background: var(--bad); }
.status-line { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); white-space: nowrap; }

.pz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pz-chip {
    display: inline-flex; align-items: center; gap: 8px;
    height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
    background: transparent; color: var(--text-2); font: 500 13.5px/1 var(--fg-sans); cursor: pointer;
    text-decoration: none; white-space: nowrap;
    transition: background .12s, border-color .12s, color .12s;
}
.pz-chip:hover:not(:disabled) { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.14); color: #fff; }
.pz-chip.on, .pz-chip.on:hover:not(:disabled) { background: #fff; border-color: #fff; color: #000; }
.pz-chip.small { height: 30px; padding: 0 12px; font-size: 13px; }
.pz-chip .chip-count { font-size: 12px; color: var(--text-4); font-variant-numeric: tabular-nums; }
.pz-chip.on .chip-count { color: rgba(0,0,0,0.5); }
.pz-chip:focus-visible { outline: 2px solid rgba(255,255,255,.45); outline-offset: 2px; }

.pz-segment {
    display: inline-flex; flex-wrap: wrap; gap: 2px; width: fit-content; max-width: 100%;
    padding: 3px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface);
}
.pz-segment-opt {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 32px; padding: 0 14px; border-radius: 8px; border: none; background: transparent; color: var(--text-3);
    font: 500 13.5px/1 var(--fg-sans); cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: background .12s, color .12s;
}
.pz-segment-opt:hover { color: #fff; }
.pz-segment-opt.selected { background: #27272a; color: #fff; }
.pz-segment-opt .chip-count { font-size: 12px; color: var(--text-4); font-variant-numeric: tabular-nums; }
.pz-segment-opt:focus-visible { outline: 2px solid rgba(255,255,255,.45); outline-offset: -2px; }

.switch {
    position: relative; display: inline-block; width: 34px; height: 20px; flex-shrink: 0; border-radius: 999px;
    background: rgba(255,255,255,0.14); transition: background .15s;
}
.switch::after {
    content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
    border-radius: 999px; background: #a1a1aa; transition: transform .15s, background .15s;
}
.switch.on { background: #f4f4f5; }
.switch.on::after { transform: translateX(14px); background: #18181b; }
.pz-switch { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; padding: 4px; border: none; border-radius: 999px; background: transparent; cursor: pointer; color: var(--text-2); font: 400 13.5px/1 var(--fg-sans); }
.pz-switch:disabled { opacity: .45; cursor: default; }
.pz-switch:focus-visible { outline: 2px solid rgba(255,255,255,.45); outline-offset: 2px; }

.pz-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pz-option {
    display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 14px; border-radius: 11px;
    border: 1px solid rgba(255,255,255,0.1); background: transparent; text-align: left; cursor: pointer;
    font-family: inherit; transition: background .12s, border-color .12s;
}
.pz-option:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.16); }
.pz-option.selected { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.55); }
.pz-option-name { font-size: 14px; font-weight: 500; color: #fff; }
.pz-option-desc { font-size: 12.5px; line-height: 1.4; color: var(--text-3); }
@media (max-width: 639px) {
    .pz-options { grid-template-columns: minmax(0, 1fr); }
    .pz-segment.fill { display: flex; width: 100%; }
    .pz-segment.fill .pz-segment-opt { flex: 1; padding: 0 8px; }
}

.fg-progress { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.09); overflow: hidden; }
.fg-progress > span { display: block; height: 100%; border-radius: 999px; background: #fff; }

/* 6. Таблицы, «подпись — значение», шаги, плитки ---------------------------------- */
/* position: relative — иначе .sr-only (absolute) в шапке таблицы позиционируется от .card, выходит из прокрутки и раздвигает страницу */
.tbl-wrap { position: relative; overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.12) transparent; }
.tbl, .usage-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .usage-table th {
    padding: 12px 16px; text-align: left; white-space: nowrap; vertical-align: bottom;
    font-size: 12.5px; font-weight: 500; color: var(--text-3); border-bottom: 1px solid var(--line);
}
.tbl td, .usage-table td { padding: 14px 16px; color: var(--text-2); border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tbody tr:last-child td, .usage-table tbody tr:last-child td { border-bottom: none; }
.tbl th:first-child, .tbl td:first-child, .usage-table th:first-child, .usage-table td:first-child { padding-left: 24px; }
.tbl th:last-child, .tbl td:last-child, .usage-table th:last-child, .usage-table td:last-child { padding-right: 24px; }
.tbl tbody tr, .usage-table tbody tr { transition: background .12s; }
.tbl tbody tr:hover, .usage-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.tbl .num, .usage-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .end { text-align: right; white-space: nowrap; }
.tbl .strong, .usage-table .strong { color: #fff; font-weight: 500; }
.tbl .muted { color: var(--text-4); }
.tbl .nowrap { white-space: nowrap; }
.tbl .mono, .usage-table .mono { font-size: 13px; }
.tbl-name { font-weight: 500; color: #fff; overflow-wrap: anywhere; }
.tbl-sub { margin-top: 3px; font-size: 13px; color: var(--text-4); }
.tbl-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; }
.tbl-group td { padding-top: 18px; padding-bottom: 8px; font-size: 12.5px; font-weight: 500; color: var(--text-4); background: none !important; }
@media (max-width: 639px) {
    .tbl th:first-child, .tbl td:first-child, .usage-table th:first-child, .usage-table td:first-child { padding-left: 16px; }
    .tbl th:last-child, .tbl td:last-child, .usage-table th:last-child, .usage-table td:last-child { padding-right: 16px; }
}
/* Таблица, которая на узком экране складывается в карточки: подписи ячеек ставит base.html из шапки */
@media (max-width: 720px) {
    .tbl.stackable thead { display: none; }
    .tbl.stackable, .tbl.stackable tbody, .tbl.stackable tr { display: block; width: 100%; }
    .tbl.stackable tr { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
    .tbl.stackable tr:last-child { border-bottom: none; }
    .tbl.stackable tbody tr:hover { background: none; }
    .tbl.stackable td { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 4px 0 !important; border: none; text-align: right; }
    .tbl.stackable td[data-label]::before { content: attr(data-label); flex-shrink: 0; font-size: 13px; color: var(--text-4); text-align: left; }
    .tbl.stackable td.cell-main { display: block; padding-bottom: 8px !important; text-align: left; }
    .tbl.stackable td.cell-main::before { content: none; }
    .tbl.stackable td.cell-actions { justify-content: flex-start; padding-top: 10px !important; }
    .tbl.stackable td.cell-actions::before { content: none; }
}

/* Подпись — значение */
.kv { margin: 0; }
.kv-row { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); align-items: center; gap: 6px 24px; min-height: 56px; padding: 14px 24px; }
.kv-row + .kv-row { border-top: 1px solid var(--line-soft); }
.kv-row dt { font-size: 14px; color: var(--text-3); }
.kv-row dd { margin: 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: 14px; color: #fff; }
.kv-value { min-width: 0; overflow-wrap: anywhere; }
.kv-value .muted { margin-left: 6px; }
@media (max-width: 639px) { .kv-row { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; } }

/* Шаги */
.steps { list-style: none; margin: 0; padding: 0; }
.step { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; padding-bottom: 28px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 13.5px; top: 36px; bottom: 8px; width: 1px; background: var(--line); }
.step:last-child::before { display: none; }
.step-num {
    width: 28px; height: 28px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line-strong); background: var(--surface-2);
    color: #fff; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.step.done .step-num { border-color: #fff; background: #fff; color: #000; }
.step.done .step-num .ui-icon { width: 12px; height: 12px; }
.step-title { padding-top: 4px; font-size: 15px; line-height: 1.35; font-weight: 600; color: #fff; }
.step-desc { margin-top: 5px; font-size: 13.5px; line-height: 1.6; color: var(--text-3); }
.step-desc a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.3); text-underline-offset: 3px; }
.step-desc a:hover { text-decoration-color: #fff; }
.step-body { margin-top: 12px; }

/* Шаги в ряд (как это работает) */
.how { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); counter-reset: how; }
@media (min-width: 900px) { .how { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.how-item { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.how-num {
    width: 30px; height: 30px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line-strong); background: var(--surface-2); color: #fff; font-size: 13.5px; font-weight: 600;
}
.how-title { margin-top: 16px; font-size: 15.5px; font-weight: 600; color: #fff; }
.how-desc { margin-top: 6px; font-size: 13.5px; line-height: 1.6; color: var(--text-3); }
.how-desc b { color: #fff; font-weight: 600; }

/* Плитки-ссылки */
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1100px) {
    .tiles.t4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tiles.t3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 479px) { .tiles { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.tile {
    display: flex; flex-direction: column; gap: 14px; min-width: 0;
    padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
    color: inherit; text-decoration: none; transition: border-color .15s, background .15s;
}
a.tile:hover { border-color: var(--line-strong); background: var(--surface-2); }
.tile-icon {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line-soft); background: var(--surface-3); color: var(--text-2);
}
.tile-icon .ui-icon { width: 17px; height: 17px; }
.tile-title { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; color: #fff; }
.tile-title .ui-icon { width: 13px; height: 13px; color: var(--text-5); transition: color .15s, transform .15s; }
a.tile:hover .tile-title .ui-icon { color: #fff; transform: translateX(2px); }
.tile-desc { display: block; margin-top: 5px; font-size: 13.5px; line-height: 1.5; color: var(--text-3); }
@media (max-width: 479px) {
    .tile { flex-direction: row; align-items: center; gap: 14px; padding: 16px; }
}

/* Подсказка / предупреждение */
.notice, .settings-note, .error-notice {
    display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--surface);
    font-size: 13.5px; line-height: 1.55; color: var(--text-2);
}
.notice > .ui-icon, .settings-note > .ui-icon, .error-notice > .ui-icon { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; color: var(--text-3); }
.notice b, .settings-note b { color: #fff; font-weight: 600; }
.notice-body { flex: 1; min-width: 0; }
.notice-title { font-weight: 600; color: #fff; }
.notice-action { flex-shrink: 0; align-self: center; }
.notice.warn { border-color: rgba(251,191,36,0.24); background: rgba(251,191,36,0.06); color: #fde68a; }
.notice.warn > .ui-icon { color: var(--warn); }
.notice.bad, .error-notice { border-color: rgba(248,113,113,0.24); background: rgba(248,113,113,0.07); color: #fecaca; }
.notice.bad > .ui-icon, .error-notice > .ui-icon { color: var(--bad); }
.notice.ok { border-color: rgba(74,222,128,0.24); background: rgba(74,222,128,0.06); color: #bbf7d0; }
.notice.ok > .ui-icon { color: var(--ok); }
.notice.flat { border: none; background: none; padding: 0; color: var(--text-3); }
.notice.flat > .ui-icon { color: var(--text-4); }

/* Пустое состояние */
.usage-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 52px 24px; text-align: center; }
.usage-empty > .ui-icon {
    box-sizing: content-box; width: 18px; height: 18px; margin-bottom: 10px; padding: 12px;
    border-radius: 999px; background: var(--surface-3); color: var(--text-3);
}
.usage-empty-title { font-size: 15px; font-weight: 600; color: #fff; }
.usage-empty-hint { max-width: 440px; font-size: 13.5px; line-height: 1.55; color: var(--text-3); }
.usage-empty .settings-btn { margin-top: 14px; }

/* Вопросы — раскрывающиеся строки */
.faq details + details { border-top: 1px solid var(--line-soft); }
.faq summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 17px 24px; font-size: 14.5px; font-weight: 500; color: var(--text-2); transition: color .12s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover, .faq details[open] summary { color: #fff; }
.faq summary .ui-icon { width: 14px; height: 14px; color: var(--text-4); flex-shrink: 0; transition: transform .2s; }
.faq details[open] summary .ui-icon { transform: rotate(180deg); }
.faq summary:focus-visible { outline: 2px solid rgba(255,255,255,.45); outline-offset: -2px; border-radius: 12px; }
.faq-a { max-width: 760px; padding: 0 24px 18px; font-size: 14px; line-height: 1.65; color: var(--text-3); }
.faq-a b { color: #fff; font-weight: 600; }
@media (max-width: 639px) { .faq summary { padding: 16px; } .faq-a { padding: 0 16px 16px; } }

/* 7. Расходы: график и доли ----------------------------------------------------------- */
.usage-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 1100px) { .usage-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.usage-stats.three { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .usage-stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.usage-stat { min-width: 0; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
a.usage-stat { display: block; text-decoration: none; transition: border-color .15s, background .15s; }
a.usage-stat:hover { border-color: var(--line-strong); background: var(--surface-2); }
.usage-stat-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; color: var(--text-3); }
.usage-stat-value { margin-top: 12px; font-size: 26px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.usage-stat-sub { margin-top: 8px; font-size: 13px; color: var(--text-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.usage-stat-sub a { color: var(--text-2); text-decoration: none; }
.usage-stat-sub a:hover { color: #fff; }
@media (max-width: 639px) { .usage-stat { padding: 16px; } .usage-stat-value { font-size: 21px; } }

.spend { display: grid; grid-template-columns: minmax(0, 1fr); }
.spend > .usage-types { border-top: 1px solid var(--line-soft); }
@media (min-width: 1000px) {
    .spend.with-types { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
    .spend.with-types .usage-types { border-top: none; border-left: 1px solid var(--line-soft); padding-top: 22px; }
}
.usage-types { display: flex; flex-direction: column; gap: 16px; padding: 20px 24px 22px; }
.usage-chart + .usage-types, .usage-chart ~ .usage-types { border-top: 1px solid var(--line-soft); }
.usage-types-title { font-size: 13px; font-weight: 500; color: var(--text-3); }
.usage-type-row, .usage-type-meta { display: flex; justify-content: space-between; gap: 12px; }
.usage-type-name { font-size: 14px; color: #fff; }
.usage-type-cost { font-size: 14px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.usage-type-track { height: 6px; margin: 8px 0 6px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; }
.usage-type-bar { display: block; height: 100%; border-radius: 999px; background: var(--chart); }
.usage-type-meta { font-size: 12.5px; color: var(--text-4); font-variant-numeric: tabular-nums; }

.usage-table-wrap { position: relative; overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.12) transparent; }
.usage-model { color: #fff; white-space: nowrap; }
.usage-time { color: var(--text-4); font-variant-numeric: tabular-nums; white-space: nowrap; }
.usage-tag {
    display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; color: var(--text-2);
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); white-space: nowrap;
}
.usage-more { display: flex; justify-content: center; padding: 6px 24px 18px; }

.usage-chart { padding: 22px 24px 18px; }
.usage-plot { position: relative; margin-left: 60px; }
.usage-grid { position: absolute; left: 0; right: 0; height: 1px; background: rgba(255,255,255,0.06); }
.usage-grid.base { background: rgba(255,255,255,0.16); }
.usage-tick {
    position: absolute; right: calc(100% + 10px); top: 0; transform: translateY(-50%);
    font-size: 12px; color: var(--text-4); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.usage-bands { position: absolute; inset: 0; display: flex; }
.usage-band {
    position: relative; flex: 1; min-width: 0; height: 100%; padding: 0 1px; border: none; border-radius: 6px;
    display: flex; align-items: flex-end; justify-content: center; background: transparent; cursor: default;
}
.usage-band:hover, .usage-band.active { background: rgba(255,255,255,0.035); }
.usage-bar { display: block; width: min(28px, 62%); border-radius: 5px 5px 0 0; background: var(--chart); transition: background .12s; }
.usage-band:hover .usage-bar, .usage-band.active .usage-bar { background: #5598e7; }
.usage-xaxis { display: flex; margin: 8px 0 0 60px; }
.usage-xlabel { flex: 1; min-width: 0; text-align: center; font-size: 12px; color: var(--text-4); white-space: nowrap; overflow: visible; font-variant-numeric: tabular-nums; }
.usage-tooltip {
    position: absolute; z-index: 5; padding: 9px 12px; border-radius: 10px; pointer-events: none;
    white-space: nowrap; background: #18181b; border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 12px 32px rgba(0,0,0,0.55);
}
.usage-tooltip[hidden] { display: none; }
.usage-tooltip-value { font-size: 14px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.usage-tooltip-label { margin-top: 3px; font-size: 12.5px; color: var(--text-3); }
@media (max-width: 639px) {
    .usage-types { padding: 16px 16px 18px; }
    .usage-chart { padding: 18px 16px 14px; }
    .usage-plot, .usage-xaxis { margin-left: 48px; }
    .usage-xlabel { font-size: 11px; }
}

/* 8. Пополнение ------------------------------------------------------------------- */
.topup-layout { display: flex; flex-direction: column; gap: 16px; }
.topup-main { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.topup-side { display: contents; }
.topup-section-title { margin: 0 0 14px; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; color: #fff; }
.topup-balance {
    order: -1; display: flex; flex-direction: column; padding: 18px 20px;
    border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
}
.topup-balance-label { font-size: 13.5px; color: var(--text-3); }
.topup-balance-value {
    margin-top: 6px; font-size: 32px; line-height: 1.1; font-weight: 600; letter-spacing: -0.025em;
    color: #fff; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.topup-balance-after { margin-top: 8px; font-size: 13.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.topup-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.topup-amount, .topup-method {
    position: relative; border: 1px solid rgba(255,255,255,0.1); background: var(--surface);
    cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
    transition: background .12s, border-color .12s, color .12s;
}
.topup-amount {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 56px; border-radius: 12px;
    color: var(--text-2); font: 500 16px/1 var(--fg-sans); font-variant-numeric: tabular-nums;
}
.topup-amount-note { font-size: 11px; font-weight: 500; color: var(--text-4); }
.topup-amount:hover, .topup-method:hover { background: var(--surface-2); border-color: rgba(255,255,255,0.18); color: #fff; }
.topup-amount.selected, .topup-method.selected { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.75); color: #fff; }
.topup-amount:has(:focus-visible), .topup-method:has(:focus-visible) { outline: 2px solid rgba(255,255,255,.45); outline-offset: 2px; }
.topup-amount input, .topup-method input { position: absolute; opacity: 0; pointer-events: none; }
.topup-custom { position: relative; margin-top: 10px; }
.topup-custom input {
    width: 100%; height: 56px; padding: 0 42px 0 18px; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1); background: var(--surface);
    color: #fff; font: 500 16px/1 var(--fg-sans); font-variant-numeric: tabular-nums;
    outline: none; transition: border-color .15s, background .15s;
}
.topup-custom input::placeholder { color: var(--text-4); font-weight: 400; }
.topup-custom input:hover { border-color: rgba(255,255,255,0.18); }
.topup-custom input:focus { border-color: rgba(255,255,255,0.36); background: var(--surface-2); }
.topup-custom.filled input { border-color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.08); }
.topup-custom.bad input { border-color: rgba(248,113,113,0.55); background: rgba(248,113,113,0.05); }
.topup-currency { position: absolute; top: 50%; right: 18px; transform: translateY(-50%); color: var(--text-4); font-size: 16px; pointer-events: none; }
.topup-hint, .topup-warn { margin: 10px 0 0; font-size: 13px; line-height: 1.5; }
.topup-hint { color: var(--text-4); }
.topup-warn { color: #fca5a5; }
.topup-group + .topup-group { margin-top: 20px; }
.topup-group-label { margin-bottom: 10px; font-size: 13px; font-weight: 500; color: var(--text-3); }
.topup-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.topup-method { display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 12px 14px; border-radius: 14px; text-align: left; font-family: inherit; }
.topup-method-icon {
    width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.06); color: var(--text-3); transition: background .12s, color .12s;
}
.topup-method-icon .ui-icon { width: 17px; height: 17px; }
.topup-method.selected .topup-method-icon { background: rgba(255,255,255,0.14); color: #fff; }
.topup-method-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.topup-method-name { font-size: 14.5px; font-weight: 500; color: #fff; }
.topup-method-desc { font-size: 12.5px; line-height: 1.35; color: var(--text-3); text-wrap: balance; }
.topup-radio {
    width: 18px; height: 18px; flex-shrink: 0; border-radius: 999px; border: 1.5px solid rgba(255,255,255,0.24);
    display: flex; align-items: center; justify-content: center; color: #000;
    transition: background .12s, border-color .12s;
}
.topup-radio .ui-icon { width: 10px; height: 10px; opacity: 0; }
.topup-method.selected .topup-radio { background: #fff; border-color: #fff; }
.topup-method.selected .topup-radio .ui-icon { opacity: 1; }
.topup-note { display: flex; gap: 10px; margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-4); }
.topup-note .ui-icon { margin-top: 3px; color: var(--text-4); }
.topup-pay {
    position: sticky; bottom: 0; z-index: 5; margin-top: -4px;
    padding: 20px 0 max(16px, env(safe-area-inset-bottom));
    background: linear-gradient(to bottom, rgba(0,0,0,0), #000 20px);
}
.topup-pay-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px;
    border-radius: 13px; border: none; background: #fff; color: #000;
    font: 600 15px/1 var(--fg-sans); font-variant-numeric: tabular-nums;
    cursor: pointer; transition: background .15s, opacity .15s;
}
.topup-pay-btn:hover:not(:disabled) { background: #e4e4e7; }
.topup-pay-btn:disabled { cursor: not-allowed; opacity: .35; }
.topup-pay-btn:focus-visible { outline: 2px solid rgba(255,255,255,.6); outline-offset: 2px; }
.topup-via { display: none; margin-top: 10px; text-align: center; font-size: 12.5px; color: var(--text-4); }
.topup-error {
    margin-bottom: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(248,113,113,0.24);
    background: rgba(248,113,113,0.1); font-size: 13px; line-height: 1.45; color: #fca5a5;
}
@media (min-width: 1100px) {
    .topup-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
    .topup-side {
        position: sticky; top: 32px; display: flex; flex-direction: column;
        border-radius: 18px; border: 1px solid var(--line); background: var(--surface);
    }
    .topup-balance { padding: 22px 22px 20px; border: none; border-radius: 0; background: none; }
    .topup-pay { position: static; margin: 0; padding: 18px 22px 20px; border-top: 1px solid var(--line-soft); background: none; }
    .topup-via { display: block; }
}
@media (max-width: 639px) {
    .topup-main { gap: 30px; }
    .topup-amount { height: 50px; font-size: 15px; }
    .topup-custom input { height: 50px; }
}

/* 9. Код, окна, меню, тосты --------------------------------------------------------- */
.code-block { min-width: 0; border-radius: 14px; border: 1px solid var(--line-soft); background: #141417; overflow: hidden; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 8px 8px 0 14px; }
.code-lang { display: inline-flex; align-items: center; gap: 9px; min-width: 0; padding-left: 4px; font: 600 13.5px/1.2 var(--fg-sans); color: #fff; }
.code-lang .ui-icon { width: 15px; height: 15px; color: var(--text-3); }
.code-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.code-btn {
    width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; border: none;
    background: transparent; color: var(--text-2); cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s;
}
.code-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.code-btn .ui-icon { width: 16px; height: 16px; }
.code-btn.ok { color: var(--ok); }
.code-block pre { margin: 0; padding: 10px 20px 20px; overflow-x: auto; background: transparent; }
.code-block pre code, .code-block pre { font-family: var(--fg-mono); font-size: 13px; line-height: 1.7; color: #e6e6e6; }
.code-tabs { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.code-tab {
    height: 32px; padding: 0 12px; border-radius: 8px; border: none; background: transparent; flex-shrink: 0;
    color: var(--text-3); font: 500 13px/1 var(--fg-sans); cursor: pointer; transition: background .12s, color .12s;
}
.code-tab:hover { color: #fff; }
.code-tab.active { background: rgba(255,255,255,0.09); color: #fff; }
.hljs-comment { color: #7f848e; font-style: italic; }
.hljs-keyword, .hljs-built_in { color: #c792ea; }
.hljs-string { color: #9ad98f; }
.hljs-number, .hljs-literal { color: #f78c6c; }
.hljs-title { color: #82aaff; }
.hljs-attr { color: #ffcb6b; }
.inline-code {
    font-family: var(--fg-mono); font-size: 0.875em;
    background: rgba(255,255,255,0.08); padding: 0.15em 0.4em; border-radius: 5px; color: #f4f4f5;
}

.pop-menu {
    position: fixed; z-index: 180; padding: 5px; border-radius: 12px; border: 1px solid var(--line-strong);
    background: #121214; box-shadow: 0 16px 48px rgba(0,0,0,0.6); animation: cmenuIn .12s ease-out;
}
.pop-item {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 8px 10px; border-radius: 8px; border: none;
    background: transparent; color: var(--text-2); font: 400 13.5px/1.25 var(--fg-sans); text-align: left; cursor: pointer;
}
.pop-item:hover:not(:disabled) { background: rgba(255,255,255,0.06); color: #fff; }
.pop-item.danger { color: #fca5a5; }
.pop-item.danger:hover { background: rgba(248,113,113,0.1); color: #fecaca; }
.pop-sep { height: 1px; margin: 4px 6px; background: var(--line-soft); }

.modal-overlay {
    position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
    padding: 16px; background: rgba(0,0,0,0.7); animation: cmenuIn .14s ease-out;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
    width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto;
    background: #0e0e10; border: 1px solid var(--line-strong); border-radius: 18px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
.modal-card.wide { max-width: 580px; }
.modal-card.xwide { max-width: 780px; }
.modal-head { padding: 22px 24px 4px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.modal-sub { padding: 0 24px 16px; font-size: 14px; line-height: 1.55; color: var(--text-3); }
.modal-body { padding: 0 24px 18px; }
.modal-foot { display: flex; gap: 10px; padding: 4px 24px 24px; }
.modal-top { display: flex; align-items: flex-start; gap: 12px; padding: 22px 24px 4px; }
.modal-top .modal-head { flex: 1; padding: 0; }
.modal-close {
    flex-shrink: 0; width: 30px; height: 30px; border-radius: 999px; border: none;
    background: transparent; color: var(--text-4); cursor: pointer; margin: -4px -8px 0 0;
    display: flex; align-items: center; justify-content: center;
    transition: color .15s, background .15s;
}
.modal-close:hover { color: #fff; background: rgba(255,255,255,0.08); }
.modal-close .ui-icon { width: 13px; height: 13px; }
.modal-error {
    margin-bottom: 12px; padding: 10px 12px; border-radius: 10px;
    border: 1px solid rgba(248,113,113,0.24); background: rgba(248,113,113,0.1);
    font-size: 13px; color: #fca5a5;
}
@media (max-width: 639px) {
    .modal-head, .modal-top { padding-left: 18px; padding-right: 18px; }
    .modal-sub, .modal-body { padding-left: 18px; padding-right: 18px; }
    .modal-foot { padding: 4px 18px 18px; }
}

#notificationContainer { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; align-items: center; gap: 8px; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.toast {
    display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 32px);
    padding: 11px 10px 11px 15px; border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12); background: #18181b; color: #e4e4e7; font-size: 13.5px; line-height: 1.45;
    box-shadow: 0 16px 40px rgba(0,0,0,0.55); animation: toastUp .34s cubic-bezier(.2,.9,.3,1) both; pointer-events: auto;
}
.toast.leaving { animation: toastDown .2s ease-in both; pointer-events: none; }
@keyframes toastUp { from { opacity: 0; transform: translateY(calc(100% + 32px)); } to { opacity: 1; transform: none; } }
@keyframes toastDown { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(calc(100% + 32px)); } }
.toast-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: 999px; background: var(--fg-dot); }
.toast.success .toast-dot { background: var(--ok); }
.toast.error .toast-dot { background: var(--bad); }
.toast.warning .toast-dot { background: var(--warn); }
.toast-text { min-width: 0; }
.toast-text b { color: #fff; font-weight: 600; }
.toast-text a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.toast-close {
    flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; border: none; background: transparent; color: var(--text-4);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.toast-close:hover { color: #fff; background: rgba(255,255,255,0.08); }
.toast-close .ui-icon { width: 11px; height: 11px; }

/* 10. Строки настроек: профиль, Telegram, админка -------------------------------------- */
.settings-section { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.settings-section + .settings-section { margin-top: 20px; }
.settings-section-head { padding: 20px 24px 6px; }
.settings-section-head.with-action { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 12px; }
.settings-section-title { margin: 0; font-size: 16px; font-weight: 600; color: #fff; }
.settings-section-hint { margin: 5px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text-3); }
.settings-section-body { display: flex; flex-direction: column; }
.settings-row { padding: 16px 24px; }
.settings-row + .settings-row, .account-card + .settings-row, .settings-row.lined { border-top: 1px solid var(--line-soft); }
.settings-row-main { display: flex; align-items: center; gap: 16px; }
.settings-row-text { flex: 1; min-width: 0; }
.settings-row-label { font-size: 14px; font-weight: 500; color: #fff; }
.settings-row-hint { margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--text-3); }
.settings-row-control { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
.settings-row.stack .settings-row-main { flex-direction: column; align-items: stretch; gap: 12px; }
.settings-row-below { margin-top: 12px; }
.settings-error {
    padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(248,113,113,0.24); background: rgba(248,113,113,0.1);
    font-size: 13.5px; line-height: 1.45; color: #fca5a5;
}
@media (max-width: 639px) {
    .settings-section-head { padding: 16px 16px 4px; }
    .settings-row { padding: 14px 16px; }
    .settings-row:not(.inline) .settings-row-main { flex-direction: column; align-items: stretch; gap: 10px; }
    .settings-row:not(.inline) .settings-row-control { flex-wrap: wrap; }
}
.account-card { display: flex; align-items: center; gap: 16px; padding: 22px 24px; }
.account-ids { min-width: 0; }
.account-name { font-size: 17px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-email { margin-top: 3px; font-size: 14px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-balance { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; color: #fff; }
@media (max-width: 639px) { .account-card { padding: 18px 16px; } }

/* 11. Мелочи и совместимость --------------------------------------------------------- */
.skeleton { border-radius: 6px; background: rgba(255,255,255,0.05); animation: blink 1.4s ease-in-out infinite; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 18px; }
.toolbar .search-field { flex: 1 1 280px; }

/* API-пакеты (разметку строит main/js/packages.js, базовые стили — packages.css, общий с классикой) */
html[data-ui="v2"] #pkgMine:not(:empty) + #pkgShop { margin-top: 44px; }
html[data-ui="v2"] .pkg-section-head { margin-bottom: 14px; }
html[data-ui="v2"] .pkg-section-title { font-size: 18px; letter-spacing: -0.015em; }
html[data-ui="v2"] .pkg-section-hint { margin-top: 5px; font-size: 14px; line-height: 1.55; color: var(--text-3); max-width: 760px; }
html[data-ui="v2"] .pkg-grid { gap: 16px; }
html[data-ui="v2"] .pkg-card { padding: 22px 24px; border-radius: 16px; }
html[data-ui="v2"] .pkg-name { font-size: 16px; }
html[data-ui="v2"] .pkg-meta { font-size: 13.5px; color: var(--text-3); }
html[data-ui="v2"] .pkg-stat { border-radius: 12px; background: var(--surface-2); border-color: var(--line-soft); }
html[data-ui="v2"] .pkg-stat-label { font-size: 13px; }
html[data-ui="v2"] .pkg-stat-sub, html[data-ui="v2"] .pkg-block-hint, html[data-ui="v2"] .pkg-group-desc { font-size: 13px; color: var(--text-4); }
html[data-ui="v2"] .pkg-block-title { font-size: 14px; }
html[data-ui="v2"] .pkg-offers .usage-table td { color: var(--text-2); }
@media (max-width: 639px) { html[data-ui="v2"] .pkg-card { padding: 18px 16px; } }

/* Совместимость со страницами, которые ещё в старой разметке (админка и пр.) */
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }
@keyframes dialogPop { from { opacity: 0; transform: scale(0.96) translateY(6px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.animate-fade-in { animation: fadeIn 0.3s ease-out forwards; opacity: 0; }
.dialog-enter { animation: dialogPop 0.2s ease-out forwards; }

@media (prefers-reduced-motion: reduce) {
    html[data-ui="v2"] *, html[data-ui="v2"] *::before, html[data-ui="v2"] *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Атрибут hidden сильнее display компонентов (.usage-types, .usage-empty и т. п. — flex) */
html[data-ui="v2"] [hidden] { display: none !important; }

/* Свои display у компонентов не должны перебивать переключаемый .hidden */
.nav-count.hidden, .modal-overlay.hidden, .toast.hidden, .fg-badge.hidden, .pz-chip.hidden,
.settings-row.hidden, .settings-section.hidden, .usage-stat.hidden, .code-field.hidden, .stat.hidden, .card.hidden { display: none; }

/* 12. Вход -------------------------------------------------------------------------- */
.landing-hero-bg {
    pointer-events: none;
    background:
        radial-gradient(56% 44% at 50% -4%, rgba(255,255,255,0.13), transparent 70%),
        radial-gradient(30% 24% at 50% 0%, rgba(255,255,255,0.08), transparent 72%);
}
.landing-grid {
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: center top;
    -webkit-mask-image: radial-gradient(70% 52% at 50% 0%, #000 25%, transparent 78%);
    mask-image: radial-gradient(70% 52% at 50% 0%, #000 25%, transparent 78%);
}
.login-pill {
    display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03);
    font-size: 13px; color: var(--text-2);
}

/* 13. Alibaba Cloud — официальный партнёр. Сайдбар и вход: «Alibaba Cloud │ Partner» (main/_alibaba_partner.html),
   у моделей — «Powered by». Подсказка — static/main/js/tips.js. Плоско, как весь кабинет: без свечений и анимаций. */
.ali-partner {
    display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 8px;
    border-radius: 8px; font-size: 12.5px; line-height: 1; white-space: nowrap; color: var(--text-2);
    cursor: default; outline: none; transition: background-color .12s;
}
.ali-partner:hover, .ali-partner:focus-visible { background: rgba(255,106,0,0.07); }
.ali-partner:focus-visible { box-shadow: inset 0 0 0 1px rgba(255,106,0,0.5); }
.ali-partner-name { font-weight: 500; }
.ali-partner-sep { width: 1px; height: 12px; background: rgba(255,106,0,0.5); }
.ali-partner-tag { font-weight: 600; color: #ff6a00; letter-spacing: 0.01em; }
.side-ali { padding: 0 0 4px; }
