/* ═══════════════════════════════════════════════════════════
   MISSION CONTROL — Redesign v2 (Design System)
   Based on: shared/skills/uxui-design-system.md
═══════════════════════════════════════════════════════════ */

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

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

/* ── DESIGN SYSTEM VARIABLES ── */
:root {
  /* Colors */
  --color-primary: #00E5FF;
  --color-accent: #A855F7;
  --color-warning: #F59E0B;
  --color-success: #10B981;
  --color-error: #EF4444;
  --color-background: #050A0F;
  --color-surface: #0D1117;
  --color-border: #1E2D3D;

  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing (base 4px) */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;

  /* Radius */
  --radius-card: 12px;
  --radius-button: 8px;
  --radius-input: 6px;

  /* Glow */
  --glow-active: 0 0 16px rgba(0, 229, 255, 0.15);
  --glow-primary: 0 0 20px rgba(0, 229, 255, 0.2);
  --glow-shadow: 0 0 20px rgba(0, 229, 255, 0.12);
  --glow-henry: 0 0 20px rgba(16, 185, 129, 0.12);
  --glow-samantha: 0 0 20px rgba(168, 85, 247, 0.12);
  --glow-alfred: 0 0 20px rgba(245, 158, 11, 0.12);

  /* Legacy alias (used throughout) */
  --accent: #00E5FF;
  --accent-hover: #33DDFF;
  --accent-dim: rgba(0, 229, 255, 0.08);
  --accent-dim2: rgba(0, 229, 255, 0.14);
  --accent-glow: rgba(0, 229, 255, 0.2);
  --purple: #A855F7;
  --purple-dim: rgba(168, 85, 247, 0.12);
  --blue: #3B82F6;
  --green: #10B981;
  --green-dim: rgba(16, 185, 129, 0.12);
  --red: #EF4444;
  --red-dim: rgba(239, 68, 68, 0.12);
  --orange: #FB923C;
  --orange-dim: rgba(251, 146, 60, 0.12);
  --amber: #F59E0B;
  --amber-dim: rgba(245, 158, 11, 0.1);
  --amber-glow: rgba(245, 158, 11, 0.3);
  --bg: #050A0F;
  --surface: rgba(13, 17, 23, 0.95);
  --surface-solid: #0D1117;
  --text: #E2E6F3;
  --text-secondary: #9198B5;
  --text-muted: #4D536B;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --grad: linear-gradient(135deg, #00E5FF, #A855F7);
  --grad-text: linear-gradient(90deg, #00E5FF, #7C3AED, #A855F7);
}

/* ── BASE ────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── PARTICLE BACKGROUND ─────────────────────────────────── */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.app {
  display: flex;
  height: 100vh;
  position: relative;
  z-index: 1;
}

/* ── SIDEBAR ─────────────────────────────────────────────── */
.sidebar {
  width: 230px;
  -webkit-app-region: no-drag; /* force no-drag for touch */
  background: rgba(7, 8, 13, 0.92);
  border-right: 1px solid rgba(0, 212, 255, 0.1);
  display: flex;
  flex-direction: column;
  padding: 0;
  flex-shrink: 0;
  overflow-y: auto;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 4px 0 40px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 10;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.15); border-radius: 2px; }

/* ── LOGO ────────────────────────────────────────────────── */
/* Window controls */
.win-controls {
  display: flex;
  gap: 8px;
  padding: 16px 16px 0;
  -webkit-app-region: no-drag;
}

.win-btn {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: filter 0.15s;
}

.win-btn.close    { background: #ff5f57; }
.win-btn.minimize { background: #febc2e; }
.win-btn.maximize { background: #28c840; }

.win-btn:hover { filter: brightness(0.85); }

.logo {
  -webkit-app-region: drag;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 12px 20px 20px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  margin-bottom: 12px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradientShift 4s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 22px;
  height: 22px;
  background: var(--grad);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-text-fill-color: initial;
  color: #fff;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50%       { background-position: 100% center; }
}

/* ── SIDEBAR CLOCK ───────────────────────────────────────── */
.sidebar-clock {
  text-align: center;
  padding: 10px 20px 14px;
  border-bottom: 1px solid rgba(0,212,255,0.08);
  margin-bottom: 8px;
}

.clock-time {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.clock-date {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 10px;
  flex: 1;
}

.nav-btn {
  -webkit-app-region: no-drag;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  text-align: left;
  padding: 9px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  font-weight: 450;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.1px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0,212,255,0.15);
  -webkit-touch-callout: none;
}

.nav-btn .nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: all 0.2s;
}

.nav-btn:hover {
  background: rgba(0, 212, 255, 0.06);
  color: var(--accent);
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
  box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.05),
              0 0 12px rgba(0, 212, 255, 0.08);
}

.nav-btn:hover .nav-icon {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.6));
}

.nav-btn.active {
  background: linear-gradient(135deg, rgba(0,212,255,0.12), rgba(168,85,247,0.08));
  color: var(--accent);
  font-weight: 600;
  border-left: 2px solid var(--accent);
  padding-left: 10px;
  box-shadow: inset 0 0 30px rgba(0, 212, 255, 0.05),
              0 0 15px rgba(0, 212, 255, 0.1);
}

.nav-btn.active .nav-icon {
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.7));
}

/* ── MAIN CONTENT ────────────────────────────────────────── */
.content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  position: relative;
  z-index: 1;
}

.content::-webkit-scrollbar { width: 5px; }
.content::-webkit-scrollbar-track { background: transparent; }
.content::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.15); border-radius: 3px; }

/* ── SECTION FADE-IN ──────────────────────────────────────── */
@keyframes sectionFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.content > * {
  animation: sectionFadeIn 0.3s ease-out;
}

/* ── TOP BAR ─────────────────────────────────────────────── */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 36px 48px 24px;
  border-bottom: 1px solid rgba(0,212,255,0.08);
  gap: 20px;
  backdrop-filter: blur(10px);
  -webkit-app-region: drag;
}

.top-bar button, .top-bar input, .top-bar select, .top-bar a {
  -webkit-app-region: no-drag;
}

.page-title h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.page-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 400;
}

/* ── BACK BUTTON ─────────────────────────────────────────── */
.back-btn {
  background: rgba(16, 19, 32, 0.8);
  border: 1px solid rgba(0,212,255,0.15);
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  font-family: var(--font);
  white-space: nowrap;
  margin-top: 4px;
  backdrop-filter: blur(8px);
}

.back-btn:hover {
  background: rgba(0,212,255,0.08);
  color: var(--accent);
  border-color: rgba(0,212,255,0.35);
  box-shadow: 0 0 12px rgba(0,212,255,0.1);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  background: var(--grad);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s;
  font-family: var(--font);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.35), 0 2px 8px rgba(168,85,247,0.2);
}

.btn:hover::after {
  background: rgba(255,255,255,0.08);
}

.btn.secondary {
  background: rgba(16, 19, 32, 0.8);
  color: var(--text-secondary);
  border: 1px solid rgba(0,212,255,0.15);
  backdrop-filter: blur(8px);
}

.btn.secondary:hover {
  background: rgba(0,212,255,0.08);
  color: var(--text);
  border-color: rgba(0,212,255,0.35);
  transform: none;
  box-shadow: none;
}

.btn.success {
  background: rgba(16, 217, 160, 0.1);
  color: var(--green);
  border: 1px solid rgba(16,217,160,0.25);
}

.btn.danger {
  background: rgba(248,113,113,0.1);
  color: var(--red);
  border: 1px solid rgba(248,113,113,0.25);
}

.icon-btn {
  background: rgba(16, 19, 32, 0.8);
  border: 1px solid rgba(0,212,255,0.12);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  flex-shrink: 0;
  backdrop-filter: blur(8px);
}

.icon-btn:hover {
  background: rgba(0,212,255,0.1);
  color: var(--accent);
  border-color: rgba(0,212,255,0.35);
  box-shadow: 0 0 10px rgba(0,212,255,0.15);
}

.icon-btn.small {
  width: 24px;
  height: 24px;
  font-size: 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 4px;
}

.icon-btn.small:hover {
  background: rgba(248,113,113,0.1);
  color: var(--red);
}

/* ── INPUTS ──────────────────────────────────────────────── */
input[type="text"], input[type="date"], input[type="time"], textarea, select {
  background: rgba(16, 19, 32, 0.8);
  border: 1px solid rgba(0,212,255,0.12);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13.5px;
  width: 100%;
  font-family: var(--font);
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}

input[type="text"]:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(16, 19, 32, 0.95);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1), 0 0 15px rgba(0,212,255,0.05);
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

select option {
  background: #0c0e16;
  color: var(--text);
}

/* ── GLASS PANELS ────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 28px 48px;
  align-items: start;
}

.two-col-cal {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  padding: 0 48px 40px;
  align-items: start;
}

.panel {
  background: rgba(12, 14, 22, 0.7);
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.panel:hover {
  border-color: rgba(0,212,255,0.2);
  box-shadow: 0 8px 40px rgba(0,212,255,0.06), var(--glass-shadow);
}

.panel.compact { padding: 0; }

.panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0,212,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.panel-body {
  padding: 16px 20px;
}

.panel-body.scrollable {
  max-height: 500px;
  overflow-y: auto;
  padding-top: 12px;
}

.panel-body.scrollable::-webkit-scrollbar { width: 4px; }
.panel-body.scrollable::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.15); border-radius: 2px; }

.panel-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(0,212,255,0.08);
  display: flex;
  gap: 8px;
  align-items: center;
}

.panel-footer input { margin-bottom: 0; flex: 1; }

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 32px 20px;
  color: var(--text-muted);
  font-size: 13px;
}

.empty-state p { margin: 0; }

/* ── LOADING SPINNER (pulsing orb) ───────────────────────── */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  gap: 16px;
  color: var(--text-muted);
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad);
  animation: orbPulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(0,212,255,0.5), 0 0 40px rgba(168,85,247,0.3);
  position: relative;
}

.loading-spinner::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(0,212,255,0.6);
  animation: spin 0.8s linear infinite;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 15px rgba(0,212,255,0.4), 0 0 30px rgba(168,85,247,0.2); }
  50%       { transform: scale(1.1); opacity: 1;   box-shadow: 0 0 30px rgba(0,212,255,0.7), 0 0 60px rgba(168,85,247,0.4); }
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── MEMORY ──────────────────────────────────────────────── */
.memory-pre {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font);
}

.log-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,212,255,0.06);
  cursor: pointer;
  transition: all 0.15s;
  gap: 12px;
}

.log-entry:last-child { border-bottom: none; }

.log-entry:hover .log-entry-arrow { color: var(--accent); }
.log-entry:hover .log-entry-name { color: var(--accent); }

.log-entry-info { flex: 1; min-width: 0; }

.log-entry-name {
  font-size: 13.5px;
  font-weight: 500;
  display: block;
  transition: color 0.15s;
}

.log-entry-preview {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-entry-arrow {
  color: var(--text-muted);
  font-size: 16px;
  transition: color 0.15s;
  flex-shrink: 0;
}

/* ── CALENDAR ────────────────────────────────────────────── */
.cal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  padding: 12px 14px 8px;
  border-bottom: 1px solid rgba(0,212,255,0.06);
}

.cal-weekdays div {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 0;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  padding: 8px 14px 14px;
}

.cal-day {
  aspect-ratio: 1;
  background: rgba(16, 19, 32, 0.5);
  border: 1px solid transparent;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  gap: 2px;
  min-height: 36px;
}

.cal-day:hover {
  background: rgba(0,212,255,0.08);
  border-color: rgba(0,212,255,0.25);
  box-shadow: 0 0 10px rgba(0,212,255,0.1);
}

.cal-day.empty {
  background: transparent;
  cursor: default;
}

.cal-day.today .day-num {
  color: var(--accent);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0,212,255,0.5);
}

.cal-day.selected {
  background: rgba(0,212,255,0.1);
  border-color: rgba(0,212,255,0.4);
  box-shadow: 0 0 12px rgba(0,212,255,0.15);
}

.day-num {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.cal-dot {
  font-size: 8px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.event-item {
  background: rgba(16, 19, 32, 0.7);
  border-radius: var(--radius);
  padding: 10px 12px;
  border: 1px solid rgba(0,212,255,0.1);
  margin-bottom: 8px;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}

.event-item:hover {
  border-color: rgba(0,212,255,0.25);
  box-shadow: 0 4px 16px rgba(0,212,255,0.08);
}

.event-item:last-child { margin-bottom: 0; }

.event-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.event-item-info { flex: 1; }

.event-title {
  font-size: 13px;
  font-weight: 500;
  display: block;
}

.event-type {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

/* ── DOCS ────────────────────────────────────────────────── */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  padding: 28px 48px;
}

.doc-card {
  background: rgba(12, 14, 22, 0.7);
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.25s;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.doc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(0,212,255,0.04));
  opacity: 0;
  transition: opacity 0.3s;
}

.doc-card:hover {
  border-color: rgba(0,212,255,0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,212,255,0.12), 0 0 0 1px rgba(0,212,255,0.2);
}

.doc-card:hover::before { opacity: 1; }

.doc-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.doc-info {
  flex: 1;
  min-width: 0;
}

.doc-name {
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 3px;
}

.doc-preview {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── TASKS ───────────────────────────────────────────────── */
.task-input-row {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0,212,255,0.06);
}

.task-input-row input { margin-bottom: 0; flex: 1; }

.task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(0,212,255,0.05);
  gap: 12px;
  transition: all 0.15s;
}

.task-row:last-child { border-bottom: none; }

.task-row:hover {
  background: rgba(0,212,255,0.04);
}

.task-check {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  cursor: pointer;
}

.task-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.task-text {
  font-size: 14px;
}

.task-row.done .task-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

.tasks-completed {
  border-top: 1px solid rgba(0,212,255,0.06);
  padding: 12px 0 0;
  margin-top: 8px;
}

.completed-header {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 0 20px 8px;
}

/* ── PROJECTS ────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  padding: 28px 48px;
}

.project-card {
  background: rgba(12, 14, 22, 0.7);
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover {
  border-color: rgba(0,212,255,0.25);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,212,255,0.1);
  transform: translateY(-2px);
}

.project-card:hover::after { opacity: 1; }

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.project-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.project-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.project-date {
  font-size: 11px;
  color: var(--text-muted);
}

.status-select {
  font-size: 11px;
  padding: 4px 8px;
  width: auto;
  margin: 0;
  background: rgba(16, 19, 32, 0.8);
  border-color: rgba(0,212,255,0.15);
}

.status-select.small { font-size: 10px; padding: 2px 6px; }

/* ── IDEAS ───────────────────────────────────────────────── */
.idea-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,212,255,0.06);
  gap: 12px;
}

.idea-row:last-child { border-bottom: none; }

.idea-content { flex: 1; min-width: 0; }

.idea-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.idea-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}

/* ── APPROVALS ───────────────────────────────────────────── */
.approval-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,212,255,0.06);
  gap: 16px;
}

.approval-item:last-child { border-bottom: none; }

.approval-item.small {
  justify-content: flex-start;
  gap: 12px;
  padding: 8px 0;
}

.approval-info { flex: 1; }

.approval-title {
  font-size: 14px;
  font-weight: 500;
}

.approval-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.approval-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.approval-actions .btn {
  padding: 6px 14px;
  font-size: 12px;
}

/* ── AGENTS GRID ─────────────────────────────────────────── */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
  padding: 28px 48px;
}

/* ── AGENT CARDS ─────────────────────────────────────────── */
.agent-card {
  background: rgba(12, 14, 22, 0.75);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

/* Shimmer glow border on hover */
.agent-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.agent-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: rgba(12, 14, 22, 0.75);
  z-index: -1;
}

.agent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 30px rgba(0,212,255,0.1);
  border-color: rgba(0,212,255,0.35);
}

.agent-card:hover::before { opacity: 0.5; }

/* JARVIS special card */
.agent-card.jarvis {
  grid-column: 1 / -1;
  background: rgba(15, 12, 5, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.2);
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

.agent-card.jarvis::before {
  background: linear-gradient(135deg, rgba(245,158,11,0.4), rgba(251,146,60,0.2));
}

.agent-card.jarvis:hover {
  border-color: rgba(245,158,11,0.5);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 40px rgba(245,158,11,0.12);
}

.agent-card.jarvis:hover::before { opacity: 0.6; }

.jarvis-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 900;
  color: #0a0600;
  flex-shrink: 0;
  box-shadow: 0 0 30px rgba(245,158,11,0.4);
  position: relative;
}

.jarvis-avatar::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 20px;
  border: 2px solid rgba(245,158,11,0.3);
  animation: ambientPulse 2.5s ease-in-out infinite;
}

@keyframes ambientPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 0.8; transform: scale(1.04); }
}

.jarvis-info { flex: 1; }

.jarvis-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--amber);
  text-shadow: 0 0 20px rgba(245,158,11,0.4);
  margin-bottom: 2px;
  letter-spacing: -0.3px;
}

.jarvis-role {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(245,158,11,0.6);
  margin-bottom: 8px;
}

.jarvis-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

.jarvis-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  flex-direction: column;
  align-items: flex-end;
}

.jarvis-btn {
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(251,146,60,0.1));
  border: 1px solid rgba(245,158,11,0.35);
  color: var(--amber);
  padding: 10px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  white-space: nowrap;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.jarvis-btn:hover {
  background: linear-gradient(135deg, rgba(245,158,11,0.25), rgba(251,146,60,0.2));
  border-color: rgba(245,158,11,0.6);
  box-shadow: 0 0 20px rgba(245,158,11,0.2);
  transform: translateX(2px);
}

.jarvis-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
}

/* ── AGENT CARD INTERNALS ────────────────────────────────── */
.agent-avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  border: 1px solid;
  flex-shrink: 0;
  position: relative;
}

.agent-details { flex: 1; }

.agent-name-lg {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 3px;
}

.agent-role-lg {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.agent-desc-lg {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.agent-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,212,255,0.08);
}

/* ── STATUS DOTS ─────────────────────────────────────────── */
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes working-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 229, 255, 0.3); }
  50% { box-shadow: 0 0 16px rgba(0, 229, 255, 0.6); }
}

.status-dot.active {
  background: var(--color-success);
  box-shadow: 0 0 8px var(--color-success), 0 0 16px rgba(16,185,129,0.4);
  animation: pulse 2s ease-in-out infinite;
}

.status-dot.working {
  background: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
  animation: working-pulse 1.5s ease-in-out infinite;
}

.status-dot.idle {
  background: var(--color-warning);
}

.status-dot.thinking {
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
  animation: pulse 1.5s ease-in-out infinite;
}

.status-dot.standby {
  background: var(--color-warning);
  box-shadow: 0 0 6px rgba(245,158,11,0.5);
}

.status-dot.error {
  background: var(--color-error);
}

.status-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: capitalize;
}

/* ── PIPELINE ────────────────────────────────────────────── */
.pipeline-filters {
  display: flex;
  gap: 10px;
  padding: 0 48px 20px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-select {
  width: auto;
  min-width: 140px;
  margin: 0;
  padding: 8px 12px;
  font-size: 13px;
  background: rgba(12, 14, 22, 0.8);
  border-color: rgba(0,212,255,0.12);
}

.kanban-board {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 0 48px 40px;
  align-items: flex-start;
  min-height: 480px;
}

.kanban-board::-webkit-scrollbar { height: 5px; }
.kanban-board::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.15); border-radius: 3px; }

.kanban-col {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(12, 14, 22, 0.8);
  border: 1px solid rgba(0,212,255,0.1);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  backdrop-filter: blur(8px);
}

.kanban-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.kanban-col-count {
  font-size: 11px;
  font-weight: 700;
  background: rgba(0,212,255,0.08);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 20px;
}

.kanban-col-body {
  background: rgba(12, 14, 22, 0.6);
  border: 1px solid rgba(0,212,255,0.08);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  backdrop-filter: blur(8px);
}

.kanban-empty {
  text-align: center;
  padding: 28px 0;
  font-size: 12px;
  color: var(--text-muted);
}

.post-card {
  background: rgba(16, 19, 32, 0.8);
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  backdrop-filter: blur(8px);
}

.post-card:hover {
  border-color: rgba(0,212,255,0.35);
  background: rgba(0,212,255,0.05);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 12px rgba(0,212,255,0.08);
}

.post-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.post-card-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}

.post-card-caption {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-schedule {
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
}

.post-card-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0;
  transition: all 0.15s;
  line-height: 1;
}

.post-card:hover .post-card-delete { opacity: 1; }

.post-card-delete:hover {
  background: rgba(248,113,113,0.12);
  color: var(--red);
}

/* ── DATA TABLE ──────────────────────────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 48px;
  margin-bottom: 16px;
}

.section-divider span {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0,212,255,0.08);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,212,255,0.08);
  background: rgba(12, 14, 22, 0.5);
}

.data-table td {
  padding: 13px 16px;
  font-size: 13.5px;
  border-bottom: 1px solid rgba(0,212,255,0.05);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tbody tr:hover td {
  background: rgba(0,212,255,0.03);
}

.table-title { font-weight: 500; }

/* ── STATUS BADGES ───────────────────────────────────────── */
.status-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge.active    { background: rgba(16,217,160,0.12);  color: var(--green); }
.status-badge.planning  { background: rgba(59,130,246,0.12);  color: var(--blue); }
.status-badge.in_progress, .status-badge.building { background: rgba(251,146,60,0.12); color: var(--orange); }
.status-badge.done, .status-badge.published       { background: rgba(16,217,160,0.12); color: var(--green); }
.status-badge.pending   { background: rgba(251,146,60,0.12);  color: var(--orange); }
.status-badge.approved  { background: rgba(16,217,160,0.12);  color: var(--green); }
.status-badge.rejected  { background: rgba(248,113,113,0.12); color: var(--red); }
.status-badge.paused, .status-badge.idle { background: rgba(255,255,255,0.04); color: var(--text-muted); }

/* ── PLATFORM / TYPE TAGS ────────────────────────────────── */
.platform-tag, .type-tag {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.3px;
}

/* ── TYPE PILL ───────────────────────────────────────────── */
.type-pill {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(168,85,247,0.12);
  color: var(--purple);
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── MODAL ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
}

.modal-box {
  background: rgba(12, 14, 22, 0.95);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: var(--radius-lg);
  width: 420px;
  max-width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 40px rgba(0,212,255,0.06);
  backdrop-filter: blur(24px);
  animation: modalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-box.wide { width: 520px; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0,212,255,0.1);
}

.modal-header h2 {
  font-size: 17px;
  font-weight: 700;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-body::-webkit-scrollbar { width: 4px; }
.modal-body::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.15); border-radius: 2px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── ACTIVITY ────────────────────────────────────────────── */
.activity-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid rgba(0,212,255,0.05);
  font-size: 13.5px;
}

.activity-row:last-child { border-bottom: none; }

.activity-time {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 1px;
  min-width: 90px;
}

.activity-text { color: var(--text-secondary); flex: 1; }

/* ── DAILY LOGS ──────────────────────────────────────────── */
.log-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,212,255,0.05);
  align-items: flex-start;
}

.log-item:last-child { border-bottom: none; }

.log-item-content { flex: 1; }

.log-item-summary {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 3px;
}

.log-item-details {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── HAMBURGER ───────────────────────────────────────────── */
.hamburger {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 9999;
  background: rgba(0, 212, 255, 0.15);
  border: 2px solid rgba(0, 212, 255, 0.5);
  color: #00d4ff;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 24px;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2), 0 4px 16px rgba(0,0,0,0.5);
  animation: hamburgerPulse 2s ease-in-out infinite;
}

@keyframes hamburgerPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.2), 0 4px 16px rgba(0,0,0,0.5); }
  50% { box-shadow: 0 0 30px rgba(0, 212, 255, 0.4), 0 4px 16px rgba(0,0,0,0.5); }
}

.hamburger:hover, .hamburger:active {
  background: rgba(0,212,255,0.25);
  border-color: rgba(0,212,255,0.7);
  box-shadow: 0 0 30px rgba(0,212,255,0.4), 0 4px 16px rgba(0,0,0,0.5);
  animation: none;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9998;
  backdrop-filter: blur(3px);
  transition: opacity 0.25s ease;
  opacity: 0;
  pointer-events: none;
}
.sidebar-overlay.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* Mobile menu label that appears next to hamburger */
.mobile-menu-hint {
  display: none;
  position: fixed;
  top: 16px;
  left: 76px;
  z-index: 9999;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: #00d4ff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 8px 14px;
  border-radius: 8px;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

/* ── STICKY MOBILE HEADER ─────────────────────────────── */
.mc-mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: rgba(7, 8, 13, 0.96);
  border-bottom: 1px solid rgba(0, 212, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9997;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.mc-mobile-header-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mc-mobile-header-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.5px;
}


/* ── MOBILE SIDEBAR (max-width: 900px) ── */
@media (max-width: 900px) {
  .hamburger {
    display: flex !important;
    position: fixed !important;
    top: 14px !important;
    left: 14px !important;
    z-index: 100001 !important;
    font-size: 22px !important;
    background: rgba(0,212,255,0.15) !important;
    border: 1px solid rgba(0,212,255,0.4) !important;
    border-radius: 8px !important;
    width: 44px !important;
    height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    -webkit-app-region: no-drag !important;
    app-region: no-drag !important;
  }

  .sidebar-overlay { display: none !important; }

  .app.has-open-sidebar .sidebar {
    transform: translateX(0) !important;
    pointer-events: auto !important;
  }

  .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 280px !important;
    height: 100vh !important;
    z-index: 99998 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.25s ease !important;
    box-shadow: 4px 0 40px rgba(0,0,0,0.7) !important;
    -webkit-app-region: no-drag !important;
    app-region: no-drag !important;
    background: rgba(7, 8, 13, 0.97) !important;
    padding-top: 0 !important;
  }

  .sidebar .logo {
    padding: 60px 16px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 0 !important;
    font-size: 10px !important;
  }

  /* Close button inside sidebar header on mobile */
  .sidebar::before {
    content: '✕ CLOSE' !important;
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    font-size: 11px !important;
    color: rgba(0,212,255,0.7) !important;
    cursor: pointer !important;
    z-index: 99999 !important;
    pointer-events: auto !important;
  }

  .sidebar nav {
    padding: 10px 0 30px !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    overflow-y: visible !important;
    background: transparent !important;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar .nav-btn {
    font-size: 14px !important;
    padding: 13px 16px !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    pointer-events: auto !important;
    display: flex !important;
    cursor: pointer !important;
  }

  .sidebar .nav-btn:active {
    background: rgba(0,212,255,0.15) !important;
  }

  .content {
    padding-top: 60px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .mc-mobile-header { display: flex !important; }

  .top-bar {
    padding: 16px 14px 14px !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  /* Worker cards - stack on mobile */
  #workers-grid {
    grid-template-columns: 1fr !important;
    padding: 12px !important;
    gap: 14px !important;
  }

  .worker-card {
    margin-bottom: 0 !important;
  }

  /* All grids to single column */
  .two-col, .two-col-cal {
    grid-template-columns: 1fr !important;
    padding: 12px !important;
    gap: 12px !important;
  }

  .doc-grid, .projects-grid, .agents-grid {
    grid-template-columns: 1fr !important;
    padding: 12px !important;
  }

  .kanban-board {
    padding: 0 12px 30px !important;
    flex-wrap: nowrap !important;
    overflow-x: scroll !important;
    -webkit-overflow-scrolling: touch;
  }

  .kanban-col { flex: 0 0 85vw !important; }

  /* Task cards - full width on mobile */
  .task-card, .cron-card, .panel-box {
    padding: 14px !important;
    margin-bottom: 10px !important;
  }

  .modal-box {
    width: calc(100vw - 24px) !important;
    margin: 12px auto !important;
    max-height: calc(100vh - 80px) !important;
    overflow-y: auto !important;
  }

  /* Memory section on mobile */
  .memory-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}
  /* ── SCROLL FIX: prevent ghost clicks ── */
  .sidebar nav {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  
  .sidebar .nav-btn {
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
  }

/* ── RESPONSIVE ──────────────────────────────────────────── */

/* Mobile sidebar close button */
.sidebar-close-btn {
  display: none;
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: rgba(0,212,255,0.7);
  font-size: 11px;
  cursor: pointer;
  z-index: 99999;
  padding: 8px;
}

/* Close tap zone - right edge of screen on mobile */
@media (max-width: 900px) {
  .sidebar-close-zone {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 30%;
    height: 100vh;
    z-index: 99997;
    background: transparent;
  }
  .app.has-open-sidebar .sidebar-close-zone {
    display: block;
  }
}
/* ── RESPONSIVE ──────────────────────────────────────────── */

/* Mobile sidebar close button */
.sidebar-close-btn {
  display: none;
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: rgba(0,212,255,0.7);
  font-size: 11px;
  cursor: pointer;
  z-index: 99999;
  padding: 8px;
}

/* Close tap zone - right edge of screen on mobile */
@media (max-width: 900px) {
  .sidebar-close-zone {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 30%;
    height: 100vh;
    z-index: 99997;
    background: transparent;
  }
  .app.has-open-sidebar .sidebar-close-zone {
    display: block;
  }
}
/* ── DASHBOARD TEAM STATUS BAR ── */
.team-status-bar {
  display: flex;
  gap: 8px;
  padding: 0 14px 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.team-member-chip {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
}
.henry-chip { border-color: rgba(16,217,160,0.3); color: #10d9a0; }
.alfred-chip { border-color: rgba(0,212,255,0.3); color: #00d4ff; }
.shadow-chip { border-color: rgba(168,85,247,0.3); color: #a855f7; }

/* ── STAT CARDS — bigger on mobile ── */
.stat-card { padding: 20px 16px !important; min-height: 100px; }
.stat-card-value { font-size: 28px !important; font-weight: 700; }
.stat-card-label { font-size: 11px !important; letter-spacing: 0.5px; text-transform: uppercase; margin-top: 6px; }

/* ── BETTER DASHBOARD ── */
.stats-grid {
  padding: 10px 14px;
  gap: 12px;
}

/* Workspace Section */
.workspace-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}
@media (max-width: 1200px) {
  .workspace-grid { grid-template-columns: 1fr; }
}
.workspace-grid .panel { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.workspace-grid .panel-title { font-size: 14px; font-weight: 600; color: var(--text); margin: 0 0 12px 0; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.workspace-grid .sub-section { margin-bottom: 16px; }
.workspace-grid .sub-section h3 { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); margin: 0 0 8px 0; letter-spacing: 0.5px; }
.task-item { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.task-item:last-child { border-bottom: none; }
.task-item .task-desc { flex: 1; color: var(--text); }
.task-item .task-status { padding: 2px 6px; border-radius: 4px; font-size: 10px; text-transform: uppercase; }
.task-item .task-status.pending { background: rgba(255,193,7,0.2); color: #ffc107; }
.task-item .task-status.done { background: rgba(40,167,69,0.2); color: #28a745; }
.skill-item { padding: 8px 0; border-bottom: 1px solid var(--border); }
.skill-item:last-child { border-bottom: none; }
.skill-item strong { font-size: 12px; color: var(--text); }
.agent-item { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.agent-item:last-child { border-bottom: none; }
.agent-item strong { font-size: 13px; color: var(--text); }
.agent-status { font-size: 11px; }
.log-preview { font-size: 10px; background: var(--bg-secondary); padding: 8px; border-radius: 6px; overflow-x: auto; white-space: pre-wrap; max-height: 200px; }
.muted { color: var(--text-muted); font-size: 11px; }

/* ═══════════════════════════════════════════════════════════
   REDESIGN V2 — Bottom Tab Bar + Agent Cards
   Design System: shared/skills/uxui-design-system.md
═══════════════════════════════════════════════════════════ */

/* ── BOTTOM TAB BAR (mobile-first) ──────────────────────── */
.bottom-tab-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  z-index: 9996;
  padding: 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.bottom-tab-bar-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  height: 100%;
}

.bottom-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s;
  padding: 6px 4px;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.bottom-tab svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  opacity: 0.6;
  transition: all 0.2s;
}

.bottom-tab.active {
  color: var(--color-primary);
}

.bottom-tab.active svg {
  opacity: 1;
  filter: drop-shadow(0 0 6px var(--color-primary));
}

.bottom-tab.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 0 0 3px 3px;
  box-shadow: 0 0 8px var(--color-primary);
}

/* ── AGENT CARD — Consistent Redesign ─────────────────── */
.agent-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  min-height: 160px;
}

/* Role-colored glow border on hover */
.agent-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--agent-color, var(--color-primary)), var(--agent-color-2, var(--color-accent)));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.agent-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  background: var(--color-surface);
  z-index: -1;
}

.agent-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), var(--glow-active);
  border-color: color-mix(in srgb, var(--agent-color, var(--color-primary)) 50%, transparent);
}

.agent-card:hover::before { opacity: 0.5; }

/* Agent card variants by role */
.agent-card.shadow-card { --agent-color: #00E5FF; --agent-color-2: #3B82F6; }
.agent-card.henry-card  { --agent-color: #10B981; --agent-color-2: #059669; }
.agent-card.samantha-card { --agent-color: #A855F7; --agent-color-2: #7C3AED; }
.agent-card.alfred-card  { --agent-color: #F59E0B; --agent-color-2: #D97706; }

.agent-card.planned {
  opacity: 0.5;
  filter: grayscale(0.3);
}

.agent-avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  border: 2px solid;
  flex-shrink: 0;
  position: relative;
  box-shadow: var(--glow-active);
}

/* Role-colored avatar borders */
.avatar-shadow    { border-color: #00E5FF; background: rgba(0,229,255,0.08); color: #00E5FF; }
.avatar-henry     { border-color: #10B981; background: rgba(16,185,129,0.08); color: #10B981; }
.avatar-samantha  { border-color: #A855F7; background: rgba(168,85,247,0.08); color: #A855F7; }
.avatar-alfred    { border-color: #F59E0B; background: rgba(245,158,11,0.08); color: #F59E0B; }

.agent-name-lg {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: var(--text);
}

.agent-role-lg {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--spacing-sm);
}

.agent-desc-lg {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.agent-footer {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--color-border);
}

.agent-task-name {
  font-size: 12px;
  color: var(--text-secondary);
  font-style: italic;
  margin-left: 4px;
}

/* ── RECENT TASKS — Task Name Display ─────────────────── */
.recent-tasks-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
}

.recent-tasks-item:last-child { border-bottom: none; }

.recent-tasks-agent-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-shadow    { background: rgba(0,229,255,0.12); color: #00E5FF; border: 1px solid rgba(0,229,255,0.3); }
.badge-henry     { background: rgba(16,185,129,0.12); color: #10B981; border: 1px solid rgba(16,185,129,0.3); }
.badge-samantha  { background: rgba(168,85,247,0.12); color: #A855F7; border: 1px solid rgba(168,85,247,0.3); }
.badge-alfred    { background: rgba(245,158,11,0.12); color: #F59E0B; border: 1px solid rgba(245,158,11,0.3); }

.recent-tasks-text { color: var(--text-secondary); flex: 1; }
.recent-tasks-task { color: var(--text); font-weight: 500; }
.recent-tasks-time { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }

/* ── OFFICE — The Office redesign ─────────────────────── */
.office-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
}

.zone-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--spacing-md);
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.zone-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  box-shadow: var(--glow-active);
  opacity: 0;
  transition: opacity 0.3s;
}

.zone-card:hover::before { opacity: 1; }

/* Zone borders with role color glow */
.zone-shadow    { --zone-color: #00E5FF; border-color: rgba(0,229,255,0.25); }
.zone-henry     { --zone-color: #10B981; border-color: rgba(16,185,129,0.25); }
.zone-samantha  { --zone-color: #A855F7; border-color: rgba(168,85,247,0.25); }
.zone-alfred    { --zone-color: #F59E0B; border-color: rgba(245,158,11,0.25); }

.zone-card:hover {
  border-color: var(--zone-color);
  box-shadow: 0 0 20px color-mix(in srgb, var(--zone-color) 20%, transparent);
}

.zone-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.zone-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 1px solid;
  flex-shrink: 0;
}

.zone-shadow .zone-icon    { background: rgba(0,229,255,0.08); border-color: rgba(0,229,255,0.4); }
.zone-henry .zone-icon     { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.4); }
.zone-samantha .zone-icon  { background: rgba(168,85,247,0.08); border-color: rgba(168,85,247,0.4); }
.zone-alfred .zone-icon    { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.4); }

.zone-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--zone-color);
}

.zone-role {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.zone-task {
  font-size: 12px;
  color: var(--text-secondary);
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-button);
  margin-top: var(--spacing-sm);
  font-style: italic;
  border-left: 2px solid var(--zone-color);
}

/* Code Lab (Samantha's zone) */
.code-lab-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  background: rgba(168,85,247,0.15);
  border: 1px solid rgba(168,85,247,0.4);
  border-radius: 6px;
  color: #A855F7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: var(--spacing-sm);
}

/* ── HQ PAGE — 2-Column Stat Grid ────────────────────── */
.hq-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  padding: var(--spacing-lg) 0;
}

.hq-stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  transition: all 0.2s;
  border-top: 2px solid;
}

.hq-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-active);
}

.hq-stat-icon { font-size: 24px; }
.hq-stat-value { font-size: 28px; font-weight: 700; }
.hq-stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); }
.hq-stat-card.shadow-stat    { border-top-color: #00E5FF; }
.hq-stat-card.henry-stat    { border-top-color: #10B981; }
.hq-stat-card.samantha-stat { border-top-color: #A855F7; }
.hq-stat-card.alfred-stat   { border-top-color: #F59E0B; }

/* Live Activity Feed */
.activity-feed {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.activity-feed::-webkit-scrollbar { width: 4px; }
.activity-feed::-webkit-scrollbar-thumb { background: rgba(0,229,255,0.15); border-radius: 2px; }

.feed-entry {
  display: flex;
  gap: var(--spacing-sm);
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 12px;
  transition: background 0.2s;
}

.feed-entry:last-child { border-bottom: none; }

.feed-entry.new-entry {
  background: rgba(0,229,255,0.04);
  border-radius: var(--radius-button);
  padding: 10px var(--spacing-sm);
  margin: 2px 0;
  box-shadow: var(--glow-active);
}

.feed-time { color: var(--text-muted); white-space: nowrap; min-width: 70px; }
.feed-agent { font-weight: 600; min-width: 70px; }
.feed-action { color: var(--text-secondary); flex: 1; }

/* ── PLANNED SECTION ──────────────────────────────────── */
.planned-section {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--spacing-md);
  margin-top: var(--spacing-lg);
  opacity: 0.6;
}

.planned-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
}

.planned-section-header svg { transition: transform 0.2s; }
.planned-section-header.open svg { transform: rotate(180deg); }

.planned-agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

/* ── STAT GRID (dashboard) ────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  transition: all 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-active);
}

.stat-card-icon {
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card-value {
  font-size: 26px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.stat-card-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

/* ── SYNC DAEMON UPTIME FIX ──────────────────────────── */
.sync-uptime {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* ── MOBILE ADJUSTMENTS ─────────────────────────────── */
@media (max-width: 900px) {
  .bottom-tab-bar { display: block; }
  .content { padding-bottom: 74px !important; }
  
  .office-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
  
  .hq-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .agents-grid {
    grid-template-columns: 1fr !important;
    padding: 12px !important;
  }
  
  .planned-agents-grid {
    grid-template-columns: 1fr;
  }
}


/* ═══════════════════════════════════════════════════════════
   RADI OS MISSION CONTROL + AGENT OPS v0.1
═══════════════════════════════════════════════════════════ */
.mc-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 15%, rgba(168, 85, 247, 0.24), transparent 32%),
    radial-gradient(circle at 20% 0%, rgba(0, 229, 255, 0.20), transparent 34%),
    linear-gradient(135deg, rgba(13, 17, 23, 0.98), rgba(7, 11, 20, 0.92));
  box-shadow: 0 24px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
  position: relative;
}
.mc-hero::after {
  content: '';
  position: absolute;
  right: 34px;
  top: 22px;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: repeating-radial-gradient(circle, rgba(0,229,255,.15) 0 2px, transparent 2px 18px);
  opacity: .55;
  pointer-events: none;
}
.mc-hero-copy { max-width: 760px; position: relative; z-index: 1; }
.kicker { color: var(--accent); text-transform: uppercase; letter-spacing: .18em; font-size: 11px; font-weight: 850; margin-bottom: 10px; }
.mc-hero h1 { font-size: clamp(34px, 5vw, 62px); line-height: .95; letter-spacing: -2.5px; margin: 0 0 14px; color: #f7fbff; }
.mc-hero p { margin: 0; max-width: 680px; color: var(--text-secondary); font-size: 16px; }
.mc-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; position: relative; z-index: 1; }
.mc-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.mc-metric { padding: 18px; border-radius: 18px; background: rgba(13,17,23,.78); border: 1px solid rgba(0,229,255,.12); box-shadow: var(--shadow-sm); }
.mc-metric small { display:block; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 800; }
.mc-metric strong { display:block; font-size: 34px; line-height: 1; margin: 10px 0 8px; color: #fff; }
.mc-metric span { color: var(--text-muted); font-size: 12px; }
.mc-grid { display: grid; grid-template-columns: minmax(320px, 1.12fr) minmax(280px, .88fr); gap: 16px; }
.mc-panel { border: 1px solid rgba(0,229,255,.13); border-radius: 22px; background: rgba(13, 17, 23, .86); padding: 18px; box-shadow: var(--shadow-sm); min-height: 170px; }
.mc-priority-panel { min-height: 360px; background: radial-gradient(circle at 92% 8%, rgba(0,229,255,.16), transparent 28%), rgba(13,17,23,.9); }
.panel-head { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom: 14px; }
.panel-head span { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 850; }
.panel-head button { border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); color: var(--text-secondary); padding: 7px 10px; border-radius: 999px; cursor: pointer; font-size: 11px; }
.panel-head button:hover { border-color: rgba(0,229,255,.3); color: #fff; }
.mc-priority-panel h2 { margin: 14px 0 12px; font-size: 34px; line-height: 1.05; letter-spacing: -1px; }
.mc-priority-panel p { color: var(--text-secondary); max-width: 740px; }
.mc-next-steps { display: grid; gap: 10px; margin-top: 24px; }
.mc-next-steps div { display:flex; gap: 12px; align-items:center; padding: 13px; border-radius: 15px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06); }
.mc-next-steps b { width: 28px; height: 28px; display:grid; place-items:center; border-radius: 50%; color: #06111f; background: var(--accent); font-family: var(--font-mono); }
.mc-next-steps span { color: var(--text); }
.mc-agent-list { display: grid; gap: 10px; }
.mc-agent-card { display: grid; grid-template-columns: 38px 1fr auto; align-items:center; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.035); border:1px solid rgba(255,255,255,.06); }
.agent-orb { width: 38px; height:38px; display:grid; place-items:center; border-radius: 50%; background: linear-gradient(135deg, rgba(0,229,255,.25), rgba(168,85,247,.25)); color:#fff; font-weight:900; box-shadow: 0 0 26px rgba(0,229,255,.14); }
.agent-orb.hermes { background: linear-gradient(135deg, rgba(245,158,11,.34), rgba(0,229,255,.24)); }
.mc-agent-card b, .mc-queue-item b, .mc-approval-item b, .mc-mission-row b { display:block; color:#f7fbff; }
.mc-agent-card small, .mc-queue-item small, .mc-approval-item small { display:block; color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.mc-status { border-radius: 999px; padding: 5px 8px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #9fffe4; background: rgba(16,185,129,.12); border:1px solid rgba(16,185,129,.2); }
.mc-status.offline, .mc-status.dormant { color: #ffb4b4; background: rgba(239,68,68,.11); border-color: rgba(239,68,68,.22); }
.mc-queue-item, .mc-approval-item, .mc-mission-row, .mc-feed-item { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.mc-queue-item { display:flex; gap: 11px; align-items:flex-start; }
.queue-dot { width: 9px; height: 9px; margin-top: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px rgba(0,229,255,.45); flex: 0 0 auto; }
.mc-queue-total { margin-top: 12px; color: var(--accent); font-size: 12px; }
.mc-mission-row { display:flex; align-items:center; gap:10px; }
.mc-feed-item { display:flex; gap: 10px; color: var(--text-secondary); }
.mc-feed-item span { color: var(--accent); }
.empty-copy { color: var(--text-muted); }
@media (max-width: 1180px) {
  .mc-hero { flex-direction: column; }
  .mc-hero-actions { justify-content: flex-start; }
  .mc-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .mc-hero { padding: 20px; }
  .mc-metrics { grid-template-columns: 1fr; }
  .mc-hero h1 { letter-spacing: -1.4px; }
}

/* Founder dashboard War Room summary metrics (used by the active mc.js dashboard shell) */
.founder-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.founder-metrics div {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(123, 247, 255, .14);
}
.founder-metrics small {
  display: block;
  color: #8fa4c5;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
  font-weight: 800;
}
.founder-metrics b {
  display: block;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  margin: 7px 0 4px;
}
.founder-metrics span { color: #7e8aa3; font-size: 11px; }
.founder-dot.blocked { background: #ff6b6b; box-shadow: 0 0 18px rgba(255, 107, 107, .45); }
@media (max-width: 980px) { .founder-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .founder-metrics { grid-template-columns: 1fr; } }


/* ── FOUNDER WAR ROOM ───────────────────────────────────── */
.war-shell{padding:22px 28px 40px}.war-command-strip{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:12px;margin-bottom:16px}.war-metric{background:linear-gradient(180deg,rgba(16,24,39,.95),rgba(8,13,24,.95));border:1px solid rgba(0,229,255,.18);border-radius:18px;padding:16px;box-shadow:0 18px 50px rgba(0,0,0,.28)}.war-metric small{display:block;color:var(--text-secondary);font-size:11px;text-transform:uppercase;letter-spacing:.1em}.war-metric strong{display:block;color:#fff;font-size:28px;line-height:1;margin:8px 0}.war-metric span{color:var(--text-muted);font-size:12px}.war-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:14px;align-items:start}.war-panel{background:linear-gradient(180deg,rgba(16,24,39,.93),rgba(9,14,25,.93));border:1px solid rgba(0,212,255,.12);border-radius:18px;padding:16px;box-shadow:0 20px 60px rgba(0,0,0,.25)}.war-panel h2{margin:0 0 12px;font-size:16px}.war-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:12px}.war-panel-head p{margin:3px 0 0;color:var(--text-secondary);font-size:12px}.war-list{display:flex;flex-direction:column;gap:10px}.war-card{border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.035);border-radius:14px;padding:12px}.war-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.war-card b{display:block;color:#fff}.war-card p{margin:6px 0 0;color:var(--text-secondary);font-size:12px}.war-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:9px}.war-tag{border:1px solid rgba(0,229,255,.15);background:rgba(0,229,255,.07);border-radius:999px;padding:4px 8px;color:var(--text-secondary);font-size:11px}.war-tag.hot{border-color:rgba(239,68,68,.3);background:rgba(239,68,68,.12);color:#fecaca}.war-tag.good{border-color:rgba(16,185,129,.3);background:rgba(16,185,129,.12);color:#bbf7d0}.war-actions{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}.war-actions button,.war-form button{border:0;border-radius:10px;padding:8px 10px;font-weight:800;color:#06111f;background:var(--accent);cursor:pointer}.war-actions button.secondary{background:#17263f;color:#cfe2ff;border:1px solid rgba(255,255,255,.08)}.war-form{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;margin-top:12px}.war-form input{min-width:0}.war-relationships{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}.war-activity{max-height:420px;overflow:auto}.war-empty{color:var(--text-secondary);border:1px dashed rgba(255,255,255,.1);border-radius:14px;padding:14px;text-align:center}.war-error{border-color:rgba(239,68,68,.35);background:rgba(239,68,68,.08)}
@media(max-width:900px){.war-shell{padding:14px}.war-command-strip,.war-grid{grid-template-columns:1fr}.war-form{grid-template-columns:1fr}.war-card-top{flex-direction:column}.top{position:static}}
