/* ═══════════════════════════════════════════════════════════════════════
   NOVA Command Centre v2.1 — Refined Styles
   ═══════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Refined dark palette — deeper, more sophisticated */
  --bg-primary: #090b10;
  --bg-secondary: #0f1219;
  --bg-tertiary: #161a24;
  --bg-elevated: #1c2030;
  --bg-hover: #232838;
  --bg-active: #2d3348;
  --border: #1e2536;
  --border-subtle: #171c2a;
  --border-hover: #2a3450;
  --text-primary: #e4e6ee;
  --text-secondary: #8f93a8;
  --text-muted: #555a72;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-soft: #7c7fff;
  --accent-muted: rgba(99,102,241,0.1);
  --accent-glow: rgba(99,102,241,0.25);
  --success: #10b981;
  --success-muted: rgba(16,185,129,0.1);
  --warning: #f59e0b;
  --warning-muted: rgba(245,158,11,0.1);
  --danger: #ef4444;
  --danger-muted: rgba(239,68,68,0.1);
  --info: #3b82f6;
  --info-muted: rgba(59,130,246,0.1);
  --cyan: #06b6d4;
  --cyan-muted: rgba(6,182,212,0.1);
  --purple: #a855f7;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 2px 8px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.15);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.3), 0 2px 6px rgba(0,0,0,0.2);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.25);
  --shadow-glow: 0 0 20px var(--accent-glow);
  --transition: 180ms ease;
  --transition-slow: 300ms ease;
  --transition-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --sidebar-width: 260px;
}

/* ─── Light Mode ─────────────────────────────────────────────────────── */
[data-theme="light"] {
  --bg-primary: #f5f6fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #eef0f6;
  --bg-elevated: #ffffff;
  --bg-hover: #e8eaf2;
  --bg-active: #dde0ec;
  --border: #d4d7e3;
  --border-subtle: #e2e5ef;
  --border-hover: #c0c4d4;
  --text-primary: #1a1d2e;
  --text-secondary: #4a5068;
  --text-muted: #8b90a8;
  --accent: #5b5ef0;
  --accent-hover: #6366f1;
  --accent-soft: #6366f1;
  --accent-muted: rgba(99,102,241,0.08);
  --accent-glow: rgba(99,102,241,0.15);
  --success: #059669;
  --success-muted: rgba(5,150,105,0.08);
  --warning: #d97706;
  --warning-muted: rgba(217,119,6,0.08);
  --danger: #dc2626;
  --danger-muted: rgba(220,38,38,0.08);
  --info: #2563eb;
  --info-muted: rgba(37,99,235,0.08);
  --cyan: #0891b2;
  --cyan-muted: rgba(8,145,178,0.08);
  --purple: #9333ea;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.06);
  --shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-glow: 0 0 20px rgba(99,102,241,0.1);
}
[data-theme="light"] .view::-webkit-scrollbar-thumb { background: #c0c4d4; }
[data-theme="light"] .view::-webkit-scrollbar-thumb:hover { background: #a0a5b8; }
[data-theme="light"] .sidebar-header { background: linear-gradient(180deg, rgba(99,102,241,0.04) 0%, transparent 100%); }
[data-theme="light"] .logo-text { background: linear-gradient(135deg, #5b5ef0, #0891b2); -webkit-background-clip: text; background-clip: text; }
[data-theme="light"] pre, [data-theme="light"] code { background: #eef0f6; color: #1a1d2e; }
[data-theme="light"] .snippet-code { background: #f0f2f8; border-top: 1px solid var(--border); }
[data-theme="light"] .msg-content { background: var(--bg-tertiary); }
[data-theme="light"] .message.assistant .msg-content { background: var(--accent-muted); }

/* ─── Theme Toggle Button ────────────────────────────────────────────── */
.theme-toggle {
  background: none; border: 1px solid var(--border); color: var(--text-secondary);
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; transition: all var(--transition);
}
.theme-toggle:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border-hover); }

html, body { height: 100%; overflow: hidden; }
body {
  font-family: var(--font); background: var(--bg-primary); color: var(--text-primary);
  line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background 300ms ease, color 300ms ease;
}

/* ─── Layout ────────────────────────────────────────────────────────── */
#app { display: flex; height: 100vh; overflow: hidden; }
#main-content { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.view {
  flex: 1; overflow-y: auto; padding: 32px 36px;
  scroll-behavior: smooth; min-height: 0;
}
.view::-webkit-scrollbar { width: 5px; }
.view::-webkit-scrollbar-track { background: transparent; }
.view::-webkit-scrollbar-thumb { background: var(--bg-active); border-radius: 4px; }
.view::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
.hidden { display: none !important; }

/* ─── Sidebar ───────────────────────────────────────────────────────── */
#sidebar {
  width: var(--sidebar-width); min-width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; height: 100vh;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  z-index: 100;
}
.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(99,102,241,0.06) 0%, transparent 100%);
}
.sidebar-close-btn {
  display: none; background: none; border: none; color: var(--text-muted);
  font-size: 16px; cursor: pointer; padding: 4px 8px; border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.sidebar-close-btn:hover { color: var(--text-primary); background: var(--bg-hover); }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-avatar {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(129,140,248,0.25);
  box-shadow: 0 0 12px rgba(99,102,241,0.15);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.logo-avatar:hover { border-color: rgba(129,140,248,0.5); box-shadow: 0 0 20px rgba(99,102,241,0.3); }
.logo-info { display: flex; flex-direction: column; }
.logo-text {
  font-size: 15px; font-weight: 700; letter-spacing: 2px;
  background: linear-gradient(135deg, var(--accent-hover), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1.2;
}
.logo-sub { font-size: 9.5px; color: var(--text-muted); letter-spacing: 0.5px; text-transform: uppercase; }

/* Nav items */
.sidebar-nav { padding: 12px 8px 4px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: var(--radius-sm); cursor: pointer; font-size: 13px;
  color: var(--text-secondary); transition: all var(--transition);
  user-select: none; position: relative; overflow: hidden;
}
.nav-item::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 0; background: var(--accent); border-radius: 0 2px 2px 0;
  transition: height var(--transition-spring);
}
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item:hover::before { height: 16px; }
.nav-item.active {
  background: var(--accent-muted); color: var(--accent-hover); font-weight: 500;
}
.nav-item.active::before { height: 20px; background: var(--accent-hover); }
.nav-icon { width: 18px; text-align: center; font-size: 14px; }
.nav-divider { height: 1px; background: var(--border-subtle); margin: 10px 12px; }
.nav-label { font-size: 10px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; padding: 4px 12px; }
.sidebar-shortcut-hint {
  font-size: 10px; color: var(--text-muted); text-align: center; margin-top: 8px;
}
.sidebar-shortcut-hint kbd {
  background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: 3px;
  padding: 1px 5px; font-family: var(--mono); font-size: 10px;
}

.sidebar-search { padding: 8px 10px; }
.sidebar-search input {
  width: 100%; background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 10px; color: var(--text-primary);
  font-size: 12px; font-family: var(--font); outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.sidebar-search input:focus {
  border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-muted);
}
.sidebar-search input::placeholder { color: var(--text-muted); }

.folder-tree { flex: 1; overflow-y: auto; padding: 4px 0; }
.folder-tree::-webkit-scrollbar { width: 3px; }
.folder-tree::-webkit-scrollbar-thumb { background: var(--bg-active); border-radius: 4px; }

.tree-item {
  display: flex; align-items: center; padding: 6px 14px; cursor: pointer;
  transition: all var(--transition); font-size: 12.5px; color: var(--text-secondary);
  gap: 7px; user-select: none; border-radius: 4px; margin: 1px 6px;
}
.tree-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.tree-item.active { background: var(--accent-muted); color: var(--accent-hover); }
.tree-folder { font-weight: 500; }
.tree-folder .tree-chevron {
  font-size: 9px; color: var(--text-muted); width: 12px; text-align: center;
  transition: transform var(--transition-spring);
}
.tree-folder.expanded .tree-chevron { transform: rotate(90deg); }
.tree-convo { padding-left: 38px; font-size: 12px; }
.tree-children { display: none; }
.tree-children.open { display: block; animation: treeExpand 200ms ease; }
@keyframes treeExpand { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.tree-subfolder .tree-convo { padding-left: 52px; }

.sidebar-footer { padding: 10px; border-top: 1px solid var(--border-subtle); }

/* ─── Hamburger Button (mobile only) ────────────────────────────────── */
.hamburger-btn {
  display: none; position: fixed; top: 14px; left: 14px; z-index: 90;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 10px; cursor: pointer;
  flex-direction: column; gap: 4px; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.hamburger-btn span {
  display: block; width: 18px; height: 2px; background: var(--text-secondary);
  border-radius: 1px; transition: all var(--transition);
}
.hamburger-btn:hover { border-color: var(--accent); }
.hamburger-btn:hover span { background: var(--text-primary); }

/* Mobile sidebar overlay */
.sidebar-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 95; opacity: 0; transition: opacity var(--transition-slow);
  backdrop-filter: blur(2px);
}
.sidebar-overlay.visible { opacity: 1; }

/* ─── Buttons ───────────────────────────────────────────────────────── */
.btn-icon {
  background: none; border: none; color: var(--text-secondary); cursor: pointer;
  padding: 6px; border-radius: var(--radius-sm); transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.btn-icon:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-icon.btn-danger:hover { background: var(--danger-muted); color: var(--danger); }
.btn-subtle {
  background: none; border: 1px solid var(--border); color: var(--text-secondary);
  cursor: pointer; padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 12px; font-family: var(--font); display: flex; align-items: center;
  gap: 8px; width: 100%; transition: all var(--transition);
}
.btn-subtle:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border-hover); }
.btn-primary {
  background: var(--accent); border: none; color: white; cursor: pointer;
  padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13px;
  font-family: var(--font); font-weight: 500; transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}
.btn-primary:hover {
  background: var(--accent-hover); box-shadow: 0 4px 16px rgba(99,102,241,0.35);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-ghost {
  background: var(--bg-tertiary); border: 1px solid var(--border); color: var(--text-secondary);
  cursor: pointer; padding: 8px 14px; border-radius: var(--radius-sm); font-size: 12px;
  font-family: var(--font); font-weight: 500; transition: all var(--transition);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border-hover); }

/* ─── Breadcrumbs ───────────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 6px; margin-bottom: 20px;
  font-size: 12px; color: var(--text-muted);
}
.breadcrumb-item {
  cursor: pointer; transition: color var(--transition); padding: 2px 0;
}
.breadcrumb-item:hover { color: var(--accent-hover); }
.breadcrumb-item.current { color: var(--text-secondary); cursor: default; }
.breadcrumb-sep { color: var(--text-muted); opacity: 0.5; font-size: 10px; }

/* ─── Dashboard ─────────────────────────────────────────────────────── */
.dash-welcome {
  margin-bottom: 28px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, rgba(99,102,241,0.04) 0%, rgba(6,182,212,0.03) 100%);
  margin: -32px -36px 28px; padding: 32px 36px 24px;
}
.dash-welcome h1 {
  font-size: 26px; font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-hover));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.dash-welcome .dash-sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* Top widgets row */
.dash-top { display: grid; grid-template-columns: 1fr 1fr 280px; gap: 16px; margin-bottom: 20px; }

/* Stat cards */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat-card {
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; transition: all var(--transition); position: relative; overflow: hidden;
}
.stat-card::after {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(135deg, var(--accent-muted), transparent);
  transition: opacity var(--transition);
}
.stat-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card:hover::after { opacity: 1; }
.stat-label { font-size: 10px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; position: relative; z-index: 1; }
.stat-value { font-size: 24px; font-weight: 700; line-height: 1.2; margin-top: 2px; position: relative; z-index: 1; }
.stat-icon { float: right; font-size: 18px; opacity: 0.4; position: relative; z-index: 1; }

/* Widget cards */
.widget {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-xs);
}
.widget:hover { border-color: rgba(99,102,241,0.2); box-shadow: var(--shadow); }
.widget-title {
  font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.8px; margin-bottom: 14px; display: flex; align-items: center; gap: 6px;
}
.widget-title .wt-icon { font-size: 14px; }

/* Weather widget */
.weather-current { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.weather-icon { font-size: 36px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.weather-temp { font-size: 28px; font-weight: 700; }
.weather-desc { font-size: 12px; color: var(--text-secondary); }
.weather-details { display: flex; gap: 14px; font-size: 11px; color: var(--text-muted); }
.weather-forecast { display: flex; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-subtle); }
.forecast-day { flex: 1; text-align: center; font-size: 11px; color: var(--text-secondary); }
.forecast-day .fd-temp { font-weight: 600; color: var(--text-primary); }

/* System vitals */
.vitals-gauges { display: flex; gap: 14px; margin-bottom: 12px; }
.gauge { flex: 1; text-align: center; }
.gauge-ring { position: relative; width: 56px; height: 56px; margin: 0 auto 4px; }
.gauge-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-ring circle { fill: none; stroke-width: 5; }
.gauge-ring .gauge-bg { stroke: var(--bg-primary); }
.gauge-ring .gauge-fill { stroke-linecap: round; transition: stroke-dashoffset 800ms cubic-bezier(0.4, 0, 0.2, 1); }
.gauge-ring .gauge-val {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.gauge-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }
.svc-list { display: flex; flex-direction: column; gap: 3px; }
.svc-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-secondary); padding: 2px 0; }
.svc-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.svc-dot.running { background: var(--success); box-shadow: 0 0 8px rgba(16,185,129,0.4); animation: pulse-dot 2s ease infinite; }
.svc-dot.stopped { background: var(--danger); box-shadow: 0 0 6px rgba(239,68,68,0.4); }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

/* Bookmarks bar */
.bookmarks-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.bookmark-chip {
  display: flex; align-items: center; gap: 5px; padding: 6px 14px;
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 20px;
  font-size: 12px; color: var(--text-secondary); cursor: pointer;
  transition: all var(--transition); text-decoration: none;
}
.bookmark-chip:hover {
  background: var(--bg-hover); color: var(--text-primary); border-color: var(--accent);
  transform: translateY(-1px); box-shadow: var(--shadow);
}
.bookmark-chip .bm-icon { font-size: 13px; }

/* Dashboard grid */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }

/* Activity feed */
.activity-list { max-height: 280px; overflow-y: auto; }
.activity-list::-webkit-scrollbar { width: 3px; }
.activity-list::-webkit-scrollbar-thumb { background: var(--bg-active); border-radius: 4px; }
.activity-item {
  display: flex; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition);
}
.activity-item:last-child { border: none; }
.activity-icon {
  font-size: 13px; width: 30px; height: 30px; display: flex; align-items: center;
  justify-content: center; background: var(--bg-tertiary); border-radius: var(--radius-sm);
  flex-shrink: 0; border: 1px solid var(--border-subtle);
}
.activity-info { flex: 1; min-width: 0; }
.activity-title { font-size: 12px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-time { font-size: 10px; color: var(--text-muted); margin-top: 1px; }

/* Analytics sparklines */
.sparkline-row { display: flex; gap: 16px; }
.sparkline-card { flex: 1; }
.sparkline-value { font-size: 20px; font-weight: 700; }
.sparkline-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; }
.sparkline-chart { height: 32px; margin-top: 6px; }
.sparkline-chart svg { width: 100%; height: 100%; }
.sparkline-chart path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sparkline-chart .spark-area { stroke: none; opacity: 0.12; }

/* Recent conversations */
.recent-list { display: flex; flex-direction: column; gap: 2px; }
.recent-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 10px;
  border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition);
}
.recent-item:hover { background: var(--bg-tertiary); transform: translateX(2px); }
.recent-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0;
  box-shadow: 0 0 6px var(--accent-glow);
}
.recent-info { flex: 1; min-width: 0; }
.recent-title { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-preview { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.recent-time { font-size: 10px; color: var(--text-muted); flex-shrink: 0; }

/* Project cards */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.project-card {
  background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; cursor: pointer; transition: all var(--transition); position: relative; overflow: hidden;
}
.project-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan)); opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.project-card:hover::before { opacity: 1; }
.project-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.project-card-icon {
  font-size: 20px; width: 36px; height: 36px; display: flex; align-items: center;
  justify-content: center; background: var(--bg-primary); border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}
.project-card-name { font-size: 13px; font-weight: 600; }
.project-card-meta { display: flex; gap: 12px; font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.project-progress { height: 3px; background: var(--bg-primary); border-radius: 2px; overflow: hidden; }
.project-progress-bar { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-hover)); border-radius: 2px; transition: width 500ms ease; }

/* Task tracker */
.task-add-form { display: flex; gap: 6px; margin-bottom: 14px; }
.task-add-form input {
  flex: 1; background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 10px; color: var(--text-primary); font-size: 12px; font-family: var(--font); outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.task-add-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-muted); }
.task-add-form input::placeholder { color: var(--text-muted); }
.task-add-form select {
  background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 8px; color: var(--text-secondary); font-size: 11px; font-family: var(--font); outline: none; cursor: pointer; appearance: none;
}
.task-group { margin-bottom: 14px; }
.task-group-header {
  font-size: 10px; font-weight: 600; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 6px; padding-bottom: 4px;
  border-bottom: 1px solid var(--border-subtle); display: flex; align-items: center; gap: 5px;
}
.task-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px;
  border-radius: var(--radius-sm); transition: all var(--transition);
}
.task-item:hover { background: var(--bg-tertiary); }
.task-checkbox {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border);
  cursor: pointer; transition: all var(--transition); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; background: transparent;
}
.task-checkbox:hover { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-muted); }
.task-checkbox.checked { background: var(--success); border-color: var(--success); }
.task-checkbox.checked::after { content: '✓'; color: white; font-size: 9px; font-weight: 700; }
.task-checkbox.in-progress { border-color: var(--warning); background: var(--warning-muted); }
.task-checkbox.in-progress::after { content: '◦'; color: var(--warning); font-size: 12px; font-weight: 700; }
.task-title { flex: 1; font-size: 12px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-item.done .task-title { text-decoration: line-through; color: var(--text-muted); }
.task-priority {
  font-size: 9px; font-weight: 600; text-transform: uppercase; padding: 2px 7px;
  border-radius: 8px; flex-shrink: 0; letter-spacing: 0.3px;
}
.task-priority.high { background: var(--danger-muted); color: var(--danger); }
.task-priority.medium { background: var(--warning-muted); color: var(--warning); }
.task-priority.low { background: var(--info-muted); color: var(--info); }
.task-delete {
  background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 2px;
  border-radius: var(--radius-sm); opacity: 0; transition: all var(--transition); font-size: 12px;
}
.task-item:hover .task-delete { opacity: 1; }
.task-delete:hover { color: var(--danger); }

/* ─── Chat View ─────────────────────────────────────────────────────── */
#view-chat { padding: 0; display: flex; flex-direction: column; }
.chat-header {
  display: flex; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
  gap: 12px; min-height: 52px; flex-shrink: 0;
}
.chat-title-wrap { flex: 1; min-width: 0; }
.chat-title-wrap h2 { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder-badge {
  display: inline-flex; align-items: center; gap: 3px; font-size: 10px;
  color: var(--text-muted); background: var(--bg-tertiary); padding: 2px 8px;
  border-radius: 8px; border: 1px solid var(--border-subtle);
}
.messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.messages::-webkit-scrollbar { width: 5px; }
.messages::-webkit-scrollbar-thumb { background: var(--bg-active); border-radius: 4px; }
.message { display: flex; gap: 10px; align-items: flex-start; max-width: 80%; animation: msgIn 250ms ease-out; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; } }
.message.user { align-self: flex-end; }
.message.assistant { align-self: flex-start; }
.msg-avatar { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; }
.msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.msg-content {
  padding: 10px 14px; border-radius: var(--radius-lg); font-size: 13px; line-height: 1.6;
}
.message.user .msg-content { background: rgba(255,165,50,0.08); border: 1px solid rgba(245,130,30,0.25); border-bottom-right-radius: 4px; }
.message.assistant .msg-content { background: rgba(52,211,153,0.06); border: 1px solid rgba(16,185,129,0.2); border-bottom-left-radius: 4px; }
.msg-content pre { background: var(--bg-primary); padding: 8px 10px; border-radius: var(--radius-sm); margin: 6px 0; overflow-x: auto; font-size: 12px; font-family: var(--mono); }
.msg-content code { font-family: var(--mono); font-size: 12px; }
.chat-input-wrap {
  display: flex; padding: 14px 20px; gap: 8px; border-top: 1px solid var(--border);
  background: var(--bg-secondary); align-items: flex-end; flex-shrink: 0;
}
#chat-input {
  flex: 1; background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 9px 12px; color: var(--text-primary); font-size: 13px; font-family: var(--font);
  resize: none; outline: none; max-height: 120px; line-height: 1.5;
  transition: border-color var(--transition), box-shadow var(--transition);
}
#chat-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-muted); }

/* ─── Notes View ────────────────────────────────────────────────────── */
.notes-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; flex-wrap: wrap; gap: 12px;
}
.notes-header h1 { font-size: 22px; font-weight: 700; }
.notes-tags-filter {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px;
}
.tag-filter-chip {
  padding: 4px 12px; border-radius: 14px; font-size: 11px; cursor: pointer;
  border: 1px solid var(--border); color: var(--text-secondary); background: var(--bg-tertiary);
  transition: all var(--transition);
}
.tag-filter-chip:hover, .tag-filter-chip.active {
  border-color: var(--purple); color: var(--purple); background: rgba(168,85,247,0.1);
}
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.note-card {
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px 20px; cursor: pointer; transition: all var(--transition);
  position: relative; min-height: 120px; overflow: hidden;
}
.note-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.note-card.color-purple { border-left: 3px solid #a855f7; }
.note-card.color-blue { border-left: 3px solid #3b82f6; }
.note-card.color-green { border-left: 3px solid #22c55e; }
.note-card.color-orange { border-left: 3px solid #f59e0b; }
.note-card.color-red { border-left: 3px solid #ef4444; }
.note-card.color-cyan { border-left: 3px solid #06b6d4; }
.note-card-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.note-card-preview { font-size: 12px; color: var(--text-secondary); line-height: 1.5; max-height: 80px; overflow: hidden; }
.note-card-pin { position: absolute; top: 10px; right: 12px; font-size: 12px; }
.note-card-time { font-size: 10px; color: var(--text-muted); margin-top: 8px; }
.note-card-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.note-tag-chip {
  font-size: 10px; padding: 2px 8px; border-radius: 10px;
  background: rgba(168,85,247,0.1); color: var(--purple); border: 1px solid rgba(168,85,247,0.2);
}

/* Note editor */
.note-editor { display: flex; flex-direction: column; gap: 12px; }
.note-editor-top {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.note-editor-title {
  background: transparent; border: none; color: var(--text-primary); font-size: 22px;
  font-weight: 700; font-family: var(--font); outline: none; width: 100%;
}
.note-editor-title::placeholder { color: var(--text-muted); }
.note-tags-input {
  background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 12px; color: var(--text-primary); font-size: 12px; font-family: var(--font);
  outline: none; width: 100%; transition: border-color var(--transition);
}
.note-tags-input:focus { border-color: var(--accent); }
.note-tags-input::placeholder { color: var(--text-muted); }
.note-editor-body {
  background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; color: var(--text-primary); font-size: 13px; font-family: var(--font);
  line-height: 1.7; resize: vertical; min-height: 300px; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.note-editor-body:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-muted); }
.note-preview-container {
  background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; min-height: 300px; font-size: 13px; line-height: 1.7; color: var(--text-primary);
}
.note-preview-container h1 { font-size: 22px; margin-bottom: 8px; }
.note-preview-container h2 { font-size: 18px; margin-bottom: 6px; }
.note-preview-container h3 { font-size: 15px; margin-bottom: 4px; }
.note-preview-container p { margin-bottom: 8px; }
.note-preview-container ul, .note-preview-container ol { margin-left: 20px; margin-bottom: 8px; }
.note-preview-container code { font-family: var(--mono); font-size: 12px; background: var(--bg-primary); padding: 2px 6px; border-radius: 3px; }
.note-preview-container pre { background: var(--bg-primary); padding: 10px; border-radius: var(--radius-sm); margin: 8px 0; overflow-x: auto; }
.note-preview-container pre code { background: none; padding: 0; }
.note-preview-container strong { color: var(--text-primary); }
.note-preview-container a { color: var(--accent); }
.note-editor-toolbar { display: flex; gap: 8px; align-items: center; }
.color-dot {
  width: 18px; height: 18px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; transition: all var(--transition-spring);
}
.color-dot:hover, .color-dot.active { border-color: var(--text-primary); transform: scale(1.2); }
.color-dot.c-default { background: var(--text-muted); }
.color-dot.c-purple { background: #a855f7; }
.color-dot.c-blue { background: #3b82f6; }
.color-dot.c-green { background: #22c55e; }
.color-dot.c-orange { background: #f59e0b; }
.color-dot.c-red { background: #ef4444; }
.color-dot.c-cyan { background: #06b6d4; }
.preview-toggle-btn {
  background: var(--bg-tertiary); border: 1px solid var(--border); color: var(--text-secondary);
  padding: 4px 10px; border-radius: var(--radius-sm); font-size: 11px; cursor: pointer;
  font-family: var(--font); transition: all var(--transition);
}
.preview-toggle-btn:hover { border-color: var(--accent); color: var(--accent); }
.preview-toggle-btn.active { background: var(--accent-muted); border-color: var(--accent); color: var(--accent); }

/* ─── Snippets View ─────────────────────────────────────────────────── */
.snippets-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; gap: 12px; flex-wrap: wrap;
}
.snippets-header h1 { font-size: 22px; font-weight: 700; }
.snippets-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-chip {
  padding: 4px 14px; border-radius: 16px; font-size: 11px; cursor: pointer;
  border: 1px solid var(--border); color: var(--text-secondary); background: var(--bg-tertiary);
  transition: all var(--transition);
}
.filter-chip:hover, .filter-chip.active { border-color: var(--accent); color: var(--accent); background: var(--accent-muted); }
.snippet-list { display: flex; flex-direction: column; gap: 12px; }
.snippet-card {
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}
.snippet-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.snippet-card-header {
  display: flex; justify-content: space-between; align-items: center; padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.snippet-card-title { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.snippet-lang {
  font-size: 10px; font-weight: 600; text-transform: uppercase; padding: 2px 8px;
  border-radius: 8px; background: var(--accent-muted); color: var(--accent);
}
.snippet-tags { display: flex; gap: 4px; }
.snippet-tag { font-size: 10px; color: var(--text-muted); background: var(--bg-tertiary); padding: 1px 6px; border-radius: 6px; }
.snippet-code {
  padding: 14px 16px; background: var(--bg-primary); font-family: var(--mono);
  font-size: 12px; line-height: 1.65; color: var(--text-secondary);
  white-space: pre-wrap; max-height: 200px; overflow-y: auto;
}
.snippet-code::-webkit-scrollbar { width: 3px; }
.snippet-code::-webkit-scrollbar-thumb { background: var(--bg-active); border-radius: 4px; }
.snippet-actions { display: flex; gap: 6px; align-items: center; }
.snippet-copy {
  background: none; border: 1px solid var(--border); color: var(--text-muted); cursor: pointer;
  padding: 4px 10px; border-radius: var(--radius-sm); font-size: 11px; font-family: var(--font);
  transition: all var(--transition);
}
.snippet-copy:hover { color: var(--text-primary); border-color: var(--border-hover); }
.snippet-fav {
  background: none; border: none; cursor: pointer; font-size: 16px; padding: 4px;
  transition: all var(--transition); opacity: 0.4; filter: grayscale(1);
}
.snippet-fav:hover { opacity: 0.8; filter: grayscale(0); transform: scale(1.1); }
.snippet-fav.active { opacity: 1; filter: grayscale(0); }

/* Syntax highlight colours */
.sh-keyword { color: #c792ea; font-weight: 500; }
.sh-string { color: #c3e88d; }
.sh-number { color: #f78c6c; }
.sh-comment { color: #546e7a; font-style: italic; }
.sh-function { color: #82aaff; }
.sh-operator { color: #89ddff; }
.sh-type { color: #ffcb6b; }
.sh-builtin { color: #f07178; }

/* ─── Goals View ────────────────────────────────────────────────────── */
.goals-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.goals-header h1 { font-size: 22px; font-weight: 700; }
.goals-list { display: flex; flex-direction: column; gap: 16px; }
.goal-card {
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px 22px; transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}
.goal-card:hover { border-color: rgba(99,102,241,0.25); box-shadow: var(--shadow); }
.goal-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; gap: 12px; }
.goal-card-title { font-size: 16px; font-weight: 600; }
.goal-header-actions { display: flex; align-items: center; gap: 8px; }
.goal-category {
  font-size: 10px; font-weight: 600; text-transform: uppercase; padding: 3px 10px;
  border-radius: 10px; letter-spacing: 0.5px;
}
.goal-category.school { background: var(--info-muted); color: var(--info); }
.goal-category.business { background: var(--success-muted); color: var(--success); }
.goal-category.professional { background: var(--accent-muted); color: var(--accent); }
.goal-category.personal { background: var(--warning-muted); color: var(--warning); }
.goal-delete-btn {
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  font-size: 14px; padding: 4px; border-radius: var(--radius-sm);
  transition: all var(--transition); opacity: 0;
}
.goal-card:hover .goal-delete-btn { opacity: 1; }
.goal-delete-btn:hover { color: var(--danger); background: var(--danger-muted); }
.goal-notes { font-size: 12px; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.5; }
.goal-progress-wrap { margin-bottom: 14px; }
.goal-progress-bar {
  height: 8px; background: var(--bg-primary); border-radius: 4px; overflow: hidden;
  cursor: pointer; transition: box-shadow var(--transition); position: relative;
}
.goal-progress-bar:hover {
  box-shadow: 0 0 0 2px var(--accent-muted);
}
.goal-progress-fill {
  height: 100%; border-radius: 4px; transition: width 600ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.goal-progress-fill.school { background: linear-gradient(90deg, var(--info), #60a5fa); }
.goal-progress-fill.business { background: linear-gradient(90deg, var(--success), #34d399); }
.goal-progress-fill.professional { background: linear-gradient(90deg, var(--accent), var(--accent-hover)); }
.goal-progress-fill.personal { background: linear-gradient(90deg, var(--warning), #fbbf24); }
.goal-progress-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.goal-progress-edit {
  display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px;
  background: var(--bg-tertiary); border-radius: var(--radius-sm); border: 1px solid var(--border);
  animation: fadeSlideIn 200ms ease;
}
.goal-progress-edit input[type="range"] {
  flex: 1; accent-color: var(--accent); height: 4px; cursor: pointer;
}
.goal-progress-edit .progress-val {
  font-size: 13px; font-weight: 600; min-width: 36px; text-align: center;
  font-family: var(--mono);
}
.goal-progress-edit button {
  background: var(--accent); border: none; color: white; padding: 4px 10px;
  border-radius: var(--radius-sm); font-size: 11px; cursor: pointer; font-family: var(--font);
  transition: all var(--transition);
}
.goal-progress-edit button:hover { background: var(--accent-hover); }
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.kr-list { display: flex; flex-direction: column; gap: 6px; }
.kr-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: var(--bg-tertiary); border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle); transition: all var(--transition);
}
.kr-item:hover { border-color: var(--border-hover); }
.kr-title { flex: 1; font-size: 12px; }
.kr-progress { width: 80px; height: 4px; background: var(--bg-primary); border-radius: 2px; overflow: hidden; }
.kr-progress-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 400ms ease; }
.kr-value {
  font-size: 11px; color: var(--text-muted); min-width: 70px; text-align: right;
  cursor: pointer; padding: 2px 4px; border-radius: var(--radius-sm);
  transition: all var(--transition); font-family: var(--mono);
}
.kr-value:hover { background: var(--bg-hover); color: var(--accent); }
.kr-value-edit {
  display: flex; align-items: center; gap: 4px;
}
.kr-value-edit input {
  width: 60px; background: var(--bg-primary); border: 1px solid var(--accent);
  border-radius: var(--radius-sm); padding: 2px 6px; color: var(--text-primary);
  font-size: 11px; font-family: var(--mono); outline: none; text-align: right;
}
.kr-delete {
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  font-size: 12px; padding: 2px 4px; border-radius: var(--radius-sm);
  transition: all var(--transition); opacity: 0;
}
.kr-item:hover .kr-delete { opacity: 1; }
.kr-delete:hover { color: var(--danger); }
.kr-add-btn {
  background: none; border: 1px dashed var(--border); color: var(--text-muted);
  padding: 6px 12px; border-radius: var(--radius-sm); font-size: 11px; cursor: pointer;
  font-family: var(--font); transition: all var(--transition); width: 100%; margin-top: 6px;
}
.kr-add-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-muted); }

/* ─── Command Palette ───────────────────────────────────────────────── */
.palette-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex;
  align-items: flex-start; justify-content: center; padding-top: 15vh; z-index: 200;
  animation: fadeIn 120ms ease; backdrop-filter: blur(4px);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.palette {
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-xl);
  width: 560px; max-width: 90vw; box-shadow: var(--shadow-lg); overflow: hidden;
  animation: slideDown 180ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
#palette-input {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--border);
  padding: 16px 20px; color: var(--text-primary); font-size: 15px; font-family: var(--font);
  outline: none;
}
#palette-input::placeholder { color: var(--text-muted); }
.palette-results { max-height: 350px; overflow-y: auto; padding: 8px; }
.palette-results::-webkit-scrollbar { width: 3px; }
.palette-results::-webkit-scrollbar-thumb { background: var(--bg-active); border-radius: 4px; }
.palette-group {
  padding: 6px 10px; font-size: 10px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.palette-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition);
  font-size: 13px;
}
.palette-item:hover, .palette-item.selected { background: var(--accent-muted); color: var(--accent-hover); }
.palette-item-icon { font-size: 14px; width: 20px; text-align: center; }
.palette-hint {
  display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-muted);
}
.palette-hint span { display: flex; align-items: center; gap: 4px; }

/* ─── Keyboard Shortcuts Modal ──────────────────────────────────────── */
.shortcuts-modal { width: 480px; }
.shortcuts-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
}
.shortcuts-header h3 { font-size: 16px; font-weight: 600; }
.shortcuts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.shortcut-group-title {
  font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}
.shortcut-row {
  display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 12px;
  color: var(--text-secondary);
}
.shortcut-row kbd {
  background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: 4px;
  padding: 2px 8px; font-family: var(--mono); font-size: 11px; min-width: 28px;
  text-align: center; color: var(--text-primary); box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ─── Focus Timer ───────────────────────────────────────────────────── */
.focus-fab {
  position: fixed; bottom: 24px; right: 24px; width: 48px; height: 48px;
  border-radius: 50%; background: var(--bg-elevated); border: 1px solid var(--border);
  font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); z-index: 50; box-shadow: var(--shadow);
}
.focus-fab:hover { border-color: var(--accent); transform: scale(1.08); box-shadow: var(--shadow-glow); }
.focus-widget {
  position: fixed; bottom: 84px; right: 24px; background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 22px;
  text-align: center; z-index: 50; box-shadow: var(--shadow-lg); width: 180px;
  animation: slideUp 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; } }
.focus-ring { position: relative; width: 100px; height: 100px; margin: 0 auto 12px; }
.focus-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.focus-bg { fill: none; stroke: var(--bg-primary); stroke-width: 6; }
.focus-progress {
  fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}
.focus-time {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; font-family: var(--mono);
}
.focus-controls { display: flex; justify-content: center; gap: 8px; margin-bottom: 4px; }
.focus-btn {
  background: var(--bg-tertiary); border: 1px solid var(--border); color: var(--text-primary);
  cursor: pointer; width: 36px; height: 36px; border-radius: 50%; font-size: 14px;
  display: flex; align-items: center; justify-content: center; transition: all var(--transition);
}
.focus-btn:hover { border-color: var(--accent); background: var(--accent-muted); }
.focus-label { font-size: 11px; color: var(--text-muted); }

/* ─── Modal ─────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex;
  align-items: center; justify-content: center; z-index: 100;
  animation: fadeIn 150ms ease; backdrop-filter: blur(4px);
}
.modal {
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 24px; width: 420px; max-width: 90vw; box-shadow: var(--shadow-lg);
  animation: slideDown 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.modal input, .modal select, .modal textarea {
  width: 100%; background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 12px; color: var(--text-primary);
  font-size: 13px; font-family: var(--font); outline: none; margin-bottom: 10px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.modal textarea { font-family: var(--mono); min-height: 120px; resize: vertical; }
.modal input:focus, .modal select:focus, .modal textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-muted);
}
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* ─── Empty States ──────────────────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 24px; text-align: center;
}
.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.6; }
.empty-state-title { font-size: 16px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.empty-state-desc { font-size: 13px; color: var(--text-muted); max-width: 300px; line-height: 1.5; }
.empty-state .btn-primary { margin-top: 16px; }

/* ─── Skeleton / Shimmer Loading ────────────────────────────────────── */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
.skeleton-card {
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px 20px; overflow: hidden;
}
.skeleton-line {
  height: 12px; border-radius: 6px; margin-bottom: 10px;
}
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-100 { width: 100%; }
.skeleton-line.h-6 { height: 6px; }
.skeleton-line.h-8 { height: 8px; }
.skeleton-line.h-20 { height: 20px; }
.skeleton-line.h-24 { height: 24px; }
.skeleton-circle {
  border-radius: 50%;
}
.skeleton-stat {
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px;
}

/* ─── View Transition ───────────────────────────────────────────────── */
.view-enter { animation: viewEnter 300ms ease; }
@keyframes viewEnter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ─── Responsive: Tablet (768px) ────────────────────────────────────── */
@media (max-width: 1100px) {
  .dash-top { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hamburger-btn { display: flex; }
  .sidebar-close-btn { display: block; }

  #sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: 280px; min-width: 280px;
    transform: translateX(-100%);
    box-shadow: none; z-index: 100;
  }
  #sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }
  .sidebar-overlay.visible { display: block; }

  .view { padding: 24px 18px; padding-top: 60px; }
  .dash-welcome { margin: -24px -18px 24px; padding: 60px 18px 20px; }

  .dash-top { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .sparkline-row { flex-direction: column; gap: 10px; }
  .notes-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .shortcuts-grid { grid-template-columns: 1fr; }
  .bookmarks-bar { gap: 6px; }
  .bookmark-chip { padding: 5px 10px; font-size: 11px; }
}

/* ─── Responsive: Phone (375px) ─────────────────────────────────────── */
@media (max-width: 480px) {
  .view { padding: 16px 12px; padding-top: 56px; }
  .dash-welcome { margin: -16px -12px 20px; padding: 56px 12px 16px; }
  .dash-welcome h1 { font-size: 20px; }

  .stat-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 10px 12px; }
  .stat-value { font-size: 20px; }

  .notes-grid { grid-template-columns: 1fr; }
  .note-card { min-height: auto; padding: 14px 16px; }

  .snippets-header { flex-direction: column; align-items: flex-start; }

  .goal-card { padding: 16px; }
  .goal-card-title { font-size: 14px; }

  .project-grid { grid-template-columns: 1fr; }

  .modal { width: 95vw; padding: 18px; }
  .palette { width: 95vw; }

  .focus-widget { right: 12px; bottom: 72px; }
  .focus-fab { right: 12px; bottom: 12px; width: 42px; height: 42px; font-size: 18px; }
  .quick-capture-fab { left: 12px; bottom: 12px; width: 42px; height: 42px; font-size: 18px; }
  .quick-capture-panel { width: 95vw; }
}

/* ═══════════════════════════════════════════════════════════════════════
   ROUND 2 ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── 1. Animated Gradient Welcome Header ───────────────────────────── */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.dash-welcome {
  background: linear-gradient(135deg,
    rgba(99,102,241,0.08) 0%,
    rgba(6,182,212,0.06) 25%,
    rgba(168,85,247,0.06) 50%,
    rgba(245,158,11,0.04) 75%,
    rgba(99,102,241,0.08) 100%) !important;
  background-size: 300% 300% !important;
  animation: gradientShift 12s ease infinite;
  position: relative;
  overflow: hidden;
}
.dash-welcome::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(99,102,241,0.04) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(6,182,212,0.03) 0%, transparent 50%);
  animation: gradientShift 20s ease-in-out infinite reverse;
  pointer-events: none;
}
.dash-welcome h1,
.dash-welcome .dash-sub {
  position: relative;
  z-index: 1;
}

/* ─── Count-up animation for stat values ────────────────────────────── */
.stat-value[data-countup] {
  display: inline-block;
}

/* ─── Gauge animation (fill from 0) ─────────────────────────────────── */
@keyframes gaugeReveal {
  from { stroke-dashoffset: var(--gauge-circ); }
  to { stroke-dashoffset: var(--gauge-target); }
}
.gauge-fill-animated {
  animation: gaugeReveal 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ─── Weather appropriate tints ─────────────────────────────────────── */
.widget.weather-sunny {
  background: linear-gradient(135deg, var(--bg-secondary) 60%, rgba(245,158,11,0.06) 100%);
}
.widget.weather-cloudy {
  background: linear-gradient(135deg, var(--bg-secondary) 60%, rgba(148,163,184,0.06) 100%);
}
.widget.weather-rainy {
  background: linear-gradient(135deg, var(--bg-secondary) 60%, rgba(59,130,246,0.06) 100%);
}
.widget.weather-stormy {
  background: linear-gradient(135deg, var(--bg-secondary) 60%, rgba(139,92,246,0.08) 100%);
}
.widget.weather-snowy {
  background: linear-gradient(135deg, var(--bg-secondary) 60%, rgba(186,230,253,0.06) 100%);
}
.widget.weather-foggy {
  background: linear-gradient(135deg, var(--bg-secondary) 60%, rgba(148,163,184,0.04) 100%);
}

/* ─── Sparkline draw animation ──────────────────────────────────────── */
@keyframes sparkDraw {
  from { stroke-dashoffset: 500; }
  to { stroke-dashoffset: 0; }
}
@keyframes sparkAreaFade {
  from { opacity: 0; }
  to { opacity: 0.12; }
}
.sparkline-chart polyline {
  stroke-dasharray: 500;
  animation: sparkDraw 1.5s ease-out forwards;
}
.sparkline-chart .spark-area {
  animation: sparkAreaFade 1.5s ease-out forwards;
  opacity: 0;
}

/* ─── 2. Goal Enhancements ──────────────────────────────────────────── */

/* Category colour-coded goal cards */
.goal-card[data-category="school"] {
  border-left: 3px solid var(--info);
}
.goal-card[data-category="business"] {
  border-left: 3px solid var(--success);
}
.goal-card[data-category="professional"] {
  border-left: 3px solid var(--purple);
}
.goal-card[data-category="personal"] {
  border-left: 3px solid var(--warning);
}

/* Milestone markers on progress bar */
.goal-progress-bar {
  position: relative;
}
.milestone-markers {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}
.milestone-marker {
  position: absolute;
  top: -2px;
  width: 2px;
  height: calc(100% + 4px);
  background: rgba(255,255,255,0.15);
  border-radius: 1px;
}
.milestone-marker::after {
  content: attr(data-label);
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 7px;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--transition);
}
.goal-progress-bar:hover .milestone-marker::after {
  opacity: 1;
}
.milestone-marker.m-25 { left: 25%; }
.milestone-marker.m-50 { left: 50%; }
.milestone-marker.m-75 { left: 75%; }

/* Goal Timeline View */
.goals-view-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
}
.goals-view-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
}
.goals-view-btn.active {
  background: var(--accent-muted);
  color: var(--accent);
}
.goals-view-btn:hover:not(.active) {
  color: var(--text-primary);
}

/* Timeline layout */
.goals-timeline {
  overflow-x: auto;
  padding: 20px 0;
  position: relative;
}
.goals-timeline::-webkit-scrollbar { height: 4px; }
.goals-timeline::-webkit-scrollbar-thumb { background: var(--bg-active); border-radius: 4px; }
.timeline-track {
  display: flex;
  gap: 0;
  min-width: max-content;
  position: relative;
  padding: 0 20px;
}
.timeline-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  transform: translateY(-50%);
}
.timeline-item {
  position: relative;
  flex: 0 0 220px;
  padding: 0 8px;
}
.timeline-node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: var(--bg-primary);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: all var(--transition);
}
.timeline-node.school { border-color: var(--info); }
.timeline-node.business { border-color: var(--success); }
.timeline-node.professional { border-color: var(--purple); }
.timeline-node.personal { border-color: var(--warning); }
.timeline-node.completed { background: var(--success); border-color: var(--success); }
.timeline-card-top {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 24px;
  font-size: 12px;
  transition: all var(--transition);
}
.timeline-card-top:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.timeline-card-top .tl-title {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 12px;
}
.timeline-card-top .tl-date {
  font-size: 10px;
  color: var(--text-muted);
}
.timeline-card-top .tl-progress-mini {
  height: 3px;
  background: var(--bg-primary);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.timeline-card-top .tl-progress-mini div {
  height: 100%;
  border-radius: 2px;
  transition: width 600ms ease;
}

/* ─── 3. Project Management ─────────────────────────────────────────── */

/* Project status badges */
.project-status-badge {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 8px;
  letter-spacing: 0.3px;
}
.project-status-badge.active {
  background: var(--success-muted);
  color: var(--success);
}
.project-status-badge.paused {
  background: var(--warning-muted);
  color: var(--warning);
}
.project-status-badge.complete {
  background: var(--accent-muted);
  color: var(--accent);
}
.project-status-badge.planning {
  background: var(--info-muted);
  color: var(--info);
}

.project-last-activity {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Project Board (Kanban) */
.project-board-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
}
.project-board-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
}
.project-board-btn.active {
  background: var(--accent-muted);
  color: var(--accent);
}
.project-board-btn:hover:not(.active) {
  color: var(--text-primary);
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 12px;
}
.kanban-column {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  min-height: 200px;
}
.kanban-column-header {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kanban-column-header .kanban-count {
  background: var(--bg-hover);
  padding: 1px 7px;
  border-radius: 8px;
  font-size: 10px;
}
.kanban-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all var(--transition);
}
.kanban-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.kanban-card-icon {
  font-size: 16px;
  margin-bottom: 4px;
}
.kanban-card-name {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}
.kanban-card-meta {
  font-size: 10px;
  color: var(--text-muted);
}
.kanban-card-status-select {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 10px;
  padding: 2px 4px;
  font-family: var(--font);
  cursor: pointer;
  outline: none;
  margin-top: 6px;
  width: 100%;
}

/* Planning column */
.kanban-column.col-planning .kanban-column-header { border-bottom-color: var(--info); }
.kanban-column.col-inprogress .kanban-column-header { border-bottom-color: var(--warning); }
.kanban-column.col-review .kanban-column-header { border-bottom-color: var(--purple); }
.kanban-column.col-complete .kanban-column-header { border-bottom-color: var(--success); }

/* ─── 4. Code Snippet Enhancements ──────────────────────────────────── */

/* Line numbers */
.snippet-code-wrap {
  display: flex;
  background: var(--bg-primary);
  max-height: 300px;
  overflow-y: auto;
}
.snippet-code-wrap::-webkit-scrollbar { width: 3px; }
.snippet-code-wrap::-webkit-scrollbar-thumb { background: var(--bg-active); border-radius: 4px; }
.snippet-line-numbers {
  padding: 14px 0;
  text-align: right;
  user-select: none;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  min-width: 36px;
}
.snippet-line-numbers span {
  display: block;
  padding: 0 10px 0 6px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.65;
  color: var(--text-muted);
  opacity: 0.5;
}
.snippet-code {
  padding: 14px 16px;
  flex: 1;
  min-width: 0;
}

/* Run button */
.snippet-run-btn {
  background: var(--success-muted);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--success);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-family: var(--font);
  transition: all var(--transition);
}
.snippet-run-btn:hover {
  background: rgba(16,185,129,0.2);
  border-color: var(--success);
}
.snippet-run-output {
  background: #0a0f0a;
  border-top: 1px solid rgba(16,185,129,0.2);
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: #a3e635;
  max-height: 150px;
  overflow-y: auto;
  position: relative;
}
.snippet-run-output::-webkit-scrollbar { width: 3px; }
.snippet-run-output::-webkit-scrollbar-thumb { background: rgba(16,185,129,0.3); border-radius: 4px; }
.snippet-run-output .run-header {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.snippet-run-output .run-error {
  color: var(--danger);
}

/* Clickable snippet tags */
.snippet-tag {
  cursor: pointer;
  transition: all var(--transition);
}
.snippet-tag:hover {
  background: var(--accent-muted);
  color: var(--accent);
}
.snippet-tag.active-tag {
  background: var(--accent-muted);
  color: var(--accent);
  border: 1px solid rgba(99,102,241,0.3);
}

/* ─── 5. Quick Capture Widget ───────────────────────────────────────── */
.quick-capture-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border: none;
  color: white;
  font-size: 24px;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  box-shadow: 0 4px 16px rgba(99,102,241,0.35);
  transition: all var(--transition);
  line-height: 1;
}
.quick-capture-fab:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 24px rgba(99,102,241,0.45);
}

.quick-capture-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  z-index: 150;
  padding: 0 0 84px 24px;
  animation: fadeIn 120ms ease;
  backdrop-filter: blur(2px);
}
.quick-capture-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 420px;
  max-width: calc(100vw - 48px);
  box-shadow: var(--shadow-lg);
  animation: slideUp 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}
.qc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.qc-header h3 {
  font-size: 14px;
  font-weight: 600;
}
.qc-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.qc-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 10px 8px;
  font-size: 11px;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.qc-tab:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}
.qc-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.qc-content {
  padding: 16px 18px;
}
.qc-content input,
.qc-content select,
.qc-content textarea {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  margin-bottom: 10px;
  transition: border-color var(--transition);
}
.qc-content textarea {
  font-family: var(--mono);
  min-height: 80px;
  resize: vertical;
}
.qc-content input:focus,
.qc-content textarea:focus {
  border-color: var(--accent);
}
.qc-content .qc-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}
.qc-row {
  display: flex;
  gap: 8px;
}
.qc-row > * { flex: 1; }

/* ─── 6. Enhanced Empty States ──────────────────────────────────────── */
.empty-state {
  padding: 56px 24px;
}
.empty-state-icon {
  font-size: 56px;
  margin-bottom: 20px;
  opacity: 0.7;
  animation: emptyBounce 3s ease-in-out infinite;
}
@keyframes emptyBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.empty-state-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.empty-state-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 360px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.empty-state-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font);
  font-weight: 500;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}
.empty-state-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99,102,241,0.35);
}

/* Kanban responsive */
@media (max-width: 1100px) {
  .kanban-board { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .kanban-board { grid-template-columns: 1fr; }
  .quick-capture-fab { left: 12px; bottom: 12px; }
  .quick-capture-overlay { padding: 0 0 66px 12px; }
  .timeline-track { gap: 0; }
}
