/* ============================================ */
/* AgentDeck — Premium Theme v1.0               */
/* Dark + Light theme, responsive, animations   */
/* ============================================ */

/* --- Theme Variables (Dark) --- */
:root,
[data-theme="dark"] {
  --bg-primary: #0a0f13;
  --bg-secondary: #111820;
  --bg-card: rgba(17, 24, 32, 0.92);
  --bg-card-hover: rgba(24, 33, 43, 0.95);
  --bg-sidebar: #0c1117;
  --bg-input: rgba(24, 33, 43, 0.7);
  --border: rgba(148, 163, 184, 0.08);
  --border-hover: rgba(148, 163, 184, 0.16);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.2);
  --green: #22c55e;
  --orange: #f59e0b;
  --red: #ef4444;
  --cyan: #06b6d4;
  --pink: #ec4899;
  --purple: #a855f7;
  --glass-bg: rgba(17, 24, 32, 0.7);
  --glass-border: rgba(148, 163, 184, 0.06);
  --shadow: 0 4px 24px rgba(0, 8, 16, 0.35);
  --shadow-lg: 0 8px 40px rgba(0, 8, 16, 0.5);
  --code-bg: rgba(24, 33, 43, 0.8);
}

/* --- Theme Variables (Light) --- */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: rgba(241, 245, 249, 0.98);
  --bg-sidebar: #111820;
  --bg-input: rgba(241, 245, 249, 0.9);
  --border: rgba(15, 23, 42, 0.06);
  --border-hover: rgba(15, 23, 42, 0.12);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent: #059669;
  --accent-glow: rgba(5, 150, 105, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.6);
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 8px 40px rgba(15, 23, 42, 0.1);
  --code-bg: rgba(241, 245, 249, 0.9);
}

/* Light theme: sidebar stays dark */
[data-theme="light"] .sidebar {
  background: #1e293b;
}

[data-theme="light"] .sidebar .nav-item {
  color: #cbd5e1;
}

[data-theme="light"] .sidebar .nav-item:hover {
  color: #f1f5f9;
  background: rgba(16, 185, 129, 0.12);
}

[data-theme="light"] .sidebar .nav-item.active {
  color: #fff;
  background: var(--accent);
}

[data-theme="light"] .sidebar .nav-section-label {
  color: #64748b;
}

[data-theme="light"] .sidebar .sidebar-version {
  color: #64748b;
}

[data-theme="light"] .sidebar .logo-text {
  color: #f1f5f9;
}

[data-theme="light"] .sidebar .theme-toggle-btn {
  color: #cbd5e1;
}

[data-theme="light"] .sidebar .sidebar-search {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

:root {
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: 'Space Grotesk', 'DM Sans', sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* --- Glass --- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: 12px;
}

/* =========================== */
/* SIDEBAR                     */
/* =========================== */
.sidebar {
  width: 240px;
  min-width: 240px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: width 0.25s ease, min-width 0.25s ease, transform 0.25s ease;
}

.sidebar.collapsed {
  width: 0;
  min-width: 0;
  overflow: hidden;
  border-right: none;
}

.sidebar-header {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, #34d399);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.sidebar-toggle-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
}

.sidebar-toggle-btn:hover {
  color: var(--accent);
  background: var(--accent-glow);
}

/* Sidebar search trigger */
.sidebar-search {
  margin: 12px 16px;
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: border-color 0.2s, background 0.2s;
}

.sidebar-search:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.sidebar-search-icon {
  width: 14px;
  height: 14px;
}

.sidebar-search-text {
  flex: 1;
}

.sidebar-kbd {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: monospace;
}

/* Custom Dropdown (Project Switcher) */
.custom-dropdown {
  position: relative;
  width: 100%;
  user-select: none;
}

.custom-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-input);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-dropdown-header:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.custom-dropdown-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.custom-dropdown-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.custom-dropdown-value {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.custom-dropdown-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.custom-dropdown.open .custom-dropdown-icon {
  transform: rotate(180deg);
}

.custom-dropdown-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.custom-dropdown.open .custom-dropdown-list {
  display: flex;
  animation: fadeInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-dropdown-item {
  padding: 8px 10px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.custom-dropdown-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.custom-dropdown-item.active {
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 500;
}

/* Sidebar nav */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.nav-section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 16px 16px 4px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  transition: color 0.2s;
}

.nav-section-label:hover {
  color: var(--text-secondary);
}

.section-chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  margin: 1px 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.nav-item i,
.nav-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nav-item:hover {
  color: var(--text-primary);
  background: rgba(148, 163, 184, 0.08);
}

.nav-item.active {
  color: var(--accent);
  background: var(--accent-glow);
  font-weight: 600;
}

/* Sidebar footer */
.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
  flex-shrink: 0;
}

.sidebar-version {
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 6px;
  opacity: 0.6;
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--font-body);
  transition: all 0.2s;
}

.theme-toggle-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle-btn i,
.theme-toggle-btn svg {
  width: 16px;
  height: 16px;
}

.sidebar-version {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

/* =========================== */
/* MOBILE TOPBAR               */
/* =========================== */
.mobile-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-sidebar);
  padding: 10px 16px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.mobile-topbar button {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px;
}

.mobile-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* =========================== */
/* MAIN CONTENT                */
/* =========================== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.page {
  padding: 24px 28px;
  flex: 1;
}

/* Topbar */
.topbar {
  height: 50px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line, var(--border));
  background: var(--ink2, var(--bg-secondary));
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 12px;
  flex-shrink: 0;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-left h1 {
  font-family: var(--sans, var(--font-heading));
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -.01em;
  color: var(--text, var(--text-primary));
}

.page-title-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.topbar-btn {
  position: relative;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  transition: all 0.2s;
}

.topbar-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.topbar-btn i,
.topbar-btn svg {
  width: 18px;
  height: 18px;
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Topbar Version Badge */
.topbar-version-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  padding: 4px 10px;
  border-radius: 50px;
}

.version-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* Topbar Center Search */
.topbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
  max-width: 360px;
  margin: 0 auto;
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 16px;
  width: 100%;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.topbar-search:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.08);
}

.topbar-search-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.topbar-search-text {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.topbar-search-kbd {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-family: monospace;
  color: var(--text-muted);
}

/* Topbar Avatar */
.topbar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.topbar-avatar:hover {
  border-color: var(--accent);
}

/* =========================== */
/* COMMAND PALETTE             */
/* =========================== */
.command-palette-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  padding-top: 15vh;
  animation: fadeIn 0.12s ease;
}

/* =========================== */
/* LANDING PAGE                */
/* =========================== */
.landing-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #0b0f19;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100vw;
  height: 100vh;
}

.landing-content {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.landing-bg-glows {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: rgba(16, 185, 129, 0.2);
  top: -150px;
  left: -150px;
  animation: floatOrb 10s ease-in-out infinite alternate;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(14, 165, 233, 0.15);
  bottom: -150px;
  right: -100px;
  animation: floatOrb 12s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  0% {
    transform: translateY(0) translateX(0);
  }

  100% {
    transform: translateY(50px) translateX(50px);
  }
}

.landing-header {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  background: rgba(11, 15, 25, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.landing-logo i {
  color: var(--accent);
  width: 28px;
  height: 28px;
}

.landing-auth-trigger {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.landing-auth-trigger:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.landing-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hero-chip {
  background: var(--accent-glow);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--accent);
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-chip span {
  background: var(--accent);
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--info));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #9ca3af;
  max-width: 650px;
  line-height: 1.6;
  margin-bottom: 3.5rem;
}

.primary-glow {
  background: var(--accent);
  color: white;
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.25);
  cursor: pointer;
  transition: all 0.3s;
}

.primary-glow:hover {
  background: #059669;
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 6rem;
  width: 100%;
}

.feature-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: left;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card i {
  color: #34d399;
  width: 36px;
  height: 36px;
  margin-bottom: 1.5rem;
  background: rgba(16, 185, 129, 0.1);
  padding: 8px;
  border-radius: 12px;
}

.feature-card h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.feature-card p {
  color: #9ca3af;
  font-size: 1rem;
  line-height: 1.6;
}

/* Landing How-To Section */
.landing-how-to {
  margin: 6rem auto 4rem;
  text-align: center;
  max-width: 900px;
}

.landing-how-to .section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.howto-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  text-align: left;
}

.howto-step {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.howto-step:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.step-num {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.howto-step h4 {
  color: #fff;
  font-size: 1.2rem;
  margin: 0;
  font-weight: 600;
}

.howto-step p {
  color: #9ca3af;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.howto-step .cmd-block {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.howto-step .cmd-block code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: #6ee7b7;
  font-size: 0.85rem;
}

/* Landing Nav Links */
.landing-nav {
  display: flex;
  gap: 2rem;
}

.landing-nav .nav-link {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.landing-nav .nav-link:hover {
  color: #fff;
}

/* Animated Gradient Text */
.text-gradient-animated {
  background: linear-gradient(90deg, #10b981, #0ea5e9, #06b6d4, #10b981);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShimmer 4s ease-in-out infinite;
}

@keyframes gradientShimmer {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Ghost Button */
.btn-ghost-landing {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-ghost-landing:hover {
  background: var(--accent-glow);
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

.btn-ghost-landing i {
  width: 20px;
  height: 20px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

/* Hero Dashboard Mockup */
.hero-mockup-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 4rem;
  perspective: 1200px;
}

.hero-mockup-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.2), transparent 70%);
  border-radius: 24px;
  z-index: 0;
  pointer-events: none;
}

.hero-mockup-img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(16, 185, 129, 0.15);
  transform: rotateX(4deg) rotateY(0deg);
  transition: transform 0.5s ease;
  position: relative;
  z-index: 1;
  animation: mockupFloat 6s ease-in-out infinite;
}

.hero-mockup-container:hover .hero-mockup-img {
  transform: rotateX(0deg) rotateY(0deg);
}

@keyframes mockupFloat {

  0%,
  100% {
    transform: rotateX(4deg) translateY(0);
  }

  50% {
    transform: rotateX(4deg) translateY(-10px);
  }
}

/* Floating Badges on Mockup */
.mockup-floating-badge {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 20, 35, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 16px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  animation: badgeFloat 4s ease-in-out infinite;
}

.mockup-floating-badge i {
  width: 16px;
  height: 16px;
  color: #34d399;
}

.badge-left {
  bottom: 15%;
  left: -40px;
  animation-delay: 0s;
}

.badge-right {
  top: 15%;
  right: -40px;
  animation-delay: 2s;
}

.badge-right i {
  color: var(--accent);
}

@keyframes badgeFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Social Proof Bar */
.social-proof-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 5rem;
  padding: 2rem 3rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.proof-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.proof-label {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.proof-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.15), transparent);
}

/* Features Section — 6 cards */
.landing-features-section {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 5rem;
  text-align: center;
}

.section-subtitle {
  color: #6b7280;
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.landing-features-section .section-title {
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
  color: #fff;
}

.features-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card-v2 {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  text-align: left;
  backdrop-filter: blur(10px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--fc-color, var(--accent)), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.feature-card-v2:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.feature-card-v2:hover::before {
  opacity: 1;
}

.fc-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--fc-color, var(--accent)) 12%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.fc-icon-wrap i {
  width: 22px;
  height: 22px;
  color: var(--fc-color, var(--accent));
}

.feature-card-v2 h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.feature-card-v2 p {
  color: #9ca3af;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Dashboard Preview Section */
.dashboard-preview-section {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 5rem;
  text-align: center;
}

.dashboard-preview-section .section-title {
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
  color: #fff;
}

.preview-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4), 0 0 40px rgba(16, 185, 129, 0.08);
  background: #0d1117;
}

.preview-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.preview-dots span:nth-child(1) {
  background: #ef4444;
}

.preview-dots span:nth-child(2) {
  background: #f59e0b;
}

.preview-dots span:nth-child(3) {
  background: #22c55e;
}

.preview-url {
  color: #6b7280;
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
}

.preview-screenshot {
  width: 100%;
  display: block;
}

.preview-overlay-badges {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.preview-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 20, 35, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 14px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

.preview-badge i {
  width: 14px;
  height: 14px;
}

.pb-1 i {
  color: #fbbf24;
}

.pb-2 i {
  color: #06b6d4;
}

.pb-3 i {
  color: #34d399;
}

/* Feature Guide Section */
.feature-guide-section {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 5rem;
  text-align: center;
}

.feature-guide-section .section-title {
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
  color: #fff;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: left;
  margin-top: 1rem;
}

.guide-step {
  display: flex;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.35s;
  position: relative;
}

.guide-step:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateX(6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.guide-step-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(14, 165, 233, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-step-icon i {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.guide-step-content {
  flex: 1;
}

.guide-step-number {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.3rem;
}

.guide-step-content h3 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.guide-step-content p {
  color: #9ca3af;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.guide-step-content p code {
  background: var(--accent-glow);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.guide-step .cmd-block {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.guide-step .cmd-block code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: var(--accent);
  font-size: 0.85rem;
}

/* Landing Footer */
.landing-footer {
  width: 100%;
  margin-top: 2rem;
}

.footer-cta-strip {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(180deg, transparent, rgba(16, 185, 129, 0.06));
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-cta-strip h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-cta-strip p {
  color: #6b7280;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.footer-brand i {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.footer-copy {
  color: #4b5563;
  font-size: 0.85rem;
}

/* =========================== */
/* AUTHENTICATION MODAL OVERLAY*/
/* =========================== */
.auth-modal-wrapper {
  position: fixed;
  inset: 0;
  z-index: 3000;
  /* Higher than landing page */
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.auth-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.close-auth-modal {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}

.close-auth-modal:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--red);
  color: var(--red);
  transform: rotate(90deg);
}

.close-auth-modal i {
  width: 16px;
  height: 16px;
}

.auth-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.auth-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(99, 102, 241, 0.05);
}

.auth-header {
  padding: 24px 32px 12px;
  text-align: center;
}

.auth-header i {
  color: var(--accent);
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

.auth-header h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 6px;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.auth-body {
  padding: 8px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.auth-form input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 13px 16px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s;
}

.auth-form input::placeholder {
  color: var(--text-muted);
}

.auth-form input:focus {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.05);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Password wrapper with toggle */
.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper input {
  padding-right: 44px;
}

.pw-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}

.pw-toggle:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.pw-toggle svg,
.pw-toggle i {
  width: 16px;
  height: 16px;
}

/* Password requirements */
.pw-requirements {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.pw-req {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color 0.25s;
  margin: 0;
}

.pw-req .req-icon,
.pw-req svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.pw-req.valid {
  color: var(--green);
}

.pw-req.valid svg {
  color: var(--green);
}

.pw-req.invalid {
  color: var(--red);
}

/* Signup-only fields transition */
.signup-only {
  animation: fadeSlideIn 0.3s ease;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  width: 100%;
}

.auth-btn.google {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.auth-btn.google:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.auth-btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.auth-btn.primary:hover {
  background: #4f46e5;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

.auth-error {
  color: var(--red);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 8px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-divider span {
  padding: 0 14px;
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 500;
}


.command-palette {
  width: 580px;
  max-height: 420px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  animation: slideDown 0.15s ease;
}

.cmd-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.cmd-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

#cmd-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  outline: none;
}

#cmd-input::placeholder {
  color: var(--text-muted);
}

.cmd-kbd {
  background: var(--bg-input);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: monospace;
}

.cmd-results {
  overflow-y: auto;
  max-height: 320px;
  padding: 8px;
}

.cmd-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all 0.1s;
}

.cmd-result:hover,
.cmd-result.selected {
  background: var(--accent);
  color: #fff;
}

.cmd-result-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.cmd-result-label {
  flex: 1;
}

.cmd-result-type {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cmd-result:hover .cmd-result-type,
.cmd-result.selected .cmd-result-type {
  color: rgba(255, 255, 255, 0.7);
}

.cmd-empty {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.empty-state {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-state-icon {
  width: 32px;
  height: 32px;
  color: var(--border-hover);
  margin-bottom: 4px;
}

/* =========================== */
/* ONBOARDING (No Workspace)   */
/* =========================== */
.onboarding-section {
  margin-top: 24px;
  animation: fadeIn 0.3s ease;
}

.onboarding-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.onboarding-card {
  padding: 32px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: all 0.25s ease;
  cursor: default;
  border: 1px solid var(--border);
}

.onboarding-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.1);
}

.onboarding-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
}

.onboarding-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 300px;
  margin-bottom: 4px;
}

.onboarding-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding-card-icon i,
.onboarding-card-icon svg {
  width: 28px;
  height: 28px;
}

.onboarding-card-icon.create {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent);
}

.onboarding-card-icon.sync {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
}

.onboarding-steps {
  padding: 24px 28px;
  border: 1px solid var(--border);
}

.onboarding-steps .sub-header {
  margin-top: 0;
  margin-bottom: 16px;
}

.onboarding-step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.onboarding-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-number {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-content strong {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.step-content span {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.step-content a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.step-content a:hover {
  text-decoration: underline;
}

.step-content code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
}

.overview-context-icon {
  background: rgba(0, 208, 132, 0.1);
  color: var(--success);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.overview-context-copy {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 760px;
}

.overview-context-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 14px;
}

.overview-context-hint {
  color: var(--text-muted);
  font-size: 0.82rem;
  max-width: 780px;
  margin: 0 auto;
}

.overview-context-hint code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--cyan);
}

.overview-connect-shell {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.overview-connect-grid {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.overview-connect-panel {
  text-align: left;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(10, 12, 17, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 12px;
}

.overview-connect-panel-accent {
  border-color: rgba(0, 208, 132, 0.18);
  background:
    radial-gradient(circle at top right, rgba(0, 208, 132, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(0, 208, 132, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(10, 12, 17, 0.62);
}

.overview-connect-eyebrow {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-connect-panel h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.overview-connect-panel p {
  color: var(--text-muted);
  line-height: 1.65;
}

.overview-connect-command-stack {
  display: grid;
  gap: 10px;
}

.overview-connect-command {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(5, 8, 12, 0.6);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

.overview-connect-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.overview-connect-inline-actions .btn {
  flex: 1 1 200px;
  justify-content: center;
}

.overview-connect-topline {
  width: min(980px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at left, rgba(0, 208, 132, 0.08), transparent 34%),
    rgba(10, 12, 17, 0.58);
}

.overview-connect-guide {
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.65;
  max-width: 64ch;
}

.overview-connect-walkthrough {
  flex-shrink: 0;
}

.overview-connect-mode-switch {
  width: min(540px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.overview-connect-mode-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(10, 12, 17, 0.5);
  color: var(--text-secondary);
  padding: 12px 14px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.18s ease;
}

.overview-connect-mode-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.16);
}

.overview-connect-mode-btn.active {
  color: #052b1a;
  border-color: rgba(0, 208, 132, 0.3);
  background: linear-gradient(180deg, rgba(0, 208, 132, 0.98), rgba(0, 208, 132, 0.84));
  box-shadow: 0 12px 28px rgba(0, 208, 132, 0.18);
}

.overview-connect-mission {
  width: min(980px, 100%);
  text-align: left;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(0, 208, 132, 0.14);
  background:
    radial-gradient(circle at top right, rgba(0, 208, 132, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(0, 208, 132, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(10, 12, 17, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 12px;
}

.overview-connect-mission h4 {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.overview-connect-mission > p {
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 74ch;
}

.overview-connect-step-list {
  position: relative;
  display: grid;
  gap: 20px;
  margin-top: 8px;
}

.overview-connect-step {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.overview-connect-step::after {
  content: '';
  position: absolute;
  left: 25px;
  top: 58px;
  bottom: -18px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0, 208, 132, 0.32), rgba(0, 208, 132, 0.04));
}

.overview-connect-step:last-child::after {
  display: none;
}

.overview-connect-step-agent {
  align-items: stretch;
}

.overview-connect-step-no {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(0, 208, 132, 0.18);
  background:
    radial-gradient(circle at top, rgba(0, 208, 132, 0.2), transparent 72%),
    rgba(0, 208, 132, 0.08);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 18px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.overview-connect-step-main {
  display: grid;
  gap: 10px;
  padding: 18px 20px 18px 22px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    rgba(8, 12, 18, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 18px 30px rgba(0, 0, 0, 0.14);
  position: relative;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.overview-connect-step-main::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0, 208, 132, 0.72), rgba(0, 208, 132, 0.08));
  opacity: 0.72;
}

.overview-connect-step:hover .overview-connect-step-main {
  transform: translateY(-2px);
  border-color: rgba(0, 208, 132, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0)),
    rgba(10, 14, 20, 0.86);
}

.overview-connect-step:hover .overview-connect-step-no {
  transform: translateY(-2px);
  border-color: rgba(0, 208, 132, 0.28);
}

.overview-connect-step[data-step-state="current"] .overview-connect-step-no {
  border-color: rgba(0, 208, 132, 0.34);
  background:
    radial-gradient(circle at top, rgba(0, 208, 132, 0.32), transparent 72%),
    rgba(0, 208, 132, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 0 0 5px rgba(0, 208, 132, 0.06),
    0 18px 36px rgba(0, 0, 0, 0.2);
}

.overview-connect-step[data-step-state="current"] .overview-connect-step-main {
  border-color: rgba(0, 208, 132, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(0, 208, 132, 0.04),
    0 24px 40px rgba(0, 0, 0, 0.2);
}

.overview-connect-step[data-step-state="done"] .overview-connect-step-no {
  border-color: rgba(0, 208, 132, 0.42);
  background: linear-gradient(135deg, rgba(0, 208, 132, 0.96), rgba(0, 208, 132, 0.72));
  color: #04130d;
}

.overview-connect-step[data-step-state="done"] .overview-connect-step-main {
  border-color: rgba(0, 208, 132, 0.14);
}

.overview-connect-step[data-step-state="done"] .overview-connect-command-row {
  border-color: rgba(0, 208, 132, 0.16);
  background: rgba(5, 12, 11, 0.76);
}

.overview-connect-step[data-step-state="anchor"] .overview-connect-step-no {
  border-color: rgba(110, 132, 176, 0.18);
  background:
    radial-gradient(circle at top, rgba(99, 102, 241, 0.2), transparent 72%),
    rgba(14, 18, 26, 0.78);
  color: rgba(230, 236, 248, 0.92);
}

.overview-connect-step-meta {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-connect-step-title {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.overview-connect-step-copy {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9rem;
}

.overview-connect-command-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(5, 8, 12, 0.58);
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.overview-connect-command-row .cmd-copy-btn {
  flex-shrink: 0;
}

.cmd-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 11, 16, 0.88);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.cmd-copy-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 208, 132, 0.22);
  background: rgba(11, 16, 22, 0.96);
  color: var(--text-primary);
}

.cmd-copy-btn .btn-icon {
  width: 14px;
  height: 14px;
  opacity: 0.84;
}

.overview-connect-inline-actions .btn.is-copied,
.cmd-copy-btn.is-copied {
  border-color: rgba(0, 208, 132, 0.26);
  background: rgba(0, 208, 132, 0.14);
  color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 208, 132, 0.05);
}

.overview-connect-step-note {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.overview-connect-prompt-preview {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(5, 8, 12, 0.55);
  padding: 14px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.overview-connect-preview-label {
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.audit-prompt-preview-text {
  margin: 0;
  white-space: pre-wrap;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.7;
  font-family: 'JetBrains Mono', monospace;
  max-height: 240px;
  overflow: auto;
}

.workspace-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.workspace-card.active {
  border-color: rgba(0, 208, 132, 0.22);
  box-shadow: 0 0 0 1px rgba(0, 208, 132, 0.05);
}

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

.workspace-card-title {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
}

.workspace-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.workspace-card-hint {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.workspace-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-muted);
}

.workspace-status-badge.synced {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.2);
  color: var(--green);
}

.workspace-status-badge.pending {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.22);
  color: var(--orange);
}

.workspace-token-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.workspace-token-row {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.workspace-token-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84rem;
  color: var(--accent);
}

.workspace-token-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.workspace-token-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.workspace-token-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.08);
}

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

.workspace-token-btn i,
.workspace-token-btn svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 768px) {
  .onboarding-actions {
    grid-template-columns: 1fr;
  }

  .overview-context-actions {
    flex-direction: column;
    width: 100%;
  }

  .overview-context-actions .btn {
    width: 100%;
  }

  .overview-connect-grid {
    grid-template-columns: 1fr;
  }

  .overview-connect-inline-actions .btn {
    width: 100%;
  }

  .overview-connect-topline {
    flex-direction: column;
    align-items: stretch;
  }

  .overview-connect-mode-switch {
    width: 100%;
  }

  .overview-connect-step {
    grid-template-columns: 1fr;
  }

  .overview-connect-step-no {
    width: 38px;
    height: 38px;
  }

  .overview-connect-command-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* --- Skeleton Loaders --- */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  color: transparent !important;
  background: linear-gradient(90deg,
      var(--bg-input) 25%,
      rgba(99, 102, 241, 0.1) 50%,
      var(--bg-input) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 4px;
  display: inline-block;
  min-height: 1em;
  user-select: none;
}

/* =========================== */
/* NOTIFICATIONS PANEL         */
/* =========================== */
.notif-panel {
  position: absolute;
  top: 60px;
  right: 28px;
  z-index: 200;
  width: 380px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.15s ease;
}

.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.notif-panel-header h3 {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notif-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 8px;
}

.notif-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: background 0.15s;
  margin-bottom: 2px;
}

.notif-item:hover {
  background: var(--bg-card-hover);
}

.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.notif-dot.warn {
  background: var(--orange);
}

.notif-dot.info {
  background: var(--cyan);
}

.notif-dot.success {
  background: var(--green);
}

.notif-empty {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* =========================== */
/* PAGES COMMON                */
/* =========================== */
.page {
  display: none;
  padding: 32px 36px;
  flex: 1;
  overflow-y: auto;
  animation: fadeIn 0.2s ease;
}

.page.active {
  display: block;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.page-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.sub-header {
  font-size: 1rem;
  font-weight: 600;
  margin: 24px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-icon {
  width: 14px;
  height: 14px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #4f46e5;
  box-shadow: 0 0 16px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: var(--red);
  color: #fff;
}

.btn-outline-danger {
  background: transparent;
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-outline-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--red);
}

.btn-icon-danger:hover {
  color: var(--red) !important;
  background: rgba(239, 68, 68, 0.1) !important;
}

.btn-accent {
  background: var(--cyan);
  color: #fff;
}

.btn-accent:hover {
  background: #0891b2;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 0.75rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-group {
  display: flex;
  gap: 8px;
}

/* --- Inputs --- */
.input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea.input {
  resize: vertical;
  min-height: 80px;
}

/* --- Form --- */
.add-form {
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-actions {
  display: flex;
  gap: 8px;
}

.status-msg {
  font-size: 0.8rem;
  margin-top: 4px;
}

/* --- Filter buttons --- */
.filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.filter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.filter-dot.done {
  background: var(--green);
}

.filter-dot.dev {
  background: var(--orange);
}

.filter-dot.pending {
  background: var(--pink);
}

/* =========================== */
/* DASHBOARD OVERVIEW          */
/* =========================== */

.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 36px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(20, 184, 166, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.2);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-decoration {
  position: absolute;
  right: -20px;
  bottom: -40px;
  opacity: 0.15;
  color: var(--accent);
  pointer-events: none;
}

.hero-decoration i,
.hero-decoration svg {
  width: 180px;
  height: 180px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon i,
.stat-icon svg {
  width: 26px;
  height: 26px;
}

/* Unique icon colors per stat card */
.stat-card:nth-child(1) .stat-icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05));
  color: var(--accent);
}

.stat-card:nth-child(2) .stat-icon {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(14, 165, 233, 0.05));
  color: var(--info);
}

.stat-card:nth-child(3) .stat-icon {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.05));
  color: var(--success);
}

.stat-card:nth-child(4) .stat-icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.05));
  color: var(--warning);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.overview-section {
  padding: 32px;
}

.overview-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.overview-card .sub-header {
  margin-top: 0;
  margin-bottom: 12px;
}

.chart-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 220px;
  padding-top: 16px;
}

.overview-section .sub-header {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.overview-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Session timeline */
.session-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timeline-item-icon.log {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent);
}

.timeline-item-icon.note {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}

.timeline-item-icon.roadmap {
  background: rgba(245, 158, 11, 0.15);
  color: var(--orange);
}

.timeline-item-content {
  flex: 1;
}

.timeline-item-title {
  font-weight: 600;
}

.timeline-item-meta {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Chart */
.chart-container {
  height: 180px;
  margin-bottom: 12px;
}

.roadmap-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.roadmap-stat {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.roadmap-stat .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Quick links */
.quick-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.quick-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.quick-link i,
.quick-link svg {
  width: 14px;
  height: 14px;
}

/* ============================================
   Dashboard Bento Grid
   ============================================ */
.dashboard-bento {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.bento-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 4px 24px rgba(16, 185, 129, 0.08);
}

.bento-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.bento-header h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.bento-header h3 .section-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.bento-menu-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.bento-menu-btn:hover {
  color: var(--text-primary);
  background: var(--bg-input);
}

.bento-menu-btn i,
.bento-menu-btn svg {
  width: 16px;
  height: 16px;
}

/* Bento card spans */
.bento-health {
  grid-column: span 1;
}

.bento-agents {
  grid-column: span 1;
}

.bento-feed {
  grid-column: span 1;
}

.bento-roadmap {
  grid-column: span 2;
}

.bento-links {
  grid-column: span 1;
}

/* ============================================
   Health Info (text-based)
   ============================================ */
.health-info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.health-info-row {
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.health-info-row:hover {
  border-color: rgba(16, 185, 129, 0.3);
}

.health-info-label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.health-info-right {
  float: right;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: -20px;
}

.health-info-value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.health-info-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.health-info-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  clear: both;
}

.health-info-bar {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  margin-top: 10px;
  overflow: hidden;
}

.health-info-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.health-info-bar-fill.green {
  background: var(--success);
}

.health-info-bar-fill.cyan {
  background: var(--info);
}

.health-info-bar-fill.amber {
  background: var(--warning);
}

/* ============================================
   AI Agent Status
   ============================================ */
.agent-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.agent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.agent-row:hover {
  border-color: rgba(16, 185, 129, 0.3);
}

.agent-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.agent-icon i,
.agent-icon svg {
  width: 18px;
  height: 18px;
}

.agent-info {
  flex: 1;
  min-width: 0;
}

.agent-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.agent-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.agent-badge.active {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.agent-badge.idle {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.agent-metrics {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.agent-metrics span {
  font-weight: 600;
  color: var(--text-secondary);
}

.agent-progress {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  margin-top: 6px;
  overflow: hidden;
}

.agent-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease;
}

/* ============================================
   Activity Feed
   ============================================ */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feed-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.83rem;
}

.feed-item:last-child {
  border-bottom: none;
}

.feed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.feed-dot.green {
  background: #22c55e;
}

.feed-dot.blue {
  background: #10b981;
}

.feed-dot.orange {
  background: #f59e0b;
}

.feed-dot.red {
  background: #ef4444;
}

.feed-dot.cyan {
  background: #06b6d4;
}

.feed-content {
  flex: 1;
}

.feed-title {
  font-weight: 600;
  color: var(--text-primary);
}

.feed-title .feed-tag {
  color: var(--accent);
  font-weight: 700;
}

.feed-desc {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 2px;
}

.feed-time {
  color: var(--text-muted);
  font-size: 0.7rem;
  white-space: nowrap;
  margin-top: 2px;
}

/* ============================================
   Mini Kanban
   ============================================ */
.mini-kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.kanban-col-mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 4px;
}

.kanban-col-header .col-name {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.kanban-col-header .col-count {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 50px;
  background: var(--bg-input);
  color: var(--text-secondary);
}

.kanban-col-mini .kanban-mini-card {
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  transition: border-color 0.2s;
}

.kanban-col-mini .kanban-mini-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
}

.kanban-mini-card .card-title {
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
  font-size: 0.8rem;
}

.kanban-mini-card .card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.kanban-mini-tag {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.kanban-mini-tag.tag-backlog {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.kanban-mini-tag.tag-dev {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.kanban-mini-tag.tag-review {
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
}

.kanban-mini-tag.tag-done {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.kanban-empty-col {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 12px;
  text-align: center;
  background: var(--bg-input);
  border-radius: 8px;
  border: 1px dashed var(--border);
}

/* Responsive bento */
@media (max-width: 1100px) {
  .dashboard-bento {
    grid-template-columns: 1fr 1fr;
  }

  .bento-roadmap {
    grid-column: span 2;
  }

  .bento-links {
    grid-column: span 1;
  }
}

@media (max-width: 700px) {
  .dashboard-bento {
    grid-template-columns: 1fr;
  }

  .bento-roadmap {
    grid-column: span 1;
  }

  .bento-links {
    grid-column: span 1;
  }

  .health-gauges {
    flex-wrap: wrap;
  }

  .mini-kanban {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mini entries */
.mini-entry {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.mini-entry:last-child {
  border-bottom: none;
}

.mini-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2px;
}

/* =========================== */
/* KANBAN BOARD                */
/* =========================== */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.kanban-column {
  min-height: 200px;
}

.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px 10px 0 0;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kanban-column[data-col="Backlog"] .kanban-col-header {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent);
}

.kanban-column[data-col="In Dev"] .kanban-col-header {
  background: rgba(245, 158, 11, 0.15);
  color: var(--orange);
}

.kanban-column[data-col="Review"] .kanban-col-header {
  background: rgba(236, 72, 153, 0.15);
  color: var(--pink);
}

.kanban-column[data-col="Done"] .kanban-col-header {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}

.kanban-col-count {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
}

.kanban-col-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 10px 10px;
  min-height: 120px;
  background: var(--bg-card);
}

.kanban-card {
  padding: 10px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: border-color 0.2s, transform 0.15s;
}

.kanban-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.kanban-card-text {
  flex: 1;
}

.kanban-move-btns {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}

.kanban-card:hover .kanban-move-btns {
  opacity: 1;
}

.kanban-move-btn,
.kanban-remove-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.kanban-move-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.kanban-remove-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

/* =========================== */
/* HEALTH MONITOR              */
/* =========================== */
.health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.health-card {
  padding: 20px;
  transition: transform 0.2s;
}

.health-card:hover {
  transform: translateY(-2px);
}

.health-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.health-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.health-status-dot.online {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}

.health-status-dot.offline {
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

.health-status-dot.pending {
  background: var(--orange);
  animation: blink 1s infinite;
}

.health-app-name {
  font-weight: 700;
  font-size: 1rem;
}

.health-url {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.health-detail {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.health-detail span {
  color: var(--text-muted);
}

.issue-card {
  padding: 12px 16px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-left: 3px solid var(--orange);
}

/* =========================== */
/* ARCHITECTURE                */
/* =========================== */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.arch-card {
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.arch-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.arch-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.arch-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.arch-badge.app {
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent);
}

.arch-badge.infra {
  background: rgba(245, 158, 11, 0.2);
  color: var(--orange);
}

.arch-badge.tool {
  background: rgba(168, 85, 247, 0.2);
  color: var(--purple);
}

.arch-card-body {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.arch-card-body p {
  margin-bottom: 8px;
}

.arch-card-body ul {
  list-style: none;
}

.arch-card-body li {
  padding: 3px 0;
}

.arch-card-body li::before {
  content: '→ ';
  color: var(--accent);
}

/* =========================== */
/* MEMORY / SEARCH             */
/* =========================== */
.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.search-input {
  flex: 1;
}

.result-card {
  padding: 16px;
  margin-bottom: 10px;
}

.result-file {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}

.result-heading {
  font-weight: 600;
  margin-bottom: 6px;
}

.result-preview {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.result-score {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.memory-doc-card {
  padding: 16px;
  margin-bottom: 16px;
}

.memory-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.memory-doc-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.memory-doc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.memory-doc-preview {
  padding: 14px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
}

.memory-doc-editor {
  margin-top: 12px;
}

.memory-doc-editor textarea {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  font-family: var(--font-mono);
}

.audit-card {
  display: grid;
  gap: 16px;
}

.audit-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.audit-meta {
  display: grid;
  gap: 8px;
}

.audit-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.audit-hint {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.audit-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.audit-toolbar {
  margin-top: 0;
}

.audit-empty {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.audit-empty-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.audit-empty-copy {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.audit-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-secondary);
  flex-wrap: wrap;
}

.audit-command code {
  font-size: 0.95rem;
  color: var(--accent);
}

/* =========================== */
/* SKILLS                      */
/* =========================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.skill-card {
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.skill-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
  text-transform: capitalize;
}

.skill-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.8rem;
}

.skill-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
}

.skill-badge.has-skill {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}

.skill-badge.no-skill {
  background: rgba(245, 158, 11, 0.15);
  color: var(--orange);
}

.skill-badge.skill-badge-neutral {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.skill-preview {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-height: 60px;
  overflow: hidden;
}

.mcp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.mcp-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-input);
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 11px;
}

.mcp-item.connected {
  border-color: rgba(0, 208, 132, 0.2);
}

.mcp-item.disconnected {
  opacity: 0.5;
}

.mcp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mcp-dot.g {
  background: var(--green);
  box-shadow: 0 0 5px rgba(0, 208, 132, 0.55);
}

.mcp-dot.gr {
  background: var(--text-muted);
}

.mcp-name {
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
}

.mcp-status {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.mcp-footer {
  margin-top: 4px;
}

.mcp-hint {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.editor-panel {
  padding: 20px;
  margin-top: 16px;
}

.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.editor-actions {
  display: flex;
  gap: 6px;
}

.code-editor {
  width: 100%;
  min-height: 320px;
  padding: 16px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'Cascadia Code', 'Fira Code', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  resize: vertical;
}

.code-editor:focus {
  outline: none;
  border-color: var(--accent);
}

.editor-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

/* =========================== */
/* FEATURES MATRIX             */
/* =========================== */
.features-section-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.feature-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.feature-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.feature-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.feature-status-badge {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 20px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.feature-status-badge.done {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.feature-status-badge.dev {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.2);
  color: #c084fc;
}

.feature-status-badge.pending {
  background: rgba(234, 179, 8, 0.1);
  border-color: rgba(234, 179, 8, 0.2);
  color: #facc15;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

/* =========================== */
/* CHANGELOG / TIMELINE        */
/* =========================== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-entry {
  padding: 16px;
}

.timeline-date {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
}

.timeline-body {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: pre-line;
}

/* =========================== */
/* CONTEXT BUILDER             */
/* =========================== */
.context-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

.context-picker h4,
.context-output h4 {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-primary);
}

.ctx-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-5);
}

.ctx-check {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px var(--space-2);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.ctx-check:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.ctx-check input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
  border-radius: 4px;
}

.context-output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.context-pre {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  max-height: 500px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin-top: var(--space-4);
}

/* =========================== */
/* CONFIG TABS                 */
/* =========================== */
.config-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.config-tab {
  padding: 8px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.config-tab:hover {
  border-color: var(--accent);
}

.config-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* =========================== */
/* SETTINGS & PROFILE PAGE     */
/* =========================== */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 0;
}

.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.settings-card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.settings-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.profile-form-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group-avatar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--border);
}

.profile-big-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.form-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-cols {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

/* =========================== */
/* CONFIRM DIALOG              */
/* =========================== */
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-dialog {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
}

.confirm-dialog h3 {
  margin-bottom: 8px;
}

.confirm-dialog p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.confirm-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* =========================== */
/* ANIMATIONS                  */
/* =========================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* =========================== */
/* RESPONSIVE                  */
/* =========================== */
@media (max-width: 1024px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .kanban-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .context-layout {
    grid-template-columns: 1fr;
  }
}

/* =========================== */
/* TERMINAL RUNNER             */
/* =========================== */
.terminal-tasks {
  margin-bottom: 20px;
}

.task-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.task-btn {
  min-width: 130px;
}

.task-btn:hover {
  border-color: var(--green);
  color: var(--green);
}

.terminal-custom {
  padding: 18px;
  margin-bottom: 20px;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.terminal-prompt {
  color: var(--green);
  font-family: 'Fira Code', 'Cascadia Code', Consolas, monospace;
  font-weight: 700;
  font-size: 1.1rem;
}

.terminal-cmd-input {
  flex: 1;
  font-family: 'Fira Code', 'Cascadia Code', Consolas, monospace;
  font-size: 0.9rem;
}

.terminal-output-panel {
  padding: 18px;
}

.terminal-output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.terminal-output {
  background: #0d1117;
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 10px;
  padding: 16px;
  font-family: 'Fira Code', 'Cascadia Code', Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #e6edf3;
  overflow-x: auto;
  max-height: 500px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* =========================== */
/* API TESTER                  */
/* =========================== */
.api-tester-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.api-request,
.api-response {
  padding: 20px;
}

.api-method-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.api-method-select {
  width: 110px;
  font-weight: 700;
  color: var(--green);
}

.api-url-input {
  flex: 1;
  font-family: 'Fira Code', Consolas, monospace;
  font-size: 0.85rem;
}

.api-body-input {
  font-family: 'Fira Code', Consolas, monospace;
  font-size: 0.82rem;
  resize: vertical;
  margin-bottom: 12px;
}

.api-request h5 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 12px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.api-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.api-preset-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.api-response-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.api-response-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.api-status-badge {
  font-family: 'Fira Code', Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border);
}

.api-status-badge.success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
  border-color: rgba(34, 197, 94, 0.3);
}

.api-status-badge.error {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.3);
}

.api-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
}

.api-response-body {
  background: #0d1117;
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 10px;
  padding: 16px;
  font-family: 'Fira Code', 'Cascadia Code', Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #e6edf3;
  overflow-x: auto;
  max-height: 500px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* =========================== */
/* SPLIT-PANE EDITOR           */
/* =========================== */
.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px 10px 0 0;
  margin-top: 12px;
}

.toolbar-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.15s;
}

.toolbar-btn:hover {
  background: var(--accent-glow);
  color: var(--accent);
  border-color: var(--border);
}

.toolbar-spacer {
  flex: 1;
}

.toolbar-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
}

.toolbar-toggle input {
  cursor: pointer;
}

.editor-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  min-height: 400px;
}

.split-editor {
  border-radius: 0;
  border: none;
  border-right: 1px solid var(--border);
  resize: none;
  min-height: 400px;
}

.split-preview {
  padding: 16px 20px;
  overflow-y: auto;
  max-height: 500px;
  background: var(--bg-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.split-preview h1,
.split-preview h2,
.split-preview h3 {
  margin: 12px 0 6px;
  color: var(--accent);
}

.split-preview h1 {
  font-size: 1.4rem;
}

.split-preview h2 {
  font-size: 1.15rem;
}

.split-preview h3 {
  font-size: 1rem;
}

.split-preview p {
  margin-bottom: 8px;
}

.split-preview ul,
.split-preview ol {
  padding-left: 20px;
  margin-bottom: 8px;
}

.split-preview code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Fira Code', Consolas, monospace;
  font-size: 0.85em;
}

.split-preview pre {
  background: var(--code-bg);
  padding: 12px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 8px;
}

.split-preview pre code {
  background: none;
  padding: 0;
}

.split-preview blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.split-preview a {
  color: var(--accent);
  text-decoration: underline;
}

.split-preview strong {
  color: var(--text-primary);
  font-weight: 700;
}

.split-preview em {
  color: var(--text-secondary);
}

.split-preview hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

.editor-split.no-preview {
  grid-template-columns: 1fr;
}

.editor-split.no-preview .split-preview {
  display: none;
}

.editor-split.no-preview .split-editor {
  border-right: none;
}

/* =========================== */
/* CONTEXT BUILDER PRESETS     */
/* =========================== */
.context-presets {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.preset-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.preset-btn {
  border-color: var(--border);
}

.preset-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.preset-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.ctx-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
}

.ctx-prompt-input {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  resize: vertical;
}

/* =========================== */
/* SNIPPETS LIBRARY            */
/* =========================== */
.snippet-form-row {
  display: flex;
  gap: 10px;
  margin: 8px 0;
}

.snippet-form-row .input {
  flex: 1;
}

.snippet-code-input {
  font-family: 'Fira Code', Consolas, monospace;
  font-size: 0.85rem;
  min-height: 120px;
  margin: 8px 0;
}

.snippet-filters {
  margin-bottom: 16px;
}

.snippet-search-input {
  max-width: 400px;
}

.snippets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

.snippet-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.2s;
}

.snippet-card:hover {
  border-color: var(--accent);
}

.snippet-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.snippet-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.snippet-lang-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--accent-glow);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.snippet-card-code {
  padding: 12px 16px;
  background: #0d1117;
  font-family: 'Fira Code', Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #e6edf3;
  overflow-x: auto;
  max-height: 200px;
  white-space: pre-wrap;
}

.snippet-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-top: 1px solid var(--border);
}

.snippet-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.snippet-tag {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-input);
  color: var(--text-muted);
}

.snippet-actions {
  display: flex;
  gap: 6px;
}

.snippet-action-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s;
}

.snippet-action-btn:hover {
  color: var(--accent);
}

.snippet-action-btn.delete:hover {
  color: var(--red);
}

/* =========================== */
/* STANDUP GENERATOR           */
/* =========================== */
.standup-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.standup-card {
  padding: 20px;
  border-radius: 12px;
}

.standup-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.standup-section-title .section-icon {
  width: 18px;
  height: 18px;
}

.standup-card:nth-child(1) .standup-section-title {
  color: var(--cyan);
}

.standup-card:nth-child(2) .standup-section-title {
  color: var(--green);
}

.standup-card:nth-child(3) .standup-section-title {
  color: var(--red);
}

.standup-list {
  list-style: none;
  padding: 0;
}

.standup-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.standup-list li:last-child {
  border-bottom: none;
}

.standup-list li::before {
  content: '•';
  margin-right: 8px;
  font-weight: 700;
}

.standup-output {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

.btn-group {
  display: flex;
  gap: 8px;
}

/* =========================== */
/* DEPLOY HISTORY              */
/* =========================== */
.deploy-entry {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.deploy-status-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.deploy-info {
  flex: 1;
}

.deploy-target {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.deploy-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.deploy-notes {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.add-form {
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.add-form .input {
  margin-bottom: 8px;
  width: 100%;
}

/* =========================== */
/* DEPENDENCIES TABLE          */
/* =========================== */
.deps-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.deps-table thead {
  background: var(--bg-input);
}

.deps-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.deps-table td {
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}

.deps-table tr:hover td {
  background: var(--accent-glow);
}

.dep-type-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.dep-type-badge.npm {
  background: rgba(203, 56, 55, 0.15);
  color: #e44d4d;
}

.dep-type-badge.pub {
  background: rgba(0, 150, 255, 0.15);
  color: #4da6ff;
}

/* =========================== */
/* DECISION LOG (ADR)          */
/* =========================== */
.decision-entry {
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
}

.decision-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.decision-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.decision-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.decision-section {
  margin-top: 8px;
}

.decision-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.decision-section-body {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.decision-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 10px;
}

/* =========================== */
/* DOCKER DASHBOARD            */
/* =========================== */
.docker-status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: 600;
}

.docker-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

.docker-status-dot.online {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.docker-status-dot.offline {
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

.docker-status-dot.checking {
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow);
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.docker-containers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.docker-card {
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s;
}

.docker-card:hover {
  border-color: var(--accent);
}

.docker-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.docker-card-name {
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.docker-state-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.docker-state-badge.running {
  background: rgba(46, 204, 113, 0.15);
  color: var(--green);
}

.docker-state-badge.exited {
  background: rgba(231, 76, 60, 0.15);
  color: var(--red);
}

.docker-state-badge.created,
.docker-state-badge.paused {
  background: rgba(241, 196, 15, 0.15);
  color: var(--yellow);
}

.docker-card-body {
  padding: 12px 16px;
}

.docker-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.docker-card-meta strong {
  color: var(--text-secondary);
}

.docker-card-actions {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
}

.docker-card-actions .btn {
  font-size: 0.75rem;
  padding: 4px 12px;
}

.btn-sm {
  font-size: 0.75rem;
  padding: 4px 12px;
}

.btn-success {
  background: var(--green);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 600;
  transition: opacity 0.15s;
}

.btn-success:hover {
  opacity: 0.85;
}

.btn-danger {
  background: var(--red);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 600;
  transition: opacity 0.15s;
}

.btn-danger:hover {
  opacity: 0.85;
}

.docker-panel {
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.docker-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.docker-panel-header h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.docker-logs-output {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-family: 'Fira Code', Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #8b949e;
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.docker-exec-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.docker-containers {
  display: flex;
  flex: 1;
  min-height: 55vh;
}

.docker-containers:has(.docker-empty) {
  align-items: center;
  justify-content: center;
}

.docker-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
  width: 100%;
  color: var(--text-muted);
}

.docker-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.docker-empty-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.docker-empty-desc {
  font-size: 0.85rem;
}

/* =========================== */
/* POMODORO                    */
/* =========================== */
.pomo-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pomo-timer-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pomo-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

/* SVG Ring Timer */
.pomo-ring-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 8px auto 24px;
}

.pomo-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.pomo-ring-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 6;
}

.pomo-ring-progress {
  fill: none;
  stroke: url(#ring-gradient);
  stroke: #818cf8;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 565.48;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.5s ease, stroke 0.3s;
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
}

.pomo-ring-progress.running {
  stroke: #22c55e;
  filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.5));
}

.pomo-ring-progress.break-mode {
  stroke: #f59e0b;
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.5));
}

.pomo-ring-time {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.pomo-ring-time.running {
  color: #22c55e;
}

.pomo-ring-time.break-mode {
  color: #f59e0b;
}

/* Focus Sounds */
.focus-sounds {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  width: 100%;
}

.focus-sounds-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.focus-sounds-grid {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.sound-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sound-btn:hover {
  border-color: var(--accent);
  transform: scale(1.08);
}

.sound-btn.active {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
  animation: soundPulse 2s ease-in-out infinite;
}

@keyframes soundPulse {

  0%,
  100% {
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
  }

  50% {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
  }
}

.focus-volume-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.focus-volume {
  width: 120px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 2px;
  outline: none;
}

.focus-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

.pomo-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.pomo-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.pomo-preset {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.pomo-preset.active {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent);
}

.pomo-preset:hover {
  border-color: var(--accent);
}

.pomo-history {
  padding: 28px;
  max-height: 500px;
  overflow-y: auto;
}

.pomo-session-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.pomo-session-item:last-child {
  border-bottom: none;
}

.pomo-session-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pomo-session-badge.focus {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

.pomo-session-badge.break {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

/* =========================== */
/* GIT DASHBOARD               */
/* =========================== */
.git-status-bar {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.git-branch-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  font-weight: 700;
  font-size: 0.85rem;
}

.git-stat {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.git-stat strong {
  color: var(--text-primary);
}

.git-commit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.git-commit-item:last-child {
  border-bottom: none;
}

.git-hash {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-input);
  color: var(--accent);
  font-weight: 600;
}

.git-commit-msg {
  flex: 1;
}

.git-commit-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.git-branch-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.git-branch-item:last-child {
  border-bottom: none;
}

.git-change-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.85rem;
  font-family: monospace;
}

.git-change-status {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.git-change-status.M {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.git-change-status.A {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.git-change-status.D {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.git-change-status.U {
  color: var(--accent);
}

/* =========================== */
/* ENV MANAGER                 */
/* =========================== */
.env-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 16px;
}

.env-sidebar-panel {
  padding: 20px;
}

.env-editor-panel {
  padding: 28px;
}

.env-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.env-file-item {
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: monospace;
  transition: all 0.15s;
  margin-bottom: 4px;
  color: var(--text-secondary);
}

.env-file-item:hover {
  background: var(--bg-card-hover);
}

.env-file-item.active {
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 600;
}

.env-var-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.env-var-key {
  font-weight: 700;
  color: var(--accent);
  font-family: monospace;
}

.env-var-value {
  font-family: monospace;
  color: var(--text-secondary);
  word-break: break-all;
}

/* =========================== */
/* BOOKMARKS                   */
/* =========================== */
.bookmark-card {
  padding: 18px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  transition: all 0.2s;
}

.bookmark-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.bookmark-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.bookmark-title a {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.bookmark-title a:hover {
  color: var(--accent);
}

.bookmark-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.bookmark-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.bookmark-tag {
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--accent-glow);
  color: var(--accent);
}

/* =========================== */
/* BUILD MONITOR               */
/* =========================== */
.build-item {
  display: grid;
  grid-template-columns: 80px 1fr 100px 100px auto;
  gap: 12px;
  align-items: center;
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.build-type-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  text-align: center;
}

.build-type-badge.build {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

.build-type-badge.test {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
}

.build-type-badge.deploy {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.build-type-badge.lint {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.build-duration {
  font-family: monospace;
  font-weight: 600;
}

.build-status-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.build-status-badge.success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.build-status-badge.failure {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.build-status-badge.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.build-timestamp {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* =========================== */
/* WEEKLY REPORT               */
/* =========================== */
.weekly-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.weekly-stat-card {
  padding: 20px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  text-align: center;
}

.weekly-stat-value {
  font-size: 2rem;
  font-weight: 800;
}

.weekly-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* =========================== */
/* RESPONSIVE v4.0             */
/* =========================== */
@media (max-width: 1024px) {
  .api-tester-layout {
    grid-template-columns: 1fr;
  }

  .editor-split {
    grid-template-columns: 1fr;
  }

  .split-editor {
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-height: 250px;
  }

  .standup-layout {
    grid-template-columns: 1fr;
  }

  .snippets-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    z-index: 300;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }

  .mobile-topbar {
    display: flex;
  }

  .main-content {
    margin-top: 48px;
  }

  .topbar {
    padding: 12px 16px;
  }

  .topbar-shortcuts-hint {
    display: none;
  }

  .page {
    padding: 16px;
  }

  .kanban-board {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .health-grid,
  .arch-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .command-palette {
    width: 95%;
    margin: 0 10px;
  }

  .notif-panel {
    right: 10px;
    left: 10px;
    width: auto;
  }

  .task-buttons {
    flex-direction: column;
  }

  .api-method-row {
    flex-direction: column;
  }

  .api-method-select {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .filter-group {
    flex-direction: column;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .context-presets {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile overlay for closing sidebar */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0, 0, 0, 0.4);
}

.mobile-overlay.active {
  display: block;
}

/* =========================== */
/* DAILY GOALS                 */
/* =========================== */
.goals-progress {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.goals-progress-bar {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.goals-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #818cf8, #22c55e);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.goals-progress-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.goals-input-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.goals-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.goal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.2s;
}

.goal-item:hover {
  border-color: var(--accent);
}

.goal-item.done {
  opacity: 0.6;
}

.goal-item.done .goal-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

.goal-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.goal-check.checked {
  background: #22c55e;
  border-color: #22c55e;
}

.goal-check.checked::after {
  content: '✓';
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
}

.goal-text {
  flex: 1;
  font-size: 0.9rem;
}

.goal-delete {
  opacity: 0;
  color: var(--red);
  cursor: pointer;
  font-size: 0.8rem;
  transition: opacity 0.2s;
}

.goal-item:hover .goal-delete {
  opacity: 1;
}

.goals-archive {
  padding: 20px;
  max-height: 300px;
  overflow-y: auto;
}

.goals-day-group {
  margin-bottom: 12px;
}

.goals-day-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* =========================== */
/* VELOCITY DASHBOARD          */
/* =========================== */
.velocity-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.velocity-stat-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.velocity-stat-value {
  font-size: 2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.velocity-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.velocity-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.velocity-chart-wrap {
  padding: 24px;
}

.velocity-chart-wrap canvas {
  max-height: 250px;
}

/* =========================== */
/* CLIPBOARD MANAGER           */
/* =========================== */
.clipboard-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clip-card {
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.clip-content {
  flex: 1;
  font-family: monospace;
  font-size: 0.82rem;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 100px;
  overflow-y: auto;
  color: var(--text-primary);
}

.clip-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.clip-tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  font-weight: 600;
}

.clip-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.clip-copy-btn,
.clip-del-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.clip-copy-btn:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.clip-del-btn:hover {
  border-color: var(--red);
  background: rgba(239, 68, 68, 0.1);
}

/* =========================== */
/* SKILLS MARKET               */
/* =========================== */
.skill-market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.skill-template-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.3s;
}

.skill-template-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.skill-template-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.skill-templ.stat-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.skill-template-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.skill-template-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.4;
}

.skill-template-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skill-template-rating {
  font-size: 0.8rem;
  color: #f59e0b;
}

.skill-install-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.skill-install-btn:hover {
  opacity: 0.85;
  transform: scale(1.03);
}

.skill-install-btn.installed {
  background: #22c55e;
  cursor: default;
}

/* =========================== */
/* MARKDOWN PREVIEW            */
/* =========================== */
.md-preview-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  min-height: 500px;
}

.md-file-list-panel {
  padding: 16px;
  max-height: 600px;
  overflow-y: auto;
}

.md-file-item {
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.md-file-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.md-file-item.active {
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 600;
}

.md-rendered-panel {
  padding: 24px;
}

.md-rendered {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.md-rendered h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 20px 0 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.md-rendered h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 18px 0 8px;
}

.md-rendered h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 14px 0 6px;
}

.md-rendered ul,
.md-rendered ol {
  padding-left: 24px;
  margin: 8px 0;
}

.md-rendered li {
  margin: 4px 0;
}

.md-rendered code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-input);
  font-family: monospace;
  font-size: 0.85em;
}

.md-rendered pre {
  padding: 14px;
  border-radius: 8px;
  background: var(--bg-input);
  overflow-x: auto;
  margin: 12px 0;
}

.md-rendered pre code {
  padding: 0;
  background: none;
}

.md-rendered blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  color: var(--text-muted);
  margin: 12px 0;
}

/* =========================== */
/* TEST RUNNER                 */
/* =========================== */
.test-info {
  padding: 14px 20px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.test-results {
  padding: 24px;
}

.test-output {
  font-family: monospace;
  font-size: 0.82rem;
  white-space: pre-wrap;
  line-height: 1.6;
  color: var(--text-secondary);
  max-height: 500px;
  overflow-y: auto;
}

.test-pass {
  color: #22c55e;
}

.test-fail {
  color: #ef4444;
}

.test-running {
  color: #f59e0b;
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* =========================== */
/* DASHBOARD WIDGETS (drag)    */
/* =========================== */
.widget-draggable {
  cursor: grab;
  transition: transform 0.2s, box-shadow 0.2s;
}

.widget-draggable:active {
  cursor: grabbing;
}

.widget-dragging {
  opacity: 0.5;
  transform: scale(0.95);
}

.widget-drop-target {
  border: 2px dashed var(--accent) !important;
}

/* =========================== */
/* GLOBAL SEARCH               */
/* =========================== */
.gsearch-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}

.gsearch-modal {
  width: 560px;
  max-height: 400px;
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
}

.gsearch-modal .input {
  border: none;
  border-radius: 16px 16px 0 0;
  padding: 18px 24px;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
}

.gsearch-results {
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
}

.gsearch-result {
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s;
  font-size: 0.88rem;
}

.gsearch-result:hover {
  background: var(--bg-hover);
}

.gsearch-type {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--accent-glow);
  color: var(--accent);
  text-transform: uppercase;
}

.gsearch-title {
  flex: 1;
  color: var(--text-primary);
}

.gsearch-preview {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* =========================== */
/* SIDEBAR v7.1 UPGRADES       */
/* =========================== */
.section-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
  margin-right: 4px;
}

.nav-section-label {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.nav-section-label:hover {
  color: var(--accent);
}

.nav-section-label.collapsed .section-chevron {
  transform: rotate(-90deg);
}

.nav-section-items {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s;
  max-height: 600px;
  opacity: 1;
}

.nav-section-items.collapsed {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.nav-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: auto;
  font-weight: 700;
  min-width: 16px;
  text-align: center;
}

.nav-badge:empty {
  display: none;
}

/* Sidebar footer & lang picker */
.sidebar-footer {
  padding: 16px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border);
}

.sidebar-lang-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: all 0.2s;
  height: 40px;
  box-sizing: border-box;
}

.sidebar-lang-picker:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.lang-select {
  background: transparent !important;
  color: var(--text-primary);
  border: none !important;
  font-family: inherit;
  font-size: 0.85rem;
  width: auto;
  outline: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.lang-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.sidebar-version {
  font-size: 0.7rem;
  text-align: center;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Sidebar profile card */
.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.15);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-role {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Config gear button in profile card */
.config-menu-btn {
  padding: 6px;
  margin: 0;
  width: auto;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  flex-shrink: 0;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.config-menu-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent);
  transform: rotate(45deg);
}

/* Config popup menu */
.config-popup {
  position: absolute;
  bottom: 60px;
  left: 56px;
  width: 200px;
  background: var(--ink3, var(--bg-card));
  border: 1px solid var(--line2, var(--border));
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 200;
  animation: configPopupIn 0.2s ease;
}

@keyframes configPopupIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.config-popup-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.config-popup-item:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
}

.config-popup-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.config-popup-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 8px;
}

/* Make sidebar-footer relative for popup positioning */
.sidebar-footer {
  position: relative;
}

/* Active item glow */
.nav-item.active {
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25), inset 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.nav-item:hover {
  transform: translateX(2px);
}

/* Right-click context menu for pinning */
.pin-context-menu {
  position: fixed;
  z-index: 1000;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.pin-context-item {
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-primary);
  white-space: nowrap;
}

.pin-context-item:hover {
  background: var(--bg-hover);
}

/* =========================== */
/* HABIT TRACKER               */
/* =========================== */
.habit-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.habit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
}

.habit-name {
  font-weight: 600;
  font-size: 0.88rem;
  width: 140px;
  flex-shrink: 0;
}

.habit-cells {
  display: flex;
  gap: 3px;
  flex: 1;
}

.habit-cell {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
}

.habit-cell.done {
  background: var(--accent);
  border-color: var(--accent);
}

.habit-cell:hover {
  transform: scale(1.15);
}

.habit-streak {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 8px;
  white-space: nowrap;
}

.habit-delete {
  opacity: 0;
  color: var(--red);
  cursor: pointer;
  font-size: 0.8rem;
  margin-left: 4px;
  transition: opacity 0.2s;
}

.habit-row:hover .habit-delete {
  opacity: 1;
}

.habit-legend {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.habit-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.habit-legend .habit-cell {
  width: 14px;
  height: 14px;
  cursor: default;
}

/* =========================== */
/* REMINDERS                   */
/* =========================== */
.reminder-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 8px;
  transition: border-color 0.2s;
}

.reminder-card.overdue {
  border-color: var(--red);
  background: rgba(239, 68, 68, 0.05);
}

.reminder-card.upcoming {
  border-color: var(--yellow);
}

.reminder-icon {
  font-size: 1.4rem;
}

.reminder-info {
  flex: 1;
}

.reminder-text {
  font-weight: 500;
  font-size: 0.9rem;
}

.reminder-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.reminder-dismiss {
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.reminder-dismiss:hover {
  opacity: 1;
}


/* =========================== */
/* STREAK CALENDAR             */
/* =========================== */
.streak-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.streak-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}

.streak-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
}

.streak-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.streak-calendar-wrap {
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
}

.streak-months {
  display: flex;
  gap: 0;
  font-size: 0.7rem;
  color: var(--text-muted);
  padding-left: 30px;
  margin-bottom: 4px;
}

.streak-months span {
  flex: 1;
  min-width: 40px;
}

.streak-grid {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  grid-auto-flow: column;
  gap: 3px;
}

.streak-cell {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  transition: all 0.15s;
}

.streak-cell:hover {
  transform: scale(1.4);
}

.streak-cell.l0 {
  background: rgba(255, 255, 255, 0.05);
}

.streak-cell.l1 {
  background: rgba(99, 102, 241, 0.25);
}

.streak-cell.l2 {
  background: rgba(99, 102, 241, 0.5);
}

.streak-cell.l3 {
  background: rgba(99, 102, 241, 0.75);
}

.streak-cell.l4 {
  background: var(--accent);
}

.streak-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  margin-top: 8px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* =========================== */
/* THEMES                      */
/* =========================== */
.themes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.theme-section {
  padding: 24px;
  border-radius: 12px;
}

.theme-section h3 {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.accent-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.accent-swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.accent-swatch:hover {
  transform: scale(1.15);
}

.accent-swatch.active {
  border-color: #fff;
  box-shadow: 0 0 0 3px var(--accent), 0 2px 12px rgba(0, 0, 0, 0.3);
}

.theme-presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.theme-preset-btn {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.88rem;
  transition: all 0.2s;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-preset-btn:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.theme-preset-btn.active {
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* =========================== */
/* PROFILE PAGE                */
/* =========================== */
.profile-page {
  max-width: 600px;
  padding: 32px;
  border-radius: 16px;
}

.profile-page-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.profile-big-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-form label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

/* =========================== */
/* ANIMATED COUNTERS           */
/* =========================== */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-animate {
  animation: countUp 0.6s ease-out both;
}

.stat-card .stat-value,
.overview-card .stat-number {
  animation: countUp 0.5s ease-out both;
}

.overview-card:nth-child(2) .stat-number {
  animation-delay: 0.1s;
}

.overview-card:nth-child(3) .stat-number {
  animation-delay: 0.2s;
}

.overview-card:nth-child(4) .stat-number {
  animation-delay: 0.3s;
}

/* --- Report Tabs --- */
.report-tabs {
  display: flex;
  gap: 1rem;
  padding: 0.5rem;
  margin: 0 0 2rem 0;
  border-radius: 12px;
  width: fit-content;
}

.report-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.report-tab i {
  width: 18px;
  height: 18px;
}

.report-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.report-tab.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* --- Report View Toggle --- */
.report-view {
  display: none;
  animation: fadeIn 0.3s ease;
}

.report-view.active {
  display: block;
}

/* --- Weekly Report Layout --- */
.weekly-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.weekly-stat-card {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.weekly-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  color: var(--accent);
}

.weekly-stat-icon i {
  width: 24px;
  height: 24px;
}

.weekly-stat-info h5 {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.weekly-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.25rem;
}

.weekly-timeline {
  padding: 2rem;
  margin-top: 1.5rem;
}

.weekly-timeline .section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.weekly-timeline .section-title i {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.weekly-day-group {
  margin-bottom: 2rem;
}

.weekly-day-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--accent);
  font-weight: 600;
}

.weekly-day-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.weekly-activity-item {
  padding: 1rem 0;
  border-left: 2px solid var(--border);
  padding-left: 1.5rem;
  margin-left: 0.5rem;
  position: relative;
}

.weekly-activity-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 1.4rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Language Picker (Sidebar Footer)
   ============================================ */
.sidebar-lang-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 2px;
}

.lang-select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-family: 'Inter', sans-serif;
  padding: 4px 8px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
  flex: 1;
}

.lang-select:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

.lang-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.lang-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* ============================================
   Getting Started Guide Page
   ============================================ */
.guide-container {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.guide-shell {
  display: grid;
  gap: 24px;
}

.guide-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 20px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(16, 185, 129, 0.12);
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(11, 17, 19, 0.92);
}

.guide-stage-hero {
  display: grid;
  gap: 14px;
  align-content: start;
}

.guide-stage-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.16);
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.guide-stage-hero h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.95rem, 3vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.guide-stage-hero p {
  max-width: 62ch;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

.guide-stage-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.guide-mini-command {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(7, 11, 15, 0.72);
  display: grid;
  gap: 10px;
}

.guide-mini-command span {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-mini-command-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.guide-mini-command code {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  word-break: break-all;
}

.guide-mini-command-muted {
  border-color: rgba(148, 163, 184, 0.08);
  background: rgba(12, 16, 22, 0.58);
}

.guide-stage-side {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    rgba(7, 10, 14, 0.76);
  display: grid;
  gap: 12px;
  align-content: start;
}

.guide-stage-side-label {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.guide-stage-side h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.guide-stage-side p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.guide-stage-side-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-flow-shell {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.01)),
    rgba(9, 12, 17, 0.9);
  display: grid;
  gap: 18px;
}

.guide-progress-shell {
  display: grid;
  gap: 16px;
  padding: 18px 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at top left, rgba(0, 208, 132, 0.08), transparent 30%),
    rgba(7, 11, 16, 0.72);
}

.guide-progress-copy {
  display: grid;
  grid-template-columns: auto auto minmax(220px, 1fr);
  align-items: center;
  gap: 10px 16px;
}

.guide-progress-label {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.guide-progress-stats {
  color: var(--text-primary);
  font-size: 0.96rem;
}

.guide-progress-stats strong {
  font-family: var(--font-heading);
  font-size: 1.16rem;
  letter-spacing: -0.03em;
}

.guide-progress-helper {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.guide-progress-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px 16px;
  align-items: start;
}

.guide-progress-item {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.guide-progress-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.guide-progress-node {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(11, 15, 22, 0.96);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.guide-progress-line {
  flex: 1 1 auto;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  min-width: 24px;
}

.guide-progress-caption {
  display: grid;
  gap: 4px;
}

.guide-progress-caption span {
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-progress-caption strong {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 600;
}

.guide-progress-item.is-anchor {
  opacity: 0.8;
}

.guide-progress-item.is-anchor .guide-progress-node {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(10, 13, 20, 0.86);
  color: rgba(166, 189, 229, 0.78);
}

.guide-progress-item.is-anchor .guide-progress-caption strong {
  color: var(--text-secondary);
}

.guide-progress-item.is-anchor .guide-progress-line {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.02));
}

.guide-progress-item.is-current .guide-progress-node {
  border-color: rgba(0, 208, 132, 0.3);
  background:
    radial-gradient(circle at top, rgba(0, 208, 132, 0.24), transparent 72%),
    rgba(10, 16, 16, 0.94);
  color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 208, 132, 0.05);
}

.guide-progress-item.is-current .guide-progress-caption strong {
  color: var(--text-primary);
}

.guide-progress-item.is-current .guide-progress-line {
  background: linear-gradient(90deg, rgba(0, 208, 132, 0.42), rgba(0, 208, 132, 0.12));
}

.guide-progress-item.is-done .guide-progress-node {
  border-color: rgba(0, 208, 132, 0.42);
  background: linear-gradient(135deg, rgba(0, 208, 132, 0.96), rgba(0, 208, 132, 0.72));
  color: #04130d;
}

.guide-progress-item.is-done .guide-progress-caption strong {
  color: var(--text-primary);
}

.guide-progress-item.is-done .guide-progress-line {
  background: linear-gradient(90deg, rgba(0, 208, 132, 0.74), rgba(0, 208, 132, 0.2));
}

.guide-flow-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.guide-flow-header h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: -0.03em;
  margin-top: 6px;
}

.guide-flow-header p {
  margin-top: 10px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 60ch;
}

.guide-mode-switch {
  width: min(440px, 100%);
}

.guide-flow-footer {
  color: var(--text-secondary);
  line-height: 1.75;
  padding-top: 6px;
}

.guide-shell-empty .guide-stage {
  grid-template-columns: minmax(0, 1fr);
}

.overview-setup-banner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(16, 185, 129, 0.12);
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.12), transparent 36%),
    rgba(11, 16, 18, 0.88);
  text-align: left;
}

.overview-setup-copy {
  display: grid;
  gap: 10px;
}

.overview-setup-copy h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.overview-setup-copy p {
  margin: 0;
  max-width: 72ch;
  color: var(--text-secondary);
  line-height: 1.7;
}

.overview-setup-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.overview-connect-preview-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  margin-bottom: 0;
  padding: 2px 2px 10px;
}

.overview-connect-preview-toggle::-webkit-details-marker {
  display: none;
}

.overview-connect-preview-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.overview-connect-preview-hint {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.overview-connect-preview-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  transition: transform 0.2s ease, color 0.2s ease;
}

.overview-connect-prompt-preview[open] {
  border-color: rgba(16, 185, 129, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.overview-connect-prompt-preview:hover {
  border-color: rgba(16, 185, 129, 0.16);
  background: rgba(7, 11, 15, 0.72);
}

.overview-connect-prompt-preview[open] .overview-connect-preview-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.overview-connect-prompt-preview[open] .overview-connect-preview-toggle {
  margin-bottom: 10px;
}

.guide-hero {
  text-align: center;
  padding: 48px 32px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.guide-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #a78bfa, #f472b6);
  border-radius: 16px 16px 0 0;
}

.guide-hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(167, 139, 250, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent);
}

.guide-hero-icon svg {
  width: 28px;
  height: 28px;
}

.guide-hero h2 {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.guide-hero p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

@media (max-width: 980px) {
  .guide-stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-stage-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-flow-header {
    display: grid;
    align-items: start;
  }

  .overview-setup-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .overview-setup-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 1260px) {
  .guide-progress-copy {
    grid-template-columns: repeat(2, minmax(0, auto));
  }

  .guide-progress-helper {
    grid-column: 1 / -1;
  }

  .guide-progress-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guide-progress-line {
    display: none;
  }
}

@media (max-width: 640px) {
  .guide-stage,
  .guide-flow-shell {
    padding: 20px;
    border-radius: 20px;
  }

  .guide-progress-shell {
    padding: 16px;
    border-radius: 18px;
  }

  .guide-progress-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-connect-step {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
  }

  .overview-connect-step::after {
    left: 22px;
  }

  .overview-connect-step-no {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .overview-connect-step-main {
    padding: 16px 16px 16px 18px;
    border-radius: 18px;
  }

  .guide-stage-hero h2 {
    max-width: none;
    font-size: 1.7rem;
  }

  .guide-mini-command-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .guide-mode-switch {
    width: 100%;
  }
}

/* Steps */
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-radius: 14px;
  transition: all 0.3s;
  animation: fadeIn 0.5s ease both;
}

.guide-step:nth-child(1) {
  animation-delay: 0.05s;
}

.guide-step:nth-child(2) {
  animation-delay: 0.1s;
}

.guide-step:nth-child(3) {
  animation-delay: 0.15s;
}

.guide-step:nth-child(4) {
  animation-delay: 0.2s;
}

.guide-step:nth-child(5) {
  animation-delay: 0.25s;
}

.guide-step:hover {
  border-color: var(--accent-border);
  transform: translateX(4px);
}

.guide-step-number {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
}

.guide-step-content {
  flex: 1;
}

.guide-step-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.guide-step-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.guide-step-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.guide-step-icon svg {
  width: 18px;
  height: 18px;
}

/* Code blocks */
.guide-code-block {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.guide-code-block code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  color: #a78bfa;
}

.guide-copy-btn {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--accent);
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.guide-copy-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--accent);
}

/* Tip */
.guide-tip {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 14px;
  border-left: 3px solid #f59e0b;
}

.guide-tip-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
}

.guide-tip-icon svg {
  width: 18px;
  height: 18px;
}

.guide-tip strong {
  display: block;
  color: #f59e0b;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.guide-tip p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

/* CTA */
.guide-cta {
  text-align: center;
  padding: 32px;
  border-radius: 14px;
}

.guide-cta h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.guide-cta p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.guide-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Responsive */
@media (max-width: 600px) {
  .guide-hero {
    padding: 32px 20px;
  }

  .guide-hero h2 {
    font-size: 1.4rem;
  }

  .guide-step {
    flex-direction: column;
    gap: 12px;
  }

  .guide-step-icon {
    display: none;
  }

  .guide-code-block {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ============================================ */
/*  SIDEBAR V2 — Exact mockup replica           */
/* ============================================ */

/* Hide old sidebar element */
aside.sidebar { display: none !important; }

/* Sidebar v2 styles are in css/theme.css — do NOT duplicate here */



/* ============================================ */
/*  OVERVIEW V2 — Exact mockup replica          */
/* ============================================ */

/* STAT TILES */
#page-overview .stats {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  grid-template-rows: auto;
  align-items: start;
  gap: 10px;
  margin-bottom: 18px;
}
#page-overview .stat {
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 110px;
  height: 110px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color .2s;
}
#page-overview .stat:hover { border-color: var(--line2); }
#page-overview .stat.hero {
  background: var(--ink3);
  border-color: rgba(0,208,132,0.15);
  position: relative;
  overflow: hidden;
  min-height: 110px;
  height: 110px;
}
#page-overview .stat.hero::after {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(0,208,132,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.stat-num {
  font-size: 22px; font-weight: 600;
  color: var(--text);
  letter-spacing: -.03em;
  line-height: 1;
}
.stat-num.teal { color: var(--teal); }
.stat-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}
.stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat.hero .stat-icon-wrap { transform: translateY(-1px); }
.stat-icon-wrap svg {
  width: 22px;
  height: 22px;
}
.stat-icon-wrap.files {
  background: rgba(99,102,241,.12);
  color: #8ea0ff;
}
.stat-icon-wrap.memory {
  background: rgba(34,211,238,.12);
  color: #22d3ee;
}
.stat-icon-wrap.tokens {
  background: rgba(0,208,132,.12);
  color: var(--teal);
}
.stat-icon-wrap.skills {
  background: rgba(168,85,247,.14);
  color: #c084fc;
}
.stat-lbl {
  font-size: 10px; color: var(--text3);
  margin-top: 0; font-weight: 500;
  text-transform: uppercase; letter-spacing: .07em;
}
.stat-sub {
  font-size: 10px; color: var(--text3);
  margin-top: 2px; font-family: var(--mono);
}
.stat-sub:empty {
  display: none;
}

/* BENTO */
#page-overview .bento {
  display: grid;
  grid-template-columns: 2.2fr 1.4fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

/* CARDS */
#page-overview .card {
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}
#page-overview .card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 0%, rgba(0,208,132,0.025) 0%, transparent 55%);
  pointer-events: none;
}
.card-label {
  font-size: 9px; font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .10em;
  margin-bottom: 14px;
}

/* AGENTS */
.agent {
  display: flex; align-items: center;
  padding: 8px 10px;
  background: var(--ink3);
  border-radius: 8px;
  margin-bottom: 6px;
  gap: 10px;
  transition: background .15s;
}
.agent:last-child { margin-bottom: 0; }
.agent:hover { background: var(--ink4); }
.adot {
  width: 7px; height: 7px;
  border-radius: 50%; flex-shrink: 0;
}
.adot.g { background: var(--teal); box-shadow: 0 0 6px var(--teal-g); }
.adot.y { background: var(--amber); box-shadow: 0 0 6px rgba(245,166,35,.4); }
.adot.d { background: var(--dim); }
.ainfo { flex: 1; min-width: 0; }
.aname { font-size: 12px; color: var(--text); font-weight: 500; }
.asub {
  font-size: 10px; color: var(--text3);
  font-family: var(--mono);
  margin-top: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.abadge {
  font-size: 10px; padding: 2px 7px;
  border-radius: 5px; font-weight: 500;
  flex-shrink: 0;
}
.abadge.ok   { background: var(--teal2);   color: var(--teal); }
.abadge.warn { background: var(--amber2);  color: var(--amber); }
.abadge.off  { background: rgba(61,66,81,.4); color: var(--dim); }

/* GAUGES */
.gauge-stack { display: flex; flex-direction: column; gap: 14px; }
.gauge-item  { display: flex; align-items: center; gap: 12px; }
.gring {
  position: relative;
  width: 44px; height: 44px;
  flex-shrink: 0;
}
.gring svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.gpct {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  color: var(--text);
  font-family: var(--mono);
}
.gname { font-size: 12px; color: var(--text); font-weight: 500; }
.gsub  { font-size: 10px; color: var(--text3); margin-top: 2px; }

/* CONTEXT MINI */
.presets { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 12px; }
.ps {
  font-size: 10px; padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--line2);
  color: var(--text3);
  cursor: pointer;
  font-family: var(--mono);
  transition: all .15s;
  background: transparent;
  user-select: none;
}
.ps:hover { border-color: rgba(0,208,132,.3); color: var(--text2); }
.ps.on {
  background: var(--teal2);
  border-color: rgba(0,208,132,.35);
  color: var(--teal);
}
.cf-label {
  font-size: 9px; color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin: 10px 0 5px;
  font-weight: 600;
}
.cf {
  display: flex; align-items: center;
  gap: 7px; padding: 4px 0;
  font-size: 11px; color: var(--text2);
}
.cf input[type="checkbox"] { accent-color: var(--teal); width: 12px; height: 12px; cursor: pointer; }
.cf-divider { height: 1px; background: var(--line); margin: 10px 0; }
.ctx-btn {
  width: 100%; margin-top: 12px;
  padding: 9px;
  background: var(--teal);
  border: none; border-radius: 8px;
  color: #052b1a;
  font-size: 11px; font-weight: 700;
  font-family: var(--sans);
  cursor: pointer;
  letter-spacing: .02em;
  box-shadow: 0 0 18px rgba(0,208,132,.18), inset 0 0 0 1px rgba(255,255,255,.1);
  transition: box-shadow .2s, transform .1s;
}
.ctx-btn:hover {
  box-shadow: 0 0 28px rgba(0,208,132,.32), inset 0 0 0 1px rgba(255,255,255,.18);
  transform: translateY(-1px);
}
.ctx-btn:active { transform: translateY(0); }

/* FEED */
.feed { display: flex; flex-direction: column; }
.fi {
  display: flex; align-items: flex-start;
  gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.fi:last-child { border-bottom: none; }
.fdot {
  width: 7px; height: 7px;
  border-radius: 50%; flex-shrink: 0;
  margin-top: 4px;
}
.ftext { flex: 1; font-size: 11px; color: var(--text2); line-height: 1.45; }
.ftime {
  font-size: 10px; color: var(--text3);
  font-family: var(--mono);
  white-space: nowrap;
  margin-top: 2px;
}

/* Responsive */
@media (max-width: 900px) {
  #page-overview .stats { grid-template-columns: 1fr 1fr; }
  #page-overview .bento { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  #page-overview .stats { grid-template-columns: 1fr; }
  .sb { display: none; }
}

/* ============================================ */
/* MOCK DESIGN ROLLOUT â€” shared dashboard UI   */
/* ============================================ */

.shell,
.main,
.main-content,
.page {
  font-family: var(--sans);
}

.shell,
.main,
.main-content {
  background: var(--ink);
}

.shell .page {
  padding: 22px;
  color: var(--text);
  background: transparent;
}

.shell .page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.shell .page-desc {
  color: var(--text2);
  font-size: 12px;
  line-height: 1.55;
  max-width: 72ch;
}

.shell .sub-header,
.shell .settings-card-header,
.shell .notif-panel-header h3 {
  font-family: var(--sans);
  color: var(--text);
  letter-spacing: -.01em;
}

.shell .sub-header {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 14px;
}

.shell .section-icon,
.shell .page-title-icon {
  color: var(--teal);
}

.shell .glass,
.shell .settings-card,
.shell .notif-panel,
.workspace-connect-modal .modal-box {
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.shell .kanban-col-body,
.shell .report-tabs,
.shell .custom-dropdown-list,
.shell .env-sidebar-panel,
.shell .env-editor-panel,
.shell .md-file-list-panel,
.shell .md-rendered-panel,
.shell .test-results,
.shell .docker-panel,
.shell .velocity-stat-card {
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
}

.shell .kanban-card,
.shell .kanban-mini-card,
.shell .goal-item,
.shell .clip-card,
.shell .skill-card,
.shell .notif-item,
.shell .custom-dropdown-header {
  background: var(--ink3);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.shell .glass:hover,
.shell .settings-card:hover,
.shell .kanban-card:hover,
.shell .kanban-mini-card:hover,
.shell .goal-item:hover,
.shell .clip-card:hover,
.shell .skill-card:hover,
.shell .custom-dropdown-header:hover {
  border-color: var(--line2);
  box-shadow: none;
  transform: none;
}

.shell .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .1s, color .15s;
}

.shell .btn-primary {
  background: var(--teal);
  color: #052b1a;
  box-shadow: 0 0 18px rgba(0,208,132,.18), inset 0 0 0 1px rgba(255,255,255,.1);
}

.shell .btn-primary:hover {
  background: var(--teal);
  color: #052b1a;
  box-shadow: 0 0 28px rgba(0,208,132,.32), inset 0 0 0 1px rgba(255,255,255,.18);
  transform: translateY(-1px);
}

.shell .btn-secondary,
.shell .btn-accent {
  background: var(--ink3);
  color: var(--text2);
  border: 1px solid var(--line);
}

.shell .btn-secondary:hover,
.shell .btn-accent:hover {
  background: var(--ink4);
  border-color: var(--line2);
  color: var(--text);
  transform: none;
}

.shell .btn-danger,
.shell .btn-outline-danger {
  background: rgba(239,68,68,.12);
  color: #ff8b8b;
  border: 1px solid rgba(239,68,68,.24);
}

.shell .btn-danger:hover,
.shell .btn-outline-danger:hover {
  background: rgba(239,68,68,.18);
  border-color: rgba(239,68,68,.36);
  color: #fff;
}

.shell .btn-sm {
  padding: 6px 10px;
  font-size: 10px;
}

.shell .input,
.shell select,
.shell textarea {
  width: 100%;
  background: var(--ink3);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 12px;
  box-shadow: none;
}

.shell .input:focus,
.shell select:focus,
.shell textarea:focus {
  outline: none;
  border-color: rgba(0,208,132,.32);
  box-shadow: 0 0 0 1px rgba(0,208,132,.16);
}

.shell .input::placeholder,
.shell textarea::placeholder {
  color: var(--text3);
}

.shell label {
  font-size: 10px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 600;
}

.shell .overview-grid,
.shell .settings-grid {
  gap: 18px;
}

.shell .settings-grid {
  max-width: none;
  margin: 0;
}

.shell .settings-card-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.shell .settings-card-body {
  padding: 18px;
  gap: 16px;
}

.shell .report-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: none;
}

.shell .report-tab {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text3);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-family: var(--mono);
  font-weight: 500;
  box-shadow: none;
}

.shell .report-tab:hover {
  background: var(--ink3);
  color: var(--text2);
}

.shell .report-tab.active {
  background: var(--teal2);
  color: var(--teal);
  border-color: rgba(0,208,132,.35);
  box-shadow: none;
}

.shell .notif-panel {
  top: 58px;
  right: 22px;
  width: 340px;
  border: 1px solid var(--line2);
  box-shadow: 0 18px 44px rgba(0,0,0,.42);
}

.shell .notif-panel-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.shell .notif-list {
  padding: 8px;
}

.shell .notif-item {
  margin-bottom: 4px;
  color: var(--text2);
}

.shell .notif-item:hover {
  background: var(--ink3);
}

.shell .notif-empty {
  color: var(--text3);
}

.shell .config-popup {
  left: 12px;
  bottom: 68px;
  width: 196px;
  background: rgba(18,20,26,0.98);
  border: 1px solid var(--line2);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 18px 44px rgba(0,0,0,.42);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.shell .config-popup-item {
  padding: 10px 11px;
  border-radius: 9px;
  font-size: 12px;
  color: var(--text2);
}

.shell .config-popup-item:hover {
  background: var(--ink3);
  color: var(--text);
}

.shell .config-popup-divider {
  background: var(--line);
  margin: 6px 4px;
}

.shell .custom-dropdown-header,
.shell .custom-dropdown-list {
  border-color: var(--line);
}

.shell .custom-dropdown-item {
  color: var(--text2);
  border-radius: 8px;
}

.shell .custom-dropdown-item:hover {
  background: var(--ink3);
  color: var(--text);
}

.shell .custom-dropdown-item.active {
  background: var(--teal2);
  color: var(--teal);
}

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

.shell th {
  padding: 10px 12px;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text3);
  border-bottom: 1px solid var(--line);
}

.shell td {
  padding: 12px;
  color: var(--text2);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.shell tr:hover td {
  background: rgba(255,255,255,0.02);
}
