/* Planet Hopper admin console — base theme and layout. */
:root {
    color-scheme: dark;
    --bg: #070b14;
    --bg-soft: #0a1120;
    --panel: #101827;
    --panel-2: #141f33;
    --line: #243554;
    --line-soft: rgba(84, 119, 166, .28);
    --text: #edf5ff;
    --muted: #8fa4c0;
    --faint: #637892;
    --accent: #35e6ff;
    --accent-2: #7ceeff;
    --ok: #65ff9a;
    --warn: #ffc857;
    --danger: #ff7894;
    --violet: #b79cff;
    --gold: #ffd65e;
    --shadow: 0 22px 70px rgba(0, 0, 0, .34);
    --radius: 16px;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(1100px 620px at 82% -10%, rgba(53, 230, 255, .10), transparent 62%),
        radial-gradient(900px 540px at 8% 105%, rgba(124, 92, 255, .10), transparent 60%),
        linear-gradient(145deg, #070b14 0%, #0a1020 55%, #080d18 100%);
    color: var(--text);
    font: 14px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.shell {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    min-height: 100vh;
}

/* ---------- sidebar ---------- */
.side {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 22px 14px;
    background: linear-gradient(180deg, rgba(12, 18, 31, .96), rgba(8, 13, 24, .96));
    border-right: 1px solid var(--line-soft);
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 4px 10px 22px;
}

.brand-mark {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #04121a;
    background: linear-gradient(145deg, var(--accent-2), #20a9d8);
    border-radius: 12px;
    box-shadow: 0 0 26px rgba(53, 230, 255, .35);
}
.brand-mark .icon { width: 22px; height: 22px; }

.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: 13px; letter-spacing: .12em; }
.brand-text small { margin-top: 2px; color: var(--faint); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

.nav { display: flex; flex-direction: column; gap: 4px; }

.nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    color: var(--muted);
    border: 1px solid transparent;
    border-radius: 11px;
    transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}
.nav a .icon { width: 18px; height: 18px; flex: 0 0 18px; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .035); border-color: var(--line-soft); }
.nav a.active {
    color: var(--accent-2);
    background: linear-gradient(90deg, rgba(53, 230, 255, .13), rgba(53, 230, 255, .04));
    border-color: rgba(53, 230, 255, .26);
    box-shadow: inset 3px 0 0 var(--accent);
}

.side-foot { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding: 14px 6px 2px; }
.nav-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--muted);
    border: 1px solid transparent;
    border-radius: 10px;
}
.nav-logout:hover { color: var(--text); background: rgba(255, 255, 255, .035); border-color: var(--line-soft); }
.nav-logout .icon { width: 18px; height: 18px; }
.side-version { padding: 0 12px; color: var(--faint); font-size: 11px; }

/* ---------- main ---------- */
main {
    width: 100%;
    max-width: 1520px;
    margin: 0 auto;
    padding: 30px clamp(18px, 3.2vw, 46px) 42px;
    min-width: 0;
}

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.subtitle { max-width: 72ch; margin: 8px 0 0; color: var(--muted); }

.topbar-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding-top: 7px; }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    color: #bfffd3;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(101, 255, 154, .25);
    border-radius: 999px;
    background: rgba(101, 255, 154, .07);
}
.status-pill i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 12px var(--ok);
}

.clock {
    padding: 7px 11px;
    color: var(--muted);
    font: 600 11px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: rgba(255, 255, 255, .025);
}

.icon-btn {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--muted);
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: rgba(255, 255, 255, .025);
}
.icon-btn:hover { color: var(--text); border-color: var(--line); }
.icon-btn .icon { width: 16px; height: 16px; }

.foot { margin-top: 26px; padding-top: 16px; color: var(--faint); font-size: 11px; border-top: 1px solid var(--line-soft); }

/* ---------- flash ---------- */
.flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .035);
}
.flash .icon { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 1px; }
.flash.success { color: #bdffd1; border-color: rgba(101, 255, 154, .28); background: rgba(101, 255, 154, .075); }
.flash.error { color: #ffb7c5; border-color: rgba(255, 120, 148, .32); background: rgba(255, 120, 148, .08); }

/* ---------- stat cards ---------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.stat-card {
    position: relative;
    overflow: hidden;
    min-height: 126px;
    padding: 16px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(22, 33, 54, .92), rgba(12, 19, 33, .95));
    box-shadow: 0 12px 34px rgba(0, 0, 0, .16);
}
.stat-card::after {
    position: absolute;
    right: -30px;
    bottom: -34px;
    width: 110px;
    height: 110px;
    content: "";
    border-radius: 50%;
    background: var(--tone, var(--accent));
    opacity: .07;
    filter: blur(8px);
}
.stat-top { display: flex; align-items: center; gap: 9px; }
.stat-icon {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    color: var(--tone, var(--accent));
    border: 1px solid var(--tone-line, rgba(53, 230, 255, .28));
    border-radius: 9px;
    background: var(--tone-soft, rgba(53, 230, 255, .1));
}
.stat-icon .icon { width: 16px; height: 16px; }
.stat-label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.stat-value { margin-top: 13px; color: var(--text); font-size: 29px; font-weight: 850; line-height: 1; letter-spacing: -.03em; }
.stat-hint { margin-top: 6px; color: var(--faint); font-size: 11px; }

.tone-cyan { --tone: var(--accent); --tone-soft: rgba(53, 230, 255, .10); --tone-line: rgba(53, 230, 255, .28); }
.tone-violet { --tone: var(--violet); --tone-soft: rgba(183, 156, 255, .10); --tone-line: rgba(183, 156, 255, .28); }
.tone-gold { --tone: var(--gold); --tone-soft: rgba(255, 214, 94, .10); --tone-line: rgba(255, 214, 94, .28); }
.tone-green { --tone: var(--ok); --tone-soft: rgba(101, 255, 154, .10); --tone-line: rgba(101, 255, 154, .28); }
.tone-pink { --tone: var(--danger); --tone-soft: rgba(255, 120, 148, .10); --tone-line: rgba(255, 120, 148, .30); }

/* ---------- quick actions ---------- */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}
.quick-actions.inline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quick-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 14px;
    border: 1px solid var(--line-soft);
    border-radius: 13px;
    background: rgba(255, 255, 255, .025);
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.quick-link:hover { border-color: var(--line); background: rgba(255, 255, 255, .045); transform: translateY(-1px); }
.quick-link > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.quick-link strong { font-size: 12px; }
.quick-link small { margin-top: 2px; color: var(--faint); font-size: 10px; }
.quick-icon {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    color: var(--tone, var(--accent));
    border-radius: 9px;
    background: var(--tone-soft, rgba(53, 230, 255, .1));
}
.quick-icon .icon { width: 17px; height: 17px; }
.chev { color: var(--faint); font-size: 19px; line-height: 1; }

/* ---------- panels / tables ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }

.panel,
.form-card {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(18, 28, 46, .9), rgba(10, 17, 29, .94));
    box-shadow: 0 14px 40px rgba(0, 0, 0, .16);
}
.panel { padding: 17px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.panel-head h2, .group-head h2 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.panel-head p, .group-head p { margin: 4px 0 0; font-size: 11px; }
.link { color: var(--accent); font-size: 12px; font-weight: 700; }
.link:hover { color: var(--accent-2); text-decoration: underline; }

.table-wrap {
    overflow: auto;
    border: 1px solid var(--line-soft);
    border-radius: 13px;
    background: rgba(9, 15, 27, .55);
}
.table-wrap.compact { border: 0; border-radius: 0; background: transparent; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th, td { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: #121d30;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(53, 230, 255, .04); }
.compact th, .compact td { padding: 9px 8px; }

.cell-main { display: block; max-width: 340px; overflow: hidden; color: var(--text); font-weight: 700; text-overflow: ellipsis; }
.cell-sub { display: flex; align-items: center; gap: 7px; margin-top: 3px; color: var(--faint); font-size: 10px; }
.cell-sub code { overflow: hidden; max-width: 230px; text-overflow: ellipsis; }
.cell-muted { color: var(--muted); }
.strong { font-weight: 800; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.text-right { text-align: right; }

.table-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 11px; }
.page-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    padding: 13px 15px;
    border: 1px solid var(--line-soft);
    border-radius: 13px;
    background: rgba(255, 255, 255, .025);
}
.page-summary > div:first-child { display: flex; align-items: baseline; gap: 8px; }
.page-summary strong { font-size: 24px; letter-spacing: -.03em; }
.page-summary span { color: var(--muted); font-size: 11px; }
.summary-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .03em;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: rgba(255, 255, 255, .035);
}
.badge.ok { color: #b8ffce; border-color: rgba(101, 255, 154, .28); background: rgba(101, 255, 154, .08); }
.badge.warn { color: #ffe0a3; border-color: rgba(255, 200, 87, .3); background: rgba(255, 200, 87, .08); }
.badge.danger { color: #ffb4c4; border-color: rgba(255, 120, 148, .32); background: rgba(255, 120, 148, .09); }
.badge.info { color: #aeefff; border-color: rgba(53, 230, 255, .28); background: rgba(53, 230, 255, .075); }
.pill {
    display: inline-flex;
    padding: 3px 7px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
}
.pill.ok { color: var(--ok); border-color: rgba(101, 255, 154, .25); }

/* ---------- pager ---------- */
.pager { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pager a, .pager > span:not(.disabled) {
    padding: 7px 11px;
    color: var(--muted);
    font-size: 11px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: rgba(255, 255, 255, .025);
}
.pager a:hover { color: var(--accent); border-color: rgba(53, 230, 255, .4); }
.pager .disabled { padding: 7px 11px; color: var(--faint); border: 1px solid var(--line-soft); border-radius: 8px; opacity: .55; }
.pager > span:not(.disabled) { border-color: transparent; background: transparent; }

/* ---------- filters / forms ---------- */
.filter-bar {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 13px;
    padding: 13px;
    border: 1px solid var(--line-soft);
    border-radius: 13px;
    background: rgba(255, 255, 255, .025);
}
.field { display: flex; flex-direction: column; gap: 5px; min-width: 150px; }
.field > span { color: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.search-field { flex: 1 1 280px; }
.compact-field { min-width: 105px; flex: 0 0 110px; }
.filter-bar .btn { flex: 0 0 auto; }

input[type="text"], input[type="search"], input[type="password"], input[type="number"], select, textarea {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    color: var(--text);
    border: 1px solid #31445f;
    border-radius: 9px;
    outline: none;
    background: #080e19;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
textarea { min-height: 78px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #48617f; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); background: #0a1220; box-shadow: 0 0 0 3px rgba(53, 230, 255, .12); }
input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; opacity: .55; }

.btn, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 9px 14px;
    color: #04121a;
    font-weight: 800;
    border: 1px solid transparent;
    border-radius: 9px;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(53, 230, 255, .13);
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn .icon, button .icon { width: 15px; height: 15px; }
.btn:hover, button:hover { transform: translateY(-1px); background: var(--accent-2); box-shadow: 0 10px 28px rgba(53, 230, 255, .2); }
.btn:disabled, button:disabled {
    cursor: default;
    opacity: 1;
    color: var(--faint);
    background: rgba(255, 255, 255, .055);
    border-color: var(--line-soft);
    transform: none;
    box-shadow: none;
}
.btn:disabled .icon, button:disabled .icon { opacity: .6; }
.btn-primary { color: #04121a; }
.btn-ghost { color: var(--muted); background: rgba(255, 255, 255, .035); border-color: var(--line-soft); box-shadow: none; }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .065); }
.btn-danger { color: #2a0710; background: linear-gradient(180deg, #ff9db1, #ff7894); }
.btn-danger:hover { background: #ff9db1; }

/* ---------- settings ---------- */
.settings-form { display: flex; flex-direction: column; gap: 14px; }
.settings-group { padding: 0; overflow: hidden; }
.group-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, .018);
}
.setting-list { display: flex; flex-direction: column; }
.setting-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 1fr) minmax(150px, .7fr);
    gap: 18px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line-soft);
}
.setting-row:last-child { border-bottom: 0; }
.setting-meta { min-width: 0; }
.setting-name { font-weight: 800; word-break: break-word; }
.setting-desc { margin-top: 3px; color: var(--muted); font-size: 11px; }
.setting-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.setting-control { min-width: 0; }
.setting-control select, .setting-control input, .setting-control textarea { width: 100%; }
.setting-side { display: flex; flex-direction: column; gap: 7px; }
.setting-side .check { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.setting-side .check input { min-height: auto; width: auto; }
.setting-side .flags { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.setting-side .flags input { width: 76px; min-height: 30px; padding: 5px 7px; }
.readonly-value { display: inline-block; padding: 7px 9px; color: var(--muted); font: 12px/1.4 ui-monospace, monospace; border: 1px dashed var(--line); border-radius: 8px; background: rgba(255, 255, 255, .025); }

.save-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 4px;
    padding: 13px 16px;
    border: 1px solid rgba(53, 230, 255, .22);
    border-radius: 13px;
    background: rgba(10, 17, 29, .92);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
}
.save-bar > div { display: flex; flex-direction: column; gap: 2px; }
.save-bar strong { font-size: 12px; }
.save-bar .muted { font-size: 11px; }

.hint { margin: 8px 0 0; color: var(--faint); font-size: 11px; }
.hint-panel { margin-bottom: 14px; }
.hint-panel p { margin: 6px 0 0; }

/* ---------- runtime / metrics ---------- */
.pool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pool-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
.pool-head .mono { color: var(--text); }
.meter { height: 6px; margin-top: 7px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .07); }
.meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--ok)); }
.pool-foot { margin-top: 5px; color: var(--faint); font-size: 10px; }
.runtime-line { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; color: var(--faint); font-size: 10px; border-top: 1px solid var(--line-soft); }
.kv-list { display: grid; gap: 0; margin: 0; }
.kv-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.kv-list > div:last-child { border-bottom: 0; }
.kv-list dt { color: var(--muted); font-size: 11px; }
.kv-list dd { margin: 0; color: var(--text); font: 11px/1.4 ui-monospace, monospace; text-align: right; }

/* ---------- empty state ---------- */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 28px 14px; color: var(--muted); text-align: center; }
.empty-icon { display: grid; width: 38px; height: 38px; place-items: center; margin-bottom: 4px; color: var(--faint); border: 1px solid var(--line-soft); border-radius: 11px; background: rgba(255, 255, 255, .025); }
.empty-icon .icon { width: 18px; height: 18px; }
.empty strong { color: var(--text); font-size: 13px; }
.empty p { max-width: 42ch; margin: 2px 0 6px; font-size: 11px; }
td .empty { padding: 22px 12px; }

/* ---------- users / leaderboard bits ---------- */
.wallet { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font: 11px/1.2 ui-monospace, monospace; }
.coin-dot, .gem-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.coin-dot { background: var(--gold); box-shadow: 0 0 8px rgba(255, 214, 94, .6); }
.gem-dot { margin-left: 4px; background: var(--accent); box-shadow: 0 0 8px rgba(53, 230, 255, .6); }
.copy-btn { margin-left: 4px; padding: 2px 6px; min-height: 0; color: var(--faint); font-size: 9px; background: transparent; border: 1px solid var(--line-soft); border-radius: 5px; box-shadow: none; }
.copy-btn:hover { color: var(--accent); background: rgba(53, 230, 255, .06); transform: none; box-shadow: none; }
.rank-badge { display: inline-grid; min-width: 34px; height: 26px; place-items: center; padding: 0 6px; color: var(--muted); font: 800 11px/1 ui-monospace, monospace; border: 1px solid var(--line-soft); border-radius: 7px; background: rgba(255, 255, 255, .03); }
.rank-badge.rank-1 { color: #241a00; border-color: rgba(255, 214, 94, .6); background: linear-gradient(180deg, #ffe58a, #e6aa19); }
.rank-badge.rank-2 { color: #d8e5f5; border-color: rgba(206, 221, 240, .45); background: rgba(206, 221, 240, .16); }
.rank-badge.rank-3 { color: #ffd0a8; border-color: rgba(255, 170, 110, .4); background: rgba(255, 170, 110, .12); }

/* ---------- login ---------- */
.login-body { background: radial-gradient(900px 600px at 50% -10%, rgba(53, 230, 255, .14), transparent 60%), linear-gradient(145deg, #070b14, #0a1020); }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-box { width: min(100%, 430px); }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; color: var(--accent); font-size: 13px; font-weight: 850; letter-spacing: .14em; }
.login-brand .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
.login-card { padding: 26px; }
.login-card h1 { margin: 0; font-size: 28px; }
.login-card .subtitle { margin: 7px 0 0; font-size: 12px; }
.login-form { display: grid; gap: 8px; margin-top: 20px; }
.login-card label { margin-top: 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.login-card input { width: 100%; }
.login-card .btn { width: 100%; margin-top: 14px; }
.login-foot { margin: 14px 0 0; color: var(--faint); font-size: 10px; text-align: center; }
.login-foot code { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick-actions, .quick-actions.inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-2 { grid-template-columns: 1fr; }
    .setting-row { grid-template-columns: minmax(180px, 1fr) minmax(160px, 1fr); }
    .setting-side { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px; }
}

@media (max-width: 760px) {
    .shell { grid-template-columns: 1fr; }
    .side {
        position: static;
        height: auto;
        padding: 14px;
        border-right: 0;
        border-bottom: 1px solid var(--line-soft);
    }
    .brand { padding-bottom: 12px; }
    .nav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
    .nav a { flex: 0 0 auto; white-space: nowrap; }
    .nav a.active { box-shadow: inset 0 -2px 0 var(--accent); }
    .side-foot { flex-direction: row; align-items: center; justify-content: space-between; margin-top: 8px; padding: 0 6px; }
    main { padding: 20px 14px 32px; }
    .topbar { flex-direction: column; gap: 12px; }
    .topbar-actions { padding-top: 0; }
    .stat-grid, .quick-actions, .quick-actions.inline { grid-template-columns: 1fr; }
    .filter-bar { align-items: stretch; }
    .field, .compact-field, .search-field { flex: 1 1 100%; min-width: 0; }
    .filter-bar .btn { flex: 1 1 auto; }
    .setting-row { grid-template-columns: 1fr; gap: 10px; padding: 13px 14px; }
    .setting-side { grid-column: auto; }
    .save-bar { flex-direction: column; align-items: stretch; }
    .save-bar .btn { width: 100%; }
    .panel { padding: 14px; }
    .group-head { padding: 14px; }
    .table-foot { align-items: flex-start; }
}
