/* Astral Auth panel */
:root {
  --bg: #06060c;
  --bg-2: #0b0b16;
  --panel: rgba(18, 18, 34, 0.72);
  --panel-solid: #11111f;
  --panel-2: rgba(28, 28, 50, 0.6);
  --border: rgba(150, 140, 255, 0.12);
  --border-strong: rgba(150, 140, 255, 0.26);
  --text: #ecebf7;
  --muted: #9d9cbc;
  --dim: #6c6b8c;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --accent-soft: rgba(139, 92, 246, 0.14);
  --grad: linear-gradient(135deg, #a78bfa 0%, #6366f1 45%, #22d3ee 100%);
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.12);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.12);
  --bad: #f87171;
  --bad-soft: rgba(248, 113, 113, 0.12);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.6);
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(99, 102, 241, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(700px 400px at 40% 40%, rgba(139, 92, 246, 0.06), transparent 70%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 140px 80px, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 260px 160px, rgba(196,181,253,.6), transparent 60%),
    radial-gradient(1px 1px at 330px 40px, rgba(255,255,255,.3), transparent 60%),
    radial-gradient(1px 1px at 90px 220px, rgba(165,243,252,.45), transparent 60%);
  background-size: 380px 260px;
}

a { color: #c4b5fd; text-decoration: none; }
a:hover { color: #ddd6fe; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: 22px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ic { flex: none; display: inline-block; vertical-align: middle; }

/* ------------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 14px;
  background: rgba(10, 10, 20, 0.7);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: var(--text); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.brand b { font-weight: 750; margin-left: 3px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--grad); box-shadow: 0 6px 24px -6px rgba(139, 92, 246, 0.7); color: #fff; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); padding: 14px 12px 6px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; transition: background .15s, color .15s; }
.nav-item:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: #fff; box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.25); }
.nav-item.active .ic { color: #c4b5fd; }
.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.me { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #7c3aed, #0891b2); text-transform: uppercase; }
.me-name { font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-role { font-size: 11.5px; color: var(--muted); }
.logout-btn { width: 100%; justify-content: flex-start; margin-top: 4px; }
.me { text-decoration: none; border-radius: 10px; transition: background .15s; }
.me:hover { background: rgba(255,255,255,0.04); }

/* contextual (in-app) sidebar */
.brand-sm { font-size: 15px; padding: 2px 10px 12px; }
.brand-sm .brand-mark { width: 28px; height: 28px; border-radius: 8px; }
.nav-back { display: flex; align-items: center; gap: 8px; padding: 7px 12px; margin: 0 0 6px; border-radius: 9px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.nav-back:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.nav-app { display: flex; align-items: center; gap: 10px; padding: 10px; margin-bottom: 8px; border-radius: 11px; background: rgba(139,92,246,0.08); border: 1px solid var(--border); }
.nav-app-text { min-width: 0; }
.nav-app-name { font-weight: 650; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-app-sub { font-size: 11.5px; color: var(--muted); }
.sidebar-app .nav { overflow-y: auto; }
.sidebar-app .nav-label:first-child { padding-top: 4px; }

.main { min-width: 0; padding: 26px 34px 60px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.topbar .title { display: flex; flex-direction: column; gap: 3px; }
.topbar .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.me-text { min-width: 0; }
.mobilebar { display: none; align-items: center; gap: 8px; margin: -4px 0 16px; }
.mobilebar .brand { padding: 0; font-size: 15px; }
.mobilebar .brand-mark { width: 28px; height: 28px; border-radius: 8px; }
.crumb { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }

/* ------------------------------------------------------------- cards & layout */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-head p { margin-top: 2px; }
.card-body { padding: 20px; }
.callout + .grid, .card + .card, .card + .grid, .grid + .card, .stats + .card, .stats + .grid, .tabs + .card, .card + details, details + .card, .callout + .card { margin-top: 18px; }
.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-3-1 { grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr); align-items: start; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; gap: 20px; }
.spacer { flex: 1; }
.mt { margin-top: 12px; }
.input-sm { max-width: 130px; }

/* charts */
.chart { width: 100%; height: auto; display: block; }
.chart-grid { stroke: var(--border); stroke-width: 1; }
.chart-axis { fill: var(--dim); font-size: 10px; font-family: var(--sans); }
.bar-act { fill: var(--accent); }
.bar-new { fill: var(--accent-2); }
.bar-act:hover, .bar-new:hover { filter: brightness(1.15); }
.chart-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.chart-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.dot-accent { background: var(--accent); }
.dot-cyan { background: var(--accent-2); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat { position: relative; overflow: hidden; padding: 18px 20px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.stat::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, 0.18), transparent 70%); }
.stat-label { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 8px; }
.stat-value { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 12px; color: var(--dim); margin-top: 2px; }

/* ------------------------------------------------------------- tabs */
.app-head { display: flex; align-items: center; gap: 14px; }
.app-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 750; font-size: 18px; color: #fff; background: var(--grad); box-shadow: 0 8px 26px -8px rgba(99, 102, 241, 0.8); text-transform: uppercase; }
.app-icon.sm { width: 32px; height: 32px; font-size: 14px; border-radius: 9px; box-shadow: none; }
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 4px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 18px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 9px; color: var(--muted); white-space: nowrap; font-weight: 500; font-size: 13px; }
.tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.tab.active { color: #fff; background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.3); }

/* ------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-weight: 550; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); padding: 11px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 11px 16px; border-bottom: 1px solid rgba(150, 140, 255, 0.06); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(255, 255, 255, 0.018); }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.table .check { width: 34px; }
.cell-main { font-weight: 550; }
.cell-sub { font-size: 12px; color: var(--dim); }
.key { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; white-space: nowrap; }
.table .cell-main.key { display: inline-block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.table td.nowrap, .table .badge { white-space: nowrap; }
.row > .select, .row > .input:not(.spacer) { width: auto; min-width: 150px; }
.trunc { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; }

.empty { padding: 46px 20px; text-align: center; color: var(--muted); }
.empty .ic { color: var(--dim); margin-bottom: 10px; }
.empty h3 { color: var(--text); margin-bottom: 4px; }

/* ------------------------------------------------------------- badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1.6; white-space: nowrap; background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge.plain::before { display: none; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.accent { background: var(--accent-soft); color: #c4b5fd; }
.badge.cyan { background: rgba(34, 211, 238, 0.12); color: var(--accent-2); }

/* ------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.04); color: var(--text); font: inherit; font-weight: 550; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s, box-shadow .15s; }
.btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 6px 22px -8px rgba(124, 58, 237, 0.9); }
.btn-primary:hover { filter: brightness(1.08); background: var(--grad); color: #fff; }
.btn-danger { border-color: rgba(248, 113, 113, 0.35); color: var(--bad); background: var(--bad-soft); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.2); color: #fecaca; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn-icon { width: 30px; padding: 0; }
.btn-block { width: 100%; }
form.inline { display: inline; }

/* ------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 12.5px; font-weight: 550; color: var(--muted); }
.hint { font-size: 12px; color: var(--dim); }
.input, .select, .textarea {
  width: 100%; height: 38px; padding: 0 12px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: rgba(6, 6, 14, 0.6); color: var(--text);
  font: inherit; font-size: 13.5px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(139, 92, 246, 0.7); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18); }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%239d9cbc' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.select option { background: var(--panel-solid); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; align-items: end; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.search { position: relative; }
.search .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.search .input { padding-left: 34px; min-width: 220px; }

.check-row { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.check-row input[type=checkbox], .table input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 38px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid var(--border-strong); position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .track { background: var(--accent); border-color: transparent; }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.35); }
.setting { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.setting:last-child { border-bottom: 0; }
.setting .text { min-width: 0; }
.setting .text b { display: block; font-weight: 600; }
.setting .hint { display: block; margin-top: 2px; }
.stack > .card + .card { margin-top: 0; }

/* collapsible create forms */
details.drawer { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 18px; }
details.drawer > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 20px; font-weight: 600; }
details.drawer > summary::-webkit-details-marker { display: none; }
details.drawer > summary .chev { margin-left: auto; transition: transform .2s; color: var(--muted); }
details.drawer[open] > summary .chev { transform: rotate(180deg); }
details.drawer[open] > summary { border-bottom: 1px solid var(--border); }
details.drawer > .drawer-body { padding: 18px 20px 20px; }
.plus-dot { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--accent-soft); color: #c4b5fd; }

/* ------------------------------------------------------------- misc */
.flash { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 500; border: 1px solid; animation: slide-in .25s ease-out; }
.flash.ok { background: var(--ok-soft); color: #a7f3d0; border-color: rgba(52, 211, 153, 0.3); }
.flash.bad { background: var(--bad-soft); color: #fecaca; border-color: rgba(248, 113, 113, 0.3); }
.flash .close { margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; opacity: .7; font-size: 18px; line-height: 1; }
@keyframes slide-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.secret { border: 1px solid rgba(34, 211, 238, 0.35); background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(139, 92, 246, 0.08)); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; }
.secret-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.secret-head b { color: #a5f3fc; }
.secret .textarea { min-height: 60px; background: rgba(0, 0, 0, 0.35); }

.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); border: 1px solid rgba(139, 92, 246, 0.25); color: #ddd6fe; }
.callout.warn { background: var(--warn-soft); border-color: rgba(251, 191, 36, 0.3); color: #fde68a; }
.callout.bad { background: var(--bad-soft); border-color: rgba(248, 113, 113, 0.3); color: #fecaca; }

.kv { display: grid; grid-template-columns: 150px 1fr; gap: 0; }
.kv > div { padding: 11px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.kv > div:nth-last-child(-n+2) { border-bottom: 0; }
.kv .k { color: var(--muted); font-size: 13px; }
.kv .v { display: flex; align-items: center; gap: 8px; word-break: break-all; }
.copy-field { display: flex; align-items: center; gap: 6px; min-width: 0; }
.copy-field code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(0, 0, 0, 0.3); padding: 5px 9px; border-radius: 7px; border: 1px solid var(--border); min-width: 0; }

pre.code { margin: 0; padding: 16px 18px; overflow-x: auto; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--border); border-radius: 12px; font-family: var(--mono); font-size: 12.5px; line-height: 1.65; color: #d4d4e8; }
.code-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.code-tabs button { background: none; border: 1px solid transparent; color: var(--muted); padding: 5px 11px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 12.5px; }
.code-tabs button.active { background: var(--accent-soft); color: #fff; border-color: rgba(139, 92, 246, 0.3); }
.code-pane[hidden] { display: none; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12.5px; flex-wrap: wrap; }
.pager .pages { display: flex; gap: 4px; }

.chat { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow-y: auto; padding: 18px 20px; }
.msg { display: flex; gap: 10px; align-items: flex-start; }
.msg .avatar { width: 30px; height: 30px; font-size: 12px; }
.msg-body { flex: 1; min-width: 0; }
.msg-meta { font-size: 12px; color: var(--dim); }
.msg-meta b { color: var(--text); font-weight: 600; margin-right: 6px; }
.msg-text { word-wrap: break-word; }

.qr { background: #fff; padding: 10px; border-radius: 12px; width: 200px; height: 200px; }
.danger-zone { border-color: rgba(248, 113, 113, 0.28); }
.danger-zone .card-head { border-bottom-color: rgba(248, 113, 113, 0.2); }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.list-plain li:last-child { border-bottom: 0; }

/* ------------------------------------------------------------- auth pages */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 400px; padding: 34px 30px 30px; background: var(--panel); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(139, 92, 246, 0.08); backdrop-filter: blur(18px); }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 26px; text-align: center; }
.auth-brand .brand-mark { width: 52px; height: 52px; border-radius: 15px; }
.auth-brand h1 { font-size: 22px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 12px; color: var(--dim); }
.otp-input { text-align: center; letter-spacing: 0.5em; font-family: var(--mono); font-size: 20px; height: 48px; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 50; width: 260px; transform: translateX(-100%); transition: transform .25s ease; }
  .sidebar.open { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, 0.6); }
  .mobilebar { display: flex; }
  .main { padding: 18px 16px 50px; }
  .grid-2, .grid-3, .grid-3-1 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .kv .k { border-bottom: 0 !important; padding-bottom: 0; }
  .search .input { min-width: 0; }
  .topbar { margin-bottom: 16px; }
}
