/* ==========================================================================
   Clover — дизайн-система
   Строгая зелёная идентика: однотонные поверхности, изумруд как акцент,
   никакого стекла и свечений. Шрифты: Golos Text · JetBrains Mono (данные).
   ========================================================================== */

:root {
    --bg: #060f0a;
    --surface: #0b1710;
    --surface-2: #0f1d14;
    --surface-3: #132417;
    --border: rgba(110, 231, 183, 0.10);
    --border-strong: rgba(110, 231, 183, 0.20);
    --text: #e6f2ea;
    --text-dim: rgba(230, 242, 234, 0.62);
    --text-faint: rgba(230, 242, 234, 0.38);
    --emerald: #34d399;
    --emerald-deep: #10b981;
    --mint: #6ee7b7;
    --lime: #a3e635;
    --danger: #f87171;
    --amber: #fbbf24;
    --radius-panel: 10px;
    --radius-ctl: 8px;
    --shadow-pop: 0 16px 42px rgba(0, 0, 0, 0.48);
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.22);
    --gradient-accent: linear-gradient(135deg, #34d399 0%, #a3e635 100%);
}

body {
    font-family: 'Golos Text', system-ui, sans-serif;
    color: var(--text);
    background-image: radial-gradient(ellipse 75% 45% at 50% -12%, rgba(52, 211, 153, 0.07), transparent 68%);
    background: var(--bg);
    font-size: 14px;
    line-height: 1.5;
    scrollbar-width: thin;
    scrollbar-color: rgba(110, 231, 183, 0.18) transparent;
    -webkit-font-smoothing: antialiased;
}
body::-webkit-scrollbar { width: 8px; }
body::-webkit-scrollbar-thumb { background: rgba(110, 231, 183, 0.18); border-radius: 4px; }

.mono { font-family: 'JetBrains Mono', 'Cascadia Code', 'Consolas', monospace; font-size: 13px; }
.font-display { font-family: 'Golos Text', sans-serif; font-weight: 700; letter-spacing: -0.01em; }

/* Клеверное поле — только на публичных страницах (лендинг, вход, игрок) */
.clover-field {
    background-image:
        radial-gradient(ellipse 70% 45% at 50% -10%, rgba(52, 211, 153, 0.07), transparent 65%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Ctext x='10' y='30' font-size='26' fill='rgba(110,231,183,0.028)'%3E%E2%98%98%3C/text%3E%3Ctext x='70' y='90' font-size='20' fill='rgba(163,230,53,0.022)'%3E%E2%98%98%3C/text%3E%3C/svg%3E");
}

/* ─── Поверхности ───────────────────────────────────────────────────────── */
.panel {
    background: linear-gradient(145deg, rgba(15, 29, 20, 0.98), rgba(8, 20, 13, 0.98));
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow-soft);
}
.panel-2 { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-ctl); }

/* ─── Логотип ───────────────────────────────────────────────────────────── */
.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(110, 231, 183, 0.22);
    color: var(--emerald);
    flex: none;
}
.logo-mark.logo-lg { width: 52px; height: 52px; border-radius: 14px; }
.brand-text { font-weight: 700; font-size: 15px; color: #fff; letter-spacing: -0.01em; }

/* ─── Кнопки ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    border-radius: var(--radius-ctl);
    font-weight: 600;
    font-size: 13.5px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.14s, border-color 0.14s, color 0.14s;
    border: 1px solid transparent;
    text-decoration: none;
    user-select: none;
    white-space: nowrap;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--gradient-accent); color: #04170e; box-shadow: 0 5px 16px rgba(52, 211, 153, 0.16); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-secondary { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-3); border-color: rgba(110, 231, 183, 0.32); }
.btn-ghost { background: transparent; color: var(--text-dim); border-color: transparent; }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.btn-danger { background: transparent; border-color: rgba(248, 113, 113, 0.3); color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: rgba(248, 113, 113, 0.10); }
.btn-amber { background: var(--amber); color: #1a1205; }
.btn-amber:hover:not(:disabled) { background: #f59e0b; }
/* Алиасы для обратной совместимости разметки */
.btn-glass { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.btn-glass:hover:not(:disabled) { background: var(--surface-3); border-color: rgba(110, 231, 183, 0.32); }
.btn-red { background: transparent; border-color: rgba(248, 113, 113, 0.3); color: var(--danger); }
.btn-red:hover:not(:disabled) { background: rgba(248, 113, 113, 0.10); }
.btn-icon { padding: 0; width: 32px; height: 32px; flex: none; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
.btn-block { width: 100%; }

/* Спиннер в кнопке: <button class="btn btn-primary is-loading"> */
.btn.is-loading { pointer-events: none; opacity: 0.75; }
.btn.is-loading > * { visibility: hidden; }
.btn.is-loading::after {
    content: '';
    position: absolute;
    width: 15px; height: 15px;
    border: 2px solid rgba(0, 0, 0, 0.25);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.btn-secondary.is-loading::after, .btn-ghost.is-loading::after, .btn-danger.is-loading::after { border-color: rgba(230,242,234,0.2); border-top-color: var(--mint); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Бейджи ────────────────────────────────────────────────────────────── */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    border: 1px solid transparent;
}
.tag-em, .tag-green { background: rgba(52, 211, 153, 0.12); color: var(--mint); border-color: rgba(110, 231, 183, 0.20); }
.tag-lime { background: rgba(163, 230, 53, 0.10); color: #bef264; border-color: rgba(163, 230, 53, 0.20); }
.tag-amber { background: rgba(251, 191, 36, 0.10); color: #fcd34d; border-color: rgba(251, 191, 36, 0.22); }
.tag-red { background: rgba(248, 113, 113, 0.10); color: #fda4af; border-color: rgba(248, 113, 113, 0.22); }
.tag-muted { background: var(--surface-2); color: var(--text-faint); border-color: var(--border); }

/* ─── Чипы (редакторы списков имён) ─────────────────────────────────────── */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px 3px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    font-size: 12.5px;
    color: var(--text);
}
.chip button {
    background: none;
    border: none;
    color: var(--text-faint);
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    line-height: 1;
    border-radius: 50%;
}
.chip button:hover { color: var(--danger); }

/* ─── Поля ввода ────────────────────────────────────────────────────────── */
input, select, textarea {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-ctl);
    padding: 0 12px;
    height: 38px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.14s, box-shadow 0.14s;
}
textarea { height: auto; padding: 10px 12px; }
input:focus, select:focus, textarea:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.14);
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }
select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236ee7b7' stroke-opacity='0.5' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
select:disabled { opacity: 0.4; cursor: not-allowed; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--emerald); cursor: pointer; padding: 0; height: auto; }
label.f-label { display: block; font-size: 12px; font-weight: 500; color: var(--text-faint); margin-bottom: 6px; }

/* ─── Таблицы ───────────────────────────────────────────────────────────── */
table { border-collapse: collapse; }
table th {
    color: var(--text-faint);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    background: var(--surface);
}
thead.sticky th { position: sticky; top: 0; z-index: 5; }
tbody tr { transition: background 0.12s; }
tbody tr:hover { background: rgba(110, 231, 183, 0.04); }
.th { color: var(--text-faint); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }

/* Моно-ячейка с копированием по клику */
.copy-cell { cursor: copy; border-radius: 6px; padding: 1px 6px; transition: background 0.12s; }
.copy-cell:hover { background: rgba(110, 231, 183, 0.10); }

/* ─── Аватар ────────────────────────────────────────────────────────────── */
.avatar {
    width: 32px; height: 32px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #04170e;
    background: var(--emerald);
    flex: none;
    text-transform: uppercase;
}

/* ─── Статистика ────────────────────────────────────────────────────────── */
.stat-num { font-weight: 700; font-size: 24px; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }

/* ─── Модалки ───────────────────────────────────────────────────────────── */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(2, 8, 5, 0.66);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fade-in 0.14s ease;
}
.modal-backdrop.hidden { display: none; }
.modal-card {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    box-shadow: var(--shadow-pop);
    animation: modal-in 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ─── Тосты ─────────────────────────────────────────────────────────────── */
#toast { position: fixed; bottom: 20px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 16px;
    border-radius: var(--radius-ctl);
    font-size: 13.5px;
    font-weight: 500;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-left: 3px solid var(--emerald);
    color: var(--text);
    box-shadow: var(--shadow-pop);
    animation: slide-in 0.18s ease;
}
.toast-error { border-left-color: var(--danger); }
@keyframes slide-in { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ─── Скелетон и пустые состояния ───────────────────────────────────────── */
.skeleton {
    border-radius: 6px;
    background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.3s infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.empty-state { text-align: center; padding: 44px 20px; color: var(--text-faint); }
.empty-state i { font-size: 28px; display: block; margin-bottom: 10px; opacity: 0.5; }

/* ─── Каркас приложения (сайдбар) ───────────────────────────────────────── */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 236px;
    flex: none;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-right: 1px solid var(--border);
    position: sticky;
    top: 0;
    height: 100vh;
}
.sidebar-head { display: flex; align-items: center; gap: 10px; padding: 16px; border-bottom: 1px solid var(--border); text-decoration: none; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.sidebar-section { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-faint); padding: 14px 10px 6px; }
.side-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-ctl);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-dim);
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: inherit;
    transition: background 0.13s, color 0.13s;
    border-left: 3px solid transparent;
}
.side-item:hover { background: var(--surface-2); color: var(--text); }
.side-item.active { background: rgba(52, 211, 153, 0.10); color: var(--mint); border-left-color: var(--emerald); border-radius: 0 var(--radius-ctl) var(--radius-ctl) 0; margin-left: 3px; width: calc(100% - 3px); }
.side-item i { font-size: 17px; }
.sidebar-user { border-top: 1px solid var(--border); padding: 12px; display: flex; align-items: center; gap: 10px; }
.sidebar-user .u-meta { min-width: 0; flex: 1; }
.sidebar-user .u-name { font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .u-sub { font-size: 11.5px; color: var(--text-faint); }

.app-content { flex: 1; min-width: 0; padding: 30px 34px 56px; max-width: 1500px; }
.app-content > * { animation: content-in 0.24s ease both; }
@keyframes content-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-title { font-size: 23px; font-weight: 700; color: #fff; letter-spacing: -0.025em; display: flex; align-items: center; gap: 10px; }
.page-sub { font-size: 13px; color: var(--text-faint); margin-top: 6px; max-width: 720px; }
.page-head::after { content: ''; display: block; width: 54px; height: 3px; border-radius: 99px; background: var(--gradient-accent); margin-top: 14px; opacity: 0.8; }
.page-actions { display: flex; gap: 8px; flex: none; }

/* Мобильная версия: сайдбар → верхняя лента */
@media (max-width: 900px) {
    .app-shell { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: static; border-right: none; border-bottom: 1px solid var(--border); }
    .sidebar-nav { flex-direction: row; overflow-x: auto; padding: 8px 10px; gap: 4px; }
    .sidebar-section { display: none; }
    .side-item { width: auto; flex: none; border-left: none; border-bottom: 2px solid transparent; border-radius: 7px; }
    .side-item.active { border-left: none; border-bottom-color: var(--emerald); border-radius: 7px 7px 0 0; margin-left: 0; width: auto; }
    .sidebar-user { border-top: none; border-left: 1px solid var(--border); }
    .app-content { padding: 20px 14px 40px; max-width: none; }
    .page-title { font-size: 20px; }
    .page-head { margin-bottom: 18px; }
    .panel { border-radius: 9px; }
}
@media (max-width: 560px) {
    .sidebar-head { padding: 12px 14px; }
    .sidebar-user { padding: 8px 10px; }
    .sidebar-nav { scrollbar-width: none; }
    .sidebar-nav::-webkit-scrollbar { display: none; }
    .app-content { padding-left: 10px; padding-right: 10px; }
    .page-actions, .page-actions .btn { width: 100%; }
    .page-actions { flex-wrap: wrap; }
    #toast { left: 10px; right: 10px; bottom: 10px; }
    .toast-item { width: 100%; }
}

/* ─── Рамка браузера (мок на лендинге) ──────────────────────────────────── */
.browser-frame {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-pop);
}
.browser-chrome {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 6px; flex: none; }
.browser-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--border-strong); }
.browser-url {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 5px 11px;
    font-size: 11.5px;
    color: var(--text-faint);
}

/* ─── Ссылки-призраки (футеры, «на главную») ────────────────────────────── */
.footer-link { color: var(--text-faint); font-size: 13px; text-decoration: none; transition: color 0.13s; }
.footer-link:hover { color: var(--mint); }

/* ─── Шаги с соединительной линией (лендинг) ────────────────────────────── */
.steps-grid { position: relative; }
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 8px;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(110, 231, 183, 0.22);
    color: var(--emerald);
    font-weight: 700;
    font-size: 12px;
    flex: none;
}

/* ─── Ховер карточек (лендинг) — тихий, без подпрыгиваний ───────────────── */
.card-hover { transition: border-color 0.15s, background 0.15s; }
.card-hover:hover { border-color: var(--border-strong); background: var(--surface-2); }

/* ─── Фокус и reduced motion ────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Светлая тема — те же токены, перевёрнутая палитра. Акцент остаётся
   изумрудным, но затемнён для читаемости на светлом фоне.
   ========================================================================== */
[data-theme="light"] {
    --bg: #eef5f0;
    --surface: #ffffff;
    --surface-2: #f2f7f4;
    --surface-3: #e5efe9;
    --border: rgba(6, 78, 59, 0.12);
    --border-strong: rgba(6, 78, 59, 0.24);
    --text: #122019;
    --text-dim: rgba(18, 32, 25, 0.68);
    --text-faint: rgba(18, 32, 25, 0.45);
    --emerald: #059669;
    --emerald-deep: #047857;
    --mint: #047857;
    --lime: #65a30d;
    --danger: #dc2626;
    --amber: #d97706;
    --shadow-pop: 0 16px 42px rgba(6, 40, 26, 0.18);
    --shadow-soft: 0 8px 24px rgba(6, 40, 26, 0.08);
}
[data-theme="light"] body {
    background: var(--bg);
    scrollbar-color: rgba(6, 78, 59, 0.25) transparent;
}
[data-theme="light"] body::-webkit-scrollbar-thumb { background: rgba(6, 78, 59, 0.25); }
[data-theme="light"] .panel {
    background: var(--surface);
    border-color: var(--border);
}
[data-theme="light"] .brand-text,
[data-theme="light"] .page-title,
[data-theme="light"] .stat-num { color: var(--text); }
[data-theme="light"] tbody tr:hover { background: rgba(5, 150, 105, 0.06); }
[data-theme="light"] .copy-cell:hover { background: rgba(5, 150, 105, 0.10); }
[data-theme="light"] .side-item.active { background: rgba(5, 150, 105, 0.10); color: var(--mint); }
[data-theme="light"] .tag-em, [data-theme="light"] .tag-green { background: rgba(5, 150, 105, 0.10); color: #047857; border-color: rgba(5, 150, 105, 0.25); }
[data-theme="light"] .tag-lime { background: rgba(101, 163, 13, 0.10); color: #4d7c0f; border-color: rgba(101, 163, 13, 0.25); }
[data-theme="light"] .tag-amber { background: rgba(217, 119, 6, 0.10); color: #b45309; border-color: rgba(217, 119, 6, 0.25); }
[data-theme="light"] .tag-red { background: rgba(220, 38, 38, 0.08); color: #b91c1c; border-color: rgba(220, 38, 38, 0.25); }
[data-theme="light"] .modal-backdrop { background: rgba(20, 40, 30, 0.35); }
[data-theme="light"] .btn-primary { color: #ffffff; box-shadow: 0 5px 16px rgba(5, 150, 105, 0.25); }
[data-theme="light"] .clover-field {
    background-image:
        radial-gradient(ellipse 70% 45% at 50% -10%, rgba(5, 150, 105, 0.08), transparent 65%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Ctext x='10' y='30' font-size='26' fill='rgba(5,150,105,0.05)'%3E%E2%98%98%3C/text%3E%3Ctext x='70' y='90' font-size='20' fill='rgba(101,163,13,0.045)'%3E%E2%98%98%3C/text%3E%3C/svg%3E");
}
/* Тёмные фрагменты разметки, заданные Tailwind-классами вне токенов */
[data-theme="light"] .bg-black\/30 { background: rgba(6, 78, 59, 0.06); }
[data-theme="light"] .browser-url { background: var(--surface-2); }
/* Tailwind-цвета текста, захардкоженные в разметке под тёмную тему */
[data-theme="light"] .text-white { color: var(--text); }
[data-theme="light"] [class*="text-emerald-100"] { color: rgba(18, 32, 25, 0.55); }
[data-theme="light"] [class*="text-emerald-200"] { color: rgba(18, 32, 25, 0.5); }
[data-theme="light"] [class*="text-emerald-300"]:not(.tag) { color: #047857; }
[data-theme="light"] [class*="text-emerald-400"]:not(.tag) { color: #059669; }
[data-theme="light"] [class*="text-emerald-50"] { color: rgba(18, 32, 25, 0.8); }
[data-theme="light"] .text-rose-300, [data-theme="light"] .text-rose-400 { color: #dc2626; }
[data-theme="light"] .text-lime-300 { color: #65a30d; }
[data-theme="light"] .text-amber-400, [data-theme="light"] .text-amber-300 { color: #b45309; }
[data-theme="light"] .bg-rose-500\/5 { background: rgba(220, 38, 38, 0.06); }
[data-theme="light"] .border-emerald-300\/10, [data-theme="light"] [class*="border-emerald-300"] { border-color: rgba(6, 78, 59, 0.12); }
[data-theme="light"] .text-gray-400, [data-theme="light"] .text-gray-500 { color: rgba(18, 32, 25, 0.5); }

/* ─── Переключатель темы (плавающая кнопка) ─────────────────────────────── */
.theme-toggle {
    position: fixed;
    right: 18px;
    top: 18px;
    z-index: 150;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.14s, border-color 0.14s, background 0.14s;
    box-shadow: var(--shadow-soft);
}
.theme-toggle:hover { color: var(--emerald); border-color: var(--emerald); }
@media (max-width: 900px) { .theme-toggle { top: auto; bottom: 16px; right: 16px; } }
