/* ═══════════════════════════════════════════════════════════════
   NEXUS — XA:I CORE Master Dashboard
   Design System v2 — angelehnt an PULSE + Brand-Guide v11
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Urbanist:wght@400;500;600&display=swap');
@font-face {
  font-family: 'Clash Display';
  font-weight: 600 700;
  font-display: swap;
  src: url('https://api.fontshare.com/v2/css?f[]=clash-display@600,700&display=swap');
}

/* ── DARK MODE (Default) ──────────────────────────────────── */
:root {
  /* Brand */
  --violet: #A855F7;
  --cyan:   #38BDF8;
  --mint:   #34D399;
  --violet-light: #C084FC;
  --cyan-light:   #67E8F9;
  --grad: linear-gradient(135deg, #A855F7 0%, #38BDF8 50%, #34D399 100%);

  /* Surfaces */
  --bg:       #070710;
  --bg2:      #0b0b14;
  --card:     #0d0d17;
  --card2:    #10101c;
  --inset:    #0a0a13;
  --line:     #1c1c2b;
  --line2:    #26263a;

  /* Text */
  --txt:      #F0F1F8;
  --txt-soft: rgba(255,255,255,0.78);
  --muted:    #9a9bb4;
  --dim:      #74778f;

  /* Status */
  --success: #34D399;
  --warn:    #FBBF24;
  --error:   #FB7185;
  --info:    #38BDF8;

  /* Effects */
  --shadow:   0 1px 0 rgba(255,255,255,.03) inset, 0 12px 40px -12px rgba(0,0,0,.6);
  --glow-v:   0 0 24px rgba(168,85,247,.25);
  --glow-c:   0 0 24px rgba(56,189,248,.25);

  /* Typography */
  --font-display: 'Clash Display', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-slogan:  'Urbanist', 'Inter', sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', 'Geist Mono', Menlo, Consolas, monospace;

  /* Sizes - größer als vorher */
  --text-xs:   12px;
  --text-sm:   13px;
  --text-base: 15px;
  --text-md:   16px;
  --text-lg:   18px;
  --text-xl:   22px;
  --text-2xl:  28px;
  --text-3xl:  36px;
  --text-4xl:  48px;

  /* Layout */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 18px;
  --nav-w:     260px;
  --top-h:     68px;

  /* Logo visibility */
  --logo-light-vis: 1;
  --logo-dark-vis:  0;
}

/* ── LIGHT MODE ───────────────────────────────────────────── */
[data-theme="light"] {
  --bg:       #f5f6fb;
  --bg2:      #ffffff;
  --card:     #ffffff;
  --card2:    #ffffff;
  --inset:    #eff1f7;
  --line:     #e3e6f0;
  --line2:    #d2d7e6;

  --txt:      #0a0a1a;
  --txt-soft: rgba(10,10,26,0.78);
  --muted:    #5a5e73;
  --dim:      #9499ad;

  --violet: #7c3aed;
  --cyan:   #0ea5e9;
  --mint:   #059669;
  --violet-light: #a78bfa;
  --cyan-light:   #38bdf8;
  --grad: linear-gradient(135deg, #7c3aed 0%, #0ea5e9 50%, #059669 100%);

  --success: #059669;
  --warn:    #d97706;
  --error:   #e11d48;
  --info:    #0ea5e9;

  --shadow: 0 1px 2px rgba(16,18,40,.04), 0 10px 30px -14px rgba(16,18,40,.14);
  --glow-v: 0 0 32px rgba(124,58,237,.18);
  --glow-c: 0 0 32px rgba(14,165,233,.18);

  --logo-light-vis: 0;
  --logo-dark-vis:  1;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 100%; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: var(--text-base);
  letter-spacing: 0.005em;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s, color 0.25s;
}

/* Aurora-Mesh Background (genau wie xaicore.de) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, rgba(168,85,247,.18), transparent 42%),
    radial-gradient(circle at 85% 30%, rgba(56,189,248,.14), transparent 46%),
    radial-gradient(circle at 50% 88%, rgba(52,211,153,.10), transparent 46%),
    radial-gradient(ellipse at 50% 50%, transparent 32%, rgba(7,7,16,.4) 100%);
  opacity: 0.9;
  transition: opacity 0.25s;
}
[data-theme="light"] body::before {
  background:
    radial-gradient(circle at 15% 10%, rgba(124,58,237,.06), transparent 42%),
    radial-gradient(circle at 85% 30%, rgba(14,165,233,.05), transparent 46%),
    radial-gradient(circle at 50% 88%, rgba(5,150,105,.04), transparent 46%);
}

/* Noise overlay für Grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── TOP BAR ──────────────────────────────────────────────── */
.topbar {
  position: relative;
  z-index: 50;
  height: var(--top-h);
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 24px;
  flex-shrink: 0;
}

.tb-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--txt);
}

.tb-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--glow-v);
}
.tb-mark svg { width: 22px; height: 22px; }

.tb-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.tb-name .sep { color: var(--violet); margin: 0 2px; }
.tb-sub {
  display: block;
  font-family: var(--font-slogan);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.tb-spacer { flex: 1; }

.tb-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--muted);
  padding: 6px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.5; transform: scale(0.92); }
}

.tb-time {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--muted);
  min-width: 80px;
  text-align: right;
}

.tb-theme {
  background: var(--card);
  border: 1px solid var(--line);
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: all 0.2s;
}
.tb-theme:hover { color: var(--txt); border-color: var(--line2); }
.tb-theme svg { width: 18px; height: 18px; }

.tb-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-base);
  font-weight: 500;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 14px 6px 6px;
}
.tb-avatar {
  width: 28px; height: 28px;
  background: var(--grad);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
}

/* ── LAYOUT ───────────────────────────────────────────────── */
.layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* ── SIDEBAR ──────────────────────────────────────────────── */
.sidebar {
  width: var(--nav-w);
  background: var(--bg2);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  padding: 16px 0;
}

.sidebar-section {
  padding: 8px 16px;
}
.sidebar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 10px 12px 6px;
  font-family: var(--font-display);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--muted);
  transition: all 0.18s;
  margin-bottom: 2px;
  border: 1px solid transparent;
  user-select: none;
}
.nav-item:hover {
  background: var(--card);
  color: var(--txt);
}
.nav-item.active {
  background: var(--card);
  color: var(--txt);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  width: 3px;
  height: 22px;
  background: var(--grad);
  border-radius: 0 3px 3px 0;
  margin-left: -16px;
}
.nav-item { position: relative; }

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.85;
}
.nav-item.active .nav-icon { color: var(--violet); opacity: 1; }

.nav-text { flex: 1; }

.nav-badge {
  background: var(--inset);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  min-width: 22px;
  text-align: center;
  font-family: var(--font-mono);
}
.nav-badge.success { background: rgba(52,211,153,.15); color: var(--success); }
.nav-badge.violet  { background: rgba(168,85,247,.15); color: var(--violet); }

.sidebar-foot {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid var(--line);
}
.sidebar-foot-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.18s;
}
.sidebar-foot-link:hover { background: var(--card); color: var(--txt); }
.sidebar-foot-link svg { width: 16px; height: 16px; opacity: 0.7; }

/* ── CONTENT ──────────────────────────────────────────────── */
.content {
  flex: 1;
  overflow-y: auto;
  padding: 32px 36px;
  background: transparent;
  position: relative;
}

.page-header { margin-bottom: 32px; }
.page-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--txt);
}
.page-sub {
  font-size: var(--text-md);
  color: var(--muted);
  font-weight: 400;
}

/* ── GRIDS ────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sect-gap { margin-bottom: 28px; }

/* ── CARDS ────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--line2); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.card-action {
  font-size: var(--text-sm);
  color: var(--cyan);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.card-action:hover { color: var(--violet); }

/* ── STATS ───────────────────────────────────────────────── */
.stat-big {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--txt);
}
.stat-label {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: 8px;
  font-weight: 500;
}

/* Hero Grid - die großen Stats oben */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.hero-stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
}
.hs-v::before { background: var(--violet); }
.hs-c::before { background: var(--cyan); }
.hs-m::before { background: var(--mint); }
.hs-a::before { background: var(--warn); }

.hs-icon {
  width: 36px;
  height: 36px;
  background: var(--inset);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.hs-icon svg { width: 20px; height: 20px; }
.hs-v .hs-icon svg { color: var(--violet); }
.hs-c .hs-icon svg { color: var(--cyan); }
.hs-m .hs-icon svg { color: var(--mint); }
.hs-a .hs-icon svg { color: var(--warn); }

.hs-val {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.hs-lbl {
  font-size: var(--text-sm);
  color: var(--muted);
  font-weight: 500;
}

/* ── BADGES ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-live    { background: rgba(52,211,153,.14); color: var(--success); }
.badge-pending { background: rgba(168,85,247,.14); color: var(--violet); }
.badge-err,
.badge-error   { background: rgba(251,113,133,.14); color: var(--error); }
.badge-demo    { background: rgba(56,189,248,.14); color: var(--info); }

/* ── PROGRESS BAR ────────────────────────────────────────── */
.pbar-wrap {
  background: var(--inset);
  border-radius: 99px;
  overflow: hidden;
  height: 6px;
  margin-top: 12px;
}
.pbar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s ease;
}

/* ── TABLE ───────────────────────────────────────────────── */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
}
.table td {
  padding: 14px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: var(--text-base);
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--inset); }

/* ── SYSTEM BAR ──────────────────────────────────────────── */
.sys-bar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.sys-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sys-item svg { width: 18px; height: 18px; color: var(--violet); opacity: 0.8; }
.sys-label {
  color: var(--muted);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.sys-val {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--txt);
}

/* ── LOADING + EMPTY ─────────────────────────────────────── */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--muted);
  font-size: var(--text-base);
  gap: 12px;
}
.spin {
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-top-color: var(--violet);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty {
  text-align: center;
  padding: 60px;
  color: var(--muted);
  font-size: var(--text-base);
}

/* ── POSITION COLORS ─────────────────────────────────────── */
.pos-top { color: var(--success); font-weight: 700; }
.pos-mid { color: var(--warn); }
.pos-low { color: var(--dim); }

/* ── SEARCH ──────────────────────────────────────────────── */
.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.search-input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: var(--text-md);
  color: var(--txt);
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}
.search-input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(168,85,247,.12);
}
.search-input::placeholder { color: var(--dim); }

.btn {
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--glow-v);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--glow-v), 0 8px 24px rgba(168,85,247,.3); }

.btn-ghost {
  background: var(--card);
  color: var(--txt);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--line2); background: var(--inset); }

/* ── SEARCH RESULTS ──────────────────────────────────────── */
.search-result-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.search-result-item:hover {
  border-color: var(--violet);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(168,85,247,.2);
}
.sri-path {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--violet);
  margin-bottom: 6px;
}
.sri-title {
  font-size: var(--text-md);
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--txt);
}
.sri-excerpt {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.6;
}

/* ── VAULT ──────────────────────────────────────────────── */
.vault-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
}
.vault-tree {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  overflow-y: auto;
  max-height: calc(100vh - 220px);
  box-shadow: var(--shadow);
}
.tree-folder,
.tree-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--muted);
  transition: all 0.15s;
}
.tree-folder { font-weight: 600; color: var(--txt-soft); }
.tree-file { padding-left: 32px; }
.tree-folder svg,
.tree-file svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.7; }
.tree-folder:hover,
.tree-file:hover { background: var(--inset); color: var(--txt); }
.tree-file.active {
  background: rgba(168,85,247,.10);
  color: var(--violet-light);
}

.vault-editor {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  overflow-y: auto;
  max-height: calc(100vh - 220px);
  box-shadow: var(--shadow);
}
.md-content {
  font-size: var(--text-md);
  line-height: 1.75;
  color: var(--txt-soft);
  max-width: 720px;
}
.md-content h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: var(--txt);
}
.md-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 28px 0 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  color: var(--txt);
}
.md-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--txt);
}
.md-content p { margin-bottom: 14px; }
.md-content ul,
.md-content ol { margin: 12px 0 16px 24px; }
.md-content li { margin-bottom: 6px; }
.md-content code {
  background: var(--inset);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--violet);
}
.md-content a { color: var(--cyan); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.15s; }
.md-content a:hover { border-bottom-color: var(--cyan); }
.md-content strong { color: var(--txt); font-weight: 600; }

/* ── CONNECTIONS ─────────────────────────────────────────── */
.conn-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: all 0.2s;
}
.conn-item:hover { border-color: var(--line2); }
.conn-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--inset);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.conn-icon svg { width: 20px; height: 20px; color: var(--violet); }
.conn-info { flex: 1; min-width: 0; }
.conn-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--txt);
  margin-bottom: 2px;
}
.conn-detail {
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ── SETTINGS ────────────────────────────────────────────── */
.settings-section { margin-bottom: 36px; }
.settings-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--txt);
}

.provider-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.provider-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}
.provider-card:hover { border-color: var(--line2); }
.provider-card.selected {
  border-color: var(--violet);
  background: rgba(168,85,247,.04);
  box-shadow: 0 0 0 2px rgba(168,85,247,.12);
}
.pc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.pc-logo {
  width: 36px;
  height: 36px;
  background: var(--inset);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pc-logo svg { width: 22px; height: 22px; color: var(--violet); }
.pc-name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--txt);
}
.pc-model-sel {
  width: 100%;
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: var(--text-sm);
  color: var(--txt);
  font-family: inherit;
  outline: none;
  cursor: pointer;
}
.pc-model-sel:focus { border-color: var(--violet); }

.effort-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.effort-btn {
  padding: 12px 22px;
  border-radius: 10px;
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  transition: all 0.18s;
  font-family: inherit;
}
.effort-btn:hover { color: var(--txt); border-color: var(--line2); }
.effort-btn.active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--glow-v);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .grid-4, .hero-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .vault-layout { grid-template-columns: 1fr; }
  .sidebar { width: 64px; }
  .sidebar .nav-text,
  .sidebar .sidebar-label,
  .sidebar .sidebar-foot-link span { display: none; }
  .content { padding: 20px; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
