
    :root {
      --bg-base: #070b10;
      --bg-card: #0e151f;
      --bg-elevated: #15202e;
      --accent-primary: #10b981;
      --accent-secondary: #f59e0b;
      --accent-tertiary: #06b6d4;
      --accent-danger: #ef4444;
      --border-subtle: rgba(16, 185, 129, 0.22);
    }
    body.theme-sakhal {
      --bg-base: #060c16;
      --bg-card: #0c1728;
      --bg-elevated: #13233c;
      --accent-primary: #38bdf8;
      --accent-secondary: #fb923c;
      --accent-tertiary: #a855f7;
      --border-subtle: rgba(56, 189, 248, 0.25);
    }
    body.theme-livonia {
      --bg-base: #090d08;
      --bg-card: #121a10;
      --bg-elevated: #1b2818;
      --accent-primary: #84cc16;
      --accent-secondary: #eab308;
      --accent-tertiary: #14b8a6;
      --border-subtle: rgba(132, 204, 22, 0.25);
    }
    body.theme-badlands {
      --bg-base: #110b08;
      --bg-card: #1d140f;
      --bg-elevated: #2a1d15;
      --accent-primary: #f59e0b;
      --accent-secondary: #ef4444;
      --accent-tertiary: #2dd4bf;
      --border-subtle: rgba(245, 158, 11, 0.25);
    }
    body {
      font-family: 'Inter', sans-serif;
      background-color: var(--bg-base);
      color: #e2e8f0;
      overflow-x: hidden;
    }
    .font-mono-code {
      font-family: 'JetBrains Mono', monospace;
    }
    .hud-card {
      background: linear-gradient(145deg, var(--bg-card), rgba(15, 23, 42, 0.92));
      border: 1px solid var(--border-subtle);
      box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.65);
      transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .hud-card:hover {
      border-color: var(--accent-primary);
      box-shadow: 0 0 24px -6px rgba(16, 185, 129, 0.28);
    }
    .radar-sweep {
      animation: spin 6s linear infinite;
      transform-origin: center;
    }
    @keyframes spin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }
    .pulse-dot {
      animation: pulseGlow 2s infinite;
    }
    @keyframes pulseGlow {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.45; transform: scale(1.25); }
    }
    ::-webkit-scrollbar { width: 8px; height: 8px; }
    ::-webkit-scrollbar-track { background: #090e16; }
    ::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
    ::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }
    .md-render h1 { font-size: 1.65rem; font-weight: 800; color: #f8fafc; margin-bottom: 0.75rem; border-bottom: 1px solid rgba(148,163,184,0.2); padding-bottom: 0.5rem; }
    .md-render h2 { font-size: 1.25rem; font-weight: 700; color: var(--accent-primary); margin-top: 1.5rem; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.5rem; }
    .md-render h3 { font-size: 1.05rem; font-weight: 600; color: var(--accent-secondary); margin-top: 1.1rem; margin-bottom: 0.4rem; }
    .md-render p { color: #cbd5e1; line-height: 1.65; margin-bottom: 0.75rem; font-size: 0.94rem; }
    .md-render ul, .md-render ol { padding-left: 1.4rem; margin-bottom: 0.85rem; color: #cbd5e1; font-size: 0.93rem; }
    .md-render li { margin-bottom: 0.35rem; line-height: 1.55; list-style-type: disc; }
    .md-render pre { background: #06090e; border: 1px solid rgba(56, 189, 248, 0.22); border-radius: 0.5rem; padding: 0.9rem; overflow-x: auto; margin-bottom: 1rem; font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; color: #a7f3d0; position: relative; }
    .md-render code { font-family: 'JetBrains Mono', monospace; background: rgba(15, 23, 42, 0.85); color: #38bdf8; padding: 0.12rem 0.38rem; border-radius: 0.25rem; font-size: 0.84rem; }
    .md-render pre code { background: transparent; padding: 0; color: inherit; }
    .md-render table { width: 100%; border-collapse: collapse; margin-bottom: 1.15rem; font-size: 0.86rem; }
    .md-render th { background: rgba(16, 185, 129, 0.14); color: #f8fafc; font-weight: 700; text-align: left; padding: 0.6rem 0.75rem; border: 1px solid rgba(148, 163, 184, 0.2); }
    .md-render td { padding: 0.55rem 0.75rem; border: 1px solid rgba(148, 163, 184, 0.14); color: #cbd5e1; vertical-align: top; }
    .md-render tr:nth-child(even) td { background: rgba(15, 23, 42, 0.45); }
    .tab-btn-active {
      background: linear-gradient(90deg, rgba(16, 185, 129, 0.22), rgba(6, 182, 212, 0.15));
      border-color: var(--accent-primary) !important;
      color: #ffffff !important;
      box-shadow: 0 0 15px -3px rgba(16, 185, 129, 0.35);
    }
  