/* ==============================================================
 * PRO-CODE CRM — базовый CSS для Этапа 1.
 * На Этапе 5 будет заменён на скомпилированный Tailwind (CLI-сборка).
 * Цветовая палитра — из ТЗ п.9.2.
 * ============================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
    --bg:           #f8fafc;
    --surface:      #ffffff;
    --accent:       #2563EB;
    --accent-hover: #1d4ed8;
    --success:      #16a34a;
    --warning:      #ca8a04;
    --error:        #dc2626;
    --text:         #0f172a;
    --text-muted:   #64748b;
    --border:       #e2e8f0;
    --divider:      #f1f5f9;

    --radius:       10px;
    --radius-lg:    14px;
    --shadow-sm:    0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md:    0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.06);

    --sidebar-w:    260px;
    --header-h:     72px;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-variant-numeric: tabular-nums;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
    background: var(--divider);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

/* ===================== SIDEBAR ===================== */
.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    z-index: 100;
}
.sidebar__brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; margin-bottom: 32px; }
.sidebar__logo {
    width: 40px; height: 40px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 16px;
}
.sidebar__title { font-weight: 700; font-size: 16px; }
.sidebar__subtitle { font-size: 12px; color: var(--text-muted); }

.sidebar__nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar__link {
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text);
    font-weight: 500;
    transition: background 0.15s;
}
.sidebar__link:hover { background: var(--divider); text-decoration: none; }
.sidebar__link.active { background: #eff6ff; color: var(--accent); }

.sidebar__user {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: 16px;
}
.sidebar__user-name { font-weight: 600; font-size: 13px; }
.sidebar__user-email { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.sidebar__logout-form { margin: 0; }
.sidebar__logout-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
}
.sidebar__logout-btn:hover { background: var(--divider); color: var(--error); border-color: var(--error); }

/* ===================== MAIN ===================== */
.main {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    height: var(--header-h);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 50;
}
.header__title { margin: 0; font-size: 20px; font-weight: 600; }
.header__actions { display: flex; align-items: center; gap: 16px; }

.header__bell {
    background: none;
    border: 1px solid var(--border);
    width: 40px; height: 40px;
    border-radius: var(--radius);
    font-size: 16px;
    cursor: pointer;
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.header__bell:hover { background: var(--divider); }
.header__bell-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--error);
    color: #fff;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600;
}

.content { padding: 32px; max-width: 1440px; width: 100%; }

/* ===================== CURRENCY SWITCH ===================== */
.currency-switch {
    display: inline-flex;
    background: var(--divider);
    border-radius: 10px;
    padding: 4px;
    gap: 2px;
}
.currency-switch__btn {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    background: none;
    border: none;
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
.currency-switch__btn.active {
    background: #fff;
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

/* ===================== CARDS ===================== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.card__title { margin: 0 0 12px; font-size: 20px; font-weight: 600; }
.card__subtitle { margin: 20px 0 8px; font-size: 14px; font-weight: 600; color: var(--text-muted); }

/* ===================== FLASH (inline errors) ===================== */
/* Для toast-уведомлений используется Notyf (см. app.js).
 * Класс .flash остаётся для inline-валидации форм и login-страницы. */
.flash {
    padding: 12px 16px;
    border-radius: var(--radius);
    background: #fff;
    border-left: 4px solid;
    box-shadow: var(--shadow-md);
    font-size: 14px;
}
.flash--success { border-color: var(--success); }
.flash--error   { border-color: var(--error); }
.flash--info    { border-color: var(--accent); }
.flash--warning { border-color: var(--warning); }

/* ===================== FORMS ===================== */
.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    font-size: 14px;
    color: var(--text);
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-control.is-invalid {
    border-color: var(--error);
}
.form-error {
    color: var(--error);
    font-size: 12px;
    margin-top: 4px;
}

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    text-decoration: none;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn--full { width: 100%; }

/* ===================== AUTH ===================== */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
}
.auth-card {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.1);
}
.auth-brand { text-align: center; margin-bottom: 28px; }
.auth-brand__logo {
    width: 56px; height: 56px;
    background: var(--accent);
    color: #fff;
    border-radius: 14px;
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 20px;
}
.auth-brand__title { font-weight: 700; font-size: 20px; margin-bottom: 4px; }
.auth-brand__subtitle { color: var(--text-muted); font-size: 13px; }
.auth-form { display: flex; flex-direction: column; gap: 4px; }

/* ===================== ERROR PAGES ===================== */
.error-page {
    text-align: center;
    max-width: 420px;
}
.error-page__code {
    font-size: 96px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 12px;
}
.error-page__title { font-size: 24px; margin: 0 0 8px; }
.error-page__text { color: var(--text-muted); margin-bottom: 20px; }

/* ===================== RESPONSIVE (минимум; адаптив доработаем на этапе 5) ===================== */
@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); transition: transform 0.2s; }
    .main { margin-left: 0; }
    .header, .content { padding-left: 16px; padding-right: 16px; }
}

/* ============================================================
 * Этап 3a: компоненты клиентского модуля
 * ============================================================ */

/* ===== Page actions + filters ===== */
.page-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.filters {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
}
.filters__search {
    min-width: 240px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    font-family: inherit;
}
.filters__select {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    font-family: inherit;
    background: #fff;
    cursor: pointer;
}

/* ===== Card variants ===== */
.card + .card { margin-top: 20px; }
.card--no-padding { padding: 0; overflow: hidden; }
.card--info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; font-size: 13px; }
.card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.card__actions { display: flex; gap: 8px; }

/* ===== Data table ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.data-table thead th {
    background: var(--divider);
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.data-table tbody td {
    padding: 12px;
    border-bottom: 1px solid var(--divider);
    vertical-align: middle;
}
.data-table tbody tr:hover { background: #fafbfc; }
.data-table .num      { color: var(--text-muted); font-size: 12px; }
.data-table .text-sm  { font-size: 12px; color: var(--text-muted); }
.data-table .icon     { text-align: center; font-size: 18px; }
.data-table .actions  {
    display: flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
}
.data-table .actions a,
.data-table .actions button {
    text-decoration: none;
    font-size: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-muted);
}
.data-table .actions a:hover,
.data-table .actions button:hover { color: var(--text); }

.client-link {
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}
.client-link:hover { color: var(--accent); text-decoration: none; }

/* ===== Badges ===== */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}
.badge--success { background: #dcfce7; color: #166534; }
.badge--warning { background: #fef3c7; color: #92400e; }
.badge--muted   { background: var(--divider); color: var(--text-muted); }
.badge--info    { background: #dbeafe; color: #1e40af; }
.badge--urgent  { background: #fee2e2; color: #991b1b; }
.badge--overdue { background: #7f1d1d; color: #fff; }

/* ===== Tags ===== */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    margin: 1px;
    white-space: nowrap;
}
.tag--more { background: var(--divider); color: var(--text-muted); }
.tag--suggest:hover { opacity: 0.8; }

/* ===== Service chips (в таблице) ===== */
.service-chip {
    display: inline-flex;
    width: 22px; height: 22px;
    border-radius: 6px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
}

/* ===== Empty state ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}
.empty-state__title { font-weight: 600; margin-bottom: 8px; }
.empty-state__text  { color: var(--text-muted); }

/* ===== Form grids ===== */
.form { max-width: 980px; }
.form--wide { max-width: none; }
.form-grid { display: grid; gap: 16px; }
.form-grid--2 { grid-template-columns: repeat(2, 1fr); }
.form-grid--3 { grid-template-columns: repeat(3, 1fr); }
.form-grid--4 { grid-template-columns: repeat(4, 1fr); }
.form-group--wide { grid-column: 1 / -1; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; line-height: 1.8; }
.form-control--sm { padding: 6px 10px; font-size: 12px; width: auto; }

/* ===== Radio group ===== */
.radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    user-select: none;
}
.radio input { margin: 0; }
.radio:has(input:checked) {
    border-color: var(--accent);
    background: #eff6ff;
}

/* ===== Service rows (in form) ===== */
.service-row {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 12px;
    background: #fafbfc;
}
.service-row__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.service-row__remove {
    background: none;
    border: none;
    color: var(--error);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
}

/* ===== Form actions ===== */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.btn--sm    { padding: 6px 12px; font-size: 12px; }
.btn--ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn--ghost:hover { background: var(--divider); color: var(--text); text-decoration: none; }

.btn-icon { background: none; border: none; cursor: pointer; font-size: 14px; padding: 2px 6px; }
.inline-form { display: inline; margin: 0; }

/* ===== Client show page ===== */
.client-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.client-header__name { margin: 0 0 8px; font-size: 24px; font-weight: 700; }
.client-header__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.client-header__satisfaction { font-size: 22px; }
.client-header__actions { display: flex; gap: 8px; }

.contacts { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.contact-row { font-size: 14px; }
.contact-row a { color: var(--text); text-decoration: none; }
.contact-row a:hover { color: var(--accent); text-decoration: underline; }

.text-muted { color: var(--text-muted); }
.text-sm    { font-size: 12px; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 8px;
}
.service-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    background: #fff;
}
.service-card__title { font-weight: 600; margin-bottom: 6px; }
.service-card__fee   { font-size: 18px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.service-card__term  { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }

.collapsible { margin-top: 16px; }
.collapsible > summary { cursor: pointer; font-weight: 600; padding: 8px 0; color: var(--text-muted); }
.collapsible > summary:hover { color: var(--text); }

.history-list, .audit-list { list-style: none; padding: 0; margin: 8px 0 0; }
.history-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--divider);
    font-size: 13px;
}
.audit-group { padding: 10px 0; border-bottom: 1px solid var(--divider); }
.audit-group__time { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.audit-change { font-size: 13px; margin: 2px 0; }
.audit-field { font-weight: 600; }
.audit-old   { color: var(--error); text-decoration: line-through; }
.audit-new   { color: var(--success); font-weight: 500; }

.notes-block {
    background: var(--divider);
    padding: 12px;
    border-radius: var(--radius);
    font-family: inherit;
    line-height: 1.6;
}

/* ===== Channel rows (form) ===== */
.channel-row {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin-top: 10px;
    background: #fafbfc;
}
.channel-row__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.channel-row__remove {
    background: none;
    border: none;
    color: var(--error);
    cursor: pointer;
}

/* ============================================================
 * Этап 5a: лента взаимодействий + галерея + activity log
 * ============================================================ */

/* ===== Chips (filters) ===== */
.note-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 12px 0;
    padding: 0;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--text-muted);
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}
.chip:hover { background: var(--divider); color: var(--text); text-decoration: none; }
.chip--active { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip--active:hover { background: var(--accent-hover); color: #fff; }

/* ===== Notes feed ===== */
.notes-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}
.note {
    padding: 12px 16px;
    border-left: 3px solid var(--border);
    background: #fafbfc;
    border-radius: var(--radius);
}
.note--urgent   { border-left-color: var(--error);   background: #fef2f2; }
.note--warning  { border-left-color: var(--warning); background: #fffbeb; }
.note--overdue  { border-left-color: #7f1d1d;        background: #fef2f2; }
.note--completed { opacity: 0.6; background: var(--divider); }
.note--completed .note__content { text-decoration: line-through; }

.note__header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}
.note__icon { font-size: 18px; flex-shrink: 0; }
.note__meta { flex: 1; font-size: 13px; line-height: 1.5; }
.note__actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}
.note__title {
    font-weight: 600;
    margin: 4px 0;
}
.note__content {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
}

.note-type-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.note-type-picker .radio {
    padding: 4px 10px;
    font-size: 12px;
}

/* ===== Gallery (ТЗ §8.8 — сетка 4×N desktop, 2×N mobile) ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 12px;
}
.gallery__item {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
}
.gallery__item img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--divider);
    transition: transform 0.2s;
}
.gallery__item:hover img { transform: scale(1.02); }
.gallery__caption {
    padding: 8px 10px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--divider);
    min-height: 32px;
}
.gallery__delete {
    position: absolute;
    top: 6px; right: 6px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    padding: 2px;
    opacity: 0;
    transition: opacity 0.2s;
}
.gallery__item:hover .gallery__delete { opacity: 1; }

@media (max-width: 640px) {
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .gallery__item img { height: 120px; }
}

/* ===== Activity log ===== */
.activity-log h4 {
    margin: 8px 0 4px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ============================================================
 * Этап 5b: графики + SEO KPI
 * ============================================================ */

/* ===== Charts grid ===== */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.chart-wrapper {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px 8px;
    min-height: 300px;
}
.chart-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.no-data { opacity: 0.5; }

@media (max-width: 900px) {
    .charts-grid { grid-template-columns: 1fr; }
}

/* ===== SEO KPI grid ===== */
.seo-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 8px;
}
.seo-kpi {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    text-align: left;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.seo-kpi:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}
.seo-kpi__icon {
    font-size: 20px;
    margin-bottom: 4px;
}
.seo-kpi__label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}
.seo-kpi__value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
.seo-kpi__sub {
    font-size: 12px;
    color: var(--success);
    margin-top: 2px;
}

/* ============================================================
 * Этап 6: дашборд
 * ============================================================ */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.kpi-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.kpi-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}
.kpi-card__label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 500;
}
.kpi-card__value {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.kpi-card__sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.dashboard-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 900px) {
    .dashboard-grid-2 { grid-template-columns: 1fr; }
}
