:root {
  --bg-0: #020617; --bg-1: #0B1120; --bg-2: #0F172A;
  --surface-0: rgba(11, 17, 32, 0.74);
  --surface-1: rgba(15, 23, 42, 0.84);
  --surface-2: rgba(30, 41, 59, 0.92);
  --surface-3: rgba(51, 65, 85, 0.96);
  --line: rgba(255,255,255,0.06);
  --line-strong: rgba(255,255,255,0.12);
  --text: #F8FAFC; --text-strong: #ffffff; --muted: #94A3B8; --soft: #64748B;
  --cyan: #38BDF8; --cyan-2: #7DD3FC;
  --violet: #8B5CF6; --violet-2: #C4B5FD;
  --emerald: #10B981; --emerald-2: #6EE7B7;
  --amber: #F59E0B; --amber-2: #FCD34D;
  --slate: #475569; --slate-2: #94A3B8;
  --red: #EF4444;
  --focus-ring: rgba(56, 189, 248, 0.25);
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  --radius-xl: 32px; --radius-lg: 24px; --radius-md: 16px;
  /* Surface Elevation Scale (Roadmap Step 01) */
  --surface-bg-0: #040810;
  --surface-bg-1: #09101d;
  --surface-bg-2: #0f192b;
  --surface-bg-3: #18263e;
  --surface-border: rgba(108, 224, 255, 0.12);
  --surface-border-hover: rgba(108, 224, 255, 0.28);
  --surface-border-focus: #6ce0ff;
  /* Text Contrast Standardization (WCAG AA) */
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  /* Radii scale */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-pill: 9999px;
  /* Pane identity colors — cohesive technical palette */
  --pane-nav: var(--cyan);
  --pane-shelf: rgba(56, 189, 248, 0.35);
  --pane-hero: rgba(56, 189, 248, 0.2);
  --pane-builder: var(--cyan);
  --pane-workbench: var(--emerald);
  --pane-context: var(--violet);
  /* Animation timing tokens — single source of truth */
  --duration-instant: 50ms;
  --duration-fast: 140ms;
  --duration-normal: 200ms;
  --duration-medium: 350ms;
  --duration-slow: 500ms;
  --duration-toast: 3000ms;
  --duration-spinner: 600ms;
  --duration-pulse: 400ms;
  --duration-chevron: 200ms;
  --duration-show-more: 250ms;
  --duration-help-drawer: 230ms;
  --duration-chip: 300ms;
  --duration-card-in: 400ms;
  --duration-short: 180ms;
  --duration-fade: 240ms;
  --duration-dialog: 320ms;
  --duration-blink: 700ms;
  --duration-live-pulse: 1200ms;
  --duration-emphasis: 2000ms;
  color-scheme: dark;
}
* { box-sizing: border-box; }
select option { background-color: var(--bg-1); color: var(--text); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
::selection { background: rgba(108,224,255,0.25); color: #fff; }
html, body { margin: 0; min-height: 100%; font-family: "Inter", "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; color: var(--text); background: radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.15), transparent 28%), radial-gradient(circle at 90% 10%, rgba(139, 92, 246, 0.15), transparent 30%), radial-gradient(circle at 50% 110%, rgba(16, 185, 129, 0.10), transparent 40%), linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 50%, var(--bg-2) 100%); background-attachment: fixed; }
body.modal-open { overflow: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(ellipse at center, black 50%, transparent 100%); opacity: 0.4; z-index: -1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.page { display: none; content-visibility: hidden; }
.page.active { display: block; content-visibility: visible; }
.skip-link:focus { top: 16px; }
.shell { width: min(1600px, calc(100% - clamp(16px, 4vw, 32px))); margin: clamp(8px, 2vw, 18px) auto clamp(16px, 4vw, 32px); position: relative; z-index: 1; }
.glass { background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 50%, rgba(2, 6, 23, 0.7) 100%); border: 1px solid rgba(255, 255, 255, 0.04); border-top: 1px solid rgba(255, 255, 255, 0.1); border-left: 1px solid rgba(255, 255, 255, 0.08); border-radius: clamp(16px, 4vw, var(--radius-xl)); box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03) inset, inset 0 2px 20px rgba(255, 255, 255, 0.02); backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px); transition: box-shadow var(--duration-normal) cubic-bezier(0.16, 1, 0.3, 1), transform var(--duration-normal) cubic-bezier(0.16, 1, 0.3, 1); }
.glass:hover { box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) inset, inset 0 2px 25px rgba(255, 255, 255, 0.03); transform: translateY(-1px); }

/* App Nav — cyan identity accent */
.app-nav { border-top: 3px solid var(--pane-nav); box-shadow: 0 0 40px rgba(108,224,255,0.06), var(--shadow); }

/* Utility shelf — faint cyan identity */
.utility-shelf { border-top: 2px solid var(--pane-shelf); }

/* Hero — faint cyan glow in the gradient */
.hero-main { border-top: 2px solid var(--pane-hero); }

/* Workspace: left builder panel — cyan left-border identity */
.workspace > .panel { border-left: 3px solid var(--pane-builder); box-shadow: -4px 0 24px rgba(108,224,255,0.07), var(--shadow); }

/* Workspace: right workbench panel — emerald left-border identity */
.workspace > .panel.sticky { border-left: 3px solid var(--pane-workbench); box-shadow: -4px 0 24px rgba(64,240,190,0.07), var(--shadow); }

/* Project context panel — violet left-border identity */
.project-context { border-left: 3px solid var(--pane-context); box-shadow: -3px 0 18px rgba(157,132,255,0.06); }

/* Saved Prompts page — violet accent identity */
#page-saved .glass { border-top: 3px solid var(--violet); box-shadow: 0 0 32px rgba(157,132,255,0.08), var(--shadow); }

/* Providers page — amber accent identity */
#page-providers .glass { border-top: 3px solid var(--amber); box-shadow: 0 0 32px rgba(255,179,71,0.07), var(--shadow); }

/* Form section headers — per-mode color coding */
.form-section[data-form-group="brief"] .form-group-toggle { border-left: 3px solid var(--cyan); }
.form-section[data-form-group="constraints"] .form-group-toggle { border-left: 3px solid var(--amber); }
.form-section[data-form-group="execution"] .form-group-toggle { border-left: 3px solid var(--emerald); }

/* Workshop layout — blue left borders for left pane, green for right */
.workshop-left { border-left: 3px solid var(--cyan); box-shadow: -4px 0 20px rgba(108,224,255,0.08), var(--shadow); }
.workshop-right { border-left: 3px solid var(--emerald); box-shadow: -4px 0 20px rgba(64,240,190,0.08), var(--shadow); }

/* App Nav */
.app-nav { display: flex; align-items: center; justify-content: space-between; padding: clamp(10px, 2vw, 14px) clamp(12px, 3vw, 22px); margin-bottom: clamp(10px, 2vw, 18px); gap: 12px; }
.nav-workspace-switcher { display: inline-grid; gap: 6px; min-width: min(180px, 100%); }
.nav-workspace-label { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.global-workspace-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); background: rgba(4,10,19,0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--text); font: inherit; outline: none; cursor: pointer; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); white-space: nowrap; }
.global-workspace-pill:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); }
.global-workspace-pill.is-active { border-color: rgba(108,224,255,0.5); background: rgba(108,224,255,0.08); box-shadow: inset 0 1px 4px rgba(108,224,255,0.1), 0 0 16px rgba(108,224,255,0.15); }
.global-workspace-pill .nav-workspace-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--soft); font-weight: 600; opacity: 0.7; }
.global-workspace-pill .nav-workspace-active-name { font-size: 14px; font-weight: 500; color: var(--text); }
.global-workspace-pill.is-active .nav-workspace-active-name { color: var(--cyan); text-shadow: 0 0 12px rgba(108,224,255,0.4); }
.global-workspace-pill .nav-workspace-chevron { font-size: 16px; line-height: 1; color: var(--soft); transform: translateY(1px) rotate(90deg); transition: transform 0.3s; }
.global-workspace-pill:active .nav-workspace-chevron { transform: translateY(3px) rotate(90deg); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1240px) {
  .hero, .workspace { grid-template-columns: 1fr; }
  .workshop-layout { grid-template-columns: 1fr; height: auto; }
  .workshop-left { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .sticky { position: static; }
  .output { min-height: 460px; max-height: none; }
  .mode-grid { grid-template-columns: repeat(2, 1fr); }
  .hero[data-collapsed="true"] .hero-main-copy { grid-template-columns: 1fr; }
  .app-nav { flex-wrap: wrap; justify-content: flex-start; }
  .app-nav-brand { flex: 1 1 100%; margin-bottom: 4px; }
  .app-nav-actions { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 10px; }
  .app-nav-links { flex: 1 1 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
  .app-nav-links::-webkit-scrollbar { display: none; }
}

@media (max-width: 760px) {
  .app-nav-actions .btn-sm { padding: 6px 12px; font-size: 12px; }
  .global-workspace-pill { min-height: 36px; padding: 4px 10px 4px 12px; gap: 6px; }
  .global-workspace-pill .nav-workspace-label { display: none; } /* Hide label on mobile to save space */
  .global-workspace-pill .nav-workspace-active-name { font-size: 13px; }
  .mobile-fab { display: inline-flex; align-items: center; justify-content: center; }
}

.mobile-fab { display: none; position: fixed; right: 18px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; border: 0; background: linear-gradient(140deg, var(--cyan) 0%, var(--emerald) 120%); color: #04101e; font-size: 28px; font-weight: 900; line-height: 1; cursor: pointer; box-shadow: 0 18px 36px rgba(0,0,0,0.4), 0 0 0 1px rgba(108,224,255,0.3), 0 0 48px rgba(108,224,255,0.35); z-index: 900; transition: transform 160ms ease-out, box-shadow 240ms ease-out; }
.mobile-fab:hover { transform: translateY(-2px); box-shadow: 0 22px 44px rgba(0,0,0,0.5), 0 0 0 1px rgba(108,224,255,0.45), 0 0 64px rgba(108,224,255,0.5); }
.mobile-fab:active { transform: translateY(0); }

body[data-active-route="providers"] .mobile-fab,
body[data-active-route="spec-vault"] .mobile-fab,
body[data-active-route="budget-quote"] .mobile-fab,
body[data-active-route="estimator"] .mobile-fab,
body[data-active-route="remaining"] .mobile-fab,
body[data-active-route="release-cockpit"] .mobile-fab,
body[data-active-route="advanced-lab"] .mobile-fab {
  display: none !important;
}

/* Active Module Isolation */
body[data-active-module="filemon"] #firstMissionPanel,
body[data-active-module="filemon"] #advancedSectionBuilder,
body[data-active-module="filemon"] #visionIntakeSection,
body[data-active-module="filemon"] #promptForgeWorkbench {
  display: none !important;
}

body[data-active-module="screenshot"] #firstMissionPanel,
body[data-active-module="screenshot"] #commandCenterShell,
body[data-active-module="screenshot"] #promptForgeWorkbench {
  display: none !important;
}

body[data-active-module="workbench"] #firstMissionPanel,
body[data-active-module="workbench"] #visionIntakeSection,
body[data-active-module="workbench"] #filemonForgePanel,
body[data-active-module="workbench"] #filemonServiceDeskDetails,
body[data-active-module="workbench"] #commandCenterFilemonActions,
body[data-active-module="workbench"] #commandCenterFilemonEvidence,
body[data-active-module="workbench"] .command-center-command--filemon,
body[data-active-module="workbench"] #commandCenterIntentSuggestion {
  display: none !important;
}



/* Fast as Fuck / Liquid Glass Interactions */
button, .btn, .project-option-card, .mode-card, .toggle-track, .panel-head {
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, background 0.2s ease;
}

button:active, .btn:active, .project-option-card:active, .mode-card:active {
  transform: scale(0.96);
}

input, textarea {
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

input:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--focus-ring);
  border-color: var(--cyan);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: var(--radius-md);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

/* Breadcrumbs Coherence */
.breadcrumbs-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.4);
  border-radius: var(--radius-md, 8px);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.breadcrumbs-container a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
  cursor: pointer;
  font-weight: 500;
}

.breadcrumbs-container a:hover {
  color: var(--cyan);
}

.breadcrumbs-container span.active {
  color: var(--text, #f8fafc);
  font-weight: 600;
}

.breadcrumbs-container .breadcrumb-separator {
  color: rgba(255, 255, 255, 0.2);
  user-select: none;
  font-weight: normal;
}

/* ==========================================================================
   App Nav 4-Pillars & System Hub Dropdown (Roadmap Step 02)
   ========================================================================== */
.app-nav-pillar {
  position: relative;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  padding: 6px 14px !important;
  border-radius: var(--radius-sm, 8px) !important;
}
.app-nav-pillar.active {
  color: var(--cyan-2) !important;
  background: rgba(108, 224, 255, 0.12) !important;
  border: 1px solid rgba(108, 224, 255, 0.28) !important;
  box-shadow: 0 0 16px rgba(108, 224, 255, 0.15);
}
.app-nav-dropdown {
  position: relative;
  display: inline-block;
}
.app-nav-dropdown-trigger {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm, 8px);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.app-nav-dropdown-trigger:hover,
.app-nav-dropdown-trigger.active {
  color: var(--cyan);
  background: rgba(108, 224, 255, 0.08);
  border-color: rgba(108, 224, 255, 0.25);
}
.app-nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: var(--surface-bg-1, #09101d);
  border: 1px solid var(--surface-border, rgba(108, 224, 255, 0.16));
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 6px;
  z-index: 1000;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.app-nav-dropdown:hover .app-nav-dropdown-menu,
.app-nav-dropdown:focus-within .app-nav-dropdown-menu,
.app-nav-dropdown.is-open .app-nav-dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.app-nav-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  color: var(--text-muted, #94a3b8);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-xs, 6px);
  transition: all 0.15s;
}
.app-nav-dropdown-item:hover,
.app-nav-dropdown-item.active {
  color: #fff;
  background: rgba(108, 224, 255, 0.12);
}

/* ==========================================================================
   Dashboard 4-Hero Doors & Secondary Diagnostics (Roadmap Step 02)
   ========================================================================== */
.user-start-hero-door {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  background: var(--surface-bg-1, #09101d);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg, 18px);
  cursor: pointer;
  text-align: left;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.user-start-hero-door:hover {
  transform: translateY(-2px);
  border-color: rgba(108, 224, 255, 0.35);
  background: var(--surface-bg-2, #0f192b);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(108, 224, 255, 0.12);
}
.user-start-secondary-shelf {
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}
.user-start-secondary-summary {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
  padding: 6px 0;
  outline: none;
  transition: color 0.15s;
}
.user-start-secondary-summary:hover {
  color: var(--cyan);
}
.user-start-secondary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.user-start-path-subtle {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm, 8px);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}
.user-start-path-subtle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}
.user-start-path-subtle strong {
  display: block;
  font-size: 12px;
  color: var(--text-main, #f1f5f9);
}
.user-start-path-subtle small {
  display: block;
  font-size: 11px;
  color: var(--text-faint, #64748b);
  margin-top: 2px;
}

/* ==========================================================================
   Budget Blueprint Shelf (Roadmap Step 04)
   ========================================================================== */
.project-estimator-shelf {
  background: var(--surface-bg-1, #09101d);
  border: 1px solid var(--surface-border, rgba(108, 224, 255, 0.16));
  border-radius: var(--radius-md, 12px);
  padding: 16px 20px;
  margin-bottom: 20px;
}
.shelf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.shelf-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: rgba(108, 224, 255, 0.08);
  border: 1px solid rgba(108, 224, 255, 0.2);
  border-radius: var(--radius-pill, 9999px);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.shelf-status {
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
}
.shelf-selector-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.shelf-selector-row .flex-grow {
  flex: 1 1 300px;
}

/* Provider Status Cockpit HUD */
.provider-status-cockpit {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 10000;
  padding: 10px 14px;
  border-radius: var(--radius-lg, 16px);
  font-size: 12px;
  width: 260px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f8fafc;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.provider-status-cockpit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 6px;
}

.provider-status-cockpit-toggle {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: var(--radius-sm, 4px);
  transition: all 0.15s ease;
}

.provider-status-cockpit-toggle:hover {
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.04);
}

.provider-status-cockpit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}

.provider-status-cockpit.collapsed .provider-status-cockpit-list {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}

.provider-status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
}

.provider-status-item-label {
  font-weight: 500;
  color: #e2e8f0;
}

.provider-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.provider-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

.provider-status-dot.green {
  background-color: #10b981;
  color: #10b981;
}

.provider-status-dot.orange {
  background-color: #f59e0b;
  color: #f59e0b;
}

.provider-status-dot.red {
  background-color: #ef4444;
  color: #ef4444;
}

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

/* Active Model Badges (Step 03) */
.prompt-active-model-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 8px;
}

.prompt-active-model-badge .badge-icon {
  color: var(--cyan);
}

.prompt-active-model-badge.ai-active {
  background: rgba(108, 224, 255, 0.05);
  border-color: rgba(108, 224, 255, 0.15);
  color: var(--cyan-2);
}

.prompt-active-model-badge.local-active {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}


/* ==========================================================================
   Standardized 4-Tier Button Hierarchy & Sizing (Roadmap Step 01)
   ========================================================================== */
.btn-primary, button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-sm, 8px);
  background: linear-gradient(135deg, #6ce0ff 0%, #38bdf8 100%);
  color: #040810 !important;
  border: 1px solid rgba(108, 224, 255, 0.4);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.24);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.btn-primary:hover, button.primary:hover {
  background: linear-gradient(135deg, #7dd3fc 0%, #6ce0ff 100%);
  box-shadow: 0 6px 20px rgba(108, 224, 255, 0.35);
  transform: translateY(-1px);
}
.btn-primary:active, button.primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.2);
}

.btn-secondary, button.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm, 8px);
  background: var(--surface-bg-2, #0f192b);
  color: var(--text-main, #f1f5f9) !important;
  border: 1px solid var(--surface-border, rgba(108, 224, 255, 0.16));
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.btn-secondary:hover, button.secondary:hover {
  background: var(--surface-bg-3, #18263e);
  border-color: var(--surface-border-hover, rgba(108, 224, 255, 0.32));
  color: #fff !important;
  transform: translateY(-1px);
}
.btn-secondary:active, button.secondary:active {
  transform: translateY(0);
}

.btn-ghost, button.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-sm, 8px);
  background: transparent;
  color: var(--text-muted, #94a3b8) !important;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.btn-ghost:hover, button.ghost:hover {
  color: var(--text-main, #f1f5f9) !important;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.btn-danger, button.danger, .btn-destructive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm, 8px);
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5 !important;
  border: 1px solid rgba(239, 68, 68, 0.28);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.btn-danger:hover, button.danger:hover, .btn-destructive:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fff !important;
  transform: translateY(-1px);
}

/* Standard button sizes */
.btn-sm {
  padding: 5px 10px !important;
  font-size: 12px !important;
  min-height: 28px !important;
}
.btn-lg {
  padding: 12px 24px !important;
  font-size: 15px !important;
  min-height: 44px !important;
}

/* Hardened display-none enforcement for HTML5 hidden attribute */
[hidden] {
  display: none !important;
}

/* Iteration 5 — Starter Scaffolds & Dual-Pane Optical Workbench */
.starter-scaffolds-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding: 6px 12px;
  background: var(--surface-bg-1, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  border-radius: 10px;
}

.scaffold-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #7ea2c2);
  margin-right: 2px;
}

.scaffold-chip {
  background: var(--surface-bg-2, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main, #d8f5ff);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.scaffold-chip:hover {
  background: rgba(108, 224, 255, 0.12);
  border-color: rgba(108, 224, 255, 0.3);
  color: #fff;
  transform: translateY(-1px);
}

.scaffold-chip:active {
  transform: translateY(0);
}

@media (min-width: 1024px) {
  #page-builder > .workspace > .panel.sticky {
    position: sticky;
    top: 18px;
    max-height: calc(100vh - 36px);
    overflow-y: auto;
  }
}

