:root,
[data-theme="dark"] {
  --bg: #070b14;
  --bg-elevated: #0d1424;
  --bg-panel: rgba(15, 23, 42, 0.72);
  --bg-panel-solid: #111827;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e8eefc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-blue: #3b82f6;
  --accent-purple: #a855f7;
  --accent-green: #22c55e;
  --accent-orange: #f59e0b;
  --glow: rgba(59, 130, 246, 0.25);
  --sidebar-w: 260px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ring-track: rgba(148, 163, 184, 0.2);
  --header-grad: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(59, 130, 246, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 0%, rgba(168, 85, 247, 0.12), transparent 50%);
}

[data-theme="light"] {
  --bg: #f1f5f9;
  --bg-elevated: #ffffff;
  --bg-panel: rgba(255, 255, 255, 0.85);
  --bg-panel-solid: #ffffff;
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.18);
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --glow: rgba(59, 130, 246, 0.15);
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --ring-track: rgba(15, 23, 42, 0.12);
  --header-grad: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(59, 130, 246, 0.12), transparent 60%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    var(--header-grad),
    linear-gradient(180deg, #0a1020 0%, var(--bg) 40%, #060912 100%);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

[data-theme="light"] body {
  background:
    var(--header-grad),
    linear-gradient(180deg, #e8eef8 0%, var(--bg) 45%, #e2e8f0 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  max-width: 100%;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.main-column {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding: 0 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.muted {
  color: var(--text-muted);
}

.eyebrow {
  margin: 0;
  color: #7dd3fc;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

[data-theme="light"] .eyebrow {
  color: #0284c7;
}

.page-title {
  margin: 6px 0;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.page-title span {
  background: linear-gradient(90deg, #60a5fa, #a855f7, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.text-link {
  color: #93c5fd;
  font-size: 0.9rem;
  font-weight: 500;
}

.text-link:hover {
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.btn--ghost {
  background: rgba(148, 163, 184, 0.08);
  border-color: var(--border);
  color: var(--text);
}

.btn--block {
  width: 100%;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: rgba(148, 163, 184, 0.12);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

@media (max-width: 980px) {
  .main-column {
    margin-left: 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-content {
    padding: 0 16px 32px;
  }
}
