/* ============================================================================
   CGRates Manager — design system
   Material 3 Expressive / "Stitch"-style polish: Inter typography, tonal
   surfaces, soft layered shadows, large radii, light + dark themes.
   ========================================================================== */

:root {
    /* light theme (default) */
    --bg: #f3f5fb;
    --bg-accent: radial-gradient(1100px 500px at 85% -10%, rgba(99, 102, 241, .12), transparent 60%),
                 radial-gradient(900px 450px at -10% 110%, rgba(5, 150, 105, .10), transparent 55%);
    --surface: #ffffff;
    --surface-2: #eef1f8;
    --surface-3: #e6eaf4;
    --line: #e3e8f2;
    --line-strong: #cfd7e6;
    --text: #101728;
    --muted: #64748b;
    --primary: #0e9488;
    --primary-2: #059669;
    --primary-soft: rgba(14, 148, 136, .10);
    --primary-soft-2: rgba(5, 150, 105, .16);
    --ok: #059669;
    --ok-soft: rgba(5, 150, 105, .12);
    --warn: #b45309;
    --warn-soft: rgba(217, 119, 6, .14);
    --danger: #dc2626;
    --danger-soft: rgba(220, 38, 38, .10);
    --code-bg: #0f1526;
    --code-text: #c8d4f2;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow-md: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 28px -8px rgba(16, 24, 40, .12);
    --shadow-lg: 0 4px 10px rgba(16, 24, 40, .06), 0 24px 60px -12px rgba(16, 24, 40, .18);
    --r-lg: 22px;
    --r-md: 14px;
    --r-sm: 10px;
    --r-pill: 999px;
    --topbar-blur: rgba(255, 255, 255, .78);
    /* Inter is used when the operator installs it locally; the stack degrades gracefully */
    --font: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
    --mono: "Cascadia Code", Consolas, Menlo, monospace;
}

[data-theme="dark"] {
    --bg: #0a0f1e;
    --bg-accent: radial-gradient(1100px 500px at 85% -10%, rgba(99, 102, 241, .16), transparent 60%),
                 radial-gradient(900px 450px at -10% 110%, rgba(5, 150, 105, .13), transparent 55%);
    --surface: #121a2e;
    --surface-2: #1a2440;
    --surface-3: #223055;
    --line: #243050;
    --line-strong: #34426b;
    --text: #e6ebf7;
    --muted: #8e9cb9;
    --primary: #2dd4bf;
    --primary-2: #34d399;
    --primary-soft: rgba(45, 212, 191, .14);
    --primary-soft-2: rgba(52, 211, 153, .18);
    --ok: #34d399;
    --ok-soft: rgba(52, 211, 153, .13);
    --warn: #fbbf24;
    --warn-soft: rgba(251, 191, 36, .13);
    --danger: #f87171;
    --danger-soft: rgba(248, 113, 113, .12);
    --code-bg: #0a1020;
    --code-text: #c8d4f2;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -10px rgba(0, 0, 0, .5);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, .4), 0 28px 70px -14px rgba(0, 0, 0, .6);
    --topbar-blur: rgba(10, 15, 30, .75);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--bg);
    background-image: var(--bg-accent);
    background-attachment: fixed;
    color: var(--text);
    font: 14px/1.55 var(--font);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.006em;
    transition: background-color .25s ease, color .25s ease;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }
h1, h2, h3 { letter-spacing: -0.02em; }
::selection { background: var(--primary-soft-2); }
code, .mono, .cfg-pre { font-family: var(--mono); font-size: 12.5px; }
code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); }
.icon { flex: 0 0 auto; vertical-align: -3px; }
[data-theme="dark"] .only-light { display: none; }
html:not([data-theme="dark"]) .only-dark { display: none; }

/* ------------------------------------------------------------------ layout */
.shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 258px; flex: 0 0 258px;
    background: var(--surface);
    border-right: 1px solid var(--line);
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    scrollbar-width: thin;
}
.brand { display: flex; gap: 12px; align-items: center; padding: 20px 18px 16px; }
.brand-mark {
    width: 42px; height: 42px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff; box-shadow: 0 6px 16px -6px rgba(14, 148, 136, .55);
}
.brand-text { font-weight: 800; font-size: 15px; line-height: 1.15; letter-spacing: -0.02em; }
.brand-text small { display: block; color: var(--muted); font-weight: 500; font-size: 11px; letter-spacing: .02em; }
.sidebar nav { flex: 1; padding: 4px 12px 12px; }
.nav-group-btn {
    display: flex; align-items: center; justify-content: space-between;
    width: calc(100% - 8px); margin: 14px 4px 2px;
    background: none; border: none; cursor: pointer;
    color: var(--muted); text-transform: uppercase; font-size: 10.5px;
    font-weight: 700; letter-spacing: 1.4px; text-align: left;
    font-family: var(--font); padding: 4px 8px;
    border-radius: 6px; transition: color .15s ease;
}
.nav-group-btn:hover { color: var(--text); }
.nav-group-btn .chev { font-size: 10px; transition: transform .18s ease; }
.nav-group-btn.open .chev { transform: rotate(180deg); }
.nav-items { display: none; }
.nav-items.open { display: block; }
.nav-items.open + .nav-group-btn, .nav-group-btn.open { color: var(--text); }
.sidebar nav a {
    display: flex; align-items: center; gap: 11px;
    color: var(--muted); font-weight: 500;
    padding: 8px 12px; border-radius: var(--r-sm);
    margin: 1px 0; transition: background .15s ease, color .15s ease;
}
.sidebar nav a:hover { background: var(--surface-2); color: var(--text); }
.sidebar nav a.active {
    background: linear-gradient(90deg, var(--primary-soft), var(--primary-soft-2));
    color: var(--primary); font-weight: 600;
    box-shadow: inset 0 0 0 1px var(--primary-soft-2);
}
.sidebar-footer {
    margin: 10px 12px 14px; padding: 10px 12px;
    background: var(--surface-2); border: 1px solid var(--line);
    border-radius: var(--r-md);
    color: var(--muted); font-size: 11.5px;
    display: flex; align-items: center; gap: 8px;
}
.sidebar-footer strong { color: var(--text); font-weight: 600; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); flex: 0 0 auto; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px 28px; border-bottom: 1px solid var(--line);
    background: var(--topbar-blur);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 17px; margin: 0; font-weight: 700; }
.topbar-right { display: flex; gap: 10px; align-items: center; }
.user-chip {
    display: flex; align-items: center; gap: 9px;
    padding: 5px 12px 5px 5px; border: 1px solid var(--line);
    border-radius: var(--r-pill); background: var(--surface);
    color: var(--text); font-size: 13px; font-weight: 600;
    box-shadow: var(--shadow-sm);
}
.avatar {
    width: 28px; height: 28px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
}
.content { padding: 26px 30px 70px; max-width: 1440px; width: 100%; }

/* ------------------------------------------------------------- hero / KPIs */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.hero h2 { margin: 0 0 4px; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.hero p { margin: 0; color: var(--muted); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.cards {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 14px; margin-bottom: 22px;
}
@media (max-width: 1280px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .cards { grid-template-columns: 1fr; } }
.card {
    display: flex; gap: 14px; align-items: center;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 18px;
    color: var(--text); box-shadow: var(--shadow-sm);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.icon-bubble {
    width: 46px; height: 46px; border-radius: 15px; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary-soft); color: var(--primary);
}
.icon-bubble.tone-ok { background: var(--ok-soft); color: var(--ok); }
.icon-bubble.tone-warn { background: var(--warn-soft); color: var(--warn); }
.icon-bubble.tone-danger { background: var(--danger-soft); color: var(--danger); }
.icon-bubble.tone-violet { background: var(--primary-soft-2); color: var(--primary-2); }
.card-num { font-size: 25px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.card-label { color: var(--muted); font-size: 12px; font-weight: 500; margin-top: 2px; }

/* ------------------------------------------------------------ callout */
.callout {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    background: linear-gradient(90deg, var(--primary-soft), var(--primary-soft-2));
    border: 1px solid var(--primary-soft-2);
    border-radius: var(--r-lg); padding: 16px 20px; margin-bottom: 22px;
}
.callout .callout-text { flex: 1; min-width: 240px; font-weight: 500; }
.callout .callout-text strong { display: block; font-size: 15px; margin-bottom: 2px; }
.callout .callout-text span { color: var(--muted); font-size: 13px; font-weight: 400; }

/* ------------------------------------------------------------ panels */
.panel {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.panel-narrow { max-width: 760px; }
.panel-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 1100px) { .panel-row { grid-template-columns: 1fr; } }
.panel h2 { margin: 0 0 12px; font-size: 15.5px; font-weight: 700; }
.panel h3 { margin: 18px 0 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.panel-toolbar {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 14px; flex-wrap: wrap; margin-bottom: 14px;
}
.panel-toolbar h2 { margin-bottom: 2px; }
.toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.count {
    color: var(--muted); font-weight: 600; font-size: 12px;
    background: var(--surface-2); border: 1px solid var(--line);
    padding: 2px 10px; border-radius: var(--r-pill); margin-left: 4px;
}
.muted { color: var(--muted); }
.mono-cell { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ta-right { text-align: right; }
.ta-center { text-align: center; }
.empty {
    text-align: center; color: var(--muted); padding: 34px 10px;
    border: 1px dashed var(--line-strong); border-radius: var(--r-md);
    background: var(--surface-2);
}

/* ------------------------------------------------------------ tables */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td {
    text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.data-table th {
    color: var(--muted); font-size: 10.5px; text-transform: uppercase;
    letter-spacing: 1px; font-weight: 700;
}
.data-table tbody tr { transition: background .12s ease; }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table tbody tr:last-child td { border-bottom: none; }
.kv-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.kv-table tr:last-child td { border-bottom: none; }
.kv-table td:first-child { color: var(--muted); width: 220px; }

.pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 2px 10px; border-radius: var(--r-pill);
    background: var(--surface-2); border: 1px solid var(--line);
    font-size: 12px; font-weight: 600;
}
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.pill.primary { background: var(--primary-soft); color: var(--primary); border-color: transparent; }

.status-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
@media (max-width: 640px) { .status-list { grid-template-columns: 1fr; } }
.status-item { display: flex; align-items: center; gap: 9px; padding: 7px 4px; font-size: 13px; }
.status-item .label { color: var(--muted); margin-right: auto; }

.bar-row { display: grid; grid-template-columns: minmax(90px, auto) 1fr 92px; align-items: center; gap: 12px; padding: 6px 0; }
.bar-row .bar-label { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 9px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
.bar-row .bar-value { color: var(--muted); font-size: 12px; text-align: right; }

/* ------------------------------------------------------------ buttons */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--line-strong); border-radius: var(--r-sm);
    padding: 7px 15px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: background .15s ease, border-color .15s ease, transform .1s ease, box-shadow .15s ease;
}
.btn:hover { border-color: var(--primary); color: var(--primary); background: var(--surface); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 3px solid var(--primary-soft-2); outline-offset: 1px; }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border: none; color: #fff;
    box-shadow: 0 6px 16px -6px rgba(14, 148, 136, .55);
}
.btn-primary:hover { color: #fff; filter: brightness(1.06); }
.btn-danger { border-color: transparent; background: var(--danger-soft); color: var(--danger); box-shadow: none; }
.btn-danger:hover { border-color: var(--danger); color: var(--danger); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); border-color: transparent; }
.btn-icon {
    padding: 8px; border-radius: var(--r-sm); line-height: 0;
    color: var(--muted); background: transparent; border-color: transparent; box-shadow: none;
}
.btn-icon:hover { color: var(--primary); background: var(--primary-soft); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; }

/* ------------------------------------------------------------- forms */
label { display: block; }
.form-row { margin-bottom: 15px; }
.form-label { display: block; color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 5px; }
.form-label em { color: var(--danger); font-style: normal; }
.form-hint { display: block; color: var(--muted); font-size: 11.5px; margin-top: 4px; }
input[type=text], input[type=password], input[type=number], input[type=search], input[type=date], select, textarea {
    width: 100%; background: var(--surface); color: var(--text);
    border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 9px 12px;
    font: inherit; transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}
input[readonly] { color: var(--muted); background: var(--surface-2); }
textarea.mono { font-family: var(--mono); font-size: 12.5px; }
.checkbox-wrap input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--primary); }
.form-actions { margin-top: 20px; display: flex; gap: 10px; }
.form-actions.sticky { position: sticky; bottom: 0; padding: 12px 0; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 4px 28px; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px 20px; margin-bottom: 8px; }
.perm-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.perm-item input { margin-top: 3px; }
.perm-item code { display: inline-block; margin-bottom: 2px; }
.inline-form { display: inline-flex; gap: 5px; align-items: center; }
.input-sm { width: 104px !important; padding: 4px 8px !important; }
.actions-cell { white-space: nowrap; }
.actions-cell .inline-form { margin-left: 4px; }

/* ------------------------------------------------------------- flash */
.flash {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 16px; border-radius: var(--r-md); margin-bottom: 16px;
    border: 1px solid var(--line); background: var(--surface-2);
    box-shadow: var(--shadow-sm); font-weight: 500;
}
.flash::before { content: ""; margin-top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: 0 0 auto; }
.flash-ok { border-color: transparent; background: var(--ok-soft); color: var(--ok); }
.flash-ok::before { background: var(--ok); }
.flash-error { border-color: transparent; background: var(--danger-soft); color: var(--danger); }
.flash-error::before { background: var(--danger); }
.flash-warn { border-color: transparent; background: var(--warn-soft); color: var(--warn); }
.flash-warn::before { background: var(--warn); }

/* ------------------------------------------------------------ misc ui */
.pagination { margin-top: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.page {
    padding: 5px 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
    color: var(--text); background: var(--surface); font-weight: 600; font-size: 12.5px;
    transition: border-color .15s ease, background .15s ease;
}
.page:hover { border-color: var(--primary); color: var(--primary); }
.page.current { background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-color: transparent; color: #fff; }
.search-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search-form input, .search-form select { width: auto; min-width: 150px; }
.search-form label { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; font-weight: 500; }
.cfg-pre {
    background: var(--code-bg); border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 16px 18px; overflow-x: auto; max-height: 520px; white-space: pre;
    color: var(--code-text);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03), var(--shadow-sm);
}
.file-block { margin-top: 18px; }
.file-name { color: var(--primary); margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.hint-list { color: var(--muted); padding-left: 18px; }
.hint-list li { margin-bottom: 4px; }

/* ------------------------------------------------------------ charts */
.chart-series.off { opacity: .08; }
.chart-holder { min-height: 120px; }
.chart-holder .empty { padding: 34px 0; }
.daily-chart text { font-family: var(--font); }
.chart-label { fill: var(--muted); font-size: 11px; font-weight: 500; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-tick { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.chart-axis { stroke: var(--line-strong); stroke-width: 1.5; }
.chart-dot { transition: r .12s ease; }
.chart-dot:hover { r: 5; }
/* ---------------------------------------------------------- world map */
.honeypot-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

/* ------------------------------------------------- API explorer */
.tabs { display: flex; gap: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px; }
.tab {
    padding: 7px 18px; border-radius: var(--r-pill); color: var(--muted);
    font-weight: 600; font-size: 15px; transition: background .15s ease, color .15s ease;
}
.sim-total {
    display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px;
}
.sim-total-label { color: var(--muted); font-size: 13px; }
.sim-total-value { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--primary); }
.tab.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.tab:hover { color: var(--text); }

/* ------------------------------------------------------------- login */
.login-body {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 24px;
    background: var(--bg);
    background-image: var(--bg-accent);
    background-attachment: fixed;
}
.login-shell {
    display: grid; grid-template-columns: 1.05fr 1fr;
    width: min(1000px, 100%); min-height: 560px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.login-hero {
    position: relative; padding: 44px;
    background: linear-gradient(150deg, #0f766e 0%, #0d9488 55%, #059669 100%);
    color: #fff; display: flex; flex-direction: column;
}
.login-hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(420px 220px at 110% 110%, rgba(255, 255, 255, .18), transparent 60%),
        radial-gradient(360px 200px at -10% -10%, rgba(255, 255, 255, .14), transparent 55%);
}
.login-hero > * { position: relative; }
.login-brand-mark {
    width: 52px; height: 52px; border-radius: 16px;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
    display: flex; align-items: center; justify-content: center; margin-bottom: 26px;
}
.login-hero h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 10px; line-height: 1.2; }
.login-hero p { color: rgba(255, 255, 255, .82); margin: 0 0 30px; max-width: 380px; }
.login-features { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 13px; }
.login-features li { display: flex; gap: 11px; align-items: center; font-weight: 500; font-size: 13.5px; color: rgba(255, 255, 255, .92); }
.login-features .feat-ico {
    width: 34px; height: 34px; border-radius: 11px; flex: 0 0 auto;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
    display: inline-flex; align-items: center; justify-content: center;
}
.login-form-pane { padding: 52px 48px; display: flex; flex-direction: column; justify-content: center; }
.login-brand-small { font-weight: 800; font-size: 15px; letter-spacing: -0.02em; margin-bottom: 26px; }
.login-form-pane h2 { margin: 0 0 6px; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.login-sub { color: var(--muted); margin: 0 0 24px; }
.login-card label { margin-bottom: 16px; }
.login-card .form-label { display: block; }
.login-card button { margin-top: 8px; padding: 11px; font-size: 14px; }
.login-hint { color: var(--muted); font-size: 12px; margin-top: 18px; text-align: center; }
@media (max-width: 880px) { .login-shell { grid-template-columns: 1fr; } .login-hero { display: none; } }

@media (max-width: 900px) {
    .shell { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: static; }
    .panel-row { grid-template-columns: 1fr; }
    .content { padding: 20px 16px 60px; }
}
