/* ==========================================================================
   ONE ERP · Liasse fiscale — système de design
   Palette : encre (#0d1b2a), indigo (#335cff), menthe (#12b886),
   sable (#f6f7fb). Typographie system-ui, densité confortable.
   ========================================================================== */

:root {
    --ink: #0d1b2a;
    --ink-2: #1b2a3d;
    --slate-900: #172433;
    --slate-700: #344054;
    --slate-500: #667085;
    --slate-400: #98a2b3;
    --line: #e4e8ef;
    --line-soft: #eef1f6;
    --bg: #f6f7fb;
    --surface: #ffffff;
    --primary: #335cff;
    --primary-dark: #2346d8;
    --primary-soft: #eef2ff;
    --success: #0f9d6e;
    --success-soft: #e8f8f1;
    --warning: #b7791f;
    --warning-soft: #fff6e6;
    --danger: #d92d20;
    --danger-soft: #fef1f0;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px -12px rgba(16, 24, 40, .18);
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
    --sidebar-w: 264px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font: 14px/1.5 var(--font);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: 24px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
p { margin: 0 0 12px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

code, .mono {
    font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 12.5px;
    background: #f2f4f9;
    border-radius: 5px;
    padding: 1px 5px;
    color: var(--slate-700);
}

.muted { color: var(--slate-500); font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.hidden { display: none !important; }

/* ---------------------------------------------------------------- Shell -- */

.app { display: flex; min-height: 100vh; }

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    background: linear-gradient(180deg, #101d2e 0%, #0a1420 100%);
    color: #cfd8e4;
    display: flex;
    flex-direction: column;
    z-index: 40;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 22px 16px;
    color: #fff;
    text-decoration: none;
}
.sidebar-brand:hover { color: #fff; text-decoration: none; }

.brand-mark {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4d7cff, #12b886);
    display: grid; place-items: center;
    font-weight: 800; font-size: 15px; color: #fff;
    box-shadow: 0 6px 18px -6px rgba(77, 124, 255, .8);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 14px; letter-spacing: .01em; }
.brand-text span { font-size: 11.5px; color: #8598b1; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 12px 20px; }

.nav-label {
    padding: 16px 12px 6px;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #6b7f99;
    font-weight: 700;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    border-radius: 9px;
    color: #c3cfdd;
    font-weight: 500;
    font-size: 13.5px;
    text-decoration: none;
    margin-bottom: 2px;
    transition: background .15s, color .15s;
}
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.nav-item.active { background: rgba(77, 124, 255, .18); color: #fff; box-shadow: inset 2px 0 0 #6b8dff; }
.nav-item svg { width: 17px; height: 17px; flex: 0 0 17px; opacity: .85; }
.nav-item .pill {
    margin-left: auto;
    background: rgba(255, 255, 255, .12);
    color: #dfe8f5;
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 11px;
}

.sidebar-foot {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 14px 18px;
    font-size: 12px;
    color: #8598b1;
}
.sidebar-foot .user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    display: grid; place-items: center;
    font-weight: 700; color: #fff; font-size: 12.5px;
    text-transform: uppercase;
}
.sidebar-foot a { color: #a9bad0; }
.sidebar-foot a:hover { color: #fff; }

.main {
    flex: 1;
    min-width: 0;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 64px;
    padding: 10px 28px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.topbar-title { display: flex; flex-direction: column; line-height: 1.25; }
.topbar-title strong { font-size: 15.5px; }
.topbar-title span { font-size: 12px; color: var(--slate-500); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.burger {
    display: none;
    width: 38px; height: 38px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 9px;
    cursor: pointer;
    align-items: center; justify-content: center;
    color: var(--slate-700);
}

.content { width: 100%; max-width: 1460px; margin: 0 auto; padding: 26px 28px 56px; }

/* ------------------------------------------------------------- Typography -- */

.page-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.page-head .grow { flex: 1; min-width: 240px; }
.page-head .sub { margin-top: 4px; color: var(--slate-500); font-size: 13px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 6px;
}

/* ----------------------------------------------------------------- Cards -- */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
    overflow: hidden;
}
.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--line-soft);
}
.card-header .grow { flex: 1; min-width: 0; }
.card-header h2 { font-size: 15.5px; }
.card-header .muted { margin-top: 2px; }
.card-body { padding: 20px; }
.card-body.tight { padding: 14px 20px; }
.card-footer {
    padding: 13px 20px;
    border-top: 1px solid var(--line-soft);
    background: #fbfcfe;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 18px; align-items: start; }

/* ------------------------------------------------------------------ KPIs -- */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.kpi {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.kpi::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--primary);
    opacity: .85;
}
.kpi.success::before { background: var(--success); }
.kpi.warning::before { background: var(--warning); }
.kpi.danger::before { background: var(--danger); }
.kpi-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-500); font-weight: 650; }
.kpi-value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 2px; }
.kpi-hint { font-size: 12px; color: var(--slate-500); }

/* --------------------------------------------------------------- Buttons -- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid transparent;
    background: var(--primary);
    color: #fff;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font: inherit;
    font-weight: 600;
    font-size: 13.5px;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
}
.btn:hover { background: var(--primary-dark); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(51, 92, 255, .25); outline-offset: 1px; }

.btn.sec, .btn-ghost { background: #fff; color: var(--slate-700); border-color: var(--line); box-shadow: none; }
.btn.sec:hover, .btn-ghost:hover { background: #f8fafc; color: var(--ink); border-color: #cfd6e2; }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #b42318; }
.btn.soft { background: var(--primary-soft); color: var(--primary-dark); box-shadow: none; }
.btn.soft:hover { background: #e3e9ff; }
.btn.sm { padding: 5px 9px; font-size: 12.5px; border-radius: 7px; }
.btn.lg { padding: 11px 20px; font-size: 14.5px; }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-link { background: none; border: 0; color: var(--primary); padding: 0; font: inherit; cursor: pointer; }
.btn-link:hover { text-decoration: underline; }

.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline-flex; gap: 8px; align-items: center; margin: 0; }

/* ----------------------------------------------------------------- Forms -- */

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field > label, .label { font-size: 12.5px; font-weight: 650; color: var(--slate-700); }
.field .help, .help { font-size: 12px; color: var(--slate-500); }
.field .error { font-size: 12px; color: var(--danger); }

input[type="text"], input[type="password"], input[type="url"], input[type="number"],
input[type="date"], input[type="email"], input[type="search"], select, textarea {
    width: 100%;
    font: inherit;
    font-size: 13.5px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #d5dbe5;
    border-radius: var(--radius-sm);
    padding: 8px 11px;
    transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: #c1c9d6; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(51, 92, 255, .14);
}
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; accent-color: var(--primary); vertical-align: -2px; }
input.montant { width: 132px; text-align: right; font-variant-numeric: tabular-nums; }
textarea { min-height: 84px; resize: vertical; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.form-row .field { margin-bottom: 0; }

.checkline { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--slate-700); margin: 8px 0; }
.checkline input { margin-top: 2px; }

.file-drop {
    display: block;
    border: 1.5px dashed #c9d2e0;
    border-radius: var(--radius-sm);
    padding: 12px;
    background: #fbfcfe;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.file-drop:hover { border-color: var(--primary); background: var(--primary-soft); }
.file-drop input[type="file"] { width: 100%; font-size: 12.5px; }

/* ----------------------------------------------------------------- Tables -- */

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
table.table th, table.table td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
    vertical-align: middle;
}
table.table thead th {
    background: #f8fafc;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--slate-500);
    font-weight: 700;
    white-space: nowrap;
    border-bottom: 1px solid var(--line);
}
table.table tbody tr:hover { background: #fafbff; }
table.table tbody tr:last-child td { border-bottom: 0; }
table.table td.n, table.table th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.table tr.total td { font-weight: 700; background: #f7f9fd; }
table.table tr.subtotal td { font-weight: 600; background: #fbfcfe; }
table.table td.actions-cell { white-space: nowrap; text-align: right; }
table.table .num { font-variant-numeric: tabular-nums; }

.table-empty { padding: 26px 20px; text-align: center; color: var(--slate-500); font-size: 13px; }

/* ---------------------------------------------------------------- Badges -- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 650;
    background: #eef2f7;
    color: var(--slate-700);
    white-space: nowrap;
    line-height: 1.6;
}
.badge.BROUILLON { background: #eef2f7; color: var(--slate-700); }
.badge.IMPORTE { background: #e8f1ff; color: #175cd3; }
.badge.CALCULE { background: #eef0ff; color: #3538cd; }
.badge.GENERE { background: var(--warning-soft); color: var(--warning); }
.badge.DEPOSE, .badge.OK, .badge.SUCCES { background: var(--success-soft); color: var(--success); }
.badge.AVERTISSEMENT { background: var(--warning-soft); color: var(--warning); }
.badge.BLOQUANT, .badge.ECHEC, .badge.ERREUR { background: var(--danger-soft); color: var(--danger); }
.badge.LECTURE { background: #eef2f7; color: var(--slate-700); }
.badge.COMPTABLE { background: #e8f1ff; color: #175cd3; }
.badge.DAF { background: #eef0ff; color: #3538cd; }
.badge.source { background: #f2f4f9; color: var(--slate-500); }
.badge.neutral { background: #f2f4f9; color: var(--slate-500); }
.badge.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
    color: var(--slate-700);
    background: #fff;
}

/* ----------------------------------------------------------------- Alerts -- */

.flash, .alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    margin-bottom: 10px;
    font-size: 13.5px;
}
.flash-success, .alert-success { background: var(--success-soft); color: #05603a; border-color: #b7ebd6; }
.flash-danger, .alert-danger { background: var(--danger-soft); color: #912018; border-color: #fbc9c5; }
.flash-warning, .alert-warning { background: var(--warning-soft); color: #7a4a00; border-color: #f6dfb2; }
.flash-info, .alert-info { background: var(--primary-soft); color: #1d3bb8; border-color: #d3ddff; }

.toast-stack { position: fixed; top: 18px; right: 22px; z-index: 90; display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.toast-stack .flash { margin: 0; box-shadow: var(--shadow); background: #fff; }

.empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--slate-500);
}
.empty .icon {
    width: 52px; height: 52px;
    margin: 0 auto 12px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    display: grid; place-items: center;
    font-size: 22px;
}
.empty h3 { color: var(--ink); margin-bottom: 6px; }
.empty p { max-width: 460px; margin: 0 auto 14px; }

/* ------------------------------------------------------------------ Tabs -- */

.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    margin: 0 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--slate-500);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}
.tab:hover { color: var(--ink); text-decoration: none; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab .count {
    background: #eef2f7;
    border-radius: 999px;
    padding: 0 7px;
    font-size: 11px;
    color: var(--slate-700);
}
.tab.active .count { background: var(--primary-soft); color: var(--primary-dark); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------- Stepper -- */

.stepper {
    display: flex;
    gap: 0;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    counter-reset: step;
    flex-wrap: wrap;
}
.step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px 9px 12px;
    font-size: 13px;
    color: var(--slate-500);
    counter-increment: step;
    flex: 1;
    min-width: 150px;
}
.step::before {
    content: counter(step);
    width: 24px; height: 24px;
    flex: 0 0 24px;
    border-radius: 50%;
    border: 1.5px solid #cfd6e2;
    display: grid; place-items: center;
    font-size: 11.5px; font-weight: 700;
    background: #fff;
}
.step.done { color: var(--success); }
.step.done::before { content: "✓"; border-color: var(--success); background: var(--success-soft); color: var(--success); }
.step.active { color: var(--ink); font-weight: 650; }
.step.active::before { border-color: var(--primary); background: var(--primary); color: #fff; }

/* ----------------------------------------------------------- Source pick -- */

.source-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.source-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: border-color .15s, box-shadow .15s, transform .15s;
    text-decoration: none;
    color: inherit;
}
.source-card:hover {
    border-color: #b9c6ff;
    box-shadow: var(--shadow);
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}
.source-card.disabled { opacity: .6; pointer-events: none; }
.source-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid; place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 19px;
}
.source-icon.green { background: var(--success-soft); color: var(--success); }
.source-card h3 { font-size: 16px; }
.source-card p { color: var(--slate-500); font-size: 13px; margin: 0; }
.source-card .go { margin-top: auto; font-weight: 650; color: var(--primary); font-size: 13px; }

/* ----------------------------------------------------------------- Misc -- */

/* Compatibilité avec les anciens gabarits (carte, grille, table nue). */
.carte {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
    padding: 20px;
}
.carte > h1, .carte > h2 { margin-bottom: 12px; }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.carte table { width: 100%; border-collapse: collapse; }
.carte table th, .carte table td { padding: 8px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.carte table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-500); background: #f8fafc; white-space: nowrap; }
.carte table tr:last-child td { border-bottom: 0; }

/* Charges JSON du journal d'audit : ne jamais élargir la page. */
.audit-payload { max-width: 320px; overflow-wrap: anywhere; word-break: break-word; font-size: 11.5px; }
table.table td code, table.table td .mono { overflow-wrap: anywhere; }


.avatar-list { display: flex; align-items: center; gap: 10px; }
.stat-inline { display: flex; gap: 22px; flex-wrap: wrap; }
.stat-inline .item { min-width: 100px; }
.stat-inline .item span { display: block; font-size: 11.5px; color: var(--slate-500); text-transform: uppercase; letter-spacing: .05em; font-weight: 650; }
.stat-inline .item strong { font-size: 15px; }

.progress { height: 8px; border-radius: 999px; background: #eef1f6; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4d7cff, #12b886); }

.kv { width: 100%; border-collapse: collapse; }
.kv th, .kv td { padding: 8px 0; border-bottom: 1px solid var(--line-soft); text-align: left; font-size: 13px; vertical-align: top; }
.kv th { color: var(--slate-500); font-weight: 600; width: 42%; }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }

.steps-note { display: flex; gap: 12px; align-items: flex-start; }
.steps-note .bullet {
    flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
    background: var(--primary-soft); color: var(--primary-dark);
    display: grid; place-items: center; font-weight: 700; font-size: 12px;
}

details { border-radius: var(--radius-sm); }
details summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--slate-700); }
details summary:hover { color: var(--ink); }
details[open] summary { margin-bottom: 10px; }

/* ----------------------------------------------------------------- Login -- */

.auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
    background: #fff;
}
.auth-aside {
    position: relative;
    overflow: hidden;
    background: radial-gradient(1200px 600px at 10% 10%, #22355a 0%, #0b1626 55%, #070f19 100%);
    color: #dbe5f3;
    padding: 52px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.auth-aside::after {
    content: "";
    position: absolute;
    width: 520px; height: 520px;
    right: -180px; bottom: -200px;
    background: radial-gradient(circle, rgba(77, 124, 255, .35), transparent 65%);
}
.auth-aside h1 { color: #fff; font-size: 30px; line-height: 1.2; max-width: 460px; }
.auth-aside p { color: #9db0c9; max-width: 440px; font-size: 14px; }
.auth-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.auth-points { display: grid; gap: 14px; position: relative; z-index: 1; }
.auth-point { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: #c8d5e6; }
.auth-point b { color: #fff; font-weight: 600; }
.auth-point .dot { width: 26px; height: 26px; border-radius: 8px; background: rgba(77, 124, 255, .22); display: grid; place-items: center; color: #9db8ff; flex: 0 0 26px; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; background: #fbfcfe; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h2 { font-size: 22px; margin-bottom: 6px; }
.auth-card .sub { color: var(--slate-500); font-size: 13px; margin-bottom: 22px; }
.auth-card .btn { width: 100%; padding: 11px; }
.auth-foot { margin-top: 22px; font-size: 12px; color: var(--slate-400); text-align: center; }

/* ------------------------------------------------------------ Responsive -- */

@media (max-width: 1180px) {
    .split { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
    .sidebar.open { transform: none; box-shadow: 0 24px 60px rgba(8, 16, 30, .45); }
    .main { margin-left: 0; }
    .burger { display: inline-flex; }
    .auth { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .content { padding: 20px 18px 44px; }
    .topbar { padding: 10px 18px; }
}

@media (max-width: 720px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .page-head { gap: 12px; }
    h1 { font-size: 21px; }
    .topbar-actions .btn span.long { display: none; }
}

@media print {
    .sidebar, .topbar, .page-actions, .tabs, .btn { display: none !important; }
    .main { margin-left: 0; }
    .content { padding: 0; max-width: none; }
    .card { break-inside: avoid; box-shadow: none; }
}
