/* =============================================================================
 * Phase 1 — Trust & Polish
 * Welcome landing, onboarding wizard, unified toast, status pill, shortcuts,
 * empty-state upgrades, topbar polish.
 * ========================================================================== */

/* ------ Welcome landing page ------------------------------------------ */
.welcome-page {
  --welcome-max: 1240px;
  --welcome-gutter: 40px;
  --welcome-space-compact: 44px;
  --welcome-space-regular: 72px;
  --welcome-space-hero-bottom: 88px;
  min-height: 100vh;
  color: var(--color-text);
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(32, 227, 255, 0.10), transparent 60%),
    radial-gradient(1200px 800px at 90% 20%, rgba(107, 125, 255, 0.10), transparent 60%),
    radial-gradient(1000px 600px at 50% 100%, rgba(255, 78, 219, 0.07), transparent 60%),
    linear-gradient(180deg, #05070f 0%, #090b14 100%);
  display: flex;
  flex-direction: column;
}

.welcome-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 32px;
  position: sticky; top: 0; z-index: 5;
  /* Opaque fill — sticky + backdrop-filter forces a repaint on every scroll
   * frame of the welcome page. */
  background: rgba(6, 8, 18, 0.96);
  border-bottom: 1px solid rgba(107, 125, 255, 0.12);
}
.welcome-nav .auth-brand { margin: 0; }
.welcome-nav .auth-brand .cb-logo-mark { width: 32px; height: 32px; }
.welcome-nav .auth-brand .cb-logo-wordmark { font-size: 30px; }
.welcome-nav .auth-brand .cb-logo-tagline { display: none; }
.welcome-nav-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(107, 125, 255, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}
.welcome-nav-actions .btn-ghost {
  padding: 8px 12px;
  border-radius: 10px;
}
.welcome-nav-actions .btn-primary {
  height: 36px;
  padding: 0 13px;
  border-radius: 10px;
}

/* Prevent sticky header from covering anchor targets. */
#features,
#pipeline,
#steps,
#pricing,
#faq {
  scroll-margin-top: 92px;
}

.welcome-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 30px;
  align-items: center;
  max-width: var(--welcome-max);
  width: 100%;
  margin: 0 auto;
  padding: 44px var(--welcome-gutter) 56px;
  min-height: calc(100vh - 78px);
}
.welcome-hero-copy .hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(32, 227, 255, 0.08);
  border: 1px solid rgba(32, 227, 255, 0.25);
  color: #a4e7ff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.welcome-hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4.3vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.welcome-hero-copy .hero-accent {
  background: linear-gradient(90deg, #56d8ff, #8b72ff);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.welcome-lead {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.4;
  color: #d3dbed;
  max-width: 48ch;
}
.welcome-lead-secondary {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 14px;
  color: #aeb9d1;
}
.welcome-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.welcome-cta-primary { padding: 0.8rem 1.14rem; font-size: 14px; }
.hero-proof-strip {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 560px;
}
.hero-proof-item {
  padding: 6px 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px dashed rgba(107, 125, 255, 0.35);
  background: transparent;
}
.hero-proof-item p {
  margin: 0 0 4px;
  color: #8fa0bf;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-proof-item strong {
  font-size: 16px;
  letter-spacing: -0.015em;
  color: #eff5ff;
}
.hero-chip-strip {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.hero-chip-item {
  font-size: 11.5px;
  color: #a8b7d1;
  border: 1px solid rgba(107, 125, 255, 0.22);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 999px;
  padding: 5px 9px;
}

.welcome-hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: center;
  min-height: 100%;
  padding-left: 8px;
}
.welcome-hero-art .demo-card {
  margin-left: auto;
  width: min(100%, 620px);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transform-origin: center right;
}
.welcome-hero-art::before {
  content: "";
  position: absolute;
  inset: 10% -6% -8% 22%;
  border-radius: 22px;
  border: 1px solid rgba(107, 125, 255, 0.2);
  pointer-events: none;
}
.demo-card {
  background: linear-gradient(180deg, rgba(17, 26, 44, 0.95), rgba(13, 20, 34, 0.92));
  border: 1px solid rgba(107, 125, 255, 0.3);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), 0 0 80px rgba(32, 227, 255, 0.08);
  animation: demoFloat 6s ease-in-out infinite;
}
@keyframes demoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.demo-card-topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(107, 125, 255, 0.18);
}
.demo-dot { width: 10px; height: 10px; border-radius: 50%; }
.demo-dot.red { background: #fb7185; }
.demo-dot.amber { background: #fbbf24; }
.demo-dot.green { background: #4ade80; }
.demo-card-title {
  margin-left: 10px;
  font-size: 12px;
  color: var(--color-text-muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.demo-card-body { padding: 20px; display: grid; gap: 16px; }
.demo-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.demo-kpi {
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(32, 227, 255, 0.06), rgba(107, 125, 255, 0.06));
  border: 1px solid rgba(107, 125, 255, 0.18);
}
.demo-kpi span { display: block; color: var(--color-text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.demo-kpi strong {
  font-size: 22px; font-weight: 800;
  background: linear-gradient(90deg, #f8fbff, #b7f7ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.demo-row { display: grid; gap: 8px; }
.demo-chip {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  border: 1px dashed rgba(32, 227, 255, 0.4);
  background: rgba(32, 227, 255, 0.06);
  color: #a4e7ff;
  position: relative;
  overflow: hidden;
}
.demo-chip::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: shimmer 2.6s infinite;
}
.demo-chip i { margin-right: 6px; }
.demo-match {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(107, 125, 255, 0.22);
  background: rgba(255, 255, 255, 0.02);
  color: var(--color-text);
  font-size: 13px;
  display: flex; align-items: center; gap: 10px;
}
.demo-match strong {
  color: #4ade80;
  min-width: 46px;
  font-size: 14px;
  font-weight: 700;
}
.demo-match.dim strong { color: var(--color-primary); }
.demo-match.dim { opacity: 0.75; }

/* Features section */
.welcome-features {
  max-width: var(--welcome-max); width: 100%; margin: 0 auto;
  padding: var(--welcome-space-regular) var(--welcome-gutter);
  text-align: left;
}
.welcome-features .eyebrow { margin: 0 0 10px; justify-content: flex-start; }
.welcome-features h2 {
  margin: 0 0 38px;
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  text-align: left;
  grid-auto-flow: dense;
}
.feature-grid .feature-card--1 { grid-column: span 7; min-height: 220px; }
.feature-grid .feature-card--2 { grid-column: span 5; min-height: 220px; }
.feature-grid .feature-card--3 { grid-column: span 4; }
.feature-grid .feature-card--4 { grid-column: span 4; transform: translateY(18px); }
.feature-grid .feature-card--5 { grid-column: span 4; }
.feature-grid .feature-card--6 { grid-column: span 12; display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 14px; }
.feature-card {
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(16, 26, 43, 0.92), rgba(11, 18, 31, 0.9));
  border: 1px solid rgba(107, 125, 255, 0.22);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(32, 227, 255, 0.45);
  box-shadow: 0 12px 40px rgba(32, 227, 255, 0.12);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(32, 227, 255, 0.2), rgba(107, 125, 255, 0.3));
  color: #a4e7ff;
  margin-bottom: 16px;
  font-size: 18px;
  border: 1px solid rgba(32, 227, 255, 0.3);
}
.feature-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.feature-card p { margin: 0; color: var(--color-text-muted); font-size: 14px; line-height: 1.55; }

/* Pipeline story section */
.welcome-pipeline-story {
  max-width: var(--welcome-max);
  width: 100%;
  margin: 0 auto;
  padding: var(--welcome-space-compact) var(--welcome-gutter) var(--welcome-space-regular);
  text-align: left;
}

.welcome-pipeline-story .eyebrow {
  margin: 0 0 10px;
  justify-content: flex-start;
}

.welcome-pipeline-story h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.1vw, 38px);
  letter-spacing: -0.02em;
}

.welcome-pipeline-intro {
  margin: 0 0 22px;
  max-width: 52ch;
  color: #b7bfd2;
  font-size: 14px;
  line-height: 1.5;
}

.pipeline-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.pipeline-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 88px;
}
.pipeline-rail-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(107, 125, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  min-width: 0;
}
.pipeline-rail-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #07101c;
  background: linear-gradient(135deg, #6fdfff, #6b7dff);
  flex: 0 0 auto;
}
.pipeline-rail-label {
  font-size: 12px;
  font-weight: 600;
  color: #c4d2eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pipeline-stage-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  text-align: left;
  align-items: stretch;
}
.pipeline-stage-grid .pipeline-stage-card--1 { grid-column: 1 / span 4; }
.pipeline-stage-grid .pipeline-stage-card--2 { grid-column: 5 / span 4; }
.pipeline-stage-grid .pipeline-stage-card--3 { grid-column: 9 / span 4; }
.pipeline-stage-grid .pipeline-stage-card--4 { grid-column: 3 / span 4; margin-top: 8px; }
.pipeline-stage-grid .pipeline-stage-card--5 { grid-column: 7 / span 4; margin-top: 8px; }

.pipeline-stage-card {
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(13, 21, 37, 0.92), rgba(10, 16, 29, 0.9));
  border: 1px solid rgba(107, 125, 255, 0.22);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.pipeline-stage-card:hover {
  transform: translateY(-2px);
  border-color: rgba(32, 227, 255, 0.45);
  box-shadow: 0 8px 28px rgba(32, 227, 255, 0.1);
}

.pipeline-stage-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.pipeline-stage-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9cecff;
  border: 1px solid rgba(32, 227, 255, 0.34);
  background: rgba(32, 227, 255, 0.1);
  font-size: 13px;
}

.pipeline-stage-head h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.pipeline-stage-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.welcome-pipeline-note {
  margin: 18px auto 0;
  max-width: 68ch;
  color: #9facc6;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.welcome-pipeline-note i {
  color: #4ade80;
}

.welcome-pipeline-cta {
  margin-top: 24px;
  justify-content: center;
}

/* Steps section */
.welcome-steps {
  max-width: 980px; margin: 0 auto;
  padding: var(--welcome-space-compact) var(--welcome-gutter) calc(var(--welcome-space-regular) + 16px);
  text-align: center;
}
.welcome-steps h2 {
  margin: 0 0 40px;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
}
.step-list {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  gap: 14px;
  text-align: left;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 18px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(107, 125, 255, 0.18);
  position: relative;
}
.step::after {
  content: "";
  position: absolute;
  top: 24px;
  right: -14px;
  width: 14px;
  height: 1px;
  background: rgba(107, 125, 255, 0.45);
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #22d3ee, #6b7dff);
  color: #06070d;
  font-weight: 800;
  font-size: 18px;
}
.step--3::after { display: none; }
.step strong { display: block; font-size: 16px; margin-bottom: 4px; }
.step p { margin: 0; color: var(--color-text-muted); font-size: 14px; }
.welcome-steps-cta {
  justify-content: center;
  margin-top: 24px;
}

.welcome-trust-strip {
  max-width: var(--welcome-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--welcome-gutter) var(--welcome-space-compact);
}
.welcome-trust-strip p {
  margin: 0 0 14px;
  color: var(--color-text-muted);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.trust-strip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.trust-item {
  border: 1px solid rgba(107, 125, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
  color: #c7d0e6;
  font-size: 13px;
}

.welcome-problem-solution {
  max-width: var(--welcome-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--welcome-gutter) var(--welcome-space-compact);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 16px;
  align-items: stretch;
}
.problem-card,
.solution-card {
  border-radius: 16px;
  border: 1px solid rgba(107, 125, 255, 0.22);
  background: linear-gradient(180deg, rgba(16, 26, 43, 0.86), rgba(11, 18, 31, 0.9));
  padding: 24px;
  position: relative;
}
.problem-card::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(107, 125, 255, 0.4), transparent);
}
.problem-card h2,
.solution-card h2 {
  margin: 0 0 16px;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.02em;
}
.problem-list,
.solution-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.problem-list li,
.solution-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #b9c3d9;
  font-size: 14px;
  line-height: 1.5;
}
.problem-list i,
.solution-list i {
  color: #4ade80;
  margin-top: 2px;
}

.welcome-showcase {
  max-width: var(--welcome-max);
  width: 100%;
  margin: 0 auto;
  padding: var(--welcome-space-compact) var(--welcome-gutter) var(--welcome-space-regular);
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  align-items: start;
  gap: 24px;
}
.welcome-showcase--offset .showcase-copy {
  padding-top: 18px;
}
.showcase-visual .demo-card {
  animation: none;
  transform: translateY(12px);
}
.showcase-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.02em;
}
.showcase-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.showcase-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #bdc7dc;
  line-height: 1.55;
}
.showcase-list i {
  color: var(--color-primary);
  margin-top: 3px;
}

.welcome-testimonials,
.welcome-pricing,
.welcome-faq {
  max-width: var(--welcome-max);
  width: 100%;
  margin: 0 auto;
  padding: var(--welcome-space-compact) var(--welcome-gutter) var(--welcome-space-regular);
  text-align: center;
}
.welcome-testimonials h2,
.welcome-pricing h2,
.welcome-faq h2 {
  margin: 0 0 30px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.02em;
}
.welcome-testimonials,
.welcome-pricing {
  text-align: left;
}
.welcome-testimonials .eyebrow,
.welcome-pricing .eyebrow {
  justify-content: flex-start;
}
.welcome-testimonials h2,
.welcome-pricing h2 {
  max-width: 24ch;
}
.welcome-faq {
  text-align: center;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  text-align: left;
}
.testimonial-grid .testimonial-card--1 { grid-column: span 7; min-height: 190px; }
.testimonial-grid .testimonial-card--2,
.testimonial-grid .testimonial-card--3 { grid-column: span 5; }
.testimonial-card {
  border: 1px solid rgba(107, 125, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 18px;
}
.testimonial-quote {
  margin: 0 0 14px;
  color: #d4ddf0;
  line-height: 1.55;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.testimonial-author {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
}
.testimonial-role {
  margin: 4px 0 0;
  color: var(--color-text-muted);
  font-size: 12px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  text-align: left;
  align-items: stretch;
}
.pricing-grid .pricing-card:nth-child(1) { grid-column: span 5; }
.pricing-grid .pricing-card:nth-child(2) { grid-column: span 7; transform: translateY(-8px); }
.pricing-card {
  border: 1px solid rgba(107, 125, 255, 0.24);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(16, 26, 43, 0.86), rgba(11, 18, 31, 0.9));
  padding: 20px;
}
.pricing-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
}
.pricing-price {
  margin: 0 0 14px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.pricing-price span {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-left: 6px;
  font-weight: 500;
}
.pricing-card ul {
  margin: 0 0 16px;
  padding: 0 0 0 18px;
  display: grid;
  gap: 6px;
  color: #c3cce1;
  font-size: 14px;
}
.pricing-card li {
  line-height: 1.45;
}
.pricing-card-featured {
  border-color: rgba(32, 227, 255, 0.38);
  box-shadow: 0 10px 34px rgba(32, 227, 255, 0.12);
}
.pricing-badge {
  margin: 0 0 10px;
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(32, 227, 255, 0.12);
  border: 1px solid rgba(32, 227, 255, 0.3);
  color: #9cecff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  display: grid;
  gap: 10px;
}
.faq-item {
  border: 1px solid rgba(107, 125, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 14px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  list-style: none; /* Hide marker in Firefox/Chromium consistently */
}
.faq-item p {
  margin: 10px 0 0;
  color: var(--color-text-muted);
  line-height: 1.55;
  font-size: 14px;
}

.welcome-final-cta {
  max-width: 1080px;
  width: calc(100% - 80px);
  margin: 0 auto var(--welcome-space-compact);
  padding: 34px 28px;
  text-align: center;
  border-radius: 18px;
  border: 1px solid rgba(32, 227, 255, 0.32);
  background:
    radial-gradient(900px 220px at 50% -20%, rgba(32, 227, 255, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(14, 24, 40, 0.95), rgba(10, 17, 30, 0.95));
}
.welcome-final-cta h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.02em;
}
.welcome-final-cta p {
  margin: 0 0 18px;
  color: #b8c2d7;
  font-size: 15px;
}

/* Phase 5 polish: interaction consistency + accessibility. */
.trust-item,
.problem-card,
.solution-card,
.testimonial-card,
.pricing-card,
.faq-item {
  transition:
    transform var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-med) var(--ease-out);
}
.trust-item:hover,
.problem-card:hover,
.solution-card:hover,
.testimonial-card:hover,
.pricing-card:hover {
  transform: translateY(-2px);
  border-color: rgba(32, 227, 255, 0.34);
}
.faq-item:hover {
  border-color: rgba(32, 227, 255, 0.32);
  background: rgba(32, 227, 255, 0.04);
}
.faq-item[open] {
  border-color: rgba(32, 227, 255, 0.4);
  background: rgba(32, 227, 255, 0.05);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--color-primary);
  font-weight: 700;
}
.faq-item[open] summary::after {
  content: "−";
}

.welcome-page a:focus-visible,
.welcome-page button:focus-visible,
.faq-item summary:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(6, 7, 15, 1),
    0 0 0 4px rgba(34, 227, 255, 0.55);
  border-radius: 10px;
}

.welcome-nav,
.welcome-trust-strip,
.welcome-problem-solution,
.welcome-features,
.welcome-pipeline-story,
.welcome-steps,
.welcome-showcase,
.welcome-testimonials,
.welcome-pricing,
.welcome-faq {
  position: relative;
}
.welcome-features::before,
.welcome-showcase::before,
.welcome-pricing::before {
  content: "";
  position: absolute;
  left: 40px;
  right: 40px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(107, 125, 255, 0.24), transparent);
}

.welcome-footer {
  border-top: 1px solid rgba(107, 125, 255, 0.12);
  padding: 28px 40px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--color-text-muted);
}
.welcome-footer .auth-brand { margin: 0; }
.welcome-footer .auth-brand .cb-logo-mark { width: 24px; height: 24px; }
.welcome-footer .auth-brand .cb-logo-wordmark { font-size: 20px; }
.welcome-footer .auth-brand .cb-logo-tagline {
  font-size: 8px;
  letter-spacing: 0.28em;
}

@media (max-width: 960px) {
  .welcome-page {
    --welcome-gutter: 20px;
    --welcome-space-compact: 36px;
    --welcome-space-regular: 60px;
  }
  .welcome-hero { grid-template-columns: 1fr; gap: 24px; padding: 34px var(--welcome-gutter) 48px; min-height: auto; }
  /* Mobile hierarchy: headline first, visual second, centered lockup. */
  .welcome-hero-copy {
    order: 0;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
  }
  .welcome-hero-copy .hero-pill { margin-left: auto; margin-right: auto; }
  .welcome-lead { margin-left: auto; margin-right: auto; }
  .welcome-cta { justify-content: center; }
  .hero-proof-strip {
    margin-left: auto;
    margin-right: auto;
    max-width: 520px;
  }
  .hero-chip-strip { justify-content: center; }
  .welcome-hero-art {
    order: 1;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
    padding-left: 0;
    justify-content: center;
  }
  .welcome-hero-art::before {
    display: none;
  }
  .welcome-hero-art .demo-card {
    transform: perspective(1100px) rotateY(-4deg) rotateX(1deg) translateY(2px);
    animation: none;
    box-shadow:
      0 26px 70px rgba(0, 0, 0, 0.55),
      0 0 60px rgba(32, 227, 255, 0.1);
  }
  .trust-strip-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .welcome-problem-solution { grid-template-columns: 1fr; }
  .problem-card::after { display: none; }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(0, auto);
    gap: 12px;
  }
  .feature-grid .feature-card--1,
  .feature-grid .feature-card--2,
  .feature-grid .feature-card--3,
  .feature-grid .feature-card--4,
  .feature-grid .feature-card--5 { grid-column: span 1; transform: none; min-height: 0; }
  .feature-grid .feature-card--6 { grid-column: span 2; grid-template-columns: 1fr; gap: 8px; min-height: 0; }
  .pipeline-layout {
    grid-template-columns: minmax(170px, 210px) minmax(0, 1fr);
    gap: 10px;
  }
  .pipeline-stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline-stage-grid .pipeline-stage-card--1,
  .pipeline-stage-grid .pipeline-stage-card--2,
  .pipeline-stage-grid .pipeline-stage-card--3,
  .pipeline-stage-grid .pipeline-stage-card--4,
  .pipeline-stage-grid .pipeline-stage-card--5 { grid-column: span 1; margin-top: 0; }
  .pipeline-rail { top: 72px; }
  .step-list { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .welcome-showcase { grid-template-columns: 1fr; }
  .showcase-visual .demo-card { transform: none; }
  .testimonial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonial-grid .testimonial-card--1,
  .testimonial-grid .testimonial-card--2,
  .testimonial-grid .testimonial-card--3 { grid-column: span 1; min-height: 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid .pricing-card:nth-child(n) { grid-column: span 1; }
  .pricing-grid .pricing-card:nth-child(2) { transform: none; }
  .welcome-final-cta { width: calc(100% - 40px); margin-bottom: 44px; }
  .welcome-features::before,
  .welcome-showcase::before,
  .welcome-pricing::before {
    left: var(--welcome-gutter);
    right: var(--welcome-gutter);
  }
  .welcome-nav { padding: 12px 16px; }
  .welcome-nav-actions {
    padding: 4px;
    border-radius: 12px;
  }
  .welcome-nav-actions .btn-ghost { display: none; }
  .welcome-nav-actions .welcome-nav-signin { display: inline-flex; }
  .hero-proof-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-chip-strip { gap: 7px; }
  .welcome-features,
  .welcome-pipeline-story,
  .welcome-testimonials,
  .welcome-pricing { text-align: left; }
  .welcome-features .eyebrow,
  .welcome-pipeline-story .eyebrow,
  .welcome-testimonials .eyebrow,
  .welcome-pricing .eyebrow { justify-content: flex-start; }
}

/* Feature grid: smoother wrapping between tablet and phone widths. */
@media (max-width: 900px) and (min-width: 621px) {
  .feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  .feature-grid .feature-card--6 { grid-column: 1 / -1; }

  /* Hero mockup sizing/centering tuned for small tablets. */
  .welcome-hero-art {
    max-width: 100%;
    width: 100%;
    justify-content: center;
  }
  .welcome-hero-art .demo-card {
    width: min(100%, 560px);
    margin: 0 auto;
    transform: perspective(1050px) rotateY(-3deg) rotateX(1deg) translateY(1px);
  }
  .welcome-hero-art::before {
    display: none;
  }
}

@media (max-width: 620px) {
  .welcome-page {
    --welcome-gutter: 12px;
    --welcome-space-compact: 30px;
    --welcome-space-regular: 46px;
  }
  .trust-strip-list { grid-template-columns: 1fr; }
  .feature-grid,
  .pipeline-stage-grid,
  .testimonial-grid { grid-template-columns: 1fr; }
  .pipeline-layout {
    grid-template-columns: minmax(94px, 112px) minmax(0, 1fr);
    gap: 8px;
  }
  .pipeline-rail {
    position: static;
    gap: 8px;
  }
  .pipeline-rail-item {
    border-radius: 10px;
    padding: 8px 7px;
    gap: 6px;
  }
  .pipeline-rail-num {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }
  .pipeline-rail-label {
    font-size: 11px;
    line-height: 1.2;
  }
  .feature-grid .feature-card--6,
  .testimonial-grid .testimonial-card--1 { grid-column: span 1; }
  .welcome-hero {
    gap: 18px;
    padding-top: 26px;
    padding-bottom: 34px;
  }
  .hero-proof-strip {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .hero-chip-strip { display: grid; grid-template-columns: 1fr; gap: 7px; }
  .welcome-hero-copy h1 {
    font-size: clamp(30px, 9vw, 38px);
    margin-bottom: 10px;
  }
  .welcome-lead {
    font-size: 16px;
    margin-bottom: 12px;
  }
  .hero-chip-item { text-align: center; }
  /* Mobile content reduction: keep the view clean and less text-dense. */
  .hero-proof-strip,
  .hero-chip-strip,
  .welcome-trust-strip,
  .welcome-pipeline-intro,
  .testimonial-role {
    display: none !important;
  }
  .welcome-features .eyebrow,
  .welcome-pipeline-story .eyebrow,
  .welcome-showcase .eyebrow,
  .welcome-testimonials .eyebrow,
  .welcome-pricing .eyebrow,
  .welcome-faq .eyebrow {
    display: none;
  }
  .welcome-features h2,
  .welcome-pipeline-story h2,
  .welcome-showcase h2,
  .welcome-testimonials h2,
  .welcome-pricing h2,
  .welcome-faq h2 {
    margin-bottom: 18px;
    max-width: none;
  }
  .welcome-hero-art .demo-card {
    transform: none;
    animation: none;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55), 0 0 44px rgba(32, 227, 255, 0.08);
  }
  .demo-card {
    border-radius: 14px;
  }
  .demo-card-body {
    padding: 14px;
    gap: 10px;
  }
  .demo-kpis {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .demo-kpi {
    padding: 10px 12px;
  }
  .demo-match {
    font-size: 12px;
    gap: 8px;
    padding: 9px 10px;
  }
  .demo-chip {
    font-size: 12px;
    padding: 8px 10px;
  }
  .welcome-nav-actions {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }
  .welcome-nav-actions .btn-primary,
  .welcome-nav-actions .welcome-nav-signin {
    flex: 1 1 auto;
    justify-content: center;
  }
  .welcome-nav-actions .btn-primary i {
    display: none;
  }
  .welcome-footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 22px var(--welcome-gutter);
  }
  .welcome-final-cta {
    width: calc(100% - 24px);
    padding: 24px 16px;
  }
  .welcome-final-cta .welcome-cta-primary {
    width: 100%;
    justify-content: center;
  }
  .pricing-card .btn-primary,
  .pricing-card .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-page *,
  .welcome-page *::before,
  .welcome-page *::after {
    animation: none !important;
    transition-duration: 0ms !important;
  }
  .welcome-hero-art .demo-card {
    transform: none !important;
  }
}

/* ------ Landing v3 redesign override ---------------------------------- */
.welcome-page-v3 {
  --lp-max: 1200px;
  --lp-gutter: clamp(14px, 2.8vw, 40px);
  --lp-space-1: clamp(28px, 5vw, 56px);
  --lp-space-2: clamp(40px, 7vw, 88px);
}

.welcome-page-v3 .welcome-nav,
.welcome-page-v3 .welcome-hero,
.welcome-page-v3 .welcome-trust-strip,
.welcome-page-v3 .welcome-problem-solution,
.welcome-page-v3 .welcome-features,
.welcome-page-v3 .welcome-pipeline-story,
.welcome-page-v3 .welcome-showcase,
.welcome-page-v3 .welcome-faq,
.welcome-page-v3 .welcome-final-cta,
.welcome-page-v3 .welcome-footer {
  max-width: var(--lp-max);
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 2 * var(--lp-gutter));
}

.welcome-page-v3 .welcome-nav {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(107, 125, 255, 0.18);
}

.welcome-page-v3 .welcome-hero {
  min-height: auto;
  padding: var(--lp-space-1) 0 var(--lp-space-2);
  grid-template-columns: minmax(0, 1fr) minmax(460px, 0.96fr);
  align-items: center;
  gap: clamp(22px, 3.2vw, 42px);
}
.welcome-page-v3 .welcome-hero-copy h1 {
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.06;
  max-width: 12.5ch;
}
.welcome-page-v3 .welcome-lead {
  max-width: 42ch;
  color: #ccd6eb;
}
.welcome-page-v3 .hero-proof-strip {
  max-width: 480px;
}
.welcome-page-v3 .hero-proof-item {
  border-bottom-color: rgba(107, 125, 255, 0.45);
}
.welcome-page-v3 .welcome-hero-art {
  justify-content: flex-end;
  padding-left: 0;
}
.welcome-page-v3 .welcome-hero-art .demo-card {
  width: min(100%, 620px);
  transform: none;
  animation: none;
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.58),
    0 0 70px rgba(32, 227, 255, 0.1);
}
.welcome-page-v3 .welcome-hero-art::before {
  display: none;
}

.welcome-page-v3 .welcome-trust-strip {
  padding-bottom: 8px;
}
.welcome-page-v3 .welcome-trust-strip p {
  display: none;
}
.welcome-page-v3 .trust-strip-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.welcome-page-v3 .welcome-problem-solution {
  padding-top: var(--lp-space-1);
  padding-bottom: var(--lp-space-1);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}
.welcome-page-v3 .problem-card,
.welcome-page-v3 .solution-card {
  min-height: 100%;
  padding: clamp(18px, 2vw, 26px);
}
.welcome-page-v3 .problem-card::after {
  display: none;
}

.welcome-page-v3 .welcome-features {
  padding-top: var(--lp-space-1);
  padding-bottom: var(--lp-space-1);
}
.welcome-page-v3 .welcome-features h2 {
  max-width: 20ch;
}
.welcome-page-v3 .feature-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.welcome-page-v3 .feature-grid .feature-card--1 { grid-column: span 6; min-height: 0; }
.welcome-page-v3 .feature-grid .feature-card--2 { grid-column: span 6; min-height: 0; }
.welcome-page-v3 .feature-grid .feature-card--3,
.welcome-page-v3 .feature-grid .feature-card--4,
.welcome-page-v3 .feature-grid .feature-card--5 { grid-column: span 4; transform: none; }
.welcome-page-v3 .feature-grid .feature-card--6 {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: start;
  gap: 12px;
}

.welcome-page-v3 .welcome-pipeline-story {
  padding-top: var(--lp-space-1);
  padding-bottom: var(--lp-space-1);
}
.welcome-page-v3 .welcome-pipeline-intro {
  display: none;
}
.welcome-page-v3 .pipeline-layout {
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: 14px;
}
.welcome-page-v3 .pipeline-rail {
  position: sticky;
  top: 94px;
}
.welcome-page-v3 .pipeline-stage-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.welcome-page-v3 .pipeline-stage-grid .pipeline-stage-card--1,
.welcome-page-v3 .pipeline-stage-grid .pipeline-stage-card--2,
.welcome-page-v3 .pipeline-stage-grid .pipeline-stage-card--3,
.welcome-page-v3 .pipeline-stage-grid .pipeline-stage-card--4,
.welcome-page-v3 .pipeline-stage-grid .pipeline-stage-card--5 {
  grid-column: span 1;
  margin-top: 0;
}

.welcome-page-v3 .welcome-showcase {
  padding-top: var(--lp-space-1);
  padding-bottom: var(--lp-space-1);
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  align-items: center;
}
.welcome-page-v3 .showcase-copy { order: 0; padding-top: 0; }
.welcome-page-v3 .showcase-visual { order: 1; }
.welcome-page-v3 .showcase-visual .demo-card {
  transform: none;
  animation: none;
}

.welcome-page-v3 .welcome-split-band {
  max-width: var(--lp-max);
  margin: 0 auto;
  width: calc(100% - 2 * var(--lp-gutter));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  padding: var(--lp-space-1) 0;
}
.welcome-page-v3 .welcome-split-band .welcome-testimonials,
.welcome-page-v3 .welcome-split-band .welcome-pricing {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.welcome-page-v3 .welcome-split-band .testimonial-grid {
  grid-template-columns: 1fr;
}
.welcome-page-v3 .welcome-split-band .testimonial-grid .testimonial-card--1,
.welcome-page-v3 .welcome-split-band .testimonial-grid .testimonial-card--2,
.welcome-page-v3 .welcome-split-band .testimonial-grid .testimonial-card--3 {
  grid-column: span 1;
}
.welcome-page-v3 .welcome-split-band .pricing-grid {
  grid-template-columns: 1fr;
}
.welcome-page-v3 .welcome-split-band .pricing-grid .pricing-card:nth-child(2) {
  transform: none;
}

.welcome-page-v3 .welcome-faq {
  padding-top: var(--lp-space-1);
  padding-bottom: var(--lp-space-1);
}
.welcome-page-v3 .faq-list {
  max-width: 760px;
}

.welcome-page-v3 .welcome-final-cta {
  margin-top: var(--lp-space-1);
  margin-bottom: var(--lp-space-1);
  padding: clamp(22px, 3vw, 40px);
  width: calc(100% - 2 * var(--lp-gutter));
}

.welcome-page-v3 .welcome-footer {
  width: calc(100% - 2 * var(--lp-gutter));
  padding: 18px 0 28px;
}

@media (max-width: 1024px) {
  .welcome-page-v3 .welcome-nav-actions .btn-ghost { display: none; }
  .welcome-page-v3 .welcome-nav-actions .welcome-nav-signin { display: inline-flex; }
}

@media (max-width: 900px) {
  .welcome-page-v3 {
    --lp-gutter: 16px;
  }
  .welcome-page-v3 .welcome-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 26px;
  }
  .welcome-page-v3 .welcome-hero-copy {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
  }
  .welcome-page-v3 .welcome-hero-copy h1,
  .welcome-page-v3 .welcome-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .welcome-page-v3 .welcome-hero-copy h1 {
    max-width: 14ch;
  }
  .welcome-page-v3 .welcome-cta { justify-content: center; }
  .welcome-page-v3 .hero-proof-strip {
    margin-left: auto;
    margin-right: auto;
  }
  .welcome-page-v3 .welcome-hero-art {
    justify-content: center;
  }
  .welcome-page-v3 .trust-strip-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .welcome-page-v3 .welcome-problem-solution,
  .welcome-page-v3 .welcome-showcase,
  .welcome-page-v3 .welcome-split-band {
    grid-template-columns: 1fr;
  }
  .welcome-page-v3 .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .welcome-page-v3 .feature-grid .feature-card--1,
  .welcome-page-v3 .feature-grid .feature-card--2,
  .welcome-page-v3 .feature-grid .feature-card--3,
  .welcome-page-v3 .feature-grid .feature-card--4,
  .welcome-page-v3 .feature-grid .feature-card--5 {
    grid-column: span 1;
  }
  .welcome-page-v3 .feature-grid .feature-card--6 {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }
  .welcome-page-v3 .pipeline-layout {
    grid-template-columns: 1fr;
  }
  .welcome-page-v3 .pipeline-rail {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .welcome-page-v3 {
    --lp-gutter: 12px;
  }
  .welcome-page-v3 .welcome-nav {
    margin-top: 6px;
    padding: 8px;
  }
  .welcome-page-v3 .welcome-nav-actions {
    width: 100%;
    justify-content: space-between;
  }
  .welcome-page-v3 .welcome-nav-actions .btn-primary,
  .welcome-page-v3 .welcome-nav-actions .welcome-nav-signin {
    flex: 1 1 auto;
    justify-content: center;
  }
  .welcome-page-v3 .welcome-nav-actions .btn-primary i { display: none; }
  .welcome-page-v3 .welcome-hero {
    padding-top: 18px;
    padding-bottom: 24px;
    gap: 16px;
  }
  .welcome-page-v3 .hero-proof-strip,
  .welcome-page-v3 .welcome-trust-strip,
  .welcome-page-v3 .welcome-features .eyebrow,
  .welcome-page-v3 .welcome-pipeline-story .eyebrow,
  .welcome-page-v3 .welcome-showcase .eyebrow,
  .welcome-page-v3 .welcome-testimonials .eyebrow,
  .welcome-page-v3 .welcome-pricing .eyebrow,
  .welcome-page-v3 .welcome-faq .eyebrow,
  .welcome-page-v3 .welcome-pipeline-note {
    display: none !important;
  }
  .welcome-page-v3 .feature-grid,
  .welcome-page-v3 .pipeline-stage-grid,
  .welcome-page-v3 .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .welcome-page-v3 .feature-grid .feature-card--6 {
    grid-column: span 1;
  }
  .welcome-page-v3 .pipeline-rail {
    grid-template-columns: 1fr;
  }
  .welcome-page-v3 .welcome-footer {
    text-align: center;
    flex-direction: column;
    gap: 8px;
  }
}

/* ------ Landing v4 full customization --------------------------------- */
.welcome-page-v4 {
  --v4-max: 1180px;
  --v4-gutter: clamp(14px, 2.6vw, 34px);
  --v4-space: clamp(34px, 6vw, 76px);
}

.welcome-page-v4 .welcome-nav,
.welcome-page-v4 .welcome-hero,
.welcome-page-v4 .welcome-trust-strip,
.welcome-page-v4 .welcome-services,
.welcome-page-v4 .welcome-how,
.welcome-page-v4 .welcome-results,
.welcome-page-v4 .welcome-social-proof,
.welcome-page-v4 .welcome-pricing,
.welcome-page-v4 .welcome-faq,
.welcome-page-v4 .welcome-final-cta,
.welcome-page-v4 .welcome-footer {
  max-width: var(--v4-max);
  width: calc(100% - 2 * var(--v4-gutter));
  margin-left: auto;
  margin-right: auto;
}

.welcome-page-v4 .welcome-nav {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 14px;
}

.welcome-page-v4 .welcome-hero {
  min-height: auto;
  padding: calc(var(--v4-space) - 10px) 0 var(--v4-space);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 38px);
}
.welcome-page-v4 .welcome-hero-copy h1 {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
  max-width: 11ch;
}
.welcome-page-v4 .welcome-lead {
  max-width: 44ch;
  color: #c8d3ea;
}
.welcome-page-v4 .hero-proof-strip {
  max-width: 460px;
}
.welcome-page-v4 .welcome-hero-art {
  justify-content: flex-end;
}
.welcome-page-v4 .welcome-hero-art::before {
  display: none;
}
.welcome-page-v4 .welcome-hero-art .demo-card {
  width: min(100%, 620px);
  transform: none;
  animation: none;
}

.welcome-page-v4 .welcome-trust-strip {
  padding: 0 0 calc(var(--v4-space) - 24px);
}
.welcome-page-v4 .welcome-trust-strip p {
  display: none;
}
.welcome-page-v4 .trust-strip-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.welcome-page-v4 .welcome-services,
.welcome-page-v4 .welcome-how,
.welcome-page-v4 .welcome-results,
.welcome-page-v4 .welcome-social-proof,
.welcome-page-v4 .welcome-pricing,
.welcome-page-v4 .welcome-faq {
  padding-top: var(--v4-space);
  padding-bottom: calc(var(--v4-space) - 8px);
}

.welcome-page-v4 .welcome-services-head,
.welcome-page-v4 .welcome-how-head {
  margin-bottom: 24px;
}
.welcome-page-v4 .welcome-services h2,
.welcome-page-v4 .welcome-how h2,
.welcome-page-v4 .welcome-results h2,
.welcome-page-v4 .welcome-pricing h2,
.welcome-page-v4 .welcome-faq h2 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(28px, 3.8vw, 44px);
  letter-spacing: -0.02em;
}

.welcome-page-v4 .feature-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.welcome-page-v4 .feature-grid .feature-card--1,
.welcome-page-v4 .feature-grid .feature-card--2 { grid-column: span 6; min-height: 0; }
.welcome-page-v4 .feature-grid .feature-card--3,
.welcome-page-v4 .feature-grid .feature-card--4,
.welcome-page-v4 .feature-grid .feature-card--5 { grid-column: span 4; transform: none; }
.welcome-page-v4 .feature-grid .feature-card--6 { grid-column: span 12; grid-template-columns: 44px 1fr; }

.welcome-page-v4 .step-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.welcome-page-v4 .step::after {
  display: none;
}

.welcome-page-v4 .welcome-results {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 16px;
  align-items: center;
}
.welcome-page-v4 .welcome-results-copy .eyebrow {
  justify-content: flex-start;
}
.welcome-page-v4 .showcase-list {
  margin-top: 18px;
}
.welcome-page-v4 .welcome-results-visual .demo-card {
  transform: none;
  animation: none;
}

.welcome-page-v4 .welcome-social-proof .welcome-testimonials {
  max-width: none;
  width: 100%;
  padding: 0;
}
.welcome-page-v4 .welcome-social-proof .testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.welcome-page-v4 .welcome-social-proof .testimonial-grid .testimonial-card--1,
.welcome-page-v4 .welcome-social-proof .testimonial-grid .testimonial-card--2,
.welcome-page-v4 .welcome-social-proof .testimonial-grid .testimonial-card--3 {
  grid-column: span 1;
}

.welcome-page-v4 .welcome-pricing .pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.welcome-page-v4 .welcome-pricing .pricing-grid .pricing-card:nth-child(1),
.welcome-page-v4 .welcome-pricing .pricing-grid .pricing-card:nth-child(2) {
  grid-column: span 1;
  transform: none;
}

.welcome-page-v4 .welcome-faq .faq-list {
  max-width: 760px;
}

.welcome-page-v4 .welcome-final-cta {
  margin-top: var(--v4-space);
  margin-bottom: var(--v4-space);
}

.welcome-page-v4 .welcome-footer {
  width: calc(100% - 2 * var(--v4-gutter));
  padding: 20px 0 30px;
}

@media (max-width: 1024px) {
  .welcome-page-v4 .welcome-nav-actions .btn-ghost { display: none; }
  .welcome-page-v4 .welcome-nav-actions .welcome-nav-signin { display: inline-flex; }
}

@media (max-width: 900px) {
  .welcome-page-v4 .welcome-hero,
  .welcome-page-v4 .welcome-results {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .welcome-page-v4 .welcome-hero-copy {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
  }
  .welcome-page-v4 .welcome-hero-copy h1,
  .welcome-page-v4 .welcome-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .welcome-page-v4 .welcome-cta { justify-content: center; }
  .welcome-page-v4 .hero-proof-strip { margin-left: auto; margin-right: auto; }
  .welcome-page-v4 .welcome-hero-art { justify-content: center; }
  .welcome-page-v4 .trust-strip-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .welcome-page-v4 .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .welcome-page-v4 .feature-grid .feature-card--1,
  .welcome-page-v4 .feature-grid .feature-card--2,
  .welcome-page-v4 .feature-grid .feature-card--3,
  .welcome-page-v4 .feature-grid .feature-card--4,
  .welcome-page-v4 .feature-grid .feature-card--5 { grid-column: span 1; }
  .welcome-page-v4 .feature-grid .feature-card--6 { grid-column: span 2; grid-template-columns: 1fr; }
  .welcome-page-v4 .step-list { grid-template-columns: 1fr; }
  .welcome-page-v4 .welcome-social-proof .testimonial-grid,
  .welcome-page-v4 .welcome-pricing .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .welcome-page-v4 .welcome-nav {
    margin-top: 6px;
    padding: 8px;
  }
  .welcome-page-v4 .welcome-nav-actions {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }
  .welcome-page-v4 .welcome-nav-actions .btn-primary,
  .welcome-page-v4 .welcome-nav-actions .welcome-nav-signin {
    flex: 1 1 auto;
    justify-content: center;
  }
  .welcome-page-v4 .welcome-nav-actions .btn-primary i { display: none; }
  .welcome-page-v4 .welcome-hero {
    padding-top: 24px;
    padding-bottom: 24px;
    gap: 14px;
  }
  .welcome-page-v4 .hero-proof-strip,
  .welcome-page-v4 .welcome-trust-strip,
  .welcome-page-v4 .welcome-services .eyebrow,
  .welcome-page-v4 .welcome-how .eyebrow,
  .welcome-page-v4 .welcome-results .eyebrow,
  .welcome-page-v4 .welcome-testimonials .eyebrow,
  .welcome-page-v4 .welcome-pricing .eyebrow,
  .welcome-page-v4 .welcome-faq .eyebrow {
    display: none !important;
  }
  .welcome-page-v4 .feature-grid,
  .welcome-page-v4 .testimonial-grid { grid-template-columns: 1fr; }
  .welcome-page-v4 .feature-grid .feature-card--6 { grid-column: span 1; }
  .welcome-page-v4 .welcome-footer {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

/* ------ Onboarding wizard --------------------------------------------- */
.ob-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 24px;
  background:
    radial-gradient(1000px 500px at 10% 10%, rgba(90, 96, 255, 0.16), transparent 60%),
    radial-gradient(900px 450px at 90% 80%, rgba(34, 211, 238, 0.14), transparent 60%),
    linear-gradient(180deg, #06070d 0%, #090b14 100%);
}
.ob-card {
  width: min(640px, 100%);
  padding: 36px 36px 28px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(15, 23, 38, 0.94), rgba(11, 17, 30, 0.9));
  border: 1px solid rgba(107, 125, 255, 0.3);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 60px rgba(32, 227, 255, 0.08);
}
.ob-brand { margin-bottom: 20px; }

.onboarding-progress {
  display: flex; align-items: center; justify-content: center;
  gap: 4px;
  margin-bottom: 28px;
}
.progress-step {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 600;
}
.progress-step .dot {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(107, 125, 255, 0.22);
  font-size: 12px;
  font-weight: 700;
}
.progress-step.active .dot {
  background: linear-gradient(135deg, #22d3ee, #6b7dff);
  color: #06070d; border-color: transparent;
  box-shadow: 0 0 18px rgba(32, 227, 255, 0.35);
}
.progress-step.active { color: var(--color-text); }
.progress-step.done .dot {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.4);
}
.progress-step.done { color: var(--color-text); }
.progress-line {
  flex: 0 0 28px; height: 1px;
  background: rgba(107, 125, 255, 0.3);
}

.ob-body h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.ob-body .welcome-lead {
  font-size: 14px;
  margin-bottom: 20px;
}
.ob-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.ob-field > span {
  font-size: 12px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.ob-field input,
.ob-field select,
.ob-field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(107, 125, 255, 0.22);
  color: var(--color-text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  resize: vertical;
}
.ob-field input:focus,
.ob-field select:focus,
.ob-field textarea:focus {
  outline: none;
  border-color: rgba(32, 227, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(32, 227, 255, 0.18);
}
.ob-row-2 {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
}
.chip-group {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chip-btn {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(107, 125, 255, 0.22);
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}
.chip-btn:hover { color: var(--color-text); border-color: rgba(32, 227, 255, 0.4); }
.chip-btn.is-active {
  background: linear-gradient(135deg, rgba(32, 227, 255, 0.2), rgba(107, 125, 255, 0.22));
  border-color: rgba(32, 227, 255, 0.55);
  color: var(--color-text);
  box-shadow: 0 0 0 2px rgba(32, 227, 255, 0.12);
}

.board-grid {
  display: grid;
  gap: 10px;
}
.board-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(107, 125, 255, 0.22);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.board-card.is-active {
  border-color: rgba(32, 227, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(32, 227, 255, 0.1);
  background: linear-gradient(135deg, rgba(32, 227, 255, 0.06), rgba(107, 125, 255, 0.06));
}
.board-card input[type="checkbox"] {
  margin-top: 2px;
  accent-color: #22d3ee;
}
.board-title { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.board-desc { color: var(--color-text-muted); font-size: 13px; margin-top: 2px; }

.ob-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(107, 125, 255, 0.15);
}
.ob-actions-right { display: inline-flex; gap: 10px; }
.ob-actions .btn-primary { padding: 0.7rem 1.05rem; }
.ob-actions .btn-ghost { padding: 0.55rem 0.85rem; }

/* Back link on auth card */
.auth-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 14px;
}
.auth-back:hover { color: var(--color-text); }

/* ------ Accessibility: focus rings + reduced motion ------------------- */
:focus-visible {
  outline: 2px solid rgba(32, 227, 255, 0.6) !important;
  outline-offset: 2px;
  border-radius: 6px;
}
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-ghost:focus-visible,
.nav-link:focus-visible,
.chip-btn:focus-visible,
.user-chip-btn:focus-visible,
.status-pill:focus-visible {
  box-shadow: 0 0 0 3px rgba(32, 227, 255, 0.3);
  outline: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .demo-card { animation: none; }
  .demo-chip::after { animation: none; }
}

/* ------ Mobile polish for topbar/sidebar/onboarding ------------------ */
@media (max-width: 1024px) {
  .onboarding-progress { gap: 2px; }
  .progress-line { flex-basis: 16px; }
  .ob-row-2 { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .topbar-actions { flex-wrap: wrap; }
  .status-pill-label { display: none; }
  .topbar-search-kbd { display: none; }
  .ob-card { padding: 24px 20px 20px; }
  .progress-label { display: none; }
  .welcome-nav-actions .btn-primary i { display: none; }
}

/* ------ Empty-state polish -------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 40px 32px;
  border: 1px dashed rgba(107, 125, 255, 0.3);
  border-radius: 18px;
  background: radial-gradient(600px 240px at 50% 0%, rgba(32, 227, 255, 0.05), transparent 60%);
}
.empty-state-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(32, 227, 255, 0.15), rgba(107, 125, 255, 0.2));
  border: 1px solid rgba(32, 227, 255, 0.3);
  color: #a4e7ff;
  font-size: 22px;
  margin-bottom: 16px;
}
.empty-state h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
.empty-state p {
  color: var(--color-text-muted);
  max-width: 420px;
  margin: 0 auto 18px;
  line-height: 1.55;
  font-size: 14px;
}
.empty-state-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* =============================================================================
 * Avatar-only user chip + rich dropdown + profile card
 * ========================================================================== */

/* Generic avatar badge — reused by the chip, the dropdown header, and the
   Profile card in Settings. Sizes: sm (24px), md (32px), lg (64px). */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #5a60ff 0%, #22d3ee 100%);
  color: #06070d;
  font-weight: 800;
  overflow: hidden;
  flex: none;
  user-select: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 4px 12px rgba(20, 24, 40, 0.4);
}
.avatar--sm { width: 24px; height: 24px; font-size: 11px; }
.avatar--md { width: 32px; height: 32px; font-size: 13px; letter-spacing: 0.02em; }
.avatar--lg { width: 64px; height: 64px; font-size: 22px; letter-spacing: 0.02em; }
.avatar--img { padding: 0; }
.avatar--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Compact avatar-only trigger in the topbar. */
.user-chip-btn--avatar-only {
  padding: 3px !important;
  border-radius: 999px !important;
  gap: 0 !important;
  width: 40px;
  height: 40px;
  justify-content: center;
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}
.user-chip-btn--avatar-only:hover {
  border-color: rgba(107, 215, 255, 0.45);
  transform: translateY(-1px);
}
.user-chip.is-open .user-chip-btn--avatar-only {
  border-color: rgba(107, 215, 255, 0.6);
  background: rgba(107, 215, 255, 0.08);
}

/* Rich dropdown — header row with large avatar + identity, plus menu items. */
.user-menu--rich {
  width: 280px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(12, 15, 24, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  display: grid;
  gap: 2px;
  z-index: 60;
  animation: userMenuEnter 140ms ease-out;
}
/* The HTML [hidden] attribute must win over our display:grid above so the
   dropdown truly stays closed until the avatar is clicked. */
.user-menu[hidden] { display: none !important; }
@keyframes userMenuEnter {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.user-menu-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(90, 96, 255, 0.08), rgba(34, 211, 238, 0.05));
  margin-bottom: 4px;
}
.user-menu-identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.user-menu-name {
  color: #f2f4fb;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-menu-email {
  color: #8b92a6;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-menu-plan {
  align-self: flex-start;
  margin-top: 2px;
  font-size: 11px;
  padding: 3px 8px;
}
.user-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 4px 4px;
}
.user-menu-item--danger { color: #ff9eae; }
.user-menu-item--danger:hover { background: rgba(244, 63, 94, 0.08); }
.user-menu-item--danger i { color: #ff9eae; }

.chip-sm {
  padding: 2px 8px;
  font-size: 11px;
  line-height: 1.4;
}

/* --- Profile card (Settings → Profile & avatar) ---------------------- */
.profile-card-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding: 6px 2px 2px;
}
.profile-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.profile-avatar-preview {
  width: 112px;
  height: 112px;
  font-size: 38px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.4), 0 12px 32px rgba(10, 14, 28, 0.6);
}
.profile-avatar-hint {
  color: var(--color-text-muted, #8b92a6);
  font-size: 12px;
  max-width: 140px;
  text-align: center;
  line-height: 1.45;
}
.profile-fields { display: grid; gap: 12px; }
.profile-fields label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-muted, #8b92a6);
}
.profile-fields input[type="text"],
.profile-fields input[type="url"],
.profile-fields input[type="number"],
.profile-fields textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text, #e6e9f2);
  font: inherit;
}
.profile-fields textarea {
  resize: vertical;
  min-height: 92px;
}
.profile-fields input[type="text"]:focus,
.profile-fields input[type="url"]:focus,
.profile-fields input[type="number"]:focus,
.profile-fields textarea:focus {
  border-color: rgba(107, 215, 255, 0.55);
  outline: none;
}
.avatar-dropzone {
  position: relative;
  border: 1px dashed rgba(107, 125, 255, 0.4);
  border-radius: 14px;
  padding: 16px;
  background: rgba(107, 125, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: center;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}
.avatar-dropzone:hover,
.avatar-dropzone.is-dragover {
  border-color: rgba(34, 211, 238, 0.7);
  background: rgba(34, 211, 238, 0.08);
}
.avatar-dropzone strong { font-size: 13px; color: var(--color-text, #e6e9f2); }
.avatar-dropzone span { color: var(--color-text-muted, #8b92a6); font-size: 12px; }
.avatar-dropzone input[type="file"] { display: none; }

.profile-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.profile-card-status {
  margin: 0;
  min-height: 18px;
  font-size: 12px;
  color: var(--color-text-muted, #8b92a6);
}
.profile-card-status.is-error { color: #ff9eae; }
.profile-card-status.is-success { color: #7fe7c4; }
.profile-card-status i { margin-right: 6px; }

#profile-section.is-highlighted {
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.55), 0 18px 50px rgba(34, 211, 238, 0.18);
  transition: box-shadow 400ms ease;
}

@media (max-width: 720px) {
  .profile-card-body { grid-template-columns: 1fr; }
  .profile-avatar-col { margin: 0 auto; }
  .user-menu--rich { width: 260px; }
}

/* =============================================================================
 * Dashboard — Phase A (momentum hero, KPI deltas, Next Best Actions, funnel,
 * cold-start ladder).
 * ========================================================================== */

/* ------ Momentum hero ---------------------------------------------------- */
.hero-panel--momentum {
  align-items: center;
  gap: 28px;
}
.hero-panel--momentum .hero-text { max-width: 720px; }
.hero-panel--momentum .page-title {
  margin-bottom: 10px;
  font-size: clamp(28px, 3.4vw, 44px);
  font-family: var(--font-family-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.hero-momentum {
  margin: 0;
  color: var(--color-text, #e6e9f2);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.55;
  max-width: 640px;
}
.hero-chips {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-cta {
  white-space: nowrap;
  height: 42px;
  padding: 0 18px;
  font-size: 13.5px;
}
@media (max-width: 900px) {
  .hero-panel--momentum { flex-direction: column; align-items: flex-start; }
  .hero-cta { width: 100%; justify-content: center; }
  .hero-actions--stack { width: 100%; align-items: stretch; }
}

/* ------ KPI deltas ------------------------------------------------------- */
.kpi-card .value { margin-top: 4px; }
.kpi-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--color-text-muted, #8b92a6);
  flex-wrap: wrap;
}
.kpi-sub {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.35;
}
.kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 11px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.kpi-delta i { font-size: 10px; }
.kpi-delta--up {
  color: #b8ffd0;
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.32);
}
.kpi-delta--down {
  color: #ffc0cb;
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.3);
}
.kpi-delta--flat {
  color: var(--color-text-muted, #8b92a6);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ------ Dashboard layout grid (Phase B) ---------------------------------
 * Row 1: Next Best Actions (span 2) + Upcoming Week (span 1)
 * Row 2: Pipeline Funnel (span 2) + Resume Freshness (span 1)
 * Row 3: Job Digest (full width)
 * --------------------------------------------------------------------- */
.dashboard-layout > .nba-card,
.dashboard-layout > .funnel-card { grid-column: span 2; }
.dashboard-layout > .upcoming-card,
.dashboard-layout > .freshness-card { grid-column: span 1; }
.dashboard-layout > .digest-card { grid-column: 1 / -1; }

/* ------ Next Best Actions ------------------------------------------------ */
.nba-lede { margin-top: 2px; margin-bottom: 14px; }
.nba-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nba-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.nba-item:hover {
  border-color: rgba(107, 215, 255, 0.35);
  background: rgba(107, 215, 255, 0.06);
  transform: translateY(-1px);
}
.nba-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.nba-icon.cyan    { color: #9ef8ff; background: rgba(32, 227, 255, 0.14); }
.nba-icon.violet  { color: #cdcfff; background: rgba(107, 125, 255, 0.16); }
.nba-icon.blue    { color: #bddfff; background: rgba(59, 130, 246, 0.18); }
.nba-icon.green   { color: #b8ffd0; background: rgba(34, 197, 94, 0.18); }
.nba-icon.warning { color: #ffe6b5; background: rgba(245, 158, 11, 0.18); }
.nba-icon.rose    { color: #ffc0cb; background: rgba(244, 63, 94, 0.18); }
.nba-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.nba-title {
  color: var(--color-text, #e6e9f2);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nba-reason {
  color: var(--color-text-muted, #8b92a6);
  font-size: 12.5px;
  line-height: 1.45;
}
.nba-cta {
  white-space: nowrap;
  padding: 8px 14px !important;
  font-size: 12.5px !important;
}

@media (max-width: 820px) {
  .nba-card { grid-column: auto; }
  .nba-item {
    grid-template-columns: 40px 1fr;
    grid-template-areas: "icon body" "cta cta";
    row-gap: 10px;
  }
  .nba-item .nba-icon { grid-area: icon; }
  .nba-item .nba-body { grid-area: body; }
  .nba-item .nba-cta  { grid-area: cta; justify-self: stretch; text-align: center; }
}

/* ------ Pipeline funnel ------------------------------------------------- */
.funnel-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.funnel-row {
  display: grid;
  grid-template-columns: 110px 1fr 34px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.funnel-label {
  color: var(--color-text-muted, #8b92a6);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.funnel-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}
.funnel-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 320ms ease;
}
.funnel-fill.cyan    { background: linear-gradient(90deg, rgba(32, 227, 255, 0.5), rgba(32, 227, 255, 0.9)); }
.funnel-fill.violet  { background: linear-gradient(90deg, rgba(107, 125, 255, 0.55), rgba(107, 125, 255, 0.95)); }
.funnel-fill.blue    { background: linear-gradient(90deg, rgba(59, 130, 246, 0.55), rgba(59, 130, 246, 0.95)); }
.funnel-fill.green   { background: linear-gradient(90deg, rgba(34, 197, 94, 0.55), rgba(34, 197, 94, 0.95)); }
.funnel-value {
  color: var(--color-text, #e6e9f2);
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.funnel-caveat { margin-top: 10px; }

/* ------ Cold-start ladder ----------------------------------------------- */
.cold-start { margin-top: var(--space-24); }
.ladder {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ladder-step {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 180ms ease, background 180ms ease;
}
.ladder-step:hover {
  border-color: rgba(107, 215, 255, 0.35);
  background: rgba(107, 215, 255, 0.05);
}
.ladder-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #06070d;
  background: linear-gradient(135deg, #5a60ff 0%, #22d3ee 100%);
  font-size: 16px;
}
.ladder-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ladder-body strong { color: var(--color-text, #e6e9f2); font-size: 14px; }
.ladder-body span { color: var(--color-text-muted, #8b92a6); font-size: 12.5px; line-height: 1.45; }

@media (max-width: 680px) {
  .ladder-step {
    grid-template-columns: 42px 1fr;
    grid-template-areas: "num body" "cta cta";
    row-gap: 10px;
  }
  .ladder-step .ladder-num { grid-area: num; }
  .ladder-step .ladder-body { grid-area: body; }
  .ladder-step > a { grid-area: cta; justify-self: stretch; text-align: center; }
  .funnel-row { grid-template-columns: 90px 1fr 28px; font-size: 12.5px; }
}

/* =============================================================================
 * Dashboard — Phase B (sparklines, resume freshness, upcoming week)
 * ========================================================================== */

/* ------ KPI sparkline --------------------------------------------------- */
.kpi-value-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}
.kpi-value-row .value { line-height: 1; }
.kpi-sparkline {
  flex: 0 0 auto;
  display: block;
  width: 110px;
  height: 30px;
  opacity: 0.95;
}
.kpi-sparkline .spark-line {
  fill: none;
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.kpi-sparkline .spark-area { opacity: 0.35; stroke: none; }
.kpi-sparkline .spark-dot { stroke: none; }

.kpi-sparkline--cyan   .spark-line { stroke: #9ef8ff; }
.kpi-sparkline--cyan   .spark-area { fill: url(#grad-cyan); fill: rgba(32, 227, 255, 0.28); }
.kpi-sparkline--cyan   .spark-dot  { fill: #9ef8ff; }

.kpi-sparkline--violet .spark-line { stroke: #cdcfff; }
.kpi-sparkline--violet .spark-area { fill: rgba(107, 125, 255, 0.28); }
.kpi-sparkline--violet .spark-dot  { fill: #cdcfff; }

.kpi-sparkline--blue   .spark-line { stroke: #bddfff; }
.kpi-sparkline--blue   .spark-area { fill: rgba(59, 130, 246, 0.28); }
.kpi-sparkline--blue   .spark-dot  { fill: #bddfff; }

.kpi-sparkline--green  .spark-line { stroke: #b8ffd0; }
.kpi-sparkline--green  .spark-area { fill: rgba(34, 197, 94, 0.28); }
.kpi-sparkline--green  .spark-dot  { fill: #b8ffd0; }

@media (max-width: 1100px) {
  .kpi-sparkline { width: 80px; height: 26px; }
}
@media (max-width: 900px) {
  .kpi-value-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .kpi-sparkline { width: 100%; height: 26px; }
}

/* ------ Smaller panel variant (right-rail cards) ------------------------ */
.panel-sm {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.panel-sm .panel-head { margin-bottom: 6px; }

/* ------ Resume Freshness ----------------------------------------------- */
.freshness-card { position: relative; }
.freshness-card .freshness-lede,
.freshness-card .freshness-hint {
  margin: 0;
  color: var(--color-text-muted, #8b92a6);
  font-size: 13px;
  line-height: 1.5;
}
.freshness-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 4px 0 0;
}
.freshness-age {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  background: linear-gradient(90deg, #f8fbff, #b7f7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.freshness-sub {
  color: var(--color-text-muted, #8b92a6);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.freshness-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--color-text-muted, #8b92a6);
  font-size: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}
.freshness-meta i { margin-right: 6px; color: #9ef8ff; }
.freshness-cta {
  margin-top: 10px;
  justify-self: flex-start;
}

.freshness-card--warning { border-color: rgba(245, 158, 11, 0.4); }
.freshness-card--rose    { border-color: rgba(244, 63, 94, 0.4); }

/* ------ Upcoming Week --------------------------------------------------- */
.upcoming-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.upcoming-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 180ms ease, background 180ms ease;
}
.upcoming-item:hover {
  border-color: rgba(107, 215, 255, 0.3);
  background: rgba(107, 215, 255, 0.05);
}
.upcoming-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.upcoming-icon.cyan    { color: #9ef8ff; background: rgba(32, 227, 255, 0.14); }
.upcoming-icon.violet  { color: #cdcfff; background: rgba(107, 125, 255, 0.16); }
.upcoming-icon.blue    { color: #bddfff; background: rgba(59, 130, 246, 0.18); }
.upcoming-icon.green   { color: #b8ffd0; background: rgba(34, 197, 94, 0.18); }
.upcoming-icon.warning { color: #ffe6b5; background: rgba(245, 158, 11, 0.2); }
.upcoming-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.upcoming-title {
  color: var(--color-text, #e6e9f2);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upcoming-meta {
  color: var(--color-text-muted, #8b92a6);
  font-size: 11.5px;
}
.upcoming-empty {
  color: var(--color-text-muted, #8b92a6);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
.upcoming-overflow {
  margin: 6px 0 0;
  color: var(--color-text-muted, #8b92a6);
  font-size: 12px;
  text-align: center;
}

/* ------ Collapse right-rail cards on narrow screens ------------------- */
@media (max-width: 900px) {
  .dashboard-layout > .nba-card,
  .dashboard-layout > .funnel-card,
  .dashboard-layout > .upcoming-card,
  .dashboard-layout > .freshness-card,
  .dashboard-layout > .digest-card { grid-column: 1 / -1; }
}

/* =============================================================================
 * Phase C — Delta baseline label
 * ========================================================================== */
.kpi-delta-base {
  margin-left: 6px;
  color: var(--color-text-muted, #8b92a6);
  font-weight: 500;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
}

/* =============================================================================
 * Phase C — Application Detail Drawer
 * ========================================================================== */
.drawer-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 34px);
}
.drawer-root[aria-hidden="false"] { pointer-events: auto; }
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 15, 0.55);
  opacity: 0;
  transition: opacity 180ms ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.drawer-root.is-open .drawer-backdrop { opacity: 1; }

.drawer-panel {
  position: relative;
  height: auto;
  max-height: min(92vh, 980px);
  width: min(980px, calc(100vw - 48px));
  background:
    radial-gradient(120% 120% at 12% 0%, rgba(37, 225, 255, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(14, 19, 33, 0.98) 0%, rgba(9, 13, 24, 0.98) 100%);
  border: 1px solid rgba(107, 215, 255, 0.2);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.54), 0 0 0 1px rgba(255, 255, 255, 0.035) inset;
  overflow-y: auto;
  transform: translateY(18px) scale(0.985);
  opacity: 0;
  transition:
    transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 180ms ease;
  padding: clamp(20px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  outline: none;
}
.drawer-root.is-open .drawer-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.drawer-panel:focus-visible { outline: 2px solid rgba(107, 215, 255, 0.5); outline-offset: -4px; }

body.drawer-open { overflow: hidden; }

/* ------ Drawer header --------------------------------------------------- */
.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.drawer-head-main { min-width: 0; flex: 1 1 auto; }
.drawer-eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}
.drawer-title {
  font-size: clamp(20px, 2.4vw, 26px);
  margin: 0;
  color: var(--color-text, #e6e9f2);
  letter-spacing: -0.01em;
}
.drawer-subtitle {
  margin: 4px 0 0;
  color: var(--color-text-muted, #8b92a6);
  font-size: 14px;
}
.drawer-applied {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--color-text-muted, #8b92a6);
}
.drawer-close-btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ------ Drawer sections ------------------------------------------------ */
.drawer-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drawer-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.drawer-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted, #8b92a6);
  margin: 0;
}
.drawer-job-url-wrap {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.drawer-job-url {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  justify-content: center;
  text-decoration: none;
}
/* Inline jobUrl input shown when an application has no URL yet. The
 * Save button sits next to the input so the user doesn't have to hunt
 * for the action after typing. */
.drawer-jobUrl-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}
.drawer-jobUrl-row .drawer-input { flex: 1 1 auto; }
.drawer-section-hint {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--color-text-muted, #8b92a6);
  line-height: 1.4;
}
.drawer-stage-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.drawer-stage-btn {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  font-size: 12.5px;
  transition: transform 140ms ease, border-color 140ms ease, filter 140ms ease;
}
.drawer-stage-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.drawer-stage-btn.is-active {
  outline: 2px solid rgba(255, 255, 255, 0.25);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px rgba(107, 215, 255, 0.35), 0 0 16px rgba(107, 215, 255, 0.2);
}

.drawer-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--color-text, #e6e9f2);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 140ms ease, background 140ms ease;
}
.drawer-input:focus {
  outline: none;
  border-color: rgba(107, 215, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.drawer-section--notes {
  gap: 12px;
}

.drawer-input--notes {
  min-height: 260px;
  font-size: 15px;
  line-height: 1.6;
}

.drawer-job-snapshot {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(37, 225, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(11, 24, 41, 0.78), rgba(9, 13, 24, 0.84)),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.drawer-job-snapshot-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.drawer-job-snapshot-head div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.drawer-job-snapshot-head strong {
  color: var(--color-text, #e6e9f2);
  font-size: 18px;
  line-height: 1.2;
}

.drawer-job-snapshot-kicker {
  color: #25e1ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.drawer-job-snapshot-intro {
  margin: 0;
  color: rgba(204, 214, 234, 0.72);
  font-size: 13px;
}

.drawer-job-snapshot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.drawer-job-snapshot-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  color: rgba(224, 232, 247, 0.82);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-job-snapshot-meta-source {
  flex: 1 1 220px;
  max-width: min(100%, 520px);
}

.drawer-job-snapshot-meta i {
  color: #25e1ff;
  flex: 0 0 auto;
}

.drawer-job-snapshot-copy {
  overflow: visible;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(2, 6, 15, 0.44);
  color: rgba(235, 241, 255, 0.9);
  font-size: 15px;
  line-height: 1.65;
}

.drawer-job-description {
  display: grid;
  gap: 18px;
}

.drawer-job-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.drawer-job-fact {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.drawer-job-fact small {
  color: #25e1ff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.drawer-job-fact strong {
  min-width: 0;
  color: rgba(235, 241, 255, 0.88);
  font-size: 13.5px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.drawer-job-section {
  display: grid;
  gap: 14px;
  padding: 0 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.drawer-job-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.drawer-job-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--color-text, #e6e9f2);
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.25;
}

.drawer-job-section-title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: #25e1ff;
  box-shadow: 0 0 16px rgba(37, 225, 255, 0.62);
}

.drawer-job-section-body {
  display: grid;
  gap: 12px;
  color: rgba(235, 241, 255, 0.86);
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.78;
  min-width: 0;
  overflow-wrap: anywhere;
}

.drawer-job-section-body p {
  margin: 0;
}

.drawer-job-list {
  display: grid;
  gap: 8px;
  margin: 2px 0 0;
  padding-left: 22px;
}

.drawer-job-list li {
  padding-left: 4px;
}

.drawer-job-list li::marker {
  color: #25e1ff;
}

/* ------ Drawer timeline ------------------------------------------------- */
.drawer-timeline {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.drawer-timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, rgba(107, 215, 255, 0.35), rgba(107, 215, 255, 0.06));
  border-radius: 2px;
}
.drawer-timeline-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: flex-start;
  position: relative;
  padding: 4px 0;
}
.drawer-timeline-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
  background: #0c1222;
}
.drawer-timeline-dot.cyan    { color: #9ef8ff; box-shadow: inset 0 0 0 1px rgba(32, 227, 255, 0.35); }
.drawer-timeline-dot.violet  { color: #cdcfff; box-shadow: inset 0 0 0 1px rgba(107, 125, 255, 0.35); }
.drawer-timeline-dot.blue    { color: #bddfff; box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.35); }
.drawer-timeline-dot.green   { color: #b8ffd0; box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.35); }
.drawer-timeline-dot.warning { color: #ffe6b5; box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.4); }
.drawer-timeline-dot.rose    { color: #ffb3c4; box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.4); }

.drawer-timeline-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.drawer-timeline-title {
  color: var(--color-text, #e6e9f2);
  font-size: 13.5px;
}
.drawer-timeline-meta {
  color: var(--color-text-muted, #8b92a6);
  font-size: 11.5px;
}
.drawer-timeline-empty {
  margin: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-align: center;
}

/* ------ Drawer quick actions ------------------------------------------ */
.drawer-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.drawer-action-grid .btn-secondary,
.drawer-action-grid .btn-ghost {
  justify-content: center;
}
.drawer-action-grid .drawer-danger {
  color: #ffb3c4;
  border: 1px solid rgba(244, 63, 94, 0.25);
  background: rgba(244, 63, 94, 0.08);
}
.drawer-action-grid .drawer-danger:hover {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.45);
}

/* ------ App card hover cue (click → open drawer) ----------------------- */
.applications-page .hero-panel {
  border-radius: 16px;
  border-color: rgba(107, 125, 255, 0.16);
  box-shadow: none;
  background:
    radial-gradient(140% 120% at 0% 0%, rgba(34, 227, 255, 0.06), transparent 56%),
    linear-gradient(180deg, rgba(14, 19, 34, 0.85), rgba(10, 14, 25, 0.84));
}

.applications-page .hero-panel::before {
  display: none;
}

.applications-page .card-grid .card {
  box-shadow: none;
  border-color: rgba(107, 125, 255, 0.15);
  background: rgba(255, 255, 255, 0.015);
}

.applications-page .card-grid .card::before {
  display: none;
}

.applications-page .pipeline-surface {
  padding: 16px 0 2px;
  border-top: 1px solid rgba(107, 125, 255, 0.2);
  border-bottom: 1px solid rgba(107, 125, 255, 0.14);
  background: transparent;
}

.applications-page .pipeline-surface .panel-head {
  margin-bottom: 10px;
}

.applications-page .pipeline-empty-wrap {
  margin-top: 8px;
  padding-top: 10px;
}

.applications-page .empty-state {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.applications-page .empty-state p {
  max-width: 560px;
}

.applications-page .empty-state--pipeline {
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid rgba(107, 125, 255, 0.16);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(14, 19, 34, 0.7), rgba(10, 14, 25, 0.72));
}

.applications-page .empty-state-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.applications-page .empty-state-head h3 {
  margin: 0 0 4px;
  font-size: 30px;
}

.applications-page .empty-state-head p {
  margin: 0;
  color: var(--color-text-muted);
  max-width: none;
}

.applications-page .empty-state--pipeline .empty-state-icon {
  margin: 0;
  width: 44px;
  height: 44px;
  font-size: 17px;
}

.applications-page .empty-state-actions--pipeline {
  margin-top: 14px;
  justify-content: flex-start;
}

.applications-page .kanban-col {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(107, 125, 255, 0.12);
  box-shadow: none;
}

.applications-page .app-card {
  background: rgba(255, 255, 255, 0.01);
  border-color: rgba(107, 125, 255, 0.16);
}

.applications-page .app-card[data-app-id]:hover {
  box-shadow: none;
}

@media (max-width: 720px) {
  .applications-page .empty-state--pipeline {
    padding: 16px 14px;
  }
  .applications-page .empty-state-head {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .applications-page .empty-state-actions--pipeline {
    width: 100%;
    justify-content: flex-start;
  }
}

.app-card[data-app-id] { cursor: pointer; }
.app-card[data-app-id]:focus-visible {
  outline: 2px solid rgba(107, 215, 255, 0.5);
  outline-offset: 2px;
}
.app-card[data-app-id]:hover {
  border-color: rgba(107, 215, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.app-card-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

/* ------ Drawer on narrow screens -------------------------------------- */
@media (max-width: 720px) {
  .drawer-root {
    padding: 0;
    place-items: stretch;
  }
  .drawer-panel {
    width: 100vw;
    max-height: 100vh;
    min-height: 100vh;
    border-radius: 0;
    padding: 18px 16px 32px;
  }
  .drawer-job-snapshot-head {
    flex-direction: column;
  }
  .drawer-job-facts {
    grid-template-columns: 1fr;
  }
  .drawer-action-grid { grid-template-columns: 1fr; }
}

/* =============================================================================
 * Phase D — Logo badges
 * ========================================================================== */
.logo-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.04);
}
.logo-badge--sm { width: 28px; height: 28px; font-size: 11px; border-radius: 8px; }
.logo-badge--md { width: 36px; height: 36px; font-size: 12.5px; }
.logo-badge--lg { width: 52px; height: 52px; font-size: 16px; border-radius: 14px; }

.logo-badge.cyan    { background: rgba(32, 227, 255, 0.15); color: #9ef8ff; }
.logo-badge.violet  { background: rgba(107, 125, 255, 0.18); color: #cdcfff; }
.logo-badge.blue    { background: rgba(59, 130, 246, 0.2); color: #bddfff; }
.logo-badge.green   { background: rgba(34, 197, 94, 0.2); color: #b8ffd0; }
.logo-badge.warning { background: rgba(245, 158, 11, 0.2); color: #ffe6b5; }
.logo-badge.rose    { background: rgba(244, 63, 94, 0.2); color: #ffb3c4; }

.logo-initials {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 180ms ease;
}
.logo-img {
  position: relative;
  width: 70%;
  height: 70%;
  object-fit: contain;
  z-index: 1;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 6px;
  padding: 3px;
}

/* ------ Pipeline card logo row ---------------------------------------- */
.app-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.app-card-id {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}
.app-card-id strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =============================================================================
 * Phase D — Drawer head logo, event form, followup panel
 * ========================================================================== */
.drawer-head-id {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.drawer-head-text { min-width: 0; }
.drawer-head-text .drawer-title { margin: 0; }
.drawer-head-text .drawer-subtitle { margin: 2px 0 0; }

.drawer-section-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.drawer-mini-btn {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 8px;
}

/* ------ Inline event form --------------------------------------------- */
.drawer-event-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(107, 215, 255, 0.25);
  margin: 4px 0 10px;
}
.drawer-event-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.drawer-event-field span {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted, #8b92a6);
}
.drawer-event-field--full { grid-column: 1 / -1; }
.drawer-event-field input,
.drawer-event-field select,
.drawer-event-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--color-text, #e6e9f2);
  font-family: inherit;
  font-size: 13px;
  transition: border-color 140ms ease, background 140ms ease;
}
.drawer-event-field input:focus,
.drawer-event-field select:focus,
.drawer-event-field textarea:focus {
  outline: none;
  border-color: rgba(107, 215, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}
.drawer-event-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ------ Timeline delete button ---------------------------------------- */
.drawer-timeline-item { position: relative; }
.drawer-timeline-del {
  position: absolute;
  top: 4px;
  right: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted, #8b92a6);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 160ms ease, border-color 160ms ease, color 160ms ease;
}
.drawer-timeline-item:hover .drawer-timeline-del { opacity: 1; }
.drawer-timeline-del:hover {
  color: #ffb3c4;
  border-color: rgba(244, 63, 94, 0.45);
}

/* ------ Follow-up AI panel ------------------------------------------- */
.drawer-followup {
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(107, 215, 255, 0.05), rgba(107, 125, 255, 0.04));
  border: 1px solid rgba(107, 215, 255, 0.15);
}
.followup-result {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.followup-openers {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.followup-opener {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--color-text, #e6e9f2);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.followup-opener i { color: #9ef8ff; margin-right: 8px; }
.followup-opener:hover {
  border-color: rgba(107, 215, 255, 0.35);
  background: rgba(107, 215, 255, 0.06);
  transform: translateX(2px);
}
.followup-meta { margin: 0; font-size: 11px; }

/* =============================================================================
 * Phase D — Analytics
 * ========================================================================== */
.analytics-page .analytics-hero {
  padding: 8px 0 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  isolation: auto;
}

.analytics-page .analytics-hero::before {
  display: none;
}

.analytics-page .analytics-hero .eyebrow {
  margin-bottom: 12px;
  letter-spacing: 0.24em;
}

.analytics-page .analytics-hero .page-title {
  margin-bottom: 10px;
  font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.03;
  text-wrap: balance;
}

.analytics-page .analytics-hero .page-subtitle {
  max-width: 68ch;
  font-size: 1.02rem;
  color: color-mix(in oklab, var(--color-text-muted, #8b92a6) 86%, white);
}

.analytics-page .analytics-hero .hero-actions {
  align-self: flex-start;
}

.analytics-page .analytics-hero .btn-secondary {
  border-color: rgba(89, 123, 255, 0.42);
  background: rgba(89, 123, 255, 0.08);
}

.analytics-page .analytics-hero .btn-secondary:hover {
  border-color: rgba(34, 227, 255, 0.45);
  background: rgba(34, 227, 255, 0.09);
}

.analytics-page .analytics-hero + .card-grid,
.analytics-page .analytics-hero + .card {
  margin-top: 8px;
}

.analytics-command-center,
.analytics-action-board,
.analytics-health-panel,
.analytics-funnel-panel,
.analytics-fit-panel,
.analytics-empty-intel {
  border: 1px solid rgba(76, 201, 240, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(13, 25, 43, 0.96), rgba(8, 11, 22, 0.97)),
    rgba(10, 15, 26, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.analytics-command-center {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.72fr);
  gap: 22px;
  align-items: stretch;
  padding: clamp(22px, 3vw, 36px);
}
.analytics-command-center::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.12), transparent 42%),
    radial-gradient(circle at 92% 6%, rgba(107, 125, 255, 0.24), transparent 34%);
}
.analytics-command-copy,
.analytics-score-panel {
  position: relative;
  z-index: 1;
}
.analytics-command-center .page-title {
  max-width: 860px;
  margin: 8px 0 14px;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}
.analytics-command-center .page-subtitle {
  max-width: 760px;
  color: rgba(216, 226, 245, 0.78);
  font-size: clamp(16px, 1.55vw, 22px);
  line-height: 1.55;
}
.analytics-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.analytics-score-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
}
.analytics-score-ring {
  display: grid;
  place-items: center;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #0b1221 58%, transparent 59%),
    conic-gradient(#25e1ff calc(var(--score) * 1%), rgba(255, 255, 255, 0.08) 0);
  box-shadow: 0 0 40px rgba(37, 225, 255, 0.12);
}
.analytics-score-ring strong {
  display: block;
  color: var(--color-text, #eef4ff);
  font-size: 42px;
  line-height: 1;
}
.analytics-score-ring span {
  color: rgba(204, 214, 234, 0.65);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.analytics-score-copy h2 {
  margin: 10px 0 6px;
  color: var(--color-text, #eef4ff);
  font-size: 24px;
}
.analytics-score-copy p {
  margin: 0;
  color: rgba(204, 214, 234, 0.7);
  line-height: 1.5;
}
.analytics-score-mini {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.analytics-score-mini span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}
.analytics-score-mini strong {
  color: var(--color-text, #eef4ff);
  font-size: 20px;
}
.analytics-score-mini small {
  color: rgba(204, 214, 234, 0.62);
  font-size: 11px;
  text-transform: uppercase;
}
.analytics-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.analytics-section-heading h2 {
  margin: 4px 0 0;
  color: var(--color-text, #eef4ff);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.08;
}
.analytics-action-board,
.analytics-health-panel,
.analytics-funnel-panel,
.analytics-fit-panel,
.analytics-empty-intel {
  padding: clamp(16px, 2vw, 22px);
}
.analytics-action-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.analytics-action-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 168px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.032);
  color: var(--color-text, #eef4ff);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.analytics-action-card:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 225, 255, 0.36);
}
.analytics-action-card > i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #071120;
  background: linear-gradient(135deg, #25e1ff, #8a68ff);
}
.analytics-action-card strong {
  font-size: 16px;
  line-height: 1.2;
}
.analytics-action-card small {
  color: rgba(204, 214, 234, 0.68);
  line-height: 1.45;
}
.analytics-action-rank {
  position: absolute;
  top: 12px;
  right: 14px;
  color: #25e1ff;
  font-size: 12px;
  font-weight: 900;
}
.analytics-metric-grid,
.analytics-insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.analytics-metric-card,
.analytics-insight-card,
.analytics-health-card,
.analytics-funnel-step {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(16, 25, 42, 0.86), rgba(9, 13, 25, 0.94)),
    rgba(255, 255, 255, 0.025);
}
.analytics-metric-card {
  display: grid;
  gap: 7px;
  padding: 16px;
}
.analytics-metric-card i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #25e1ff;
  background: rgba(37, 225, 255, 0.1);
}
.analytics-metric-card span,
.analytics-health-card span {
  color: rgba(204, 214, 234, 0.68);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.analytics-metric-card strong {
  color: var(--color-text, #eef4ff);
  font-size: 32px;
  line-height: 1;
}
.analytics-metric-card small {
  color: rgba(204, 214, 234, 0.64);
}
.analytics-health-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.analytics-health-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}
.analytics-health-card div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.analytics-health-card strong {
  color: var(--color-text, #eef4ff);
  line-height: 1.2;
}
.analytics-health-card p {
  margin: 0;
  min-height: 58px;
  color: rgba(204, 214, 234, 0.65);
  font-size: 13px;
  line-height: 1.45;
}
.analytics-health-track,
.analytics-funnel-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}
.analytics-health-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.analytics-insight-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 15px;
}
.analytics-insight-card i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: #071120;
  background: linear-gradient(135deg, #25e1ff, #8a68ff);
}
.analytics-insight-card strong {
  color: var(--color-text, #eef4ff);
}
.analytics-insight-card p {
  margin: 5px 0 0;
  color: rgba(204, 214, 234, 0.66);
  line-height: 1.45;
}
.analytics-funnel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.analytics-funnel-step {
  display: grid;
  gap: 12px;
  padding: 14px;
}
.analytics-funnel-bar::before {
  content: "";
  display: block;
  width: calc(var(--bar) * 1%);
  height: 100%;
  border-radius: inherit;
  background: var(--stage-color);
}
.analytics-funnel-copy {
  display: grid;
  gap: 4px;
}
.analytics-funnel-copy span {
  color: rgba(204, 214, 234, 0.7);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.analytics-funnel-copy strong {
  color: var(--color-text, #eef4ff);
  font-size: 34px;
  line-height: 1;
}
.analytics-funnel-copy small {
  color: rgba(204, 214, 234, 0.62);
}
.analytics-fit-panel {
  position: relative;
  overflow: hidden;
}
.analytics-fit-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 12%, rgba(34, 227, 255, 0.1), transparent 28%),
    radial-gradient(circle at 92% 0%, rgba(62, 226, 160, 0.1), transparent 30%);
}
.analytics-fit-panel > * {
  position: relative;
  z-index: 1;
}
.fit-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 12px;
  margin-bottom: 14px;
}
.fit-summary-card,
.fit-caveat-card,
.fit-role-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(16, 25, 42, 0.86), rgba(9, 13, 25, 0.94)),
    rgba(255, 255, 255, 0.025);
}
.fit-summary-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
}
.fit-summary-card h3 {
  margin: 10px 0 7px;
  color: var(--color-text, #eef4ff);
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1.15;
}
.fit-summary-card p,
.fit-caveat-card p {
  margin: 0;
  color: rgba(204, 214, 234, 0.7);
  line-height: 1.5;
}
.fit-caveat-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
}
.fit-caveat-card i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #071120;
  background: linear-gradient(135deg, #25e1ff, #3ee2a0);
}
.fit-caveat-card strong {
  color: var(--color-text, #eef4ff);
  font-size: 18px;
}
.fit-role-grid {
  display: grid;
  gap: 12px;
}
.fit-role-card {
  display: grid;
  gap: 14px;
  padding: 15px;
  min-width: 0;
  overflow: hidden;
}
.fit-role-head {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.fit-role-rank {
  color: #25e1ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.fit-score-ring {
  --fit: 0;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #0b1221 58%, transparent 59%),
    conic-gradient(#25e1ff calc(var(--fit) * 1%), rgba(255, 255, 255, 0.08) 0);
  box-shadow: 0 0 34px rgba(37, 225, 255, 0.12);
}
.fit-score-ring--large {
  width: 120px;
  height: 120px;
}
.fit-score-ring strong,
.fit-score-ring small {
  grid-area: 1 / 1;
}
.fit-score-ring strong {
  color: var(--color-text, #eef4ff);
  font-size: 27px;
  line-height: 1;
}
.fit-score-ring--large strong {
  font-size: 40px;
}
.fit-score-ring small {
  margin-top: 36px;
  color: rgba(204, 214, 234, 0.62);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}
.fit-score-ring--large small {
  margin-top: 48px;
}
.fit-role-title {
  min-width: 0;
}
.fit-role-title h3 {
  margin: 8px 0 3px;
  color: var(--color-text, #eef4ff);
  font-size: 20px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}
.fit-role-title p {
  margin: 0;
  color: rgba(204, 214, 234, 0.7);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.fit-subscore-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.fit-subscore {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.fit-subscore small {
  color: rgba(204, 214, 234, 0.66);
  font-size: 10.5px;
  font-weight: 850;
  text-transform: uppercase;
}
.fit-subscore b {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}
.fit-subscore i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #25e1ff, #8a68ff);
}
.fit-subscore strong {
  color: var(--color-text, #eef4ff);
  font-size: 12px;
}
.fit-diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.fit-diagnostic-grid h4 {
  margin: 0 0 8px;
  color: rgba(204, 214, 234, 0.72);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fit-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fit-chip-row span {
  display: inline-flex;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 999px;
  color: #b8ffd0;
  background: rgba(16, 185, 129, 0.08);
  font-size: 11px;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.fit-chip-row--risk span {
  color: #ffd79a;
  background: rgba(245, 165, 36, 0.1);
  border-color: rgba(245, 165, 36, 0.24);
}
.fit-action-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fit-action-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  color: rgba(224, 232, 247, 0.82);
  font-size: 13px;
  line-height: 1.45;
}
.fit-action-list i {
  color: #3ee2a0;
  margin-top: 3px;
}
.fit-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.analytics-empty-intel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 18px;
  align-items: center;
}
.analytics-empty-intel h2 {
  margin: 4px 0 10px;
  color: var(--color-text, #eef4ff);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
}
.analytics-empty-intel p {
  max-width: 760px;
  color: rgba(204, 214, 234, 0.72);
  line-height: 1.55;
}
.analytics-empty-unlocks {
  display: grid;
  gap: 10px;
}
.analytics-empty-unlocks span {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}
.analytics-empty-unlocks i {
  grid-row: 1 / span 2;
  color: #25e1ff;
}
.analytics-empty-unlocks strong {
  color: var(--color-text, #eef4ff);
}
.analytics-empty-unlocks small {
  color: rgba(204, 214, 234, 0.64);
}

@media (max-width: 1180px) {
  .analytics-command-center,
  .analytics-empty-intel,
  .fit-summary-grid {
    grid-template-columns: 1fr;
  }
  .analytics-action-grid,
  .analytics-health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .analytics-metric-grid,
  .analytics-insight-grid,
  .analytics-funnel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fit-subscore-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .analytics-command-center {
    padding: 18px;
  }
  .analytics-command-center .page-title {
    font-size: clamp(34px, 11vw, 52px);
  }
  .analytics-score-panel,
  .analytics-score-mini,
  .analytics-action-grid,
  .analytics-health-grid,
  .analytics-metric-grid,
  .analytics-insight-grid,
  .analytics-funnel,
  .fit-summary-grid,
  .fit-summary-card,
  .fit-diagnostic-grid,
  .fit-subscore-grid {
    grid-template-columns: 1fr;
  }
  .fit-role-head {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .fit-role-rank {
    grid-column: 1 / -1;
  }
  .fit-score-ring {
    width: 64px;
    height: 64px;
  }
  .fit-score-ring strong {
    font-size: 23px;
  }
  .fit-score-ring small {
    margin-top: 30px;
    font-size: 9px;
  }
  .fit-score-ring--large {
    width: 96px;
    height: 96px;
  }
  .fit-score-ring--large strong {
    font-size: 34px;
  }
  .fit-score-ring--large small {
    margin-top: 40px;
  }
  .analytics-score-ring {
    width: 116px;
    height: 116px;
  }
  .analytics-section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .analytics-action-card {
    min-height: auto;
  }
}

.chart-svg--weekly {
  width: 100%;
  height: auto;
  display: block;
}

/* =============================================================================
 * Pipeline Command Center
 * ========================================================================== */
.applications-command-page {
  display: grid;
  gap: 16px;
}

.applications-command-page > * + * {
  margin-top: 0;
}

.pipeline-command-center,
.pipeline-action-board,
.pipeline-momentum-strip,
.pipeline-toolbar,
.pipeline-board-shell,
.pipeline-add-form {
  border: 1px solid rgba(76, 201, 240, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(13, 25, 43, 0.95), rgba(8, 11, 22, 0.97)),
    rgba(10, 15, 26, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.pipeline-command-center {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.68fr);
  gap: 22px;
  align-items: stretch;
  padding: clamp(22px, 3vw, 36px);
}

.pipeline-command-center::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.13), transparent 46%),
    radial-gradient(circle at 94% 10%, rgba(107, 125, 255, 0.25), transparent 32%),
    radial-gradient(circle at 78% 94%, rgba(62, 226, 160, 0.14), transparent 36%);
}

.pipeline-command-copy,
.pipeline-score-panel {
  position: relative;
  z-index: 1;
}

.pipeline-command-center .page-title {
  max-width: 900px;
  margin: 8px 0 14px;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

.pipeline-command-center .page-subtitle {
  max-width: 760px;
  color: rgba(216, 226, 245, 0.78);
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.55;
}

.pipeline-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.pipeline-score-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  align-content: center;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.pipeline-score-ring {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #0b1221 58%, transparent 59%),
    conic-gradient(#25e1ff calc(var(--pipeline-score) * 1%), rgba(255, 255, 255, 0.08) 0);
  box-shadow: 0 0 44px rgba(37, 225, 255, 0.14);
}

.pipeline-score-ring strong {
  display: block;
  color: var(--color-text, #eef4ff);
  font-size: 42px;
  line-height: 1;
}

.pipeline-score-ring span {
  color: rgba(204, 214, 234, 0.66);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.pipeline-score-copy {
  min-width: 0;
}

.pipeline-score-copy h2 {
  margin: 10px 0 6px;
  color: var(--color-text, #eef4ff);
  font-size: 23px;
  line-height: 1.18;
}

.pipeline-score-copy p {
  margin: 0;
  color: rgba(204, 214, 234, 0.7);
  line-height: 1.5;
}

.pipeline-score-mini {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pipeline-score-mini span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.pipeline-score-mini strong {
  color: var(--color-text, #eef4ff);
  font-size: 20px;
}

.pipeline-score-mini small {
  color: rgba(204, 214, 234, 0.62);
  font-size: 11px;
  text-transform: uppercase;
}

.pipeline-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.pipeline-section-heading h2 {
  margin: 4px 0 0;
  color: var(--color-text, #eef4ff);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.08;
}

.pipeline-action-board,
.pipeline-board-shell,
.pipeline-toolbar,
.pipeline-add-form {
  padding: clamp(16px, 2vw, 22px);
}

.pipeline-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pipeline-action-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  min-height: 210px;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.032);
  color: var(--color-text, #eef4ff);
  text-align: left;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.pipeline-action-card:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 225, 255, 0.36);
  background: rgba(37, 225, 255, 0.045);
}

.pipeline-action-card > i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #071120;
  background: linear-gradient(135deg, #25e1ff, #8a68ff);
}

.pipeline-action-card--empty {
  grid-column: 1 / -1;
  min-height: 138px;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto;
  align-items: center;
}

.pipeline-action-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.pipeline-action-copy strong {
  color: var(--color-text, #eef4ff);
  font-size: 17px;
  line-height: 1.18;
}

.pipeline-action-copy small,
.pipeline-action-copy p {
  color: rgba(204, 214, 234, 0.66);
  line-height: 1.45;
}

.pipeline-action-copy p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pipeline-action-rank {
  position: absolute;
  top: 12px;
  right: 14px;
  color: #25e1ff;
  font-size: 12px;
  font-weight: 900;
}

.pipeline-action-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #bff6ff;
  font-size: 12px;
  font-weight: 800;
}

.pipeline-momentum-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.pipeline-stage-metric {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(16, 25, 42, 0.82), rgba(9, 13, 25, 0.94)),
    rgba(255, 255, 255, 0.025);
}

.pipeline-stage-metric div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.pipeline-stage-metric strong {
  color: var(--color-text, #eef4ff);
  font-size: 30px;
  line-height: 1;
}

.pipeline-stage-metric small {
  color: rgba(204, 214, 234, 0.62);
  font-size: 12px;
}

.pipeline-stage-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.pipeline-stage-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #25e1ff, #8a68ff, #3ee2a0);
}

.pipeline-toolbar {
  display: grid;
  gap: 14px;
}

.pipeline-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.026);
}

.pipeline-search > i {
  color: #25e1ff;
  padding-left: 6px;
}

.pipeline-search input,
.pipeline-selects select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(5, 8, 18, 0.74);
  color: var(--color-text, #eef4ff);
  font: inherit;
}

.pipeline-search input {
  height: 38px;
  padding: 0 12px;
}

.pipeline-search input:focus,
.pipeline-selects select:focus {
  outline: none;
  border-color: rgba(37, 225, 255, 0.52);
  box-shadow: 0 0 0 3px rgba(37, 225, 255, 0.12);
}

.pipeline-toolbar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.pipeline-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.pipeline-filter-group .chip-btn {
  white-space: nowrap;
}

.pipeline-filter-group--focus {
  padding-top: 2px;
}

.pipeline-selects {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.pipeline-selects label {
  display: grid;
  gap: 5px;
  min-width: 138px;
  color: rgba(204, 214, 234, 0.62);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.pipeline-selects select {
  height: 36px;
  padding: 0 10px;
  text-transform: none;
}

.pipeline-selects .btn-ghost {
  align-self: end;
  height: 36px;
}

.pipeline-selects .btn-ghost[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.pipeline-board-shell {
  overflow: hidden;
}

.pipeline-kanban {
  margin-top: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.applications-page .pipeline-kanban-col {
  min-width: 0;
  min-height: 340px;
  padding: 10px;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(16, 25, 42, 0.74), rgba(9, 13, 25, 0.86)),
    rgba(255, 255, 255, 0.02);
}

.applications-page .pipeline-kanban-col .kanban-col-head {
  align-items: flex-start;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.applications-page .pipeline-kanban-col .kanban-col-head div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.applications-page .pipeline-kanban-col .kanban-col-head small {
  color: rgba(204, 214, 234, 0.58);
  font-size: 11px;
  line-height: 1.35;
}

.applications-page .pipeline-kanban-col .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  color: #bff6ff;
  background: rgba(37, 225, 255, 0.08);
  border: 1px solid rgba(37, 225, 255, 0.18);
  font-weight: 800;
}

.pipeline-drop-empty {
  margin: 0;
  padding: 18px 12px;
  color: rgba(204, 214, 234, 0.55);
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.applications-page .pipeline-app-card {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  padding: 12px;
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(160deg, rgba(13, 24, 40, 0.9), rgba(7, 10, 20, 0.96)),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.028);
}

.applications-page .pipeline-app-card:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 225, 255, 0.36);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.applications-page .pipeline-app-card .app-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 0;
  min-width: 0;
}

.applications-page .pipeline-app-card .app-card-id {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.applications-page .pipeline-app-card .app-card-id strong {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.applications-page .pipeline-app-card .app-card-head > .chip {
  max-width: 100%;
  justify-self: end;
  white-space: nowrap;
}

.applications-page .pipeline-app-card .app-role {
  margin: 0;
  color: var(--color-text, #eef4ff);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pipeline-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.pipeline-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: rgba(204, 214, 234, 0.62);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pipeline-card-meta i {
  color: #25e1ff;
  flex: 0 0 auto;
}

.pipeline-card-action {
  display: grid;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.028);
}

.pipeline-card-action p {
  margin: 0;
  color: rgba(224, 232, 247, 0.82);
  font-size: 12.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pipeline-card-signal {
  display: grid;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.pipeline-card-signal span {
  color: rgba(204, 214, 234, 0.66);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.pipeline-card-signal::after {
  content: "";
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.pipeline-card-signal i {
  display: block;
  height: 7px;
  margin-bottom: -13px;
  border-radius: 999px;
  background: linear-gradient(90deg, #25e1ff, #8a68ff);
  position: relative;
  z-index: 1;
}

.pipeline-ready-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.pipeline-ready-chip {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: rgba(225, 235, 251, 0.8);
  font-size: 11px;
  font-weight: 700;
  white-space: normal;
  overflow-wrap: anywhere;
}

.applications-page .pipeline-app-card .app-card-actions {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px 38px;
  gap: 6px;
  justify-content: stretch;
  margin-top: 2px;
  min-width: 0;
}

.applications-page .pipeline-app-card .app-card-actions .btn-ghost {
  min-width: 0;
  width: 100%;
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.applications-page .pipeline-app-card .pipeline-card-route {
  min-width: 0;
  color: #bff6ff;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

.applications-page .pipeline-add-form {
  min-height: auto;
}

@media (max-width: 1380px) {
  .pipeline-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pipeline-momentum-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pipeline-kanban {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .pipeline-command-center {
    grid-template-columns: 1fr;
  }
  .pipeline-toolbar-row {
    grid-template-columns: 1fr;
  }
  .pipeline-selects {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .applications-command-page {
    gap: 14px;
  }
  .pipeline-command-center,
  .pipeline-action-board,
  .pipeline-board-shell,
  .pipeline-toolbar,
  .pipeline-add-form {
    padding: 16px;
  }
  .pipeline-command-center .page-title {
    font-size: clamp(34px, 11vw, 52px);
  }
  .pipeline-command-actions .btn-primary,
  .pipeline-command-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .pipeline-score-panel,
  .pipeline-score-mini,
  .pipeline-action-grid,
  .pipeline-momentum-strip,
  .pipeline-kanban {
    grid-template-columns: 1fr;
  }
  .pipeline-score-ring {
    width: 116px;
    height: 116px;
  }
  .pipeline-section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .pipeline-action-card {
    min-height: auto;
  }
  .pipeline-search {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .pipeline-search .btn-secondary {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .pipeline-filter-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .pipeline-selects {
    display: grid;
    grid-template-columns: 1fr;
  }
  .pipeline-selects label,
  .pipeline-selects .btn-ghost {
    width: 100%;
  }
  .pipeline-card-meta {
    grid-template-columns: 1fr;
  }
  .applications-page .pipeline-kanban-col {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .pipeline-score-panel {
    grid-template-columns: 1fr;
  }
  .pipeline-score-ring {
    margin: 0 auto;
  }
  .applications-page .pipeline-app-card .app-card-actions {
    grid-template-columns: repeat(3, 1fr);
  }
}

.conv-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.conv-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(120px, 2fr) 60px 80px;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.conv-grid--nocount .conv-row {
  grid-template-columns: minmax(140px, 1fr) minmax(120px, 2fr) 80px;
}
.conv-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text, #e6e9f2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conv-arrow { color: var(--color-text-muted, #8b92a6); font-size: 10px; margin: 0 4px; }
.conv-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.conv-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 260ms ease;
}
.conv-rate {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text, #e6e9f2);
  text-align: right;
}
.conv-count {
  font-size: 11px;
  color: var(--color-text-muted, #8b92a6);
  text-align: right;
}

/* ------ Stale list --------------------------------------------------- */
.stale-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
}
.stale-item {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
.stale-item:hover {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.06);
}
.stale-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stale-body strong {
  color: var(--color-text, #e6e9f2);
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------ Analytics narrow screens ------------------------------------ */
@media (max-width: 820px) {
  .conv-row { grid-template-columns: 1fr auto; }
  .conv-row .conv-track { grid-column: 1 / -1; order: 2; }
  .conv-row .conv-rate { grid-column: 1 / -1; order: 3; text-align: left; }
  .conv-row .conv-count { display: none; }
}

/* =============================================================================
 * Phase E — Identity & premium polish
 * ========================================================================= */

/* ------ Hero refinements --------------------------------------------- */
.hero-title {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
}
.hero-sub {
  margin-top: 8px;
  color: var(--color-text-muted);
  max-width: 62ch;
}
.hero-text { position: relative; z-index: 1; max-width: 720px; }
.hero-actions--stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.hero-cta-secondary {
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  font-size: 13.5px;
}
.palette-kbd-inline {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-muted);
  font-family: var(--font-family-mono);
  font-size: 10.5px;
}
.palette-kbd-inline .kbd-cmd { font-size: 11.5px; }
.hero-streak { align-self: flex-end; }

/* Hero stats strip — 3-cell live dashboard inside the hero. */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 22px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  max-width: 640px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.hero-stat-label {
  font-family: var(--font-family-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-dim);
}
.hero-stat-value {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Topbar: the legacy <input>.topbar-search is replaced with a <button>
 * that looks like a search field but opens the command palette. Reuse
 * the existing topbar-search visual while also handling the button case. */
button.topbar-search-button,
.topbar-search-button {
  appearance: none;
  background: transparent;
  border: none;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.topbar-search-button:focus { outline: none; }
.topbar-search-display {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-dim);
  user-select: none;
  pointer-events: none;
}
.topbar-search-hint {
  color: var(--color-text-dim);
  font-size: 11.5px;
  opacity: 0.75;
}
.topbar-search-button:hover .topbar-search,
.topbar-search-button:focus-visible .topbar-search {
  border-color: rgba(34, 227, 255, 0.4);
  background: rgba(255, 255, 255, 0.045);
}
.topbar-search-kbd .kbd-cmd { font-size: 12px; }
@media (max-width: 680px) {
  .topbar-search-hint { display: none; }
}

/* ------ Cold-start — storyboard + marquee ---------------------------- */
.cold-start {
  padding: var(--space-24);
  overflow: hidden;
}
.cold-start-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.cold-start-title {
  margin: 10px 0 6px;
  font-family: var(--font-family-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.storyboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.storyboard-card {
  padding: 16px;
  border-radius: var(--radius-14);
  border: 1px solid var(--color-border);
  background:
    linear-gradient(180deg, rgba(22, 26, 44, 0.6), rgba(12, 15, 28, 0.6));
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
  transition: border-color var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.storyboard-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 227, 255, 0.3);
}
.storyboard-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.storyboard-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--color-text-muted);
}
.storyboard-meta {
  font-family: var(--font-family-mono);
  font-size: 10.5px;
  color: var(--color-text-dim);
  letter-spacing: 0.05em;
}

.storyboard-visual {
  flex: 1;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 10px;
  overflow: hidden;
}

/* Pipeline preview — four mini stacks. */
.storyboard-visual--pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  align-items: start;
}
.sb-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}
.sb-col-label {
  font-family: var(--font-family-mono);
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-dim);
  text-align: center;
}
.sb-card {
  height: 14px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  opacity: 0.9;
}
.sb-card.cyan    { background: linear-gradient(90deg, rgba(34,227,255,.4),  rgba(34,227,255,.15)); }
.sb-card.violet  { background: linear-gradient(90deg, rgba(176,107,255,.4), rgba(176,107,255,.15)); }
.sb-card.blue    { background: linear-gradient(90deg, rgba(107,125,255,.4), rgba(107,125,255,.15)); }
.sb-card.green   { background: linear-gradient(90deg, rgba(34,197,94,.4),   rgba(34,197,94,.15)); }

/* AI preview — a "resume fragment" with highlighted keywords. */
.storyboard-visual--ai {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}
.sb-line {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}
.sb-line--h { width: 42%; height: 9px; background: rgba(255, 255, 255, 0.15); }
.sb-line--m { width: 88%; }
.sb-line--s { width: 60%; }
.sb-highlight {
  display: inline-block;
  width: max-content;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--font-family-mono);
  font-size: 10px;
  color: #e6eaff;
  background: linear-gradient(90deg, rgba(34, 227, 255, 0.2), rgba(176, 107, 255, 0.22));
  border: 1px solid rgba(34, 227, 255, 0.3);
  box-shadow: 0 0 24px -8px rgba(34, 227, 255, 0.6);
}

/* Analytics preview — 8-bar chart. */
.storyboard-visual--chart {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
  align-items: end;
  padding: 10px 8px;
  min-height: 120px;
}
.sb-bar {
  width: 100%;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, rgba(34, 227, 255, 0.55), rgba(107, 125, 255, 0.2));
  transform-origin: bottom;
}
@media (prefers-reduced-motion: no-preference) {
  .sb-bar { animation: sb-bar-grow 700ms var(--ease-out) both; }
  .sb-bar:nth-child(1) { animation-delay: 0ms; }
  .sb-bar:nth-child(2) { animation-delay: 60ms; }
  .sb-bar:nth-child(3) { animation-delay: 120ms; }
  .sb-bar:nth-child(4) { animation-delay: 180ms; }
  .sb-bar:nth-child(5) { animation-delay: 240ms; }
  .sb-bar:nth-child(6) { animation-delay: 300ms; }
  .sb-bar:nth-child(7) { animation-delay: 360ms; }
  .sb-bar:nth-child(8) { animation-delay: 420ms; }
}
@keyframes sb-bar-grow {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}

/* Provider marquee — slow-scrolling pill row. Proof that job-board
 * coverage is broad without being a wall of logos. */
.provider-marquee {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-12);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  overflow: hidden;
}
.provider-marquee-label {
  font-family: var(--font-family-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-dim);
  white-space: nowrap;
}
.provider-marquee-track {
  display: flex;
  gap: 12px;
  flex: 1;
  min-width: 0;
  will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
  .provider-marquee-track { animation: marquee 32s linear infinite; }
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.provider-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 12.5px;
  font-weight: 550;
  white-space: nowrap;
}
.provider-pill i { color: var(--color-primary); font-size: 11.5px; }

/* ------ Command Palette ---------------------------------------------- */
.palette-root {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  pointer-events: auto;
}
.palette-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 13, 0.6);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-out);
}
.palette-root.is-open .palette-backdrop { opacity: 1; }

.palette-panel {
  position: relative;
  width: min(640px, 96vw);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(34, 227, 255, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(20, 24, 44, 0.95), rgba(12, 14, 28, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-overlay);
  transform: translateY(-12px) scale(0.98);
  opacity: 0;
  transition:
    transform var(--dur-med) var(--ease-spring),
    opacity var(--dur-med) var(--ease-out);
  overflow: hidden;
}
.palette-root.is-open .palette-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.palette-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
.palette-search-icon {
  color: var(--color-primary);
  font-size: 14px;
}
.palette-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-text);
  font-size: 16px;
  font-family: var(--font-family-base);
  padding: 4px 0;
}
.palette-input::placeholder { color: var(--color-text-dim); }
.palette-esc {
  font-family: var(--font-family-mono);
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-muted);
}

.palette-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 6px 10px;
}
.palette-group-title {
  font-family: var(--font-family-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-dim);
  padding: 10px 10px 4px;
}
.palette-item {
  all: unset;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--color-text);
  box-sizing: border-box;
  transition: background var(--dur-fast) var(--ease-out);
}
.palette-item.is-selected {
  background: linear-gradient(90deg, rgba(34, 227, 255, 0.12), rgba(107, 125, 255, 0.08));
  box-shadow: inset 0 0 0 1px rgba(34, 227, 255, 0.25);
}
.palette-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--color-primary);
  font-size: 12.5px;
  flex: 0 0 auto;
}
.palette-item.is-selected .palette-icon {
  background: rgba(34, 227, 255, 0.12);
  border-color: rgba(34, 227, 255, 0.35);
}
.palette-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.palette-text strong {
  font-weight: 550;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.palette-sub {
  font-size: 11.5px;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.palette-hint,
.palette-enter {
  font-family: var(--font-family-mono);
  font-size: 10.5px;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
  flex: 0 0 auto;
}
.palette-enter {
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.palette-item.is-selected .palette-enter { opacity: 1; color: var(--color-primary); }

.palette-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--color-text-muted);
}
.palette-empty i {
  font-size: 32px;
  color: var(--color-text-dim);
  margin-bottom: 10px;
  display: block;
}

.palette-footer {
  display: flex;
  gap: 18px;
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--color-text-dim);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.015);
}
.palette-footer kbd {
  font-family: var(--font-family-mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-muted);
  margin: 0 3px;
}

/* ------ Motion: stagger-in ------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .stagger-in {
    animation: stagger-rise 520ms var(--ease-out) both;
    animation-delay: var(--stagger-delay, 0ms);
  }
}
@keyframes stagger-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ------ Sparkline stroke draw-in ------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .kpi-sparkline .spark-line {
    stroke-dasharray: 320;
    stroke-dashoffset: 320;
    animation: spark-draw 900ms var(--ease-out) forwards;
  }
}
@keyframes spark-draw { to { stroke-dashoffset: 0; } }

/* ------ Responsive clamps for Phase E additions --------------------- */
@media (max-width: 960px) {
  .storyboard { grid-template-columns: 1fr; }
  .hero-actions--stack { align-items: stretch; width: 100%; }
  .hero-actions--stack .btn-primary,
  .hero-actions--stack .btn-secondary { width: 100%; justify-content: center; }
}
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .provider-marquee { flex-direction: column; align-items: flex-start; }
}

/* =====================================================================
   Resume Lab — Phase 1 (upload, parse, structured editor)
   ===================================================================== */

.resume-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ---------- Empty state / upload hero ---------- */
.resume-empty {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 48px;
  align-items: center;
  padding: 32px 0 16px;
}
.resume-empty-copy .eyebrow {
  color: var(--color-primary);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin: 0 0 12px;
}
.resume-empty-copy .page-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  margin: 0 0 14px;
  font-family: var(--font-family-display, inherit);
}
.resume-empty-copy .page-subtitle {
  font-size: 16px;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.7));
  max-width: 52ch;
  margin: 0 0 24px;
}
.resume-empty-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.resume-empty-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.78));
  font-size: 14px;
}
.resume-empty-bullets li i {
  color: var(--color-primary);
  width: 18px;
  text-align: center;
}

.resume-drop {
  position: relative;
  border: 2px dashed rgba(34, 227, 255, 0.3);
  border-radius: 20px;
  padding: 40px 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 227, 255, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}
.resume-drop:hover {
  border-color: rgba(34, 227, 255, 0.55);
}
.resume-drop.is-dragover {
  border-color: var(--color-primary);
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 227, 255, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(34, 227, 255, 0.08), rgba(34, 227, 255, 0.02));
  transform: translateY(-2px);
}
.resume-drop-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.resume-drop-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(34, 227, 255, 0.18), rgba(176, 107, 255, 0.18));
  border: 1px solid rgba(34, 227, 255, 0.3);
  color: var(--color-primary);
  font-size: 28px;
  margin-bottom: 4px;
}
.resume-drop h3 {
  margin: 0;
  font-size: 20px;
  font-family: var(--font-family-display, inherit);
}
.resume-drop-hint {
  margin: 0;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.65));
  font-size: 13px;
}
.resume-drop-divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  margin: 6px 0 2px;
}
.resume-drop-divider::before,
.resume-drop-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}
.resume-drop-error {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 80, 120, 0.1);
  border: 1px solid rgba(255, 80, 120, 0.3);
  color: #ffaebb;
  font-size: 13px;
}

/* ---------- Paste dialog ---------- */
.resume-dialog {
  border: none;
  background: transparent;
  padding: 0;
  max-width: min(640px, 94vw);
  color: inherit;
}
.resume-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}
.resume-dialog-inner {
  background: linear-gradient(180deg, #121624, #0b0d18);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 32px 80px -28px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.resume-dialog-inner header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.resume-dialog-inner header h3 {
  margin: 0;
  font-size: 18px;
  font-family: var(--font-family-display, inherit);
}
.resume-dialog-sub {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.65));
}
.resume-dialog-inner textarea {
  width: 100%;
  min-height: 240px;
  resize: vertical;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: inherit;
  font-family: var(--font-family-base, inherit);
  font-size: 14px;
  line-height: 1.5;
}
.resume-dialog-inner footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ---------- Parsing state ---------- */
.resume-parsing {
  display: grid;
  place-items: center;
  padding: 60px 0;
}
.resume-parsing-card {
  width: min(560px, 96%);
  padding: 40px 32px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18, 22, 36, 0.95), rgba(11, 13, 24, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  text-align: center;
}
.resume-parsing-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(34, 227, 255, 0.18), rgba(176, 107, 255, 0.18));
  border: 1px solid rgba(34, 227, 255, 0.3);
  color: var(--color-primary);
  font-size: 20px;
}
.resume-parsing-card h2 {
  margin: 8px 0 4px;
  font-size: 22px;
  font-family: var(--font-family-display, inherit);
}
.resume-parsing-sub {
  margin: 0 0 22px;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.6));
  font-size: 13px;
  font-family: var(--font-family-mono, monospace);
}
.resume-steps {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  max-width: 320px;
}
.resume-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--color-text-dim, rgba(255, 255, 255, 0.55));
  font-size: 14px;
  transition: all 200ms ease;
}
.resume-step.active {
  background: rgba(34, 227, 255, 0.1);
  border-color: rgba(34, 227, 255, 0.3);
  color: inherit;
}
.resume-step.done {
  color: rgba(255, 255, 255, 0.85);
}
.resume-step-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}
.resume-step.done .resume-step-icon {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.4);
  color: #34d399;
}
.resume-step.active .resume-step-icon {
  background: rgba(34, 227, 255, 0.18);
  border-color: rgba(34, 227, 255, 0.4);
  color: var(--color-primary);
}
.resume-parsing-detail {
  margin-top: 18px;
  font-size: 12px;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.55));
  font-family: var(--font-family-mono, monospace);
}

/* ---------- Editor layout ---------- */
.resume-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.resume-toolbar-title .eyebrow {
  color: var(--color-primary);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 4px;
}
.resume-toolbar-title .page-title {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-family: var(--font-family-display, inherit);
}
.resume-meta-line {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.55));
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.resume-meta-updated {
  font-family: var(--font-family-mono, monospace);
  font-size: 12px;
}
.resume-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.resume-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}
.resume-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.resume-side {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- Resume section cards ---------- */
.resume-section {
  padding: 20px 22px;
}
.resume-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.resume-section-head h2,
.resume-section-head h3 {
  margin: 0;
  font-size: 16px;
  font-family: var(--font-family-display, inherit);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.resume-section-head h2 i,
.resume-section-head h3 i {
  color: var(--color-primary);
  font-size: 14px;
}

.resume-section label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.6));
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.resume-section input[type="text"],
.resume-section input[type="email"],
.resume-section input[type="tel"],
.resume-section input[type="url"],
.resume-section textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
  font-family: var(--font-family-base, inherit);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.5;
  transition: border-color 160ms ease, background 160ms ease;
}
.resume-section input:focus,
.resume-section textarea:focus {
  outline: none;
  border-color: rgba(34, 227, 255, 0.5);
  background: rgba(0, 0, 0, 0.35);
}
.resume-section input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.resume-section textarea {
  resize: vertical;
  min-height: 60px;
}

.resume-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.resume-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}
.resume-grid-full {
  grid-column: 1 / -1;
}

/* Links row in header */
.resume-links {
  margin-top: 6px;
}
.resume-links-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.6));
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.link-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

/* Entries (experience, education, projects) */
.resume-entry {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.resume-entry:last-child {
  margin-bottom: 0;
}
.resume-entry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.resume-entry-title-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.resume-entry-title {
  font-size: 16px !important;
  font-weight: 600 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  padding: 4px 6px !important;
  margin-left: -6px;
  text-transform: none !important;
  letter-spacing: normal !important;
}
.resume-entry-title:hover,
.resume-entry-title:focus {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
.resume-entry-subtitle {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.7)) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  padding: 4px 6px !important;
  margin-left: -6px;
}
.resume-entry-subtitle:hover,
.resume-entry-subtitle:focus {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
.resume-entry-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.resume-entry-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}
.resume-current-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  text-transform: none !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.7)) !important;
}
.resume-current-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
}

/* Bullet list */
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bullet-row {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 8px;
  align-items: start;
}
.bullet-dot {
  color: var(--color-primary);
  font-size: 8px;
  margin-top: 12px;
}
.bullet-row textarea {
  min-height: 40px;
  resize: vertical;
}

/* R3: inline AI suggestion chip + popover.
 *
 * The bullet row is a 3-col grid (dot · textarea · buttons). The chip
 * and popover slot in as additional grid items that span the full row,
 * landing on the next implicit grid line so the existing layout above
 * doesn't shift. The chip is small and right-aligned so it feels like
 * an inline affordance rather than another action button.
 */
.bullet-ai-chip {
  grid-column: 1 / -1;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 4px 9px 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(34, 227, 255, 0.4);
  background: rgba(34, 227, 255, 0.08);
  color: #67eaff;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.bullet-ai-chip:hover {
  background: rgba(34, 227, 255, 0.16);
  border-color: rgba(34, 227, 255, 0.6);
  color: #9ef0ff;
}
.bullet-ai-chip.is-open {
  background: linear-gradient(135deg, rgba(34, 227, 255, 0.22), rgba(99, 102, 241, 0.22));
  border-color: rgba(34, 227, 255, 0.7);
  color: #f8fbff;
}
.bullet-ai-chip > i { font-size: 11px; }
.bullet-ai-chip-label {
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.bullet-ai-chip-caret { font-size: 9px; opacity: 0.75; }

.bullet-ai-popover {
  grid-column: 1 / -1;
  position: relative;
  margin-top: 8px;
  padding: 14px 14px 12px;
  border-radius: 12px;
  border: 1px solid rgba(34, 227, 255, 0.32);
  background: rgba(10, 14, 26, 0.92);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bullet-ai-popover-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}
.bullet-ai-popover-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fbff;
}

.bullet-ai-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bullet-ai-section + .bullet-ai-section {
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}
.bullet-ai-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 32px; /* leave room for the close button */
}
.bullet-ai-section-foot {
  margin-top: 2px;
  display: flex;
  justify-content: flex-end;
}

/* Each option = a card (R2's renderRewriteOptionCard) + an Apply button
 * row underneath. The card brings its own internal styles (.critique-
 * bullet-after, .rewrite-head, etc) — we just stack them tightly here. */
.bullet-ai-option {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bullet-ai-option-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

/* R4: track-changes preview view.
 *
 * Replaces the textarea + icon buttons when view.preview targets this
 * bullet. Spans the full bullet-row grid so the layout doesn't fight
 * the existing 3-col structure. Old text gets a strikethrough; new
 * text gets a green inset for clarity. Accept / Cancel actions sit at
 * the bottom right. The popover stays open above so the user can
 * preview a different option without restarting.
 */
.bullet-row.is-previewing {
  background: rgba(34, 227, 255, 0.04);
  border-radius: 10px;
  padding: 8px;
}
.bullet-preview {
  grid-column: 2 / -1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(34, 227, 255, 0.32);
  background: rgba(10, 14, 26, 0.72);
}
.bullet-preview-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bullet-preview-diff {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 720px) {
  .bullet-preview-diff {
    grid-template-columns: 1fr 1fr;
  }
}
.bullet-preview-old,
.bullet-preview-new {
  padding: 9px 11px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bullet-preview-old {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}
.bullet-preview-new {
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.32);
}
.bullet-preview-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}
.bullet-preview-new .bullet-preview-label { color: #9ae9bf; }
.bullet-preview-old p,
.bullet-preview-new p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #f8fbff;
}
.bullet-preview-old s {
  color: rgba(255, 255, 255, 0.55);
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(239, 68, 68, 0.55);
}
.bullet-preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

/* Highlight the option in the popover that is currently being previewed
 * so the user sees the connection between the popover card and the
 * before/after view in the bullet. */
.bullet-ai-option.is-previewing {
  outline: 1px solid rgba(34, 227, 255, 0.5);
  outline-offset: 2px;
  border-radius: 10px;
}

/* R5: AI Review Queue card + walkthrough indicators.
 *
 * Sits in the sidebar between Fix Queue and Missing Evidence. Shows
 * every pending bullet-targeted suggestion (critique + tailor) as a
 * compact row, ordered by severity. The "Review all" button kicks off
 * the walkthrough state — when active, the card header swaps for a
 * Step X of Y indicator + Skip/End controls.
 */
.resume-review-queue-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.resume-review-queue-card--empty .muted {
  font-size: 12.5px;
  line-height: 1.45;
}
.resume-review-actions {
  display: flex;
}
.resume-review-actions .btn-primary {
  width: 100%;
  justify-content: center;
}
.resume-review-walkthrough {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(34, 227, 255, 0.08);
  border: 1px solid rgba(34, 227, 255, 0.28);
}
.resume-review-walkthrough .chip { flex-shrink: 0; }
.resume-review-walkthrough .btn-ghost { margin-left: auto; }

.resume-review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.resume-review-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  align-items: start;
  padding: 9px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.resume-review-row:hover {
  background: rgba(34, 227, 255, 0.06);
  border-color: rgba(34, 227, 255, 0.18);
}
.resume-review-icon {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 3px;
}
.resume-review-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.resume-review-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.resume-review-label-hint {
  font-size: 11px;
  color: #67eaff;
  font-weight: 500;
}
.resume-review-snippet {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.resume-review-headline {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Skills groups */
.skill-group {
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 10px;
}
.skill-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.skill-group-label {
  flex: 1;
  font-weight: 600 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  padding: 4px 6px !important;
  margin-left: -6px;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-size: 14px !important;
}
.skill-group-label:hover,
.skill-group-label:focus {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  min-height: 8px;
}
.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 10px;
  border-radius: 999px;
  background: rgba(34, 227, 255, 0.1);
  border: 1px solid rgba(34, 227, 255, 0.25);
  font-size: 12px;
  color: #bdf4ff;
}
.skill-chip-remove {
  background: transparent;
  border: none;
  padding: 2px 4px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  border-radius: 50%;
  transition: background 150ms ease;
}
.skill-chip-remove:hover {
  background: rgba(255, 80, 120, 0.2);
  color: #ff8294;
}
.skill-add-row input {
  font-size: 13px !important;
}

/* Icon buttons */
.icon-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: all 150ms ease;
  font-size: 12px;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  border-color: rgba(255, 255, 255, 0.15);
}
.icon-btn.danger:hover {
  background: rgba(255, 80, 120, 0.12);
  color: #ff8294;
  border-color: rgba(255, 80, 120, 0.3);
}

/* .btn-ghost is defined in layout.css; we just override sizing for resume lab use */
.resume-page .btn-ghost,
.resume-dialog .btn-ghost {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: inherit;
}
.resume-page .btn-ghost:hover,
.resume-dialog .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-sm {
  padding: 5px 10px !important;
  font-size: 12px !important;
}

.muted {
  color: var(--color-text-dim, rgba(255, 255, 255, 0.45));
  font-size: 13px;
  margin: 0;
  font-style: italic;
}

/* ---------- Sidebar cards ---------- */
.resume-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resume-scorecard {
  padding: 18px 20px;
}
.resume-scorecard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.resume-scorecard-head .eyebrow {
  font-size: 10px;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin: 0 0 2px;
}
.resume-scorecard-head h3 {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  font-family: var(--font-family-display, inherit);
  line-height: 1;
}
.resume-scorecard-max {
  font-size: 15px;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.45));
  font-weight: 500;
  margin-left: 2px;
}
.resume-ring svg {
  display: block;
}
.resume-ring .ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3;
}
.resume-ring .ring-fill {
  fill: none;
  stroke: url(#resumeRingGrad);
  stroke: var(--color-primary);
  stroke-width: 3;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dasharray 600ms ease;
}
.resume-missing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.resume-missing-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.75));
}
.resume-missing-list li i {
  color: #ffb454;
  font-size: 12px;
}
.resume-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.resume-stats > div {
  font-size: 12px;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.6));
}
.resume-stats span {
  color: inherit;
  font-size: 18px;
  font-weight: 600;
  display: block;
}

.resume-tailor {
  padding: 18px 20px;
}
.resume-tailor .form-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.resume-tailor label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.6));
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.resume-tailor input,
.resume-tailor textarea {
  padding: 9px 11px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: inherit;
  font-family: var(--font-family-base, inherit);
  font-size: 13px;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}
.resume-tailor .form-actions {
  margin-top: 4px;
}
.resume-tailor .btn-primary {
  width: 100%;
  justify-content: center;
}
.resume-tailor-empty {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}
.resume-tailor-result {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
  margin-top: 4px;
}
.resume-tailor-result h4 {
  margin: 14px 0 6px;
  font-size: 11px;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.resume-tailor-result h4:first-child {
  margin-top: 0;
}
.resume-tailor-result p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.55;
}
.resume-tailor-result .task-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
}
.resume-tailor-result .task-list li {
  margin-bottom: 6px;
}
.resume-tailor-meta {
  margin-bottom: 10px;
}
.chip-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}
.chip-cluster .chip {
  font-size: 11px;
}
.resume-tailor-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.resume-raw-card {
  padding: 16px 18px;
}
.resume-raw-text {
  margin: 10px 0 0;
  padding: 12px;
  max-height: 280px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-family: var(--font-family-mono, monospace);
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.55));
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .resume-layout {
    grid-template-columns: 1fr;
  }
  .resume-side {
    position: static;
  }
}
@media (max-width: 760px) {
  .resume-empty {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .resume-grid-2,
  .resume-grid-3 {
    grid-template-columns: 1fr;
  }
  .link-row {
    grid-template-columns: 1fr auto;
  }
  .link-row input:first-child {
    grid-column: 1 / -1;
  }
}

/* ============================================================ */
/* Resume Lab - AI Critique card (Phase 2)                      */
/* ============================================================ */
.resume-critique {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.resume-critique .ai-meta,
.resume-critique .ai-error {
  margin: 0;
  font-size: 13px;
}
.resume-critique .ai-error {
  color: #ffb4b4;
}
.resume-critique .muted {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.65));
  line-height: 1.55;
}
.resume-critique-empty .critique-run-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
}
.resume-critique-empty .critique-run-row input {
  padding: 10px 12px;
  font-size: 13px;
  border-radius: 10px;
  background: rgba(12, 18, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text, #fff);
  min-width: 0;
}
.resume-critique-empty .critique-run-row input:focus {
  outline: none;
  border-color: var(--color-accent, #7cf0ff);
  box-shadow: 0 0 0 3px rgba(124, 240, 255, 0.18);
}

/* Score ring + sub-scores */
.critique-score-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}
.critique-score-ring {
  position: relative;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
}
.critique-score-ring svg {
  transform: rotate(-90deg);
}
.critique-score-ring .ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3.2;
}
.critique-score-ring .ring-fill {
  fill: none;
  stroke: var(--color-accent, #7cf0ff);
  stroke-width: 3.2;
  stroke-linecap: round;
  transition: stroke-dasharray 600ms cubic-bezier(0.22, 0.88, 0.3, 1);
}
.critique-score-ring.is-good .ring-fill { stroke: #6de2a2; }
.critique-score-ring.is-ok .ring-fill   { stroke: #f6c15a; }
.critique-score-ring.is-bad .ring-fill  { stroke: #ff7a87; }
.critique-score-num {
  position: absolute;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text, #fff);
  line-height: 1;
}

.critique-subscores {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.subscore-row {
  display: grid;
  grid-template-columns: 90px 1fr 28px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.subscore-label {
  color: var(--color-text-dim, rgba(255, 255, 255, 0.68));
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.subscore-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}
.subscore-fill {
  height: 100%;
  background: var(--color-accent, #7cf0ff);
  border-radius: 4px;
  transition: width 600ms cubic-bezier(0.22, 0.88, 0.3, 1);
}
.subscore-row.is-good .subscore-fill { background: #6de2a2; }
.subscore-row.is-ok .subscore-fill   { background: #f6c15a; }
.subscore-row.is-bad .subscore-fill  { background: #ff7a87; }
.subscore-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--color-text, #fff);
  font-weight: 600;
}

.critique-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.critique-section-title {
  margin: 6px 0 -2px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.6));
  display: flex;
  align-items: center;
  gap: 8px;
}
.chip-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  background: rgba(124, 240, 255, 0.12);
  border: 1px solid rgba(124, 240, 255, 0.3);
  font-size: 10px;
  font-weight: 700;
  color: var(--color-accent, #7cf0ff);
  letter-spacing: 0;
}

.critique-strengths {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.critique-strengths li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text, rgba(255, 255, 255, 0.9));
}
.critique-strengths li i {
  color: #6de2a2;
  margin-top: 3px;
  font-size: 11px;
}

/* Issues list */
.critique-issues {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.critique-issue {
  padding: 12px 12px;
  border-radius: 12px;
  background: rgba(16, 22, 32, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.critique-issue.sev-critical { border-left-color: #ff6b7a; background: rgba(50, 20, 26, 0.45); }
.critique-issue.sev-major    { border-left-color: #f6c15a; background: rgba(42, 32, 16, 0.45); }
.critique-issue.sev-minor    { border-left-color: #7cf0ff; }

.critique-issue-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.critique-sev {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text, #fff);
}
.critique-sev.sev-critical { background: rgba(255, 107, 122, 0.18); color: #ffb4bc; }
.critique-sev.sev-major    { background: rgba(246, 193, 90, 0.18); color: #ffd686; }
.critique-sev.sev-minor    { background: rgba(124, 240, 255, 0.15); color: #a5f1ff; }
.critique-section {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.55));
}
.critique-message {
  margin: 0;
  font-size: 13.5px;
  color: var(--color-text, #fff);
  line-height: 1.5;
  font-weight: 600;
}
.critique-suggestion {
  margin: 0;
  font-size: 12.5px;
  /* Critique cards use dark tinted surfaces; global --color-text-dim (#5a6179) fails contrast here. */
  color: rgba(233, 236, 248, 0.9);
  line-height: 1.5;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.critique-suggestion i {
  color: #f6c15a;
  margin-top: 2px;
}

.critique-bullet-before,
.critique-bullet-after {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 20, 0.5);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.critique-bullet-after {
  border-style: solid;
  border-color: rgba(109, 226, 162, 0.28);
  background: rgba(20, 40, 30, 0.35);
}
.critique-bullet-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.5));
  font-weight: 700;
}
.critique-bullet-after .critique-bullet-label { color: #9ae9bf; }
.critique-bullet-before p,
.critique-bullet-after p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--color-text, #fff);
}
.critique-bullet-before p { color: var(--color-text-dim, rgba(255, 255, 255, 0.7)); }

/* R2: per-option metadata header + improvement chips + summary line.
 * Rendered inside .critique-bullet-after when the AI emits optionMeta. */
.rewrite-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.rewrite-improvements {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
.rewrite-chip {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  line-height: 1.2;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid;
  font-weight: 500;
  white-space: nowrap;
}
.rewrite-chip--add {
  color: #86efac;
  border-color: rgba(74, 222, 128, 0.36);
  background: rgba(74, 222, 128, 0.08);
}
.rewrite-chip--qual {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(148, 163, 184, 0.06);
}
.rewrite-why {
  margin: 6px 0 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.6));
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.rewrite-why i {
  color: #fbbf24;
  font-size: 11px;
  margin-top: 2px;
  flex-shrink: 0;
}

.critique-issue-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2px;
}
.critique-applied-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(109, 226, 162, 0.16);
  border: 1px solid rgba(109, 226, 162, 0.32);
  color: #9ae9bf;
  font-size: 11.5px;
  font-weight: 600;
}

.critique-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 2px;
}

/* Flash when jumping into a section */
.section-flash {
  animation: section-flash-kf 1.5s ease-out;
}
@keyframes section-flash-kf {
  0%   { box-shadow: 0 0 0 0 rgba(124, 240, 255, 0.55); }
  40%  { box-shadow: 0 0 0 6px rgba(124, 240, 255, 0.22); }
  100% { box-shadow: 0 0 0 0 rgba(124, 240, 255, 0); }
}

/* ============================================================ */
/* Resume Lab - Phase 3: Mode toggle + Tailor workspace         */
/* ============================================================ */
.resume-toolbar {
  align-items: flex-start;
}
.resume-mode-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(12, 18, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  align-self: center;
  margin: 0 auto;
}
.resume-mode-toggle .mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 9px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.7));
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
  white-space: nowrap;
}
.resume-mode-toggle .mode-btn:hover {
  color: var(--color-text, #fff);
  background: rgba(255, 255, 255, 0.03);
}
.resume-mode-toggle .mode-btn.is-active {
  background: linear-gradient(135deg, rgba(124, 240, 255, 0.18), rgba(168, 136, 255, 0.14));
  border-color: rgba(124, 240, 255, 0.32);
  color: var(--color-text, #fff);
  box-shadow: 0 0 0 1px rgba(124, 240, 255, 0.12), 0 8px 24px -18px rgba(124, 240, 255, 0.55);
}
.resume-mode-toggle .mode-btn i {
  font-size: 13px;
}
.mode-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6de2a2;
  box-shadow: 0 0 0 3px rgba(109, 226, 162, 0.18);
  margin-left: 2px;
}

/* Tailor-mode side panel: drop sticky because workspace can be tall */
.resume-layout.is-tailor-mode .resume-side-tailor {
  position: static;
  gap: 14px;
}
/* Make the tailor column a bit wider for comfortable reading */
.resume-layout.is-tailor-mode {
  grid-template-columns: minmax(0, 1fr) 420px;
}
@media (max-width: 1120px) {
  .resume-layout.is-tailor-mode {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}
.resume-tailor-workspace {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* JD input card */
.tailor-jd-card .form-grid label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.6));
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tailor-jd-card input[type="text"],
.tailor-jd-card textarea {
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  border-radius: 10px;
  background: rgba(12, 18, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text, #fff);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.tailor-jd-card textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}
.tailor-jd-card input[type="text"]:focus,
.tailor-jd-card textarea:focus {
  outline: none;
  border-color: var(--color-accent, #7cf0ff);
  box-shadow: 0 0 0 3px rgba(124, 240, 255, 0.18);
}
.tailor-jd-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.tailor-role-hint {
  margin: -2px 0 2px;
  font-size: 12px;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.68));
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.quick-critique-toggle {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--color-text, #fff) !important;
}
.quick-critique-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

/* JD analysis card */
.tailor-jd-analysis .resume-section-head {
  margin-bottom: 10px;
}
.tailor-jd-analysis .chip-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.coverage-summary {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(10, 14, 22, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin: 4px 0 10px;
}
.coverage-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}
.coverage-fill {
  height: 100%;
  background: var(--color-accent, #7cf0ff);
  border-radius: 6px;
  transition: width 700ms cubic-bezier(0.22, 0.88, 0.3, 1);
}
.coverage-summary.is-good .coverage-fill { background: #6de2a2; }
.coverage-summary.is-ok   .coverage-fill { background: #f6c15a; }
.coverage-summary.is-bad  .coverage-fill { background: #ff7a87; }
.coverage-label {
  margin: 0;
  font-size: 13px;
  color: var(--color-text, #fff);
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.coverage-label .num-font {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.coverage-label .muted {
  font-size: 12px;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.6));
}

.coverage-chip-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 4px;
}
.coverage-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.coverage-chip i { font-size: 10px; }
.coverage-matched {
  background: rgba(109, 226, 162, 0.14);
  color: #9ae9bf;
  border: 1px solid rgba(109, 226, 162, 0.28);
}
.coverage-missing {
  background: rgba(246, 193, 90, 0.12);
  color: #ffd686;
  border: 1px solid rgba(246, 193, 90, 0.26);
}

.tailor-plan-cta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: flex-start;
}

/* Tailor plan card */
.tailor-plan-empty {
  text-align: left;
}
.tailor-fit-notes {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(124, 240, 255, 0.06);
  border: 1px solid rgba(124, 240, 255, 0.18);
  color: var(--color-text, #fff);
  font-size: 12.5px;
  line-height: 1.5;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.tailor-fit-notes i {
  color: var(--color-accent, #7cf0ff);
  margin-top: 3px;
}

.plan-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.plan-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-section-head h4 {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.65));
  display: flex;
  align-items: center;
  gap: 6px;
}
.plan-section-head h4 i {
  color: var(--color-accent, #7cf0ff);
}

.tailor-bullets { gap: 10px; }
.tailor-bullet .critique-sev.sev-minor {
  background: rgba(124, 240, 255, 0.18);
  color: #a5f1ff;
}

.tailor-skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tailor-skill-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(16, 22, 32, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tailor-skill-item strong {
  font-size: 14px;
  color: var(--color-text, #fff);
  margin-right: 8px;
}
.tailor-skill-evidence {
  margin: 0;
  font-size: 12px;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.7));
  line-height: 1.5;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.tailor-skill-evidence i {
  margin-top: 3px;
  color: var(--color-accent, #7cf0ff);
}
.tailor-skill-evidence.warn i {
  color: #f6c15a;
}

.resume-tailor-hint {
  background: linear-gradient(135deg, rgba(124, 240, 255, 0.06), rgba(168, 136, 255, 0.04));
  border: 1px solid rgba(124, 240, 255, 0.16);
}
.resume-tailor-hint p {
  margin: 6px 0 10px;
}
.resume-tailor-hint .btn-primary.btn-sm {
  align-self: flex-start;
}

/* Tailor mode tweaks: keep the side panel sticky so the resume can scroll */
.resume-layout.is-tailor-mode {
  align-items: flex-start;
}
@media (max-width: 960px) {
  .resume-mode-toggle {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .resume-toolbar {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* ============================================================ */
/* Resume Lab - Phase 4: Export dialog + templates              */
/* ============================================================ */
.export-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 14, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 28px;
  animation: export-fade-in 180ms ease-out;
}
@keyframes export-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.export-dialog {
  width: min(1180px, 100%);
  max-height: calc(100vh - 56px);
  background: linear-gradient(180deg, rgba(14, 20, 32, 0.98), rgba(9, 13, 22, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(124, 240, 255, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: export-rise 220ms cubic-bezier(0.22, 0.88, 0.3, 1);
}
@keyframes export-rise {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.export-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.export-dialog-head .eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent, #7cf0ff);
}
.export-dialog-head h2 {
  margin: 0 0 4px;
  font-size: 22px;
  font-family: var(--font-family-display, inherit);
  letter-spacing: -0.01em;
}
.export-dialog-head .muted {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.6));
}
.export-dialog-head .icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-dim, rgba(255, 255, 255, 0.7));
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms ease, color 180ms ease;
}
.export-dialog-head .icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text, #fff);
}

.export-dialog-body {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 300px;
  gap: 0;
  flex: 1;
  min-height: 0;
}
.export-templates,
.export-options {
  padding: 22px 20px;
  overflow-y: auto;
  min-height: 0;
}
.export-templates {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.export-options {
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}
.export-preview {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  background: rgba(6, 9, 16, 0.35);
}

.export-panel-title {
  margin: 0 0 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.55));
}

/* Template cards */
.tpl-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tpl-card {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(16, 22, 32, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--color-text, #fff);
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.tpl-card:hover {
  background: rgba(20, 28, 40, 0.6);
  border-color: rgba(124, 240, 255, 0.22);
}
.tpl-card.is-active {
  background: linear-gradient(135deg, rgba(124, 240, 255, 0.08), rgba(168, 136, 255, 0.06));
  border-color: rgba(124, 240, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(124, 240, 255, 0.12), 0 12px 32px -22px rgba(124, 240, 255, 0.5);
}
.tpl-card-thumb {
  width: 70px;
  height: 94px;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tpl-card-thumb svg {
  width: 100%;
  height: 100%;
  display: block;
}
.tpl-card-body h4 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
}
.tpl-tagline {
  margin: 0 0 4px;
  font-size: 11px;
  color: var(--color-accent, #7cf0ff);
  font-weight: 600;
}
.tpl-description {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.6));
}
.tpl-card-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent, #7cf0ff);
  color: #051018;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* Preview iframe */
.export-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.export-preview-head .export-panel-title {
  margin: 0;
}
.export-preview-frame {
  flex: 1;
  min-height: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #fff;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.export-preview-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Options panel */
.export-option {
  margin-bottom: 18px;
}
.export-option > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.6));
  margin-bottom: 8px;
}
.export-option .muted {
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.55));
}

.seg-control {
  display: inline-flex;
  padding: 3px;
  background: rgba(12, 18, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  gap: 2px;
  width: 100%;
}
.seg-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 7px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.7));
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.seg-btn:hover { color: var(--color-text, #fff); }
.seg-btn.is-active {
  background: linear-gradient(135deg, rgba(124, 240, 255, 0.18), rgba(168, 136, 255, 0.14));
  border-color: rgba(124, 240, 255, 0.32);
  color: var(--color-text, #fff);
}

input[type="range"]#export-font-size {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}
input[type="range"]#export-font-size::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent, #7cf0ff);
  border: 2px solid #081018;
  box-shadow: 0 0 0 1px rgba(124, 240, 255, 0.45);
  cursor: pointer;
}
input[type="range"]#export-font-size::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent, #7cf0ff);
  border: 2px solid #081018;
  cursor: pointer;
}

.accent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
input[type="color"]#export-accent {
  width: 40px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  padding: 0;
  cursor: pointer;
}
input[type="color"]#export-accent::-webkit-color-swatch-wrapper { padding: 2px; }
input[type="color"]#export-accent::-webkit-color-swatch { border-radius: 6px; border: none; }
.accent-code {
  font-family: var(--font-family-mono, monospace);
  font-size: 11px;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.65));
  background: rgba(12, 18, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 8px;
  border-radius: 6px;
}
.accent-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  padding: 0;
  transition: transform 180ms ease, border-color 180ms ease;
}
.swatch:hover { transform: scale(1.1); }
.swatch.is-active {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(124, 240, 255, 0.4);
}

.export-filename-row {
  padding: 10px 12px;
  background: rgba(12, 18, 28, 0.6);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.export-filename-row label {
  margin-bottom: 4px;
}
.export-filename {
  display: block;
  font-family: var(--font-family-mono, monospace);
  font-size: 11px;
  color: var(--color-text, rgba(255, 255, 255, 0.85));
  word-break: break-all;
}

.export-status {
  margin: 8px 0;
  font-size: 12.5px;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.7));
  display: flex;
  gap: 8px;
  align-items: center;
}
.export-error {
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 107, 122, 0.08);
  border: 1px solid rgba(255, 107, 122, 0.22);
  color: #ffb4bc;
  font-size: 12.5px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.export-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 10px;
}
.export-actions button {
  justify-content: center;
  width: 100%;
}
.export-tip {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.55));
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.export-tip i { color: var(--color-accent, #7cf0ff); margin-top: 3px; }

/* Responsive — stack panels on smaller screens */
@media (max-width: 1080px) {
  .export-dialog-body {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .export-options {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    max-height: 280px;
  }
}
@media (max-width: 760px) {
  .export-dialog-body {
    grid-template-columns: 1fr;
  }
  .export-templates,
  .export-options {
    max-height: 260px;
  }
  .export-preview {
    min-height: 280px;
  }
}

/* ============================================================ */
/* Phase 4B — Editor: photo picker, interests, references       */
/* ============================================================ */
.resume-header-top {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 14px;
}

.photo-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.photo-frame {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 2px dashed rgba(124, 240, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 200ms ease, background 200ms ease;
}

.photo-frame.has-photo {
  border-style: solid;
  border-color: rgba(124, 240, 255, 0.45);
  background: #fff;
  box-shadow: 0 10px 28px -16px rgba(124, 240, 255, 0.45);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-frame .photo-mono {
  font-size: 48px;
  font-weight: 200;
  letter-spacing: 0.04em;
  color: var(--color-accent, #7cf0ff);
  font-family: var(--font-family-display, inherit);
}

.photo-frame .photo-placeholder {
  font-size: 40px;
  color: rgba(255, 255, 255, 0.22);
}

.photo-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  width: 100%;
}

.photo-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.photo-actions .muted.tiny {
  font-size: 10.5px;
  text-align: center;
  margin: 2px 0 0;
  line-height: 1.4;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.5));
}

.resume-header-fields {
  min-width: 0;
}

.resume-extras {
  margin: 14px 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.resume-extras > summary {
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
  font-size: 12.5px;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.7));
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  user-select: none;
}
.resume-extras > summary::-webkit-details-marker { display: none; }

.resume-extras[open] > summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.resume-extras[open] > summary i.fa-chevron-right {
  transform: rotate(90deg);
}
.resume-extras > summary i.fa-chevron-right {
  transition: transform 160ms ease;
  font-size: 10px;
  color: var(--color-accent, #7cf0ff);
}

.resume-extras > summary .muted {
  font-weight: 400;
  text-transform: none;
}

.resume-extras > .resume-grid-3 {
  padding: 14px;
}

/* Interests — chips */
.interest-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.interest-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  background: rgba(124, 240, 255, 0.08);
  border: 1px solid rgba(124, 240, 255, 0.25);
  color: var(--color-text, #fff);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  transition: background 160ms ease, border-color 160ms ease;
}
.interest-chip:hover {
  background: rgba(124, 240, 255, 0.12);
  border-color: rgba(124, 240, 255, 0.4);
}

.interest-chip .chip-remove {
  background: rgba(255, 255, 255, 0.06);
  border: 0;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.7));
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  padding: 0;
  transition: background 160ms ease, color 160ms ease;
}
.interest-chip .chip-remove:hover {
  background: rgba(255, 107, 122, 0.18);
  color: #ffb4bc;
}

.interest-add-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.interest-add-row input[type="text"] {
  flex: 1;
}

/* Responsive tweaks */
@media (max-width: 760px) {
  .resume-header-top {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

/* ============================================================ */
/* Phase 5 — Resume Lab quality controls                        */
/* ============================================================ */
.resume-ats-card .resume-ats-score {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 8px 0 10px;
  font-size: 13px;
  color: var(--color-text-dim, rgba(255,255,255,0.66));
}
.resume-ats-card .resume-ats-score .num-font {
  font-size: 32px;
  line-height: 1;
  color: var(--color-text, #fff);
}
.ats-issues { margin-top: 8px; }
.ats-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ats-breakdown {
  display: grid;
  gap: 8px;
  margin: 8px 0 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.ats-breakdown-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  align-items: center;
  font-size: 12px;
}
.ats-breakdown-bar {
  grid-column: 1 / -1;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.ats-breakdown-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, #34d399);
}
.ats-quick-fixes {
  margin: 8px 0 10px;
}
.ats-quick-fix-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.resume-career-assets .career-asset-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.career-asset-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.career-asset-actions {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.resume-ready-card .ready-checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
  font-size: 12.5px;
}
.resume-ready-card .ready-checks li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.resume-ready-card .ready-checks li.ok i { color: #34d399; }
.resume-ready-card .ready-checks li.todo i { color: #f59e0b; }

.bullet-row [data-bullet-strengthen] {
  color: #7dd3fc;
}
.bullet-row [data-bullet-strengthen]:hover {
  background: rgba(125, 211, 252, 0.14);
}

.export-preflight {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.export-preflight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.export-preflight-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--color-text-dim, rgba(255,255,255,0.7));
}
.export-preflight-blockers { color: #fda4af; }

/* Cover Letter CL-2 */
.cover-asset-picker {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}
.cover-asset-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255,255,255,0.02);
}

/* Cover Letter CL-5 polish */
.cover-fix-row,
.cover-rolepack-actions,
.cover-ab-actions,
.cover-sent-actions {
  margin-top: 8px;
}
.cover-ab-select,
.cover-rolepack-select {
  margin-top: 8px;
}
.cover-ab-list,
.cover-sent-list {
  margin-top: 8px;
  padding-left: 0;
}
.cover-ab-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
}
.cover-sent-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
}
.cover-sent-item select,
.cover-sent-actions select,
.cover-rolepack-select select,
.cover-ab-select select {
  min-height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 24, 0.78);
  color: var(--color-text, #e6e9f2);
}
#cover-form textarea[name="mission"],
#cover-form textarea[name="context"] {
  min-height: 72px;
  line-height: 1.5;
}
#cover-form input[name="manager"] {
  min-height: 38px;
}
.cover-input-ideas-card { margin-top: 4px; }
.cover-input-ideas-card select#cover-ideas-style {
  min-height: 34px;
  border-radius: 8px;
}
.cover-input-ideas-empty {
  font-size: 12px;
  color: var(--color-text-dim, rgba(255,255,255,0.7));
  padding: 6px 0;
}
.cover-idea-block + .cover-idea-block {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255,255,255,0.08);
}
.cover-idea-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-dim, rgba(255,255,255,0.72));
  margin-bottom: 6px;
}
.cover-idea-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cover-idea-chip {
  max-width: 100%;
  white-space: normal;
  text-align: left;
  line-height: 1.35;
}

/* ============================================================ */
/* Cover Letter Studio - application writing workspace           */
/* ============================================================ */
.cover-studio-page {
  display: grid;
  gap: 18px;
  padding-bottom: 34px;
}
.cover-command,
.cover-input-card,
.cover-draft-card,
.cover-start-card,
.cover-proof-bank,
.cover-input-ideas-card {
  border: 1px solid rgba(76, 201, 240, 0.18);
  background:
    linear-gradient(145deg, rgba(15, 26, 45, 0.94), rgba(8, 12, 24, 0.96)),
    rgba(10, 15, 26, 0.9);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.cover-command {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.72fr);
  gap: 22px;
  align-items: stretch;
  border-radius: 16px;
  padding: clamp(22px, 3vw, 34px);
}
.cover-command::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(35, 225, 255, 0.12), transparent 36%),
    radial-gradient(circle at 92% 12%, rgba(121, 105, 255, 0.2), transparent 34%);
  opacity: 0.82;
}
.cover-command-main,
.cover-command-panel {
  position: relative;
  z-index: 1;
}
.cover-command .page-title {
  max-width: 900px;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 0.98;
  margin: 8px 0 14px;
}
.cover-studio-page .eyebrow {
  letter-spacing: 0;
}
.cover-command .page-subtitle {
  max-width: 760px;
  color: rgba(216, 226, 245, 0.78);
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.55;
}
.cover-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.cover-command-actions .btn-primary,
.cover-command-actions .btn-secondary {
  min-height: 46px;
}
.cover-command-panel {
  display: grid;
  gap: 12px;
  align-content: center;
}
.cover-status-card {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.035);
}
.cover-status-card.is-accent {
  border-color: rgba(35, 225, 255, 0.38);
  background: linear-gradient(135deg, rgba(35, 225, 255, 0.14), rgba(121, 105, 255, 0.1));
}
.cover-status-card span,
.cover-mini-label {
  color: #25e1ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.cover-status-card strong {
  color: var(--color-text, #eef4ff);
  font-size: 18px;
}
.cover-status-card small {
  color: rgba(204, 214, 234, 0.68);
  font-size: 13px;
}
.cover-start-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cover-start-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  min-height: 94px;
  border-radius: 12px;
  padding: 16px;
  color: var(--color-text, #eef4ff);
  text-align: left;
  cursor: pointer;
}
.cover-start-card:hover {
  border-color: rgba(35, 225, 255, 0.36);
  transform: translateY(-1px);
}
.cover-start-card i {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: #08101f;
  background: linear-gradient(135deg, #25e1ff, #8a68ff);
}
.cover-start-card span {
  color: var(--color-text, #eef4ff);
  font-weight: 800;
  font-size: 17px;
}
.cover-start-card small {
  color: rgba(204, 214, 234, 0.68);
  font-size: 13px;
  line-height: 1.4;
}
.cover-workspace {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(440px, 1.08fr);
  gap: 16px;
  align-items: start;
}
.cover-input-card,
.cover-draft-card {
  border-radius: 14px;
  padding: clamp(16px, 2vw, 22px);
}
.cover-input-card {
  position: sticky;
  top: 18px;
}
.cover-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.cover-section-head h2,
.cover-section-head h3 {
  margin: 3px 0 0;
  color: var(--color-text, #eef4ff);
  line-height: 1.12;
}
.cover-section-head h2 {
  font-size: 25px;
}
.cover-section-head h3 {
  font-size: 18px;
}
.cover-form-grid {
  gap: 14px;
}
.cover-core-grid,
.cover-advanced,
.cover-input-ideas-card,
.cover-proof-bank {
  grid-column: 1 / -1;
}
.cover-core-grid,
.cover-advanced-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
#cover-form textarea[name="jobDescription"] {
  min-height: 134px;
  line-height: 1.5;
}
.cover-advanced {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}
.cover-advanced summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  color: var(--color-text, #eef4ff);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.cover-advanced summary::-webkit-details-marker {
  display: none;
}
.cover-advanced[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cover-advanced[open] summary i {
  transform: rotate(180deg);
}
.cover-advanced-grid {
  padding: 14px;
}
.cover-input-ideas-card,
.cover-proof-bank {
  border-radius: 12px;
  padding: 14px;
}
.cover-input-ideas-card {
  margin-top: 0;
}
.cover-proof-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
  margin-top: 12px;
}
.cover-proof-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}
.cover-proof-card:hover {
  border-color: rgba(35, 225, 255, 0.26);
  background: rgba(35, 225, 255, 0.045);
}
.cover-proof-card input {
  margin-top: 4px;
}
.cover-proof-card span {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.cover-proof-card strong {
  color: var(--color-text, #eef4ff);
  font-size: 14px;
}
.cover-proof-card small {
  color: #25e1ff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.cover-proof-card em {
  color: rgba(204, 214, 234, 0.68);
  font-style: normal;
  font-size: 13px;
  line-height: 1.45;
}
.cover-proof-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.cover-draft-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.cover-draft-tabs span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: rgba(204, 214, 234, 0.74);
  background: rgba(255, 255, 255, 0.025);
  font-size: 13px;
  font-weight: 800;
}
.cover-draft-tabs span.is-active {
  color: #08101f;
  border-color: transparent;
  background: linear-gradient(135deg, #25e1ff, #8a68ff);
}
.cover-output-shell {
  min-height: 360px;
  align-content: start;
}
.cover-output-shell > .ai-meta:only-child {
  display: grid;
  place-items: center;
  min-height: 250px;
  border: 1px dashed rgba(76, 201, 240, 0.26);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 24%, rgba(35, 225, 255, 0.13), transparent 28%),
    rgba(255, 255, 255, 0.018);
  color: rgba(216, 226, 245, 0.68);
  text-align: center;
  padding: 24px;
}
.cover-output-shell .export-preflight {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.026);
}
.cover-output-shell textarea#cover-body {
  min-height: 320px;
}
.cover-output-shell .form-actions {
  padding-top: 10px;
}

@media (max-width: 1180px) {
  .cover-command,
  .cover-workspace {
    grid-template-columns: 1fr;
  }
  .cover-input-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .cover-command {
    padding: 18px;
  }
  .cover-command .page-title {
    font-size: clamp(36px, 12vw, 54px);
  }
  .cover-start-grid,
  .cover-core-grid,
  .cover-advanced-grid {
    grid-template-columns: 1fr;
  }
  .cover-start-card {
    min-height: auto;
  }
  .cover-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .cover-output-shell textarea#cover-body {
    min-height: 240px;
  }
}

/* ============================================================ */
/* Resume Lab - transformation workspace redesign               */
/* ============================================================ */
.resume-empty-lab {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 520px);
  align-items: stretch;
  gap: 34px;
  padding-top: 24px;
}
.resume-empty-lab .resume-empty-copy {
  align-self: center;
}
.resume-empty-lab .resume-empty-copy > .page-subtitle:not(.resume-lab-subtitle),
.resume-empty-lab .resume-empty-bullets,
.resume-empty-lab .resume-drop-divider,
.resume-empty-lab .resume-drop-secondary-action {
  display: none;
}
.resume-empty-lab .page-title {
  max-width: 760px;
  font-size: clamp(34px, 4.8vw, 62px);
  letter-spacing: 0;
}
.resume-lab-subtitle {
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.68;
}
.resume-intake-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 22px;
}
.resume-intake-card {
  min-height: 156px;
  text-align: left;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(124, 240, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(19, 30, 48, 0.82), rgba(9, 13, 22, 0.84)),
    linear-gradient(135deg, rgba(124, 240, 255, 0.08), rgba(113, 105, 255, 0.06));
  color: var(--color-text, #f4f7ff);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.resume-intake-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 240, 255, 0.38);
  background:
    linear-gradient(180deg, rgba(22, 36, 58, 0.9), rgba(10, 15, 24, 0.88)),
    linear-gradient(135deg, rgba(124, 240, 255, 0.13), rgba(113, 105, 255, 0.1));
}
.resume-intake-card i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #1fe2ff;
  background: rgba(31, 226, 255, 0.12);
  border: 1px solid rgba(31, 226, 255, 0.2);
}
.resume-intake-card strong {
  font-size: 15px;
  line-height: 1.25;
}
.resume-intake-card span {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--color-text-dim, rgba(231, 238, 255, 0.68));
}
.resume-lab-process {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.resume-lab-process li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(234, 240, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
}
.resume-lab-process span {
  color: #52e8ff;
  font-family: var(--font-family-mono, monospace);
  font-size: 11px;
}
.resume-empty-lab .resume-drop {
  min-height: 420px;
  display: grid;
  place-items: center;
  border-style: solid;
  border-color: rgba(124, 240, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(17, 28, 45, 0.82), rgba(8, 12, 22, 0.9)),
    linear-gradient(135deg, rgba(31, 226, 255, 0.08), rgba(108, 92, 255, 0.08));
}
.resume-drop-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.resume-drop-proof span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(238, 244, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
}
.resume-drop-proof i {
  color: #46e8ff;
}

/* Opening screen polish: practical, flexible, and closer to the original lab feel. */
.resume-empty-lab {
  grid-template-columns: minmax(360px, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 32px;
  padding: 24px 0 10px;
}
.resume-empty-lab .page-title {
  max-width: 620px;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.06;
}
.resume-lab-subtitle {
  max-width: 58ch;
  font-size: 16px;
  line-height: 1.62;
}
.resume-empty-lab .resume-intake-options {
  grid-template-columns: 1fr;
  max-width: 660px;
  gap: 10px;
  margin: 24px 0 16px;
}
.resume-empty-lab .resume-intake-card {
  min-height: auto;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 13px;
  padding: 14px 16px;
  border-radius: 12px;
}
.resume-empty-lab .resume-intake-card i {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
}
.resume-empty-lab .resume-intake-card strong {
  font-size: 15.5px;
}
.resume-empty-lab .resume-intake-card span {
  font-size: 12.5px;
  line-height: 1.45;
}
.resume-empty-note {
  max-width: 660px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(85, 231, 165, 0.16);
  background: rgba(85, 231, 165, 0.06);
  color: rgba(232, 240, 255, 0.72);
  font-size: 12.5px;
  line-height: 1.5;
}
.resume-empty-note i {
  color: #55e7a5;
  margin-top: 2px;
}
.resume-empty-lab .resume-drop {
  min-height: 460px;
  align-self: center;
  padding: 28px;
  place-items: center;
  border-radius: 22px;
}
.resume-empty-lab .resume-drop-inner {
  width: 100%;
  max-width: 430px;
  gap: 11px;
}
.resume-drop-preview {
  position: relative;
  width: min(320px, 82%);
  height: 172px;
  margin: 0 auto 6px;
}
.resume-paper-preview {
  position: absolute;
  inset: 0;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(180deg, rgba(245, 249, 255, 0.08), rgba(245, 249, 255, 0.025)),
    rgba(8, 12, 22, 0.78);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}
.resume-paper-preview span,
.resume-paper-preview i {
  display: block;
  height: 8px;
  border-radius: 999px;
  margin-bottom: 11px;
  background: rgba(229, 238, 255, 0.18);
}
.resume-paper-preview .paper-name {
  width: 48%;
  height: 12px;
  background: linear-gradient(90deg, rgba(82, 232, 255, 0.85), rgba(141, 116, 255, 0.72));
}
.resume-paper-preview .paper-short {
  width: 62%;
}
.resume-paper-preview i {
  width: 100%;
  height: 1px;
  margin: 16px 0 13px;
  background: rgba(82, 232, 255, 0.22);
}
.resume-drop-preview .resume-drop-icon {
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 76px;
  height: 76px;
  margin: 0;
  box-shadow: 0 18px 42px rgba(32, 210, 255, 0.18);
}
.resume-empty-lab .resume-drop h3 {
  font-size: 22px;
}
.resume-empty-lab .resume-drop-divider,
.resume-empty-lab .resume-drop-secondary-action {
  display: flex;
}
.resume-empty-lab .resume-drop-secondary-action,
.resume-empty-lab #resume-browse {
  width: min(320px, 100%);
  justify-content: center;
}

.resume-lab-command {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-color: rgba(124, 240, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(19, 30, 48, 0.9), rgba(8, 12, 22, 0.94)),
    linear-gradient(135deg, rgba(31, 226, 255, 0.08), rgba(113, 105, 255, 0.08), rgba(54, 211, 153, 0.04));
}
.resume-command-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}
.resume-readiness-score {
  width: 86px;
  height: 86px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(124, 240, 255, 0.22);
  background: rgba(5, 8, 16, 0.55);
}
.resume-readiness-score .num-font {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}
.resume-readiness-score small {
  font-size: 12px;
  color: rgba(234, 240, 255, 0.58);
}
.resume-readiness-score.green .num-font { color: #55e7a5; }
.resume-readiness-score.warning .num-font { color: #ffd166; }
.resume-readiness-score.rose .num-font { color: #ff8da1; }
.resume-command-title .eyebrow {
  margin: 0 0 5px;
  color: #52e8ff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 800;
}
.resume-command-title h2 {
  margin: 0 0 6px;
  font-size: clamp(20px, 2.4vw, 30px);
  font-family: var(--font-family-display, inherit);
}
.resume-command-title p {
  margin: 0;
  max-width: 68ch;
  color: rgba(229, 236, 255, 0.72);
  line-height: 1.55;
}
.resume-next-action {
  min-width: 178px;
  justify-content: center;
}
.resume-command-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 16px;
}
.resume-command-metrics > div {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.resume-command-metrics .num-font {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-text, #fff);
}
.resume-command-metrics small {
  color: rgba(229, 236, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
}
.resume-workflow-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.resume-workflow-step {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(230, 237, 255, 0.62);
}
.resume-workflow-step span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
}
.resume-workflow-step strong {
  font-size: 12px;
  line-height: 1.25;
}
.resume-workflow-step.is-done {
  color: #b8f7d3;
  border-color: rgba(80, 220, 150, 0.2);
}
.resume-workflow-step.is-done span {
  color: #55e7a5;
  background: rgba(80, 220, 150, 0.11);
}
.resume-workflow-step.is-active {
  color: #ffffff;
  border-color: rgba(82, 232, 255, 0.32);
  background: rgba(82, 232, 255, 0.08);
}
.resume-workflow-step.is-active span {
  color: #52e8ff;
  background: rgba(82, 232, 255, 0.13);
}

.resume-lab-inspector {
  padding: 18px;
  border-color: rgba(124, 240, 255, 0.16);
}
.resume-inspector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.resume-inspector-grid > div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.resume-inspector-grid .num-font {
  font-size: 21px;
  font-weight: 800;
}
.resume-inspector-grid small,
.resume-inspector-note {
  color: rgba(229, 236, 255, 0.64);
  font-size: 12px;
  line-height: 1.45;
}
.resume-inspector-note {
  margin: 0;
}
.resume-fix-queue,
.resume-question-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.resume-fix-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.resume-fix-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #52e8ff;
  background: rgba(82, 232, 255, 0.1);
}
.resume-fix-item strong {
  display: block;
  font-size: 13px;
  margin-bottom: 3px;
}
.resume-fix-item p {
  margin: 0;
  color: rgba(229, 236, 255, 0.62);
  font-size: 12px;
  line-height: 1.45;
}
.resume-question-card .muted {
  margin-bottom: 10px;
}
.resume-question-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: rgba(236, 242, 255, 0.76);
  font-size: 12.5px;
  line-height: 1.5;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.resume-question-list li:first-child {
  border-top: 0;
}
.resume-question-list i {
  color: #ffd166;
  margin-top: 3px;
}

@media (max-width: 1180px) {
  .resume-intake-options,
  .resume-command-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .resume-workflow-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .resume-empty-lab {
    grid-template-columns: 1fr;
  }
  .resume-command-head {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .resume-next-action {
    grid-column: 1 / -1;
    width: 100%;
  }
}
@media (max-width: 640px) {
  .resume-intake-options,
  .resume-command-metrics,
  .resume-workflow-rail,
  .resume-inspector-grid {
    grid-template-columns: 1fr;
  }
  .resume-fix-item {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .resume-fix-item button {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}


/* =============================================================================
 * Landing v5 - premium trust-led redesign
 * ========================================================================== */
.cb5-page {
  --cb5-ink: #132033;
  --cb5-muted: #617086;
  --cb5-soft: #eef4fb;
  --cb5-line: #dbe5f0;
  --cb5-card: #ffffff;
  --cb5-cyan: #12b8d7;
  --cb5-blue: #3267e3;
  --cb5-indigo: #5966d9;
  --cb5-green: #14a66a;
  --cb5-amber: #d88924;
  min-height: 100vh;
  display: block;
  color: var(--cb5-ink);
  background:
    linear-gradient(180deg, #f7fbff 0%, #edf4fb 34%, #ffffff 34%, #ffffff 100%);
}
.cb5-page,
.cb5-page * {
  box-sizing: border-box;
}
.cb5-page a {
  color: inherit;
}
.cb5-nav,
.cb5-hero,
.cb5-logo-band,
.cb5-section,
.cb5-metrics,
.cb5-final-cta,
.cb5-footer {
  width: min(1180px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}
.cb5-nav {
  position: sticky;
  top: 10px;
  z-index: 20;
  min-height: 68px;
  margin-top: 10px;
  padding: 10px 12px 10px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(210, 222, 238, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(42, 71, 112, 0.09);
  backdrop-filter: blur(14px);
}
.cb5-brand {
  text-decoration: none;
  color: var(--cb5-ink);
}
.cb5-nav .auth-brand {
  margin: 0;
}
.cb5-nav .cb-logo-mark {
  width: 34px;
  height: 34px;
}
.cb5-nav .cb-logo-wordmark {
  font-size: 25px;
  color: var(--cb5-ink);
}
.cb5-nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.cb5-nav-links a,
.cb5-link {
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  color: #46566d;
  padding: 9px 10px;
  border-radius: 8px;
}
.cb5-nav-links a:hover,
.cb5-link:hover {
  color: var(--cb5-blue);
  background: #f0f6ff;
}
.cb5-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cb5-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}
.cb5-btn:hover {
  transform: translateY(-1px);
}
.cb5-btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cb5-blue), var(--cb5-cyan));
  box-shadow: 0 12px 28px rgba(18, 130, 215, 0.24);
}
.cb5-btn-secondary {
  color: var(--cb5-ink);
  background: #ffffff;
  border-color: #cbd9eb;
  box-shadow: 0 8px 18px rgba(42, 71, 112, 0.07);
}
.cb5-btn-large {
  min-height: 48px;
  padding: 0 20px;
  font-size: 15px;
}
.cb5-hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 42px;
  align-items: center;
  padding: 78px 0 76px;
}
.cb5-kicker,
.cb5-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #096f84;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cb5-kicker {
  padding: 7px 10px;
  border: 1px solid #bfeaf3;
  border-radius: 8px;
  background: #e8f9fc;
}
.cb5-hero h1 {
  margin: 0;
  max-width: 780px;
  color: #0d1b2d;
  font-family: var(--font-family-display);
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: 0;
}
.cb5-lead {
  max-width: 640px;
  margin: 22px 0 0;
  color: #4c5e76;
  font-size: 18px;
  line-height: 1.65;
}
.cb5-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.cb5-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 650px;
  margin-top: 28px;
}
.cb5-proof-row span {
  padding: 12px 13px;
  border: 1px solid #dce8f5;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
  color: #65758d;
  font-size: 12px;
}
.cb5-proof-row strong {
  display: block;
  color: var(--cb5-ink);
  font-size: 13px;
}
.cb5-hero-visual {
  position: relative;
  min-width: 0;
}
.cb5-dashboard,
.cb5-progress-card {
  overflow: hidden;
  border: 1px solid #d4e1f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(37, 64, 102, 0.18);
}
.cb5-dashboard {
  min-height: 450px;
}
.cb5-window-bar {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid #e6eef7;
  background: #fbfdff;
}
.cb5-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.cb5-window-bar span:nth-child(1) { background: #ef6578; }
.cb5-window-bar span:nth-child(2) { background: #e5ac3d; }
.cb5-window-bar span:nth-child(3) { background: #18b174; }
.cb5-window-bar strong {
  margin-left: 8px;
  color: #728299;
  font-family: var(--font-family-mono);
  font-size: 12px;
}
.cb5-dash-body {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  min-height: 406px;
}
.cb5-dash-side {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  background: #0f1d31;
  color: #dbe9ff;
}
.cb5-dash-side b {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 13px;
}
.cb5-dash-side span {
  padding: 10px;
  border-radius: 8px;
  color: #aebed5;
  font-size: 12px;
}
.cb5-dash-side .is-active {
  color: #ffffff;
  background: rgba(18, 184, 215, 0.18);
}
.cb5-dash-main {
  padding: 20px;
  display: grid;
  gap: 14px;
  align-content: start;
  background:
    linear-gradient(180deg, #f7fbff, #ffffff);
}
.cb5-score-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.cb5-score-row article {
  padding: 14px;
  border: 1px solid #dbe7f4;
  border-radius: 8px;
  background: #ffffff;
}
.cb5-score-row span,
.cb5-floating-card span,
.cb5-progress-head span,
.cb5-next-action span {
  display: block;
  color: #718198;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cb5-score-row strong {
  display: block;
  margin-top: 8px;
  color: #10213a;
  font-size: 26px;
}
.cb5-ai-panel {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid #b9edf5;
  border-radius: 8px;
  background: #eafaff;
  color: #075b70;
  font-size: 13px;
  font-weight: 800;
}
.cb5-ai-panel strong {
  color: var(--cb5-green);
  white-space: nowrap;
}
.cb5-role-list {
  display: grid;
  gap: 10px;
}
.cb5-role-list div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e0e9f4;
  border-radius: 8px;
  background: #ffffff;
}
.cb5-role-list b {
  color: var(--cb5-green);
  font-size: 15px;
}
.cb5-role-list span {
  color: #263955;
  font-weight: 750;
  min-width: 0;
}
.cb5-role-list em {
  color: #52647d;
  font-style: normal;
  font-size: 12px;
}
.cb5-floating-card {
  position: absolute;
  width: 170px;
  padding: 14px;
  border: 1px solid #d7e5f4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(37, 64, 102, 0.16);
}
.cb5-floating-card strong {
  display: block;
  margin-top: 6px;
  color: #10213a;
  font-size: 22px;
}
.cb5-floating-card small {
  color: #66768c;
  font-weight: 750;
}
.cb5-floating-card-a {
  right: -22px;
  top: 42px;
}
.cb5-floating-card-b {
  left: -26px;
  bottom: 34px;
}
.cb5-logo-band {
  display: grid;
  grid-template-columns: auto repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  margin-top: -20px;
  padding: 14px;
  border: 1px solid #dbe7f4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(42, 71, 112, 0.08);
}
.cb5-logo-band span {
  color: #6e7d91;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cb5-logo-band b {
  padding: 12px 10px;
  border: 1px solid #e2ebf5;
  border-radius: 8px;
  background: #f8fbff;
  color: #263955;
  text-align: center;
  font-size: 13px;
}
.cb5-section {
  padding: 92px 0 0;
}
.cb5-section-head {
  max-width: 760px;
  margin-bottom: 30px;
}
.cb5-section-head h2,
.cb5-trust-copy h2,
.cb5-outcomes-copy h2,
.cb5-final-cta h2 {
  margin: 0;
  color: #10213a;
  font-family: var(--font-family-display);
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: 0;
}
.cb5-section-head p:not(.cb5-eyebrow),
.cb5-trust-copy p,
.cb5-final-cta p {
  max-width: 650px;
  margin: 14px 0 0;
  color: var(--cb5-muted);
  font-size: 16px;
  line-height: 1.65;
}
.cb5-solution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.cb5-solution,
.cb5-trust-card,
.cb5-step-card,
.cb5-price-card,
.cb5-faq-item {
  border: 1px solid #dbe7f4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(42, 71, 112, 0.07);
}
.cb5-solution {
  min-height: 300px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.cb5-solution--1,
.cb5-solution--4 {
  background: linear-gradient(180deg, #ffffff, #f1fbff);
}
.cb5-icon,
.cb5-trust-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cb5-blue), var(--cb5-cyan));
  box-shadow: 0 12px 24px rgba(18, 130, 215, 0.18);
}
.cb5-card-meta {
  margin: 22px 0 8px;
  color: var(--cb5-blue);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cb5-solution h3,
.cb5-trust-card h3,
.cb5-step-card h3,
.cb5-price-card h3 {
  margin: 0;
  color: #15243a;
  font-size: 20px;
}
.cb5-solution p:not(.cb5-card-meta),
.cb5-trust-card p,
.cb5-step-card p,
.cb5-price-card li,
.cb5-faq-item p {
  color: #627189;
  font-size: 14px;
  line-height: 1.62;
}
.cb5-trust {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
  gap: 24px;
  align-items: center;
}
.cb5-trust-copy {
  padding: 34px;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(15, 30, 52, 0.96), rgba(28, 59, 94, 0.96));
}
.cb5-trust-copy h2,
.cb5-trust-copy p,
.cb5-trust-copy .cb5-eyebrow {
  color: #ffffff;
}
.cb5-trust-copy p {
  color: #d3dfef;
}
.cb5-trust-copy .cb5-btn {
  margin-top: 24px;
}
.cb5-trust-copy .cb5-btn-secondary {
  color: #10213a;
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.78);
}
.cb5-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.cb5-trust-card {
  padding: 22px;
}
.cb5-trust-card h3 {
  margin-top: 18px;
}
.cb5-workflow {
  padding-top: 100px;
}
.cb5-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.cb5-step-card {
  position: relative;
  padding: 24px;
  overflow: hidden;
}
.cb5-step-card span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border-radius: 8px;
  color: #ffffff;
  background: #10213a;
  font-family: var(--font-family-mono);
  font-weight: 850;
}
.cb5-step-card::after {
  content: "";
  position: absolute;
  top: 45px;
  left: 82px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, #b8d7e8, transparent);
}
.cb5-outcomes {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
}
.cb5-check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.cb5-check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #4b5f77;
  line-height: 1.55;
}
.cb5-check-list i {
  margin-top: 4px;
  color: var(--cb5-green);
}
.cb5-progress-card {
  padding: 24px;
}
.cb5-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e3edf7;
}
.cb5-progress-head strong {
  display: block;
  margin-top: 6px;
  color: #10213a;
  font-size: 22px;
}
.cb5-progress-head i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cb5-green), var(--cb5-cyan));
}
.cb5-progress-bars {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}
.cb5-progress-bars label {
  display: grid;
  gap: 8px;
  color: #52647c;
  font-size: 13px;
  font-weight: 800;
}
.cb5-progress-bars label::after {
  content: "";
  height: 10px;
  border-radius: 999px;
  background: #edf3fa;
}
.cb5-progress-bars b {
  height: 10px;
  margin-bottom: -18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cb5-blue), var(--cb5-cyan));
  z-index: 1;
}
.cb5-next-action {
  margin-top: 26px;
  padding: 16px;
  border: 1px solid #ccebf1;
  border-radius: 8px;
  background: #effcff;
}
.cb5-next-action strong {
  display: block;
  margin-top: 6px;
  color: #10213a;
  font-size: 16px;
}
.cb5-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 96px;
}
.cb5-metrics article {
  padding: 24px;
  border-radius: 8px;
  color: #ffffff;
  background: #112139;
}
.cb5-metrics article:nth-child(2) { background: #0d6f82; }
.cb5-metrics article:nth-child(3) { background: #24417b; }
.cb5-metrics article:nth-child(4) { background: #1d6a4f; }
.cb5-metrics strong {
  display: block;
  font-size: 42px;
  line-height: 1;
}
.cb5-metrics span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 750;
}
.cb5-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.cb5-price-card {
  padding: 28px;
}
.cb5-price-card-featured {
  border-color: #89ddea;
  box-shadow: 0 22px 60px rgba(18, 130, 215, 0.18);
}
.cb5-price-badge {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #096f84;
  background: #e7faff;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cb5-price {
  margin: 14px 0 18px;
  color: #10213a;
  font-size: 44px;
  font-weight: 850;
}
.cb5-price span {
  color: #6a7b92;
  font-size: 14px;
  font-weight: 700;
}
.cb5-price-card ul {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding-left: 18px;
}
.cb5-faq {
  padding-bottom: 10px;
}
.cb5-faq-list {
  max-width: 860px;
  display: grid;
  gap: 10px;
}
.cb5-faq-item {
  padding: 0;
}
.cb5-faq-item summary {
  cursor: pointer;
  padding: 18px 20px;
  color: #17263c;
  font-weight: 850;
}
.cb5-faq-item p {
  margin: 0;
  padding: 0 20px 18px;
}
.cb5-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 90px;
  padding: 42px;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(135deg, #10213a 0%, #123e63 58%, #0a7687 100%);
}
.cb5-final-cta h2,
.cb5-final-cta p,
.cb5-final-cta .cb5-eyebrow {
  color: #ffffff;
}
.cb5-final-cta p {
  color: #d9e7f5;
}
.cb5-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 42px;
  color: #66778d;
}
.cb5-footer .auth-brand {
  margin: 0;
}
.cb5-footer p {
  margin: 0;
  font-size: 13px;
}

@media (max-width: 1060px) {
  .cb5-nav,
  .cb5-hero,
  .cb5-logo-band,
  .cb5-section,
  .cb5-metrics,
  .cb5-final-cta,
  .cb5-footer {
    width: min(100% - 32px, 920px);
  }
  .cb5-nav {
    grid-template-columns: 1fr auto;
  }
  .cb5-nav-links {
    display: none;
  }
  .cb5-hero,
  .cb5-trust,
  .cb5-outcomes {
    grid-template-columns: 1fr;
  }
  .cb5-hero {
    min-height: 0;
    padding-top: 52px;
  }
  .cb5-solution-grid,
  .cb5-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cb5-logo-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cb5-logo-band span {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .cb5-nav,
  .cb5-hero,
  .cb5-logo-band,
  .cb5-section,
  .cb5-metrics,
  .cb5-final-cta,
  .cb5-footer {
    width: calc(100% - 24px);
  }
  .cb5-nav {
    top: 6px;
    min-height: 62px;
    grid-template-columns: 1fr auto;
    padding: 8px;
    gap: 8px;
  }
  .cb5-nav .cb-logo-mark {
    width: 28px;
    height: 28px;
  }
  .cb5-nav .cb-logo-wordmark {
    font-size: 18px;
  }
  .cb5-link {
    display: none;
  }
  .cb5-nav-actions {
    gap: 6px;
  }
  .cb5-nav-actions .cb5-btn {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }
  .cb5-hero {
    padding: 38px 0 42px;
    gap: 24px;
  }
  .cb5-hero h1 {
    font-size: 34px;
    line-height: 1.04;
  }
  .cb5-lead {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.55;
  }
  .cb5-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 22px;
  }
  .cb5-proof-row,
  .cb5-logo-band,
  .cb5-floating-card {
    display: none;
  }
  .cb5-dashboard {
    min-height: 0;
  }
  .cb5-dash-body {
    grid-template-columns: 1fr;
  }
  .cb5-dash-side {
    display: none;
  }
  .cb5-dash-main {
    padding: 14px;
  }
  .cb5-score-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .cb5-score-row article {
    padding: 10px;
  }
  .cb5-score-row span {
    font-size: 9px;
  }
  .cb5-score-row strong {
    font-size: 20px;
  }
  .cb5-role-list div {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
  }
  .cb5-role-list div:nth-child(n+3),
  .cb5-role-list em {
    display: none;
  }
  .cb5-ai-panel {
    display: grid;
  }
  .cb5-ai-panel strong {
    white-space: normal;
  }
  .cb5-section {
    padding-top: 58px;
  }
  .cb5-section-head {
    margin-bottom: 22px;
  }
  .cb5-section-head h2,
  .cb5-trust-copy h2,
  .cb5-outcomes-copy h2,
  .cb5-final-cta h2 {
    font-size: 30px;
    line-height: 1.12;
  }
  .cb5-section-head p:not(.cb5-eyebrow),
  .cb5-trust-copy p,
  .cb5-final-cta p {
    font-size: 15px;
  }
  .cb5-solution-grid,
  .cb5-trust-grid,
  .cb5-step-grid,
  .cb5-metrics,
  .cb5-pricing-grid {
    grid-template-columns: 1fr;
  }
  .cb5-solution {
    min-height: 0;
  }
  .cb5-trust-copy,
  .cb5-final-cta {
    padding: 24px;
  }
  .cb5-workflow {
    padding-top: 62px;
  }
  .cb5-step-card::after {
    display: none;
  }
  .cb5-metrics {
    margin-top: 58px;
  }
  .cb5-progress-card {
    padding: 18px;
  }
  .cb5-final-cta {
    display: grid;
    margin-top: 58px;
  }
  .cb5-footer {
    flex-direction: column;
    text-align: center;
  }
}

/* =============================================================================
 * Landing v6 - dark enterprise product redesign
 * ========================================================================== */
.cb6-page {
  --cb6-bg: #05070f;
  --cb6-bg-2: #080c18;
  --cb6-panel: rgba(13, 19, 33, 0.92);
  --cb6-panel-2: rgba(17, 27, 46, 0.9);
  --cb6-line: rgba(129, 151, 199, 0.2);
  --cb6-line-strong: rgba(78, 217, 255, 0.36);
  --cb6-text: #eef4ff;
  --cb6-muted: #a4b1c8;
  --cb6-dim: #687791;
  --cb6-cyan: #22e3ff;
  --cb6-blue: #6b7dff;
  --cb6-violet: #9a7dff;
  --cb6-green: #35d68f;
  --cb6-amber: #f6bf5b;
  --cb6-max: 1200px;
  --cb6-gutter: 24px;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--cb6-text);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(180deg, #05070f 0%, #070a14 38%, #060913 100%);
  background-size: 72px 72px, 72px 72px, auto;
}
.cb6-page,
.cb6-page * {
  box-sizing: border-box;
}
.cb6-page a {
  color: inherit;
}
.cb6-page h1,
.cb6-page h2,
.cb6-page h3,
.cb6-page p {
  letter-spacing: 0;
}
.cb6-nav,
.cb6-hero,
.cb6-audience-band,
.cb6-section,
.cb6-metrics,
.cb6-final-cta,
.cb6-footer {
  width: min(var(--cb6-max), calc(100% - 2 * var(--cb6-gutter)));
  margin-left: auto;
  margin-right: auto;
}

.cb6-nav {
  position: sticky;
  top: 10px;
  z-index: 40;
  min-height: 68px;
  margin-top: 10px;
  padding: 10px 12px 10px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(129, 151, 199, 0.18);
  border-radius: 8px;
  background: rgba(6, 10, 20, 0.92);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}
.cb6-brand,
.cb6-nav .auth-brand {
  margin: 0;
  text-decoration: none;
}
.cb6-nav .cb-logo-mark {
  width: 34px;
  height: 34px;
}
.cb6-nav .cb-logo-wordmark {
  font-size: 25px;
  color: var(--cb6-text);
}
.cb6-nav-links,
.cb6-nav-actions {
  display: flex;
  align-items: center;
}
.cb6-nav-links {
  justify-content: center;
  gap: 4px;
}
.cb6-nav-links a,
.cb6-text-link {
  text-decoration: none;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 8px;
  color: #c7d2e6;
  font-size: 13px;
  font-weight: 750;
}
.cb6-nav-links a:hover,
.cb6-text-link:hover {
  color: var(--cb6-cyan);
  background: rgba(34, 227, 255, 0.08);
}
.cb6-nav-actions {
  gap: 8px;
}

.cb6-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 850;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.cb6-btn:hover {
  transform: translateY(-1px);
}
.cb6-btn-primary {
  color: #05101d;
  background: linear-gradient(135deg, #32e8ff 0%, #70baff 52%, #8f7cff 100%);
  box-shadow: 0 12px 34px rgba(34, 227, 255, 0.2);
}
.cb6-btn-secondary {
  color: var(--cb6-text);
  border-color: rgba(129, 151, 199, 0.24);
  background: rgba(255, 255, 255, 0.035);
}
.cb6-btn-secondary:hover {
  border-color: rgba(34, 227, 255, 0.42);
  background: rgba(34, 227, 255, 0.08);
}
.cb6-btn-large {
  min-height: 48px;
  padding: 0 21px;
  font-size: 15px;
}

.cb6-hero {
  position: relative;
  min-height: 740px;
  display: grid;
  align-items: center;
  padding: 74px 0 86px;
}
.cb6-hero::before {
  content: "";
  position: absolute;
  inset: 8px -40px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 227, 255, 0.42), rgba(154, 125, 255, 0.28), transparent);
}
.cb6-hero-copy {
  position: relative;
  z-index: 3;
  width: min(620px, 100%);
}
.cb6-kicker,
.cb6-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 10px;
  border: 1px solid rgba(34, 227, 255, 0.24);
  border-radius: 8px;
  color: #a9f3ff;
  background: rgba(34, 227, 255, 0.07);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}
.cb6-hero h1 {
  margin: 0;
  max-width: 620px;
  color: var(--cb6-text);
  font-family: var(--font-family-display);
  font-size: 60px;
  line-height: 1.02;
  font-weight: 800;
}
.cb6-lead {
  max-width: 610px;
  margin: 20px 0 0;
  color: #c7d4e9;
  font-size: 18px;
  line-height: 1.65;
}
.cb6-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.cb6-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 670px;
  margin-top: 28px;
}
.cb6-proof-row span {
  min-height: 58px;
  padding: 12px 13px;
  border: 1px solid rgba(129, 151, 199, 0.18);
  border-radius: 8px;
  color: var(--cb6-muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  line-height: 1.35;
}
.cb6-proof-row strong {
  display: block;
  color: var(--cb6-text);
  font-size: 13px;
}

.cb6-hero-visual {
  position: absolute;
  z-index: 1;
  right: max(-82px, calc((100vw - var(--cb6-max)) / -2 - 18px));
  top: 94px;
  width: min(700px, 54vw);
  opacity: 0.95;
}
.cb6-hero-visual::before {
  content: "";
  position: absolute;
  inset: -22px;
  border: 1px solid rgba(107, 125, 255, 0.12);
  border-radius: 8px;
  transform: translate(20px, 20px);
}
.cb6-cockpit,
.cb6-workspace-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(129, 151, 199, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 25, 43, 0.98), rgba(9, 14, 26, 0.98));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(34, 227, 255, 0.08);
}
.cb6-cockpit-bar {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(129, 151, 199, 0.14);
  color: var(--cb6-dim);
  font-family: var(--font-family-mono);
  font-size: 12px;
}
.cb6-cockpit-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.cb6-cockpit-bar span:nth-child(1) { background: #ff6b80; }
.cb6-cockpit-bar span:nth-child(2) { background: #f6bf5b; }
.cb6-cockpit-bar span:nth-child(3) { background: #35d68f; }
.cb6-cockpit-bar strong {
  margin-left: 8px;
  font-weight: 700;
}
.cb6-cockpit-grid {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 430px;
}
.cb6-cockpit-rail {
  padding: 20px 14px;
  border-right: 1px solid rgba(129, 151, 199, 0.14);
  display: grid;
  align-content: start;
  gap: 8px;
  color: var(--cb6-muted);
}
.cb6-cockpit-rail b {
  margin-bottom: 10px;
  color: var(--cb6-text);
  font-size: 13px;
}
.cb6-cockpit-rail span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
}
.cb6-cockpit-rail .is-active {
  color: var(--cb6-cyan);
  background: rgba(34, 227, 255, 0.08);
}
.cb6-cockpit-main {
  padding: 20px;
  display: grid;
  gap: 14px;
}
.cb6-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.cb6-kpi-grid article {
  padding: 14px;
  border: 1px solid rgba(129, 151, 199, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}
.cb6-kpi-grid span,
.cb6-kpi-grid em {
  display: block;
  color: var(--cb6-dim);
  font-size: 11px;
  font-style: normal;
}
.cb6-kpi-grid strong {
  display: block;
  margin: 4px 0;
  color: var(--cb6-text);
  font-size: 30px;
}
.cb6-ai-strip {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(34, 227, 255, 0.26);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(34, 227, 255, 0.09), rgba(107, 125, 255, 0.08));
}
.cb6-ai-strip i {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #06111c;
  background: var(--cb6-cyan);
}
.cb6-ai-strip span,
.cb6-ai-strip b {
  color: var(--cb6-cyan);
  font-size: 11px;
  text-transform: uppercase;
}
.cb6-ai-strip strong {
  display: block;
  color: var(--cb6-text);
  font-size: 13px;
}
.cb6-role-table {
  display: grid;
  gap: 8px;
}
.cb6-role-table div {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 112px;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid rgba(129, 151, 199, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}
.cb6-role-table b {
  color: var(--cb6-green);
  font-family: var(--font-family-mono);
}
.cb6-role-table span {
  min-width: 0;
  overflow: hidden;
  color: #dbe6f7;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cb6-role-table em {
  color: var(--cb6-muted);
  font-size: 12px;
  font-style: normal;
  text-align: right;
}

.cb6-audience-band {
  display: grid;
  grid-template-columns: 1.2fr repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  padding: 12px 0 26px;
}
.cb6-audience-band span,
.cb6-audience-band b {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(129, 151, 199, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--cb6-muted);
  font-size: 12px;
  text-align: center;
}
.cb6-audience-band b {
  color: #d9e5f7;
}

.cb6-section {
  padding-top: 96px;
}
.cb6-section-head {
  max-width: 760px;
  margin-bottom: 30px;
}
.cb6-section-head h2,
.cb6-trust-copy h2,
.cb6-outcomes-copy h2,
.cb6-final-cta h2 {
  margin: 0;
  color: var(--cb6-text);
  font-family: var(--font-family-display);
  font-size: 44px;
  line-height: 1.08;
  font-weight: 780;
}
.cb6-section-head p:not(.cb6-eyebrow),
.cb6-trust-copy p,
.cb6-final-cta p {
  max-width: 650px;
  margin: 14px 0 0;
  color: var(--cb6-muted);
  font-size: 16px;
  line-height: 1.65;
}
.cb6-solution-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}
.cb6-solution-card,
.cb6-trust-card,
.cb6-step,
.cb6-price-card,
.cb6-faq-item {
  border: 1px solid rgba(129, 151, 199, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17, 27, 46, 0.82), rgba(9, 14, 26, 0.82));
}
.cb6-solution-card {
  min-height: 245px;
  padding: 24px;
  grid-column: span 4;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.cb6-solution-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 227, 255, 0.34);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
}
.cb6-solution-card--1,
.cb6-solution-card--2 {
  grid-column: span 6;
}
.cb6-solution-card--6 {
  grid-column: span 12;
  min-height: 168px;
  display: grid;
  grid-template-columns: 50px minmax(150px, 0.35fr) minmax(0, 1fr);
  column-gap: 18px;
  align-items: start;
}
.cb6-solution-card--6 .cb6-icon {
  grid-row: 1 / span 3;
}
.cb6-solution-card--6 .cb6-card-kicker {
  margin-top: 0;
}
.cb6-solution-card--6 p:not(.cb6-card-kicker) {
  align-self: center;
  padding-top: 18px;
}
.cb6-icon,
.cb6-trust-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(34, 227, 255, 0.22);
  border-radius: 8px;
  color: var(--cb6-cyan);
  background: rgba(34, 227, 255, 0.08);
}
.cb6-card-kicker {
  margin: 18px 0 8px;
  color: var(--cb6-cyan);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}
.cb6-solution-card h3,
.cb6-trust-card h3,
.cb6-step h3,
.cb6-price-card h3 {
  margin: 0 0 10px;
  color: var(--cb6-text);
  font-size: 20px;
}
.cb6-solution-card p:not(.cb6-card-kicker),
.cb6-trust-card p,
.cb6-step p {
  margin: 0;
  color: var(--cb6-muted);
  font-size: 14px;
  line-height: 1.6;
}

.cb6-trust,
.cb6-outcomes {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: start;
}
.cb6-trust-copy,
.cb6-outcomes-copy {
  position: sticky;
  top: 104px;
}
.cb6-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.cb6-trust-card {
  min-height: 210px;
  padding: 22px;
}
.cb6-trust-card h3 {
  margin-top: 18px;
}

.cb6-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.cb6-step {
  position: relative;
  min-height: 220px;
  padding: 24px;
}
.cb6-step span {
  display: block;
  margin-bottom: 28px;
  color: var(--cb6-cyan);
  font-family: var(--font-family-mono);
  font-size: 13px;
  font-weight: 850;
}
.cb6-step::after {
  content: "";
  position: absolute;
  top: 43px;
  left: 62px;
  right: -12px;
  height: 1px;
  background: linear-gradient(90deg, rgba(34, 227, 255, 0.5), transparent);
}
.cb6-step:last-child::after {
  display: none;
}

.cb6-check-list {
  list-style: none;
  display: grid;
  gap: 13px;
  margin: 22px 0 0;
  padding: 0;
}
.cb6-check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #dce8f7;
  line-height: 1.55;
}
.cb6-check-list i {
  margin-top: 4px;
  color: var(--cb6-green);
}
.cb6-outcomes-visual {
  min-width: 0;
}
.cb6-workspace-panel {
  padding: 24px;
}
.cb6-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.cb6-panel-head span,
.cb6-next-box span {
  display: block;
  color: var(--cb6-dim);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 850;
}
.cb6-panel-head strong,
.cb6-next-box strong {
  display: block;
  margin-top: 4px;
  color: var(--cb6-text);
  font-size: 20px;
  line-height: 1.25;
}
.cb6-panel-head i {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #06111c;
  background: var(--cb6-green);
}
.cb6-progress-list {
  display: grid;
  gap: 16px;
}
.cb6-progress-list label {
  display: grid;
  gap: 8px;
  color: var(--cb6-muted);
  font-size: 13px;
}
.cb6-progress-list label::after {
  content: "";
  grid-row: 2;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}
.cb6-progress-list b {
  grid-row: 2;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cb6-cyan), var(--cb6-blue));
  z-index: 1;
}
.cb6-next-box {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(34, 227, 255, 0.2);
  border-radius: 8px;
  background: rgba(34, 227, 255, 0.065);
}

.cb6-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 96px;
}
.cb6-metrics article {
  min-height: 150px;
  padding: 24px;
  border: 1px solid rgba(129, 151, 199, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}
.cb6-metrics strong {
  display: block;
  color: var(--cb6-text);
  font-family: var(--font-family-display);
  font-size: 48px;
  line-height: 1;
}
.cb6-metrics span {
  display: block;
  margin-top: 10px;
  color: var(--cb6-muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.cb6-pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  max-width: 920px;
}
.cb6-price-card {
  padding: 28px;
}
.cb6-price-card-featured {
  border-color: rgba(34, 227, 255, 0.38);
  box-shadow: 0 28px 80px rgba(34, 227, 255, 0.1);
}
.cb6-price-badge {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 6px 9px;
  border-radius: 8px;
  color: #06111c;
  background: var(--cb6-cyan);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.cb6-price {
  margin: 16px 0 20px;
  color: var(--cb6-text);
  font-size: 44px;
  font-weight: 900;
}
.cb6-price span {
  color: var(--cb6-dim);
  font-size: 14px;
  font-weight: 700;
}
.cb6-price-card ul {
  display: grid;
  gap: 9px;
  margin: 0 0 24px;
  padding-left: 18px;
  color: var(--cb6-muted);
}
.cb6-price-card li {
  line-height: 1.45;
}

.cb6-faq-list {
  max-width: 860px;
  display: grid;
  gap: 10px;
}
.cb6-faq-item {
  padding: 0;
}
.cb6-faq-item summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--cb6-text);
  font-weight: 850;
}
.cb6-faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--cb6-muted);
  line-height: 1.6;
}

.cb6-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 96px;
  padding: 42px;
  border: 1px solid rgba(34, 227, 255, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(34, 227, 255, 0.12), rgba(107, 125, 255, 0.12)),
    linear-gradient(180deg, rgba(16, 25, 43, 0.96), rgba(9, 14, 26, 0.96));
}
.cb6-final-cta p {
  color: #c7d4e9;
}
.cb6-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 36px 0 42px;
  color: var(--cb6-dim);
}
.cb6-footer .auth-brand {
  margin: 0;
}
.cb6-footer p {
  margin: 0;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .cb6-page {
    --cb6-gutter: 16px;
  }
  .cb6-nav {
    grid-template-columns: 1fr auto;
  }
  .cb6-nav-links {
    display: none;
  }
  .cb6-hero {
    min-height: 0;
    padding-top: 58px;
  }
  .cb6-hero-visual {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    margin-top: 34px;
    order: 2;
  }
  .cb6-hero-copy {
    order: 1;
  }
  .cb6-hero-visual::before {
    display: none;
  }
  .cb6-trust,
  .cb6-outcomes {
    grid-template-columns: 1fr;
  }
  .cb6-trust-copy,
  .cb6-outcomes-copy {
    position: static;
  }
  .cb6-solution-card,
  .cb6-solution-card--1,
  .cb6-solution-card--2,
  .cb6-solution-card--6 {
    grid-column: span 6;
  }
  .cb6-solution-card--6 {
    display: block;
    min-height: 245px;
  }
  .cb6-solution-card--6 .cb6-card-kicker {
    margin-top: 18px;
  }
  .cb6-solution-card--6 p:not(.cb6-card-kicker) {
    padding-top: 0;
  }
  .cb6-process-grid,
  .cb6-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cb6-step::after {
    display: none;
  }
  .cb6-audience-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cb6-audience-band span {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .cb6-page {
    --cb6-gutter: 12px;
  }
  .cb6-nav {
    top: 6px;
    min-height: 60px;
    padding: 8px;
    gap: 8px;
  }
  .cb6-nav .cb-logo-mark {
    width: 28px;
    height: 28px;
  }
  .cb6-nav .cb-logo-wordmark {
    font-size: 18px;
  }
  .cb6-text-link,
  .cb6-audience-band,
  .cb6-proof-row {
    display: none;
  }
  .cb6-nav-actions .cb6-btn {
    min-height: 36px;
    padding: 0 11px;
    font-size: 12px;
  }
  .cb6-hero {
    padding: 38px 0 52px;
  }
  .cb6-hero h1 {
    font-size: 38px;
    line-height: 1.05;
  }
  .cb6-lead {
    font-size: 16px;
    line-height: 1.55;
  }
  .cb6-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 22px;
  }
  .cb6-cockpit-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .cb6-cockpit-rail {
    display: none;
  }
  .cb6-cockpit-main {
    padding: 14px;
  }
  .cb6-kpi-grid {
    grid-template-columns: 1fr;
  }
  .cb6-ai-strip {
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .cb6-ai-strip b {
    display: none;
  }
  .cb6-role-table div {
    grid-template-columns: 46px minmax(0, 1fr);
  }
  .cb6-role-table em,
  .cb6-role-table div:nth-child(n+4) {
    display: none;
  }
  .cb6-section {
    padding-top: 64px;
  }
  .cb6-section-head {
    margin-bottom: 22px;
  }
  .cb6-section-head h2,
  .cb6-trust-copy h2,
  .cb6-outcomes-copy h2,
  .cb6-final-cta h2 {
    font-size: 32px;
    line-height: 1.12;
  }
  .cb6-section-head p:not(.cb6-eyebrow),
  .cb6-trust-copy p,
  .cb6-final-cta p {
    font-size: 15px;
  }
  .cb6-solution-grid,
  .cb6-trust-grid,
  .cb6-process-grid,
  .cb6-metrics,
  .cb6-pricing-grid {
    grid-template-columns: 1fr;
  }
  .cb6-solution-card,
  .cb6-solution-card--1,
  .cb6-solution-card--2,
  .cb6-solution-card--6 {
    grid-column: span 1;
    min-height: 0;
  }
  .cb6-trust-card,
  .cb6-step {
    min-height: 0;
  }
  .cb6-metrics {
    margin-top: 64px;
  }
  .cb6-final-cta {
    display: grid;
    margin-top: 64px;
    padding: 24px;
  }
  .cb6-final-cta .cb6-btn {
    width: 100%;
  }
  .cb6-footer {
    flex-direction: column;
    text-align: center;
  }
}

/* =============================================================================
 * Landing v7 - compact professional trust layout
 * ========================================================================== */
.cb7-page {
  --cb7-bg: #05070f;
  --cb7-panel: rgba(12, 18, 31, 0.94);
  --cb7-panel-2: rgba(15, 24, 40, 0.9);
  --cb7-line: rgba(132, 151, 190, 0.18);
  --cb7-line-strong: rgba(34, 227, 255, 0.34);
  --cb7-text: #edf3ff;
  --cb7-muted: #aab6cc;
  --cb7-dim: #6e7c94;
  --cb7-cyan: #22e3ff;
  --cb7-blue: #6b7dff;
  --cb7-green: #37d995;
  --cb7-violet: #9a7dff;
  --cb7-amber: #f5bd63;
  --cb7-rose: #ff6f91;
  --cb7-max: 1180px;
  --cb7-gutter: 24px;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--cb7-text);
  background:
    radial-gradient(900px 420px at 86% 6%, rgba(34, 227, 255, 0.10), transparent 62%),
    radial-gradient(760px 360px at 12% 18%, rgba(154, 125, 255, 0.08), transparent 64%),
    radial-gradient(700px 320px at 78% 72%, rgba(55, 217, 149, 0.045), transparent 64%),
    radial-gradient(460px 260px at 18% 82%, rgba(245, 189, 99, 0.035), transparent 70%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    #05070f;
  background-size: auto, auto, auto, auto, 72px 72px, 72px 72px, auto;
}
.cb7-page,
.cb7-page * {
  box-sizing: border-box;
}
.cb7-page a {
  color: inherit;
}
.cb7-page h1,
.cb7-page h2,
.cb7-page h3,
.cb7-page p {
  letter-spacing: 0;
}
.cb7-nav,
.cb7-hero,
.cb7-band,
.cb7-section,
.cb7-metrics,
.cb7-final-cta,
.cb7-footer {
  width: min(var(--cb7-max), calc(100% - 2 * var(--cb7-gutter)));
  margin-left: auto;
  margin-right: auto;
}

.cb7-nav {
  position: sticky;
  top: 10px;
  z-index: 50;
  min-height: 64px;
  margin-top: 10px;
  padding: 9px 10px 9px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--cb7-line);
  border-radius: 8px;
  background: rgba(6, 10, 19, 0.94);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}
.cb7-brand,
.cb7-nav .auth-brand {
  margin: 0;
  text-decoration: none;
}
.cb7-nav .cb-logo-mark {
  width: 32px;
  height: 32px;
}
.cb7-nav .cb-logo-wordmark {
  font-size: 24px;
  color: var(--cb7-text);
}
.cb7-nav-links,
.cb7-nav-actions {
  display: flex;
  align-items: center;
}
.cb7-nav-links {
  justify-content: center;
  gap: 4px;
}
.cb7-nav-links a,
.cb7-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  color: #cbd5e8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 780;
}
.cb7-nav-links a:hover,
.cb7-link:hover {
  color: var(--cb7-cyan);
  background: rgba(34, 227, 255, 0.08);
}
.cb7-nav-actions {
  gap: 8px;
}

.cb7-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 850;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.cb7-btn:hover {
  transform: translateY(-1px);
}
.cb7-btn-primary {
  color: #06111f;
  background: linear-gradient(135deg, #31e5ff 0%, #75c3ff 45%, #9a7dff 100%);
  box-shadow: 0 12px 30px rgba(34, 227, 255, 0.18), 0 0 34px rgba(154, 125, 255, 0.1);
}
.cb7-btn-secondary {
  color: var(--cb7-text);
  border-color: rgba(132, 151, 190, 0.26);
  background: rgba(255, 255, 255, 0.035);
}
.cb7-btn-large {
  min-height: 46px;
  padding: 0 20px;
  font-size: 15px;
}

.cb7-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: clamp(22px, 3vw, 38px);
  align-items: center;
  padding: 46px 0 32px;
}
.cb7-hero-copy {
  min-width: 0;
}
.cb7-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 7px 10px;
  border: 1px solid rgba(34, 227, 255, 0.24);
  border-radius: 8px;
  color: #a8f4ff;
  background: rgba(34, 227, 255, 0.07);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}
.cb7-hero .cb7-eyebrow {
  border-color: rgba(154, 125, 255, 0.3);
  color: #d6ccff;
  background: linear-gradient(135deg, rgba(154, 125, 255, 0.12), rgba(34, 227, 255, 0.06));
}
.cb7-hero h1 {
  max-width: 600px;
  margin: 0;
  color: var(--cb7-text);
  font-family: var(--font-family-display);
  font-size: clamp(44px, 5vw, 58px);
  line-height: 1.04;
  font-weight: 800;
}
.cb7-lead {
  max-width: 570px;
  margin: 16px 0 0;
  color: #c6d2e7;
  font-size: 17px;
  line-height: 1.58;
}
.cb7-hero-subline {
  margin: 12px 0 0;
  color: #e6efff;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.35;
}
.cb7-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.cb7-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}
.cb7-proof-strip span {
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--cb7-line);
  border-radius: 8px;
  color: var(--cb7-muted);
  background: rgba(255, 255, 255, 0.028);
  font-size: 12px;
  line-height: 1.35;
}
.cb7-proof-strip strong {
  display: block;
  color: var(--cb7-text);
  font-size: 13px;
}
.cb7-hero-product {
  min-width: 0;
}
.cb7-product {
  overflow: hidden;
  border: 1px solid rgba(132, 151, 190, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(520px 220px at 82% 8%, rgba(154, 125, 255, 0.08), transparent 64%),
    linear-gradient(180deg, rgba(15, 24, 40, 0.98), rgba(8, 13, 24, 0.98));
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.38), 0 0 60px rgba(34, 227, 255, 0.07), 0 0 50px rgba(154, 125, 255, 0.06);
}
.cb7-product-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(132, 151, 190, 0.14);
  color: var(--cb7-dim);
  font-family: var(--font-family-mono);
  font-size: 11px;
}
.cb7-product-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.cb7-product-bar span:nth-child(1) { background: #f1677b; }
.cb7-product-bar span:nth-child(2) { background: #f2b94d; }
.cb7-product-bar span:nth-child(3) { background: #36d18c; }
.cb7-product-bar strong {
  margin-left: 8px;
}
.cb7-product-body {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 360px;
}
.cb7-product-nav {
  padding: 18px 12px;
  border-right: 1px solid rgba(132, 151, 190, 0.14);
  display: grid;
  align-content: start;
  gap: 8px;
}
.cb7-product-nav b {
  margin-bottom: 8px;
  color: var(--cb7-text);
  font-size: 13px;
}
.cb7-product-nav span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 9px;
  border-radius: 8px;
  color: var(--cb7-muted);
  font-size: 12px;
  font-weight: 750;
}
.cb7-product-nav .is-active {
  color: var(--cb7-cyan);
  background: rgba(34, 227, 255, 0.09);
}
.cb7-product-main {
  padding: 18px;
  display: grid;
  gap: 12px;
}
.cb7-stage-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.cb7-stage-row span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(132, 151, 190, 0.14);
  border-radius: 7px;
  color: var(--cb7-muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}
.cb7-stage-row .is-active {
  color: #06111f;
  border-color: rgba(34, 227, 255, 0.45);
  background: var(--cb7-cyan);
}
.cb7-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.cb7-kpis article,
.cb7-role-list div {
  border: 1px solid rgba(132, 151, 190, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}
.cb7-kpis article {
  padding: 12px;
}
.cb7-kpis span,
.cb7-kpis em {
  display: block;
  color: var(--cb7-dim);
  font-size: 11px;
  font-style: normal;
}
.cb7-kpis strong {
  display: block;
  margin: 4px 0;
  color: var(--cb7-text);
  font-size: 26px;
}
.cb7-recommendation {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(34, 227, 255, 0.28);
  border-radius: 8px;
  background: rgba(34, 227, 255, 0.08);
}
.cb7-recommendation i {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #06111f;
  background: var(--cb7-cyan);
}
.cb7-recommendation span {
  display: block;
  color: var(--cb7-cyan);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}
.cb7-recommendation strong {
  display: block;
  color: var(--cb7-text);
  font-size: 13px;
}
.cb7-role-list {
  display: grid;
  gap: 8px;
}
.cb7-role-list div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}
.cb7-role-list b {
  color: var(--cb7-green);
  font-family: var(--font-family-mono);
}
.cb7-role-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #dbe6f7;
  font-size: 13px;
}
.cb7-role-list em {
  color: var(--cb7-muted);
  font-size: 12px;
  font-style: normal;
  text-align: right;
}
.cb7-mini-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.cb7-mini-proof span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(132, 151, 190, 0.14);
  border-radius: 8px;
  color: var(--cb7-muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px;
  font-weight: 760;
}
.cb7-mini-proof i {
  color: var(--cb7-cyan);
}

.cb7-band {
  display: grid;
  grid-template-columns: 1.35fr repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 6px 0 18px;
}
.cb7-band span,
.cb7-band b {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--cb7-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
  color: var(--cb7-muted);
  font-size: 12px;
  text-align: center;
}
.cb7-band b {
  color: #dde8f8;
}

.cb7-section {
  padding-top: 66px;
}
.cb7-section-head {
  max-width: 720px;
  margin-bottom: 22px;
}
.cb7-section-head h2,
.cb7-trust-intro h2,
.cb7-outcomes-copy h2,
.cb7-final-cta h2 {
  margin: 0;
  color: var(--cb7-text);
  font-family: var(--font-family-display);
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.12;
  font-weight: 780;
}
.cb7-section-head p:not(.cb7-eyebrow),
.cb7-trust-intro p,
.cb7-final-cta p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--cb7-muted);
  font-size: 15px;
  line-height: 1.6;
}

.cb7-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cb7-module-card,
.cb7-trust-card,
.cb7-step-card,
.cb7-price-card,
.cb7-faq-item {
  border: 1px solid var(--cb7-line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 25, 43, 0.86), rgba(9, 14, 26, 0.86));
}
.cb7-module-card {
  min-height: 196px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.cb7-module-card::before,
.cb7-trust-card::before,
.cb7-price-card::before,
.cb7-metrics article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--card-accent, var(--cb7-cyan)), transparent);
  opacity: 0.55;
}
.cb7-module-card:nth-child(1) { --card-accent: var(--cb7-cyan); }
.cb7-module-card:nth-child(2) { --card-accent: var(--cb7-violet); }
.cb7-module-card:nth-child(3) { --card-accent: var(--cb7-amber); }
.cb7-module-card:nth-child(4) { --card-accent: var(--cb7-blue); }
.cb7-module-card:nth-child(5) { --card-accent: var(--cb7-green); }
.cb7-module-card:nth-child(6) { --card-accent: #67e8f9; }
.cb7-module-card:nth-child(2) .cb7-icon,
.cb7-module-card:nth-child(5) .cb7-icon {
  border-color: color-mix(in srgb, var(--card-accent) 42%, transparent);
  color: var(--card-accent);
  background: color-mix(in srgb, var(--card-accent) 10%, transparent);
}
.cb7-module-card:nth-child(3) .cb7-icon {
  border-color: rgba(245, 189, 99, 0.34);
  color: var(--cb7-amber);
  background: rgba(245, 189, 99, 0.08);
}
.cb7-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(34, 227, 255, 0.22);
  border-radius: 8px;
  color: var(--cb7-cyan);
  background: rgba(34, 227, 255, 0.08);
}
.cb7-icon-small {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
}
.cb7-module-card h3,
.cb7-trust-card h3,
.cb7-step-card h3,
.cb7-price-card h3 {
  margin: 16px 0 8px;
  color: var(--cb7-text);
  font-size: 18px;
}
.cb7-module-card p,
.cb7-trust-card p,
.cb7-step-card p {
  margin: 0;
  color: var(--cb7-muted);
  font-size: 14px;
  line-height: 1.55;
}

.cb7-trust {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 26px;
  align-items: start;
}
.cb7-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.cb7-trust-card {
  min-height: 142px;
  display: flex;
  gap: 14px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  --card-accent: var(--cb7-green);
}
.cb7-trust-card h3 {
  margin-top: 0;
}
.cb7-trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.cb7-trust-points span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(55, 217, 149, 0.24);
  border-radius: 8px;
  color: #b7f8d9;
  background: rgba(55, 217, 149, 0.07);
  font-size: 12px;
  font-weight: 850;
}

.cb7-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.cb7-step-card {
  min-height: 174px;
  padding: 20px;
}
.cb7-step-card span {
  display: block;
  margin-bottom: 26px;
  color: var(--cb7-cyan);
  font-family: var(--font-family-mono);
  font-size: 13px;
  font-weight: 850;
}

.cb7-outcomes {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 26px;
  align-items: center;
}
.cb7-outcomes-copy ul {
  list-style: none;
  display: grid;
  gap: 11px;
  margin: 18px 0 0;
  padding: 0;
}
.cb7-outcomes-copy li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #dce8f7;
  font-size: 15px;
  line-height: 1.5;
}
.cb7-outcomes-copy i {
  margin-top: 4px;
  color: var(--cb7-green);
}
.cb7-progress-panel {
  padding: 22px;
  border: 1px solid rgba(55, 217, 149, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(420px 180px at 84% 0%, rgba(55, 217, 149, 0.08), transparent 64%),
    linear-gradient(180deg, rgba(16, 25, 43, 0.92), rgba(9, 14, 26, 0.92));
}
.cb7-progress-head {
  margin-bottom: 18px;
}
.cb7-progress-head span,
.cb7-progress-panel article span {
  display: block;
  color: var(--cb7-dim);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}
.cb7-progress-head strong {
  display: block;
  margin-top: 4px;
  color: var(--cb7-text);
  font-size: 22px;
}
.cb7-progress-panel label {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: var(--cb7-muted);
  font-size: 13px;
}
.cb7-progress-panel label::after {
  content: "";
  grid-row: 2;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}
.cb7-progress-panel label b {
  grid-row: 2;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cb7-green), var(--cb7-cyan), var(--cb7-blue));
  z-index: 1;
}
.cb7-progress-panel article {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(34, 227, 255, 0.2);
  border-radius: 8px;
  background: rgba(34, 227, 255, 0.065);
}
.cb7-progress-panel article strong {
  display: block;
  margin-top: 4px;
  color: var(--cb7-text);
  font-size: 18px;
  line-height: 1.32;
}

.cb7-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 66px;
}
.cb7-metrics article {
  position: relative;
  overflow: hidden;
  min-height: 128px;
  padding: 22px;
  border: 1px solid var(--cb7-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.028);
}
.cb7-metrics article:nth-child(1) { --card-accent: var(--cb7-cyan); }
.cb7-metrics article:nth-child(2) { --card-accent: var(--cb7-violet); }
.cb7-metrics article:nth-child(3) { --card-accent: var(--cb7-amber); }
.cb7-metrics article:nth-child(4) { --card-accent: var(--cb7-green); }
.cb7-metrics strong {
  display: block;
  color: var(--cb7-text);
  font-family: var(--font-family-display);
  font-size: 42px;
  line-height: 1;
}
.cb7-metrics span {
  display: block;
  margin-top: 10px;
  color: var(--cb7-muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.cb7-pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  max-width: 880px;
}
.cb7-price-card {
  padding: 24px;
  position: relative;
  overflow: hidden;
  --card-accent: rgba(132, 151, 190, 0.5);
}
.cb7-price-card-featured {
  --card-accent: var(--cb7-violet);
  border-color: rgba(154, 125, 255, 0.4);
  box-shadow: 0 24px 70px rgba(34, 227, 255, 0.08), 0 0 48px rgba(154, 125, 255, 0.08);
}
.cb7-badge {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 12px;
  padding: 5px 8px;
  border-radius: 8px;
  color: #06111f;
  background: linear-gradient(135deg, var(--cb7-amber), var(--cb7-cyan));
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.cb7-price {
  margin: 14px 0 18px;
  color: var(--cb7-text);
  font-size: 38px;
  font-weight: 900;
}
.cb7-price span {
  color: var(--cb7-dim);
  font-size: 13px;
}
.cb7-price-card ul {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding-left: 18px;
  color: var(--cb7-muted);
  font-size: 14px;
}

.cb7-faq-list {
  max-width: 820px;
  display: grid;
  gap: 9px;
}
.cb7-faq-item {
  padding: 0;
}
.cb7-faq-item summary {
  cursor: pointer;
  padding: 16px 18px;
  color: var(--cb7-text);
  font-weight: 850;
}
.cb7-faq-item p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--cb7-muted);
  line-height: 1.55;
}

.cb7-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 66px;
  padding: 32px;
  border: 1px solid rgba(34, 227, 255, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(600px 220px at 86% 24%, rgba(154, 125, 255, 0.22), transparent 68%),
    radial-gradient(480px 180px at 12% 36%, rgba(34, 227, 255, 0.16), transparent 66%),
    linear-gradient(135deg, rgba(34, 227, 255, 0.10), rgba(55, 217, 149, 0.06) 42%, rgba(107, 125, 255, 0.13)),
    rgba(15, 24, 40, 0.94);
}
.cb7-final-cta p {
  color: #c5d2e7;
}
.cb7-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 0 36px;
  color: var(--cb7-dim);
}
.cb7-footer .auth-brand {
  margin: 0;
}
.cb7-footer p {
  margin: 0;
  font-size: 13px;
}

@media (max-width: 1060px) {
  .cb7-page {
    --cb7-gutter: 16px;
  }
  .cb7-nav {
    grid-template-columns: 1fr auto;
  }
  .cb7-nav-links {
    display: none;
  }
  .cb7-hero,
  .cb7-trust,
  .cb7-outcomes {
    grid-template-columns: 1fr;
  }
  .cb7-hero-product {
    order: 2;
  }
  .cb7-hero-copy {
    order: 1;
  }
  .cb7-module-grid,
  .cb7-trust-grid,
  .cb7-step-grid,
  .cb7-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cb7-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cb7-band span {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .cb7-page {
    --cb7-gutter: 12px;
  }
  .cb7-nav {
    top: 6px;
    min-height: 58px;
    padding: 8px;
  }
  .cb7-nav .cb-logo-mark {
    width: 28px;
    height: 28px;
  }
  .cb7-nav .cb-logo-wordmark {
    font-size: 18px;
  }
  .cb7-link,
  .cb7-band {
    display: none;
  }
  .cb7-nav-actions .cb7-btn {
    min-height: 36px;
    padding: 0 11px;
    font-size: 12px;
  }
  .cb7-hero {
    padding: 32px 0 24px;
    gap: 20px;
  }
  .cb7-hero h1 {
    font-size: 34px;
  }
  .cb7-lead {
    font-size: 15px;
  }
  .cb7-hero-subline {
    font-size: 16px;
  }
  .cb7-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .cb7-proof-strip {
    display: none;
  }
  .cb7-product-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .cb7-product-nav {
    display: none;
  }
  .cb7-product-main {
    padding: 14px;
  }
  .cb7-stage-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cb7-stage-row span:nth-child(n+4),
  .cb7-mini-proof {
    display: none;
  }
  .cb7-kpis,
  .cb7-module-grid,
  .cb7-trust-grid,
  .cb7-step-grid,
  .cb7-metrics,
  .cb7-pricing-grid {
    grid-template-columns: 1fr;
  }
  .cb7-role-list div {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .cb7-role-list em {
    display: none;
  }
  .cb7-section {
    padding-top: 48px;
  }
  .cb7-module-card,
  .cb7-trust-card,
  .cb7-step-card {
    min-height: 0;
  }
  .cb7-metrics {
    padding-top: 48px;
  }
  .cb7-final-cta {
    display: grid;
    padding: 24px;
    margin-top: 48px;
  }
  .cb7-final-cta .cb7-btn {
    width: 100%;
  }
  .cb7-footer {
    flex-direction: column;
    text-align: center;
  }
}

/* Landing v7 lower-page refinement: pricing, FAQ, and CTA should feel
   structured and executive, not oversized or poster-like. */
@media (min-width: 901px) {
  .cb7-pricing,
  .cb7-faq {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: 34px;
    align-items: start;
    padding-top: 58px;
  }

  .cb7-pricing .cb7-section-head,
  .cb7-faq .cb7-section-head {
    margin-bottom: 0;
  }

  .cb7-pricing .cb7-section-head h2,
  .cb7-faq .cb7-section-head h2 {
    max-width: 13ch;
    font-size: 34px;
    line-height: 1.12;
  }

  .cb7-pricing-grid {
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .cb7-price-card {
    min-height: 310px;
    display: flex;
    flex-direction: column;
    padding: 22px;
  }

.cb7-price-card h3 {
  margin-top: 0;
}

.cb7-best-for {
  margin: 0 0 8px;
  color: var(--cb7-muted);
  font-size: 13px;
  line-height: 1.45;
}

.cb7-price {
  margin: 12px 0 16px;
  font-size: 34px;
}

  .cb7-price-card ul {
    margin-bottom: 18px;
    font-size: 13px;
  }

  .cb7-price-card .cb7-btn {
    align-self: flex-start;
    margin-top: auto;
  }

  .cb7-faq-list {
    max-width: none;
    gap: 8px;
  }

  .cb7-faq-item summary {
    padding: 14px 16px;
    font-size: 14px;
  }

  .cb7-faq-item p {
    padding: 0 16px 14px;
    font-size: 14px;
  }

  .cb7-final-cta {
    min-height: 0;
    margin-top: 58px;
    padding: 28px 30px;
    align-items: center;
  }

  .cb7-final-cta .cb7-eyebrow {
    margin-bottom: 10px;
  }

  .cb7-final-cta h2 {
    font-size: 32px;
    line-height: 1.12;
  }

  .cb7-final-cta p {
    max-width: 620px;
    margin-top: 8px;
    font-size: 15px;
  }

  .cb7-footer {
    padding-top: 26px;
  }
}

@media (max-width: 900px) {
  .cb7-pricing,
  .cb7-faq {
    padding-top: 52px;
  }

  .cb7-pricing .cb7-section-head h2,
  .cb7-faq .cb7-section-head h2 {
    font-size: 30px;
  }

  .cb7-price-card {
    padding: 20px;
  }
}

/* =============================================================================
 * Landing v8 - futuristic product-led command center
 * ========================================================================== */
.cb8-page {
  --cb8-bg: #05070f;
  --cb8-panel: rgba(12, 18, 31, 0.9);
  --cb8-panel-strong: rgba(16, 25, 43, 0.94);
  --cb8-line: rgba(139, 157, 197, 0.18);
  --cb8-line-strong: rgba(42, 226, 255, 0.34);
  --cb8-text: #edf4ff;
  --cb8-muted: #aebad1;
  --cb8-dim: #728098;
  --cb8-cyan: #28e2ff;
  --cb8-violet: #8b7dff;
  --cb8-green: #3ee2a0;
  --cb8-amber: #f5bd63;
  --cb8-rose: #ff6f91;
  --cb8-blue: #67a7ff;
  --cb8-max: 1220px;
  --cb8-gutter: 24px;
  position: relative;
  isolation: isolate;
  display: block;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--cb8-text);
  background:
    linear-gradient(115deg, rgba(40, 226, 255, 0.09), transparent 24%, rgba(139, 125, 255, 0.07) 46%, transparent 70%),
    linear-gradient(180deg, rgba(5, 7, 15, 0.96), rgba(5, 7, 15, 0.99)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--cb8-bg);
  background-size: auto, auto, 70px 70px, 70px 70px, auto;
}

.cb8-page,
.cb8-page * {
  box-sizing: border-box;
}

.cb8-page a {
  color: inherit;
}

.cb8-page h1,
.cb8-page h2,
.cb8-page h3,
.cb8-page p {
  letter-spacing: 0;
}

.cb8-ambient {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
  filter: blur(34px);
  transform: skewY(-10deg);
}

.cb8-ambient-one {
  top: 78px;
  right: -12%;
  width: 54%;
  height: 220px;
  background: linear-gradient(90deg, transparent, rgba(40, 226, 255, 0.18), rgba(139, 125, 255, 0.16), transparent);
}

.cb8-ambient-two {
  top: 780px;
  left: -16%;
  width: 62%;
  height: 260px;
  background: linear-gradient(90deg, transparent, rgba(62, 226, 160, 0.12), rgba(245, 189, 99, 0.08), transparent);
}

.cb8-nav,
.cb8-hero,
.cb8-signal-bar,
.cb8-section,
.cb8-metrics,
.cb8-final-cta,
.cb8-footer {
  width: min(var(--cb8-max), calc(100% - 2 * var(--cb8-gutter)));
  margin-left: auto;
  margin-right: auto;
}

.cb8-nav {
  position: sticky;
  top: 10px;
  z-index: 30;
  min-height: 66px;
  margin-top: 10px;
  padding: 9px 10px 9px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(139, 157, 197, 0.2);
  border-radius: 8px;
  background: rgba(5, 9, 18, 0.9);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.cb8-brand,
.cb8-nav .auth-brand {
  margin: 0;
  text-decoration: none;
}

.cb8-nav .cb-logo-mark {
  width: 34px;
  height: 34px;
}

.cb8-nav .cb-logo-wordmark {
  color: var(--cb8-text);
  font-size: 25px;
}

.cb8-nav-links,
.cb8-nav-actions {
  display: flex;
  align-items: center;
}

.cb8-nav-links {
  justify-content: center;
  gap: 3px;
}

.cb8-nav-links a,
.cb8-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 8px;
  color: #cbd6ea;
  text-decoration: none;
  font-size: 13px;
  font-weight: 820;
}

.cb8-nav-links a:hover,
.cb8-link:hover {
  color: var(--cb8-cyan);
  background: rgba(40, 226, 255, 0.08);
}

.cb8-nav-actions {
  gap: 8px;
}

.cb8-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--cb8-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 880;
  line-height: 1;
  white-space: nowrap;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.cb8-btn:hover {
  transform: translateY(-1px);
}

.cb8-btn-primary {
  color: #06111f;
  background: linear-gradient(135deg, var(--cb8-cyan), #74c5ff 46%, var(--cb8-violet));
  box-shadow: 0 16px 34px rgba(40, 226, 255, 0.18), 0 0 42px rgba(139, 125, 255, 0.12);
}

.cb8-btn-secondary {
  border-color: rgba(139, 157, 197, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.cb8-btn-secondary:hover {
  border-color: rgba(40, 226, 255, 0.32);
  background: rgba(40, 226, 255, 0.07);
}

.cb8-btn-large {
  min-height: 48px;
  padding: 0 20px;
  font-size: 15px;
}

.cb8-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
  gap: 32px;
  align-items: center;
  padding: 48px 0 26px;
}

.cb8-hero-copy {
  min-width: 0;
}

.cb8-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 7px 10px;
  border: 1px solid rgba(40, 226, 255, 0.24);
  border-radius: 8px;
  color: #acf5ff;
  background: rgba(40, 226, 255, 0.07);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.cb8-hero .cb8-eyebrow {
  border-color: rgba(139, 125, 255, 0.32);
  color: #d7d1ff;
  background: linear-gradient(135deg, rgba(139, 125, 255, 0.14), rgba(40, 226, 255, 0.06));
}

.cb8-hero h1 {
  max-width: 620px;
  margin: 0;
  color: var(--cb8-text);
  font-family: var(--font-family-display);
  font-size: 62px;
  font-weight: 820;
  line-height: 1.02;
}

.cb8-hero-subline {
  max-width: 610px;
  margin: 18px 0 0;
  color: #cbd8ed;
  font-size: 19px;
  line-height: 1.55;
}

.cb8-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.cb8-hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.cb8-hero-proof span {
  min-height: 60px;
  padding: 11px 12px;
  border: 1px solid rgba(139, 157, 197, 0.18);
  border-radius: 8px;
  color: var(--cb8-muted);
  background: rgba(255, 255, 255, 0.032);
  font-size: 12px;
  line-height: 1.35;
}

.cb8-hero-proof strong {
  display: block;
  margin-bottom: 2px;
  color: var(--cb8-text);
  font-size: 13px;
}

.cb8-hero-visual {
  min-width: 0;
}

.cb8-cockpit {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(139, 157, 197, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(40, 226, 255, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(16, 25, 43, 0.98), rgba(7, 12, 22, 0.98));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42), 0 0 60px rgba(40, 226, 255, 0.08);
}

.cb8-cockpit-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 22%, rgba(40, 226, 255, 0.12) 45%, transparent 62%),
    linear-gradient(150deg, transparent 46%, rgba(139, 125, 255, 0.12) 66%, transparent 82%);
  opacity: 0.72;
}

.cb8-cockpit-bar {
  position: relative;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(139, 157, 197, 0.15);
  color: var(--cb8-dim);
  font-family: var(--font-family-mono);
  font-size: 11px;
}

.cb8-cockpit-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.cb8-cockpit-bar span:nth-child(1) { background: #ff6f91; }
.cb8-cockpit-bar span:nth-child(2) { background: #f5bd63; }
.cb8-cockpit-bar span:nth-child(3) { background: #3ee2a0; }

.cb8-cockpit-bar strong {
  margin-left: 8px;
}

.cb8-cockpit-bar em {
  margin-left: auto;
  color: var(--cb8-green);
  font-style: normal;
  font-weight: 850;
}

.cb8-cockpit-body {
  position: relative;
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  min-height: 430px;
}

.cb8-cockpit-rail {
  padding: 20px 13px;
  border-right: 1px solid rgba(139, 157, 197, 0.15);
  display: grid;
  align-content: start;
  gap: 8px;
}

.cb8-cockpit-rail b {
  margin-bottom: 10px;
  color: var(--cb8-text);
  font-size: 13px;
}

.cb8-cockpit-rail span {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--cb8-muted);
  font-size: 12px;
  font-weight: 780;
}

.cb8-cockpit-rail .is-active {
  color: var(--cb8-cyan);
  background: rgba(40, 226, 255, 0.1);
}

.cb8-cockpit-main {
  padding: 18px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.cb8-cockpit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cb8-cockpit-head span,
.cb8-command-grid span,
.cb8-role-feed em,
.cb8-progress-head span,
.cb8-progress-console article span {
  display: block;
  color: var(--cb8-dim);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.cb8-cockpit-head strong {
  display: block;
  margin-top: 4px;
  color: var(--cb8-text);
  font-size: 18px;
}

.cb8-cockpit-head b {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  color: #06111f;
  background: var(--cb8-green);
  font-size: 12px;
}

.cb8-stage-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.cb8-stage-map span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(139, 157, 197, 0.14);
  border-radius: 8px;
  color: var(--cb8-muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.cb8-stage-map .done {
  border-color: rgba(62, 226, 160, 0.32);
  color: #baf8df;
  background: rgba(62, 226, 160, 0.08);
}

.cb8-stage-map .active {
  border-color: rgba(40, 226, 255, 0.46);
  color: #06111f;
  background: var(--cb8-cyan);
}

.cb8-command-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 10px;
}

.cb8-command-grid article,
.cb8-role-feed div {
  border: 1px solid rgba(139, 157, 197, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.cb8-score-panel,
.cb8-action-panel {
  min-height: 124px;
  padding: 16px;
}

.cb8-score-panel strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--cb8-text);
  font-size: 46px;
  line-height: 1;
}

.cb8-score-panel p,
.cb8-action-panel p {
  margin: 0;
  color: var(--cb8-muted);
  font-size: 12px;
  line-height: 1.45;
}

.cb8-action-panel {
  border-color: rgba(40, 226, 255, 0.3) !important;
  background: rgba(40, 226, 255, 0.08) !important;
}

.cb8-action-panel strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--cb8-text);
  font-size: 18px;
  line-height: 1.2;
}

.cb8-mini-panel {
  min-height: 74px;
  padding: 13px;
}

.cb8-mini-panel strong {
  display: block;
  margin-top: 6px;
  color: var(--cb8-text);
  font-size: 15px;
}

.cb8-mini-violet {
  border-color: rgba(139, 125, 255, 0.25) !important;
  background: rgba(139, 125, 255, 0.08) !important;
}

.cb8-mini-green {
  border-color: rgba(62, 226, 160, 0.24) !important;
  background: rgba(62, 226, 160, 0.07) !important;
}

.cb8-role-feed {
  display: grid;
  gap: 8px;
}

.cb8-role-feed div {
  min-height: 44px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 92px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}

.cb8-role-feed b {
  color: var(--cb8-green);
  font-family: var(--font-family-mono);
}

.cb8-role-feed span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #dbe7f8;
  font-size: 13px;
}

.cb8-role-feed em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
  text-align: right;
  text-transform: none;
}

.cb8-signal-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 2px 0 18px;
}

.cb8-signal-bar article {
  min-height: 76px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(139, 157, 197, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.032);
}

.cb8-signal-bar i {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--cb8-cyan);
  background: rgba(40, 226, 255, 0.08);
}

.cb8-signal-bar strong {
  color: var(--cb8-text);
  font-size: 13px;
}

.cb8-signal-bar span {
  color: var(--cb8-muted);
  font-size: 12px;
}

.cb8-section {
  padding-top: 58px;
}

.cb8-section-head {
  max-width: 720px;
  margin-bottom: 22px;
}

.cb8-section-head-wide {
  max-width: 900px;
}

.cb8-section-head h2,
.cb8-trust-copy h2,
.cb8-momentum-copy h2,
.cb8-final-cta h2 {
  margin: 0;
  color: var(--cb8-text);
  font-family: var(--font-family-display);
  font-size: 40px;
  font-weight: 810;
  line-height: 1.12;
}

.cb8-section-head p:not(.cb8-eyebrow),
.cb8-trust-copy p,
.cb8-final-cta p {
  max-width: 640px;
  margin: 12px 0 0;
  color: var(--cb8-muted);
  font-size: 15px;
  line-height: 1.6;
}

.cb8-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 12px;
}

.cb8-bento-card {
  --tone-rgb: 40, 226, 255;
  position: relative;
  overflow: hidden;
  min-height: 218px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid rgba(139, 157, 197, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(var(--tone-rgb), 0.1), transparent 46%),
    linear-gradient(180deg, rgba(16, 25, 43, 0.88), rgba(8, 13, 24, 0.88));
}

.cb8-bento-card::before,
.cb8-trust-card::before,
.cb8-step-card::before,
.cb8-price-card::before,
.cb8-metrics article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--tone-rgb), 0.88), transparent);
  opacity: 0.72;
}

.cb8-bento-wide {
  grid-column: span 6;
}

.cb8-bento-tall {
  grid-column: span 3;
  grid-row: auto;
  min-height: 218px;
}

.cb8-bento-compact {
  grid-column: span 3;
}

.cb8-tone-cyan { --tone-rgb: 40, 226, 255; }
.cb8-tone-violet { --tone-rgb: 139, 125, 255; }
.cb8-tone-green { --tone-rgb: 62, 226, 160; }
.cb8-tone-amber { --tone-rgb: 245, 189, 99; }
.cb8-tone-blue { --tone-rgb: 103, 167, 255; }
.cb8-tone-rose { --tone-rgb: 255, 111, 145; }

.cb8-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.cb8-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--tone-rgb), 0.34);
  border-radius: 8px;
  color: rgb(var(--tone-rgb));
  background: rgba(var(--tone-rgb), 0.1);
}

.cb8-icon-small {
  width: 38px;
  height: 38px;
}

.cb8-card-metric {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(var(--tone-rgb), 0.22);
  border-radius: 8px;
  color: rgb(var(--tone-rgb));
  background: rgba(var(--tone-rgb), 0.06);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.cb8-kicker {
  margin: 0 0 10px;
  color: rgb(var(--tone-rgb));
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cb8-bento-card h3,
.cb8-trust-card h3,
.cb8-step-card h3,
.cb8-price-card h3 {
  margin: 0 0 9px;
  color: var(--cb8-text);
  font-size: 20px;
  line-height: 1.22;
}

.cb8-bento-card p:not(.cb8-kicker),
.cb8-trust-card p,
.cb8-step-card p {
  margin: 0;
  color: var(--cb8-muted);
  font-size: 14px;
  line-height: 1.55;
}

.cb8-card-bars {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.cb8-card-bars label {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--cb8-muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.cb8-card-bars label::after {
  content: "";
  grid-column: 2;
  grid-row: 1;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.cb8-card-bars b {
  grid-column: 2;
  grid-row: 1;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cb8-cyan), var(--cb8-violet));
  z-index: 1;
}

.cb8-resume-preview {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(139, 125, 255, 0.28);
  border-radius: 8px;
  background: rgba(139, 125, 255, 0.08);
}

.cb8-resume-preview span {
  display: block;
  color: var(--cb8-violet);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.cb8-resume-preview strong {
  display: block;
  margin: 5px 0 10px;
  color: var(--cb8-text);
  font-size: 17px;
}

.cb8-resume-preview p {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 7px 0 0 !important;
  color: #d8e4f7 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.cb8-resume-preview i {
  color: var(--cb8-green);
}

.cb8-review-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
}

.cb8-review-strip span {
  min-height: 54px;
  display: grid;
  align-content: center;
  padding: 9px;
  border: 1px solid rgba(255, 111, 145, 0.22);
  border-radius: 8px;
  color: var(--cb8-muted);
  background: rgba(255, 111, 145, 0.06);
  font-size: 11px;
  line-height: 1.25;
}

.cb8-review-strip b {
  display: block;
  color: var(--cb8-text);
  font-size: 18px;
  line-height: 1;
}

.cb8-trust {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: 28px;
  align-items: start;
}

.cb8-security-panel {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.cb8-security-panel span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid rgba(62, 226, 160, 0.22);
  border-radius: 8px;
  color: #c1f8e2;
  background: rgba(62, 226, 160, 0.07);
  font-size: 13px;
  font-weight: 820;
}

.cb8-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cb8-trust-card {
  --tone-rgb: 62, 226, 160;
  position: relative;
  overflow: hidden;
  min-height: 150px;
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(139, 157, 197, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 25, 43, 0.88), rgba(8, 13, 24, 0.88));
}

.cb8-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cb8-step-card {
  --tone-rgb: 40, 226, 255;
  position: relative;
  overflow: hidden;
  min-height: 184px;
  padding: 20px;
  border: 1px solid rgba(139, 157, 197, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 25, 43, 0.86), rgba(8, 13, 24, 0.86));
}

.cb8-step-card span {
  display: block;
  margin-bottom: 28px;
  color: var(--cb8-cyan);
  font-family: var(--font-family-mono);
  font-size: 13px;
  font-weight: 900;
}

.cb8-momentum {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: center;
}

.cb8-momentum-copy ul {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
}

.cb8-momentum-copy li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #dce8f7;
  font-size: 15px;
  line-height: 1.5;
}

.cb8-momentum-copy i {
  margin-top: 4px;
  color: var(--cb8-green);
}

.cb8-progress-console {
  padding: 22px;
  border: 1px solid rgba(40, 226, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(40, 226, 255, 0.08), transparent 44%, rgba(62, 226, 160, 0.07)),
    linear-gradient(180deg, rgba(16, 25, 43, 0.9), rgba(8, 13, 24, 0.9));
}

.cb8-progress-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.cb8-progress-head strong {
  display: block;
  margin-top: 4px;
  color: var(--cb8-text);
  font-size: 24px;
  line-height: 1.2;
}

.cb8-progress-head i {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #06111f;
  background: var(--cb8-green);
  font-size: 20px;
}

.cb8-progress-console label {
  display: grid;
  gap: 7px;
  margin-top: 13px;
  color: var(--cb8-muted);
  font-size: 13px;
}

.cb8-progress-console label::after {
  content: "";
  grid-row: 2;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.cb8-progress-console label b {
  grid-row: 2;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cb8-green), var(--cb8-cyan), var(--cb8-violet));
  z-index: 1;
}

.cb8-progress-console article {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(40, 226, 255, 0.22);
  border-radius: 8px;
  background: rgba(40, 226, 255, 0.07);
}

.cb8-progress-console article strong {
  display: block;
  margin-top: 5px;
  color: var(--cb8-text);
  font-size: 18px;
  line-height: 1.32;
}

.cb8-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 58px;
}

.cb8-metrics article {
  --tone-rgb: 40, 226, 255;
  position: relative;
  overflow: hidden;
  min-height: 128px;
  padding: 22px;
  border: 1px solid rgba(139, 157, 197, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.032);
}

.cb8-metrics article:nth-child(2) { --tone-rgb: 139, 125, 255; }
.cb8-metrics article:nth-child(3) { --tone-rgb: 245, 189, 99; }
.cb8-metrics article:nth-child(4) { --tone-rgb: 62, 226, 160; }

.cb8-metrics strong {
  display: block;
  color: var(--cb8-text);
  font-family: var(--font-family-display);
  font-size: 42px;
  line-height: 1;
}

.cb8-metrics span {
  display: block;
  margin-top: 10px;
  color: var(--cb8-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cb8-pricing {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 30px;
  align-items: start;
}

.cb8-pricing .cb8-section-head {
  margin-bottom: 0;
}

.cb8-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cb8-price-card {
  --tone-rgb: 139, 157, 197;
  position: relative;
  overflow: hidden;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid rgba(139, 157, 197, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 25, 43, 0.9), rgba(8, 13, 24, 0.9));
}

.cb8-price-featured {
  --tone-rgb: 139, 125, 255;
  border-color: rgba(139, 125, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(139, 125, 255, 0.1), transparent 46%, rgba(40, 226, 255, 0.08)),
    linear-gradient(180deg, rgba(16, 25, 43, 0.94), rgba(8, 13, 24, 0.94));
  box-shadow: 0 24px 70px rgba(40, 226, 255, 0.08), 0 0 48px rgba(139, 125, 255, 0.08);
}

.cb8-badge {
  align-self: flex-start;
  margin: 0 0 14px;
  padding: 6px 9px;
  border-radius: 8px;
  color: #06111f;
  background: linear-gradient(135deg, var(--cb8-amber), var(--cb8-cyan));
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.cb8-plan-fit {
  margin: 0;
  color: var(--cb8-muted);
  font-size: 13px;
  line-height: 1.45;
}

.cb8-price {
  margin: 16px 0 18px;
  color: var(--cb8-text);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.cb8-price span {
  color: var(--cb8-dim);
  font-size: 13px;
}

.cb8-price-card ul {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
  padding-left: 18px;
  color: var(--cb8-muted);
  font-size: 14px;
}

.cb8-price-card .cb8-btn {
  align-self: flex-start;
  margin-top: auto;
}

.cb8-faq {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 30px;
  align-items: start;
}

.cb8-faq .cb8-section-head {
  margin-bottom: 0;
}

.cb8-faq-list {
  display: grid;
  gap: 8px;
}

.cb8-faq-item {
  border: 1px solid rgba(139, 157, 197, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 25, 43, 0.88), rgba(8, 13, 24, 0.88));
}

.cb8-faq-item summary {
  cursor: pointer;
  padding: 15px 17px;
  color: var(--cb8-text);
  font-size: 14px;
  font-weight: 850;
}

.cb8-faq-item p {
  margin: 0;
  padding: 0 17px 16px;
  color: var(--cb8-muted);
  font-size: 14px;
  line-height: 1.55;
}

.cb8-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 58px;
  padding: 30px;
  border: 1px solid rgba(40, 226, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(40, 226, 255, 0.16), rgba(62, 226, 160, 0.08) 42%, rgba(139, 125, 255, 0.18)),
    rgba(16, 25, 43, 0.94);
}

.cb8-final-cta h2 {
  font-size: 34px;
}

.cb8-final-cta p {
  color: #c9d5e8;
}

.cb8-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 0 36px;
  color: var(--cb8-dim);
}

.cb8-footer .auth-brand {
  margin: 0;
}

.cb8-footer p {
  margin: 0;
  font-size: 13px;
}

@media (prefers-reduced-motion: no-preference) {
  .cb8-cockpit-glow {
    animation: cb8-scan 7s ease-in-out infinite alternate;
  }

  .cb8-btn-primary {
    animation: cb8-button-glow 5s ease-in-out infinite alternate;
  }
}

@keyframes cb8-scan {
  from { opacity: 0.5; transform: translateX(-1%); }
  to { opacity: 0.86; transform: translateX(1%); }
}

@keyframes cb8-button-glow {
  from { box-shadow: 0 16px 34px rgba(40, 226, 255, 0.16), 0 0 38px rgba(139, 125, 255, 0.1); }
  to { box-shadow: 0 16px 34px rgba(40, 226, 255, 0.22), 0 0 48px rgba(139, 125, 255, 0.16); }
}

@media (max-width: 1120px) {
  .cb8-page {
    --cb8-gutter: 18px;
  }

  .cb8-nav {
    grid-template-columns: 1fr auto;
  }

  .cb8-nav-links {
    display: none;
  }

  .cb8-hero,
  .cb8-trust,
  .cb8-momentum,
  .cb8-pricing,
  .cb8-faq {
    grid-template-columns: 1fr;
  }

  .cb8-hero {
    padding-top: 40px;
  }

  .cb8-hero h1 {
    max-width: 780px;
    font-size: 54px;
  }

  .cb8-hero-subline {
    max-width: 760px;
  }

  .cb8-bento-wide,
  .cb8-bento-tall,
  .cb8-bento-compact {
    grid-column: span 6;
    grid-row: auto;
    min-height: 220px;
  }

  .cb8-step-grid,
  .cb8-metrics,
  .cb8-signal-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cb8-pricing .cb8-section-head,
  .cb8-faq .cb8-section-head {
    margin-bottom: 20px;
  }
}

@media (max-width: 760px) {
  .cb8-page {
    --cb8-gutter: 12px;
  }

  .cb8-ambient {
    display: none;
  }

  .cb8-nav {
    top: 6px;
    min-height: 58px;
    padding: 8px;
  }

  .cb8-nav .cb-logo-mark {
    width: 28px;
    height: 28px;
  }

  .cb8-nav .cb-logo-wordmark {
    font-size: 18px;
  }

  .cb8-link {
    display: none;
  }

  .cb8-nav-actions .cb8-btn {
    min-height: 36px;
    padding: 0 11px;
    font-size: 12px;
  }

  .cb8-hero {
    padding: 32px 0 18px;
    gap: 20px;
  }

  .cb8-hero h1 {
    font-size: 36px;
    line-height: 1.06;
  }

  .cb8-hero-subline {
    font-size: 16px;
  }

  .cb8-hero-actions,
  .cb8-hero-proof,
  .cb8-signal-bar,
  .cb8-pricing-grid {
    grid-template-columns: 1fr;
  }

  .cb8-hero-actions {
    display: grid;
  }

  .cb8-cockpit-bar em {
    display: none;
  }

  .cb8-cockpit-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .cb8-cockpit-rail {
    display: none;
  }

  .cb8-cockpit-main {
    padding: 14px;
  }

  .cb8-cockpit-head {
    align-items: flex-start;
  }

  .cb8-cockpit-head strong {
    font-size: 16px;
  }

  .cb8-stage-map {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cb8-stage-map span:nth-child(n+4) {
    display: none;
  }

  .cb8-command-grid,
  .cb8-bento-grid,
  .cb8-trust-grid,
  .cb8-step-grid,
  .cb8-metrics {
    grid-template-columns: 1fr;
  }

  .cb8-bento-wide,
  .cb8-bento-tall,
  .cb8-bento-compact {
    grid-column: span 1;
    min-height: 0;
  }

  .cb8-card-metric {
    display: none;
  }

  .cb8-role-feed div {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .cb8-role-feed em {
    display: none;
  }

  .cb8-section {
    padding-top: 48px;
  }

  .cb8-section-head h2,
  .cb8-trust-copy h2,
  .cb8-momentum-copy h2 {
    font-size: 30px;
  }

  .cb8-section-head p:not(.cb8-eyebrow),
  .cb8-trust-copy p,
  .cb8-final-cta p {
    font-size: 14px;
  }

  .cb8-metrics {
    padding-top: 48px;
  }

  .cb8-price-card {
    min-height: 0;
  }

  .cb8-final-cta {
    display: grid;
    margin-top: 48px;
    padding: 24px;
  }

  .cb8-final-cta h2 {
    font-size: 29px;
  }

  .cb8-final-cta .cb8-btn {
    width: 100%;
  }

  .cb8-footer {
    flex-direction: column;
    text-align: center;
  }
}

/* =============================================================================
 * Phase 4 - Active role workspace
 * ========================================================================== */
.drawer-role-command {
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(37, 225, 255, 0.16);
  border-radius: 16px;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(37, 225, 255, 0.1), transparent 48%),
    linear-gradient(180deg, rgba(13, 24, 42, 0.86), rgba(7, 11, 22, 0.92));
}
.drawer-role-command-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.drawer-role-command-head p {
  margin: 5px 0 0;
  color: rgba(210, 220, 240, 0.68);
  font-size: 13px;
  line-height: 1.45;
}
.drawer-role-command-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 10px;
}
.drawer-role-score-card,
.drawer-role-evidence-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.03);
}
.drawer-role-evidence-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.drawer-role-score-label {
  color: #25e1ff;
  font-size: 10.5px;
  font-weight: 850;
  text-transform: uppercase;
}
.drawer-role-score-card strong {
  color: var(--color-text, #e6e9f2);
  font-size: 18px;
  line-height: 1.22;
}
.drawer-role-bars {
  display: grid;
  gap: 8px;
}
.drawer-role-bars > div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  color: rgba(218, 228, 248, 0.72);
  font-size: 12px;
}
.drawer-role-bars i {
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}
.drawer-role-bars b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #25e1ff, #8a68ff);
}
.drawer-role-bars em {
  color: rgba(232, 239, 255, 0.82);
  font-style: normal;
  font-weight: 800;
  text-align: right;
}
.drawer-role-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.drawer-role-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  color: rgba(225, 234, 251, 0.76);
  font-size: 12.5px;
  line-height: 1.45;
}
.drawer-role-list i {
  color: #25e1ff;
  margin-top: 2px;
}
.drawer-role-empty {
  margin: 8px 0 0;
  color: rgba(204, 214, 234, 0.58);
  font-size: 12.5px;
}
.drawer-role-action-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.drawer-role-action {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 74px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--color-text, #e6e9f2);
  text-decoration: none;
  text-align: left;
}
.drawer-role-action:hover {
  border-color: rgba(37, 225, 255, 0.32);
  background: rgba(37, 225, 255, 0.055);
}
.drawer-role-action > i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #07101f;
  background: linear-gradient(135deg, #25e1ff, #8a68ff);
}
.drawer-role-action span {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.drawer-role-action strong {
  font-size: 13.5px;
}
.drawer-role-action small {
  color: rgba(204, 214, 234, 0.64);
  font-size: 12px;
  line-height: 1.35;
}
.drawer-role-action em {
  color: #9ef8ff;
  font-style: normal;
  font-size: 11px;
  font-weight: 850;
}
.drawer-role-action--button {
  cursor: pointer;
  font: inherit;
}
.role-context-banner {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  margin: 12px 0 16px;
  padding: 12px;
  border: 1px solid rgba(37, 225, 255, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(37, 225, 255, 0.1), rgba(138, 104, 255, 0.09)),
    rgba(255, 255, 255, 0.028);
}
.role-context-banner--compact {
  margin: 0 0 12px;
}
.role-context-banner > i {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #25e1ff;
  background: rgba(37, 225, 255, 0.1);
  border: 1px solid rgba(37, 225, 255, 0.18);
}
.role-context-banner div {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.role-context-banner span {
  color: #25e1ff;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}
.role-context-banner strong {
  color: var(--color-text, #eef4ff);
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.role-context-banner small {
  color: rgba(204, 214, 234, 0.68);
  line-height: 1.35;
}
.role-context-banner .btn-sm {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .drawer-role-command-grid,
  .drawer-role-evidence-card,
  .drawer-role-action-list {
    grid-template-columns: 1fr;
  }
  .drawer-role-command-head,
  .role-context-banner {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .drawer-role-command-head {
    display: grid;
  }
  .drawer-role-command-head .chip,
  .role-context-banner .btn-sm {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}

/* ---------------------------------------------------------------------
 * Legal pages (Privacy Policy + Terms of Service)
 *
 * Long-form readable typography. Constrained measure for line length,
 * generous spacing for scannability, no fancy chrome — just the words.
 * --------------------------------------------------------------------- */
.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding-top: 32px;
  padding-bottom: 48px;
}
.legal-page-head { margin-bottom: 18px; }
.legal-page-head .page-subtitle { max-width: 60ch; margin-top: 6px; }
.legal-meta {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.55));
  letter-spacing: 0.02em;
}
.legal-body {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--color-text, #e8eefc);
}
.legal-body p { margin: 0 0 14px; }
.legal-body h2 {
  margin: 28px 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text, #f8fbff);
  letter-spacing: -0.005em;
}
.legal-body ul { margin: 0 0 16px; padding-left: 22px; }
.legal-body li { margin: 0 0 8px; }
.legal-body a {
  color: var(--color-primary, #22e3ff);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-body a:hover { color: #67eaff; }
.legal-body code {
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12.5px;
}
.legal-body strong { color: var(--color-text, #f8fbff); font-weight: 600; }
.legal-foot {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: var(--color-text-dim, rgba(255, 255, 255, 0.6));
}
@media (max-width: 640px) {
  .legal-page { padding-top: 18px; padding-bottom: 32px; }
  .legal-body { font-size: 14px; }
  .legal-body h2 { font-size: 16px; margin-top: 22px; }
}
