@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Syne:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── TOKENS ── */
:root {
  --bg: #07080d;
  --surface: #0d1017;
  --surface2: #131822;
  --border: #1e2535;
  --accent: #3dffc0;
  --accent2: #4d9fff;
  --accent3: #ff6b6b;
  --accent-dim: rgba(61, 255, 192, 0.10);
  --text: #e2e8f0;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --prompt-bg: #060a0e;

  /* spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-14: 3.5rem;
  --sp-16: 4rem;
}

/* ── RESET ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

/* ── LAYOUT ── */
.layout {
  display: grid;
  grid-template-columns: 17rem 1fr;
  min-height: 100vh;
}

/* ══════════════════════════════
   SIDEBAR (desktop)
══════════════════════════════ */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: var(--sp-6) 0 var(--sp-8);
  z-index: 100;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.sidebar-logo {
  padding: 0 var(--sp-6) var(--sp-6);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-4);
}

.sidebar-logo .brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.sidebar-logo .subtitle {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  letter-spacing: 0.04em;
}

.nav-section {
  padding: 0 var(--sp-4);
  margin-bottom: var(--sp-2);
}

.nav-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
  padding-left: var(--sp-2);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.4375rem var(--sp-3);
  border-radius: 0.375rem;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.78125rem;
  font-weight: 400;
  transition: all 0.15s ease;
  margin-bottom: 1px;
}

.nav-item:hover,
.nav-item.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.step-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.nav-item.s0 .step-dot {
  background: #facc15;
}

.nav-item.sfiles .step-dot {
  background: #94a3b8;
}

.nav-item.schunk .step-dot {
  background: #c084fc;
}

.nav-item.smodel .step-dot {
  background: #f9a8d4;
}

.nav-item.saudit .step-dot {
  background: #fbbf24;
}

.nav-item.s1 .step-dot {
  background: #3dffc0;
}

.nav-item.s2 .step-dot {
  background: #4d9fff;
}

.nav-item.s3 .step-dot {
  background: #a78bfa;
}

.nav-item.s3b .step-dot {
  background: #c084fc;
}

.nav-item.s4 .step-dot {
  background: #fb923c;
}

.nav-item.s5 .step-dot {
  background: #f472b6;
}

.nav-item.s6 .step-dot {
  background: #34d399;
}

.nav-item.s7 .step-dot {
  background: #60a5fa;
}

.nav-item.s8 .step-dot {
  background: #facc15;
}

.nav-item.sapp .step-dot {
  background: #f87171;
}

.sidebar-footer {
  padding: var(--sp-5) var(--sp-5) 0;
  border-top: 1px solid var(--border);
  margin-top: var(--sp-5);
}

.philosophy-box {
  background: var(--accent-dim);
  border: 1px solid rgba(61, 255, 192, 0.18);
  border-radius: 0.5rem;
  padding: var(--sp-4);
  font-size: 0.71875rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.philosophy-box strong {
  color: var(--accent);
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ══════════════════════════════
   MOBILE HAMBURGER
══════════════════════════════ */
.mobile-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-3) var(--sp-5);
  align-items: center;
  justify-content: space-between;
}

.mobile-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.hamburger {
  background: none;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: var(--sp-2) var(--sp-3);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.3125rem;
  transition: border-color 0.15s;
}

.hamburger:hover {
  border-color: var(--accent);
}

.hamburger span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--text-dim);
  border-radius: 1px;
  transition: all 0.2s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--accent);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--accent);
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 3.25rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 8, 13, 0.85);
  z-index: 190;
  backdrop-filter: blur(4px);
}

.mobile-nav-overlay.open {
  display: block;
}

.mobile-nav-drawer {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-4) 0 var(--sp-6);
  max-height: 80vh;
  overflow-y: auto;
}

.mobile-nav-drawer .nav-section {
  padding: 0 var(--sp-5);
}

.mobile-nav-drawer .nav-item {
  font-size: 0.875rem;
  padding: var(--sp-3) var(--sp-4);
}

/* ══════════════════════════════
   MAIN
══════════════════════════════ */
.main {
  overflow-x: hidden;
  min-width: 0;
}

/* HERO */
.hero {
  padding: var(--sp-14) var(--sp-16) var(--sp-12);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -7.5rem;
  right: -5rem;
  width: 37.5rem;
  height: 37.5rem;
  background: radial-gradient(circle, rgba(61, 255, 192, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--accent-dim);
  border: 1px solid rgba(61, 255, 192, 0.22);
  border-radius: 6.25rem;
  padding: 0.3125rem 1rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.07em;
  margin-bottom: var(--sp-6);
}

.hero-badge::before {
  content: '';
  width: 0.375rem;
  height: 0.375rem;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 3.125rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-4);
  max-width: 42.5rem;
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero p {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 35rem;
  line-height: 1.8;
  margin-bottom: var(--sp-8);
}

.hero-meta {
  display: flex;
  gap: var(--sp-8);
  margin-bottom: var(--sp-8);
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta-value {
  font-family: 'Space Mono', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.meta-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.core-principle {
  padding: var(--sp-4) var(--sp-6);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 0.5rem 0.5rem 0;
  max-width: 41.25rem;
}

.core-principle .label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

.core-principle p {
  font-size: 0.84375rem;
  color: var(--text-dim);
  margin: 0;
}

.core-principle strong {
  color: var(--text);
}

/* FILE TRACKER */
.file-tracker {
  margin: 0 var(--sp-16);
  padding: var(--sp-8) 0;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

.tracker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}

.tracker-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: var(--sp-4);
  transition: border-color 0.2s;
}

.tracker-card:hover {
  border-color: rgba(61, 255, 192, 0.28);
}

.tracker-filename {
  font-family: 'Space Mono', monospace;
  font-size: 0.6875rem;
  color: var(--accent);
  margin-bottom: var(--sp-1);
}

.tracker-step {
  font-size: 0.625rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tracker-desc {
  font-size: 0.6875rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.tracker-card.always {
  border-top: 2px solid #3dffc0;
}

.tracker-card.dynamic {
  border-top: 2px solid #4d9fff;
}

.tracker-card.human {
  border-top: 2px solid #a78bfa;
}

.tracker-card.ops {
  border-top: 2px solid #fb923c;
}

/* CONTENT */
.content {
  padding: 0 var(--sp-16);
}

.step-section {
  padding: var(--sp-12) 0;
  border-bottom: 1px solid var(--border);
}

.step-header {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
}

.step-number {
  font-family: 'Space Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.3125rem 0.75rem;
  border-radius: 0.25rem;
  flex-shrink: 0;
  margin-top: 0.3125rem;
}

.step-0 .step-number {
  background: rgba(250, 204, 21, 0.12);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.28);
}

.step-files .step-number {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.step-chunk .step-number {
  background: rgba(192, 132, 252, 0.1);
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.25);
}

.step-model .step-number {
  background: rgba(249, 168, 212, 0.1);
  color: #f9a8d4;
  border: 1px solid rgba(249, 168, 212, 0.25);
}

.step-audit .step-number {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.step-1 .step-number {
  background: rgba(61, 255, 192, 0.10);
  color: #3dffc0;
  border: 1px solid rgba(61, 255, 192, 0.22);
}

.step-2 .step-number {
  background: rgba(77, 159, 255, 0.10);
  color: #4d9fff;
  border: 1px solid rgba(77, 159, 255, 0.22);
}

.step-3 .step-number {
  background: rgba(167, 139, 250, 0.10);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.22);
}

.step-4 .step-number {
  background: rgba(251, 146, 60, 0.10);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.22);
}

.step-5 .step-number {
  background: rgba(244, 114, 182, 0.10);
  color: #f472b6;
  border: 1px solid rgba(244, 114, 182, 0.22);
}

.step-6 .step-number {
  background: rgba(52, 211, 153, 0.10);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.22);
}

.step-7 .step-number {
  background: rgba(96, 165, 250, 0.10);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.22);
}

.step-8 .step-number {
  background: rgba(250, 204, 21, 0.10);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.22);
}

.step-app .step-number {
  background: rgba(248, 113, 113, 0.10);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.22);
}

.step-title-group {
  flex: 1;
}

.step-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.625rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.375rem;
}

.step-subtitle {
  font-size: 0.78125rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* STEP META ROW */
.step-meta {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
}

.meta-pill {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.3125rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.71875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text-dim);
}

.meta-pill .pill-label {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 0.125rem;
}

.meta-pill.new-chat {
  border-color: rgba(251, 146, 60, 0.3);
  color: #fb923c;
}

.meta-pill.same-chat {
  border-color: rgba(61, 255, 192, 0.2);
  color: #3dffc0;
}

.meta-pill.model-plan {
  border-color: rgba(167, 139, 250, 0.3);
  color: #a78bfa;
}

.meta-pill.model-build {
  border-color: rgba(77, 159, 255, 0.3);
  color: #4d9fff;
}

.meta-pill.model-esc {
  border-color: rgba(248, 113, 113, 0.3);
  color: #f87171;
}

/* MODEL REMINDER BOX */
.model-reminder {
  background: var(--surface2);
  border: 1px solid rgba(249, 168, 212, 0.25);
  border-left: 3px solid #f9a8d4;
  border-radius: 0 0.5rem 0.5rem 0;
  padding: var(--sp-4) var(--sp-5);
  margin: var(--sp-5) 0;
}

.model-reminder .mr-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #f9a8d4;
  margin-bottom: var(--sp-3);
}

.model-reminder .mr-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.model-reminder .mr-row:last-child {
  margin-bottom: 0;
}

.mr-model {
  font-family: 'Space Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(61, 255, 192, 0.07);
  border: 1px solid rgba(61, 255, 192, 0.15);
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.mr-model.plan {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.07);
  border-color: rgba(167, 139, 250, 0.15);
}

.mr-model.build {
  color: #4d9fff;
  background: rgba(77, 159, 255, 0.07);
  border-color: rgba(77, 159, 255, 0.15);
}

.mr-model.esc {
  color: #f87171;
  background: rgba(248, 113, 113, 0.07);
  border-color: rgba(248, 113, 113, 0.15);
}

.mr-model.free {
  color: #34d399;
  background: rgba(52, 211, 153, 0.07);
  border-color: rgba(52, 211, 153, 0.15);
}

.mr-rule {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--border);
  font-size: 0.75rem;
  color: #b08090;
  line-height: 1.6;
}

.mr-rule strong {
  color: #f9a8d4;
}

/* AUDIT BUDGET INDICATOR */
.audit-budget {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding: var(--sp-3) var(--sp-4);
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 0.5rem;
  margin-bottom: var(--sp-4);
}

.audit-budget .ab-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fbbf24;
  white-space: nowrap;
}

.ab-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.ab-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.ab-dot.default {
  background: #34d399;
}

.ab-dot.critical {
  background: #fbbf24;
}

.ab-dot.max {
  background: #f87171;
}

/* INFO GRID */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.info-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: var(--sp-4) var(--sp-5);
}

.info-card .card-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}

.info-card p {
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.65;
}

.info-card.why {
  border-left: 3px solid #4d9fff;
}

.info-card.why .card-label {
  color: #4d9fff;
}

.info-card.creates {
  border-left: 3px solid #3dffc0;
}

.info-card.creates .card-label {
  color: #3dffc0;
}

.files-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4375rem;
  margin-top: var(--sp-2);
}

.file-pill {
  font-family: 'Space Mono', monospace;
  font-size: 0.65625rem;
  background: rgba(61, 255, 192, 0.08);
  color: var(--accent);
  border: 1px solid rgba(61, 255, 192, 0.18);
  padding: 0.125rem 0.5625rem;
  border-radius: 0.25rem;
}

/* PART HEADER */
.part-header {
  margin: var(--sp-8) 0 var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.part-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  text-transform: uppercase;
}

.part-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

/* ACTION BOX */
.action-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: var(--sp-4) var(--sp-5);
  margin: var(--sp-4) 0 var(--sp-3);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}

.action-icon {
  font-size: 1.0625rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.action-content .action-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-1);
}

.action-content p {
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.65;
}

.action-content strong {
  color: var(--text);
}

/* LOAD ORDER */
.load-order {
  background: var(--surface2);
  border: 1px solid rgba(77, 159, 255, 0.25);
  border-radius: 0.5rem;
  padding: var(--sp-4) var(--sp-5);
  margin: var(--sp-4) 0;
}

.load-order .lo-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4d9fff;
  margin-bottom: var(--sp-3);
}

.load-order ol {
  list-style: none;
  counter-reset: lo;
  padding: 0;
}

.load-order ol li {
  counter-increment: lo;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.78125rem;
  color: var(--text-dim);
  padding: 0.3125rem 0;
  border-bottom: 1px solid var(--border);
}

.load-order ol li:last-child {
  border-bottom: none;
}

.load-order ol li::before {
  content: counter(lo);
  font-family: 'Space Mono', monospace;
  font-size: 0.625rem;
  font-weight: 700;
  color: #4d9fff;
  background: rgba(77, 159, 255, 0.1);
  border: 1px solid rgba(77, 159, 255, 0.2);
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.load-order .lo-note {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: var(--sp-3);
  font-style: italic;
}

/* PROMPT BOX */
.prompt-name {
  font-family: 'Space Mono', monospace;
  font-size: 0.71875rem;
  font-weight: 700;
  color: var(--accent);
  margin: var(--sp-5) 0 var(--sp-2);
  letter-spacing: 0.06em;
}

.prompt-wrap {
  margin: 0 0 var(--sp-5);
  border-radius: 0.625rem;
  overflow: hidden;
  border: 1px solid var(--border);
}

.prompt-header {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: 0.5625rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prompt-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.copy-btn {
  background: rgba(61, 255, 192, 0.08);
  border: 1px solid rgba(61, 255, 192, 0.2);
  color: var(--accent);
  padding: 0.25rem 0.875rem;
  border-radius: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.15s;
}

.copy-btn:hover {
  background: rgba(61, 255, 192, 0.18);
}

.copy-btn.copied {
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.3);
  background: rgba(250, 204, 21, 0.08);
}

.prompt-body {
  background: var(--prompt-bg);
  padding: var(--sp-5) var(--sp-6);
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.9;
  color: #a0b8cc;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 35rem;
  overflow-y: auto;
}

.prompt-body::-webkit-scrollbar {
  width: 4px;
}

.prompt-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* HANDOVER BOX */
.handover-wrap {
  margin: var(--sp-5) 0;
  border-radius: 0.625rem;
  overflow: hidden;
  border: 1px solid rgba(251, 146, 60, 0.3);
}

.handover-header {
  background: rgba(251, 146, 60, 0.08);
  border-bottom: 1px solid rgba(251, 146, 60, 0.2);
  padding: 0.5625rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.handover-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fb923c;
  text-transform: uppercase;
}

.handover-body {
  background: #060a0a;
  padding: var(--sp-5) var(--sp-6);
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.9;
  color: #b09080;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 30rem;
  overflow-y: auto;
}

.copy-btn-orange {
  background: rgba(251, 146, 60, 0.1);
  border: 1px solid rgba(251, 146, 60, 0.25);
  color: #fb923c;
  padding: 0.25rem 0.875rem;
  border-radius: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.15s;
}

.copy-btn-orange:hover {
  background: rgba(251, 146, 60, 0.2);
}

.copy-btn-orange.copied {
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.3);
  background: rgba(250, 204, 21, 0.08);
}

/* NOTES */
.note {
  margin: var(--sp-4) 0;
  padding: var(--sp-3) var(--sp-4);
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  display: flex;
  gap: var(--sp-3);
}

.note-icon {
  font-size: 0.9375rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.note.noncoder {
  background: rgba(77, 159, 255, 0.07);
  border: 1px solid rgba(77, 159, 255, 0.18);
  color: #88aec4;
}

.note.tip {
  background: rgba(61, 255, 192, 0.05);
  border: 1px solid rgba(61, 255, 192, 0.14);
  color: #70b09a;
}

.note.warning {
  background: rgba(251, 146, 60, 0.07);
  border: 1px solid rgba(251, 146, 60, 0.18);
  color: #b88a64;
}

.note.critical {
  background: rgba(255, 107, 107, 0.07);
  border: 1px solid rgba(255, 107, 107, 0.18);
  color: #b87878;
}

.note strong {
  color: inherit;
  font-weight: 700;
}

/* AFTER STEP */
.after-step {
  margin-top: var(--sp-6);
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  border-left: 3px solid var(--accent);
}

.after-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.after-step ul {
  list-style: none;
  padding: 0;
}

.after-step ul li {
  font-size: 0.8125rem;
  color: var(--text-dim);
  padding: 0.25rem 0;
  display: flex;
  gap: var(--sp-2);
}

.after-step ul li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
}

/* HARD PAUSE */
.hard-pause {
  background: rgba(251, 146, 60, 0.07);
  border: 1px solid rgba(251, 146, 60, 0.22);
  border-radius: 0.5rem;
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  margin: var(--sp-4) 0;
}

.hp-icon {
  font-size: 1.0625rem;
  flex-shrink: 0;
}

.hp-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fb923c;
  margin-bottom: var(--sp-1);
}

.hard-pause p {
  font-size: 0.8125rem;
  color: #b08a64;
  line-height: 1.65;
}

/* FAILSAFE */
.failsafe {
  background: rgba(167, 139, 250, 0.06);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 0.5rem;
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  margin: var(--sp-3) 0;
}

.fs-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.fs-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: var(--sp-1);
  font-family: 'Space Mono', monospace;
}

.failsafe p {
  font-size: 0.8125rem;
  color: #8878a8;
  line-height: 1.55;
  margin: 0;
}

.failsafe code {
  background: rgba(167, 139, 250, 0.08);
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.2);
}

/* ANTI-ASSUMPTION */
.anti-assumption {
  background: rgba(244, 114, 182, 0.06);
  border: 1px solid rgba(244, 114, 182, 0.18);
  border-radius: 0.5rem;
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  margin: var(--sp-3) 0;
}

.aa-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f472b6;
  margin-bottom: var(--sp-1);
}

.anti-assumption p {
  font-size: 0.8125rem;
  color: #9c7088;
  line-height: 1.55;
  margin: 0;
}

/* TABLE */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-4) 0;
  font-size: 0.78125rem;
}

.data-table th {
  background: var(--surface2);
  color: var(--text-muted);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.625rem 0.875rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 0.6875rem 0.875rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  vertical-align: top;
  line-height: 1.65;
}

.data-table td:first-child {
  font-family: 'Space Mono', monospace;
  font-size: 0.6875rem;
  color: var(--accent);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.018);
}

.sub-divider {
  border: none;
  border-top: 1px dashed var(--border);
  margin: var(--sp-6) 0;
}

/* PROSE */
.prose p {
  font-size: 0.84375rem;
  color: var(--text-dim);
  margin-bottom: var(--sp-3);
  line-height: 1.8;
}

.prose strong {
  color: var(--text);
}

h3.sub-heading {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin: var(--sp-6) 0 var(--sp-3);
}

/* CHECKLIST */
.checklist {
  list-style: none;
  margin: var(--sp-4) 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: 0.5625rem 0.8125rem;
  border-radius: 0.375rem;
  margin-bottom: var(--sp-1);
  font-size: 0.8125rem;
  color: var(--text-dim);
  background: var(--surface2);
  border: 1px solid var(--border);
  line-height: 1.6;
}

.checklist li::before {
  content: '○';
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 0.0625rem;
  font-size: 0.8125rem;
}

.checklist li strong {
  color: var(--text);
}

/* BUDGET BAR */
.budget-bar {
  margin: var(--sp-4) 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: var(--sp-4) var(--sp-5);
}

.budget-title {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}

.budget-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
  font-size: 0.75rem;
}

.budget-row .b-label {
  color: var(--text-dim);
  width: 11.25rem;
  flex-shrink: 0;
}

.budget-row .b-track {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.budget-row .b-fill {
  height: 100%;
  border-radius: 2px;
}

.budget-row .b-val {
  font-family: 'Space Mono', monospace;
  font-size: 0.6875rem;
  color: var(--text-muted);
  width: 3.75rem;
  text-align: right;
}

.b-fill.green {
  background: #3dffc0;
}

.b-fill.blue {
  background: #4d9fff;
}

.b-fill.orange {
  background: #fb923c;
}

.b-fill.purple {
  background: #a78bfa;
}

.b-fill.red {
  background: #f87171;
}

/* HEALTH BADGES */
.health-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.1875rem 0.625rem;
  border-radius: 6.25rem;
  font-size: 0.65625rem;
  font-weight: 600;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.06em;
}

.health-badge.green {
  background: rgba(61, 255, 192, 0.1);
  color: #3dffc0;
  border: 1px solid rgba(61, 255, 192, 0.2);
}

.health-badge.amber {
  background: rgba(251, 146, 60, 0.1);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.2);
}

.health-badge.red {
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.2);
}

/* INLINE CODE */
code {
  font-family: 'Space Mono', monospace;
  font-size: 0.6875rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  color: var(--accent);
}

/* SCROLL TOP */
.scroll-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  width: 2.375rem;
  height: 2.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.0625rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
  text-decoration: none;
  z-index: 200;
}

.scroll-top:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
.author-byline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
}

.author-name {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.author-label {
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.author-sep {
  color: var(--border);
}

@media (max-width: 1023px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .mobile-header {
    display: flex;
  }

  .hero {
    padding: var(--sp-8) var(--sp-6) var(--sp-6);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .content,
  .file-tracker {
    padding-left: var(--sp-6);
    padding-right: var(--sp-6);
  }

  .tracker-grid {
    grid-template-columns: 1fr 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    gap: var(--sp-5);
  }
}

@media (max-width: 599px) {
  .hero h1 {
    font-size: 1.625rem;
  }

  .hero {
    padding: var(--sp-6) var(--sp-4);
  }

  .content,
  .file-tracker {
    padding-left: var(--sp-4);
    padding-right: var(--sp-4);
  }

  .tracker-grid {
    grid-template-columns: 1fr;
  }

  .step-meta {
    gap: var(--sp-2);
  }

  .prompt-body,
  .handover-body {
    font-size: 0.6875rem;
    padding: var(--sp-4);
  }

  .scroll-top {
    bottom: var(--sp-4);
    right: var(--sp-4);
  }
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 4rem;
  margin-top: 0;
  background: var(--surface);
}

.footer-inner {
  max-width: 48rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0 auto;
}

.footer-copy {
  font-family: 'Space Mono', monospace;
  font-size: 0.6875rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.footer-copy strong {
  color: var(--accent);
}

.footer-rights {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding: 0.75rem 1rem;
  background: rgba(255, 107, 107, 0.05);
  border: 1px solid rgba(255, 107, 107, 0.12);
  border-radius: 0.375rem;
}

.footer-rights strong {
  color: var(--text-dim);
}

.footer-note {
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}

@media (max-width: 1023px) {
  .site-footer {
    padding: 2rem 1.5rem;
  }
}

/* ═══════════════════════════════════════════════════
   VCM TRACKER — Feature Layer CSS
   Password · Projects · Checklist · Save Prompts
═══════════════════════════════════════════════════ */


/* ── LOGIN SCREEN ── */
#pf-login-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pf-login-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2.5rem;
  width: min(90vw, 24rem);
  text-align: center;
}

.pf-app-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.375rem;
}

.pf-app-tagline {
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 18rem;
  margin-left: auto;
  margin-right: auto;
}

.pf-login-field {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.625rem 0.875rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s;
  margin-bottom: 0.625rem;
  display: block;
  text-align: left;
}

.pf-login-field:focus {
  border-color: var(--accent);
}

.pf-login-btn {
  width: 100%;
  background: var(--accent);
  color: #07080d;
  border: none;
  border-radius: 0.375rem;
  padding: 0.625rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-top: 0.25rem;
  position: relative;
}

.pf-login-btn:hover {
  opacity: 0.85;
}

.pf-login-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pf-login-error {
  color: var(--accent3);
  font-size: 0.75rem;
  margin-top: 0.625rem;
  min-height: 1rem;
}

.pf-login-spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(7, 8, 13, 0.3);
  border-top-color: #07080d;
  border-radius: 50%;
  animation: pf-spin 0.7s linear infinite;
  margin: 0 auto;
}

.pf-login-btn.loading .pf-login-spinner {
  display: inline-block;
}

.pf-login-btn.loading .pf-btn-text {
  display: none;
}

@keyframes pf-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── ADMIN DASHBOARD SCREEN ── */
#pf-admin-screen {
  position: fixed;
  inset: 0;
  background: rgba(7, 8, 13, 0.95);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.pf-admin-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  width: 95%;
  max-width: 50rem;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pf-admin-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface2);
}

.pf-admin-header .pf-app-name {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.pf-admin-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s;
}

.pf-admin-close-btn:hover {
  color: var(--accent3);
}

.pf-admin-content {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.pf-admin-section {
  margin-bottom: 2rem;
}

.pf-admin-section:last-child {
  margin-bottom: 0;
}

.pf-admin-section h3 {
  font-family: 'Syne', sans-serif;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pf-admin-table-wrapper {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pf-admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.pf-admin-table th,
.pf-admin-table td {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.pf-admin-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pf-admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.admin-action-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.65rem;
  cursor: pointer;
  transition: all 0.15s;
  margin-right: 0.25rem;
}

.admin-action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.admin-action-btn.danger:hover {
  border-color: var(--accent3);
  color: var(--accent3);
}

/* ── NEW ADMIN FORM STYLES ── */
.pf-admin-form {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--border);
  padding: 15px;
  border-radius: 8px;
}

.pf-admin-form-group {
  flex: 1;
  min-width: 0;
}

.admin-create-btn {
  width: auto;
  margin-top: 0;
  padding: 0.625rem 1.25rem;
  white-space: nowrap;
}

.pf-admin-msg {
  margin-top: 0.5rem;
  font-size: 12px;
  color: var(--accent);
}

/* ── RESPONSIVE ADMIN MODAL ── */
@media screen and (max-width: 768px) {
  #pf-admin-screen {
    padding: 1rem;
  }
  
  .pf-admin-box {
    width: 100%;
    max-height: 95vh;
  }
  
  .pf-admin-header {
    padding: 1rem 1.25rem;
  }
  
  .pf-admin-content {
    padding: 1.25rem;
  }
  
  .pf-admin-form {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .pf-admin-form-group {
    width: 100%;
  }
  
  .admin-create-btn {
    width: 100%;
  }

  .pf-admin-table th,
  .pf-admin-table td {
    padding: 0.625rem 0.75rem;
    font-size: 0.7rem;
  }

  /* Make user names and emails more readable on narrow screens */
  .pf-admin-table td > div {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media screen and (max-width: 480px) {
  #pf-admin-screen {
    padding: 0.5rem;
  }
  
  .pf-admin-header .pf-app-name {
    font-size: 0.95rem;
  }

  .admin-action-btn {
    padding: 0.2rem 0.4rem;
    font-size: 0.6rem;
    margin-right: 0.15rem;
  }

  .pf-login-box {
    padding: 1.5rem;
  }
}

/* ── EMAIL MODAL ── */
#pf-email-modal {
  position: absolute;
  inset: 0;
  background: rgba(7, 8, 13, 0.9);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}


/* ── ADMIN LINK ── */
.vcm-admin-link {
  display: none;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.375rem var(--sp-3);
  border-radius: 0.375rem;
  margin-top: var(--sp-3);
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}

.vcm-admin-link:hover {
  color: var(--accent2);
  background: rgba(77, 159, 255, 0.07);
}

.vcm-admin-link.visible {
  display: flex;
}

/* ── PROJECTS PANEL ── */
.vcm-projects-panel {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-2);
}

.vcm-panel-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vcm-new-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  color: var(--accent);
  font-size: 0.625rem;
  padding: 0.125rem 0.375rem;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Space Mono', monospace;
}

.vcm-new-btn:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.vcm-project-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: var(--sp-1);
}

.vcm-project-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3125rem 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
}

.vcm-project-item:hover {
  background: var(--accent-dim);
}

.vcm-project-item.vcm-proj-active {
  background: var(--accent-dim);
  border-color: rgba(61, 255, 192, 0.2);
}

.vcm-project-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.vcm-project-name {
  flex: 1;
  font-size: 0.71875rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Inter', sans-serif;
}

.vcm-project-item.vcm-proj-active .vcm-project-name {
  color: var(--accent);
  font-weight: 500;
}

.vcm-proj-progress {
  font-size: 0.5625rem;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  white-space: nowrap;
}

.vcm-project-del {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.6875rem;
  padding: 0 0.125rem;
  opacity: 0;
  transition: all 0.15s;
  line-height: 1;
  font-family: 'Space Mono', monospace;
}

.vcm-project-item:hover .vcm-project-del {
  opacity: 1;
}

.vcm-project-del:hover {
  color: var(--accent3);
}

.vcm-project-del.vcm-del-confirm {
  color: var(--accent3);
  opacity: 1;
  font-size: 0.5625rem;
}

.vcm-new-form {
  display: none;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.vcm-new-form.open {
  display: flex;
}

.vcm-new-input {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.375rem 0.625rem;
  color: var(--text);
  font-size: 0.75rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.15s;
}

.vcm-new-input:focus {
  border-color: var(--accent);
}

.vcm-create-btn {
  background: var(--accent);
  color: #07080d;
  border: none;
  border-radius: 0.25rem;
  padding: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.04em;
  transition: opacity 0.15s;
}

.vcm-create-btn:hover {
  opacity: 0.85;
}

.vcm-no-projects {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 0.25rem 0.25rem;
}

/* ── DOWNLOAD BUTTON ── */
.vcm-download-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  width: calc(100% - 2rem);
  margin: 0 var(--sp-4) var(--sp-3);
  background: none;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.4375rem var(--sp-3);
  color: var(--text-muted);
  font-size: 0.6875rem;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}

.vcm-download-btn:hover {
  border-color: var(--accent2);
  color: var(--accent2);
  background: rgba(77, 159, 255, 0.07);
}

/* ── NAV CHECKLIST ── */
.vcm-check {
  margin-left: auto;
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.5625rem;
  color: transparent;
  font-weight: 700;
}

.nav-item:hover .vcm-check {
  border-color: rgba(61, 255, 192, 0.4);
}

.nav-item.vcm-done .vcm-check {
  background: var(--accent);
  border-color: var(--accent);
  color: #07080d;
}

.nav-item.vcm-done {
  opacity: 0.5;
}

.nav-item.vcm-current {
  background: rgba(61, 255, 192, 0.05) !important;
  border: 1px solid rgba(61, 255, 192, 0.22) !important;
  color: var(--accent) !important;
}

.nav-item.vcm-current .vcm-check {
  border-color: rgba(61, 255, 192, 0.35);
}

.nav-item.vcm-current .step-dot {
  box-shadow: 0 0 5px currentColor;
}

/* ── PROMPT SAVE/RESTORE ── */
.vcm-btn-group {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.vcm-save-btn {
  font-size: 0.5625rem;
  font-family: 'Space Mono', monospace;
  padding: 0.1875rem 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(77, 159, 255, 0.3);
  background: rgba(77, 159, 255, 0.05);
  color: var(--accent2);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.vcm-save-btn:hover {
  background: rgba(77, 159, 255, 0.15);
  border-color: var(--accent2);
}

.vcm-save-btn.vcm-saved {
  color: var(--accent);
  border-color: rgba(61, 255, 192, 0.3);
  background: rgba(61, 255, 192, 0.06);
}

.vcm-restore-btn {
  font-size: 0.5625rem;
  font-family: 'Space Mono', monospace;
  padding: 0.1875rem 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(255, 107, 107, 0.3);
  background: transparent;
  color: var(--accent3);
  cursor: pointer;
  transition: all 0.15s;
  display: none;
  letter-spacing: 0.04em;
}

.vcm-restore-btn:hover {
  background: rgba(255, 107, 107, 0.08);
}

.vcm-restore-btn.vcm-visible {
  display: inline-block;
}

.vcm-saved-badge {
  font-size: 0.5rem;
  background: rgba(61, 255, 192, 0.08);
  border: 1px solid rgba(61, 255, 192, 0.18);
  color: var(--accent);
  border-radius: 0.25rem;
  padding: 0.125rem 0.3125rem;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.08em;
  display: none;
}

/* Make prompt/handover bodies editable when active project is set */
.vcm-editable {
  outline: none;
  cursor: text;
}

.vcm-editable:focus {
  box-shadow: inset 0 0 0 1px rgba(77, 159, 255, 0.25);
}

.vcm-edit-hint {
  font-size: 0.5625rem;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  opacity: 0.6;
  letter-spacing: 0.04em;
}

/* ── USER BAR + LOGOUT ── */
.vcm-user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem var(--sp-3);
  margin-bottom: var(--sp-2);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
}

.vcm-user-info {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
  flex: 1;
}

.vcm-user-icon {
  color: var(--accent);
  font-size: 0.625rem;
  flex-shrink: 0;
}

.vcm-user-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vcm-logout-btn {
  background: none;
  border: 1px solid rgba(255, 107, 107, 0.25);
  border-radius: 0.25rem;
  color: var(--accent3);
  font-family: 'Space Mono', monospace;
  font-size: 0.5625rem;
  padding: 0.1875rem 0.5rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.vcm-logout-btn:hover {
  background: rgba(255, 107, 107, 0.08);
  border-color: rgba(255, 107, 107, 0.45);
}

.vcm-logout-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── SYSTEM MESSAGE MODAL ── */
#pf-msg-modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 8, 13, 0.85);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#pf-msg-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.pf-msg-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  width: 100%;
  max-width: 26rem;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(10px);
  transition: transform 0.2s ease;
}

#pf-msg-modal.visible .pf-msg-box {
  transform: translateY(0);
}

.pf-msg-header {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pf-msg-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.pf-msg-icon.info {
  background: rgba(61, 255, 192, 0.1);
  color: var(--accent);
  border: 1px solid rgba(61, 255, 192, 0.25);
}

.pf-msg-icon.error {
  background: rgba(255, 107, 107, 0.1);
  color: var(--accent3);
  border: 1px solid rgba(255, 107, 107, 0.25);
}

.pf-msg-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--text);
  font-size: 1.125rem;
}

.pf-msg-body {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.pf-msg-btn {
  width: 100%;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.75rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.15s;
}

.pf-msg-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ──────────────────────────────────────────────────────────
   ADMIN ACTION MODAL
────────────────────────────────────────────────────────── */
#pf-admin-action-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 14, 18, 0.95);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#pf-admin-action-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

#pf-admin-action-modal .pf-admin-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: 480px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

#pf-admin-action-modal .pf-admin-header {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: none;
  padding: 0;
  border: none;
}

#pf-admin-action-modal .pf-admin-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

#pf-admin-action-modal .pf-admin-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

#pf-admin-action-modal .pf-admin-field {
  margin-bottom: 16px;
}

#pf-admin-action-modal .pf-admin-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

#pf-admin-action-modal .pf-admin-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 0.9375rem;
}

#pf-admin-action-modal .pf-admin-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

#pf-admin-action-modal .pf-admin-footer {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

#pf-admin-action-modal .pf-admin-btn {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

#pf-admin-action-modal .pf-admin-btn-cancel {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

#pf-admin-action-modal .pf-admin-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

#pf-admin-action-modal .pf-admin-btn-confirm {
  background: var(--accent);
  color: var(--bg-app);
}

#pf-admin-action-modal .pf-admin-btn-confirm:hover {
  background: #2ddba6;
  transform: translateY(-2px);
}

/* ── MOBILE NAV DRAWER OVERRIDES ── */
.mobile-nav-drawer .vcm-user-bar {
  margin: var(--sp-4) var(--sp-5) var(--sp-2);
}
.mobile-nav-drawer .vcm-admin-link {
  margin: 0 var(--sp-5) var(--sp-4);
}
.mobile-nav-drawer .vcm-projects-panel {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-4) 0;
  margin-bottom: var(--sp-4);
}
.mobile-nav-drawer .vcm-panel-label,
.mobile-nav-drawer .vcm-project-list,
.mobile-nav-drawer .vcm-new-form {
  padding: 0 var(--sp-5);
}
.mobile-nav-drawer .philosophy-box {
  margin: var(--sp-6) var(--sp-5);
}

#pf-admin-action-modal .pf-admin-btn-danger {
  background: var(--accent3);
  color: white;
}

#pf-admin-action-modal .pf-admin-btn-danger:hover {
  background: #ff5252;
  transform: translateY(-2px);
}