/* SIA Platform — Design System v2.0
 * "Outcomes as a Service" — Genspark/Manus competitor
 * Dark theme, shadcn/ui-inspired tokens with brand identity
 * Brand: jade (#79e6bc), gold (#d8b06b), navy (#07131c)
 * CONFIDENTIAL — CATALYST-2026-001
 */

/* === Design Tokens === */
:root {
  /* Colors — Base */
  --navy-900: #07131c;
  --navy-800: #0a1822;
  --navy-700: #0f2030;
  --navy-600: #15293a;
  --navy-500: #1e3a52;
  --navy-400: #2a4a66;

  /* Brand */
  --jade: #79e6bc;
  --jade-dim: #5ec8a0;
  --jade-glow: rgba(121, 230, 188, 0.15);
  --jade-bright: #8ff5cc;
  --gold: #d8b06b;
  --gold-dim: #b8945a;
  --gold-glow: rgba(216, 176, 107, 0.12);

  /* Semantic */
  --bg: var(--navy-900);
  --bg-card: var(--navy-800);
  --bg-elevated: var(--navy-700);
  --bg-input: var(--navy-600);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-active: var(--jade);
  --text: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: var(--jade);
  --accent-bg: var(--jade-glow);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.1);
  --info: #3b82f6;
  --info-bg: rgba(59, 130, 246, 0.1);

  /* Typography */
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Fira Code', monospace;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 0.9375rem;
  --text-lg: 1.0625rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* Radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 24px rgba(121, 230, 188, 0.1);
  --shadow-glow-lg: 0 0 48px rgba(121, 230, 188, 0.15);

  /* Z-Index */
  --z-base: 1;
  --z-dropdown: 100;
  --z-modal: 200;
  --z-toast: 300;
  --z-tooltip: 400;

  /* Transitions */
  --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --sidebar-w: 240px;
  --sidebar-collapsed-w: 60px;
  --header-h: 56px;
}

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: var(--text-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
code { font-family: var(--font-mono); font-size: 0.9em; }
::selection { background: var(--jade-glow); color: var(--jade-bright); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--navy-500); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy-400); }

/* === Layout === */
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 var(--space-6); }
.wrap-sm { max-width: 768px; margin: 0 auto; padding: 0 var(--space-6); }
.wrap-full { max-width: 100%; margin: 0; padding: 0 var(--space-6); }

/* === Sidebar Nav === */
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w);
  background: var(--navy-800);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: var(--z-dropdown);
  transition: width var(--transition);
  overflow: hidden;
}
.sidebar-brand {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  height: var(--header-h); border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: var(--text-lg); white-space: nowrap;
}
.sidebar-brand .brand-mark {
  width: 28px; height: 28px; background: var(--jade); border-radius: 6px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  flex-shrink: 0;
}
.sidebar-nav { flex: 1; padding: var(--space-4) var(--space-2); overflow-y: auto; }
.sidebar-section { margin-bottom: var(--space-6); }
.sidebar-section-label {
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); padding: 0 var(--space-4) var(--space-2); font-weight: 600;
}
.sidebar-link {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius);
  color: var(--text-secondary); font-size: var(--text-sm); font-weight: 500;
  transition: all var(--transition); white-space: nowrap;
}
.sidebar-link:hover { color: var(--text); background: var(--bg-elevated); }
.sidebar-link.active { color: var(--jade); background: var(--jade-glow); }
.sidebar-link-icon { width: 20px; text-align: center; flex-shrink: 0; font-size: 1.1rem; }
.sidebar-footer { padding: var(--space-4) var(--space-6); border-top: 1px solid var(--border); }

/* === Main with sidebar === */
.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.main-header {
  position: sticky; top: 0; z-index: var(--z-dropdown);
  background: rgba(7, 19, 28, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--space-6);
}
.main-content { flex: 1; padding: var(--space-8) var(--space-6); }

/* === Legacy top nav (for landing/auth) === */
.nav {
  position: sticky; top: 0; z-index: var(--z-dropdown);
  background: rgba(7, 19, 28, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.nav-left { display: flex; align-items: center; gap: var(--space-6); }
.brand { display: flex; align-items: center; gap: var(--space-2); font-weight: 700; font-size: var(--text-lg); }
.brand-mark { width: 24px; height: 24px; background: var(--jade); border-radius: 4px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.nav-links { display: flex; gap: var(--space-1); }
.nav-links a {
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: var(--text-sm); font-weight: 500;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--bg-elevated); }
.nav-links a.active { color: var(--jade); background: var(--jade-glow); }
.nav-right { display: flex; align-items: center; gap: var(--space-3); }
.nav-hamburger { display: none; padding: var(--space-2); }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius);
  font-size: var(--text-sm); font-weight: 500;
  transition: all var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--jade); color: var(--navy-900); font-weight: 600; }
.btn-primary:hover { background: var(--jade-dim); box-shadow: var(--shadow-glow); }
.btn-primary:active { transform: scale(0.98); }
.btn-ghost { color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text); background: var(--bg-elevated); }
.btn-outline { border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--border-hover); background: var(--bg-elevated); }
.btn-gold { background: var(--gold); color: var(--navy-900); font-weight: 600; }
.btn-gold:hover { background: var(--gold-dim); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--danger-bg); }
.btn-sm { padding: var(--space-2) var(--space-3); font-size: var(--text-xs); }
.btn-lg { padding: var(--space-4) var(--space-6); font-size: var(--text-base); }
.btn-xl { padding: var(--space-4) var(--space-8); font-size: var(--text-lg); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-icon { padding: var(--space-2); width: 36px; height: 36px; }

/* === Cards === */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-6);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: var(--border-hover); }
.card-elevated { background: var(--bg-elevated); box-shadow: var(--shadow); }
.card-glow:hover { border-color: var(--jade); box-shadow: var(--shadow-glow); }
.card-flush { padding: 0; overflow: hidden; }

/* === Inputs === */
.input {
  width: 100%; padding: var(--space-3) var(--space-4);
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: var(--text-base);
  transition: border-color var(--transition);
}
.input:focus { outline: none; border-color: var(--jade); box-shadow: 0 0 0 3px var(--jade-glow); }
.input::placeholder { color: var(--text-muted); }
textarea.input { resize: vertical; min-height: 80px; font-family: var(--font-mono); }
label { display: block; font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: var(--space-2); font-weight: 500; }

/* === Badges === */
.badge {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: 2px var(--space-2); border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 500;
}
.badge-jade { background: var(--jade-glow); color: var(--jade); }
.badge-gold { background: var(--gold-glow); color: var(--gold); }
.badge-neutral { background: var(--bg-elevated); color: var(--text-secondary); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }

/* === Agent Cards === */
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-4); }
.agent-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-6);
  cursor: pointer; transition: all var(--transition);
  position: relative; overflow: hidden;
}
.agent-card:hover { border-color: var(--jade); box-shadow: var(--shadow-glow); transform: translateY(-2px); }
.agent-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--agent-color, var(--jade)); }
.agent-icon { font-size: 2rem; margin-bottom: var(--space-3); }
.agent-name { font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-1); }
.agent-tagline { color: var(--text-secondary); font-size: var(--text-sm); margin-bottom: var(--space-3); }
.agent-caps { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.agent-cap { font-size: var(--text-xs); padding: 2px 8px; border-radius: var(--radius-sm); background: var(--bg-elevated); color: var(--text-muted); }

/* === Agent Picker (Lego-style) === */
.picker-bar {
  display: flex; gap: var(--space-2); padding: var(--space-4);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow-x: auto; flex-wrap: wrap;
}
.picker-agent {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-full);
  background: var(--bg-elevated); border: 2px solid transparent;
  cursor: pointer; transition: all var(--transition); font-size: var(--text-sm); font-weight: 500;
}
.picker-agent:hover { border-color: var(--agent-color, var(--jade)); }
.picker-agent.selected { border-color: var(--agent-color, var(--jade)); background: var(--jade-glow); }
.picker-agent-icon { font-size: 1.2rem; }

/* === Chat === */
.chat-container { display: flex; flex-direction: column; height: calc(100vh - var(--header-h)); }
.chat-messages { flex: 1; overflow-y: auto; padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.chat-msg { max-width: 75%; padding: var(--space-3) var(--space-4); border-radius: var(--radius); }
.chat-msg-user { align-self: flex-end; background: var(--jade-glow); border: 1px solid var(--jade-dim); }
.chat-msg-assistant { align-self: flex-start; background: var(--bg-card); border: 1px solid var(--border); }
.chat-msg pre { background: var(--navy-900); padding: var(--space-3); border-radius: var(--radius-sm); margin: var(--space-2) 0; overflow-x: auto; font-size: var(--text-xs); }
.chat-input { padding: var(--space-4); border-top: 1px solid var(--border); display: flex; gap: var(--space-3); }
.chat-input .input { flex: 1; }

/* === SSE Progress / Swarm Viz === */
.swarm-progress { display: flex; flex-direction: column; gap: var(--space-3); }
.swarm-agent {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all var(--transition);
}
.swarm-agent.active { border-color: var(--jade); box-shadow: var(--shadow-glow); }
.swarm-agent.done { opacity: 0.6; border-color: var(--success); }
.swarm-agent-icon { font-size: 1.5rem; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); background: var(--bg-elevated); }
.swarm-agent-status { margin-left: auto; font-size: var(--text-xs); }
.swarm-agent-output { font-size: var(--text-xs); color: var(--text-muted); max-height: 60px; overflow-y: auto; margin-top: var(--space-1); }

/* Swarm flow visualization */
.swarm-flow { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; padding: var(--space-4) 0; }
.swarm-flow-node {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-1);
  padding: var(--space-3); border-radius: var(--radius); background: var(--bg-card);
  border: 2px solid var(--border); min-width: 100px; transition: all var(--transition);
}
.swarm-flow-node.active { border-color: var(--jade); box-shadow: var(--shadow-glow); }
.swarm-flow-node.done { border-color: var(--success); }
.swarm-flow-arrow { color: var(--text-muted); font-size: 1.2rem; }
.swarm-flow-node-icon { font-size: 1.5rem; }
.swarm-flow-node-name { font-size: var(--text-xs); font-weight: 500; }

/* === Live Preview === */
.preview-container {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4);
  height: calc(100vh - var(--header-h) - 120px);
}
.preview-pane {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column;
}
.preview-pane-header {
  padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: var(--text-sm); font-weight: 600;
}
.preview-frame {
  flex: 1; width: 100%; border: none; background: white;
}
.preview-code {
  flex: 1; overflow: auto; padding: var(--space-4);
  font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.6;
  white-space: pre-wrap;
}

/* === Pricing === */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-top: var(--space-8); }
.pricing-card { text-align: center; }
.pricing-price { font-size: var(--text-4xl); font-weight: 700; margin: var(--space-4) 0; }
.pricing-price small { font-size: var(--text-base); font-weight: 400; color: var(--text-secondary); }
.pricing-features { list-style: none; text-align: left; margin: var(--space-4) 0; }
.pricing-features li { padding: var(--space-2) 0; display: flex; align-items: center; gap: var(--space-2); color: var(--text-secondary); }
.pricing-features li::before { content: '✓'; color: var(--jade); font-weight: 700; }
.pricing-popular { border-color: var(--jade); position: relative; }
.pricing-popular::after { content: 'Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--jade); color: var(--navy-900); padding: 2px 12px; border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 600; }

/* === Template Gallery === */
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-4); }
.template-card { cursor: pointer; }
.template-card:hover { border-color: var(--jade); }

/* === File Explorer === */
.file-tree { background: var(--navy-900); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.file-tree-header { padding: var(--space-3); border-bottom: 1px solid var(--border); font-weight: 600; font-size: var(--text-sm); }
.file-tree-list { list-style: none; }
.file-tree-item { padding: var(--space-2) var(--space-3); cursor: pointer; font-size: var(--text-sm); font-family: var(--font-mono); }
.file-tree-item:hover { background: var(--bg-elevated); }
.file-tree-item.active { background: var(--jade-glow); color: var(--jade); }

/* === Code View === */
.code-view { background: var(--navy-900); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4); overflow-x: auto; font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.6; }

/* === Toast === */
.toast-container { position: fixed; bottom: var(--space-6); right: var(--space-6); z-index: var(--z-toast); display: flex; flex-direction: column; gap: var(--space-2); }
.toast {
  padding: var(--space-3) var(--space-4); border-radius: var(--radius);
  background: var(--bg-elevated); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); max-width: 360px;
  animation: slideIn var(--transition) ease-out;
}
.toast-success { border-color: var(--success); }
.toast-error { border-color: var(--danger); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* === Loading === */
.loading { display: flex; align-items: center; justify-content: center; padding: var(--space-12); color: var(--text-muted); }
.spinner { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--jade); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* === Section Headers === */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-6); }
.section-title { font-size: var(--text-2xl); font-weight: 700; }
.section-subtitle { color: var(--text-secondary); font-size: var(--text-sm); margin-top: var(--space-1); }

/* === Dashboard === */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-4); margin-bottom: var(--space-6); }
.stat-card { text-align: center; }
.stat-value { font-size: var(--text-3xl); font-weight: 700; color: var(--jade); }
.stat-label { color: var(--text-secondary); font-size: var(--text-sm); margin-top: var(--space-1); }

/* === Tabs === */
.tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--border); margin-bottom: var(--space-6); }
.tab { padding: var(--space-3) var(--space-4); color: var(--text-secondary); font-size: var(--text-sm); font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; transition: all var(--transition); }
.tab:hover { color: var(--text); }
.tab.active { color: var(--jade); border-bottom-color: var(--jade); }

/* === Phase indicator (TDD) === */
.tdd-phase { display: inline-flex; align-items: center; gap: var(--space-2); padding: 2px var(--space-2); border-radius: var(--radius-sm); font-size: var(--text-xs); font-weight: 600; }
.tdd-phase-RED { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.tdd-phase-GREEN { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.tdd-phase-VERIFY { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.tdd-phase-DESIGN { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

/* === Landing Page === */
.landing-hero {
  text-align: center; padding: var(--space-24) var(--space-6) var(--space-16);
  background: radial-gradient(ellipse at center, var(--jade-glow) 0%, transparent 60%);
}
.landing-title {
  font-size: var(--text-5xl); font-weight: 700; line-height: 1.1;
  margin-bottom: var(--space-6); letter-spacing: -0.02em;
}
.landing-title .accent { color: var(--jade); }
.landing-subtitle {
  font-size: var(--text-xl); color: var(--text-secondary); max-width: 640px;
  margin: 0 auto var(--space-8); line-height: 1.6;
}
.landing-cta { display: flex; gap: var(--space-4); justify-content: center; }
.landing-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6);
  padding: var(--space-12) 0;
}
.landing-feature { text-align: center; }
.landing-feature-icon { font-size: 3rem; margin-bottom: var(--space-4); }
.landing-feature-title { font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-2); }
.landing-feature-desc { color: var(--text-secondary); font-size: var(--text-sm); }
.landing-agents-preview {
  padding: var(--space-12) 0; text-align: center;
}
.landing-agents-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: var(--space-3);
  max-width: 900px; margin: var(--space-8) auto;
}
.landing-agent-chip {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-1);
  padding: var(--space-3); border-radius: var(--radius); background: var(--bg-card);
  border: 1px solid var(--border); transition: all var(--transition);
}
.landing-agent-chip:hover { border-color: var(--jade); transform: translateY(-2px); }
.landing-agent-chip-icon { font-size: 1.5rem; }
.landing-agent-chip-name { font-size: var(--text-xs); font-weight: 500; }

/* === Build Console === */
.build-console {
  background: var(--navy-900); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-4);
  font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.6;
  white-space: pre-wrap; max-height: 500px; overflow-y: auto;
}
.build-console-line { padding: 2px 0; }
.build-console-phase { font-weight: 600; color: var(--jade); margin: 12px 0 8px; }
.build-console-success { color: var(--success); }
.build-console-error { color: var(--danger); }

/* === Responsive === */
@media (max-width: 1024px) {
  .sidebar { width: var(--sidebar-collapsed-w); }
  .sidebar .sidebar-section-label,
  .sidebar .sidebar-link span:not(.sidebar-link-icon),
  .sidebar .sidebar-brand span:not(.brand-mark),
  .sidebar .sidebar-footer { display: none; }
  .sidebar-link { justify-content: center; }
  .main { margin-left: var(--sidebar-collapsed-w); }
  .landing-agents-grid { grid-template-columns: repeat(4, 1fr); }
  .landing-features { grid-template-columns: 1fr; }
  .preview-container { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: var(--space-4); }
  .pricing-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .wrap { padding: 0 var(--space-4); }
  .landing-agents-grid { grid-template-columns: repeat(3, 1fr); }
  .landing-title { font-size: var(--text-3xl); }
}
