:root {
    --bg: #eef2f8;
    --card: #ffffff;
    --text: #1a2332;
    --muted: #6b7385;
    --line: #e4e9f2;
    --line-strong: #cfd6e4;
    --accent: #2563eb;
    --accent-2: #1d4ed8;
    --accent-soft: #dbeafe;
    --menu: #0f172a;
    --menu-2: #1e293b;
    --menu-hover: #1e293b;
    --danger: #ef4444;
    --danger-soft: #fee2e2;
    --ok: #16a34a;
    --ok-soft: #dcfce7;
    --warn: #d97706;
    --warn-soft: #fef3c7;
    --radius: 8px;
    --radius-sm: 6px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .04);
    --safe-b: env(safe-area-inset-bottom, 0px);
    --safe-t: env(safe-area-inset-top, 0px);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.45;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: #c3cad8;
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: #9aa6bb; background-clip: padding-box; }
* { scrollbar-width: thin; scrollbar-color: #c3cad8 transparent; }

.layout { display: flex; min-height: 100vh; min-height: 100dvh; }
.bx-menu {
    width: 248px;
    background: var(--menu);
    color: #fff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    align-self: flex-start;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    padding-top: var(--safe-t);
    overflow: hidden;
}
.bx-search { margin: 16px 12px 14px; position: relative; flex-shrink: 0; }
.bx-search i {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: rgba(255,255,255,.38); font-size: 12px; pointer-events: none;
}
.bx-search input {
    width: 100%; border: 1px solid rgba(0,0,0,.18); border-radius: 10px;
    padding: 10px 12px 10px 36px; color: rgba(255,255,255,.88);
    background: rgba(0,0,0,.28);
    -webkit-appearance: none;
    appearance: none;
}
.bx-search input::-webkit-search-decoration,
.bx-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.bx-search input:-webkit-autofill,
.bx-search input:-webkit-autofill:hover,
.bx-search input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    box-shadow: 0 0 0 1000px #0b1220 inset;
    transition: background-color 9999s ease-out;
}
.bx-search input::placeholder { color: rgba(255,255,255,.48); }
.bx-search input:focus {
    outline: none;
    border-color: rgba(96,165,250,.4);
    background: rgba(0,0,0,.38);
    box-shadow: 0 0 0 3px rgba(37,99,235,.18);
    color: #fff;
}
.bx-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}
.bx-nav button {
    width: 100%; text-align: left; background: none; border: 0; color: #cbd5e1;
    padding: 10px 18px; cursor: pointer; font: inherit; display: flex; gap: 10px; align-items: center;
    border-radius: 0;
}
.bx-nav button:hover, .bx-nav button.active { background: var(--menu-hover); color: #fff; }
.bx-nav button.active { box-shadow: inset 3px 0 0 var(--accent); }
.bx-nav i { width: 18px; color: #60a5fa; }
.bx-menu-foot {
    margin-top: auto; padding: 16px; font-size: 12px; color: #94a3b8;
    border-top: 1px solid rgba(255,255,255,.06); flex-shrink: 0;
}
.bx-menu-foot strong { color: #fff; font-size: 13px; }
.bx-menu-foot .foot-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.bx-work { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bx-top {
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 20px; display: flex; justify-content: space-between; align-items: center;
    gap: 12px; flex-wrap: wrap;
}
.menu-toggle {
    display: inline-flex; width: 38px; height: 38px; padding: 0;
}
.filters-toggle { display: none; }
.bx-menu { transition: width .2s ease, min-width .2s ease, opacity .18s ease; }
body.nav-collapsed .bx-menu {
    width: 0; min-width: 0; opacity: 0; pointer-events: none; border: 0; padding: 0;
}
.bx-title { font-size: 22px; font-weight: 650; letter-spacing: -.03em; }
.bx-title small { color: var(--muted); font-weight: 500; font-size: 13px; margin-left: 8px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.btn {
    border: 0; border-radius: var(--radius-sm); padding: 8px 14px; cursor: pointer;
    font: inherit; font-weight: 600; display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; line-height: 1.2; transition: .15s background, .15s box-shadow, .15s color;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-light { background: #fff; border: 1px solid var(--line-strong); color: #334155; }
.btn-light:hover { background: #f8fafc; }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { background: #fecaca; }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-ghost { background: transparent; color: inherit; border: 1px solid rgba(255,255,255,.14); }

.view-switch { display: flex; background: #f1f5f9; border-radius: var(--radius); padding: 3px; }
.view-switch button {
    border: 0; background: transparent; padding: 6px 12px; border-radius: var(--radius-sm);
    cursor: pointer; color: var(--muted);
}
.view-switch button.active { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(15,23,42,.08); }

.content { padding: 16px 20px 48px; }
.filters {
    display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 14px; align-items: flex-end;
    background: #fff; padding: 12px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.filters.compact {
    padding: 8px 10px; gap: 8px; align-items: flex-end; margin-bottom: 12px;
}
.filters.compact .filter-item span { margin: 0; }
.filters.compact input[type=date] {
    width: 136px !important; min-width: 136px; max-width: 136px; height: 38px;
}
.filters.compact .btn {
    height: 38px; padding: 0 14px; font-size: 14px;
}
.filter-item { display: flex; flex-direction: column; gap: 4px; }
.filter-item span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
.filter-dates { display: flex; gap: 6px; align-items: center; }
.filter-dates input[type=date] { width: 132px !important; min-width: 132px; max-width: 132px; }
.switch-field {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px;
    background: #f8fafc; border: 1px solid var(--line); border-radius: var(--radius);
    cursor: pointer; user-select: none; font-weight: 600; color: var(--text); height: 38px;
}
.switch-field input { margin: 0 !important; }

input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not(#live_search),
select, textarea, .c-select-btn {
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    padding: 8px 12px; font: inherit; background: #fff; color: var(--text);
    width: 100%; max-width: 100%;
}
textarea { min-height: 80px; resize: vertical; }
input:not([type=checkbox]):focus, select:focus, textarea:focus, .c-select.open .c-select-btn {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.16);
}
.filters select, .filters input:not([type=checkbox]) { width: auto; min-width: 128px; max-width: 180px; }
.form-group { margin-bottom: 14px; width: 100%; }
.form-group label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }

/* Custom checkboxes */
input[type=checkbox] {
    appearance: none; -webkit-appearance: none;
    width: 18px !important; height: 18px !important; min-width: 18px !important; max-width: 18px !important;
    padding: 0 !important; margin: 0 8px 0 0; vertical-align: middle;
    flex: none !important; display: inline-grid !important; place-content: center;
    border: 2px solid var(--line-strong); border-radius: 5px; background: #fff; cursor: pointer;
    transition: .15s background, .15s border-color;
}
input[type=checkbox]:hover { border-color: var(--accent); }
input[type=checkbox]:checked { background: var(--accent); border-color: var(--accent); }
input[type=checkbox]:checked::after {
    content: ""; width: 4px; height: 8px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px);
}
input[type=checkbox]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-group.check { width: auto; }
.form-group label:has(input[type=checkbox]),
.form-group.check label {
    display: inline-flex; align-items: center; gap: 8px; width: auto;
    font-size: 14px; color: var(--text); cursor: pointer; font-weight: 500;
}

/* Custom select */
.c-select { position: relative; display: inline-block; min-width: 128px; max-width: 220px; }
.c-select.full, .form-group .c-select, .modal .c-select, .slider .c-select { width: 100%; max-width: 100%; display: block; }
.c-select select { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.c-select-btn {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    cursor: pointer; text-align: left; min-height: 38px;
}
.c-select-btn::after {
    content: ""; width: 8px; height: 8px; border-right: 2px solid #64748b; border-bottom: 2px solid #64748b;
    transform: rotate(45deg) translate(-2px, -2px); flex-shrink: 0;
}
.c-select-list {
    display: none; position: absolute; z-index: 80; left: 0; right: 0; top: calc(100% + 4px);
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(15,23,42,.12); max-height: 260px; overflow: auto; padding: 4px;
}
.c-select.open .c-select-list { display: block; }
.c-select-list button {
    width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px;
    border-radius: 6px; cursor: pointer; font: inherit; color: var(--text);
}
.c-select-list button:hover, .c-select-list button.active { background: var(--accent-soft); color: var(--accent-2); }

.table-card { background: #fff; border-radius: var(--radius); overflow: auto; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th {
    text-align: left; font-size: 11px; color: var(--muted); font-weight: 700;
    padding: 10px 12px; background: #f8fafc; border-bottom: 1px solid var(--line);
    text-transform: uppercase; letter-spacing: .4px; white-space: nowrap;
}
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--text); }
th.sortable .sort-ico { margin-left: 4px; font-size: 10px; opacity: .35; }
th.sortable.is-sorted .sort-ico { opacity: 1; color: var(--accent); }
td { padding: 11px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
tr.task-row { cursor: pointer; }
tr.task-row:hover { background: #f8fbff; }
tr.selected { background: var(--accent-soft); }
.task-name { font-weight: 650; }
.task-meta { color: var(--muted); font-size: 12px; margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
    display: inline-flex; align-items: center; gap: 4px; border-radius: 6px;
    padding: 3px 8px; font-size: 11px; font-weight: 650;
}
.click-chip { cursor: pointer; }
.click-chip:hover { outline: 2px solid var(--accent-soft); }
.st-not_started { background: #f1f5f9; color: #475569; }
.st-started { background: var(--accent-soft); color: var(--accent-2); }
.st-completed { background: var(--ok-soft); color: #166534; }
.pr-low { background: var(--ok-soft); color: #166534; }
.pr-medium { background: var(--warn-soft); color: #92400e; }
.pr-high { background: var(--danger-soft); color: var(--danger); }
.dl-ok { background: #f1f5f9; color: #475569; }
.dl-soon { background: var(--warn-soft); color: #92400e; }
.dl-over { background: var(--danger-soft); color: var(--danger); }

.avatar {
    width: 28px; height: 28px; border-radius: 8px; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; margin-right: 8px; flex-shrink: 0;
}

.kanban { display: grid; grid-template-columns: repeat(3, minmax(240px, 1fr)); gap: 14px; align-items: start; }
.kan-col {
    background: #d8e0ea;
    border-radius: var(--radius);
    padding: 10px;
    min-height: 280px;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
}
.kan-col h4 { font-size: 13px; margin: 4px 8px 10px; color: #475569; }
.kan-col h4 span { background: #fff; border-radius: 6px; padding: 1px 8px; font-size: 11px; margin-left: 6px; }
.kan-card { background: #fff; border-radius: var(--radius); padding: 12px; margin-bottom: 8px; cursor: grab; box-shadow: var(--shadow); }
.kan-card:hover { box-shadow: 0 8px 24px rgba(37,99,235,.12); }
.kan-col.drag-over { outline: 2px dashed var(--accent); }

.overlay { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 40; backdrop-filter: blur(2px); }
.overlay.active { display: block; }
.slider {
    position: fixed; top: 0; right: -760px; width: min(720px, 100%); height: 100%;
    background: #fff; z-index: 50; display: flex; flex-direction: column;
    transition: right .22s ease; box-shadow: -12px 0 40px rgba(15,23,42,.18);
    padding-top: var(--safe-t);
}
.slider.open { right: 0; }
.slider-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.slider-tabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 16px; }
.slider-tabs button {
    background: none; border: 0; padding: 12px 16px; cursor: pointer; font: inherit;
    color: var(--muted); border-bottom: 2px solid transparent;
}
.slider-tabs button.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 650; }
.slider-body { flex: 1; overflow: auto; padding: 18px 20px calc(24px + var(--safe-b)); }
.row { display: flex; gap: 12px; }
.row .form-group { flex: 1; }
.pipe { display: flex; gap: 6px; margin-bottom: 16px; }
.pipe button {
    flex: 1; border: 1px solid var(--line-strong); background: #fff;
    border-radius: var(--radius-sm); padding: 8px; cursor: pointer; font: inherit;
}
.pipe button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); font-weight: 700; }

.bx-editor { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.bx-editor:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.16); }
.bx-tools { display: flex; gap: 2px; padding: 6px 8px; background: #f8fafc; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.bx-tools button { width: 30px; height: 28px; border: 0; background: transparent; border-radius: 5px; cursor: pointer; color: #475569; }
.bx-tools button:hover, .bx-tools button.on { background: var(--accent-soft); color: var(--accent-2); }
.bx-area { min-height: 92px; padding: 10px 12px; outline: none; font-size: 14px; line-height: 1.55; }
.bx-area.single { min-height: 44px; font-size: 18px; font-weight: 600; }
.bx-area:empty:before { content: attr(data-placeholder); color: #94a3b8; pointer-events: none; }
.rich { line-height: 1.5; }
.rich p { margin: 0 0 .5em; }
.rich ul, .rich ol { margin: 0 0 .5em 1.2em; }
.dropzone {
    border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 22px 16px;
    text-align: center; color: #475569; background: #f8fafc; cursor: pointer;
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone i { display: block; font-size: 22px; color: var(--accent); margin-bottom: 8px; }
.file-chips { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.file-chip { display: flex; align-items: center; gap: 10px; background: #f8fafc; border-radius: var(--radius-sm); padding: 8px 10px; }
.file-chip i { color: var(--accent); }
.file-chip .meta { flex: 1; min-width: 0; }
.file-chip .meta b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip .meta span { font-size: 11px; color: var(--muted); }
.cmt-files { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.comments { display: flex; flex-direction: column; gap: 12px; }
.cmt { display: flex; gap: 10px; }
.cmt-body { background: #f8fafc; border-radius: var(--radius); padding: 10px 12px; flex: 1; }
.cmt-body b { font-size: 13px; }
.cmt-body time { color: var(--muted); font-size: 11px; margin-left: 8px; }
.composer { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.composer-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.file-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }

.modal { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 60; align-items: center; justify-content: center; padding: 16px; }
.modal.active { display: flex; }
.modal-content { background: #fff; border-radius: 12px; width: 100%; max-width: 440px; box-shadow: 0 24px 64px rgba(15,23,42,.2); }
.modal-header, .modal-footer { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-footer { border-bottom: 0; border-top: 1px solid var(--line); justify-content: flex-end; gap: 8px; }
.modal-body { padding: 18px; }
.close-btn { background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--muted); }
.hint { color: var(--muted); font-size: 12px; margin: 8px 0; }
.flash { font-size: 12px; color: var(--ok); margin-left: 8px; }
.stat-grid { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 14px 18px; min-width: 160px; box-shadow: var(--shadow); }
.stat-card h4 { color: var(--muted); font-size: 12px; }
.stat-card .value { font-size: 22px; font-weight: 700; }
.mass-bar { display: none; background: var(--accent-2); color: #fff; border-radius: var(--radius); padding: 8px 12px; margin-bottom: 10px; align-items: center; gap: 10px; }
.mass-bar.show { display: flex; flex-wrap: wrap; }
.bx-nav button.admin-only,
.mobile-nav button.admin-only { display: none; }
body.is-admin .bx-nav button.admin-only { display: flex; }
body.is-admin .mobile-nav button.admin-only { display: flex; flex-direction: column; }
pre.log { max-height: 280px; overflow: auto; background: #0f172a; color: #e2e8f0; padding: 10px; border-radius: var(--radius); font-size: 11px; white-space: pre-wrap; }
.empty { text-align: center; color: var(--muted); padding: 40px 12px; }
.mobile-nav { display: none; }

body.tg-app { background: var(--tg-theme-bg-color, var(--bg)); }
body.tg-app .bx-menu { padding-top: max(var(--safe-t), 12px); }

@media (max-width: 960px) {
    .filters-toggle {
        display: inline-flex; width: 38px; height: 38px; padding: 0;
    }
    body.nav-collapsed .bx-menu {
        width: min(280px, 86vw); min-width: 0; opacity: 1; pointer-events: auto;
    }
    .bx-menu {
        position: fixed; inset: 0 auto 0 0; z-index: 70; transform: translateX(-105%);
        transition: transform .22s ease; width: min(280px, 86vw);
        height: 100%; padding-bottom: calc(16px + var(--safe-b)); opacity: 1; overflow: hidden;
    }
    .bx-menu.open { transform: none; }
    .menu-backdrop { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.4); z-index: 65; }
    .menu-backdrop.show { display: block; }
    .content { padding: 12px 12px calc(88px + var(--safe-b)); }
    .bx-top { padding: 10px 12px; position: sticky; top: 0; z-index: 20; }
    .bx-title { font-size: 18px; }
    .kanban { grid-template-columns: 1fr; }
    .row { flex-direction: column; }
    .filters { display: none; }
    .filters.open, .filters.compact { display: flex; }
    .filters select, .filters input:not([type=checkbox]), .filters .c-select {
        width: 100% !important; max-width: 100% !important; min-width: 0 !important;
    }
    .filter-dates, .filter-dates input[type=date] { width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
    .switch-field { width: 100%; height: auto; }
    .table-card { overflow: visible; }
    .table-card table thead { display: none; }
    .table-card table, .table-card tbody { display: block; width: 100%; }
    .table-card tr {
        display: grid; grid-template-columns: 28px 1fr auto; gap: 4px 10px;
        padding: 12px; border-bottom: 1px solid var(--line); align-items: start;
    }
    .table-card td { border: 0; padding: 0; }
    .table-card tr.task-row td:nth-child(1) { grid-row: 1 / span 4; }
    .table-card tr.task-row td:nth-child(2) { grid-column: 2 / span 1; }
    .table-card tr.task-row td:nth-child(8) { grid-column: 3; grid-row: 1; }
    .table-card tr.task-row td:nth-child(n+3):nth-child(-n+7) {
        grid-column: 2 / span 2; color: var(--muted); font-size: 12px;
    }
    .table-card tr.task-row td:nth-child(n+3):nth-child(-n+7)::before {
        content: attr(data-label); font-weight: 700; color: #94a3b8; margin-right: 6px; text-transform: uppercase; font-size: 10px;
    }
    .mobile-nav {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
        background: #fff; border-top: 1px solid var(--line);
        padding: 6px 8px calc(6px + var(--safe-b)); justify-content: space-around;
        box-shadow: 0 -8px 24px rgba(15,23,42,.06);
    }
    .mobile-nav button {
        border: 0; background: none; color: var(--muted); font: inherit; font-size: 11px; font-weight: 650;
        display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 8px; cursor: pointer;
    }
    .mobile-nav button i { font-size: 16px; }
    .mobile-nav button.active { color: var(--accent); }
    .slider { width: 100%; right: -105%; }
}
body.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-box { width: 100%; max-width: 400px; background: #fff; border-radius: 12px; padding: 28px 24px; box-shadow: var(--shadow); }
.login-box h1 { font-size: 22px; margin: 0 0 6px; letter-spacing: -.03em; }
.login-box .sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.login-box label { display: block; font-size: 12px; color: var(--muted); margin: 0 0 4px; font-weight: 600; }
.login-box input { width: 100%; margin-bottom: 12px; }
.login-box .btn { width: 100%; }
.err { color: var(--danger); font-size: 13px; min-height: 18px; margin-bottom: 8px; }
.tg-wait { display: none; text-align: center; color: var(--muted); padding: 12px 0 4px; }
