/* ═══════════════════════════════════════════
   TOKENS
═══════════════════════════════════════════ */
:root {
  --ink: #0c0c10;
  --ink2: #13131a;
  --ink3: #1a1a24;
  --line: #22222e;
  --line2: #2e2e3e;
  --smoke: #5a5a72;
  --ash: #8888a0;
  --fog: #b8b8cc;
  --paper: #e8e8f2;
  --white: #f4f4fc;
  --volt: #c8ff00;
  --volt2: #a8d900;
  --blue: #4466ff;
  --teal: #00d4aa;
  --amber: #ffaa00;
  --rose: #ff4466;
  /* ── Design system tokens ── */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --gap-sm: 8px;
  --gap-md: 12px;
  --gap-lg: 20px;
  --pad-card: 20px 22px;
  --label-size: 9px;
  --label-spacing: .15em;
}


/* ── UNIVERSAL SELECT STYLE ── */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a5a72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px !important;
}

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

/* Remove number spinners globally */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

html {
  scroll-behavior: smooth;
  background: #0c0c10;
}

/* ── PLAN BADGE ── */
.plan-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all .15s;
  font-family: 'Outfit', sans-serif;
}

.plan-badge.free {
  background: rgba(255, 170, 0, .12);
  color: var(--amber);
  border: 1px solid rgba(255, 170, 0, .25);
}

.plan-badge.free:hover {
  background: rgba(255, 170, 0, .22);
  box-shadow: 0 0 12px rgba(255, 170, 0, .2);
}

.plan-badge.pro {
  background: rgba(200, 255, 0, .12);
  color: var(--volt);
  border: 1px solid rgba(200, 255, 0, .25);
  cursor: default;
}

/* ── UPGRADE WALL ── */
.upgrade-wall {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.upgrade-wall.open {
  display: flex;
}

.upgrade-box {
  background: var(--ink2);
  border: 1px solid var(--line2);
  border-radius: var(--r-xl);
  padding: 40px 36px;
  max-width: 400px;
  width: 100%;
  position: relative;
  text-align: center;
  animation: modalIn .25s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.upgrade-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--smoke);
  font-size: 16px;
  cursor: pointer;
  transition: color .15s;
}

.upgrade-close:hover {
  color: var(--white);
}

.upgrade-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.upgrade-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 10px;
}

.upgrade-sub {
  font-size: 13px;
  color: var(--ash);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 24px;
}

.upgrade-price {
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.upgrade-amount {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 64px;
  color: var(--volt);
  line-height: 1;
  letter-spacing: -1px;
}

.upgrade-per {
  font-size: 16px;
  color: var(--smoke);
  font-weight: 300;
}

.upgrade-perks {
  list-style: none;
  margin-bottom: 28px;
  text-align: left;
  display: inline-block;
}

.upgrade-perks li {
  font-size: 13px;
  color: var(--fog);
  padding: 4px 0;
  font-weight: 300;
}

.upgrade-perks li::first-letter {
  color: var(--teal);
}

.upgrade-cta {
  width: 100%;
  padding: 15px;
  background: var(--volt);
  color: var(--ink);
  border: none;
  border-radius: var(--r-md);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 12px;
}

.upgrade-cta:hover {
  background: #d4ff1a;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(200, 255, 0, .3);
}

.upgrade-note {
  font-size: 10px;
  color: var(--smoke);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 300;
}

/* ── CUSTOM SCROLLBAR ── */
::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

::-webkit-scrollbar-track {
  background: var(--ink2) !important;
  border: none !important;
}

::-webkit-scrollbar-thumb {
  background: var(--line2);
  border-radius: 99px;
  border: none;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--smoke);
}

::-webkit-scrollbar-corner {
  background: var(--ink2);
}

/* Force dark track on all scrollable elements */
html,
body,
.right-panel,
.snapshots-area,
.left-panel {
  scrollbar-color: var(--line2) var(--ink2);
  scrollbar-width: thin;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  height: 100vh;
  overflow: hidden;
}

.screen {
  display: none;
}

.screen.active {
  display: flex;
}

#authScreen {
  min-height: 100vh;
  overflow-y: auto;
  flex-direction: row;
}

#appScreen {
  height: 100vh;
  overflow: hidden;
}

/* LEFT — branding column */
.auth-brand {
  width: 55%;
  background: var(--ink2);
  border-right: 1px solid var(--line);
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* animated grid bg */
.auth-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 255, 0, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 255, 0, .04) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* glowing orb */
.auth-brand::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(200, 255, 0, .08) 0%, transparent 70%);
  pointer-events: none;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.brand-mark {
  width: 36px;
  height: 36px;
  background: var(--volt);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -.5px;
}

.brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--white);
}

.brand-hero {
  margin-top: auto;
  margin-bottom: auto;
  position: relative;
  z-index: 1;
}

.brand-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--volt);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--volt);
}

.brand-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 6vw, 88px);
  line-height: .95;
  letter-spacing: -1px;
  color: var(--white);
  margin-bottom: 28px;
}

.brand-headline span {
  color: var(--volt);
}

.brand-desc {
  font-size: 15px;
  color: var(--ash);
  line-height: 1.7;
  max-width: 400px;
  margin-bottom: 48px;
  font-weight: 300;
}

.brand-stats {
  display: flex;
  gap: 40px;
}

.stat-item {}

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--white);
  letter-spacing: .5px;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  color: var(--smoke);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* RIGHT — auth form column */
.auth-form-col {
  width: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 64px;
  position: relative;
}

.auth-form-wrap {
  width: 100%;
  max-width: 360px;
}

.auth-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line2);
  margin-bottom: 36px;
}

.auth-tab {
  padding: 12px 0;
  margin-right: 32px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--smoke);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  bottom: -1px;
  letter-spacing: .03em;
}

.auth-tab.active {
  color: var(--white);
  border-bottom-color: var(--volt);
}

.auth-form-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 6px;
}

.auth-form-sub {
  font-size: 13px;
  color: var(--smoke);
  margin-bottom: 32px;
  font-weight: 300;
}

.field {
  margin-bottom: 18px;
}

.field-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .15em;
  color: var(--ash);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.field-input {
  width: 100%;
  background: var(--ink2);
  border: 1px solid var(--line2);
  border-radius: var(--r-md);
  color: var(--white);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 300;
  padding: 13px 16px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.field-input:focus {
  border-color: var(--volt);
  box-shadow: 0 0 0 3px rgba(200, 255, 0, .08);
}

.field-input::placeholder {
  color: var(--line2);
}

/* ── PASSWORD TOGGLE ── */
.pass-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pass-wrap .field-input {
  padding-right: 42px;
}

.pass-toggle {
  position: absolute;
  right: 13px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--smoke);
  display: flex;
  align-items: center;
  transition: color .2s;
}

.pass-toggle:hover {
  color: var(--ash);
}

.pass-toggle svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--volt);
  color: var(--ink);
  border: none;
  border-radius: var(--r-md);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
  margin-top: 8px;
}

.submit-btn:hover {
  background: #d4ff1a;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(200, 255, 0, .25);
}

.submit-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-msg {
  margin-top: 14px;
  font-size: 12px;
  min-height: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 300;
}

.auth-msg.error {
  color: var(--rose);
}

.auth-msg.success {
  color: var(--teal);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: var(--line2);
  font-size: 11px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ═══════════════════════════════════════════
   SCREEN 2: APP
═══════════════════════════════════════════ */
#appScreen {
  flex-direction: column;
  background: var(--ink);
}

/* ── TOP NAV ── */
.app-nav {
  height: 52px;
  background: var(--ink2);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-mark {
  width: 26px;
  height: 26px;
  background: var(--volt);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  color: var(--ink);
}

.nav-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--white);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-email {
  font-size: 11px;
  color: var(--smoke);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 300;
}

.nav-signout {
  font-size: 11px;
  color: var(--smoke);
  background: none;
  border: 1px solid var(--line2);
  border-radius: var(--r-sm);
  padding: 5px 12px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: all .2s;
}

.nav-signout:hover {
  color: var(--rose);
  border-color: var(--rose);
}

/* ── APP BODY ── */
.app-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  flex: 1;
  min-height: 0;
  min-width: 0;
}

/* ── LEFT PANEL ── */
.left-panel {
  background: var(--ink2);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 52px);
  position: sticky;
  top: 52px;
  overflow: hidden;
}

/* inputs area — scrollable if content overflows, consistent spacing */
.inputs-area {
  padding: 14px 16px 6px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

.panel-heading {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--smoke);
  text-transform: uppercase;
  margin-bottom: 6px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-heading:first-child {
  margin-top: 0;
}

.panel-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* 2-column input grid */
.fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
}

.fields-grid.single {
  grid-template-columns: 1fr;
}

.field-row {
  display: flex;
  flex-direction: column;
}

.field-row label {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--ash);
  margin-bottom: 4px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
}

.field-row label span {
  color: var(--smoke);
  font-weight: 300;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  margin-left: 4px;
  flex-shrink: 0;
}

.inp-wrap {
  display: flex;
  background: var(--ink3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .15s;
  height: 30px;
}

.inp-wrap:focus-within {
  border-color: rgba(200, 255, 0, .5);
  box-shadow: 0 0 0 2px rgba(200, 255, 0, .06);
}

.inp-pre {
  padding: 0 7px;
  font-size: 10px;
  color: var(--smoke);
  border-right: 1px solid var(--line);
  height: 100%;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .02);
  min-width: 24px;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}

.inp-wrap input[type="number"] {
  background: transparent;
  border: none;
  color: var(--white);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 300;
  padding: 0 8px;
  height: 100%;
  width: 100%;
  outline: none;
}

.inp-wrap input::-webkit-inner-spin-button,
.inp-wrap input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.inp-wrap input[type="number"] {
  -moz-appearance: textfield;
}

/* ── ACTION AREA: run + save — unified spacing ── */
.action-area {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

/* run button */
.run-btn {
  width: 100%;
  padding: 11px;
  background: var(--volt);
  color: var(--ink);
  border: none;
  border-radius: var(--r-md);
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
  display: block;
  box-sizing: border-box;
}

.run-btn:hover {
  background: #d4ff1a;
  box-shadow: 0 4px 16px rgba(200, 255, 0, .3);
  transform: translateY(-1px);
}

.mobile-sample-btn {
  display: none;
}

/* save row */
.save-row {
  display: none;
  box-sizing: border-box;
}

.save-row.show {
  display: flex;
  gap: 7px;
  align-items: center;
}

/* save row locked state for free users */
.save-row-locked {
  display: none;
  box-sizing: border-box;
}

.save-row-locked.show {
  display: block;
}

/* char counter */
.save-char-count {
  font-size: 9px;
  color: var(--line2);
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  transition: color .15s;
  margin-top: -4px;
}

.save-char-count.warn {
  color: var(--amber);
}

.save-locked-btn {
  width: 100%;
  padding: 8px 13px;
  background: rgba(255, 255, 255, .03);
  color: var(--smoke);
  border: 1px dashed var(--line2);
  border-radius: var(--r-md);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  font-family: 'Outfit', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.save-locked-btn:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(255, 170, 0, .05);
}

.save-locked-tag {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
  background: rgba(255, 170, 0, .15);
  color: var(--amber);
  border: 1px solid rgba(255, 170, 0, .3);
  padding: 1px 5px;
  border-radius: 3px;
}

/* nav email — truncate with ellipsis */
.nav-email {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* sample data button on empty state */
.empty-sample-btn {
  margin-top: 20px;
  padding: 10px 24px;
  background: rgba(200, 255, 0, .08);
  border: 1px solid rgba(200, 255, 0, .2);
  border-radius: var(--r-md);
  color: var(--volt);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: all .2s;
  letter-spacing: .04em;
}

.empty-sample-btn:hover {
  background: rgba(200, 255, 0, .14);
  box-shadow: 0 4px 16px rgba(200, 255, 0, .15);
  transform: translateY(-1px);
}

/* run button loading state */
.run-btn.loading {
  opacity: .7;
  cursor: not-allowed;
  pointer-events: none;
}

/* signout confirm dialog */
.signout-confirm {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
}

.signout-confirm.open {
  display: flex;
}

.signout-box {
  background: var(--ink2);
  border: 1px solid var(--line2);
  border-radius: var(--r-xl);
  padding: 32px 36px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  animation: modalIn .2s ease;
}

.signout-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 8px;
}

.signout-sub {
  font-size: 12px;
  color: var(--ash);
  font-weight: 300;
  margin-bottom: 24px;
  line-height: 1.6;
}

.signout-btns {
  display: flex;
  gap: 10px;
}

.signout-cancel {
  flex: 1;
  padding: 11px;
  background: transparent;
  border: 1px solid var(--line2);
  border-radius: var(--r-md);
  color: var(--fog);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: all .15s;
}

.signout-cancel:hover {
  border-color: var(--ash);
  color: var(--white);
}

.signout-confirm-btn {
  flex: 1;
  padding: 11px;
  background: rgba(255, 68, 102, .12);
  border: 1px solid rgba(255, 68, 102, .3);
  border-radius: var(--r-md);
  color: var(--rose);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: all .15s;
}

.signout-confirm-btn:hover {
  background: rgba(255, 68, 102, .2);
}

/* input validation error state */
.inp-wrap.invalid {
  border-color: rgba(255, 68, 102, .6) !important;
  box-shadow: 0 0 0 2px rgba(255, 68, 102, .08) !important;
}

.field-error {
  font-size: 9px;
  color: var(--rose);
  margin-top: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 300;
  display: none;
}

.field-error.show {
  display: block;
}

.save-row.show {
  display: flex;
  gap: 7px;
}

.save-name-inp {
  flex: 1;
  background: var(--ink3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--white);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 300;
  padding: 7px 10px;
  outline: none;
  transition: border-color .15s;
}

.save-name-inp:focus {
  border-color: rgba(200, 255, 0, .4);
}

.save-name-inp::placeholder {
  color: var(--line2);
}

.save-go-btn {
  padding: 7px 13px;
  background: rgba(200, 255, 0, .1);
  color: var(--volt);
  border: 1px solid rgba(200, 255, 0, .25);
  border-radius: var(--r-md);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  font-family: 'Outfit', sans-serif;
}

.save-go-btn:hover {
  background: rgba(200, 255, 0, .18);
}

/* snapshots — scrollable section at bottom */
.snapshots-area {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.snaps-heading {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--smoke);
  text-transform: uppercase;
  padding: 10px 18px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.snaps-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.snap-empty {
  padding: 16px 18px;
  font-size: 10px;
  color: var(--line2);
  line-height: 1.7;
  text-align: center;
}

.snapshots-list {
  padding: 0 14px 14px;
}

.snap-card {
  background: var(--ink3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 9px 11px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.snap-card:hover {
  border-color: rgba(200, 255, 0, .3);
  background: rgba(200, 255, 0, .03);
}

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

.snap-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--fog);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.snap-meta {
  font-size: 9px;
  color: var(--smoke);
  display: flex;
  gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 300;
}

.snap-arr {
  color: var(--teal);
}

.snap-del {
  background: none;
  border: none;
  color: var(--line2);
  font-size: 13px;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
  flex-shrink: 0;
  transition: color .15s;
}

.snap-del:hover {
  color: var(--rose);
}

/* ── RIGHT / MAIN ── */
.right-panel {
  padding: 28px 32px;
  overflow-y: auto;
  overflow-x: hidden;
  height: calc(100vh - 52px);
  background: var(--ink);
  min-width: 0;
}

/* EMPTY STATE */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 500px;
  text-align: center;
}

.empty-glyph {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 120px;
  line-height: 1;
  color: var(--line);
  margin-bottom: 20px;
  letter-spacing: -4px;
}

.empty-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--fog);
  margin-bottom: 10px;
}

.empty-sub {
  font-size: 13px;
  color: var(--smoke);
  font-weight: 300;
}

/* DASHBOARD */
.dashboard {
  display: none;
  min-width: 0;
  max-width: 100%;
}

.dashboard.active {
  display: block;
}

.empty-state.hidden {
  display: none;
}

/* section title */
.dash-section-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--smoke);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* HERO ROW */
.hero-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.hero-card {
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
  position: relative;
  overflow: hidden;
  transition: transform .2s;
}

.hero-card:hover {
  transform: translateY(-2px);
}

.hero-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
}

.hero-card.green {
  border-top: 2px solid var(--teal);
}

.hero-card.yellow {
  border-top: 2px solid var(--amber);
}

.hero-card.red {
  border-top: 2px solid var(--rose);
}

.hero-card.neutral {
  border-top: 2px solid var(--blue);
}

.hero-eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .15em;
  color: var(--smoke);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -.5px;
}

.hero-card.green .hero-val {
  color: var(--teal);
}

.hero-card.yellow .hero-val {
  color: var(--amber);
}

.hero-card.red .hero-val {
  color: var(--rose);
}

.hero-card.neutral .hero-val {
  color: var(--blue);
}

.hero-label {
  font-size: 11px;
  color: var(--smoke);
  font-weight: 300;
}

/* KPI GRID */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.kpi-card {
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
  transition: border-color .15s;
}

.kpi-card:hover {
  border-color: var(--line2);
}

.kpi-label {
  font-size: var(--label-size);
  font-weight: 700;
  letter-spacing: var(--label-spacing);
  color: var(--smoke);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.kpi-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: var(--white);
  letter-spacing: .5px;
  margin-bottom: 6px;
  line-height: 1;
}

.kpi-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: .05em;
}

.kpi-badge.good {
  background: rgba(0, 212, 170, .12);
  color: var(--teal);
}

.kpi-badge.warn {
  background: rgba(255, 170, 0, .12);
  color: var(--amber);
}

.kpi-badge.bad {
  background: rgba(255, 68, 102, .12);
  color: var(--rose);
}

/* CHARTS */
.charts-row {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 12px;
  margin-bottom: 28px;
  align-items: start;
}

.chart-card {
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
}

.chart-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 2px;
}

.chart-sub {
  font-size: 10px;
  color: var(--smoke);
  font-weight: 300;
  margin-bottom: 12px;
}

.chart-wrap {
  position: relative;
  height: 160px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.chart-wrap canvas {
  max-width: 100% !important;
}

/* INSIGHTS */
.insights-card {
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
  margin-bottom: 28px;
}

.insights-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.insights-head h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--white);
}

.advisor-chip {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  background: rgba(200, 255, 0, .1);
  color: var(--volt);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(200, 255, 0, .2);
}

.insight-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  animation: fadeUp .3s ease both;
}

.insight-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.insight-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.insight-row.good .insight-dot {
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}

.insight-row.warn .insight-dot {
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}

.insight-row.bad .insight-dot {
  background: var(--rose);
  box-shadow: 0 0 8px var(--rose);
}

.insight-row.info .insight-dot {
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
}

.insight-body h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.insight-body p {
  font-size: 12px;
  color: var(--ash);
  line-height: 1.65;
  font-weight: 300;
}

/* BENCHMARK TABLE */
.bench-card {
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
}

.bench-head {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 18px;
}

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

th {
  text-align: left;
  padding: 8px 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--smoke);
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

td {
  padding: 10px 12px;
  font-size: 11px;
  color: var(--smoke);
  border-bottom: 1px solid rgba(34, 34, 46, .6);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 300;
}

tr.you td {
  background: rgba(200, 255, 0, .04);
  color: var(--fog);
}

tr.you td:first-child {
  color: var(--volt);
  font-weight: 500;
}

.you-pill {
  font-size: 8px;
  background: var(--volt);
  color: var(--ink);
  padding: 1px 5px;
  border-radius: 2px;
  margin-left: 6px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: .05em;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--ink3);
  border: 1px solid var(--line2);
  border-radius: var(--r-md);
  padding: 11px 18px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 300;
  color: var(--fog);
  z-index: 9999;
  transform: translateY(70px);
  opacity: 0;
  transition: all .28s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.ok {
  border-color: rgba(0, 212, 170, .4);
  color: var(--teal);
}

.toast.err {
  border-color: rgba(255, 68, 102, .4);
  color: var(--rose);
}

/* ═══════════════════════════════════════════
   TABLET  ≤ 900px
═══════════════════════════════════════════ */
@media (max-width: 900px) {

  /* AUTH */
  #authScreen {
    flex-direction: column;
  }

  .auth-brand {
    width: 100%;
    padding: 40px 32px 32px;
    min-height: auto;
  }

  .brand-headline {
    font-size: 52px;
  }

  .brand-stats {
    gap: 24px;
  }

  .brand-desc {
    margin-bottom: 28px;
  }

  .auth-form-col {
    width: 100%;
    padding: 32px;
  }

  /* APP */
  .app-body {
    grid-template-columns: 1fr;
  }

  .left-panel {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .inputs-area {
    padding: 16px 16px 8px;
  }

  .right-panel {
    height: auto;
    padding: 20px 16px;
  }

  /* DASHBOARD GRIDS */
  .hero-row {
    grid-template-columns: 1fr 1fr;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .charts-row {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════
   MOBILE  ≤ 600px
═══════════════════════════════════════════ */


/* ═══════════════════════════════════════════
       PRO FEATURE STYLES
    ═══════════════════════════════════════════ */

/* PRO TABS NAV BAR */
.pro-tabs {
  background: var(--ink2);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 0;
  padding: 0 28px;
  overflow-x: auto;
  overflow-y: hidden;
  flex-shrink: 0;
  scrollbar-width: none;
}

.pro-tabs::-webkit-scrollbar {
  display: none;
}

.pro-tab {
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  color: var(--smoke);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  position: relative;
  bottom: -1px;
  letter-spacing: .02em;
}

.pro-tab:hover {
  color: var(--ash);
}

.pro-tab.active {
  color: var(--volt);
  border-bottom-color: var(--volt);
}

/* PRO SECTION WRAPPER */
.pro-section {
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
  margin-bottom: 20px;
}

.pro-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.pro-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 4px;
}

.pro-section-sub {
  font-size: 11px;
  color: var(--smoke);
  font-weight: 300;
}

/* SCENARIO SIMULATOR */
.scenario-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--gap-lg);
  align-items: start;
}

.scenario-controls {
  background: var(--ink3);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
}

.scenario-label {
  font-size: var(--label-size);
  font-weight: 700;
  letter-spacing: var(--label-spacing);
  color: var(--smoke);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  margin-top: 14px;
}

.scenario-label:first-child {
  margin-top: 0;
}

.scenario-label span {
  color: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
}

.scenario-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 3px;
  background: var(--line2);
  border-radius: 2px;
  outline: none;
  margin-bottom: 4px;
}

.scenario-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--volt);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(200, 255, 0, .4);
}

.scenario-reset {
  width: 100%;
  margin-top: 16px;
  padding: 8px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line2);
  border-radius: var(--r-md);
  color: var(--smoke);
  font-size: 11px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: all .2s;
}

.scenario-reset:hover {
  color: var(--white);
  border-color: var(--ash);
}

.scenario-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
  margin-bottom: 0;
}

.s-result-card {
  background: var(--ink3);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
  text-align: center;
}

.s-result-label {
  font-size: var(--label-size);
  font-weight: 700;
  letter-spacing: var(--label-spacing);
  color: var(--smoke);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.s-result-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.s-result-delta {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 300;
}

.s-result-delta.pos {
  color: var(--teal);
}

.s-result-delta.neg {
  color: var(--rose);
}

.s-result-delta.neu {
  color: var(--smoke);
}

/* RUNWAY INTELLIGENCE */
.runway-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-md);
}

.runway-card {
  background: var(--ink3);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
}

.runway-card-title {
  font-size: var(--label-size);
  font-weight: 700;
  letter-spacing: var(--label-spacing);
  color: var(--smoke);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.runway-months {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  line-height: 1;
  margin-bottom: 4px;
}

.runway-months.safe {
  color: var(--teal);
}

.runway-months.warn {
  color: var(--amber);
}

.runway-months.danger {
  color: var(--rose);
}

.runway-card-sub {
  font-size: 10px;
  color: var(--smoke);
  font-weight: 300;
  margin-bottom: 10px;
}

.survival-bar-wrap {
  margin-top: 20px;
}

.survival-title {
  font-size: var(--label-size);
  font-weight: 700;
  letter-spacing: var(--label-spacing);
  color: var(--smoke);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.survival-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.survival-label {
  font-size: 11px;
  color: var(--ash);
  width: 160px;
  flex-shrink: 0;
}

.survival-bar-bg {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.survival-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width .6s ease;
}

.survival-pct {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--fog);
  width: 36px;
  text-align: right;
}

/* ARR HEALTH SCORE */
.health-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 20px;
}

.health-score-ring {
  background: var(--ink3);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 180px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.health-score-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 72px;
  line-height: 1;
  letter-spacing: -2px;
}

.health-score-lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--smoke);
  text-transform: uppercase;
}

.health-grade {
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}

.health-components {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.health-comp-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.health-comp-label {
  font-size: 11px;
  color: var(--ash);
  width: 140px;
  flex-shrink: 0;
}

.health-comp-bar-bg {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.health-comp-bar {
  height: 100%;
  border-radius: 2px;
  transition: width .5s ease;
}

.health-comp-val {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--fog);
  width: 32px;
  text-align: right;
}

.health-comp-weight {
  font-size: 9px;
  color: var(--smoke);
  width: 28px;
  text-align: right;
}

.health-recs {
  background: var(--ink3);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
}

.health-rec-title {
  font-size: var(--label-size);
  font-weight: 700;
  letter-spacing: var(--label-spacing);
  color: var(--smoke);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.health-rec-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ash);
  line-height: 1.5;
  font-weight: 300;
}

.health-rec-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.health-rec-item .dot {
  color: var(--volt);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── SHARED CONTROL INPUTS (deferred, hiring, cohort) ── */
.deferred-controls,
.hiring-controls,
.cohort-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.def-field {
  flex: 1;
}

.def-field label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--smoke);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Custom select — replaces native arrow */
.def-field select {
  width: 100%;
  background: var(--ink3);
  border: 1px solid var(--line2);
  border-radius: var(--r-md);
  color: var(--white);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 300;
  padding: 9px 36px 9px 12px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a5a72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.def-field select:focus {
  border-color: rgba(200, 255, 0, .4);
  box-shadow: 0 0 0 3px rgba(200, 255, 0, .06);
}

.def-field select option {
  background: var(--ink2);
  color: var(--white);
}

.def-field input {
  width: 100%;
  background: var(--ink3);
  border: 1px solid var(--line2);
  border-radius: var(--r-md);
  color: var(--white);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 300;
  padding: 9px 12px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -moz-appearance: textfield;
}

.def-field input::-webkit-inner-spin-button,
.def-field input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.def-field input:focus {
  border-color: rgba(200, 255, 0, .4);
  box-shadow: 0 0 0 3px rgba(200, 255, 0, .06);
}

/* DEFERRED CARDS */
.deferred-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-md);
}

.deferred-card {
  background: var(--ink3);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
}

.deferred-card-label {
  font-size: var(--label-size);
  font-weight: 700;
  letter-spacing: var(--label-spacing);
  color: var(--smoke);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.deferred-card-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.deferred-card-sub {
  font-size: 10px;
  color: var(--smoke);
  font-weight: 300;
}

/* HIRING READINESS */
.hiring-result {
  background: var(--ink3);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
}

.hiring-score-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.hiring-score-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--ink2);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.hiring-score-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  line-height: 1;
}

.hiring-score-lbl {
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--smoke);
  text-transform: uppercase;
}

.hiring-verdict {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.hiring-verdict-sub {
  font-size: 13px;
  color: var(--ash);
  font-weight: 300;
  line-height: 1.6;
}

.hiring-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}

.hiring-detail-card {
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
}

.hiring-detail-label {
  font-size: var(--label-size);
  font-weight: 700;
  letter-spacing: var(--label-spacing);
  color: var(--smoke);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hiring-detail-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--white);
  line-height: 1;
}

.hiring-detail-sub {
  font-size: 10px;
  color: var(--smoke);
  margin-top: 4px;
  font-weight: 300;
}

/* COHORT INTELLIGENCE */
.cohort-controls {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.cohort-table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}

.cohort-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.cohort-table th {
  background: var(--ink3);
  font-size: 9px;
  padding: 10px 12px;
}

.cohort-table td {
  padding: 8px 12px;
  font-family: 'JetBrains Mono', monospace;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

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

.cohort-cell {
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
}

/* INVESTOR EXPORT */
.export-preview {
  background: var(--ink3);
  border: 1px solid var(--line2);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  font-family: 'JetBrains Mono', monospace;
}

.export-company {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 4px;
}

.export-date {
  font-size: 10px;
  color: var(--smoke);
  margin-bottom: 24px;
}

.export-section-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--volt);
  text-transform: uppercase;
  margin-bottom: 12px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.export-section-title:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.export-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 0;
}

.export-metric {}

.export-metric-label {
  font-size: 9px;
  color: var(--smoke);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 3px;
}

.export-metric-val {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}

.export-metric-status {
  font-size: 9px;
}

.export-btn {
  padding: 12px 24px;
  background: var(--volt);
  color: var(--ink);
  border: none;
  border-radius: var(--r-md);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
}

.export-btn:hover {
  background: #d4ff1a;
  transform: translateY(-1px);
}

.export-btn.secondary {
  background: transparent;
  color: var(--fog);
  border: 1px solid var(--line2);
}

.export-btn.secondary:hover {
  border-color: var(--ash);
  color: var(--white);
  background: transparent;
  transform: translateY(-1px);
}

/* GATE OVERLAY for free users */
.pro-gate {
  position: relative;
}

.pro-gate-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 16, .85);
  backdrop-filter: blur(4px);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  gap: 12px;
}

.pro-gate-icon {
  font-size: 32px;
}

.pro-gate-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--white);
}

.pro-gate-sub {
  font-size: 12px;
  color: var(--smoke);
  font-weight: 300;
}

.pro-gate-btn {
  padding: 10px 24px;
  background: var(--volt);
  color: var(--ink);
  border: none;
  border-radius: var(--r-md);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
  margin-top: 4px;
}

.pro-gate-btn:hover {
  background: #d4ff1a;
}

/* ═══════════════════════════════════════════
       PRO FEATURES — TABLET ≤ 900px
    ═══════════════════════════════════════════ */
@media (max-width: 900px) {

  /* Scenario */
  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .scenario-result-grid {
    grid-template-columns: 1fr 1fr;
  }

  .scenario-controls {
    width: 100%;
  }

  /* Runway */
  .runway-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Health */
  .health-layout {
    grid-template-columns: 1fr;
  }

  .health-score-ring {
    width: 160px;
    height: 160px;
  }

  .health-score-num {
    font-size: 60px;
  }

  /* Deferred */
  .deferred-controls {
    flex-wrap: wrap;
  }

  .def-field {
    min-width: calc(50% - 8px);
  }

  .deferred-cards {
    grid-template-columns: 1fr 1fr;
  }

  /* Hiring */
  .hiring-controls {
    flex-wrap: wrap;
  }

  .hiring-detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hiring-score-row {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Cohort */
  .cohort-controls {
    flex-wrap: wrap;
  }

  .cohort-table-wrap {
    overflow-x: auto;
  }

  /* Export */
  .export-metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .export-btn {
    padding: 10px 16px;
    font-size: 11px;
  }

  /* Pro section padding */
  .pro-section {
    padding: 18px 16px;
  }
}

/* ═══════════════════════════════════════════
       PRO FEATURES — MOBILE ≤ 600px
    ═══════════════════════════════════════════ */


/* ── RESET PASSWORD MODAL ── */
.reset-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(12px);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.reset-overlay.open {
  display: flex;
}

.reset-box {
  background: var(--ink2);
  border: 1px solid var(--line2);
  border-radius: var(--r-xl);
  padding: 40px 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  animation: modalIn .25s ease;
}

.reset-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.reset-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 8px;
}

.reset-sub {
  font-size: 13px;
  color: var(--ash);
  font-weight: 300;
  margin-bottom: 24px;
  line-height: 1.6;
}


/* ── PLAIN ENGLISH TOGGLE ── */
.dash-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* ── Plain English Toggle Button ── */
.pe-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: var(--ink3);
  border: 1px solid var(--line2);
  border-radius: 20px;
  color: var(--ash);
  font-size: 10px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  position: relative;
}

.pe-toggle:hover {
  border-color: var(--ash);
  color: var(--white);
}

/* pill indicator */
.pe-toggle::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--smoke);
  flex-shrink: 0;
  transition: background .2s, box-shadow .2s;
}

.pe-toggle.active {
  background: rgba(200, 255, 0, .1);
  border-color: var(--volt);
  color: var(--volt);
}

.pe-toggle.active::before {
  background: var(--volt);
  box-shadow: 0 0 8px var(--volt);
}

.pe-toggle svg {
  display: none;
  /* using ::before dot instead */
}

/* ── Plain English KPI Card state ── */
body.plain-english .kpi-card {
  border-color: rgba(200, 255, 0, .15);
  background: rgba(200, 255, 0, .02);
}

body.plain-english .kpi-label {
  font-size: 9px;
  line-height: 1.35;
  color: var(--fog);
  text-transform: none;
  letter-spacing: .02em;
  font-weight: 500;
  white-space: normal;
  height: auto;
}

/* Plain English tip explanation */
.pe-tip {
  font-size: 10px;
  font-weight: 300;
  color: var(--ash);
  line-height: 1.55;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  display: none;
  font-family: 'Outfit', sans-serif;
}

body.plain-english .pe-tip {
  display: block;
}

/* ── PE mode: hero cards get plain labels too ── */
body.plain-english .hero-eyebrow {
  font-size: 9px;
  text-transform: none;
  letter-spacing: .02em;
  color: var(--fog);
}

/* ── PE mode banner ── */
.pe-banner {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(200, 255, 0, .06);
  border: 1px solid rgba(200, 255, 0, .15);
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 11px;
  color: var(--volt);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .05em;
}

body.plain-english .pe-banner {
  display: flex;
}

/* ── LOGO IMAGE MARKS ── */
.brand-mark-img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.logo-mark-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ── RESPONSIVE FIXES (audit pass) ── */


@media (max-width: 900px) {

  /* Snapshots reasonable height on tablet */
  .snapshots-list {
    max-height: 240px;
    overflow-y: auto;
  }
}

/* ════════════════════════════════════════════
   MOBILE COMPLETE LAYOUT OVERRIDE ≤ 600px
   Removes all fixed heights so app scrolls
════════════════════════════════════════════ */
@media (max-width: 600px) {

  /* 1. Unlock body and app screen */
  body {
    height: auto !important;
    min-height: 100vh;
    overflow-y: auto !important;
    overflow-x: hidden;
  }

  #appScreen {
    height: auto !important;
    min-height: 100vh;
    overflow: visible !important;
    flex-direction: column;
  }

  /* 2. Nav stays compact */
  .app-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 16px;
    flex-shrink: 0;
  }

  .nav-email {
    display: none;
  }

  .nav-title {
    font-size: 13px;
    letter-spacing: 1px;
  }

  /* 3. App body: single column, no fixed height */
  .app-body {
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  /* 4. Left panel: natural height, no sticky, no overflow:hidden */
  .left-panel {
    position: relative !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    flex-shrink: 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  /* 5. Inputs area: visible, no scroll trap */
  .inputs-area {
    padding: 14px 14px 0;
    overflow: visible !important;
    height: auto !important;
  }

  /* 6. Fields: 2-col grid */
  .fields-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px 8px;
  }

  .panel-heading {
    font-size: 8px;
    margin-top: 10px;
    margin-bottom: 6px;
  }

  .inp-pre {
    min-width: 22px;
    padding: 0 6px;
    font-size: 10px;
  }

  .inp-wrap input[type="number"] {
    font-size: 11px;
    padding: 0 6px;
  }

  /* 7. Run button: full width, visible */
  .action-area {
    padding: 10px 14px 0;
    flex-shrink: 0;
  }

  .run-btn {
    width: 100% !important;
    margin: 0 0 8px 0 !important;
    padding: 13px !important;
    font-size: 12px !important;
  }

  /* 8. Mobile sample button: show it */
  .mobile-sample-btn {
    display: block !important;
    width: 100%;
    padding: 12px;
    margin: 0 0 10px 0;
    background: transparent;
    border: 1px solid var(--line2);
    border-radius: var(--r-md);
    color: var(--ash);
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: border-color .2s, color .2s;
  }

  .mobile-sample-btn:active {
    border-color: var(--volt);
    color: var(--volt);
  }

  /* 9. Snapshots: capped, padded */
  .snapshots-area {
    flex: 0 0 auto !important;
    max-height: 120px;
    overflow-y: auto;
    min-height: 0;
    padding-bottom: 8px;
  }

  .save-row {
    padding: 0 0 6px;
  }

  .save-row-locked {
    padding: 0 0 6px;
  }

  .save-char-count {
    margin-bottom: 2px;
  }

  /* Left panel — bottom padding so content breathes */
  .left-panel {
    padding-bottom: 20px !important;
  }

  /* 10. Right panel: natural height, clear separator from left */
  .right-panel {
    height: auto !important;
    overflow: visible !important;
    padding: 20px 14px 16px;
    border-top: 2px solid var(--line);
  }

  /* 11. Empty state: compact */
  .empty-state {
    min-height: unset !important;
    padding: 32px 16px;
  }

  .empty-glyph {
    font-size: 60px;
    margin-bottom: 10px;
  }

  .empty-title {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .empty-sub {
    font-size: 12px;
    margin-bottom: 0;
  }

  #emptyState .empty-sample-btn {
    display: none;
  }

  /* dash-top-bar: clear separation, PE toggle aligned right */
  .dash-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }

  .pe-toggle {
    margin-left: auto;
    flex-shrink: 0;
  }

  /* 12. Dashboard grids */
  .hero-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-card {
    padding: 16px 18px;
  }

  .hero-val {
    font-size: 34px;
  }

  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .kpi-card {
    padding: 12px 14px;
  }

  .kpi-val {
    font-size: 18px;
  }

  .charts-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .chart-wrap {
    height: 140px;
  }

  .chart-card {
    padding: 14px 16px;
  }

  .insights-card {
    padding: 16px;
  }

  .insight-body h4 {
    font-size: 12px;
  }

  .insight-body p {
    font-size: 11px;
  }

  .bench-card {
    padding: 16px;
    overflow-x: auto;
  }

  table {
    min-width: 360px;
  }

  .dash-section-title {
    font-size: 8px;
    margin-bottom: 10px;
  }

  /* 13. Toast */
  .toast {
    bottom: 14px;
    right: 14px;
    left: 14px;
    text-align: center;
  }

  /* 14. Auth page */
  .auth-brand {
    display: none;
  }

  .auth-form-col {
    width: 100%;
    min-height: 100vh;
    padding: 40px 24px;
    display: flex;
    align-items: flex-start;
    background: var(--ink);
    overflow-y: auto;
    box-sizing: border-box;
  }

  .auth-form-wrap {
    max-width: 100%;
  }

  .auth-form-title {
    font-size: 28px;
  }
}