/* ==========================================================================
   HipRobot 前端样式（原生 CSS，无外部依赖）
   深色 SaaS 设计系统 · 主色渐变 #5eead4 → #60a5fa → #a78bfa
   ========================================================================== */

/* ---------- 设计变量（明亮为默认，暗黑通过 data-theme="dark" 覆盖） ---------- */
:root {
  color-scheme: light;
  --bg: #f4f7fc;
  --bg-soft: #eef3fa;
  --card: #ffffff;
  --card-2: #f8fafd;
  --card-3: #eef4fb;
  --border: #e2e8f2;
  --border-soft: #edf2f9;
  --border-strong: #d4deec;
  --text: #101828;
  --text-soft: #344054;
  --muted: #667085;
  --muted-2: #98a2b3;
  --teal: #0d9488;
  --blue: #2563eb;
  --violet: #7c3aed;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #2563eb;
  --grad: linear-gradient(120deg, #5eead4 0%, #60a5fa 52%, #a78bfa 100%);
  --grad-soft: linear-gradient(120deg, rgba(94, 234, 212, .2), rgba(96, 165, 250, .16) 52%, rgba(167, 139, 250, .2));
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 24px 60px -34px rgba(15, 23, 42, .22);
  --shadow-pop: 0 20px 50px -24px rgba(15, 23, 42, .22);
  --sidebar-w: 240px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* 语义表面 */
  --panel: rgba(255, 255, 255, .72);
  --panel-2: rgba(255, 255, 255, .85);
  --panel-3: rgba(255, 255, 255, .94);
  --surface-1: rgba(248, 250, 253, .92);
  --surface-2: #ffffff;
  --surface-3: rgba(248, 250, 253, .85);
  --surface-solid: #ffffff;
  --surface-deep-1: rgba(255, 255, 255, .74);
  --surface-deep-2: rgba(255, 255, 255, .86);
  --input-bg: #f6f8fc;
  --input-bg-focus: #ffffff;
  --topbar-bg: rgba(244, 247, 252, .82);
  --nav-bg: rgba(244, 247, 252, .92);
  --elevated: #ffffff;
  --elevated-2: #ffffff;
  --card-grad-1: #ffffff;
  --card-grad-2: #fbfdff;
  --auth-side-bg: linear-gradient(160deg, #eef4ff 0%, #f8faff 52%, #f3edff 100%);
  --sidebar-bg: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  --overlay-bg: rgba(15, 23, 42, .35);
  --modal-shadow: 0 34px 90px -30px rgba(15, 23, 42, .28);
  --drawer-shadow: -24px 0 70px -30px rgba(15, 23, 42, .25);
  --section-tint: rgba(37, 99, 235, .055);
  --inset: #f6f9fd;
  --inset-soft: #f9fbfe;
  --inset-mid: #f2f6fc;
  --code-bg: #f5f8fd;
  --code-bg-2: #f8fafc;
  --scrollbar: #cbd5e1;
  --scrollbar-hover: #94a3b8;
  --switch-off: #d5dfec;
  --switch-thumb: #ffffff;
  --border-hover: #b9c8db;
  --ink-on-grad: #071018;
  --text-blue: #1d4ed8;
  --text-green: #047857;
  --text-amber: #b45309;
  --text-violet: #6d28d9;
  --text-teal: #0f766e;
  --text-red: #b91c1c;
  --text-pink: #be185d;
  --text-slate: #475467;
  --grid-line: rgba(100, 116, 139, .18);
  --grid-line-soft: rgba(100, 116, 139, .08);
  --glow-1: rgba(96, 165, 250, .1);
  --glow-2: rgba(167, 139, 250, .09);
  --glow-3: rgba(94, 234, 212, .06);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070b14;
  --bg-soft: #0a1020;
  --card: #0f172a;
  --card-2: #111c31;
  --card-3: #16223a;
  --border: #1e293b;
  --border-soft: #182338;
  --border-strong: #2a3a55;
  --text: #e6edf7;
  --text-soft: #c7d2e4;
  --muted: #8b9bb4;
  --muted-2: #607089;
  --teal: #5eead4;
  --blue: #60a5fa;
  --violet: #a78bfa;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --info: #60a5fa;
  --shadow: 0 24px 60px -30px rgba(2, 6, 23, .95);
  --shadow-pop: 0 20px 50px -12px rgba(2, 6, 23, .8);
  --panel: rgba(17, 28, 49, .45);
  --panel-2: rgba(17, 28, 49, .5);
  --panel-3: rgba(17, 28, 49, .6);
  --surface-1: rgba(15, 23, 42, .6);
  --surface-2: #0f172a;
  --surface-3: rgba(15, 23, 42, .55);
  --surface-solid: rgba(15, 23, 42, .96);
  --surface-deep-1: rgba(7, 11, 20, .45);
  --surface-deep-2: rgba(7, 11, 20, .5);
  --input-bg: rgba(7, 11, 20, .55);
  --input-bg-focus: rgba(7, 11, 20, .8);
  --topbar-bg: rgba(7, 11, 20, .78);
  --nav-bg: rgba(7, 11, 20, .72);
  --elevated: #111c31;
  --elevated-2: #0d1526;
  --card-grad-1: rgba(20, 31, 52, .78);
  --card-grad-2: rgba(15, 23, 42, .94);
  --auth-side-bg: linear-gradient(160deg, #0a1020 0%, #070b14 55%, #0b1220 100%);
  --sidebar-bg: linear-gradient(180deg, rgba(13, 21, 38, .98), rgba(9, 14, 26, .99));
  --overlay-bg: rgba(3, 7, 15, .72);
  --modal-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9);
  --drawer-shadow: -30px 0 80px -20px rgba(0, 0, 0, .8);
  --section-tint: rgba(15, 23, 42, .35);
  --inset: rgba(7, 11, 20, .35);
  --inset-soft: rgba(7, 11, 20, .3);
  --inset-mid: rgba(7, 11, 20, .4);
  --code-bg: rgba(7, 11, 20, .65);
  --code-bg-2: rgba(7, 11, 20, .7);
  --scrollbar: #26344b;
  --scrollbar-hover: #34455f;
  --switch-off: #26344b;
  --switch-thumb: #8b9bb4;
  --border-hover: #2e405d;
  --text-blue: #bfdbfe;
  --text-green: #a7f3d0;
  --text-amber: #fde68a;
  --text-violet: #ddd6fe;
  --text-teal: #99f6e4;
  --text-red: #fecaca;
  --text-pink: var(--text-pink);
  --text-slate: #cbd5e1;
  --grid-line: rgba(148, 163, 184, .24);
  --grid-line-soft: rgba(148, 163, 184, .09);
  --glow-1: rgba(96, 165, 250, .13);
  --glow-2: rgba(167, 139, 250, .12);
  --glow-3: rgba(94, 234, 212, .07);
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { 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);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% -8%, var(--glow-1), transparent 62%),
    radial-gradient(760px 460px at 92% 2%, var(--glow-2), transparent 60%),
    radial-gradient(800px 500px at 55% 110%, var(--glow-3), transparent 65%);
}
h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--blue); text-decoration: none; transition: color .16s ease; }
a:hover { color: var(--teal); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
img { max-width: 100%; display: block; }
svg { display: block; }
code, kbd, pre { font-family: var(--mono); }
::selection { background: rgba(96, 165, 250, .32); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* 滚动条 */
* { scrollbar-width: thin; scrollbar-color: var(--scrollbar) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-hover); background-clip: content-box; }

/* ---------- 启动 / 无脚本 ---------- */
.boot-screen, .noscript {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px;
  text-align: center;
}
.boot-logo {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .4px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.boot-bar { width: 180px; height: 4px; border-radius: 99px; background: var(--card-3); overflow: hidden; }
.boot-bar span { display: block; width: 42%; height: 100%; border-radius: inherit; background: var(--grad); animation: boot-slide 1.2s ease-in-out infinite; }
.boot-text { color: var(--muted); font-size: 13px; }
@keyframes boot-slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(280%); } }

/* ---------- 通用工具 ---------- */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 auto; min-width: 0; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; }
.mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; } .mb-24 { margin-bottom: 24px; }
.ml-auto { margin-left: auto; }
.text-muted { color: var(--muted); }
.text-soft { color: var(--text-soft); }
.text-sm { font-size: 12.5px; }
.text-xs { font-size: 11.5px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 19px; }
.text-2xl { font-size: 24px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-info { color: var(--info); }
.text-teal { color: var(--teal); }
.fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; } .fw-800 { font-weight: 800; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.break-all { word-break: break-all; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pre-wrap { white-space: pre-wrap; word-break: break-word; }
.w-full { width: 100%; }
.divider { height: 1px; background: var(--border); border: 0; margin: 18px 0; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted-box { background: var(--inset); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }

/* ---------- 图标 ---------- */
.icon { width: 18px; height: 18px; flex: none; stroke-width: 1.8; }
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 22px; height: 22px; }
.icon-xl { width: 30px; height: 30px; }

/* ---------- 按钮 ---------- */
.btn {
  --btn-bg: rgba(148, 163, 184, .1);
  --btn-fg: var(--text);
  --btn-bd: var(--border-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid var(--btn-bd);
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  transition: transform .12s ease, border-color .16s ease, background .16s ease, color .16s ease, opacity .16s ease;
  user-select: none;
}
.btn:hover { border-color: var(--border-hover); background-color: rgba(148, 163, 184, .16); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[disabled], .btn.is-loading { opacity: .58; cursor: not-allowed; transform: none; }
.btn .icon { width: 16px; height: 16px; }
.btn-primary {
  --btn-fg: #071018;
  --btn-bd: transparent;
  background: var(--grad);
  box-shadow: 0 10px 26px -14px rgba(96, 165, 250, .85);
  font-weight: 700;
}
.btn-primary:hover { background: var(--grad); filter: brightness(1.06); border-color: transparent; }
.btn-outline { --btn-bg: transparent; --btn-bd: #35507a; --btn-fg: var(--text-blue); }
.btn-outline:hover { background: rgba(96, 165, 250, .12); border-color: var(--border-hover); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--muted); }
.btn-ghost:hover { --btn-bg: rgba(148, 163, 184, .12); --btn-fg: var(--text); border-color: transparent; }
.btn-danger { --btn-bg: rgba(248, 113, 113, .1); --btn-bd: rgba(248, 113, 113, .38); --btn-fg: var(--text-red); }
.btn-danger:hover { background: rgba(248, 113, 113, .2); border-color: rgba(248, 113, 113, .6); }
.btn-success { --btn-bg: rgba(52, 211, 153, .12); --btn-bd: rgba(52, 211, 153, .35); --btn-fg: var(--text-green); }
.btn-success:hover { background: rgba(52, 211, 153, .2); }
.btn-warn { --btn-bg: rgba(251, 191, 36, .1); --btn-bd: rgba(251, 191, 36, .34); --btn-fg: var(--text-amber); }
.btn-warn:hover { background: rgba(251, 191, 36, .18); }
.btn-sm { min-height: 30px; padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.btn-sm .icon { width: 14px; height: 14px; }
.btn-lg { min-height: 46px; padding: 11px 22px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; min-width: 36px; height: 36px; padding: 0; border-radius: 10px; }
.btn-icon.btn-sm { width: 30px; min-width: 30px; height: 30px; border-radius: 8px; }
.btn .spinner { width: 15px; height: 15px; border-width: 2px; }

.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(148, 163, 184, .28);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex: none;
}
.spinner.light { border-color: rgba(7, 16, 24, .25); border-top-color: #071018; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .col-span-2 { grid-column: span 2; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field + .field { margin-top: 0; }
.label { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--text-soft); }
.label .req { color: var(--danger); }
.label .label-hint { margin-left: auto; color: var(--muted-2); font-weight: 400; font-size: 11.5px; }
.input, .textarea, .select {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 13.5px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--border-hover); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--input-bg-focus);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, .14);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.65; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238b9bb4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}
.select option { background: var(--card); color: var(--text); }
.input[type="date"], .input[type="datetime-local"] { min-height: 40px; }
.input[type="color"] { padding: 4px; }
.input[type="file"] { padding: 7px 10px; font-size: 12.5px; }
.input-sm { min-height: 34px; padding: 6px 10px; font-size: 12.5px; }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: 10px 0 0 10px; }
.input-group .btn { border-radius: 0 10px 10px 0; border-left: 0; }
.has-error .input, .has-error .textarea, .has-error .select { border-color: rgba(248, 113, 113, .7); box-shadow: 0 0 0 3px rgba(248, 113, 113, .1); }
.field-error { display: none; color: var(--text-red); font-size: 11.5px; line-height: 1.45; }
.has-error .field-error { display: block; }
.hint { color: var(--muted-2); font-size: 11.5px; line-height: 1.55; }
.form-alert {
  display: none;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(248, 113, 113, .34);
  border-radius: 10px;
  background: rgba(248, 113, 113, .09);
  color: var(--text-red);
  font-size: 12.5px;
  line-height: 1.55;
}
.form-alert.show { display: flex; }
.form-alert.success { border-color: rgba(52, 211, 153, .34); background: rgba(52, 211, 153, .09); color: var(--text-green); }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; padding: 4px 0; }
.checkbox-row input, .radio-row input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.checkbox-row span, .radio-row span { font-size: 13px; color: var(--text-soft); }
.radio-row { display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 6px 0; }

/* 开关 */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 99px;
  background: var(--switch-off);
  border: 1px solid var(--border-strong);
  transition: background .2s ease, border-color .2s ease;
  flex: none;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--switch-thumb);
  transition: transform .2s ease, background .2s ease;
}
.switch input:checked + .switch-track { background: linear-gradient(120deg, #2dd4bf, #60a5fa); border-color: transparent; }
.switch input:checked + .switch-track::after { transform: translateX(18px); background: #071018; }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--blue); outline-offset: 2px; }
.switch-text { font-size: 13px; color: var(--text-soft); }

/* 开关行（设置项） */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
}
.switch-row .switch-info { min-width: 0; }
.switch-row .switch-title { font-size: 13px; font-weight: 600; }
.switch-row .switch-desc { color: var(--muted-2); font-size: 11.5px; margin-top: 2px; }

/* 滑杆 */
.range-row { display: flex; align-items: center; gap: 12px; }
.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(94, 234, 212, .55), rgba(96, 165, 250, .55), rgba(167, 139, 250, .55));
  outline: none;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #e6edf7;
  border: 3px solid #60a5fa;
  box-shadow: 0 2px 8px rgba(2, 6, 23, .6);
  cursor: pointer;
}
.range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e6edf7;
  border: 3px solid #60a5fa;
  cursor: pointer;
}
.range-value { min-width: 56px; text-align: right; font-family: var(--mono); font-size: 12.5px; color: var(--teal); }

/* 标签输入 */
.tag-editor { display: flex; flex-wrap: wrap; gap: 7px; padding: 8px; min-height: 42px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--input-bg); }
.tag-editor:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(96, 165, 250, .14); }
.tag-editor input { flex: 1; min-width: 120px; border: 0; background: transparent; outline: none; padding: 3px 4px; font-size: 13px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 7px;
  border: 1px solid rgba(96, 165, 250, .3);
  background: rgba(96, 165, 250, .12);
  color: var(--text-blue);
  font-size: 12px;
  line-height: 1.6;
}
.tag.danger { border-color: rgba(248, 113, 113, .3); background: rgba(248, 113, 113, .1); color: var(--text-red); }
.tag .tag-x { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 50%; color: inherit; opacity: .7; }
.tag .tag-x:hover { opacity: 1; background: rgba(255, 255, 255, .12); }
.tag-empty { color: var(--muted-2); font-size: 12px; padding: 2px 4px; }

/* 分段选择 */
.segmented { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--border); border-radius: 10px; background: var(--input-bg); }
.segmented button { padding: 6px 12px; border-radius: 7px; color: var(--muted); font-size: 12.5px; font-weight: 600; transition: .16s ease; }
.segmented button:hover { color: var(--text); }
.segmented button.active { color: #071018; background: var(--grad); }
.segmented-lg button { padding: 8px 18px; font-size: 13.5px; }

/* ---------- 卡片 / 面板 ---------- */
.card {
  background: linear-gradient(180deg, var(--card-grad-1), var(--card-grad-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--border-soft); flex-wrap: wrap; }
.card-title { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--text); }
.card-title .icon { color: var(--blue); }
.card-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.card-body { padding: 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--border-soft); }
.panel { background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* ---------- 徽章 / 状态 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .25);
  background: rgba(148, 163, 184, .1);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
  white-space: nowrap;
}
.badge .icon { width: 12px; height: 12px; }
.badge-success { border-color: rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .12); color: var(--text-green); }
.badge-warning { border-color: rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .12); color: var(--text-amber); }
.badge-danger { border-color: rgba(248, 113, 113, .3); background: rgba(248, 113, 113, .12); color: var(--text-red); }
.badge-info { border-color: rgba(96, 165, 250, .3); background: rgba(96, 165, 250, .12); color: var(--text-blue); }
.badge-violet { border-color: rgba(167, 139, 250, .3); background: rgba(167, 139, 250, .12); color: var(--text-violet); }
.badge-teal { border-color: rgba(94, 234, 212, .3); background: rgba(94, 234, 212, .1); color: var(--text-teal); }
.badge-soft { border-color: var(--border); background: var(--inset-soft); color: var(--muted); }
.badge-grad { border: 0; background: var(--grad); color: #071018; }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); flex: none; }
.dot.online, .dot.success { background: var(--success); box-shadow: 0 0 0 3px rgba(52, 211, 153, .16); }
.dot.offline { background: #64748b; }
.dot.error { background: var(--danger); box-shadow: 0 0 0 3px rgba(248, 113, 113, .16); }
.dot.warning { background: var(--warning); box-shadow: 0 0 0 3px rgba(251, 191, 36, .16); }
.status-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.status-line { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 头像 ---------- */
.avatar {
  --av-size: 40px;
  width: var(--av-size);
  height: var(--av-size);
  border-radius: 50%;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--grad);
  color: #08111f;
  font-weight: 800;
  font-size: calc(var(--av-size) * .4);
  letter-spacing: -.5px;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 6px 18px -10px rgba(96, 165, 250, .8);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { --av-size: 30px; font-size: 12px; }
.avatar-lg { --av-size: 56px; font-size: 21px; }
.avatar-xl { --av-size: 76px; font-size: 28px; }
.avatar-square { border-radius: 12px; }
.avatar-ring { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px rgba(96, 165, 250, .7); }

/* ---------- 进度条 ---------- */
.progress { height: 7px; border-radius: 99px; background: rgba(148, 163, 184, .14); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width .5s ease; }
.progress.thin { height: 5px; }
.progress.thick { height: 10px; }
.progress.blue > span { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.progress.teal > span { background: linear-gradient(90deg, #14b8a6, #5eead4); }
.progress.violet > span { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.progress.warning > span { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.progress.danger > span { background: linear-gradient(90deg, #ef4444, #f87171); }
.usage-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 7px; }

/* ---------- 表格 ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 13px; }
.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 14px;
  background: var(--elevated);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  text-align: left;
  letter-spacing: .02em;
  white-space: nowrap;
}
.data-table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; color: var(--text-soft); }
.data-table tbody tr { transition: background .14s ease; }
.data-table tbody tr:hover { background: rgba(96, 165, 250, .055); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .cell-main { color: var(--text); font-weight: 600; }
.data-table .cell-sub { color: var(--muted-2); font-size: 11.5px; margin-top: 2px; }
.data-table .cell-actions { text-align: right; white-space: nowrap; }
.data-table .cell-actions .btn + .btn { margin-left: 4px; }
.data-table .cell-nowrap { white-space: nowrap; }
.data-table.compact { min-width: 0; }
.data-table.compact tbody td, .data-table.compact thead th { padding: 8px 10px; }
.table-scroll-hint { display: none; color: var(--muted-2); font-size: 11px; padding: 6px 2px 0; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--border-soft); flex-wrap: wrap; }
.pager-info { color: var(--muted); font-size: 12px; }
.pager-btns { display: flex; align-items: center; gap: 5px; }
.pager-btn { min-width: 30px; height: 30px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-1); color: var(--muted); font-size: 12.5px; display: inline-flex; align-items: center; justify-content: center; transition: .15s ease; }
.pager-btn:hover:not(:disabled) { border-color: var(--border-hover); color: var(--text); }
.pager-btn.active { border-color: transparent; background: var(--grad); color: #071018; font-weight: 700; }
.pager-btn:disabled { opacity: .4; cursor: not-allowed; }
.pager-ellipsis { color: var(--muted-2); padding: 0 3px; }

/* ---------- 空状态 / 骨架屏 ---------- */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 52px 20px; text-align: center; }
.empty-icon { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; border-radius: 16px; border: 1px solid var(--border); background: var(--inset); color: var(--muted); margin-bottom: 2px; }
.empty-icon .icon { width: 24px; height: 24px; }
.empty-title { font-size: 14px; font-weight: 700; color: var(--text-soft); }
.empty-text { color: var(--muted-2); font-size: 12.5px; max-width: 380px; line-height: 1.7; }
.empty .btn { margin-top: 6px; }

.skeleton { position: relative; overflow: hidden; background: var(--card-3); border-radius: 8px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(148, 163, 184, .13), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.sk-line { height: 12px; border-radius: 6px; }
.sk-title { height: 18px; width: 42%; }
.sk-text { height: 11px; }
.sk-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; background: var(--surface-3); display: flex; flex-direction: column; gap: 12px; }
.sk-row { display: flex; align-items: center; gap: 12px; }
.sk-circle { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.sk-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sk-table { display: flex; flex-direction: column; gap: 10px; }
.sk-table-row { height: 42px; }
.skeleton-block { padding: 24px; }

/* ---------- Toast ---------- */
.toast-stack { position: fixed; z-index: 1200; top: 18px; right: 18px; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  box-shadow: var(--shadow-pop);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  pointer-events: auto;
  animation: toast-in .22s ease both;
  backdrop-filter: blur(12px);
}
.toast.out { animation: toast-out .2s ease forwards; }
.toast-icon { flex: none; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.toast-icon .icon { width: 17px; height: 17px; }
.toast.success { border-color: rgba(52, 211, 153, .4); }
.toast.success .toast-icon { color: var(--success); }
.toast.error { border-color: rgba(248, 113, 113, .42); }
.toast.error .toast-icon { color: var(--danger); }
.toast.warning { border-color: rgba(251, 191, 36, .4); }
.toast.warning .toast-icon { color: var(--warning); }
.toast.info .toast-icon { color: var(--blue); }
.toast-body { flex: 1; min-width: 0; padding-top: 1px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* ---------- 模态框 ---------- */
body.no-scroll { overflow: hidden; }
.modal-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; background: var(--overlay-bg); backdrop-filter: blur(5px); animation: fade-in .18s ease; }
.modal {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--elevated), var(--elevated-2));
  box-shadow: var(--modal-shadow);
  animation: modal-in .22s cubic-bezier(.2, .9, .3, 1);
}
.modal-sm { max-width: 420px; }
.modal-lg { max-width: 760px; }
.modal-xl { max-width: 980px; }
.modal-head { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px 14px; border-bottom: 1px solid var(--border-soft); }
.modal-title { flex: 1; font-size: 16px; font-weight: 700; line-height: 1.45; padding-top: 2px; }
.modal-title small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 3px; }
.modal-close { flex: none; width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.modal-close:hover { background: rgba(148, 163, 184, .12); color: var(--text); }
.modal-body { padding: 20px; overflow-y: auto; overscroll-behavior: contain; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border-soft); flex-wrap: wrap; }
.modal-foot .foot-left { margin-right: auto; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-confirm-icon { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.modal-confirm-icon.danger { background: rgba(248, 113, 113, .12); border: 1px solid rgba(248, 113, 113, .3); color: var(--danger); }
.modal-confirm-icon.warning { background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .3); color: var(--warning); }
.modal-confirm-icon.info { background: rgba(96, 165, 250, .12); border: 1px solid rgba(96, 165, 250, .3); color: var(--blue); }
.modal-confirm-icon .icon { width: 22px; height: 22px; }

/* ---------- 抽屉 ---------- */
.drawer-overlay { position: fixed; inset: 0; z-index: 980; }
.drawer-backdrop { position: absolute; inset: 0; background: var(--overlay-bg); backdrop-filter: blur(3px); }
.drawer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(520px, 94vw);
  display: flex;
  flex-direction: column;
  background: var(--elevated-2);
  border-left: 1px solid var(--border-strong);
  box-shadow: var(--drawer-shadow);
  animation: drawer-in .24s cubic-bezier(.2, .9, .3, 1);
}
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border-soft); }
.drawer-title { flex: 1; font-size: 15px; font-weight: 700; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px; }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }

/* ---------- 下拉菜单 ---------- */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 9px);
  right: 0;
  min-width: 200px;
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--elevated);
  box-shadow: var(--shadow-pop);
  animation: drop-in .16s ease;
}
.dropdown-menu.left { right: auto; left: 0; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-5px); } }
.dropdown-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border-radius: 8px; color: var(--text-soft); font-size: 13px; text-align: left; transition: .14s ease; }
.dropdown-item:hover { background: rgba(96, 165, 250, .1); color: var(--text); }
.dropdown-item .icon { color: var(--muted); }
.dropdown-item:hover .icon { color: var(--blue); }
.dropdown-item.danger { color: var(--text-red); }
.dropdown-item.danger:hover { background: rgba(248, 113, 113, .1); }
.dropdown-divider { height: 1px; background: var(--border-soft); margin: 5px 4px; }
.dropdown-head { padding: 8px 10px 6px; color: var(--muted-2); font-size: 11px; font-weight: 600; letter-spacing: .04em; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; flex: none; padding: 10px 14px; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; transition: color .15s ease; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); }
.tab.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--grad); }
.tabs-pill { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-deep-2); overflow-x: auto; max-width: 100%; }
.tabs-pill .tab { padding: 6px 13px; border-radius: 8px; font-size: 12.5px; }
.tabs-pill .tab.active { background: rgba(96, 165, 250, .14); color: var(--text-blue); }
.tabs-pill .tab.active::after { display: none; }

/* ---------- 其他 ---------- */
.kbd { display: inline-block; padding: 1px 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--elevated); color: var(--muted); font-size: 11px; font-family: var(--mono); }
.copyable { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.copyable code { padding: 3px 8px; border-radius: 6px; border: 1px solid var(--border); background: var(--code-bg); color: var(--text-blue); font-size: 12px; overflow-wrap: anywhere; }
.code-block { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--code-bg-2); color: var(--text-slate); font-size: 12px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto; }
.loading-inline { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.load-more { display: flex; justify-content: center; padding: 16px; }
.stat-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel-3); color: var(--muted); font-size: 12px; }
.stat-pill b { color: var(--text); font-weight: 700; }

/* ---------- 页面标题 / 工具栏 ---------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.page-head p { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.page-head-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .input, .toolbar .select { min-height: 36px; padding-top: 6px; padding-bottom: 6px; font-size: 12.5px; }
.toolbar .select { width: auto; min-width: 120px; }
.search-box { position: relative; flex: 1 1 220px; max-width: 320px; min-width: 180px; }
.search-box .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted-2); width: 15px; height: 15px; pointer-events: none; }
.search-box .input { padding-left: 34px; }
.toolbar-spacer { flex: 1; }

/* ==========================================================================
   应用布局：侧边栏 + 顶栏 + 内容区
   ========================================================================== */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed;
  z-index: 90;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  transition: transform .24s cubic-bezier(.2, .9, .3, 1);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; min-height: 68px; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #071018;
  box-shadow: 0 8px 22px -10px rgba(96, 165, 250, .9);
  flex: none;
}
.brand-mark .icon { width: 21px; height: 21px; stroke-width: 2; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -.3px; line-height: 1.2; }
.brand-name small { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .14em; color: var(--muted-2); margin-top: 2px; text-transform: uppercase; }
.side-nav { flex: 1; overflow-y: auto; padding: 6px 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.nav-label { padding: 14px 10px 6px; color: var(--muted-2); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
  border: 1px solid transparent;
}
.nav-item .icon { width: 17px; height: 17px; color: var(--muted-2); transition: color .15s ease; flex: none; }
.nav-item:hover { background: rgba(148, 163, 184, .08); color: var(--text); }
.nav-item:hover .icon { color: var(--text-soft); }
.nav-item.active {
  background: linear-gradient(90deg, rgba(94, 234, 212, .1), rgba(96, 165, 250, .12));
  border-color: rgba(96, 165, 250, .18);
  color: var(--text);
  font-weight: 600;
}
.nav-item.active .icon { color: var(--teal); }
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--grad);
}
.nav-item .nav-count { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border-radius: 99px; background: rgba(248, 113, 113, .16); color: var(--text-red); font-size: 10.5px; font-weight: 700; }
.nav-item .nav-count.blue { background: rgba(96, 165, 250, .16); color: var(--text-blue); }
.side-foot { padding: 10px 12px 14px; border-top: 1px solid var(--border-soft); }
.side-plan { padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: linear-gradient(150deg, rgba(94, 234, 212, .08), rgba(167, 139, 250, .09)); }
.side-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.side-plan-name { font-weight: 700; color: var(--text); }
.side-plan .usage-line { margin: 9px 0 6px; font-size: 11px; }
.side-plan .btn { margin-top: 9px; width: 100%; min-height: 30px; font-size: 12px; }
.side-user { display: none; }
.shell-main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
  position: sticky;
  z-index: 70;
  top: 0;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 26px;
  border-bottom: 1px solid var(--border);
  background: var(--topbar-bg);
  backdrop-filter: blur(16px);
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-title { font-size: 15px; font-weight: 700; line-height: 1.2; }
.topbar-crumb { color: var(--muted-2); font-size: 11px; margin-top: 1px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.menu-btn { display: none; }
.icon-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--muted); transition: .15s ease; position: relative; }
.icon-btn:hover { background: rgba(148, 163, 184, .1); color: var(--text); }
.icon-btn .icon { width: 19px; height: 19px; }
.bell-badge { position: absolute; top: 5px; right: 5px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 99px; background: #f87171; color: #fff; font-size: 9.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg); }
.user-btn { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border-radius: 11px; border: 1px solid transparent; transition: .15s ease; }
.user-btn:hover { background: rgba(148, 163, 184, .08); border-color: var(--border); }
.user-btn-name { font-size: 12.5px; font-weight: 600; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-btn .icon { color: var(--muted-2); width: 14px; height: 14px; }
.demo-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 99px; border: 1px solid rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .08); color: var(--text-amber); font-size: 10.5px; font-weight: 700; }
.demo-chip .dot { width: 5px; height: 5px; background: var(--warning); }
.content { flex: 1; padding: 24px 26px 44px; min-width: 0; max-width: 1400px; width: 100%; margin: 0 auto; }
.content-inner { animation: page-in .25s ease; }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } }

/* 通知下拉 */
.notif-menu { width: 370px; max-width: calc(100vw - 24px); padding: 0; overflow: hidden; }
.notif-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border-soft); }
.notif-head b { font-size: 13px; }
.notif-head .btn { margin-left: auto; }
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-item { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--border-soft); cursor: pointer; transition: background .14s ease; width: 100%; text-align: left; }
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: rgba(96, 165, 250, .07); }
.notif-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 7px; background: var(--blue); flex: none; }
.notif-item.read .notif-dot { background: transparent; }
.notif-item-body { min-width: 0; flex: 1; }
.notif-item-title { font-size: 12.5px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; }
.notif-item-text { color: var(--muted); font-size: 11.5px; line-height: 1.55; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-item-time { color: var(--muted-2); font-size: 10.5px; margin-top: 4px; }
.notif-foot { padding: 8px; border-top: 1px solid var(--border-soft); }

/* 移动端遮罩 */
.sidebar-backdrop { display: none; position: fixed; inset: 0; z-index: 85; background: var(--overlay-bg); backdrop-filter: blur(3px); }
body.nav-open .sidebar-backdrop { display: block; }

/* ==========================================================================
   公开站点：落地页 / 登录 / 注册
   ========================================================================== */
.public-page { min-height: 100vh; display: flex; flex-direction: column; }
.public-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 clamp(18px, 5vw, 64px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(16px);
}
.public-brand { display: flex; align-items: center; gap: 9px; color: var(--text); }
.public-brand .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
.public-brand-name { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.public-links { display: flex; align-items: center; gap: 22px; margin-left: 18px; }
.public-links a { color: var(--muted); font-size: 13px; font-weight: 500; }
.public-links a:hover { color: var(--text); }
.public-nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.public-mobile-toggle { display: none; margin-left: auto; }
.public-mobile-menu { display: none; padding: 8px 18px 16px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.public-mobile-menu.open { display: flex; flex-direction: column; gap: 4px; }
.public-mobile-menu a { padding: 9px 10px; border-radius: 8px; color: var(--text-soft); font-size: 13px; }
.public-mobile-menu a:hover { background: rgba(148, 163, 184, .08); }
.public-main { flex: 1; }
.public-footer { border-top: 1px solid var(--border); padding: 34px clamp(18px, 5vw, 64px) 26px; color: var(--muted-2); font-size: 12px; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 12px; }
.footer-copy { line-height: 1.8; }

/* 落地页通用容器 */
.landing-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(18px, 5vw, 40px); }
.landing-section { padding: clamp(56px, 8vw, 92px) 0; scroll-margin-top: 78px; }
#features, #pricing, #faq { scroll-margin-top: 78px; }
.section-head { max-width: 640px; margin: 0 auto 42px; text-align: center; }
.section-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; border: 1px solid rgba(96, 165, 250, .26); background: rgba(96, 165, 250, .08); color: var(--text-blue); font-size: 11px; font-weight: 700; letter-spacing: .04em; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 14px; line-height: 1.8; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(46px, 7vw, 84px); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(680px 380px at 18% 6%, rgba(94, 234, 212, .12), transparent 70%), radial-gradient(620px 400px at 88% 14%, rgba(167, 139, 250, .14), transparent 72%); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(30px, 5vw, 64px); }
.hero-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 7px; border: 1px solid var(--border-strong); border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 11.5px; margin-bottom: 20px; }
.hero-badge .dot { width: 6px; height: 6px; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 900; line-height: 1.14; letter-spacing: -.035em; }
.hero h1 .grad-text { display: inline-block; }
.hero-sub { color: var(--muted); font-size: clamp(14px, 1.5vw, 16px); line-height: 1.85; margin-top: 20px; max-width: 520px; }
.hero-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; color: var(--muted-2); font-size: 11.5px; }
.hero-note span { display: inline-flex; align-items: center; gap: 5px; }
.hero-note .icon { color: var(--success); width: 13px; height: 13px; }
.hero-stats { display: flex; gap: clamp(20px, 3vw, 38px); margin-top: 34px; flex-wrap: wrap; }
.hero-stat-value { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.hero-stat-label { color: var(--muted-2); font-size: 11px; margin-top: 1px; }
.hero-visual { position: relative; }
.hero-glow { position: absolute; inset: 12% -8% -6% 4%; background: var(--grad); filter: blur(70px); opacity: .13; border-radius: 50%; pointer-events: none; }
.preview-window {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: linear-gradient(165deg, var(--elevated), var(--surface-1));
  box-shadow: var(--modal-shadow);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
}
.preview-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--border-soft); background: var(--surface-deep-1); }
.preview-bar i { width: 8px; height: 8px; border-radius: 50%; background: #334155; display: block; }
.preview-bar i:nth-child(1) { background: #f87171; } .preview-bar i:nth-child(2) { background: #fbbf24; } .preview-bar i:nth-child(3) { background: #34d399; }
.preview-bar span { margin-left: 6px; color: var(--muted-2); font-size: 10.5px; font-family: var(--mono); }
.preview-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.preview-row { display: flex; align-items: center; gap: 9px; }
.preview-kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.preview-kpi { padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-1); }
.preview-kpi small { display: block; color: var(--muted-2); font-size: 9.5px; }
.preview-kpi b { font-size: 17px; letter-spacing: -.02em; }
.preview-kpi .up { color: var(--success); font-size: 9.5px; font-weight: 700; margin-left: 4px; }
.preview-chart { height: 96px; display: flex; align-items: flex-end; gap: 6px; padding: 10px 10px 8px; border: 1px solid var(--border); border-radius: 10px; background: linear-gradient(180deg, rgba(96, 165, 250, .06), transparent); }
.preview-chart i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #60a5fa, rgba(96, 165, 250, .24)); min-height: 8%; }
.preview-chart i:nth-child(3n) { background: linear-gradient(180deg, #5eead4, rgba(94, 234, 212, .2)); }
.preview-chat { display: flex; flex-direction: column; gap: 7px; }
.preview-bubble { max-width: 84%; padding: 7px 10px; border-radius: 10px; font-size: 10.5px; line-height: 1.5; }
.preview-bubble.user { align-self: flex-end; background: rgba(96, 165, 250, .2); border: 1px solid rgba(96, 165, 250, .28); border-bottom-right-radius: 3px; }
.preview-bubble.bot { align-self: flex-start; background: var(--inset); border: 1px solid var(--border); border-bottom-left-radius: 3px; color: var(--text-soft); }
.preview-badge { position: absolute; right: -8px; bottom: 22px; padding: 8px 12px; border-radius: 11px; border: 1px solid rgba(52, 211, 153, .35); background: var(--elevated); color: var(--text-green); font-size: 10.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; box-shadow: var(--shadow-pop); }
.preview-badge .dot { background: var(--success); }

/* 功能 */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature {
  position: relative;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--card-grad-1), var(--card-grad-2));
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  overflow: hidden;
}
.feature:hover { transform: translateY(-3px); border-color: var(--border-hover); }
.feature-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--text-teal); background: rgba(94, 234, 212, .09); border: 1px solid rgba(94, 234, 212, .2); margin-bottom: 14px; }
.feature:nth-child(2) .feature-icon { color: var(--text-blue); background: rgba(96, 165, 250, .1); border-color: rgba(96, 165, 250, .22); }
.feature:nth-child(3) .feature-icon { color: var(--text-violet); background: rgba(167, 139, 250, .1); border-color: rgba(167, 139, 250, .22); }
.feature:nth-child(4) .feature-icon { color: var(--text-amber); background: rgba(251, 191, 36, .08); border-color: rgba(251, 191, 36, .2); }
.feature:nth-child(5) .feature-icon { color: var(--text-green); background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .2); }
.feature:nth-child(6) .feature-icon { color: var(--text-pink); background: rgba(244, 114, 182, .08); border-color: rgba(244, 114, 182, .2); }
.feature h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 7px; }
.feature p { color: var(--muted); font-size: 12.5px; line-height: 1.75; }
.feature .feature-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 13px; }

/* 步骤 */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-1); }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 16px; right: 18px; font-size: 28px; font-weight: 900; color: rgba(148, 163, 184, .13); letter-spacing: -.04em; }
.step-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(96, 165, 250, .1); color: var(--text-blue); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.step h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 12.5px; line-height: 1.7; }

/* 价格 */
.price-toggle { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 0 auto 34px; }
.price-save { margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .3); color: var(--text-green); font-size: 10.5px; font-weight: 700; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(175deg, var(--card-grad-1), var(--card-grad-2));
  transition: transform .2s ease, border-color .2s ease;
}
.price-card:hover { transform: translateY(-3px); border-color: var(--border-hover); }
.price-card.featured { border-color: rgba(96, 165, 250, .5); box-shadow: 0 24px 70px -34px rgba(96, 165, 250, .7); }
.price-card.featured::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .55; }
.price-flag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 3px 11px; border-radius: 99px; background: var(--grad); color: #071018; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.price-name { font-size: 15px; font-weight: 700; }
.price-desc { color: var(--muted-2); font-size: 11.5px; margin-top: 4px; }
.price-amount { display: flex; align-items: flex-end; gap: 4px; margin: 20px 0 4px; min-height: 48px; }
.price-currency { font-size: 17px; font-weight: 700; color: var(--text-soft); margin-bottom: 6px; }
.price-value { font-size: 42px; font-weight: 900; letter-spacing: -.045em; line-height: 1; }
.price-unit { color: var(--muted-2); font-size: 12px; margin-bottom: 6px; }
.price-origin { color: var(--muted-2); font-size: 11.5px; text-decoration: line-through; margin-left: 4px; }
.price-meta { color: var(--muted); font-size: 11.5px; padding-bottom: 18px; border-bottom: 1px solid var(--border-soft); margin-bottom: 18px; }
.price-features { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-features li { display: flex; align-items: flex-start; gap: 8px; color: var(--text-soft); font-size: 12.5px; line-height: 1.55; }
.price-features .icon { width: 15px; height: 15px; color: var(--success); margin-top: 2px; flex: none; }
.price-card .btn { margin-top: 22px; width: 100%; }
.price-note { text-align: center; color: var(--muted-2); font-size: 11.5px; margin-top: 22px; }
.payment-icons { display: flex; justify-content: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* 公告条 */
.notice-strip { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid rgba(96, 165, 250, .22); border-radius: 11px; background: rgba(96, 165, 250, .07); color: var(--text-blue); font-size: 12.5px; margin-bottom: 22px; }
.notice-strip .icon { color: var(--blue); flex: none; }
.notice-strip a { margin-left: auto; white-space: nowrap; font-size: 12px; }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; background: var(--surface-1); overflow: hidden; }
.faq-item summary { display: flex; align-items: center; gap: 10px; padding: 16px 18px; cursor: pointer; font-size: 13.5px; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 20px; font-weight: 300; line-height: 1; transition: transform .2s ease; }
.faq-item[open] summary::after { content: "−"; color: var(--blue); }
.faq-item p { padding: 0 18px 16px; color: var(--muted); font-size: 12.5px; line-height: 1.85; }

/* 登录 / 注册 */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 48px);
  border-right: 1px solid var(--border);
  background:
    radial-gradient(700px 500px at 12% 8%, rgba(94, 234, 212, .12), transparent 65%),
    radial-gradient(650px 520px at 84% 90%, rgba(167, 139, 250, .14), transparent 68%),
    var(--auth-side-bg);
  overflow: hidden;
}
.auth-side::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(148, 163, 184, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .045) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(circle at 40% 40%, #000, transparent 75%); pointer-events: none; }
.auth-side > * { position: relative; z-index: 1; }
.auth-quote { max-width: 440px; }
.auth-quote h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 900; letter-spacing: -.03em; line-height: 1.25; }
.auth-quote p { color: var(--muted); font-size: 13.5px; line-height: 1.85; margin-top: 16px; }
.auth-points { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.auth-point { display: flex; align-items: flex-start; gap: 10px; color: var(--text-soft); font-size: 12.5px; }
.auth-point .auth-point-ic { width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: rgba(96, 165, 250, .1); border: 1px solid rgba(96, 165, 250, .2); color: var(--text-blue); flex: none; }
.auth-point .auth-point-ic .icon { width: 15px; height: 15px; }
.auth-side-foot { color: var(--muted-2); font-size: 11px; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 22px; }
.auth-card { width: min(420px, 100%); }
.auth-card-wide { width: min(460px, 100%); }
.auth-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; margin-bottom: 26px; }
.auth-back:hover { color: var(--text); }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.auth-brand .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
.auth-title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.auth-sub { color: var(--muted); font-size: 12.5px; margin-top: 6px; margin-bottom: 24px; }
.auth-form { display: flex; flex-direction: column; gap: 15px; }
.auth-form .btn-lg { margin-top: 4px; }
.auth-alt { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 20px; }
.auth-alt a { font-weight: 600; }
.auth-foot { color: var(--muted-2); font-size: 11px; text-align: center; margin-top: 26px; line-height: 1.7; }
.demo-hint { display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px; border: 1px dashed rgba(251, 191, 36, .3); border-radius: 10px; background: rgba(251, 191, 36, .055); color: var(--text-amber); font-size: 11.5px; line-height: 1.6; }
.demo-hint .icon { flex: none; color: var(--warning); margin-top: 1px; }
.demo-hint code { color: var(--text-amber); background: rgba(251, 191, 36, .12); padding: 1px 5px; border-radius: 4px; }
.auth-step { display: flex; flex-direction: column; gap: 15px; }
.auth-step-icon { width: 46px; height: 46px; border-radius: 14px; background: rgba(96, 165, 250, .1); border: 1px solid rgba(96, 165, 250, .24); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.otp-input { letter-spacing: .5em; font-family: var(--mono); font-size: 20px; text-align: center; font-weight: 700; padding-left: .5em; }
.auth-terms { display: flex; align-items: flex-start; gap: 8px; color: var(--muted-2); font-size: 11px; line-height: 1.6; }
.auth-terms input { margin-top: 2px; accent-color: var(--blue); }

/* ==========================================================================
   控制台
   ========================================================================== */
/* 欢迎区 */
.welcome { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.welcome h1 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.welcome p { color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.welcome-actions { display: flex; gap: 9px; flex-wrap: wrap; }

/* KPI 卡片 */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi {
  position: relative;
  overflow: hidden;
  padding: 16px 17px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--card-grad-1), var(--card-grad-2));
}
.kpi::after { content: ""; position: absolute; right: -22px; top: -26px; width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle, rgba(96, 165, 250, .14), transparent 70%); pointer-events: none; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi-label { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.kpi-icon { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: rgba(96, 165, 250, .1); border: 1px solid rgba(96, 165, 250, .18); color: var(--text-blue); }
.kpi-icon .icon { width: 15px; height: 15px; }
.kpi:nth-child(2) .kpi-icon { background: rgba(94, 234, 212, .09); border-color: rgba(94, 234, 212, .18); color: var(--text-teal); }
.kpi:nth-child(3) .kpi-icon { background: rgba(167, 139, 250, .1); border-color: rgba(167, 139, 250, .2); color: var(--text-violet); }
.kpi:nth-child(4) .kpi-icon { background: rgba(251, 191, 36, .08); border-color: rgba(251, 191, 36, .2); color: var(--text-amber); }
.kpi-value { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; font-size: 27px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.kpi-value .unit { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.kpi-foot { display: flex; align-items: center; gap: 6px; color: var(--muted-2); font-size: 11px; margin-top: 9px; flex-wrap: wrap; }
.kpi-foot b { color: var(--text-soft); font-weight: 600; }
.kpi-foot .up { color: var(--success); }
.kpi-link { color: var(--blue) !important; margin-left: auto; font-size: 11px; display: inline-flex; align-items: center; gap: 2px; }
.kpi-link .icon { width: 12px; height: 12px; }

/* 仪表盘布局 */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.dash-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.chart-card .card-body { padding-top: 12px; }
.chart-wrap { position: relative; width: 100%; }
.chart-wrap canvas { width: 100%; height: 236px; display: block; }
.chart-wrap.chart-sm canvas { height: 190px; }
.chart-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 11.5px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 8px; height: 8px; border-radius: 3px; }
.chart-tooltip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--elevated);
  box-shadow: var(--shadow-pop);
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-soft);
  opacity: 0;
  transform: translate(-50%, -100%);
  transition: opacity .12s ease;
  white-space: nowrap;
}
.chart-tooltip.show { opacity: 1; }
.chart-tooltip b { color: var(--text); }
.chart-summary { display: flex; gap: 22px; flex-wrap: wrap; }
.chart-summary-item small { display: block; color: var(--muted-2); font-size: 10.5px; }
.chart-summary-item b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.chart-summary-item b .unit { font-size: 11px; color: var(--muted); font-weight: 600; margin-left: 2px; }

/* 最近对话 */
.recent-list { display: flex; flex-direction: column; }
.recent-item { display: flex; gap: 11px; padding: 13px 20px; width: 100%; text-align: left; border-bottom: 1px solid var(--border-soft); transition: background .14s ease; }
.recent-item:last-child { border-bottom: 0; }
.recent-item:hover { background: rgba(96, 165, 250, .05); }
.recent-body { min-width: 0; flex: 1; }
.recent-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.recent-name { font-size: 12.5px; font-weight: 600; }
.recent-time { margin-left: auto; color: var(--muted-2); font-size: 10.5px; white-space: nowrap; }
.recent-msg { color: var(--muted); font-size: 12px; margin-top: 4px; line-height: 1.55; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.recent-msg b { color: var(--text-soft); font-weight: 500; }
.recent-reply { color: var(--muted-2); font-size: 11.5px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 快捷入口 */
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 14px; }
.quick { display: flex; align-items: center; gap: 9px; padding: 10px 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2); color: var(--text-soft); font-size: 12px; transition: .16s ease; }
.quick:hover { border-color: rgba(96, 165, 250, .4); background: rgba(96, 165, 250, .07); color: var(--text); transform: translateY(-1px); }
.quick .icon { color: var(--blue); width: 16px; height: 16px; }
.quick-arrow { margin-left: auto; color: var(--muted-2); width: 13px; height: 13px; }

/* 套餐卡 */
.plan-card-mini { padding: 18px; border-radius: var(--radius); border: 1px solid rgba(96, 165, 250, .24); background: linear-gradient(155deg, rgba(96, 165, 250, .1), rgba(167, 139, 250, .07) 55%, var(--surface-1)); position: relative; overflow: hidden; }
.plan-card-mini::before { content: ""; position: absolute; width: 140px; height: 140px; right: -50px; top: -60px; border-radius: 50%; background: radial-gradient(circle, rgba(96, 165, 250, .25), transparent 70%); }
.plan-card-mini .plan-name { display: flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 800; }
.plan-card-mini .plan-exp { color: var(--muted); font-size: 11px; margin-top: 4px; }
.plan-card-mini .usage-line { margin-top: 14px; }
.plan-card-mini .btn { margin-top: 12px; }
.plan-meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.plan-meta { padding: 7px 9px; border-radius: 8px; background: var(--inset); border: 1px solid var(--border-soft); }
.plan-meta small { display: block; color: var(--muted-2); font-size: 9.5px; }
.plan-meta b { font-size: 12px; font-weight: 700; }

/* 公告卡 */
.announcement-item { padding: 12px 20px; border-bottom: 1px solid var(--border-soft); }
.announcement-item:last-child { border-bottom: 0; }
.announcement-title { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; }
.announcement-title .badge { font-size: 9.5px; }
.announcement-text { color: var(--muted); font-size: 11.5px; line-height: 1.65; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.announcement-time { color: var(--muted-2); font-size: 10px; margin-top: 4px; }

/* 系统状态条 */
.bridge-status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.bridge-status .dot { width: 7px; height: 7px; }

/* 账号列表 */
.account-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.account-card { display: flex; flex-direction: column; padding: 17px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(170deg, var(--card-grad-1), var(--card-grad-2)); transition: border-color .18s ease, transform .18s ease; }
.account-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.account-head { display: flex; align-items: center; gap: 11px; }
.account-id-wrap { min-width: 0; flex: 1; }
.account-name { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; min-width: 0; }
.account-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-uid { color: var(--muted-2); font-size: 11px; margin-top: 2px; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; }
.account-rem { color: var(--muted); font-size: 11.5px; margin-top: 8px; }
.account-stats { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.account-stats .stat-pill { padding: 3px 8px; font-size: 11px; }
.account-error { margin-top: 10px; padding: 7px 9px; border-radius: 8px; border: 1px solid rgba(248, 113, 113, .26); background: rgba(248, 113, 113, .07); color: var(--text-red); font-size: 11px; line-height: 1.5; }
.account-actions { display: flex; align-items: center; gap: 5px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-soft); flex-wrap: wrap; }
.account-actions .dropdown { margin-left: auto; }
.account-actions .btn-sm { padding: 4px 8px; font-size: 11.5px; }

/* 筛选栏 / 数量条 */
.filter-bar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); margin-bottom: 16px; }
.filter-bar .input, .filter-bar .select { min-height: 34px; padding-top: 5px; padding-bottom: 5px; font-size: 12.5px; }
.filter-bar .select { width: auto; min-width: 110px; }
.filter-bar .search-box { max-width: 260px; }
.counts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.count-card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 11px; background: var(--panel); }
.count-card .dot { width: 8px; height: 8px; }
.count-card b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.count-card small { display: block; color: var(--muted-2); font-size: 10.5px; margin-top: -2px; }

/* 机器人卡片 */
.robot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
.robot-card { display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(170deg, var(--card-grad-1), var(--card-grad-2)); transition: .18s ease; }
.robot-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.robot-head { display: flex; align-items: flex-start; gap: 11px; }
.robot-emoji { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 23px; background: linear-gradient(150deg, rgba(96, 165, 250, .16), rgba(167, 139, 250, .14)); border: 1px solid var(--border-strong); flex: none; }
.robot-title { min-width: 0; flex: 1; }
.robot-title h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.robot-title h3 a { color: var(--text); }
.robot-title h3 a:hover { color: var(--teal); }
.robot-desc { color: var(--muted); font-size: 11.5px; line-height: 1.6; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 18px; }
.robot-persona { display: flex; align-items: center; gap: 6px; margin-top: 11px; color: var(--muted); font-size: 11.5px; }
.robot-persona .badge { font-size: 10px; }
.robot-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; padding: 10px; border: 1px solid var(--border-soft); border-radius: 10px; background: var(--inset); }
.robot-metric small { display: block; color: var(--muted-2); font-size: 9.5px; }
.robot-metric b { font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.robot-accounts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; min-height: 24px; }
.robot-account-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px 2px 3px; border-radius: 99px; border: 1px solid var(--border); background: var(--inset-soft); font-size: 10.5px; color: var(--muted); }
.robot-account-chip .avatar { --av-size: 17px; font-size: 8px; border: 0; box-shadow: none; }
.robot-actions { display: flex; align-items: center; gap: 5px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-soft); }

/* 性格库 */
.persona-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 13px; }
.persona-card { position: relative; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(170deg, var(--card-grad-1), var(--card-grad-2)); cursor: pointer; transition: .18s ease; }
.persona-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.persona-card.selected { border-color: rgba(96, 165, 250, .65); box-shadow: 0 0 0 3px rgba(96, 165, 250, .12); }
.persona-top { display: flex; align-items: flex-start; gap: 10px; }
.emoji-circle { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 21px; background: var(--card-3); border: 1px solid var(--border-strong); flex: none; }
.persona-name { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.persona-desc { color: var(--muted); font-size: 11.5px; line-height: 1.6; margin-top: 9px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 18px; }
.persona-meta { display: flex; align-items: center; gap: 6px; margin-top: 11px; flex-wrap: wrap; color: var(--muted-2); font-size: 10.5px; }
.persona-meta .badge { font-size: 9.5px; padding: 1px 6px; }
.persona-use { margin-left: auto; color: var(--muted-2); font-size: 10px; }
.persona-actions { display: flex; gap: 5px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
.persona-picker-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 260px; overflow-y: auto; padding: 2px; }
.persona-option { display: flex; align-items: flex-start; gap: 9px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); cursor: pointer; transition: .14s ease; text-align: left; }
.persona-option:hover { border-color: var(--border-hover); }
.persona-option.selected { border-color: rgba(96, 165, 250, .65); background: rgba(96, 165, 250, .08); }
.persona-option .emoji-circle { width: 32px; height: 32px; font-size: 17px; border-radius: 9px; }
.persona-option-name { font-size: 12px; font-weight: 600; line-height: 1.4; }
.persona-option-desc { color: var(--muted-2); font-size: 10.5px; line-height: 1.5; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.selected-persona { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(96, 165, 250, .3); border-radius: 10px; background: rgba(96, 165, 250, .06); }
.selected-persona .emoji-circle { width: 34px; height: 34px; font-size: 18px; }
.selected-persona-name { font-size: 12.5px; font-weight: 600; }
.selected-persona-desc { color: var(--muted-2); font-size: 10.5px; }

/* 机器人详情 */
.detail-head { display: flex; align-items: flex-start; gap: 14px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(160deg, var(--card-grad-1), var(--card-grad-2)); margin-bottom: 16px; flex-wrap: wrap; }
.detail-head .robot-emoji { width: 58px; height: 58px; font-size: 30px; border-radius: 16px; }
.detail-head-main { min-width: 0; flex: 1; }
.detail-head-main h1 { font-size: 21px; font-weight: 800; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.detail-head-main p { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.detail-head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.detail-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.detail-stat { padding: 12px 14px; border: 1px solid var(--border); border-radius: 11px; background: var(--panel); }
.detail-stat small { color: var(--muted-2); font-size: 10px; display: block; }
.detail-stat b { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.detail-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.peer-list { display: flex; flex-direction: column; gap: 2px; }
.peer-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; }
.peer-item:hover { background: rgba(148, 163, 184, .06); }
.peer-name { font-size: 12px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peer-meta { color: var(--muted-2); font-size: 10px; margin-top: 1px; }
.peer-count { margin-left: auto; font-size: 11px; color: var(--muted); }
.bind-list { display: flex; flex-direction: column; gap: 8px; }
.bind-item { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
.bind-info { min-width: 0; flex: 1; }
.bind-name { font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.bind-sub { color: var(--muted-2); font-size: 10.5px; margin-top: 1px; }
.bind-actions { display: flex; gap: 4px; flex-wrap: wrap; }

/* 测试对话 */
.chat-test { display: flex; flex-direction: column; }
.chat-log { max-height: 330px; min-height: 150px; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--inset-soft); }
.bubble-row { display: flex; gap: 8px; align-items: flex-end; }
.bubble-row.user { flex-direction: row-reverse; }
.bubble { max-width: 78%; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.bubble.bot { background: var(--inset); border: 1px solid var(--border); border-bottom-left-radius: 4px; color: var(--text-soft); }
.bubble.user { background: linear-gradient(135deg, rgba(96, 165, 250, .26), rgba(167, 139, 250, .2)); border: 1px solid rgba(96, 165, 250, .3); border-bottom-right-radius: 4px; color: var(--text); }
.bubble-meta { color: var(--muted-2); font-size: 9.5px; margin-top: 4px; }
.chat-input-row { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border-soft); }
.chat-input-row .input { flex: 1; }
.typing { display: inline-flex; gap: 3px; align-items: center; height: 16px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* 对话记录 */
.chat-filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); margin-bottom: 16px; }
.chat-filters .field { gap: 4px; }
.chat-filters .label { font-size: 10.5px; }
.chat-filters .input, .chat-filters .select { min-height: 34px; padding: 5px 9px; font-size: 12px; }
.chat-filters .field > .flex { min-width: 0; }
.chat-filters input[type="date"] { min-width: 0; width: 100%; padding-left: 5px; padding-right: 3px; }
.chat-filters .filter-actions { display: flex; align-items: flex-end; gap: 6px; grid-column: 1 / -1; justify-content: flex-end; }
.chat-filters .filter-actions .btn { min-height: 34px; }
.msg-cell { max-width: 320px; }
.msg-user { color: var(--text-soft); font-size: 12px; line-height: 1.55; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.msg-bot { color: var(--muted); font-size: 11.5px; line-height: 1.55; margin-top: 3px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.msg-row { cursor: pointer; }
.msg-expand { color: var(--blue); font-size: 11px; white-space: nowrap; }
.conversation-detail { display: flex; flex-direction: column; gap: 12px; }
.conversation-msg { padding: 11px 13px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2); }
.conversation-msg.user { border-left: 3px solid var(--blue); }
.conversation-msg.bot { border-left: 3px solid var(--teal); }
.conversation-msg .cm-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10.5px; margin-bottom: 5px; }
.conversation-msg .cm-text { white-space: pre-wrap; word-break: break-word; font-size: 12.5px; line-height: 1.7; }

/* 知识库 */
.kb-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.usage-card { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(150deg, rgba(94, 234, 212, .07), var(--card-grad-2)); margin-bottom: 16px; flex-wrap: wrap; }
.usage-card .usage-ring { width: 64px; height: 64px; flex: none; }
.usage-card .usage-main { min-width: 0; flex: 1; }
.usage-card h3 { font-size: 14px; font-weight: 700; }
.usage-card .usage-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 11.5px; margin-top: 6px; }
.usage-card .progress { margin-top: 9px; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 13px; }
.doc-card { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(170deg, var(--card-grad-1), var(--card-grad-2)); display: flex; flex-direction: column; }
.doc-title { font-size: 13.5px; font-weight: 700; display: flex; align-items: flex-start; gap: 7px; line-height: 1.45; }
.doc-preview { color: var(--muted); font-size: 11.5px; line-height: 1.65; margin-top: 7px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.doc-meta { display: flex; align-items: center; gap: 9px; color: var(--muted-2); font-size: 10.5px; margin-top: 11px; flex-wrap: wrap; }
.doc-actions { display: flex; gap: 5px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
.search-result { padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
.search-result h4 { font-size: 12.5px; font-weight: 700; margin-bottom: 4px; }
.search-result p { color: var(--muted); font-size: 11.5px; line-height: 1.65; white-space: pre-wrap; max-height: 180px; overflow-y: auto; }

/* 计费 */
.billing-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.plan-box { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(170deg, var(--card-grad-1), var(--card-grad-2)); position: relative; }
.plan-box.current { border-color: rgba(94, 234, 212, .45); box-shadow: 0 0 0 3px rgba(94, 234, 212, .08); }
.plan-box .plan-ribbon { position: absolute; top: 14px; right: 14px; }
.plan-box h3 { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.plan-box .plan-price { display: flex; align-items: baseline; gap: 3px; margin: 12px 0 4px; }
.plan-box .plan-price b { font-size: 30px; font-weight: 900; letter-spacing: -.04em; }
.plan-box .plan-price span { color: var(--muted-2); font-size: 11.5px; }
.plan-box .plan-feats { display: flex; flex-direction: column; gap: 7px; margin: 12px 0 16px; flex: 1; }
.plan-box .plan-feats li { display: flex; gap: 7px; align-items: flex-start; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.plan-box .plan-feats .icon { width: 13px; height: 13px; color: var(--success); margin-top: 2px; flex: none; }
.billing-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.billing-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.checkout-summary { padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--inset-mid); }
.checkout-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 12.5px; color: var(--muted); }
.checkout-line b { color: var(--text); }
.checkout-line.total { border-top: 1px dashed var(--border); margin-top: 6px; padding-top: 10px; font-size: 13px; }
.checkout-line.total b { font-size: 19px; color: var(--teal); }
.pay-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.pay-method { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); cursor: pointer; transition: .15s ease; text-align: left; }
.pay-method:hover { border-color: var(--border-hover); }
.pay-method.selected { border-color: rgba(96, 165, 250, .6); background: rgba(96, 165, 250, .08); box-shadow: 0 0 0 3px rgba(96, 165, 250, .09); }
.pay-method .pay-ico { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: rgba(148, 163, 184, .1); font-size: 15px; flex: none; }
.pay-method-name { font-size: 12px; font-weight: 600; }
.pay-method-desc { color: var(--muted-2); font-size: 10px; margin-top: 1px; }
.pay-method.disabled { opacity: .45; cursor: not-allowed; }
.mock-pay-box { padding: 16px; text-align: center; border: 1px dashed rgba(251, 191, 36, .35); border-radius: 11px; background: rgba(251, 191, 36, .05); }
.mock-pay-box .mock-title { color: var(--text-amber); font-weight: 700; font-size: 13px; }
.mock-pay-box .mock-desc { color: var(--muted); font-size: 11.5px; margin: 5px 0 12px; }
.qr-pay-box { text-align: center; }
.qr-pay-box img { width: 180px; height: 180px; margin: 0 auto; border-radius: 12px; border: 1px solid var(--border); background: #fff; padding: 6px; }
.order-status { display: inline-flex; align-items: center; gap: 5px; }
.orders-table .order-no { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.plan-usage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.plan-usage-item { padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: 9px; background: var(--inset-soft); }
.plan-usage-item small { color: var(--muted-2); font-size: 10px; display: block; }
.plan-usage-item b { font-size: 15px; font-weight: 800; }

/* 设置 */
.settings-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; align-items: start; }
.settings-nav { display: flex; flex-direction: column; gap: 3px; padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); position: sticky; top: 80px; }
.settings-nav button { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; color: var(--muted); font-size: 12.5px; text-align: left; }
.settings-nav button:hover { background: rgba(148, 163, 184, .07); color: var(--text); }
.settings-nav button.active { background: rgba(96, 165, 250, .1); color: var(--text-blue); font-weight: 600; }
.settings-nav .icon { width: 15px; height: 15px; }
.settings-panel { display: flex; flex-direction: column; gap: 16px; }
.settings-section { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); scroll-margin-top: 82px; }
.settings-section-head { padding: 16px 18px; border-bottom: 1px solid var(--border-soft); }
.settings-section-head h3 { font-size: 14px; font-weight: 700; }
.settings-section-head p { color: var(--muted-2); font-size: 11.5px; margin-top: 3px; }
.settings-section-body { padding: 18px; }
.profile-head { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border-soft); flex-wrap: wrap; }
.profile-head-name { font-size: 17px; font-weight: 800; }
.profile-head-meta { color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.session-item { display: flex; align-items: flex-start; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.session-item:last-child { border-bottom: 0; }
.session-icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: rgba(96, 165, 250, .09); border: 1px solid rgba(96, 165, 250, .18); color: var(--text-blue); flex: none; }
.session-body { min-width: 0; flex: 1; }
.session-title { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted-2); font-size: 10.5px; margin-top: 3px; }
.twofa-box { display: flex; align-items: flex-start; gap: 13px; padding: 14px; border: 1px solid var(--border); border-radius: 11px; background: var(--panel); }
.twofa-box .twofa-icon { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: none; background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .22); color: var(--text-green); }
.twofa-box.off .twofa-icon { background: rgba(251, 191, 36, .07); border-color: rgba(251, 191, 36, .2); color: var(--text-amber); }
.secret-box { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border: 1px dashed rgba(96, 165, 250, .35); border-radius: 9px; background: rgba(96, 165, 250, .05); }
.secret-box code { color: var(--text-blue); font-size: 13px; letter-spacing: .12em; }
.otp-link { font-size: 10.5px; color: var(--muted); word-break: break-all; line-height: 1.55; }

/* 通知列表 */
.notif-page-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.notif-page-item { display: flex; align-items: flex-start; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--border-soft); transition: background .14s ease; cursor: pointer; }
.notif-page-item:last-child { border-bottom: 0; }
.notif-page-item:hover { background: rgba(96, 165, 250, .05); }
.notif-page-item.unread { background: rgba(96, 165, 250, .045); }
.notif-page-icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: rgba(96, 165, 250, .1); border: 1px solid rgba(96, 165, 250, .2); color: var(--text-blue); flex: none; }
.notif-page-body { flex: 1; min-width: 0; }
.notif-page-title { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.notif-page-text { color: var(--muted); font-size: 12px; line-height: 1.65; margin-top: 4px; white-space: pre-wrap; }
.notif-page-time { color: var(--muted-2); font-size: 10.5px; margin-top: 5px; }
.notif-unread-badge { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex: none; }

/* ==========================================================================
   管理后台
   ========================================================================== */
.admin-banner { display: flex; align-items: center; gap: 11px; padding: 13px 16px; margin-bottom: 18px; border: 1px solid rgba(167, 139, 250, .28); border-radius: 12px; background: linear-gradient(100deg, rgba(167, 139, 250, .1), rgba(96, 165, 250, .07)); }
.admin-banner .admin-banner-icon { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(167, 139, 250, .14); border: 1px solid rgba(167, 139, 250, .28); color: var(--text-violet); flex: none; }
.admin-banner b { font-size: 13px; }
.admin-banner p { color: var(--muted); font-size: 11.5px; margin-top: 1px; }
.admin-banner .btn { margin-left: auto; }
.growth-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.system-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.system-card { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.system-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.system-card-head h3 { font-size: 13px; font-weight: 700; }
.system-card-head .icon { color: var(--blue); width: 16px; height: 16px; }
.meter-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.meter-label { width: 62px; color: var(--muted); font-size: 11.5px; flex: none; }
.meter-track { flex: 1; height: 8px; border-radius: 99px; background: rgba(148, 163, 184, .12); overflow: hidden; }
.meter-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2dd4bf, #60a5fa); transition: width .5s ease; }
.meter-fill.warning { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.meter-fill.danger { background: linear-gradient(90deg, #ef4444, #f87171); }
.meter-value { width: 64px; text-align: right; font-family: var(--mono); font-size: 11.5px; color: var(--text-soft); flex: none; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.service-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border-soft); border-radius: 8px; background: var(--inset-soft); font-size: 11.5px; }
.service-item .dot { width: 7px; height: 7px; }
.service-name { color: var(--muted); }
.service-state { margin-left: auto; font-weight: 600; }
.service-state.ok { color: var(--success); }
.service-state.bad { color: var(--danger); }
.server-hero { display: flex; align-items: center; gap: 18px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(150deg, rgba(96, 165, 250, .08), rgba(167, 139, 250, .06) 60%, var(--card-grad-2)); margin-bottom: 16px; flex-wrap: wrap; }
.server-hero-icon { width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: rgba(96, 165, 250, .1); border: 1px solid rgba(96, 165, 250, .24); color: var(--text-blue); flex: none; }
.server-hero-main { min-width: 0; flex: 1; }
.server-hero-main h2 { font-size: 17px; font-weight: 800; }
.server-hero-main p { color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.server-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 9px; color: var(--muted-2); font-size: 11px; }
.server-meta b { color: var(--text-soft); font-weight: 600; }
.log-detail-json { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: pre-wrap; word-break: break-word; max-width: 260px; }
.log-action { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11px; color: var(--text-blue); background: rgba(96, 165, 250, .08); border: 1px solid rgba(96, 165, 250, .18); padding: 1px 7px; border-radius: 5px; }
.settings-section-block { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); margin-bottom: 14px; overflow: hidden; }
.settings-block-head { padding: 13px 16px; border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; gap: 8px; }
.settings-block-head h3 { font-size: 13px; font-weight: 700; }
.settings-block-head .icon { width: 15px; height: 15px; color: var(--blue); }
.settings-block-head .badge { margin-left: auto; }
.settings-block-body { padding: 16px; }
.settings-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.settings-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.plan-editor { display: flex; flex-direction: column; gap: 10px; }
.masked-field { position: relative; }
.masked-field .input { padding-right: 76px; }
.field-flag { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 9.5px; padding: 2px 6px; border-radius: 5px; border: 1px solid rgba(52, 211, 153, .28); background: rgba(52, 211, 153, .1); color: var(--text-green); }
.detail-drawer-tabs { margin-bottom: 14px; }
.drawer-section { margin-bottom: 18px; }
.drawer-section-title { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; margin-bottom: 9px; color: var(--text-soft); }
.drawer-section-title .icon { width: 14px; height: 14px; color: var(--blue); }
.mini-timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { position: relative; padding: 0 0 13px 16px; border-left: 1px solid var(--border-strong); margin-left: 4px; font-size: 11.5px; color: var(--muted); }
.timeline-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline-item::before { content: ""; position: absolute; left: -3.5px; top: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.timeline-item b { color: var(--text-soft); font-weight: 600; }

/* 通用细节 */
.list-tight { display: flex; flex-direction: column; gap: 6px; }
.list-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--border-soft); font-size: 12px; }
.list-row:last-child { border-bottom: 0; }
.kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kv { padding: 9px 11px; border-radius: 8px; background: var(--inset); border: 1px solid var(--border-soft); }
.kv small { display: block; color: var(--muted-2); font-size: 10px; }
.kv b { font-size: 12.5px; font-weight: 600; word-break: break-all; }
.inline-code { padding: 1px 5px; border-radius: 4px; background: rgba(148, 163, 184, .1); color: var(--text-blue); font-family: var(--mono); font-size: 11px; }
.note-line { display: flex; align-items: flex-start; gap: 7px; color: var(--muted-2); font-size: 11px; line-height: 1.6; }
.note-line .icon { width: 13px; height: 13px; flex: none; margin-top: 2px; }
.stat-big { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat-big .unit { font-size: 12px; color: var(--muted); font-weight: 600; }
.hover-lift { transition: transform .18s ease, border-color .18s ease; }
.hover-lift:hover { transform: translateY(-2px); border-color: var(--border-hover); }
.order-total { font-weight: 800; color: var(--teal); font-family: var(--mono); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chat-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .billing-plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .settings-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .price-card { padding: 22px 18px; }
  .auth-page { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .billing-layout { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 160px minmax(0, 1fr); }
  .sk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --sidebar-w: 262px; }
  .sidebar { transform: translateX(-100%); box-shadow: var(--drawer-shadow); }
  body.nav-open .sidebar { transform: none; }
  .shell-main { margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 0 16px; height: 58px; }
  .content { padding: 18px 16px 40px; }
  .public-links { display: none; }
  .public-mobile-toggle { display: inline-flex; }
  .public-nav-actions { display: none; }
  .public-mobile-menu .btn { margin-top: 6px; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-main { padding: 28px 18px 40px; justify-content: flex-start; }
  .auth-card { margin-top: 6vh; }
  .counts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid { gap: 10px; }
  .notif-layout { grid-template-columns: 1fr !important; }
  .section-head { margin-bottom: 30px; }
  .landing-section { padding: 52px 0; }
  .system-grid { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .settings-nav::-webkit-scrollbar { display: none; }
  .settings-nav button { flex: none; }
  .chart-wrap canvas { height: 210px; }
  .topbar-crumb { display: none; }
}
@media (max-width: 720px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .plan-box { padding: 16px; }
  .billing-plan-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .col-span-2 { grid-column: span 1; }
  .settings-grid-3, .settings-grid-2 { grid-template-columns: 1fr; }
  .sk-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal-overlay { padding: 12px; align-items: flex-end; }
  .modal { max-height: 92vh; border-radius: 16px; }
  .modal-body { padding: 16px; }
  .modal-head { padding: 15px 16px 12px; }
  .modal-foot { padding: 12px 16px; }
  .toast-stack { top: 10px; right: 10px; left: 10px; width: auto; }
  .page-head h1 { font-size: 19px; }
  .welcome h1 { font-size: 20px; }
  .detail-head { padding: 16px; }
  .detail-head-main h1 { font-size: 18px; }
  .detail-head-actions { width: 100%; }
  .recent-item { padding: 11px 14px; }
  .card-head { padding: 13px 15px; }
  .card-body { padding: 15px; }
  .pager { padding: 12px 14px; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .order-status .badge { font-size: 10px; }
  .twofa-box { flex-direction: column; }
  .notif-menu { width: calc(100vw - 20px); }
  .notif-page-item { padding: 13px 14px; }
  .server-hero { padding: 15px; }
  .admin-banner { align-items: flex-start; }
  .admin-banner .btn { margin-left: 0; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-stats { gap: 20px; }
  .preview-window { transform: none; }
  .auth-card { margin-top: 0; }
  .session-title { white-space: normal; }
}
@media (max-width: 520px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi { padding: 13px; }
  .kpi-value { font-size: 22px; }
  .counts-row { grid-template-columns: 1fr 1fr; }
  .chat-filters { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4, .grid-auto { grid-template-columns: 1fr; }
  .account-grid, .robot-grid, .persona-grid, .doc-grid { grid-template-columns: 1fr; }
  .detail-stats { grid-template-columns: 1fr 1fr; }
  .kv-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .pay-methods { grid-template-columns: 1fr; }
  .plan-usage-grid { grid-template-columns: 1fr; }
  .persona-picker-list { grid-template-columns: 1fr; }
  .user-btn-name { display: none; }
  .demo-chip { display: none; }
  .topbar { gap: 8px; }
  .topbar-actions { gap: 2px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 13.5px; }
  .public-brand-name { font-size: 15px; }
  .footer-inner { flex-direction: column; }
  .settings-nav { flex-wrap: nowrap; }
  .modal-foot .btn { flex: 1 1 auto; }
  .page-head-actions { width: 100%; }
  .page-head-actions .btn { flex: 1 1 auto; }
  .table-scroll-hint { display: block; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- 主题切换 ---------- */
.theme-toggle { color: var(--text-soft); border: 1px solid var(--border); background: var(--card); box-shadow: 0 4px 12px -10px rgba(15, 23, 42, .35); }
.theme-toggle:hover { color: var(--text); background: var(--card-3); border-color: var(--border-strong); }
.theme-toggle .icon { width: 17px; height: 17px; }
.public-nav-actions .theme-toggle { flex: none; }
.public-mobile-menu .theme-toggle { margin-top: 8px; align-self: flex-start; }
.auth-main { position: relative; }
.auth-theme { position: absolute; top: 16px; right: 22px; z-index: 6; }

/* ---------- 明亮模式细节修正 ---------- */
html[data-theme="light"] .card { box-shadow: 0 18px 44px -34px rgba(15, 23, 42, .3); }
html[data-theme="light"] .sidebar { box-shadow: 20px 0 60px -50px rgba(15, 23, 42, .35); }
html[data-theme="light"] .topbar { box-shadow: 0 10px 30px -30px rgba(15, 23, 42, .4); }
html[data-theme="light"] .public-nav { box-shadow: 0 12px 34px -34px rgba(15, 23, 42, .4); }
html[data-theme="light"] .demo-chip { background: rgba(217, 119, 6, .09); border-color: rgba(217, 119, 6, .24); }
html[data-theme="light"] .notice-strip { background: rgba(37, 99, 235, .06); border-color: rgba(37, 99, 235, .2); }
html[data-theme="light"] .section-kicker { background: rgba(37, 99, 235, .08); border-color: rgba(37, 99, 235, .2); }
html[data-theme="light"] .hero-badge { background: #fff; }
html[data-theme="light"] .auth-side { border-right-color: var(--border); }
html[data-theme="light"] .demo-hint { background: rgba(217, 119, 6, .07); border-color: rgba(217, 119, 6, .2); color: var(--text-soft); }
html[data-theme="light"] .demo-hint code { color: var(--text-amber); }
html[data-theme="light"] .toast { background: #fff; }
html[data-theme="light"] .preview-window { background: linear-gradient(165deg, #ffffff, #f7faff); }
html[data-theme="light"] .chart-tooltip { background: #fff; }
html[data-theme="light"] .price-note,
html[data-theme="light"] .form-help { color: var(--muted-2); }
html[data-theme="light"] .side-plan { background: linear-gradient(150deg, rgba(94, 234, 212, .12), rgba(167, 139, 250, .12)); }
html[data-theme="light"] .boot-bar { background: var(--card-3); }
html[data-theme="light"] .bubble.user { background: rgba(37, 99, 235, .08); border-color: rgba(37, 99, 235, .18); }
html[data-theme="light"] .bubble.bot { background: #f3f6fb; }
html[data-theme="light"] .code-block { color: var(--text-soft); }
html[data-theme="light"] .auth-side::after { opacity: .55; }
html[data-theme="light"] ::selection { color: #0b1220; }


