/* ==========================================================================
   梦时镜超级管理后台 · 设计系统
   Dark-first / 玻璃拟态 / 年轻现代 / 双端自适应
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: dark;

  --bg: #070810;
  --bg-soft: #0a0c16;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.07);
  --panel-solid: #10121d;
  --panel-solid-2: #151828;
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #eceef9;
  --text-2: #b9bed4;
  --muted: #8b90a8;
  --faint: #646a83;

  --brand: #8b5cf6;
  --brand-2: #22d3ee;
  --brand-3: #f472b6;
  --brand-soft: rgba(139, 92, 246, 0.16);
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #fb7185;
  --info: #60a5fa;
  --ok-soft: rgba(52, 211, 153, 0.14);
  --warn-soft: rgba(251, 191, 36, 0.14);
  --danger-soft: rgba(251, 113, 133, 0.14);
  --info-soft: rgba(96, 165, 250, 0.14);

  --grad: linear-gradient(120deg, #8b5cf6 0%, #6366f1 42%, #22d3ee 100%);
  --grad-warm: linear-gradient(120deg, #f472b6, #fbbf24);
  --grad-text: linear-gradient(100deg, #c4b5fd 0%, #a5b4fc 40%, #67e8f9 100%);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  --glow: 0 0 0 1px rgba(139, 92, 246, 0.4), 0 12px 40px -12px rgba(139, 92, 246, 0.55);

  --r-xs: 8px;
  --r-sm: 11px;
  --r-md: 15px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-full: 999px;

  --sidebar-w: 266px;
  --topbar-h: 66px;
  --pad: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei",
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, "Courier New", monospace;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f4fb;
  --bg-soft: #eef0f9;
  --panel: #ffffff;
  --panel-2: #f7f8fd;
  --panel-solid: #ffffff;
  --panel-solid-2: #f7f8fd;
  --line: rgba(16, 20, 40, 0.08);
  --line-strong: rgba(16, 20, 40, 0.16);
  --text: #14162a;
  --text-2: #3d4260;
  --muted: #6b7191;
  --faint: #8e94ad;
  --brand-soft: rgba(139, 92, 246, 0.1);
  --ok-soft: rgba(5, 150, 105, 0.1);
  --warn-soft: rgba(217, 119, 6, 0.12);
  --danger-soft: rgba(225, 29, 72, 0.1);
  --info-soft: rgba(37, 99, 235, 0.1);
  --shadow: 0 12px 30px -16px rgba(24, 30, 60, 0.28);
  --shadow-lg: 0 40px 80px -40px rgba(24, 30, 60, 0.35);
  --grad-text: linear-gradient(100deg, #6d28d9, #4f46e5 45%, #0891b2);
}

/* 2. Reset ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html,
body { height: 100%; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
table { border-collapse: collapse; width: 100%; }
code, kbd, pre { font-family: var(--mono); }
::selection { background: rgba(139, 92, 246, 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
  border-radius: 6px;
}

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: rgba(139, 92, 246, 0.45) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.35);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(139, 92, 246, 0.6); background-clip: content-box; }

/* 3. Ambient background --------------------------------------------------- */
.app-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(900px 600px at 90% 0%, rgba(34, 211, 238, 0.1), transparent 60%),
    var(--bg);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.orb-a {
  width: 46vw; height: 46vw;
  left: -12vw; top: -14vw;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.55), transparent 65%);
  animation: float-a 26s var(--ease) infinite alternate;
}
.orb-b {
  width: 40vw; height: 40vw;
  right: -10vw; top: -6vw;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.4), transparent 65%);
  animation: float-b 32s var(--ease) infinite alternate;
}
.orb-c {
  width: 36vw; height: 36vw;
  right: 12vw; bottom: -20vw;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.32), transparent 65%);
  animation: float-c 38s var(--ease) infinite alternate;
}
[data-theme="light"] .orb { opacity: 0.32; filter: blur(80px); }

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
}
[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(to right, rgba(20, 22, 42, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 22, 42, 0.06) 1px, transparent 1px);
}

@keyframes float-a { to { transform: translate3d(6vw, 5vw, 0) scale(1.12); } }
@keyframes float-b { to { transform: translate3d(-7vw, 8vw, 0) scale(1.08); } }
@keyframes float-c { to { transform: translate3d(-4vw, -7vw, 0) scale(1.14); } }

/* 4. Layout --------------------------------------------------------------- */
.app {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 60;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  padding: 0;
  transition: width 0.35s var(--ease), transform 0.35s var(--ease);
}
.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
  box-shadow: none;
  overflow: hidden;
}
[data-theme="light"] .sidebar-inner {
  background: linear-gradient(180deg, #fbfbff 0%, #eff1fa 100%);
  border-right: 1px solid rgba(16, 20, 40, 0.09);
  box-shadow: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 16px 14px;
  min-width: 0;
}
.brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 8px 22px -8px rgba(139, 92, 246, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong {
  font-size: 16px;
  letter-spacing: 0.06em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.brand-text small { font-size: 10.5px; color: var(--muted); letter-spacing: 0.16em; margin-top: 3px; }

.nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 8px 10px;
  overscroll-behavior: contain;
}
.nav-group { margin-top: 12px; }
.nav-group:first-child { margin-top: 4px; }
.nav-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  margin: 0 0 3px;
  padding: 6px 10px;
  border: 0;
  border-radius: 7px;
  background: none;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--faint);
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
}
.nav-label > span { overflow: hidden; text-overflow: ellipsis; }
.nav-label .chev {
  flex: none;
  width: 13px; height: 13px;
  opacity: 0.5;
  transition: transform 0.25s var(--ease), opacity 0.18s;
}
.nav-label:hover { color: var(--text-2); background: var(--panel); }
.nav-label:hover .chev { opacity: 0.85; }
.nav-label[aria-expanded="false"] .chev { transform: rotate(-90deg); }
.nav-group.is-collapsed { margin-top: 6px; }
.nav-group.is-collapsed + .nav-group { margin-top: 6px; }
.nav-group-body { min-width: 0; }
.nav-group-body[hidden] { display: none; }
.nav-item { position: relative; }
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  margin: 1px 0;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 13.5px;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.nav-link svg { flex: none; width: 18px; height: 18px; opacity: 0.82; }
.nav-link span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.nav-link:hover { background: var(--panel); color: var(--text); }
.nav-link:hover svg { opacity: 1; }
.nav-link.active {
  color: #fff;
  background: linear-gradient(100deg, rgba(139, 92, 246, 0.9), rgba(99, 102, 241, 0.55) 55%, rgba(34, 211, 238, 0.32));
  box-shadow: 0 8px 24px -14px rgba(139, 92, 246, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
[data-theme="light"] .nav-link.active { color: #fff; }
.nav-link.active svg { opacity: 1; }
.nav-link.active::before {
  content: "";
  position: absolute;
  left: -8px; top: 50%;
  width: 3px; height: 18px;
  border-radius: 3px;
  transform: translateY(-50%);
  background: var(--brand-2);
  box-shadow: 0 0 12px var(--brand-2);
}
.nav-badge {
  flex: none;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  display: grid;
  place-items: center;
  background: var(--panel-2);
  color: var(--text-2);
  border: 1px solid var(--line);
}
.nav-link.active .nav-badge { background: rgba(255, 255, 255, 0.22); color: #fff; border-color: transparent; }
.nav-badge.hot { background: var(--danger-soft); color: var(--danger); border-color: rgba(251, 113, 133, 0.3); }

.nav-sub { margin-left: 20px; padding-left: 12px; border-left: 1px dashed var(--line-strong); }
.nav-sub .nav-link { padding: 7px 10px; font-size: 13px; }
.nav-sub .nav-link svg { width: 15px; height: 15px; }

.nav-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 13.5px;
  transition: 0.18s;
}
.nav-toggle > span { flex: 1; text-align: left; }
.nav-toggle svg.ico { width: 18px; height: 18px; opacity: 0.82; }
.nav-toggle .chev { width: 14px; height: 14px; opacity: 0.6; transition: transform 0.25s var(--ease); }
.nav-toggle[aria-expanded="true"] .chev { transform: rotate(90deg); }
.nav-toggle:hover { background: var(--panel); color: var(--text); }
.nav-toggle.open { color: var(--text); }

.sidebar-foot { padding: 10px 10px 12px; border-top: 1px solid var(--line); }
.server-card {
  padding: 11px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(52, 211, 153, 0.16), transparent 55%),
    var(--panel);
  margin-bottom: 9px;
}
.server-card__row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.server-card__row strong { font-weight: 600; }
.server-card__meta { display: flex; justify-content: space-between; margin-top: 7px; font-size: 11px; color: var(--muted); }
.server-card .bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.09); margin-top: 7px; overflow: hidden; }
.server-card .bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--ok), var(--brand-2)); }
.build-tag { text-align: center; font-size: 10.5px; color: var(--faint); letter-spacing: 0.08em; }

.main {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.35s var(--ease);
}

/* 5. Topbar --------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--topbar-h);
  padding: 0 var(--pad);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .topbar { background: rgba(7, 8, 16, 0.75); }
  [data-theme="light"] .topbar { background: rgba(245, 246, 251, 0.82); }
}
.topbar-spacer { flex: 1; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); min-width: 0; overflow: hidden; white-space: nowrap; }
.crumbs > * { flex: none; }
.crumbs .sep { opacity: 0.45; }
.crumbs strong { color: var(--text); font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs a:hover { color: var(--brand-2); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 11px;
  color: var(--text-2);
  border: 1px solid transparent;
  transition: 0.18s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--panel); color: var(--text); border-color: var(--line); }
.icon-btn.has-dot::after {
  content: "";
  position: absolute;
  top: 8px; right: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--bg);
  box-sizing: content-box;
}
#btn-theme .i-sun { display: none; }
[data-theme="light"] #btn-theme .i-sun { display: block; }
[data-theme="light"] #btn-theme .i-moon { display: none; }

.search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px 0 11px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 12.5px;
  transition: 0.18s;
  max-width: 300px;
}
.search-trigger svg { width: 16px; height: 16px; }
.search-trigger span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-trigger kbd {
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--faint);
  white-space: nowrap;
}
.search-trigger:hover { border-color: var(--line-strong); color: var(--text-2); background: var(--panel-2); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text-2);
  white-space: nowrap;
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.16); }
.pill-live i { animation: pulse-dot 2.4s infinite; }
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.02); }
}

.avatar-btn { display: flex; align-items: center; gap: 9px; padding: 3px 6px 3px 3px; border-radius: 999px; transition: 0.18s; }
.avatar-btn:hover { background: var(--panel); }
.avatar {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: conic-gradient(from 140deg, #8b5cf6, #22d3ee, #f472b6, #8b5cf6);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px rgba(139, 92, 246, 0.35);
}
.avatar-meta { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.avatar-meta strong { font-size: 12.5px; font-weight: 600; }
.avatar-meta small { font-size: 10.5px; color: var(--muted); }

/* 6. View & page chrome --------------------------------------------------- */
.view {
  flex: 1;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 24px var(--pad) 40px;
  outline: none;
}
.page { animation: page-in 0.5s var(--ease-out) both; }
@keyframes page-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.page-head {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.page-head__main { min-width: 0; flex: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 8px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: linear-gradient(90deg, var(--brand-2), transparent); }
.page-title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.page-title .title-emoji { font-size: 0.86em; filter: saturate(1.2); }
.page-desc { margin-top: 7px; color: var(--muted); font-size: 13px; max-width: 78ch; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 12px;
}
.section-head h3 { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }
.section-head .line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.section-head .hint { font-size: 12px; color: var(--muted); }

/* 7. Cards ---------------------------------------------------------------- */
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
[data-theme="light"] .card { background: #fff; box-shadow: var(--shadow-sm); }
.card.pad { padding: 20px; }
.card { min-width: 0; }
.card.hoverable { transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s; }
.card.hoverable:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: var(--shadow), 0 0 0 1px rgba(139, 92, 246, 0.12);
}
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.card-head__main { flex: 1; min-width: 0; }
.card-title { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-title > svg { flex: none; width: 17px; height: 17px; color: var(--brand-2); opacity: 0.95; }
.card-title > b, .card-title > span { min-width: 0; }
.card-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.card-body { padding: 18px; }
.card-body.tight { padding: 0; }
.card-foot {
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .card-foot { background: var(--panel-2); }
.card-glow::after {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.8), transparent);
}

.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-fit, minmax(240px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.split-even { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }

.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-0 { margin-bottom: 0 !important; }
.grow { flex: 1; min-width: 0; }
.nowrap { white-space: nowrap; }

/* 8. Buttons -------------------------------------------------------------- */
.btn {
  --btn-bg: var(--panel);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--btn-bg);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s var(--ease), background 0.18s, border-color 0.18s, box-shadow 0.18s, opacity 0.18s;
  user-select: none;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { border-color: var(--line-strong); background: var(--panel-2); }
.btn:active { transform: scale(0.975); }
.btn[disabled], .btn.is-disabled { opacity: 0.45; pointer-events: none; }

.btn-primary {
  border: 0;
  color: #fff;
  background: var(--grad);
  background-size: 160% 160%;
  box-shadow: 0 10px 24px -14px rgba(139, 92, 246, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 14px 32px -14px rgba(99, 102, 241, 0.95); }
.btn-soft { background: var(--brand-soft); border-color: rgba(139, 92, 246, 0.28); color: #c4b5fd; }
[data-theme="light"] .btn-soft { color: #6d28d9; }
.btn-soft:hover { background: rgba(139, 92, 246, 0.2); border-color: rgba(139, 92, 246, 0.45); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--panel); color: var(--text); border-color: var(--line); }
.btn-danger { background: var(--danger-soft); border-color: rgba(251, 113, 133, 0.3); color: var(--danger); }
.btn-danger:hover { background: rgba(251, 113, 133, 0.22); }
.btn-ok { background: var(--ok-soft); border-color: rgba(52, 211, 153, 0.3); color: var(--ok); }
.btn-ok:hover { background: rgba(52, 211, 153, 0.22); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 9px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-xs { height: 26px; padding: 0 8px; font-size: 11.5px; border-radius: 8px; }
.btn-lg { height: 42px; padding: 0 20px; font-size: 14px; border-radius: 13px; }
.btn-icon { width: 34px; padding: 0; }
.btn-block { width: 100%; }

/* 9. Tags / badges -------------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 500;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text-2);
  white-space: nowrap;
}
.tag i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tag.ok { color: var(--ok); background: var(--ok-soft); border-color: rgba(52, 211, 153, 0.24); }
.tag.warn { color: var(--warn); background: var(--warn-soft); border-color: rgba(251, 191, 36, 0.24); }
.tag.danger { color: var(--danger); background: var(--danger-soft); border-color: rgba(251, 113, 133, 0.24); }
.tag.info { color: var(--info); background: var(--info-soft); border-color: rgba(96, 165, 250, 0.24); }
.tag.brand { color: #c4b5fd; background: var(--brand-soft); border-color: rgba(139, 92, 246, 0.3); }
[data-theme="light"] .tag.brand { color: #6d28d9; }
.tag.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text-2);
  font-size: 12.5px;
  cursor: pointer;
  transition: 0.18s;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.active { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 6px 18px -10px rgba(139, 92, 246, 0.9); }
.chip .count { font-size: 11px; opacity: 0.75; font-variant-numeric: tabular-nums; }

/* 10. Stats --------------------------------------------------------------- */
.stat {
  position: relative;
  padding: 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
[data-theme="light"] .stat { background: #fff; }
.stat:hover { transform: translateY(-2px); border-color: rgba(139, 92, 246, 0.3); }
.stat::before {
  content: "";
  position: absolute;
  right: -40px; top: -60px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--tone, rgba(139, 92, 246, 0.3)), transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}
.stat__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat__label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.stat__icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 11px;
  color: var(--tone-fg, #c4b5fd);
  background: var(--tone-bg, var(--brand-soft));
  border: 1px solid var(--tone-line, rgba(139, 92, 246, 0.22));
}
.stat__icon svg { width: 17px; height: 17px; }
.stat__value {
  margin-top: 12px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.stat__value small { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.stat__foot { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.trend { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-variant-numeric: tabular-nums; }
.trend.up { color: var(--ok); }
.trend.down { color: var(--danger); }
.trend svg { width: 12px; height: 12px; }
.spark { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; opacity: 0.65; pointer-events: none; }

/* 11. Tables -------------------------------------------------------------- */
.table-wrap {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .table-wrap { background: #fff; }
table.data { min-width: 640px; font-size: 13px; }
table.data thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: left;
  padding: 11px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  background: var(--panel-solid);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
[data-theme="light"] table.data thead th { background: var(--panel-2); }
table.data tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  vertical-align: middle;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background 0.15s; }
table.data tbody tr:hover { background: rgba(139, 92, 246, 0.055); }
table.data td strong, table.data td .cell-strong { color: var(--text); font-weight: 600; }
table.data .num { font-variant-numeric: tabular-nums; text-align: right; }
table.data .actions { display: flex; gap: 4px; justify-content: flex-end; }
table.data th.right, table.data td.right { text-align: right; }
table.data th.center, table.data td.center { text-align: center; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.toolbar .grow { flex: 1; }

.pager { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-top: 1px solid var(--line); justify-content: flex-end; flex-wrap: wrap; }
.pager__info { margin-right: auto; font-size: 12px; color: var(--muted); }
.page-btn {
  min-width: 30px; height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text-2);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.page-btn:hover { border-color: var(--line-strong); color: var(--text); }
.page-btn.active { background: var(--grad); color: #fff; border-color: transparent; }
.page-btn[disabled] { opacity: 0.4; pointer-events: none; }

/* 12. Forms --------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.cols-1 { grid-template-columns: 1fr; }
.form-col-span { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.field-hint { font-size: 11px; color: var(--faint); line-height: 1.5; }
.field-label .req { color: var(--danger); }
.field-label .opt { color: var(--faint); font-weight: 400; }

.input, .select, .textarea {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-size: 13px;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  min-width: 0;
}
[data-theme="light"] .input, [data-theme="light"] .select, [data-theme="light"] .textarea { background: var(--panel-2); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-strong); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.65);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
  background: rgba(0, 0, 0, 0.28);
}
[data-theme="light"] .input:focus, [data-theme="light"] .select:focus, [data-theme="light"] .textarea:focus { background: #fff; }
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.textarea.mono { font-family: var(--mono); font-size: 12.5px; }
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b90a8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 15px;
  cursor: pointer;
}
.select option { background: var(--panel-solid); color: var(--text); }
.input-group { display: flex; align-items: stretch; gap: 8px; }
.input-group .input { flex: 1; }
.input-group .btn { flex: none; }
.input-suffix { position: relative; display: flex; align-items: center; }
.input-suffix .input { padding-right: 52px; }
.input-suffix .suffix { position: absolute; right: 12px; font-size: 12px; color: var(--faint); pointer-events: none; }

/* switch */
.switch { display: inline-flex; align-items: center; gap: 9px; 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: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--line);
  transition: 0.25s var(--ease);
  flex: none;
}
[data-theme="light"] .switch .track { background: #e2e5f0; }
.switch .track::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s var(--ease);
}
.switch input:checked + .track { background: var(--grad); border-color: transparent; box-shadow: 0 4px 14px -6px rgba(139, 92, 246, 0.9); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.switch-label { font-size: 12.5px; color: var(--text-2); }

/* checkbox */
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12.5px; color: var(--text-2); user-select: none; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box {
  display: grid;
  place-items: center;
  width: 17px; height: 17px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.2);
  transition: 0.18s;
  flex: none;
}
[data-theme="light"] .check .box { background: #fff; }
.check .box svg { width: 11px; height: 11px; opacity: 0; transform: scale(0.6); transition: 0.18s var(--ease); color: #fff; }
.check input:checked + .box { background: var(--grad); border-color: transparent; }
.check input:checked + .box svg { opacity: 1; transform: none; }
.check input:checked ~ .check-label { color: var(--text); }
.check input:focus-visible + .box { outline: 2px solid var(--brand-2); outline-offset: 2px; }

/* radio segmented */
.segmented {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  flex-wrap: wrap;
}
[data-theme="light"] .segmented { background: var(--panel-2); }
.segmented button {
  height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--muted);
  transition: 0.18s;
  white-space: nowrap;
}
.segmented button:hover { color: var(--text); }
.segmented button.active { color: var(--text); background: var(--panel-2); box-shadow: var(--shadow-sm); }
[data-theme="light"] .segmented button.active { background: #fff; color: #14162a; box-shadow: 0 1px 4px rgba(24, 30, 60, 0.14); }

/* range */
.range { width: 100%; accent-color: var(--brand); }

/* 13. Misc components ----------------------------------------------------- */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; font-size: 12.5px; }
.kv dt { color: var(--muted); white-space: nowrap; }
.kv dd { margin: 0; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }

.list { display: flex; flex-direction: column; }
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.list-item:last-child { border-bottom: 0; }
.list-item .grow { min-width: 0; }
.list-item__title { font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 7px; }
.list-item__sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
}
.empty svg { width: 40px; height: 40px; opacity: 0.4; }
.empty strong { color: var(--text-2); font-size: 13.5px; font-weight: 500; }
.empty p { font-size: 12px; max-width: 42ch; }

.code-block {
  position: relative;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
  color: #a5b4fc;
  overflow-x: auto;
  white-space: pre;
}
[data-theme="light"] .code-block { background: #0f1220; color: #c7d2fe; border-color: rgba(15, 18, 32, 0.9); }
.code-block .k { color: #67e8f9; }
.code-block .s { color: #86efac; }
.code-block .c { color: #64748b; }
.code-block .n { color: #fbbf24; }

.copy-code {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--r-md);
  border: 1px dashed var(--line-strong);
  background: rgba(139, 92, 246, 0.06);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--text);
}
.copy-code .grow { overflow-x: auto; white-space: nowrap; }

.note {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.65;
}
.note svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.note code, .field-hint code, .card-sub code, .page-desc code { word-break: break-word; overflow-wrap: anywhere; }
.note.info { border-color: rgba(96, 165, 250, 0.25); background: var(--info-soft); }
.note.info svg { color: var(--info); }
.note.warn { border-color: rgba(251, 191, 36, 0.25); background: var(--warn-soft); }
.note.warn svg { color: var(--warn); }
.note.ok { border-color: rgba(52, 211, 153, 0.25); background: var(--ok-soft); }
.note.ok svg { color: var(--ok); }
.note.danger { border-color: rgba(251, 113, 133, 0.25); background: var(--danger-soft); }
.note.danger svg { color: var(--danger); }

/* progress */
.progress { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); overflow: hidden; }
[data-theme="light"] .progress { background: #e6e8f2; }
.progress > i { display: block; height: 100%; border-radius: 999px; background: var(--grad); transition: width 0.6s var(--ease); }
.progress.ok > i { background: linear-gradient(90deg, #34d399, #22d3ee); }
.progress.warn > i { background: linear-gradient(90deg, #fbbf24, #f97316); }
.progress.danger > i { background: linear-gradient(90deg, #fb7185, #ef4444); }

/* avatar stack */
.avatars { display: flex; }
.avatars span {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
  border: 2px solid var(--bg);
  margin-left: -7px;
  background: linear-gradient(140deg, #8b5cf6, #6366f1);
}
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2) { background: linear-gradient(140deg, #22d3ee, #0ea5e9); }
.avatars span:nth-child(3) { background: linear-gradient(140deg, #f472b6, #f43f5e); }
.avatars span:nth-child(4) { background: linear-gradient(140deg, #fbbf24, #f59e0b); }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button {
  position: relative;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  transition: 0.18s;
}
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--text); font-weight: 500; }
.tabs button.active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

/* 14. Modal / toast ------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 5, 12, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade-in 0.22s ease both;
  overflow-y: auto;
}
@keyframes fade-in { from { opacity: 0; } }
.modal {
  width: min(var(--modal-w, 560px), 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(30, 33, 52, 0.98), rgba(12, 14, 24, 0.98));
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.32s var(--ease-out) both;
  overflow: hidden;
}
[data-theme="light"] .modal {
  background: #fff;
  border-color: rgba(16, 20, 40, 0.1);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.modal-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 16px; font-weight: 600; }
.modal-head p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.modal-close { margin-left: auto; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--line);
}
.modal-foot .grow { flex: 1; }

.toast-root {
  position: fixed;
  z-index: 300;
  top: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  pointer-events: none;
  max-width: min(380px, calc(100vw - 32px));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: rgba(18, 20, 34, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  font-size: 12.5px;
  line-height: 1.5;
  pointer-events: auto;
  animation: toast-in 0.34s var(--ease-out) both;
}
[data-theme="light"] .toast { background: #fff; color: #14162a; }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } }
.toast.leaving { animation: toast-out 0.24s ease forwards; }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }
.toast svg { flex: none; width: 17px; height: 17px; margin-top: 1px; }
.toast.ok svg { color: var(--ok); }
.toast.warn svg { color: var(--warn); }
.toast.danger svg { color: var(--danger); }
.toast.info svg { color: var(--info); }
.toast strong { display: block; font-weight: 600; margin-bottom: 1px; }
.toast p { color: var(--muted); font-size: 11.5px; }

/* command palette */
.cmdk {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12vh 20px 20px;
  background: rgba(4, 5, 12, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade-in 0.18s ease both;
}
.cmdk[hidden] { display: none; }
.cmdk-panel {
  width: min(620px, 100%);
  max-height: 64vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: rgba(16, 18, 30, 0.98);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modal-in 0.28s var(--ease-out) both;
}
[data-theme="light"] .cmdk-panel { background: #fff; }
.cmdk-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cmdk-head svg { width: 18px; height: 18px; color: var(--muted); }
.cmdk-head input { flex: 1; border: 0; background: none; outline: none; font-size: 15px; }
.cmdk-head kbd { font-size: 10px; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line); color: var(--faint); }
.cmdk-list { overflow-y: auto; padding: 8px; }
.cmdk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  text-align: left;
  color: var(--text-2);
  font-size: 13px;
}
.cmdk-item svg { width: 16px; height: 16px; opacity: 0.7; }
.cmdk-item .path { margin-left: auto; font-size: 11px; color: var(--faint); }
.cmdk-item.active, .cmdk-item:hover { background: var(--brand-soft); color: var(--text); }
.cmdk-empty { padding: 30px; text-align: center; color: var(--muted); font-size: 13px; }

/* 15. Dashboard specifics ------------------------------------------------- */
.hero {
  position: relative;
  padding: 26px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(34, 211, 238, 0.16), transparent 55%),
    radial-gradient(120% 160% at 0% 100%, rgba(139, 92, 246, 0.22), transparent 60%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  overflow: hidden;
}
[data-theme="light"] .hero {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(34, 211, 238, 0.16), transparent 55%),
    radial-gradient(120% 160% at 0% 100%, rgba(139, 92, 246, 0.16), transparent 60%),
    #fff;
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: 0 0 0 40px rgba(139, 92, 246, 0.05), 0 0 0 90px rgba(139, 92, 246, 0.03);
  pointer-events: none;
}
.hero h2 {
  font-size: clamp(21px, 2.6vw, 27px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.hero h2 em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); margin-top: 8px; font-size: 13px; max-width: 62ch; }
.hero-row { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 22px; }
.hero-stat { min-width: 92px; }
.hero-stat b { display: block; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.hero-stat span { font-size: 11.5px; color: var(--muted); }

.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.quick {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: 0.25s var(--ease);
  text-align: left;
}
.quick:hover { transform: translateY(-2px); border-color: rgba(139, 92, 246, 0.4); background: var(--brand-soft); }
.quick .qi {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: #c4b5fd;
  flex: none;
}
[data-theme="light"] .quick .qi { color: #6d28d9; }
.quick .qi svg { width: 17px; height: 17px; }
.quick b { display: block; font-size: 12.5px; font-weight: 600; }
.quick small { font-size: 10.5px; color: var(--muted); }

.chart-box { position: relative; padding: 6px 0 0; }
.chart-box svg { width: 100%; height: auto; overflow: visible; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); margin-top: 10px; }
.chart-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }

.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(180deg, var(--brand), transparent); }
.timeline-item { position: relative; padding-bottom: 15px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -21px; top: 4px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--panel-solid);
  border: 2px solid var(--brand);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.timeline-item time { display: block; font-size: 10.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.timeline-item p { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.timeline-item p b { color: var(--text); font-weight: 600; }

/* 16. Page-specific ------------------------------------------------------ */
.server-row {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 0.7fr)) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s;
}
.server-row:last-child { border-bottom: 0; }
.server-row:hover { background: rgba(139, 92, 246, 0.05); }
.server-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.server-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.14); }
.server-dot.on { background: var(--ok); }
.server-dot.off { background: var(--faint); box-shadow: 0 0 0 3px rgba(139, 144, 168, 0.12); }
.server-meta b { display: block; font-size: 13px; font-weight: 600; }
.server-meta small { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.server-cell { font-size: 12px; color: var(--text-2); }
.server-cell u { display: block; text-decoration: none; font-size: 10.5px; color: var(--faint); }

.member-tier {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.tier-vip { color: #fbbf24; background: linear-gradient(120deg, rgba(251, 191, 36, 0.18), rgba(245, 158, 11, 0.08)); border: 1px solid rgba(251, 191, 36, 0.32); }
.tier-svip { color: #f472b6; background: linear-gradient(120deg, rgba(244, 114, 182, 0.18), rgba(139, 92, 246, 0.12)); border: 1px solid rgba(244, 114, 182, 0.34); }
.tier-msj { color: #c4b5fd; background: linear-gradient(120deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.1)); border: 1px solid rgba(139, 92, 246, 0.34); }

.card-preview {
  display: grid;
  place-items: center;
  padding: 22px;
  border-radius: var(--r-md);
  border: 1px dashed var(--line-strong);
  background:
    radial-gradient(80% 80% at 50% 0%, rgba(139, 92, 246, 0.12), transparent 70%),
    rgba(0, 0, 0, 0.16);
  min-height: 130px;
}
.redeem-token {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(139, 92, 246, 0.3);
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: #e9d5ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .redeem-token { color: #6d28d9; background: var(--brand-soft); }

.code-list {
  max-height: 260px;
  overflow-y: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  font-family: var(--mono);
  font-size: 12px;
}
[data-theme="light"] .code-list { background: var(--panel-2); }
.code-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
}
.code-list__item:last-child { border-bottom: 0; }
.code-list__item .idx { color: var(--faint); font-size: 10.5px; width: 26px; }
.code-list__item code { flex: 1; letter-spacing: 0.06em; color: var(--text); overflow-x: auto; }
.code-list__item time { font-size: 10.5px; color: var(--faint); }

.tool-preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.08), transparent 40%),
    repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.025) 0% 25%, transparent 0% 50%) 0 0 / 18px 18px,
    rgba(0, 0, 0, 0.24);
  overflow: hidden;
}
[data-theme="light"] .tool-preview {
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.06), transparent 40%),
    repeating-conic-gradient(from 0deg, rgba(20, 22, 42, 0.035) 0% 25%, transparent 0% 50%) 0 0 / 18px 18px,
    #fff;
}

.hint-row { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.dot-live { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse-dot 2.4s infinite; }

.record-json {
  padding: 12px;
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: #a5b4fc;
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
[data-theme="light"] .record-json { background: #0f1220; color: #c7d2fe; }

.method { font-family: var(--mono); font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 5px; letter-spacing: 0.04em; }
.method.get { color: #34d399; background: rgba(52, 211, 153, 0.14); }
.method.post { color: #fbbf24; background: rgba(251, 191, 36, 0.14); }
.method.ws { color: #67e8f9; background: rgba(34, 211, 238, 0.14); }

.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; }
.swatch {
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: center;
  cursor: pointer;
  transition: 0.18s;
}
.swatch:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.swatch i { display: block; height: 34px; border-radius: 7px; margin-bottom: 6px; }
.swatch span { font-size: 10.5px; color: var(--muted); font-family: var(--mono); }

/* 17. Footer / tabbar ---------------------------------------------------- */
.app-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px var(--pad) 26px;
  margin-top: auto;
  font-size: 11.5px;
  color: var(--faint);
  border-top: 1px solid var(--line);
}
.dot-sep { opacity: 0.5; }

.tabbar {
  display: none;
  position: fixed;
  z-index: 70;
  left: 12px; right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  height: 58px;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 14, 24, 0.86);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.9);
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}
[data-theme="light"] .tabbar { background: rgba(255, 255, 255, 0.9); }
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 13px;
  color: var(--muted);
  font-size: 10px;
  transition: 0.18s;
}
.tabbar a svg { width: 20px; height: 20px; }
.tabbar a.active { color: #fff; background: var(--grad); box-shadow: 0 8px 20px -12px rgba(139, 92, 246, 0.9); }
[data-theme="light"] .tabbar a.active { color: #fff; }

.scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(4, 5, 12, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fade-in 0.2s ease both;
  border: 0;
  padding: 0;
}

/* collapsed sidebar (desktop) */
@media (min-width: 1080px) {
  body.sidebar-collapsed { --sidebar-w: 84px; }
  body.sidebar-collapsed .brand-text,
  body.sidebar-collapsed .nav-label,
  body.sidebar-collapsed .nav-link span,
  body.sidebar-collapsed .nav-badge,
  body.sidebar-collapsed .nav-toggle > span,
  body.sidebar-collapsed .nav-toggle .chev,
  body.sidebar-collapsed .sidebar-foot { display: none; }
  body.sidebar-collapsed .nav-link,
  body.sidebar-collapsed .nav-toggle { justify-content: center; padding: 11px 0; }
  body.sidebar-collapsed .nav-sub { margin-left: 0; padding-left: 0; border-left: 0; }
  body.sidebar-collapsed .brand { justify-content: center; padding: 18px 0 14px; }
  body.sidebar-collapsed .nav { padding: 4px 6px 10px; }
  body.sidebar-collapsed .nav-link.active::before { left: -6px; }
  body.sidebar-collapsed #btn-collapse svg { transform: rotate(180deg); }
  body.sidebar-collapsed .nav-group { margin-top: 10px; }
  body.sidebar-collapsed .nav-group + .nav-group { border-top: 1px solid var(--line); padding-top: 10px; }
  body.sidebar-collapsed .nav-group-body[hidden] { display: block !important; }
}

/* 18. Responsive ---------------------------------------------------------- */
.only-mobile { display: none !important; }

@media (max-width: 1400px) {
  :root { --pad: 22px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-even { grid-template-columns: minmax(0, 1fr); }
  .search-trigger span { display: none; }
  .search-trigger { padding: 0 10px; }
}

@media (max-width: 1079px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-104%); width: 280px; padding: 0; }
  .sidebar-inner {
    border-radius: 0;
    border-right: 1px solid var(--line-strong);
    box-shadow: 28px 0 70px -40px rgba(0, 0, 0, 0.85);
  }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; }
  body.nav-open .tabbar { display: none; }
  body.nav-open { overflow: hidden; }
  .main { margin-left: 0; }
  .only-mobile { display: grid !important; }
  .only-desktop { display: none !important; }
  .tabbar { display: grid; }
  .app-footer { display: none; }
  .view { padding-bottom: 104px; }
  .search-trigger { display: none; }
  .topbar { padding: 0 14px; --topbar-h: 60px; }
  .view { padding-left: 16px; padding-right: 16px; padding-top: 18px; }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .server-row { grid-template-columns: 1fr 1fr auto; row-gap: 8px; }
  .server-row .server-cell:nth-child(4) { display: none; }
}

@media (max-width: 720px) {
  .crumbs > span { display: none; }
  .crumbs strong { font-size: 13.5px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .form-grid, .form-grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .page-head { align-items: flex-start; gap: 12px; }
  .page-head__main { flex-basis: 100%; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .card { border-radius: var(--r-md); }
  .card-body { padding: 15px; }
  .page-title { font-size: 21px; }
  .hero { padding: 20px; }
  .hero-row { gap: 18px; }
  .stat__value { font-size: 24px; }
  .modal { max-height: calc(100vh - 20px); }
  .modal-foot { flex-wrap: wrap; }
  .modal-foot .btn { flex: 1; }
  .server-row { grid-template-columns: 1fr auto; }
  .server-row .server-cell:nth-child(3),
  .server-row .server-cell:nth-child(4),
  .server-row .server-cell:nth-child(5) { display: none; }
}

@media (max-width: 560px) {
  .topbar-actions .pill { display: none; }
  .toolbar { padding: 10px 12px; }
  .toolbar .input { min-width: 0; }
  .toast-root { left: 12px; right: 12px; top: 10px; max-width: none; }
  .cmdk { padding: 8vh 12px 12px; }
  .page-actions .btn { padding: 0 10px; font-size: 12px; }
  .split-even, .split { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* 20. 登录页 -------------------------------------------------------------- */
body.login-mode { overflow: hidden; }
body.login-mode .sidebar,
body.login-mode .topbar,
body.login-mode .tabbar,
body.login-mode .app-footer,
body.login-mode .scrim { display: none !important; }
body.login-mode .main { margin-left: 0 !important; }
body.login-mode .view { padding: 0 !important; max-width: none !important; min-height: 100vh; }
body.login-mode .page { min-height: 100vh; animation: none; }

.login-page {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  min-height: 100vh;
}
.login-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 64px clamp(32px, 6vw, 92px);
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(90% 70% at 0% 0%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(70% 60% at 100% 100%, rgba(34, 211, 238, 0.14), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), transparent 55%);
}
.login-art::after {
  content: "";
  position: absolute;
  right: -160px; bottom: -160px;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.28);
  box-shadow: 0 0 0 60px rgba(139, 92, 246, 0.05), 0 0 0 130px rgba(34, 211, 238, 0.03);
  pointer-events: none;
}
.login-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.login-art h1 {
  position: relative;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.login-art h1 span {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.login-art > p { color: var(--muted); font-size: 13.5px; max-width: 40ch; line-height: 1.8; }
.login-points { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; font-size: 13px; color: var(--text-2); }
.login-points > div { display: flex; align-items: center; gap: 9px; }
.login-quote {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
  max-width: 38ch;
  line-height: 1.8;
}
.login-quote small { display: block; margin-top: 8px; color: var(--faint); font-size: 11px; }
.login-panel { display: grid; place-items: center; padding: 42px 26px; }
.login-card {
  width: min(410px, 100%);
  padding: 30px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}
[data-theme="light"] .login-card { background: #fff; }
.login-card h2 { font-size: 23px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.login-foot { margin-top: 16px; font-size: 11px; color: var(--faint); text-align: center; line-height: 1.7; }
.login-foot b { color: var(--text-2); font-weight: 500; }
.login-switch { margin-top: 14px; text-align: center; font-size: 12px; color: var(--muted); }
.login-switch .btn { display: inline-flex; }

@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-panel { padding: 30px 18px; }
  .login-card { padding: 24px; }
  body.login-mode .view { display: grid; place-items: center; }
  body.login-mode .page { width: 100%; min-height: auto; }
}

/* 21. 主题切换扩散动画 ---------------------------------------------------- */
/* 优先 View Transitions：旧页在下、新页快照在上，用圆形裁剪揭开（内容绝不会透出） */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2147483647; }

/* 不支持 View Transitions 时的回退层：不透明、置顶、切换后立即移除 */
.theme-ripple {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(900px 600px at 90% 0%, rgba(34, 211, 238, 0.1), transparent 60%),
    var(--ripple-bg, #070810);
  clip-path: circle(0px at var(--x, 50%) var(--y, 50%));
  transition: clip-path 0.68s linear;
  will-change: clip-path;
}
.theme-ripple[data-theme="light"] {
  --ripple-bg: #f3f4fb;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(139, 92, 246, 0.1), transparent 60%),
    radial-gradient(900px 600px at 90% 0%, rgba(34, 211, 238, 0.08), transparent 60%),
    var(--ripple-bg);
}
.theme-ripple.is-expanding {
  clip-path: circle(var(--r, 120vmax) at var(--x, 50%) var(--y, 50%));
}

@media (prefers-reduced-motion: reduce) {
  .theme-ripple { display: none; }
}

/* 22. 打印 --------------------------------------------------------------- */
@media print {
  .sidebar, .topbar, .tabbar, .app-footer, .app-bg, .toast-root { display: none !important; }
  .main { margin: 0 !important; }
  .view { padding: 0 !important; max-width: none; }
  body { background: #fff; color: #000; }
  .card { break-inside: avoid; border: 1px solid #ddd; box-shadow: none; }
}





