/* =========================================================
   CYY AI Gateway — design system
   ========================================================= */
:root {
  color-scheme: dark;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
  --radius-xs: 6px;
  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --header-h: 68px;
  --sidebar-w: 256px;
  --container: 1200px;
  --ease: cubic-bezier(.22,1,.36,1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07080d;
  --bg-elev: #0b0d14;
  --surface: #10131d;
  --surface-2: #151927;
  --surface-3: #1b2031;
  --surface-hover: #1c2133;
  --border: rgba(148, 163, 184, .13);
  --border-strong: rgba(148, 163, 184, .24);
  --text: #e9ecf5;
  --text-soft: #c6cbdb;
  --muted: #98a1b7;
  --faint: #6c7489;
  --primary: #7c5cff;
  --primary-soft: rgba(124, 92, 255, .16);
  --primary-2: #a78bfa;
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, .14);
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, .13);
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, .13);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, .13);
  --info: #60a5fa;
  --info-soft: rgba(96, 165, 250, .13);
  --gradient: linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
  --gradient-soft: linear-gradient(135deg, rgba(124,92,255,.18), rgba(34,211,238,.08));
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow: 0 18px 50px rgba(0,0,0,.38);
  --shadow-lg: 0 30px 90px rgba(0,0,0,.5);
  --glow: 0 0 90px rgba(124, 92, 255, .2);
  --grid-line: rgba(148, 163, 184, .09);
  --chart-grid: rgba(148, 163, 184, .12);
  --code-bg: #0a0c14;
  --overlay: rgba(3, 5, 10, .72);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7fb;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2f4fa;
  --surface-3: #e9edf6;
  --surface-hover: #eef1f8;
  --border: rgba(15, 23, 42, .09);
  --border-strong: rgba(15, 23, 42, .18);
  --text: #111827;
  --text-soft: #374151;
  --muted: #667085;
  --faint: #94a0b4;
  --primary: #6d4aff;
  --primary-soft: rgba(109, 74, 255, .1);
  --primary-2: #7c5cff;
  --accent: #0891b2;
  --accent-soft: rgba(8, 145, 178, .1);
  --success: #059669;
  --success-soft: rgba(5, 150, 105, .1);
  --warning: #b45309;
  --warning-soft: rgba(180, 83, 9, .1);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, .09);
  --info: #2563eb;
  --info-soft: rgba(37, 99, 235, .09);
  --gradient: linear-gradient(135deg, #6d4aff 0%, #0891b2 100%);
  --gradient-soft: linear-gradient(135deg, rgba(109,74,255,.1), rgba(8,145,178,.05));
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 18px 45px rgba(15, 23, 42, .09);
  --shadow-lg: 0 30px 80px rgba(15, 23, 42, .12);
  --glow: 0 0 90px rgba(109, 74, 255, .1);
  --grid-line: rgba(15, 23, 42, .06);
  --chart-grid: rgba(15, 23, 42, .08);
  --code-bg: #0f172a;
  --overlay: rgba(15, 23, 42, .45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(124, 92, 255, .18), transparent 60%),
    radial-gradient(800px 520px at 92% 0%, rgba(34, 211, 238, .1), transparent 55%),
    radial-gradient(700px 500px at 50% 110%, rgba(124, 92, 255, .07), transparent 60%);
}
:root[data-theme="light"] body::before {
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(109, 74, 255, .09), transparent 60%),
    radial-gradient(800px 520px at 92% 0%, rgba(8, 145, 178, .07), transparent 55%);
}
#app { position: relative; z-index: 1; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.22; font-weight: 650; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, pre, kbd, .mono { font-family: var(--font-mono); }
::selection { background: rgba(124, 92, 255, .35); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }

/* Scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* ---------- utilities ---------- */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.col { display: flex; flex-direction: column; gap: 10px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.center { text-align: center; }
.right { text-align: right; }
.muted { color: var(--muted); }
.soft { color: var(--text-soft); }
.faint { color: var(--faint); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.bold { font-weight: 650; }
.mono { font-family: var(--font-mono); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.mt-4 { margin-top: 26px; }
.mt-5 { margin-top: 36px; }
.mb-1 { margin-bottom: 6px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 18px; }
.gap-1 { gap: 6px; }
.gap-2 { gap: 12px; }
.gap-3 { gap: 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-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 18px; }

/* ---------- boot ---------- */
.boot-splash {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  color: var(--muted);
}
.boot-mark { display: flex; gap: 6px; }
.boot-mark span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gradient);
  animation: boot-bounce 1.2s infinite ease-in-out;
}
.boot-mark span:nth-child(2) { animation-delay: .15s; }
.boot-mark span:nth-child(3) { animation-delay: .3s; }
.boot-text { font-size: 13px; letter-spacing: .04em; }
@keyframes boot-bounce { 0%,80%,100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-8px); opacity: 1; } }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--gradient);
  display: grid; place-items: center;
  color: #fff; box-shadow: 0 6px 20px rgba(124, 92, 255, .35);
  position: relative; overflow: hidden;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 1px; border-radius: 9px;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.4), transparent 45%);
}
.brand-mark svg { position: relative; z-index: 1; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 15px; }
.brand-sub { font-size: 10px; color: var(--muted); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600; font-size: 13px;
  white-space: nowrap;
  transition: transform .16s var(--ease), background .16s, border-color .16s, box-shadow .16s, opacity .16s;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 8px 24px rgba(124, 92, 255, .28);
}
.btn-primary:hover { filter: brightness(1.06); background: var(--gradient); }
.btn-secondary { background: transparent; border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--muted); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(248,113,113,.25); }
.btn-danger:hover { background: rgba(248,113,113,.2); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12px; border-radius: 8px; }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: 10px; }
.btn-icon.btn-sm { width: 30px; height: 30px; border-radius: 8px; }
.btn-link { background: none; border: none; color: var(--primary-2); padding: 0; height: auto; }
.btn-block { width: 100%; }
.btn .spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.label { font-size: 12px; font-weight: 600; color: var(--text-soft); letter-spacing: .01em; }
.label .req { color: var(--danger); margin-left: 2px; }
.hint { font-size: 11.5px; color: var(--faint); line-height: 1.45; }
.input, .select, .textarea {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  min-height: 40px;
  color: var(--text);
  transition: border-color .16s, box-shadow .16s, background .16s;
  font-size: 13px;
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
  background: var(--surface);
}
.input:disabled, .select:disabled, .textarea:disabled { opacity: .6; cursor: not-allowed; }
.textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-left: 38px; }
.input-group .input-icon { position: absolute; left: 12px; color: var(--faint); pointer-events: none; display: grid; place-items: center; }
.input-group .input-suffix { position: absolute; right: 8px; }
.checkbox { width: 16px; height: 16px; accent-color: var(--primary); border-radius: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-error { color: var(--danger); font-size: 12px; min-height: 18px; }
.switch { position: relative; display: inline-flex; width: 40px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--surface-3); border: 1px solid var(--border); border-radius: 999px; transition: .2s; }
.switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px; border-radius: 50%; background: var(--muted); transition: .2s; }
.switch input:checked + span { background: var(--primary); border-color: var(--primary); }
.switch input:checked + span::before { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px var(--primary-soft); }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 23px; padding: 0 8px; border-radius: 999px;
  background: var(--surface-3); color: var(--muted);
  font-size: 11px; font-weight: 600; letter-spacing: .01em;
  white-space: nowrap; border: 1px solid transparent;
}
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-primary { background: var(--primary-soft); color: var(--primary-2); }
.badge-neutral { background: var(--surface-3); color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border); font-size: 11px; color: var(--muted); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.card-hover { transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.card-hover:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.card-title { font-size: 14px; font-weight: 650; display: flex; align-items: center; gap: 9px; }
.card-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.card-body { padding: 20px; }
.card-body.tight { padding: 14px 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--border); }
.card-glow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px 180px at 10% 0%, rgba(124,92,255,.1), transparent 70%);
}

/* ---------- stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; position: relative; overflow: hidden;
}
.stat::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gradient); opacity: .75; }
.stat-label { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 550; }
.stat-label svg { color: var(--faint); }
.stat-value { font-size: 26px; font-weight: 700; letter-spacing: -.035em; margin-top: 9px; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 3px; }
.stat-foot { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 11.5px; color: var(--faint); }
.stat-delta { font-weight: 600; color: var(--success); }
.stat-delta.down { color: var(--danger); }

/* ---------- tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; padding: 11px 14px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  color: var(--faint); border-bottom: 1px solid var(--border); white-space: nowrap;
  background: rgba(148,163,184,.03);
}
.table td { padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.table .empty-row td { text-align: center; color: var(--muted); padding: 40px 14px; }
.table-compact th, .table-compact td { padding: 9px 12px; }

/* ---------- tabs ---------- */
.tabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab {
  padding: 10px 13px; font-size: 12.5px; color: var(--muted); font-weight: 600;
  border-bottom: 2px solid transparent; white-space: nowrap; background: none; border-top: 0; border-left: 0; border-right: 0;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--primary); }
.segmented { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 3px; gap: 2px; }
.segmented button { height: 28px; padding: 0 10px; border: 0; background: transparent; border-radius: 6px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.segmented button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------- layout / header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  border-bottom: 1px solid var(--border);
}
.site-header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 13px; border-radius: 8px; font-size: 13px; color: var(--muted); font-weight: 550; transition: .15s; }
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.header-divider { width: 1px; height: 22px; background: var(--border); margin: 0 4px; }
.mobile-only { display: none !important; }

.site-footer { border-top: 1px solid var(--border); margin-top: 80px; padding: 44px 0 36px; background: var(--bg-elev); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-col h4 { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.footer-col a { display: block; color: var(--faint); font-size: 13px; padding: 4px 0; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; color: var(--faint); font-size: 12px; }

/* ---------- app shell ---------- */
.app-layout { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.app-sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  border-right: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  padding: 20px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.side-brand { padding: 2px 8px 18px; }
.side-section { padding: 14px 10px 5px; font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: .12em; font-weight: 650; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-link {
  display: flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 10px; border-radius: 9px;
  color: var(--muted); font-size: 13px; font-weight: 550;
  transition: .14s; position: relative;
}
.side-link svg { width: 17px; height: 17px; color: var(--faint); }
.side-link:hover { background: var(--surface-2); color: var(--text); }
.side-link:hover svg { color: var(--text-soft); }
.side-link.active { background: var(--primary-soft); color: var(--text); }
.side-link.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gradient); }
.side-link.active svg { color: var(--primary-2); }
.side-link .badge { margin-left: auto; }
.side-user {
  margin-top: auto; padding: 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.side-user .avatar { width: 32px; height: 32px; font-size: 12px; }
.side-user-meta { min-width: 0; flex: 1; }
.side-user-name { display: block; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-plan { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.25; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-topbar {
  position: sticky; top: 0; z-index: 40;
  height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px);
}
.topbar-title { font-size: 14px; font-weight: 650; display: flex; align-items: center; gap: 10px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.app-content { padding: 28px; width: 100%; max-width: 1440px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-title { font-size: 24px; letter-spacing: -.03em; }
.models-page { padding: 40px 0 24px; }
.page-sub { color: var(--muted); font-size: 13px; margin-top: 5px; max-width: 720px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- user menu ---------- */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 80;
  min-width: 220px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-4px) scale(.98); pointer-events: none;
  transition: .15s var(--ease);
}
.dropdown.open .dropdown-menu { opacity: 1; transform: none; pointer-events: auto; }
.dropdown-head { padding: 10px 10px 9px; border-bottom: 1px solid var(--border); margin-bottom: 5px; }
.dropdown-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 7px; font-size: 12.5px; color: var(--text-soft); text-align: left; }
.dropdown-item:hover { background: var(--surface-2); color: var(--text); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-sep { height: 1px; background: var(--border); margin: 5px 0; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-grid; place-items: center; flex: none;
  background: var(--gradient); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 4px 12px rgba(124,92,255,.25);
}
.avatar-soft { background: var(--surface-3); color: var(--text-soft); box-shadow: none; }

/* ---------- hero / marketing ---------- */
.hero { padding: 82px 0 66px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 30%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 30%, #000 20%, transparent 72%);
  opacity: .55;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.06fr .94fr; gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 11.5px; color: var(--text-soft); font-weight: 550; }
.eyebrow .status-dot { width: 6px; height: 6px; }
.hero-title { font-size: clamp(36px, 4.5vw, 58px); font-weight: 720; letter-spacing: -.045em; line-height: 1.08; margin: 20px 0 20px; max-width: 640px; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 16px; color: var(--muted); max-width: 560px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; color: var(--faint); font-size: 12px; }
.hero-meta span { display: flex; align-items: center; gap: 6px; }
.hero-visual { position: relative; }
.glow-orb { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(124,92,255,.32), transparent 65%); filter: blur(30px); top: -80px; right: -80px; pointer-events: none; }
.code-window { position: relative; background: var(--code-bg); border: 1px solid rgba(148,163,184,.18); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; transform: perspective(1200px) rotateY(-4deg) rotateX(2deg); }
.code-window:hover { transform: perspective(1200px) rotateY(0) rotateX(0); transition: transform .5s var(--ease); }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid rgba(148,163,184,.13); background: rgba(255,255,255,.02); }
.window-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.window-dot:nth-child(2) { background: #febc2e; }
.window-dot:nth-child(3) { background: #28c840; }
.window-title { margin-left: 6px; font-size: 10.5px; color: #8b93a7; font-family: var(--font-mono); }
.window-body { padding: 18px; font-size: 12px; line-height: 1.85; overflow-x: auto; }
.window-body pre { margin: 0; font-family: var(--font-mono); }
.tok-key { color: #c4b5fd; } .tok-str { color: #86efac; } .tok-fn { color: #67e8f9; } .tok-com { color: #64748b; } .tok-num { color: #fbbf24; }

.section { padding: 74px 0; }
.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-kicker { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--primary-2); font-weight: 700; margin-bottom: 10px; }
.section-title { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.035em; }
.section-sub { color: var(--muted); font-size: 14px; margin-top: 12px; line-height: 1.75; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: .2s; }
.feature-card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.feature-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--gradient-soft); border: 1px solid var(--border); display: grid; place-items: center; color: var(--primary-2); margin-bottom: 14px; }
.feature-title { font-size: 14px; font-weight: 650; margin-bottom: 6px; }
.feature-text { color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.logo-chip { padding: 7px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 600; }
.status-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.status-tile { padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.status-tile .row { justify-content: space-between; }
.status-tile-value { font-size: 20px; font-weight: 700; margin-top: 8px; font-variant-numeric: tabular-nums; }

/* ---------- auth ---------- */
.auth-main { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-brand {
  position: relative; overflow: hidden; padding: 54px;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(700px 500px at 15% 10%, rgba(124,92,255,.3), transparent 60%),
    radial-gradient(600px 400px at 90% 100%, rgba(34,211,238,.16), transparent 60%),
    var(--bg-elev);
  border-right: 1px solid var(--border);
}
.auth-brand::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000, transparent 75%);
  pointer-events: none;
}
.auth-brand > * { position: relative; z-index: 1; }
.auth-quote { font-size: 30px; line-height: 1.35; letter-spacing: -.03em; max-width: 460px; font-weight: 650; }
.auth-points { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; color: var(--muted); font-size: 13px; }
.auth-points li { display: flex; align-items: center; gap: 9px; }
.auth-points svg { color: var(--success); flex: none; }
.auth-panel { display: grid; place-items: center; padding: 40px 24px; }
.auth-form-wrap { width: min(100%, 400px); }
.auth-title { font-size: 27px; letter-spacing: -.03em; }
.auth-sub { color: var(--muted); margin-top: 8px; margin-bottom: 26px; font-size: 13px; }
.auth-switch { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 22px; }
.auth-switch a { color: var(--primary-2); font-weight: 600; }
.auth-demo { margin-top: 20px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--border-strong); font-size: 11.5px; color: var(--muted); }

/* ---------- docs ---------- */
.docs-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 48px; align-items: start; }
.docs-side { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; padding-right: 8px; }
.docs-side h4 { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin: 20px 0 8px; }
.docs-side a { display: block; padding: 6px 10px; border-radius: 7px; color: var(--muted); font-size: 12.5px; }
.docs-side a:hover { color: var(--text); background: var(--surface-2); }
.docs-side a.active { color: var(--primary-2); background: var(--primary-soft); font-weight: 600; }
.docs-content { min-width: 0; max-width: 880px; }
.docs-content h1 { font-size: 34px; margin-bottom: 12px; }
.docs-content h2 { font-size: 24px; margin: 44px 0 14px; padding-top: 12px; scroll-margin-top: 90px; }
.docs-content h3 { font-size: 17px; margin: 28px 0 10px; scroll-margin-top: 90px; }
.docs-content p { color: var(--text-soft); line-height: 1.8; margin: 10px 0; }
.docs-content ul, .docs-content ol { color: var(--text-soft); line-height: 1.8; padding-left: 22px; margin: 10px 0; list-style: disc; }
.docs-content li { margin: 4px 0; }
.docs-content table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 14px 0; }
.docs-content th, .docs-content td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.docs-content th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.docs-content code { background: var(--surface-2); border: 1px solid var(--border); padding: 1px 5px; border-radius: 5px; font-size: .9em; }
.docs-content pre code { background: none; border: 0; padding: 0; }
.docs-note { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-soft); font-size: 12.5px; margin: 16px 0; }
.docs-note.warn { border-color: rgba(251,191,36,.28); background: var(--warning-soft); color: var(--text-soft); }
.method { display: inline-flex; align-items: center; height: 21px; padding: 0 7px; border-radius: 5px; font-size: 10px; font-weight: 800; letter-spacing: .04em; font-family: var(--font-mono); }
.method.get { background: var(--success-soft); color: var(--success); }
.method.post { background: var(--info-soft); color: var(--info); }
.endpoint-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.endpoint-row:last-child { border-bottom: 0; }
.endpoint-path { font-family: var(--font-mono); font-size: 12.5px; }
.endpoint-desc { margin-left: auto; color: var(--muted); font-size: 12px; text-align: right; }

/* ---------- code blocks ---------- */
.code-block { position: relative; background: var(--code-bg); border: 1px solid rgba(148,163,184,.16); border-radius: 12px; overflow: hidden; margin: 14px 0; }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid rgba(148,163,184,.12); color: #8b93a7; font-size: 10.5px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.code-copy { border: 0; background: rgba(255,255,255,.05); color: #aeb6c8; font-size: 10.5px; padding: 3px 8px; border-radius: 5px; }
.code-copy:hover { background: rgba(255,255,255,.1); color: #fff; }
.code-block pre { margin: 0; padding: 15px 16px; overflow-x: auto; color: #dbe3f4; font-size: 12px; line-height: 1.7; }

/* ---------- charts ---------- */
.chart-wrap { width: 100%; overflow: hidden; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 7px; height: 7px; border-radius: 2px; }
.donut-wrap { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.donut-center { font-size: 20px; font-weight: 700; fill: var(--text); }
.donut-center-sub { font-size: 9px; fill: var(--muted); }
.bar-row { display: grid; grid-template-columns: 120px minmax(0,1fr) 64px; align-items: center; gap: 12px; padding: 8px 0; }
.bar-label { font-size: 12px; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 7px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: var(--gradient); }
.bar-value { font-size: 11px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.sparkline { display: block; width: 100%; height: 34px; }

/* ---------- table toolbar / pagination ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar .input, .toolbar .select { height: 36px; min-height: 36px; font-size: 12px; width: auto; min-width: 150px; }
.search-box { position: relative; }
.search-box svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search-box .input { padding-left: 34px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.pager { display: flex; align-items: center; gap: 4px; }
.pager button { min-width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 12px; }
.pager button:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.pager button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- modal / toast ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: var(--overlay);
  backdrop-filter: blur(5px);
  display: grid; place-items: center;
  padding: 20px;
  animation: fade-in .16s ease;
}
.modal-card {
  width: min(100%, 560px); max-height: min(88vh, 860px);
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 18px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  animation: modal-in .22s var(--ease);
  overflow: hidden;
}
.modal-card.wide { width: min(100%, 840px); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 15px; }
.modal-title { font-size: 16px; font-weight: 650; }
.modal-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.modal-close { width: 30px; height: 30px; border: 0; background: var(--surface-2); color: var(--muted); border-radius: 8px; display: grid; place-items: center; flex: none; }
.modal-close:hover { color: var(--text); background: var(--surface-3); }
.modal-body { padding: 5px 22px 20px; overflow-y: auto; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 15px 22px; border-top: 1px solid var(--border); background: var(--bg-elev); }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }

.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: 8px; width: min(360px, calc(100vw - 40px)); pointer-events: none; }
.toast-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg); font-size: 12.5px; color: var(--text-soft);
  pointer-events: auto; animation: toast-in .22s var(--ease);
}
.toast-item svg { flex: none; margin-top: 1px; }
.toast-success svg { color: var(--success); }
.toast-error svg { color: var(--danger); }
.toast-info svg { color: var(--info); }
.toast-warning svg { color: var(--warning); }
.toast-item.leaving { animation: toast-out .18s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

/* ---------- states ---------- */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 6px; }
.skeleton-line { height: 12px; margin: 9px 0; }
.skeleton-line.w-60 { width: 60%; } .skeleton-line.w-40 { width: 40%; } .skeleton-line.w-80 { width: 80%; }
.skeleton-card { height: 110px; border-radius: var(--radius); }
.skeleton-circle { width: 34px; height: 34px; border-radius: 50%; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 54px 22px; color: var(--muted); gap: 8px; }
.empty-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--faint); margin-bottom: 4px; }
.empty-title { color: var(--text); font-size: 14px; font-weight: 650; }
.empty-text { font-size: 12px; max-width: 340px; line-height: 1.65; }
.empty .btn { margin-top: 8px; }
.error-state { padding: 28px; border-radius: var(--radius); border: 1px solid rgba(248,113,113,.22); background: var(--danger-soft); color: var(--text-soft); font-size: 13px; }
.loading-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; padding: 12px 0; }
.dot-pulse { display: inline-flex; gap: 3px; }
.dot-pulse i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite; }
.dot-pulse i:nth-child(2) { animation-delay: .15s; } .dot-pulse i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%,60%,100% { opacity: .3; } 30% { opacity: 1; } }

/* ---------- misc components ---------- */
.progress { height: 6px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--gradient); border-radius: inherit; }
.kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--muted); font-size: 10px; font-family: var(--font-mono); }
.divider { height: 1px; background: var(--border); margin: 18px 0; }
.copy-inline { display: inline-flex; align-items: center; gap: 6px; }
.key-display { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); font-family: var(--font-mono); font-size: 12px; overflow: hidden; }
.key-display code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; color: var(--muted); line-height: 1.65; }
.notice svg { flex: none; margin-top: 1px; color: var(--info); }
.notice.warn { background: var(--warning-soft); border-color: rgba(251,191,36,.24); }
.notice.warn svg { color: var(--warning); }
.notice.danger { background: var(--danger-soft); border-color: rgba(248,113,113,.24); }
.notice.danger svg { color: var(--danger); }
.upload-drop { border: 1.5px dashed var(--border-strong); border-radius: 12px; padding: 28px; text-align: center; color: var(--muted); transition: .2s; cursor: pointer; }
.upload-drop:hover, .upload-drop.drag { border-color: var(--primary); background: var(--primary-soft); color: var(--text-soft); }
.upload-drop svg { color: var(--faint); margin-bottom: 6px; }
.thumb { width: 56px; height: 56px; border-radius: 9px; object-fit: cover; border: 1px solid var(--border); background: var(--surface-2); }
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.image-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.image-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.image-card-body { padding: 10px 12px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.switch-row:last-child { border-bottom: 0; }
.switch-row-title { font-size: 12.5px; font-weight: 600; }
.switch-row-desc { font-size: 11px; color: var(--faint); margin-top: 2px; }
.metric-list { display: flex; flex-direction: column; }
.metric-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.metric-item:last-child { border-bottom: 0; }
.metric-value { font-weight: 650; font-variant-numeric: tabular-nums; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hero-inner { gap: 40px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid .footer-col:last-child { display: none; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero { padding: 52px 0 44px; }
  .hero-inner { grid-template-columns: 1fr; gap: 42px; }
  .hero-visual { max-width: 640px; }
  .auth-main { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .docs-layout { grid-template-columns: 1fr; gap: 20px; }
  .docs-side { display: none; }
  .app-layout { grid-template-columns: 1fr; }
  .app-sidebar { position: fixed; left: 0; top: 0; z-index: 120; width: 280px; transform: translateX(-102%); transition: transform .25s var(--ease); box-shadow: var(--shadow-lg); }
  .app-sidebar.open { transform: none; }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 110; background: var(--overlay); backdrop-filter: blur(3px); }
  .mobile-only { display: inline-flex !important; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .status-grid { grid-template-columns: repeat(2, 1fr); }
  .app-content { padding: 20px 18px; }
  .app-topbar { padding: 0 18px; }
  .page-head { flex-direction: column; align-items: stretch; }
}
@media (max-width: 680px) {
  .table-wrap .table { min-width: 620px; }
  .container { width: min(100% - 28px, var(--container)); }
  .hero-title { font-size: 38px; }
  .hero-sub { font-size: 14px; }
  .stat-grid, .grid-2, .grid-3, .grid-4, .feature-grid, .status-grid, .form-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .hide-sm { display: none !important; }
  .bar-row { grid-template-columns: 86px minmax(0,1fr) 56px; }
  .modal-card { max-height: 92vh; }
  .toast-stack { left: 14px; right: 14px; bottom: 14px; width: auto; }
  .page-title { font-size: 21px; }
  .stat-value { font-size: 23px; }
  .auth-panel { padding: 28px 18px; }
  .toolbar { width: 100%; }
  .toolbar .input, .toolbar .select { flex: 1 1 100%; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
