@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/*
  Тема "Beacon" — маячок присутствия в тёмном мире.
  Бот — маяк: либо светится (онлайн), либо гаснет (оффлайн).
  Двойной акцент (виолет + циан), мягкое стекло на панелях.
  Мобильная версия — отдельная раскладка с нижней панелью вкладок, как в нативном приложении,
  а не сжатый десктоп.
*/

:root {
    --bg: #08080f;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-2: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.09);
    --border-soft: rgba(255, 255, 255, 0.05);

    --text: #eef0fb;
    --text-muted: #9497b8;
    --text-dim: #5c5f7d;

    --violet: #8b5cf6;
    --violet-soft: rgba(139, 92, 246, 0.14);
    --cyan: #22d3ee;
    --cyan-soft: rgba(34, 211, 238, 0.14);
    --gold: #f5c451;
    --gold-soft: rgba(245, 196, 81, 0.14);
    --online: #34e0a1;
    --danger: #ff5c7a;
    --danger-soft: rgba(255, 92, 122, 0.14);

    --radius: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --font-display: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --tabbar-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background:
        radial-gradient(circle at 12% 8%, rgba(139, 92, 246, 0.16), transparent 42%),
        radial-gradient(circle at 88% 82%, rgba(34, 211, 238, 0.12), transparent 45%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

a { color: inherit; }
button, input, select, textarea { font-size: 16px; } /* не даём iOS зумить при фокусе */

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); }

/* ===================== БОКОВАЯ ПАНЕЛЬ (ДЕСКТОП) ===================== */
.sidebar {
    width: 252px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    position: sticky;
    top: 0;
    overflow-y: auto;
}
.brand { padding: 24px 20px 20px; display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
    width: 34px; height: 34px; border-radius: 11px;
    background: linear-gradient(135deg, var(--violet), var(--cyan));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 800; font-size: 14px; color: #0a0a14;
    flex-shrink: 0; box-shadow: 0 0 22px rgba(139, 92, 246, 0.35);
}
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; }
.brand-text small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--text-dim); font-size: 11px; margin-top: 2px; }

.nav-links { list-style: none; padding: 10px 12px; flex-grow: 1; }
.nav-links li { margin-bottom: 3px; }
.nav-links li a {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 13px; border-radius: 12px;
    color: var(--text-muted); text-decoration: none;
    font-size: 13.5px; font-weight: 500;
    transition: background .15s, color .15s;
}
.nav-links li a .ic { width: 18px; height: 18px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.nav-links li a:hover { background: var(--surface-2); color: var(--text); }
.nav-links li a.active { background: var(--violet-soft); color: #c4b0ff; }

.session-picker { padding: 14px 16px; border-top: 1px solid var(--border-soft); }
.session-picker label { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 7px; }
.session-picker select {
    width: 100%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
    padding: 10px 11px; border-radius: 11px; font-family: var(--font-body);
    outline: none; cursor: pointer;
}

.account-box { padding: 12px 16px; border-top: 1px solid var(--border-soft); display: flex; align-items: center; gap: 10px; }
.account-avatar { width: 30px; height: 30px; border-radius: 9px; background: var(--surface-2); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 12px; flex-shrink: 0; }
.avatar-lg { width: 84px; height: 84px; border-radius: 20px; background: var(--surface-2); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 26px; flex-shrink: 0; border: 1px solid var(--border-soft); }
.token-box { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,0.25); border: 1px solid var(--border-soft); border-radius: var(--radius-pill); padding: 9px 8px 9px 16px; font-family: var(--font-mono); font-size: 12.5px; color: var(--cyan); word-break: break-all; }
.token-box button { flex-shrink: 0; }
.mini-avatar { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); background-size: cover; background-position: center; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 11px; flex-shrink: 0; vertical-align: middle; }
.account-info { flex-grow: 1; min-width: 0; }
.account-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-tier { font-size: 10.5px; color: var(--text-dim); }
.account-tier.premium { color: var(--gold); }
.account-logout { background: transparent; border: none; color: var(--text-dim); cursor: pointer; padding: 6px; min-height: unset; display: inline-flex; align-items: center; justify-content: center; }
.account-logout:hover { color: var(--danger); }

.clock-box { padding: 10px 20px calc(16px + var(--safe-bottom)); font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 8px; }
.clock-box b { color: var(--text-muted); font-weight: 500; }

/* ===================== ОСНОВНОЙ КОНТЕНТ ===================== */
.main-content { flex-grow: 1; padding: 30px 36px calc(40px + var(--safe-bottom)); overflow-y: auto; -webkit-overflow-scrolling: touch; height: 100vh; height: 100dvh; max-width: 1100px; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.page-header h1 { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.page-header p { color: var(--text-dim); font-size: 13px; margin-top: 4px; }

.status-pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 13px; border-radius: var(--radius-pill);
    background: var(--surface-2); border: 1px solid var(--border);
    font-size: 12.5px; font-weight: 500; color: var(--text-muted); white-space: nowrap;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-dim); flex-shrink: 0; }
.status-pill.online .status-dot { background: var(--online); box-shadow: 0 0 9px var(--online); animation: pulse-dot 1.8s infinite; }
.status-pill.online { color: var(--online); border-color: rgba(52, 224, 161, 0.25); background: rgba(52, 224, 161, 0.08); }
.status-pill.offline .status-dot { background: var(--danger); }
.status-pill.offline { color: var(--danger); border-color: rgba(255, 92, 122, 0.2); }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.signal-strip { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.signal-strip .bar { width: 3px; background: var(--border); border-radius: 2px; height: 30%; transition: background .3s; }
.signal-strip.live .bar { background: var(--online); animation: signal-bounce 1.1s ease-in-out infinite; }
.signal-strip.live .bar:nth-child(1) { animation-delay: 0s; }
.signal-strip.live .bar:nth-child(2) { animation-delay: .12s; }
.signal-strip.live .bar:nth-child(3) { animation-delay: .24s; }
.signal-strip.live .bar:nth-child(4) { animation-delay: .36s; }
.signal-strip.live .bar:nth-child(5) { animation-delay: .48s; }
.signal-strip.live .bar:nth-child(6) { animation-delay: .3s; }
.signal-strip.live .bar:nth-child(7) { animation-delay: .18s; }
@keyframes signal-bounce { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* ===================== ПАНЕЛИ / СТЕКЛО ===================== */
.panel { background: var(--surface); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.panel-head h2 { font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.panel-head .sub { color: var(--text-dim); font-size: 12px; margin-top: 3px; }

/* ===================== СВОРАЧИВАЕМАЯ ПАНЕЛЬ («Новая сессия») ===================== */
.panel-head.collapsible-head { cursor: pointer; user-select: none; }
.panel-collapse-btn {
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted);
    width: 32px; height: 32px; min-height: unset; padding: 0; border-radius: 9px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
}
.panel-head.collapsible-head:hover .panel-collapse-btn { color: var(--text); background: var(--surface); }
.panel-collapse-btn svg { transition: transform .2s ease; }
#create-session-panel.collapsed .panel-collapse-btn svg { transform: rotate(-90deg); }
.collapsible-wrap { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .25s ease, opacity .2s ease; opacity: 1; }
.collapsible-wrap.collapsed { grid-template-rows: 0fr; opacity: 0; }
.collapsible-inner { overflow: hidden; min-height: 0; }
#create-session-panel.collapsed .panel-head.collapsible-head { margin-bottom: 0; }

.row { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.row:last-child { margin-bottom: 0; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 130px; }
.field label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }

#chat { background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border); height: 420px; overflow-y: auto; padding: 15px 16px; border-radius: var(--radius); font-family: var(--font-mono); font-size: 13px; line-height: 1.7; margin-bottom: 14px; }
.msg { word-wrap: break-word; white-space: pre-wrap; }
.msg + .msg { margin-top: 1px; }

/* Страница «Логи чата» — тот же внешний вид, что у живой консоли (#chat): моноширинный шрифт
   и более крупный, читаемый размер текста вместо обычного мелкого текста панелей. */
#logs-chat.log-console { background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border); padding: 15px 16px; border-radius: var(--radius); font-family: var(--font-mono); font-size: 14px; line-height: 1.8; }
#logs-chat.log-console .msg { font-size: 14px; line-height: 1.8; }

input, select, textarea {
    flex-grow: 1; padding: 12px 14px; background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--border); color: var(--text); border-radius: 11px; outline: none;
    font-family: var(--font-body); transition: border-color .15s, box-shadow .15s; min-width: 0;
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:focus, select:focus, textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
input.mono { font-family: var(--font-mono); font-size: 13.5px; }

button {
    padding: 12px 19px; border: none; border-radius: 11px; color: #fff; cursor: pointer;
    font-weight: 600; font-size: 13.5px; font-family: var(--font-body);
    transition: filter .15s, transform .1s; white-space: nowrap; min-height: 44px;
}
button:active { transform: scale(0.97); }
button:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--violet), #6d3ff0); color: #fff; box-shadow: 0 4px 18px rgba(139, 92, 246, 0.28); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.22); color: var(--text); }
.btn-success { background: linear-gradient(135deg, var(--online), #17b579); color: #04150d; }
.btn-success:hover { filter: brightness(1.08); }
.btn-danger { background: var(--danger-soft); border: 1px solid rgba(255, 92, 122, 0.3); color: var(--danger); }
.btn-danger:hover { background: rgba(255, 92, 122, 0.18); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #d99b2b); color: #241a02; }
.btn-gold:hover { filter: brightness(1.08); }
.btn-icon { padding: 10px; min-width: 44px; }
.btn-sm { padding: 9px 14px; font-size: 12.5px; min-height: 38px; }
.btn-block { width: 100%; }

.toggle { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; font-size: 12.5px; color: var(--text-muted); min-height: 32px; }
.toggle input { display: none; }
.toggle .track { width: 36px; height: 21px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border); border-radius: 20px; position: relative; transition: background .2s, border-color .2s; flex-shrink: 0; }
.toggle .track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #8388a8; transition: transform .2s, background .2s; }
.toggle input:checked + .track { background: var(--violet); border-color: var(--violet); }
.toggle input:checked + .track::after { transform: translateX(15px); background: #fff; }

/* Тёмные чекбоксы для мульти-выбора/группового редактирования — без нативного белого квадрата */
.sc-select input[type="checkbox"],
.select-all-chip input[type="checkbox"],
.bulk-bar-info input[type="checkbox"],
.bef-head input[type="checkbox"] {
    appearance: none; -webkit-appearance: none;
    background: var(--surface-2); border: 1.5px solid var(--border);
    border-radius: 5px; position: relative;
    /* Без этого блока чекбокс внутри flex-контейнера (.bef-head и т.п.) наследует общее правило
       "input, select, textarea { flex-grow:1; padding:12px 14px; }" и раздувается в огромную
       кнопку-пилюлю на всю ширину строки вместо компактного квадратика. */
    flex-grow: 0; flex-shrink: 0; flex-basis: auto;
    padding: 0; margin: 0;
    transition: background .15s, border-color .15s;
}
.sc-select input[type="checkbox"]:hover,
.select-all-chip input[type="checkbox"]:hover,
.bulk-bar-info input[type="checkbox"]:hover,
.bef-head input[type="checkbox"]:hover { border-color: rgba(139, 92, 246, 0.55); }
.sc-select input[type="checkbox"]::after,
.select-all-chip input[type="checkbox"]::after,
.bulk-bar-info input[type="checkbox"]::after,
.bef-head input[type="checkbox"]::after {
    content: ''; position: absolute; left: 50%; top: 45%; width: 5px; height: 9px;
    border: solid #0a0a14; border-width: 0 2px 2px 0;
    transform: translate(-50%, -55%) rotate(45deg) scale(0);
    transition: transform .12s ease;
}
.sc-select input[type="checkbox"]:checked,
.select-all-chip input[type="checkbox"]:checked,
.bulk-bar-info input[type="checkbox"]:checked,
.bef-head input[type="checkbox"]:checked { background: var(--violet); border-color: var(--violet); }
.sc-select input[type="checkbox"]:checked::after,
.select-all-chip input[type="checkbox"]:checked::after,
.bulk-bar-info input[type="checkbox"]:checked::after,
.bef-head input[type="checkbox"]:checked::after { transform: translate(-50%, -55%) rotate(45deg) scale(1); }
.sc-select input[type="checkbox"]:indeterminate,
.select-all-chip input[type="checkbox"]:indeterminate { background: var(--violet); border-color: var(--violet); }

/* ===================== ПАНЕЛЬ ИНСТРУМЕНТОВ СПИСКА СЕССИЙ ===================== */
.sessions-toolbar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border-soft);
}
.search-wrap { position: relative; flex: 1 1 220px; min-width: 160px; }
.search-wrap .search-ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-dim); pointer-events: none; }
.search-wrap input { width: 100%; padding-left: 38px; }
.search-wrap .clear-search {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: transparent; color: var(--text-dim); border: none; min-height: unset;
    width: 26px; height: 26px; padding: 0; border-radius: 7px; font-size: 15px; display: none; cursor: pointer;
}
.search-wrap.has-value .clear-search { display: inline-flex; align-items: center; justify-content: center; }
.search-wrap .clear-search:hover { color: var(--text); background: var(--surface-2); }

.chip-group { display: flex; gap: 6px; padding: 3px; background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--radius-pill); flex-shrink: 0; }
.filter-chip {
    background: transparent; border: none; color: var(--text-dim); font-size: 12.5px; font-weight: 600;
    padding: 8px 14px; min-height: unset; border-radius: var(--radius-pill); transition: background .15s, color .15s;
}
.filter-chip .n { opacity: .65; margin-left: 4px; font-weight: 500; }
.filter-chip:hover { color: var(--text-muted); }
.filter-chip.active { background: var(--violet); color: #fff; box-shadow: 0 2px 12px rgba(139, 92, 246, 0.35); }
.filter-chip.active .n { opacity: .85; }

.view-toggle { display: flex; gap: 3px; padding: 3px; background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 11px; flex-shrink: 0; }
.view-btn { background: transparent; border: none; color: var(--text-dim); min-height: unset; padding: 8px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.view-btn:hover { color: var(--text-muted); }
.view-btn.active { background: var(--surface); color: #c4b0ff; box-shadow: 0 0 0 1px var(--border); }

.sessions-count { font-size: 12px; color: var(--text-dim); white-space: nowrap; margin-left: auto; flex-shrink: 0; }

.select-all-chip { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; font-size: 12.5px; color: var(--text-muted); padding: 8px 12px; background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--radius-pill); flex-shrink: 0; }
.select-all-chip input { width: 15px; height: 15px; cursor: pointer; }
.select-all-chip:hover { color: var(--text); }

/* ===================== ПАНЕЛЬ ГРУППОВЫХ ДЕЙСТВИЙ (мульти-выбор сессий) ===================== */
.bulk-bar {
    display: none; align-items: center; gap: 12px; flex-wrap: wrap;
    background: #17182a; backdrop-filter: blur(18px); border: 1px solid rgba(139, 92, 246, 0.4); border-radius: var(--radius);
    padding: 10px 14px; margin-bottom: 14px;
    position: sticky; top: 8px; z-index: 40;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}
.bulk-bar.open { display: flex; }
.bulk-bar-info { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; color: var(--text); flex-shrink: 0; }
.bulk-bar-info input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
.bulk-bar-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.bulk-bar-actions .btn-sm { min-height: 32px; padding: 7px 12px; font-size: 12px; }
/* Кнопка-триггер нижнего меню действий — видна только на мобильном (см. медиа-запрос ниже),
   на десктопе вместо неё показан обычный ряд .bulk-bar-actions */
.bulk-bar-mobile-trigger {
    display: none; align-items: center; gap: 6px; margin-left: auto;
    background: var(--surface-2); border: 1px solid var(--border-soft); color: var(--text);
    font-size: 12.5px; font-weight: 600; padding: 8px 13px; border-radius: var(--radius-pill);
    min-height: 34px; flex-shrink: 0;
}
.bulk-bar-mobile-trigger:active { background: var(--surface); }
.bulk-bar-close { margin-left: auto; background: transparent; border: none; color: var(--text-dim); min-height: unset; width: 30px; height: 30px; padding: 0; border-radius: 8px; }
.bulk-bar-close:hover { color: var(--text); background: var(--surface); }

/* ===================== СЕТКА / КАРТОЧКИ СЕССИЙ ===================== */
@keyframes card-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

.session-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.session-card {
    position: relative; min-width: 0;
    background: var(--surface); backdrop-filter: blur(14px); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 17px 18px 17px 21px; display: flex; flex-direction: column; gap: 12px;
    transition: border-color .15s, background .15s, transform .15s;
}
.session-grid:not(.rendered-once) .session-card {
    animation: card-in .4s cubic-bezier(.22, .9, .35, 1) backwards; animation-delay: calc(var(--i, 0) * 35ms);
}
.session-card::before {
    content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px;
    background: var(--text-dim); opacity: .5; transition: background .2s, opacity .2s, box-shadow .2s;
}
.session-card[data-status="online"]::before { background: var(--online); opacity: 1; box-shadow: 0 0 10px var(--online); }
.session-card[data-status="offline"]::before { background: var(--danger); opacity: .55; }
.session-card:hover { border-color: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }
.session-card[data-status="online"]:hover { border-color: rgba(52, 224, 161, 0.3); }
.session-card.selected { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet), 0 8px 24px rgba(139, 92, 246, 0.18); }

.sc-select { display: flex; align-items: center; flex-shrink: 0; cursor: pointer; }
.sc-select input { width: 17px; height: 17px; cursor: pointer; }

/* Базовая раскладка карточки (используется, где нет аватарки — напр. админ-список чужих сессий) */
.session-card .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.session-card > .top .name { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.session-card > .top .addr { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); margin-top: 3px; }

.sc-head { display: flex; align-items: center; gap: 12px; }
.sc-avatar {
    position: relative; width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 800; font-size: 15px; color: #0a0a14;
}
.sc-avatar::after {
    content: ''; position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%;
    background: var(--danger); border: 2.5px solid #0e0f1a;
}
.session-card[data-status="online"] .sc-avatar::after { background: var(--online); box-shadow: 0 0 7px var(--online); animation: pulse-dot 1.8s infinite; }
.sc-id { flex: 1; min-width: 0; }
.sc-id .name { font-family: var(--font-display); font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-id .addr { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.session-card .actions { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.session-card .meta-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }

.sc-actions { display: flex; align-items: center; gap: 7px; margin-top: 2px; flex-wrap: wrap; }
.sc-actions .icon-actions { display: flex; gap: 6px; margin-left: auto; }
.icon-btn {
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted);
    width: 36px; height: 36px; min-height: 36px; padding: 0; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-btn:hover { border-color: rgba(255, 255, 255, 0.22); color: var(--text); }
.icon-btn.danger:hover { border-color: rgba(255, 92, 122, 0.4); color: var(--danger); background: var(--danger-soft); }

/* ===================== ТЕГИ НИКНЕЙМОВ (доп. привязанные аккаунты) ===================== */
.nick-tag-box { background: rgba(0, 0, 0, 0.22); border: 1px solid var(--border); border-radius: 11px; padding: 8px 10px; }
.nick-tag-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nick-tag-chips:not(:empty) { margin-bottom: 7px; }
.nick-tag { display: inline-flex; align-items: center; gap: 5px; background: var(--violet-soft); color: #c4b0ff; border: 1px solid rgba(139, 92, 246, 0.35); border-radius: var(--radius-pill); padding: 4px 5px 4px 11px; font-size: 12px; font-family: var(--font-mono); }
.nick-tag button { background: transparent; border: none; color: inherit; min-height: unset; width: 17px; height: 17px; padding: 0; display: inline-flex; align-items: center; justify-content: center; opacity: .7; cursor: pointer; border-radius: 50%; }
.nick-tag button:hover { opacity: 1; background: rgba(255, 255, 255, 0.12); }
.nick-tag-box input { border: none !important; background: transparent !important; padding: 4px 2px !important; width: 100%; box-shadow: none !important; }
.nick-tag-box input:focus { outline: none; box-shadow: none !important; }

/* ===================== ГРУППОВОЕ РЕДАКТИРОВАНИЕ (поле + чекбокс «применить») =====================
   Раньше вся строка (чекбокс + полноразмерное поле с лейблом и инпутом) отображалась целиком
   для КАЖДОГО пункта, просто приглушалась прозрачностью, пока не отмечена — из-за этого модалка
   растягивалась на много места только чтобы выбрать, что менять. Теперь непроверенный пункт —
   компактная строка «чекбокс + подпись», а само поле ввода показывается, только когда пункт
   отмечен. */
.bulk-edit-field { padding: 0; border-bottom: 1px solid var(--border-soft); }
.bulk-edit-field:last-child { border-bottom: none; }
.bef-head { display: flex; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer; user-select: none; }
.bef-head input[type="checkbox"] { width: 17px; height: 17px; cursor: pointer; flex-shrink: 0; margin: 0; }
.bef-label { font-size: 12.5px; color: var(--text-muted); transition: color .15s; }
.bulk-edit-field.active .bef-label { color: var(--text); }
.bulk-edit-field .bef-body { display: none; padding: 0 0 12px 27px; }
.bulk-edit-field.active .bef-body { display: flex; }
.bulk-edit-hint { color: var(--text-dim); font-size: 11.5px; margin-top: -4px; margin-bottom: 10px; line-height: 1.5; }

/* Компактный режим списка — для быстрой прокрутки большого числа сессий */
.session-grid.list-view { display: flex; flex-direction: column; gap: 8px; }
.session-grid.list-view .session-card {
    flex-direction: row; align-items: center; gap: 16px; padding: 10px 16px 10px 19px; animation-delay: calc(var(--i, 0) * 18ms);
}
.session-grid.list-view .session-card .sc-head { flex: 1 1 220px; min-width: 0; }
.session-grid.list-view .session-card .badges-row { display: none; }
.session-grid.list-view .session-card .autoconnect-row { flex: 0 0 auto; }
.session-grid.list-view .session-card .autoconnect-row .toggle span:last-child { display: none; }
.session-grid.list-view .session-card .sc-actions { margin-top: 0; flex: 0 0 auto; }
.settings-box { background: rgba(0, 0, 0, 0.22); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 14px; margin-top: 4px; }

.step-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.step-item { display: flex; align-items: center; gap: 10px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border-soft); border-radius: 11px; padding: 10px 13px; }
.step-num { font-family: var(--font-mono); font-size: 11px; color: #c4b0ff; background: var(--violet-soft); border-radius: 6px; padding: 3px 8px; flex-shrink: 0; }
.step-cmd { font-family: var(--font-mono); font-size: 13px; flex-grow: 1; word-break: break-all; }
.step-delay { font-size: 12px; color: var(--text-dim); flex-shrink: 0; }
.step-item .rm { background: transparent; border: none; color: var(--text-dim); cursor: pointer; padding: 4px 8px; font-size: 16px; min-height: unset; }
.step-item .rm:hover { color: var(--danger); }

.task-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 17px; margin-bottom: 10px; }
.task-card .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; gap: 10px; flex-wrap: wrap; }
.task-card .head strong { font-family: var(--font-display); font-size: 14px; }
.task-card .cycle { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--font-mono); font-size: 11.5px; }
.task-chip { padding: 5px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border-soft); color: var(--text-muted); }
.task-chip.active { border-color: var(--violet); color: #c4b0ff; background: var(--violet-soft); }
.task-chip .arrow { color: var(--text-dim); margin-left: 6px; }

.time-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.time-chip { display: flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border-soft); border-radius: var(--radius-pill); padding: 7px 8px 7px 14px; font-family: var(--font-mono); font-size: 12.5px; color: var(--cyan); }
.time-chip button { background: transparent; border: none; color: var(--text-dim); cursor: pointer; padding: 4px 7px; font-size: 14px; min-height: unset; }
.time-chip button:hover { color: var(--danger); }

.empty-state { color: var(--text-dim); font-size: 13px; padding: 26px 0; text-align: center; }
.hint { color: var(--text-dim); font-size: 12px; line-height: 1.6; margin-bottom: 14px; }
.badge { display: inline-block; font-size: 10.5px; padding: 3px 8px; border-radius: 6px; background: var(--cyan-soft); color: var(--cyan); font-family: var(--font-mono); }
.badge.gold { background: var(--gold-soft); color: var(--gold); }
.badge.lock { background: var(--danger-soft); color: var(--danger); }
.badge.online { background: rgba(52, 224, 161, 0.14); color: var(--online); }

/* Под-навигация админ-панели — вкладки между разделами */
.admin-subnav {
    display: flex; align-items: center; gap: 2px; margin-bottom: 18px;
    padding: 4px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
    overflow-x: auto; scrollbar-width: none;
}
.admin-subnav::-webkit-scrollbar { display: none; }
.admin-subnav a {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 15px; border-radius: calc(var(--radius) - 5px);
    color: var(--text-muted); font-family: var(--font-display); font-size: 12.5px; font-weight: 600;
    text-decoration: none; white-space: nowrap; transition: background .15s, color .15s;
}
.admin-subnav a:hover { background: var(--surface-2); color: var(--text); }
.admin-subnav a.active { background: var(--violet); color: #fff; box-shadow: 0 2px 12px rgba(139, 92, 246, 0.35); }

.dpad { display: grid; grid-template-columns: repeat(3, 56px); grid-template-rows: repeat(3, 56px); gap: 6px; justify-content: center; margin: 6px 0; }
.dpad button { padding: 0; font-size: 18px; }
.dpad .center { background: var(--danger-soft); border: 1px solid rgba(255, 92, 122, 0.3); color: var(--danger); }

.limit-bar { height: 6px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.limit-bar-fill { height: 100%; background: linear-gradient(90deg, var(--violet), var(--cyan)); border-radius: 4px; transition: width .3s; }
.limit-bar-fill.full { background: linear-gradient(90deg, var(--danger), #ff8a5c); }

table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data-table th { text-align: left; color: var(--text-dim); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; padding: 8px 10px; border-bottom: 1px solid var(--border); }
table.data-table td { padding: 10px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
table.data-table tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; }

/* ===================== НИЖНЯЯ НАВИГАЦИЯ (МОБИЛЬНАЯ) ===================== */
.tabbar {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    height: calc(var(--tabbar-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
    background: rgba(10, 10, 18, 0.85); backdrop-filter: blur(22px);
    border-top: 1px solid var(--border); z-index: 100; justify-content: space-around; align-items: stretch;
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-dim); text-decoration: none; font-size: 10.5px; font-weight: 500; }
.tabbar a .ic { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
.tabbar a.active { color: #c4b0ff; }
.tabbar a.active .ic { filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6)); }

.mobile-topbar { display: none; }

/* ===================== ЛЕНДИНГ / АВТОРИЗАЦИЯ (ПУБЛИЧНЫЕ СТРАНИЦЫ) ===================== */
.public-page { display: block; width: 100%; min-height: 100vh; overflow-x: hidden; }
.public-nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 6vw; max-width: 1200px; margin: 0 auto; }
.public-nav .links { display: flex; gap: 10px; }
.public-nav .links a { text-decoration: none; }

.hero { padding: 40px 6vw 70px; max-width: 1200px; margin: 0 auto; text-align: center; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 7px; background: var(--surface-2); border: 1px solid var(--border); padding: 7px 15px; border-radius: var(--radius-pill); font-size: 12px; color: var(--text-muted); margin-bottom: 22px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(30px, 5.5vw, 52px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; max-width: 850px; margin: 0 auto 18px; }
.hero h1 .grad { background: linear-gradient(135deg, var(--violet), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--text-muted); font-size: 16px; max-width: 560px; margin: 0 auto 30px; line-height: 1.6; }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .cta-row button, .hero .cta-row a button { min-width: 180px; }

.mock-console { max-width: 760px; margin: 46px auto 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); backdrop-filter: blur(16px); overflow: hidden; text-align: left; box-shadow: 0 30px 80px rgba(0,0,0,0.4); }
.mock-console .bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.mock-console .dot { width: 9px; height: 9px; border-radius: 50%; }
.mock-console .body { padding: 16px 18px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.9; }

.section { padding: 60px 6vw; max-width: 1200px; margin: 0 auto; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(22px, 3.5vw, 32px); font-weight: 700; margin-bottom: 10px; }
.section-head p { color: var(--text-dim); font-size: 14.5px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 22px; backdrop-filter: blur(14px); }
.feature-card .ic { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 16px; background: var(--violet-soft); }
.feature-card h3 { font-family: var(--font-display); font-size: 15px; margin-bottom: 8px; }
.feature-card p { color: var(--text-dim); font-size: 13px; line-height: 1.6; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 760px; margin: 0 auto; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 26px; backdrop-filter: blur(14px); position: relative; }
.price-card.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 20px 60px rgba(245, 196, 81, 0.12); }
.price-card .tag { position: absolute; top: -11px; right: 22px; background: var(--gold); color: #241a02; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: var(--radius-pill); }
.price-card h3 { font-family: var(--font-display); font-size: 17px; margin-bottom: 6px; }
.price-card .price { font-family: var(--font-display); font-size: 32px; font-weight: 800; margin: 14px 0 18px; }
.price-card .price span { font-size: 13px; color: var(--text-dim); font-weight: 400; }
.price-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.price-card li { font-size: 13.5px; color: var(--text-muted); display: flex; gap: 9px; align-items: flex-start; }
.price-card li::before { content: '✓'; color: var(--online); font-weight: 700; flex-shrink: 0; }

.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); backdrop-filter: blur(20px); padding: 32px 28px; }
.auth-card h1 { font-family: var(--font-display); font-size: 21px; font-weight: 700; margin-bottom: 6px; text-align: center; }
.auth-card p.sub { text-align: center; color: var(--text-dim); font-size: 13px; margin-bottom: 24px; }
.auth-card .field { margin-bottom: 14px; width: 100%; }
.auth-error { background: var(--danger-soft); border: 1px solid rgba(255,92,122,0.3); color: var(--danger); font-size: 12.5px; padding: 10px 13px; border-radius: 10px; margin-bottom: 14px; display: none; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 12.5px; color: var(--text-dim); }
.auth-switch a { color: #c4b0ff; text-decoration: none; font-weight: 600; }

.footer-note { text-align: center; padding: 30px 6vw calc(40px + var(--safe-bottom)); color: var(--text-dim); font-size: 12px; }

/* ===================== АДАПТАЦИЯ ПОД МОБИЛЬНЫЕ ===================== */
@media (max-width: 860px) {
    body { flex-direction: column; }
    .sidebar { display: none; }

    .mobile-topbar {
        display: flex; align-items: center; justify-content: space-between; gap: 10px;
        padding: calc(14px + var(--safe-top)) 16px 14px;
        background: rgba(10, 10, 18, 0.7); backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 90;
    }
    .mobile-topbar .brand { padding: 0; }
    .mobile-topbar .brand-mark { width: 30px; height: 30px; font-size: 12.5px; border-radius: 9px; }
    .mobile-topbar .brand-text { font-size: 14px; }
    .mobile-topbar .brand-text small { display: none; }
    .mobile-topbar select { max-width: 42vw; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); padding: 9px 10px; border-radius: 10px; font-size: 12.5px; }

    .main-content { padding: 18px 16px calc(var(--tabbar-h) + var(--safe-bottom) + 36px); height: auto; max-width: 100%; overflow-y: visible; -webkit-overflow-scrolling: auto; }
    .tabbar { display: flex; }

    .page-header h1 { font-size: 19px; }
    .page-header { margin-bottom: 16px; }
    .panel { padding: 16px; border-radius: var(--radius); }

    .row { flex-direction: column; align-items: stretch; gap: 8px; }
    .row > .field { width: 100%; min-width: 100%; }
    .row > button { width: 100%; margin-top: 2px; }

    .panel-head { flex-direction: column; align-items: flex-start; }
    .panel-head > div:last-child, .panel-head > button { width: 100%; }

    #chat { height: 50vh; }
    .session-grid { grid-template-columns: 1fr; }

    .actions { flex-direction: column; }
    .actions button { width: 100%; }

    .sessions-toolbar { gap: 8px; }
    .search-wrap { flex: 1 1 100%; order: 1; }
    .chip-group { order: 2; }
    .view-toggle { order: 3; margin-left: auto; }
    .sessions-count { order: 4; margin-left: 0; width: 100%; }
    .session-grid.list-view .session-card { flex-wrap: wrap; padding: 12px 14px; }
    .session-grid.list-view .session-card .sc-actions { margin-left: 0; flex: 1 1 100%; min-width: 0; }

    /* На мобиле шапка (.mobile-topbar) тоже sticky и стоит выше по z-index — без отступа
       панель групповых действий залипала бы у самого верха и пряталась под ней при скролле */
    .bulk-bar { top: calc(var(--safe-top) + 66px); padding: 9px 10px 9px 14px; flex-wrap: nowrap; }
    /* Вместо ряда из 9 кнопок — одна кнопка "Действия", открывающая нижнее выезжающее меню
       (тот же компонент .sheet-*, что и "Ещё" в таббаре) через openBulkActionsSheet() в app.js */
    .bulk-bar-actions { display: none; }
    .bulk-bar-mobile-trigger { display: inline-flex; }
    .bulk-bar-info { font-size: 12px; }

    .dpad { grid-template-columns: repeat(3, 28vw); grid-template-rows: repeat(3, 28vw); max-width: 300px; margin: 10px auto; }
    .dpad button { width: 100%; height: 100%; font-size: 22px; }

    /* Тарифы скроллятся сами (свайп по карточкам), а не вся страница целиком */
    .pricing-grid {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; gap: 14px; max-width: 100%;
        padding: 4px 4px 10px; margin: 0 -4px;
    }
    .price-card { flex: 0 0 84%; scroll-snap-align: center; }

    .hero { padding: 20px 6vw 50px; }
    .public-nav { padding: 18px 5vw; }
    .public-nav .links button { padding: 10px 14px; font-size: 12.5px; min-height: 40px; }
    .section { padding: 40px 5vw; }

    table.data-table { font-size: 12px; }
    table.data-table th, table.data-table td { padding: 8px 6px; }
}

/* ===================== МОДАЛЬНЫЕ ОКНА (замена alert/confirm) ===================== */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(5, 5, 10, 0.6); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; z-index: 300; padding: 20px;
    opacity: 0; pointer-events: none; transition: opacity .18s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-card {
    background: #12141f;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 24px 24px 20px; max-width: 380px; width: 100%;
    max-height: calc(100dvh - 40px); overflow-y: auto; -webkit-overflow-scrolling: touch;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    transform: translateY(8px) scale(0.98); transition: transform .18s;
}
.modal-overlay.open .modal-card { transform: translateY(0) scale(1); }
.modal-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; white-space: pre-wrap; }
.modal-card .modal-buttons {
    display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; justify-content: flex-end;
    position: sticky; bottom: -20px; background: #12141f; padding: 12px 0 4px; margin-bottom: -20px;
}
.modal-card .modal-buttons button { min-width: 90px; }

/* ===================== ВСПЛЫВАЮЩЕЕ НИЖНЕЕ МЕНЮ ("Ещё") ===================== */
.sheet-overlay {
    position: fixed; inset: 0; background: rgba(5, 5, 10, 0.55); backdrop-filter: blur(3px);
    z-index: 200; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.sheet-overlay.open { opacity: 1; pointer-events: auto; }
.sheet-card {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 201;
    background: #0e0f18; border-top: 1px solid var(--border);
    border-radius: 22px 22px 0 0; padding: 10px 14px calc(20px + var(--safe-bottom));
    transform: translateY(100%); transition: transform .25s cubic-bezier(.32,.72,0,1);
    box-shadow: 0 -20px 60px rgba(0,0,0,0.5);
}
.sheet-overlay.open .sheet-card { transform: translateY(0); }
.sheet-handle { width: 36px; height: 4px; background: var(--border); border-radius: 3px; margin: 6px auto 14px; }
.sheet-links { display: flex; flex-direction: column; gap: 2px; }
.sheet-links a, .sheet-links button {
    display: flex; align-items: center; gap: 13px; width: 100%;
    padding: 14px 12px; border-radius: 12px; text-decoration: none;
    color: var(--text); font-size: 14.5px; font-weight: 500; background: transparent; border: none;
    min-height: 48px; justify-content: flex-start; text-align: left;
}
.sheet-links a:active, .sheet-links button:active { background: var(--surface-2); }
.sheet-links .ic { width: 20px; height: 20px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.sheet-links .danger { color: var(--danger); }
.sheet-links hr { border: none; border-top: 1px solid var(--border-soft); margin: 6px 4px; }

.tabbar a.more-trigger { background: none; border: none; cursor: pointer; }
