/* ================================================================
   Mission Control Board — Design System v3
   Premium dark-theme dashboard CSS
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ================================================================
   1. DESIGN TOKENS
   ================================================================ */
:root {
  --brand: #ff6b9d;
  --brand-glow: rgba(255,107,157,0.15);
  --brand-dim: rgba(255,107,157,0.08);
  --bg: #060610;
  --bg-sidebar: #0a0a16;
  --bg-panel: rgba(14,14,28,0.6);
  --border: rgba(255,255,255,0.04);
  --text: rgba(255,255,255,0.85);
  --text-muted: rgba(255,255,255,0.35);
  --text-faint: rgba(255,255,255,0.15);
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #f59e0b;
  --purple: #a855f7;

  /* Legacy aliases */
  --bg-elevated: #0e0e1c;
  --bg-soft: rgba(255,255,255,0.03);
  --muted: rgba(255,255,255,0.35);
  --brand-primary: #ff6b9d;
  --brand-secondary: #a855f7;
  --warn: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 18px 45px rgba(4,8,17,0.45);
}

/* ================================================================
   2. LIGHT THEME
   ================================================================ */
[data-theme="light"] {
  --brand: #ff6b9d;
  --brand-glow: rgba(255,107,157,0.12);
  --brand-dim: rgba(255,107,157,0.06);
  --bg: #f5f5f7;
  --bg-sidebar: #ffffff;
  --bg-panel: rgba(255,255,255,0.8);
  --border: rgba(0,0,0,0.08);
  --text: rgba(0,0,0,0.85);
  --text-muted: rgba(0,0,0,0.45);
  --text-faint: rgba(0,0,0,0.15);
  --green: #16a34a;
  --red: #dc2626;
  --yellow: #d97706;
  --purple: #9333ea;

  --bg-elevated: #ffffff;
  --bg-soft: rgba(0,0,0,0.03);
  --muted: rgba(0,0,0,0.45);
  --brand-primary: #ff6b9d;
  --brand-secondary: #9333ea;
  --warn: #d97706;
  --danger: #dc2626;
  --shadow: 0 18px 45px rgba(0,0,0,0.08);
}

[data-theme="light"] body {
  background: var(--bg);
  color: var(--text);
}

[data-theme="light"] .sidebar {
  background: var(--bg-sidebar);
  border-right-color: var(--border);
}

[data-theme="light"] .card,
[data-theme="light"] .kpi-card.neutral {
  background: var(--bg-panel);
  border-color: var(--border);
}

[data-theme="light"] .log-box {
  background: #f0f0f4;
}

[data-theme="light"] .hdr {
  background: rgba(245,245,247,0.95);
}

[data-theme="light"] .login-card,
[data-theme="light"] .form-card {
  background: var(--bg-panel);
  border-color: var(--border);
}

[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="password"],
[data-theme="light"] input[type="datetime-local"],
[data-theme="light"] input[type="number"],
[data-theme="light"] textarea,
[data-theme="light"] select {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

/* ================================================================
   3. RESET & BASE
   ================================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.08) transparent; }

/* ================================================================
   4. ANIMATIONS
   ================================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 8px rgba(34,197,94,0.3); }
  50%      { box-shadow: 0 0 16px rgba(34,197,94,0.6); }
}

@keyframes pulseRing {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.4); opacity: 0; }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes lucianPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,107,157,0.5); transform: translateY(0); }
  60%  { box-shadow: 0 0 0 12px rgba(255,107,157,0); transform: translateY(-1px); }
  100% { box-shadow: 0 0 0 0 rgba(255,107,157,0); transform: translateY(0); }
}

/* ================================================================
   5. SIDEBAR (240px fixed left)
   ================================================================ */
.sidebar {
  width: 240px; height: 100vh; position: fixed; left: 0; top: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden; z-index: 100;
}

/* Dashboard switcher */
.sw { padding: 16px 16px 0; display: flex; gap: 8px; }
.sw-btn {
  width: 40px; height: 36px; border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; transition: all 200ms ease;
  position: relative;
}
.sw-btn:hover:not(.on) { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.08); transform: translateY(-1px); }
.sw-btn.on {
  background: linear-gradient(135deg, rgba(255,107,157,0.15), rgba(255,107,157,0.05));
  border-color: rgba(255,107,157,0.25);
  box-shadow: 0 4px 16px rgba(255,107,157,0.12), 0 0 1px rgba(255,107,157,0.4);
}
.sw-btn:not(.on) { opacity: 0.3; }

/* Brand block */
.brand { padding: 20px 18px 16px; }
.brand h1 { font-size: 14px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.brand p { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,107,157,0.7); margin-top: 2px; }

/* Legacy brand elements */
.brand-title { margin: 0; font-size: 14px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.brand-subtitle { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,107,157,0.7); margin-top: 2px; }

/* Agent live indicator */
.agent-live {
  margin: 0 12px 12px; padding: 10px 12px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(34,197,94,0.06), rgba(34,197,94,0.01));
  border: 1px solid rgba(34,197,94,0.08);
}
.agent-live-row { display: flex; align-items: center; gap: 8px; }
.agent-live-dot { position: relative; width: 8px; height: 8px; }
.agent-live-dot::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--green); }
.agent-live-dot::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid rgba(34,197,94,0.4); animation: pulseRing 2s infinite; }
.agent-live-label { font-size: 12px; font-weight: 600; color: rgba(34,197,94,0.9); }
.agent-live-sub { font-size: 10px; color: rgba(255,255,255,0.2); margin-top: 4px; }

/* Legacy Lucian header */
.lucian-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.lucian-emoji {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: rgba(255,107,157,0.12); border: 1px solid rgba(255,107,157,0.45);
  box-shadow: 0 0 0 rgba(255,107,157,0.45);
}
.lucian-emoji.working { animation: lucianPulse 1.6s infinite; }
.lucian-status { font-size: 11px; color: var(--text-muted); }
.lucian-status strong { color: var(--brand); display: block; font-size: 12px; letter-spacing: 0.02em; }

/* Navigation */
.nav { flex: 1; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.ni {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.3); cursor: pointer;
  transition: all 150ms ease; text-decoration: none; border: 1px solid transparent;
}
.ni:hover { background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.6); }
.ni.on {
  background: linear-gradient(135deg, rgba(255,107,157,0.08), rgba(255,107,157,0.02));
  color: #ff6b9d; font-weight: 600; border-color: rgba(255,107,157,0.1);
}
.ni-ic { width: 18px; text-align: center; font-size: 14px; }
.ni .badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,107,157,0.12); color: #ff6b9d;
}
.ni .badge.red { background: rgba(239,68,68,0.12); color: #ef4444; }
.nav-sep { height: 1px; background: var(--border); margin: 8px 10px; }
.nav-div { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); padding: 12px 10px 4px; }

/* Legacy nav links */
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  color: rgba(255,255,255,0.3); text-decoration: none; border: 1px solid transparent;
  font-size: 13px; font-weight: 500; cursor: pointer; transition: all 150ms ease;
}
.nav a:hover,
.nav a.active {
  background: linear-gradient(135deg, rgba(255,107,157,0.08), rgba(255,107,157,0.02));
  color: #ff6b9d; font-weight: 600; border-color: rgba(255,107,157,0.1);
}

/* Sidebar footer */
.sb-foot {
  padding: 14px 16px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.avatar {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,107,157,0.2), rgba(168,85,247,0.2));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #ff6b9d;
}
.sb-foot .meta { flex: 1; }
.sb-foot .name { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.7); }
.sb-foot .role { font-size: 10px; color: rgba(255,255,255,0.2); }
.sb-foot .logout { color: var(--text-faint); cursor: pointer; font-size: 14px; text-decoration: none; }
.sb-foot .logout:hover { color: var(--red); }

/* ================================================================
   6. MAIN LAYOUT
   ================================================================ */
.main { margin-left: 240px; flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* Legacy app-shell */
.app-shell { display: flex; min-height: 100vh; }
.app-shell .sidebar { position: sticky; top: 0; height: 100vh; }
.app-shell .main { margin-left: 0; }

/* Header */
.hdr {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 28px; border-bottom: 1px solid var(--border);
  background: rgba(10,10,22,0.95); backdrop-filter: blur(16px);
  position: sticky; top: 0; z-index: 10;
}
.hdr h1 { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.hdr-actions { display: flex; gap: 6px; }
.hdr-btn {
  padding: 6px 14px; border-radius: 8px; font-size: 11px; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.5); cursor: pointer; transition: all 150ms ease;
  font-family: 'Inter', sans-serif;
}
.hdr-btn:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.8); transform: translateY(-1px); }
.hdr-btn:active { transform: scale(0.97); }
.hdr-btn.primary {
  background: linear-gradient(135deg, #ff6b9d, #ff4081);
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 12px rgba(255,107,157,0.3);
}
.hdr-btn.primary:hover { box-shadow: 0 6px 20px rgba(255,107,157,0.4); }

/* Legacy main-header */
.main-header {
  border-bottom: 1px solid var(--border); padding: 16px 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: rgba(10,10,22,0.95); backdrop-filter: blur(16px);
  position: sticky; top: 0; z-index: 10;
}
.main-header h1 { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; color: #fff; margin: 0; }

/* Content area */
.content { padding: 20px 28px; flex: 1; }

/* ================================================================
   7. KPI CARDS (hero row, 4 columns)
   ================================================================ */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi-card {
  padding: 16px 18px; border-radius: 14px; position: relative; overflow: hidden;
  animation: fadeUp 400ms ease-out both;
}
.kpi-card:nth-child(1) { animation-delay: 0ms; }
.kpi-card:nth-child(2) { animation-delay: 60ms; }
.kpi-card:nth-child(3) { animation-delay: 120ms; }
.kpi-card:nth-child(4) { animation-delay: 180ms; }

.kpi-card.hero {
  background: linear-gradient(135deg, rgba(255,107,157,0.12), rgba(255,64,129,0.04));
  border: 1px solid rgba(255,107,157,0.15);
}
.kpi-card.hero::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,157,0.08), transparent 70%);
}
.kpi-card.neutral {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
}
.kpi-card.success {
  background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(34,197,94,0.02));
  border: 1px solid rgba(34,197,94,0.1);
}
.kpi-card.warning {
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(245,158,11,0.02));
  border: 1px solid rgba(245,158,11,0.1);
}

.kpi-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 8px; }
.kpi-val { font-size: 32px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.kpi-card.hero .kpi-val { color: #ff6b9d; }
.kpi-card.neutral .kpi-val { color: #fff; }
.kpi-card.success .kpi-val { color: var(--green); }
.kpi-card.warning .kpi-val { color: var(--yellow); }

.kpi-delta { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; margin-top: 6px; }
.kpi-delta.up { color: rgba(34,197,94,0.8); }
.kpi-delta.down { color: rgba(239,68,68,0.8); }
.kpi-delta.flat { color: rgba(255,255,255,0.25); }

/* Mini sparkline bar chart */
.spark { display: flex; align-items: flex-end; gap: 2px; height: 24px; margin-top: 8px; }
.spark-bar { width: 4px; min-width: 4px; min-height: 2px; flex-shrink: 0; border-radius: 2px; transition: height 300ms ease; }

/* ================================================================
   8. GRID & CONTENT CARDS
   ================================================================ */
.grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-bottom: 16px;
}

.card {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 18px; position: relative; overflow: hidden;
  animation: fadeUp 400ms ease-out both;
  transition: border-color 200ms ease;
}
.card:hover { border-color: rgba(255,255,255,0.07); }

.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-title { font-size: 13px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; }
.card-title .icon { font-size: 15px; }
.card-action {
  font-size: 10px; font-weight: 600; color: rgba(255,107,157,0.5);
  cursor: pointer; padding: 3px 8px; border-radius: 6px;
  transition: all 150ms; text-decoration: none;
}
.card-action:hover { color: #ff6b9d; background: rgba(255,107,157,0.08); }

/* Legacy card headings */
.card h2,
.card h3 {
  margin: 0 0 10px; font-size: 12px; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em;
}
.card h4 { margin: 10px 0 8px; font-size: 13px; color: var(--text); }

/* Panel (legacy) */
.panel {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px;
}
.panel h2 {
  margin: 0 0 10px; font-size: 12px; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em;
}

/* ================================================================
   9. TASK ROWS
   ================================================================ */
.task { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; transition: background 150ms; cursor: pointer; }
.task:hover { background: rgba(255,255,255,0.03); }
.task + .task { margin-top: 2px; }
.task-indicator { width: 3px; height: 28px; border-radius: 2px; flex-shrink: 0; }
.task-indicator.wip { background: linear-gradient(180deg, #ff6b9d, rgba(255,107,157,0.3)); }
.task-indicator.review { background: linear-gradient(180deg, #a855f7, rgba(168,85,247,0.3)); }
.task-indicator.blocked { background: linear-gradient(180deg, #ef4444, rgba(239,68,68,0.3)); }
.task-body { flex: 1; min-width: 0; }
.task-name { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-meta { font-size: 10px; color: rgba(255,255,255,0.25); margin-top: 2px; }
.task-tag {
  padding: 3px 8px; border-radius: 6px; font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; flex-shrink: 0;
}

/* ================================================================
   10. AGENT CARDS
   ================================================================ */
.agents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.agent-card {
  padding: 12px; border-radius: 10px; text-align: center;
  background: rgba(255,255,255,0.02); border: 1px solid var(--border);
  transition: all 200ms ease;
}
.agent-card:hover { border-color: rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); }
.agent-card .emoji { font-size: 24px; margin-bottom: 6px; }
.agent-card .agent-name { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.8); }
.agent-card .agent-st { font-size: 10px; margin-top: 4px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.agent-card .dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.agent-card .dot.on { background: var(--green); box-shadow: 0 0 6px rgba(34,197,94,0.5); }
.agent-card .dot.off { background: var(--text-faint); }

/* ================================================================
   11. REVIEWS
   ================================================================ */
.review { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.02); transition: background 150ms; }
.review:hover { background: rgba(255,255,255,0.04); }
.review + .review { margin-top: 6px; }
.review-body { flex: 1; min-width: 0; }
.review-title { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review-sub { font-size: 10px; color: rgba(168,85,247,0.6); margin-top: 2px; }
.review-time { font-size: 10px; color: rgba(245,158,11,0.6); flex-shrink: 0; }
.review-btns { display: flex; gap: 4px; flex-shrink: 0; }
.rbtn {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  transition: all 120ms ease; background: transparent;
}
.rbtn:active { transform: scale(0.9); }
.rbtn.yes { border-color: rgba(34,197,94,0.2); color: var(--green); }
.rbtn.yes:hover { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.4); }
.rbtn.no { border-color: rgba(239,68,68,0.15); color: var(--red); }
.rbtn.no:hover { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.3); }

/* ================================================================
   12. TIMELINE
   ================================================================ */
.tl-item { display: flex; gap: 10px; padding: 6px 0; }
.tl-item + .tl-item { border-top: 1px solid rgba(255,255,255,0.03); }
.tl-dot-wrap { display: flex; flex-direction: column; align-items: center; width: 20px; padding-top: 4px; }
.tl-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.tl-dot.approve { background: var(--green); }
.tl-dot.reject { background: var(--red); }
.tl-dot.move { background: var(--brand); }
.tl-dot.create { background: var(--purple); }
.tl-line { width: 1px; flex: 1; background: var(--border); margin-top: 4px; }
.tl-body { flex: 1; }
.tl-text { font-size: 12px; color: rgba(255,255,255,0.5); }
.tl-text strong { color: rgba(255,255,255,0.8); font-weight: 600; }
.tl-text a { color: var(--brand); text-decoration: none; font-weight: 600; }
.tl-time { font-size: 10px; color: var(--text-faint); margin-top: 2px; }

/* ================================================================
   13. LOGS (new)
   ================================================================ */
.log-box {
  background: #04040a; border-radius: 10px; padding: 10px 12px;
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace; font-size: 11px; line-height: 1.7;
  max-height: 160px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.06) transparent;
}
.log { display: flex; gap: 8px; }
.log + .log { border-top: 1px solid rgba(255,255,255,0.02); }
.log-t { color: rgba(255,255,255,0.12); min-width: 40px; }
.log-l { min-width: 32px; font-weight: 700; font-size: 10px; }
.log-l.ok { color: rgba(34,197,94,0.6); }
.log-l.wr { color: rgba(245,158,11,0.6); }
.log-l.er { color: rgba(239,68,68,0.6); }
.log-m { color: var(--text-muted); }

/* ================================================================
   14. MISC NEW COMPONENTS
   ================================================================ */
.more {
  display: block; text-align: center; padding: 8px; margin-top: 6px;
  font-size: 10px; font-weight: 600; color: var(--text-faint);
  cursor: pointer; border-radius: 8px; transition: all 150ms; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.03);
}
.more:hover { color: var(--text-muted); background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.06); }

.tag {
  position: fixed; top: 12px; right: 16px; padding: 4px 12px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,107,157,0.15), rgba(168,85,247,0.1));
  border: 1px solid rgba(255,107,157,0.2);
  font-size: 10px; font-weight: 800; color: #ff6b9d; z-index: 200; letter-spacing: 0.06em;
}

.sec-label {
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.12); margin-bottom: 10px; margin-top: 4px;
}

.feed-section { margin-bottom: 16px; }
.feed-label {
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.12); margin-bottom: 8px;
}

/* ================================================================
   15. BACKWARDS-COMPATIBLE: Typography
   ================================================================ */
.kpi { font-size: 40px; font-weight: 900; margin: 0; letter-spacing: -0.04em; line-height: 1; }
.muted { color: var(--text-muted); font-size: 13px; }
.subtitle { color: var(--text-muted); font-size: 14px; }
.big-number { font-size: 48px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }

/* ================================================================
   16. BACKWARDS-COMPATIBLE: Layout
   ================================================================ */
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ================================================================
   17. BACKWARDS-COMPATIBLE: Pills, Dots, Badges
   ================================================================ */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; font-size: 12px; padding: 4px 10px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.02);
}
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.ok { background: var(--green); }
.dot.fail { background: var(--red); }
.dot.warn { background: var(--yellow); }

.badge {
  display: inline-block; padding: 4px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 500;
}
.badge.success, .badge-low { background: rgba(34,197,94,0.12); color: var(--green); }
.badge.danger, .badge-high { background: rgba(239,68,68,0.12); color: var(--red); }
.badge.warning, .badge-medium { background: rgba(245,158,11,0.12); color: var(--yellow); }

/* ================================================================
   18. BACKWARDS-COMPATIBLE: Buttons
   ================================================================ */
.btn {
  border: 1px solid var(--border); background: rgba(255,255,255,0.03);
  color: var(--text); border-radius: 10px; font-size: 13px;
  padding: 8px 14px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Inter', sans-serif; font-weight: 500;
  transition: all 150ms ease;
}
.btn:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, #ff6b9d, #ff4081);
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 12px rgba(255,107,157,0.3);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(255,107,157,0.4); background: linear-gradient(135deg, #ff7daa, #ff4081); }

.btn-danger {
  border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.1); color: var(--red);
}
.btn-danger:hover { background: rgba(239,68,68,0.2); }

.btn-approve {
  border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.1); color: var(--green);
}
.btn-approve:hover { background: rgba(34,197,94,0.2); }

.btn-reject {
  border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.1); color: var(--red);
}
.btn-reject:hover { background: rgba(239,68,68,0.2); }

.btn-cancel {
  border-color: var(--border); background: rgba(255,255,255,0.03); color: var(--text-muted);
}
.btn-cancel:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.btn-del {
  border-color: rgba(239,68,68,0.2); background: transparent; color: var(--red); font-size: 12px;
}
.btn-del:hover { background: rgba(239,68,68,0.1); }

.btn-sm { padding: 4px 10px; font-size: 11px; border-radius: 8px; }

.btn-submit {
  background: linear-gradient(135deg, #ff6b9d, #ff4081);
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 12px rgba(255,107,157,0.3);
}
.btn-submit:hover { box-shadow: 0 6px 20px rgba(255,107,157,0.4); }

.btn-rate {
  border-color: rgba(168,85,247,0.3); background: rgba(168,85,247,0.1); color: var(--purple);
}
.btn-rate:hover { background: rgba(168,85,247,0.2); }

/* ================================================================
   19. BACKWARDS-COMPATIBLE: Forms
   ================================================================ */
.form-card {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 11px; font-weight: 600; color: var(--text-muted);
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-inline { display: flex; gap: 10px; align-items: center; }

input[type="text"],
input[type="password"],
input[type="datetime-local"],
input[type="number"],
textarea,
select {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 10px;
  background: rgba(6,6,16,0.8); color: var(--text);
  font-size: 14px; font-family: 'Inter', sans-serif;
  transition: border-color 150ms ease;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: rgba(255,107,157,0.4);
  box-shadow: 0 0 0 3px rgba(255,107,157,0.08);
}
textarea { min-height: 120px; resize: vertical; }
input[type="checkbox"] { accent-color: var(--brand); }
.actions { display: flex; gap: 12px; margin-top: 24px; }

/* ================================================================
   20. BACKWARDS-COMPATIBLE: Kanban Board
   ================================================================ */
.kanban-board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.kanban-column {
  min-width: 280px; max-width: 320px; flex-shrink: 0;
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: 14px; display: flex; flex-direction: column;
}
.kanban-column-header {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted);
  display: flex; align-items: center; justify-content: space-between;
}
.kanban-cards { padding: 10px; flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.kanban-card {
  background: rgba(255,255,255,0.02); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px; cursor: pointer;
  transition: all 150ms ease;
}
.kanban-card:hover { border-color: rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); }
.kanban-card.selected { border-color: rgba(255,107,157,0.3); background: rgba(255,107,157,0.04); }
.kanban-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); color: var(--text-muted);
}

/* ================================================================
   21. BACKWARDS-COMPATIBLE: Filter Bar
   ================================================================ */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.filter-tabs { display: flex; gap: 4px; }
.filter-tab {
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-muted); font-size: 12px; font-weight: 500;
  cursor: pointer; transition: all 150ms ease; font-family: 'Inter', sans-serif;
}
.filter-tab:hover { background: rgba(255,255,255,0.03); color: var(--text); }
.filter-tab.active {
  background: linear-gradient(135deg, rgba(255,107,157,0.12), rgba(255,107,157,0.04));
  border-color: rgba(255,107,157,0.2); color: #ff6b9d; font-weight: 600;
}
.filter-btn {
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-muted); font-size: 13px; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: all 150ms ease;
}
.filter-btn:hover, .filter-btn.active {
  background: rgba(255,255,255,0.03); border-color: rgba(255,107,157,0.2); color: var(--text);
}

/* Legacy filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }

/* ================================================================
   22. BACKWARDS-COMPATIBLE: Login
   ================================================================ */
.login-wrapper {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}
.login-card {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 48px; width: 100%; max-width: 380px;
  text-align: center; box-shadow: var(--shadow);
}
.login-card .logo, .logo { font-size: 48px; margin-bottom: 16px; display: block; }
.login-card h1 { font-size: 24px; margin: 0 0 8px; color: #fff; font-weight: 800; }
.login-card .subtitle { color: var(--text-muted); margin-bottom: 32px; font-size: 14px; }
.login-card .form-group { margin-bottom: 16px; }
.login-card button {
  width: 100%; padding: 12px;
  background: linear-gradient(135deg, #ff6b9d, #ff4081);
  border: none; border-radius: 10px; color: #fff;
  font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 12px rgba(255,107,157,0.3);
  transition: all 150ms ease;
}
.login-card button:hover { box-shadow: 0 6px 20px rgba(255,107,157,0.4); transform: translateY(-1px); }
.login-card .error-msg, .error-msg { color: var(--red); margin-top: 16px; font-size: 14px; }

/* ================================================================
   23. BACKWARDS-COMPATIBLE: Choose / Dashboard Picker
   ================================================================ */
.choose-wrapper {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}
.choose-card {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 48px; width: 100%; max-width: 600px;
  text-align: center;
}
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 28px; }
.dashboard-option {
  background: rgba(255,255,255,0.02); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 16px; text-align: center;
  cursor: pointer; transition: all 200ms ease; text-decoration: none; color: var(--text);
}
.dashboard-option:hover { border-color: rgba(255,107,157,0.3); background: rgba(255,107,157,0.04); transform: translateY(-2px); }

/* MCB_CHOOSE_CARDS_V1 — Dashboard option content styles */
.dashboard-option .icon { font-size: 36px; line-height: 1; margin-bottom: 12px; display: block; }
.dashboard-option .label {
  font-size: 15px; font-weight: 700; color: var(--text);
  letter-spacing: -0.01em; margin-bottom: 6px;
}
.dashboard-option .desc {
  font-size: 11px; font-weight: 500; color: var(--text-muted);
  line-height: 1.4; word-wrap: break-word; overflow-wrap: break-word;
}
.dashboard-option:hover .label { color: #ff6b9d; }

/* ================================================================
   24. BACKWARDS-COMPATIBLE: Alerts
   ================================================================ */
.alert {
  padding: 12px 16px; border-radius: 10px; margin-bottom: 16px;
  font-size: 13px; border: 1px solid;
}
.alert-success {
  background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.15); color: var(--green);
}

/* ================================================================
   25. BACKWARDS-COMPATIBLE: Modal
   ================================================================ */
.modal-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px); z-index: 500;
  display: flex; align-items: center; justify-content: center;
}
.modal {
  background: var(--bg-sidebar); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px; max-width: 500px; width: 90%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.modal-actions { display: flex; gap: 10px; margin-top: 20px; justify-content: flex-end; }

/* ================================================================
   26. BACKWARDS-COMPATIBLE: Empty State
   ================================================================ */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
  font-size: 14px;
}
.empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--text-muted); }

/* ================================================================
   27. BACKWARDS-COMPATIBLE: Theme Toggle
   ================================================================ */
.theme-toggle {
  position: fixed; bottom: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--bg-panel); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; z-index: 200;
  transition: all 150ms ease;
}
.theme-toggle:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* ================================================================
   28. BACKWARDS-COMPATIBLE: Logs (old terminal)
   ================================================================ */
.live-logs {
  background: #04040a; border: 1px solid var(--border); border-radius: 12px;
  padding: 10px; overflow: auto; flex: 1;
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
  font-size: 12px; line-height: 1.55;
}
.log-entry {
  padding: 4px 6px; border-bottom: 1px solid rgba(255,255,255,0.03);
  display: flex; gap: 8px; white-space: pre-wrap;
}
.log-entry:last-child { border-bottom: none; }
.log-time { color: rgba(255,255,255,0.12); min-width: 70px; flex-shrink: 0; }
.log-level { min-width: 48px; font-weight: 700; font-size: 11px; flex-shrink: 0; }
.log-level.info { color: rgba(168,85,247,0.7); }
.log-level.warn { color: rgba(245,158,11,0.7); }
.log-level.error { color: rgba(239,68,68,0.7); }
.log-level.debug { color: rgba(255,255,255,0.25); }
.log-msg { color: var(--text-muted); flex: 1; }

.live-indicator { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  animation: glow 2s infinite;
}

/* Legacy logs panel */
.logs-panel { height: calc(100vh - 200px); min-height: 420px; display: flex; flex-direction: column; }
.logs-controls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.logs-stream {
  border: 1px solid var(--border); background: #04040a; border-radius: 12px;
  padding: 10px; overflow: auto; flex: 1;
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace; font-size: 12px; line-height: 1.55;
}
.log-line { padding: 4px 6px; border-bottom: 1px solid rgba(255,255,255,0.03); white-space: pre-wrap; }
.log-line:last-child { border-bottom: none; }
.log-line .lvl { display: inline-block; min-width: 48px; font-weight: 700; }
.log-line.info .lvl { color: rgba(168,85,247,0.7); }
.log-line.warn .lvl { color: rgba(245,158,11,0.7); }
.log-line.error .lvl { color: rgba(239,68,68,0.7); }
.log-line.debug .lvl { color: rgba(255,255,255,0.25); }

/* ================================================================
   29. BACKWARDS-COMPATIBLE: Tables
   ================================================================ */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead { border-bottom: 2px solid var(--border); }
th {
  padding: 10px 12px; text-align: left; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted);
}
td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
tbody tr { transition: background 150ms; }
tbody tr:hover { background: rgba(255,255,255,0.02); }

/* ================================================================
   30. BACKWARDS-COMPATIBLE: Status Colors
   ================================================================ */
.status-open, .st-todo { color: var(--text-muted); }
.status-in-progress, .st-in-progress, .st-inprogress { color: var(--brand); }
.status-done, .st-done { color: var(--green); }
.status-review, .st-review { color: var(--purple); }
.status-blocked, .st-blocked { color: var(--red); }

/* Status pills */
.status-pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
}
.status-pill[class*="todo"] { background: rgba(255,255,255,0.04); color: var(--text-muted); }
.status-pill[class*="in-progress"] { background: rgba(255,107,157,0.1); color: var(--brand); }
.status-pill[class*="review"] { background: rgba(168,85,247,0.1); color: var(--purple); }
.status-pill[class*="done"] { background: rgba(34,197,94,0.1); color: var(--green); }
.status-pill[class*="blocked"] { background: rgba(239,68,68,0.1); color: var(--red); }

.status-indicator { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.status-indicator.todo { background: var(--text-muted); }
.status-indicator.in-progress { background: var(--brand); }
.status-indicator.review { background: var(--purple); }
.status-indicator.done { background: var(--green); }
.status-indicator.blocked { background: var(--red); }

/* ================================================================
   31. BACKWARDS-COMPATIBLE: Chips
   ================================================================ */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 500; border: 1px solid var(--border);
}
.pr-high, .chip.pr-high { background: rgba(239,68,68,0.1); color: var(--red); border-color: rgba(239,68,68,0.2); }
.pr-medium, .chip.pr-medium { background: rgba(245,158,11,0.1); color: var(--yellow); border-color: rgba(245,158,11,0.2); }
.pr-low, .chip.pr-low { background: rgba(255,255,255,0.04); color: var(--text-muted); }

/* ================================================================
   32. BACKWARDS-COMPATIBLE: Legacy Page-Specific
   ================================================================ */

/* Bug grid (dashboard) */
.bug-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.bug-box { border: 1px solid var(--border); border-radius: 10px; padding: 10px; text-align: center; }
.bug-box strong { display: block; font-size: 22px; }
.bug-box span { font-size: 12px; color: var(--text-muted); }

/* Progress bar */
.progress { width: 100%; height: 10px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,0.04); border: 1px solid var(--border); }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--brand), var(--purple)); }

/* Code block */
.code-block { background: #04040a; border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 10px; overflow-x: auto; }
.code-block pre { margin: 0; font-family: 'SF Mono', 'Fira Code', Consolas, monospace; font-size: 13px; white-space: pre-wrap; color: var(--text-muted); }

/* File/lock/commit lists */
.file-list { list-style: none; padding: 0; margin: 10px 0 0; }
.file-list li { padding: 4px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.file-list li:last-child { border-bottom: none; }
.file-list code { font-family: 'SF Mono', 'Fira Code', Consolas, monospace; font-size: 12px; }

.lock-list { list-style: none; padding: 0; margin: 0; }
.lock-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.lock-list li:last-child { border-bottom: none; }

.commit-list { display: flex; flex-direction: column; gap: 10px; }
.commit-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,0.02); }
.commit-item p { margin: 4px 0 0; }

.task-list { display: flex; flex-direction: column; gap: 8px; }
.task-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; }
.task-item p { margin: 4px 0 0; }

/* Task detail */
.detail-header { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin-bottom: 16px; }
.detail-id { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.detail-title { font-size: 26px; font-weight: 700; margin: 0 0 16px; }
.detail-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.detail-badge { padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 500; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 16px; }
.info-item { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.info-item label { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.info-item .value { font-size: 14px; color: var(--text); }

.desc-card { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin-bottom: 16px; }
.desc-card h3 { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 14px; }
.desc-content { line-height: 1.7; white-space: pre-wrap; }

/* Task grid & cards (legacy task page) */
.task-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.task-card {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px; cursor: pointer;
  display: flex; flex-direction: column; gap: 10px; transition: border-color 200ms;
}
.task-card:hover { border-color: rgba(255,107,157,0.3); }
.task-top { display: flex; justify-content: space-between; align-items: center; }
.task-title { font-size: 15px; font-weight: 600; margin: 0; }

/* Status select */
.status-select {
  padding: 5px 8px; border-radius: 8px; border: 1px solid var(--border);
  background: rgba(6,6,16,0.8); color: var(--text); font-size: 12px; cursor: pointer; width: 100%;
  font-family: 'Inter', sans-serif;
}

/* Deadline chips */
.dl-overdue { background: rgba(239,68,68,0.1); color: var(--red); border-color: rgba(239,68,68,0.2); }
.dl-soon { background: rgba(245,158,11,0.1); color: var(--yellow); border-color: rgba(245,158,11,0.2); }
.dl-ok { background: rgba(34,197,94,0.06); color: var(--green); }

/* UI/UX page */
.figma-link { display: inline-block; margin-top: 10px; color: var(--purple); text-decoration: none; font-size: 13px; word-break: break-all; }
.figma-link:hover { text-decoration: underline; }
.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 10px; }
.swatch { text-align: center; }
.swatch-color { width: 100%; height: 50px; border-radius: 10px; border: 1px solid var(--border); }
.swatch-meta { margin-top: 6px; font-size: 11px; color: var(--text-muted); }
.swatch-meta strong { display: block; color: var(--text); font-size: 12px; }
.notes-list { list-style: none; padding: 0; margin: 0; }
.notes-list li { padding: 8px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.notes-list li:last-child { border-bottom: none; }
.feedback-form { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }

/* Error page */
.error-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.error-card { text-align: center; padding: 48px; }
.error-card .error-icon { font-size: 64px; margin-bottom: 24px; }
.error-card h1 { font-size: 24px; margin: 0 0 12px; }
.error-card p { color: var(--text-muted); margin-bottom: 24px; }
.error-card a { color: var(--brand); text-decoration: none; }
.error-card a:hover { text-decoration: underline; }

/* ================================================================
   33. RESPONSIVE
   ================================================================ */
@media (max-width: 1200px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .agents { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sidebar {
    width: 0; overflow: hidden; border-right: none;
  }
  .main { margin-left: 0; }
  .app-shell .sidebar { width: 0; overflow: hidden; }

  .kpi-row { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .agents { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .kanban-board { flex-direction: column; }
  .kanban-column { min-width: 100%; max-width: 100%; }
  .bug-grid { grid-template-columns: 1fr; }
  .task-grid { grid-template-columns: 1fr; }

  .hdr, .main-header { padding: 12px 16px; }
  .content { padding: 16px; }
}

@media (max-width: 960px) {
  .app-shell .sidebar { width: 78px; }
  .app-shell .sidebar .brand-subtitle,
  .app-shell .sidebar .nav a span { display: none; }
  .app-shell .sidebar .nav a { text-align: center; padding: 12px 6px; }
  .main-header { padding: 14px 18px; }
}

@media (max-width: 620px) {
  .app-shell .sidebar { display: none; }
  .logs-panel { height: calc(100vh - 130px); }
}
