/* ==========================================================================
   Applier Design Tokens & 1:1 Reference System Styles
   ========================================================================== */

:root {
  /* Canvas & Accent Colors */
  --canvas: #f5f5f5;
  --page-lavender: #f3eefc;
  --page-mint: #eaf9f3;
  --hero-pink: #f05aad;

  --surface: #ffffff;
  --surface-subtle: #faf9fd;
  --surface-hover: #f3effe;
  --border: #e5e5e8;
  --border-focus: #6850fa;
  --border-hover: #cfcae0;

  --ink: #0b0914;
  --ink-secondary: #475569;
  --ink-muted: #64748b;

  --primary: #6850fa;
  --primary-hover: #573dd1;
  --primary-active: #472dd6;
  --primary-light: #eeeafe;
  --primary-glow: rgba(104, 80, 250, 0.25);

  --success: #16a34a;
  --success-light: #ecfdf5;
  --success-border: #bbf7d0;

  --warning: #d97706;
  --warning-light: #fffbeb;
  --warning-border: #fde68a;

  --danger: #dc2626;
  --danger-light: #fef2f2;
  --danger-border: #fecaca;

  /* Typography */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-pill: 400px;

  /* Measured Reference Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-card-measured: 0 53px 32px rgba(0, 0, 0, 0.02), 0 6px 13px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(143, 143, 143, 0.20), inset 0 -2.4px 0 rgba(61, 61, 61, 0.04);
  --shadow-cta-measured: inset 0 2px 2px rgba(255, 255, 255, 0.25), inset 0 -2px 0 rgba(87, 67, 209, 0.66), 0 0 0 1px rgb(104, 80, 250), 0 0 6px rgba(0, 0, 0, 0.02), 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-focus: 0 0 0 3px rgba(104, 80, 250, 0.28);
  --shadow-card-selected: 0 0 0 2px var(--primary), 0 8px 24px var(--primary-glow);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html {
  font-family: var(--font-sans);
  background-color: var(--canvas);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reference-carousel-track, .reference-logo-track {
    animation: none !important;
    transform: translateX(0) !important;
  }
}

#applier-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Navigation Bar (.reference-nav)
   ========================================================================== */

.reference-nav {
  position: sticky;
  top: 16px;
  z-index: 50;
  max-width: 988px;
  width: calc(100% - 32px);
  height: 64px;
  margin: 0 auto;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 250ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 250ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 250ms cubic-bezier(0.16, 1, 0.3, 1),
              backdrop-filter 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reference-nav.scrolled {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.reference-wordmark {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.reference-wordmark .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
}

.reference-nav__center {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.reference-nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  height: 44px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-secondary);
  border-radius: var(--radius-pill);
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  line-height: 1;
  transition: all var(--transition-fast);
}

.btn-nav-login:hover {
  color: var(--ink);
  background: var(--canvas);
}

.btn-nav-cta {
  height: 44px;
  padding: 0 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--primary);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-cta-measured);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-nav-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   Reference Landing Page (.reference-page)
   ========================================================================== */

.reference-page {
  flex: 1;
  background:
    radial-gradient(circle at 50% 0%, var(--page-lavender) 0%, transparent 48%),
    radial-gradient(circle at 90% 15%, var(--page-mint) 0%, transparent 35%),
    var(--canvas);
}

.reference-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.reference-hero-section {
  padding-top: 80px;
  padding-bottom: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reference-proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-secondary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.reference-hero-h1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 52.8px;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 559px;
  margin: 0 auto 16px;
}

.reference-hero-gradient {
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--hero-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.reference-hero-p {
  font-size: 18px;
  line-height: 27px;
  color: var(--ink-secondary);
  max-width: 620px;
  margin: 0 auto 28px;
}

.reference-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.btn-primary-reference {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-size: 18px;
  font-weight: 600;
  line-height: 27px;
  color: #ffffff;
  background-color: var(--primary);
  box-shadow: var(--shadow-cta-measured);
  transition: all var(--transition-fast);
}

.btn-primary-reference svg {
  transition: transform var(--transition-fast);
}

.btn-primary-reference:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-primary-reference:hover svg {
  transform: translateX(3px);
}

.reference-assurance {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* Capability Chips Strip */
.reference-chip-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.reference-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-secondary);
  box-shadow: var(--shadow-sm);
}

/* Hero Product Card (576x302px measured) */
.reference-hero-card {
  max-width: 576px;
  width: 100%;
  margin: 0 auto 80px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-card-measured);
  text-align: left;
}

.reference-hero-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.hero-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 2px rgba(104, 80, 250, 0.25);
}

.hero-card-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-card-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--canvas);
  border: 1px solid var(--border);
}

.hero-card-step.active {
  background: var(--surface-subtle);
  border-color: var(--border-focus);
}

.hero-card-step__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-secondary);
}

.hero-card-step.done .hero-card-step__icon {
  background: var(--success);
  color: #ffffff;
  border-color: var(--success);
}

.hero-card-step.active .hero-card-step__icon {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.hero-card-step__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.hero-card-step__sub {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* Company Logo Marquee Ribbon (Image #2 Replica: 56px height, 672px container on desktop) */
.reference-logo-marquee-section {
  width: 100%;
  max-width: 672px;
  margin: 0 auto 56px;
  text-align: center;
}

.reference-logo-marquee-title {
  font-size: 12px;
  font-weight: 200;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.reference-logo-marquee {
  position: relative;
  width: 100%;
  height: 72px;
  padding: 8px 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.reference-logo-track {
  display: flex;
  gap: 12px;
  width: max-content;
  align-items: center;
  animation: applier-logo-scroll 20s linear infinite;
}

.reference-logo-group {
  display: flex;
  flex-shrink: 0;
  gap: 12px;
  align-items: center;
}

.reference-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(229, 229, 232, 0.6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform var(--transition-fast), background var(--transition-fast);
  flex-shrink: 0;
}

.reference-logo-item:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.reference-logo-item img {
  display: block;
  width: auto;
  object-fit: contain;
  filter: none;
}

@keyframes applier-logo-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


/* Animated Execution Carousel (768x36px measured reference) */
.reference-jobs-carousel {
  position: relative;
  width: 768px;
  max-width: 100%;
  height: 38px;
  margin: 0 auto 72px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.reference-carousel-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: applier-jobs-scroll 30s linear infinite;
}

.reference-carousel-track__group {
  display: flex;
  flex-shrink: 0;
  gap: 12px;
}

.reference-carousel-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  border-radius: 12px;
  padding: 4px 12px 4px 6px;
  white-space: nowrap;
  user-select: none;
}

.carousel-item-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.carousel-item-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.carousel-item-top {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.carousel-item-company {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
}

.carousel-item-time {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
}

.carousel-item-role {
  font-size: 11px;
  color: #475569;
  font-weight: 400;
}

@keyframes applier-jobs-scroll {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0px);
  }
}
/* Prepare & Submit Feature Band (2 alternating 588x430 cards) */
.reference-feature-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 96px;
}

.feature-band-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 32px 32px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
}

.feature-band-card__tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.feature-band-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.feature-band-card p {
  color: var(--ink-secondary);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.feature-band-mock {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  font-size: 0.85rem;
}

/* Six-Feature Grid (2x3 grid) */
.reference-feature-grid-section {
  text-align: center;
  margin-bottom: 96px;
}

.reference-section-h2 {
  font-size: 48px;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 48px;
}

.reference-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.reference-feature-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.reference-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.reference-feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}

.reference-feature-card p {
  font-size: 0.92rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

/* Operational Proof Section */
.reference-proof-section {
  text-align: center;
  margin-bottom: 96px;
}

.proof-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.proof-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.proof-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.proof-card__desc {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  line-height: 1.55;
}

/* Document Examples Grid (3x2 grid) */
.reference-document-section {
  text-align: center;
  margin-bottom: 96px;
}

.document-examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.document-example-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.doc-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.doc-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.doc-skeleton {
  background: var(--canvas);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

/* FAQ Accordions */
.reference-faq-section {
  max-width: 860px;
  margin: 0 auto 96px;
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-question {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-answer {
  font-size: 0.95rem;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--canvas);
}

/* Multi-Column Footer */
.reference-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   Questionnaire Funnel (.funnel-page & .reference-funnel-header)
   ========================================================================== */

.funnel-page {
  flex: 1;
  background:
    radial-gradient(circle at 50% -10%, var(--page-lavender) 0%, transparent 50%),
    var(--canvas);
  display: flex;
  flex-direction: column;
}

.reference-funnel-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  padding: 0 24px;
  background: rgba(245, 245, 245, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.funnel-header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.seven-segment-progress {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 210px;
}

.progress-segment {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.progress-segment__fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-pill);
  transition: width 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.funnel-phase-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.funnel-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-secondary);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: #ffffff;
  transition: all var(--transition-fast);
}

.funnel-back-btn:hover {
  border-color: var(--border-hover);
  color: var(--ink);
}

.reference-question-container {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.reference-question-h2 {
  font-size: 42px;
  font-weight: 500;
  line-height: 52.5px;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 8px;
}

.reference-question-sub {
  font-size: 1.02rem;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin-bottom: 28px;
}

/* 628x68px Choice Buttons */
.reference-choice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.reference-choice-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  text-align: left;
}

.reference-choice-button:hover {
  border-color: var(--border-hover);
  background: var(--surface-subtle);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.reference-choice-button.selected {
  border-color: var(--primary) !important;
  background: var(--surface-subtle) !important;
  color: var(--ink) !important;
  font-weight: 600 !important;
  box-shadow: 0 0 0 2px var(--primary), 0 8px 20px var(--primary-glow) !important;
}

.choice-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
}

/* Relate Question ("Do you relate?") */
.relate-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.relate-statement-box {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  margin-bottom: 28px;
  text-align: center;
  position: relative;
}

.relate-statement-text {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.relate-choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.relate-choice-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  font-size: 1.15rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.relate-choice-btn:hover {
  border-color: var(--primary);
  background: var(--surface-subtle);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.relate-choice-btn.selected {
  border-color: var(--primary) !important;
  background: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px var(--primary-glow), 0 8px 20px rgba(104, 80, 250, 0.25) !important;
  transform: scale(0.98);
}

/* Interstitial / Educational Screens */
.interstitial-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.interstitial-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.interstitial-pill-badge.negative {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.interstitial-pill-badge.positive {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.interstitial-pill-badge.accent {
  background: #f3eefc;
  color: var(--primary);
  border: 1px solid rgba(104, 80, 250, 0.2);
}

.interstitial-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin: 24px 0;
  text-align: left;
}

.interstitial-bullet-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.interstitial-bullet-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.interstitial-bullet-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.interstitial-bullet-desc {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  line-height: 1.4;
}

/* Social Proof Bar Chart (Step 4) */
.chart-container-card {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 580px;
  margin: 20px auto;
}

.chart-bar-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  text-align: left;
}

.chart-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.chart-bar-track {
  width: 100%;
  height: 24px;
  background: #f1f5f9;
  border-radius: var(--radius-pill);
  overflow: hidden;
  display: flex;
}

.chart-bar-fill-fast {
  height: 100%;
  width: 82%;
  background: linear-gradient(90deg, #6850fa, #8b5cf6);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
}

.chart-bar-fill-slow {
  height: 100%;
  width: 24%;
  background: #94a3b8;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Salary Dial & Slider (Step 10) */
.salary-card-box {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 580px;
  margin: 0 auto 24px;
}

.salary-currency-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.salary-currency-chip {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.salary-currency-chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.salary-value-display {
  font-size: 3rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.salary-range-slider {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-pill);
  outline: none;
  margin: 28px 0 16px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.salary-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(104, 80, 250, 0.4);
  border: 3px solid #ffffff;
  transition: transform 0.1s;
}

.salary-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Worldwide Country Selection & Regional Bundles (Step 13) */
.regional-bundle-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.regional-bundle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}

.regional-bundle-btn:hover {
  border-color: var(--primary);
  background: var(--surface-subtle);
}

.regional-bundle-btn.active {
  background: #f3eefc;
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
}

.country-search-wrapper {
  position: relative;
  width: 100%;
}

.country-search-input {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 44px;
  font-size: 1rem;
  border: 1.5px solid rgba(104, 80, 250, 0.35);
  border-radius: var(--radius-lg);
  background: #ffffff;
  color: var(--ink);
  outline: none;
  transition: all 0.2s ease;
}

.country-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.country-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}

.country-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.country-suggestion-item {
  width: 100%;
  border: 0;
  background: #ffffff;
  text-align: left;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 0.92rem;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.1s ease;
  border-bottom: 1px solid #f1f5f9;
}

.country-suggestion-item:last-child {
  border-bottom: none;
}

.country-suggestion-item:hover,
.country-suggestion-item:focus-visible {
  background: var(--surface-subtle);
  color: var(--primary);
}

.selected-countries-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.selected-country-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: #f3eefc;
  color: var(--ink);
  border: 1px solid rgba(104, 80, 250, 0.25);
  font-size: 0.88rem;
  font-weight: 600;
}

.selected-country-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(104, 80, 250, 0.15);
  color: var(--primary);
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
  transition: all 0.15s ease;
}

.selected-country-remove:hover {
  background: var(--primary);
  color: #ffffff;
}

.input-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-lg);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  color: #ffffff;
  background-color: var(--primary);
  border: 1.5px solid var(--primary);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.input-action-btn:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Before vs After Social Proof (Step 46) */
.before-after-card {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  width: 100%;
  max-width: 620px;
  margin: 0 auto 28px;
  text-align: left;
}

.before-side {
  background: #fafafa;
  padding: 24px;
  border-right: 1px solid var(--border);
}

.after-side {
  background: #ffffff;
  padding: 24px;
}

.side-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.side-title.before {
  color: #dc2626;
}

.side-title.after {
  color: var(--primary);
}

.side-point {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--ink-secondary);
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Personalized Checkout (Step 47) */
.checkout-hero-card {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 640px;
  margin: 0 auto 28px;
  text-align: center;
}

.checkout-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: #f3eefc;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 14px;
  border: 1px solid rgba(104, 80, 250, 0.2);
}


.checkout-preferences {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  width: 100%;
  text-align: left;
  margin-bottom: 28px;
}

.checkout-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.checkout-preferences-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.checkout-preference-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}


/* Product Chooser 3-Card Grid (Step 1) */
.product-chooser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
  text-align: left;
}

.product-chooser-card {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.product-chooser-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-card-selected);
  background: var(--surface-subtle);
}

.product-chooser-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.product-chooser-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-chooser-desc {
  font-size: 0.85rem;
  color: var(--ink-secondary);
  line-height: 1.5;
}

/* Form Panels */
.reference-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
  text-align: left;
}

.funnel-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.funnel-input-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.funnel-input-text, .funnel-select-input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--surface);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.funnel-input-text:focus, .funnel-select-input:focus {
  border-color: var(--border-focus);
}

.funnel-tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 16px;
}

.funnel-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.funnel-tag-remove {
  cursor: pointer;
  font-weight: 700;
}

.funnel-error {
  padding: 12px 16px;
  background: var(--danger-light);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-md);
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 16px;
  text-align: left;
}

.funnel-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
}

/* ==========================================================================
   Desired Job Title Screen (Cloned Reference Design)
   ========================================================================== */

.funnel-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.funnel-saved-badge {
  font-size: 0.82rem;
  font-weight: 500;
  color: #6B7280;
  display: inline-flex;
  align-items: center;
}

.reference-wordmark-aiapply {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.03em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.reference-wordmark-aiapply .sparkle {
  color: #5B4DF5;
  margin-left: 1px;
  font-weight: 900;
}

.funnel-single-progressbar {
  width: 240px;
  height: 6px;
  background: #E5E7EB;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 4px;
}

.funnel-single-progressbar__fill {
  height: 100%;
  background: #5B4DF5;
  border-radius: 9999px;
  transition: width 250ms ease-out;
}

.title-card-container {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #E5E7EB;
  padding: 24px;
  max-width: 580px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.title-tag-input-box {
  background: #ffffff;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  cursor: text;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.title-tag-input-box:focus-within {
  border-color: #6366F1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.title-tag-chip {
  background: #F3F0FF;
  color: #5B4DF5;
  border-radius: 9999px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.title-tag-remove {
  color: #5B4DF5;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: none;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s, transform 0.15s;
}

.title-tag-remove:hover {
  opacity: 0.75;
  transform: scale(1.15);
}

.title-tag-field {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #111827;
  flex: 1;
  min-width: 140px;
  font-family: inherit;
  padding: 4px 0;
}

.title-tag-field::placeholder {
  color: #9CA3AF;
}

.title-suggestions-dropdown {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 6px;
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  max-height: 180px;
  overflow-y: auto;
  text-align: left;
}

.title-suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.title-suggestion-item:hover {
  background: #F3F4F6;
}

.title-add-btn {
  width: 100%;
  border-radius: 9999px;
  background: #E5E7EB;
  color: #6B7280;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 16px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  text-align: center;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.title-add-btn:hover {
  background: #D1D5DB;
  color: #374151;
}

.title-add-btn:active {
  transform: scale(0.99);
}

.title-suggestion-box {
  background: #FEFCE8;
  border: 1px solid #FEF08A;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.title-suggestion-text {
  font-size: 13.5px;
  color: #854D0E;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.title-suggestion-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-use-suggestion {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #1F2937;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.15s;
}

.btn-use-suggestion:hover {
  background: #F9FAFB;
  border-color: #D1D5DB;
}

.btn-keep-mine {
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: #6B7280;
  cursor: pointer;
  padding: 6px 10px;
  transition: color 0.15s;
}

.btn-keep-mine:hover {
  color: #111827;
}

.title-notice-box {
  background: #F0F4FF;
  border: 1px solid #E0E7FF;
  border-radius: 14px;
  padding: 16px 20px;
  max-width: 580px;
  width: 100%;
  margin: 24px auto 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  color: #4338CA;
  font-size: 13px;
  line-height: 1.5;
  box-sizing: border-box;
}

.title-notice-icon {
  font-size: 16px;
  color: #5B4DF5;
  flex-shrink: 0;
  margin-top: 1px;
}

.btn-onboarding-continue {
  background: #5B4DF5;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 44px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(91, 77, 245, 0.32);
  min-width: 280px;
  transition: all 0.2s;
}

.btn-onboarding-continue:hover {
  background: #4F46E5;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.38);
}

.btn-onboarding-continue:active {
  transform: translateY(0);
}

/* Resume Upload Dropzone */
.resume-dropzone {
  display: block;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  background: var(--canvas);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.resume-dropzone:hover {
  border-color: var(--primary);
  background: var(--surface-hover);
}

.resume-dropzone.has-file {
  border-color: var(--primary);
  background: rgba(107, 82, 245, 0.04);
}

.resume-dropzone.drag-over {
  border-color: var(--primary);
  background: rgba(107, 82, 245, 0.08);
  transform: scale(1.01);
  box-shadow: 0 4px 16px rgba(107, 82, 245, 0.12);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.inbox-settings {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inbox-settings h2 {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
}

.inbox-settings-header p,
.inbox-muted {
  margin-top: 3px;
  color: var(--ink-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.inbox-status {
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
}

.inbox-status div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.inbox-status dt {
  color: var(--ink-muted);
}

.inbox-status dd {
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.inbox-fieldset {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 0;
  padding: 0;
  margin: 0;
}

.inbox-fieldset legend {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
}

.inbox-choice {
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
}

.inbox-choice.is-selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.inbox-choice-compact {
  padding: 9px 12px;
}

.inbox-choice input {
  margin-top: 3px;
  flex: 0 0 auto;
}

.inbox-choice span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inbox-choice strong {
  color: var(--ink);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.inbox-choice small {
  color: var(--ink-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.inbox-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font: inherit;
}

.inbox-steps {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-secondary);
  font-size: 0.82rem;
  line-height: 1.6;
}

.inbox-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
}

.inbox-consent input {
  margin-top: 3px;
  flex: 0 0 auto;
}

.inbox-error {
  color: var(--danger);
  font-size: 0.84rem;
}

.inbox-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.inbox-actions .btn-primary-reference,
.inbox-actions .btn {
  min-height: 44px;
}

.inbox-banner {
  margin-bottom: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--ink);
  font-size: 0.86rem;
}

.inbox-banner.is-warning {
  border-color: var(--warning-border);
  background: var(--warning-light);
}

.activation-page {
  min-height: 100dvh;
}

.activation-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}

.activation-header .reference-wordmark,
.reference-funnel-header .reference-wordmark {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.activation-container {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.activation-heading {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.activation-heading-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(104, 80, 250, 0.22);
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
}

.activation-heading h1 {
  color: var(--ink);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.activation-heading p {
  margin-top: 7px;
  color: var(--ink-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

.activation-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.activation-card-header {
  min-height: 82px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.activation-card-header h2 {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
}

.activation-card-header p {
  margin-top: 3px;
  color: var(--ink-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.activation-refreshing {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.activation-check-list {
  padding: 0 20px;
}

.activation-check {
  min-height: 66px;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.activation-check:last-child {
  border-bottom: 0;
}

.activation-check-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  color: var(--ink-muted);
}

.activation-check.ready .activation-check-icon {
  border-color: var(--success-border);
  background: var(--success-light);
  color: var(--success);
}

.activation-check.blocked .activation-check-icon {
  border-color: var(--danger-border);
  background: var(--danger-light);
  color: var(--danger);
}

.activation-check > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.activation-check strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.activation-check span:last-child {
  margin-top: 2px;
  color: var(--ink-secondary);
  font-size: 0.78rem;
  line-height: 1.4;
}

.activation-actions {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  background: var(--surface-subtle);
}

.activation-actions .btn-primary-reference,
.activation-actions .btn {
  min-height: 44px;
}

@media (max-width: 640px) {
  .activation-container {
    padding: 32px 16px 64px;
  }

  .activation-heading {
    flex-direction: column;
  }

  .activation-card-header,
  .activation-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .activation-check-list {
    padding: 0 16px;
  }

  .activation-actions .btn-primary-reference,
  .activation-actions .btn,
  .inbox-actions .btn-primary-reference,
  .inbox-actions .btn {
    width: 100%;
  }
}
/* Pricing Plan Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
  text-align: left;
}

.plan-card {
  width: 100%;
  font: inherit;
  text-align: left;
  padding: 24px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  background-color: #ffffff;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  box-shadow: var(--shadow-sm);
}

.plan-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.plan-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.plan-card.selected {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px var(--primary), 0 8px 24px var(--primary-glow) !important;
  background-color: var(--surface-subtle) !important;
}

.plan-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.plan-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.plan-price span {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink-muted);
}

.plan-desc {
  font-size: 0.92rem;
  color: var(--ink-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   Applier Authenticated Dashboard Design System
   ========================================================================== */

.dashboard-shell,
.dashboard-gate {
  --canvas: #f7f7f8;
  --surface: #fdfcfe;
  --surface-subtle: #faf9fb;
  --surface-hover: #f5f3f8;
  --surface-selected: #f1efff;
  --border: #e6e4e9;
  --border-hover: #c9c4d0;
  --ink: #17131f;
  --ink-secondary: #5f5968;
  --ink-muted: #746e7d;
  --primary: #6850fa;
  --primary-hover: #573dd1;
  --primary-light: #f1efff;
  --primary-glow: rgba(104, 80, 250, 0.16);
  --success: #0f7a45;
  --success-light: #eef9f3;
  --success-border: #b9e2cb;
  --warning: #955800;
  --warning-light: #fff8e8;
  --warning-border: #efd49b;
  --danger: #b42318;
  --danger-light: #fff1f0;
  --danger-border: #efc0bc;
  --dashboard-radius-sm: 6px;
  --dashboard-radius-md: 8px;
  --dashboard-radius-lg: 12px;
  --dashboard-shadow: 0 1px 2px rgba(23, 19, 31, 0.04);
  font-family: var(--font-sans);
  color: var(--ink);
}

.dashboard-shell {
  min-height: 100dvh;
  display: flex;
  background: var(--canvas);
}

.dashboard-shell .reference-wordmark,
.dashboard-gate .reference-wordmark {
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Sidebar */
.dashboard-sidebar {
  width: 216px;
  height: 100dvh;
  flex: 0 0 216px;
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
  transition: width 180ms cubic-bezier(0.16, 1, 0.3, 1), flex-basis 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.dashboard-sidebar.collapsed {
  width: 64px;
  flex: 0 0 64px;
}

.dashboard-sidebar-header {
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.dashboard-sidebar.collapsed .dashboard-sidebar-header {
  padding: 0 12px;
  justify-content: center;
}

.dashboard-sidebar.collapsed .reference-wordmark {
  display: none;
}

.dashboard-sidebar-collapse-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--dashboard-radius-sm);
  color: var(--ink-muted);
  transition: background-color 120ms ease, color 120ms ease;
}

.dashboard-sidebar-collapse-btn:hover {
  background: var(--surface-hover);
  color: var(--ink);
}

.dashboard-sidebar-nav {
  flex: 1;
  min-height: 0;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.dashboard-nav-item {
  position: relative;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--dashboard-radius-sm);
  color: var(--ink-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-align: left;
  transition: background-color 120ms ease, color 120ms ease;
}

.dashboard-sidebar.collapsed .dashboard-nav-item {
  padding: 0;
  justify-content: center;
}

.dashboard-sidebar.collapsed .dashboard-nav-label {
  display: none;
}

.dashboard-nav-item:hover {
  background: var(--surface-hover);
  color: var(--ink);
}

.dashboard-nav-item.active {
  background: var(--surface-selected);
  color: var(--primary);
  font-weight: 600;
}

.dashboard-nav-item.active::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: var(--primary);
}

.dashboard-nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-nav-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.dashboard-nav-label {
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-sidebar-footer {
  padding: 8px;
  border-top: 1px solid var(--border);
}

.dashboard-user-card {
  min-width: 0;
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-sidebar.collapsed .dashboard-user-card {
  padding: 0;
  justify-content: center;
}

.dashboard-sidebar.collapsed .dashboard-user-info,
.dashboard-sidebar.collapsed .dashboard-signout-btn {
  display: none;
}

.dashboard-user-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd7ff;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
}

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

.dashboard-user-name {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-user-plan {
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-signout-btn {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--dashboard-radius-sm);
  color: var(--ink-muted);
  transition: background-color 120ms ease, color 120ms ease;
}

.dashboard-signout-btn:hover {
  background: var(--danger-light);
  color: var(--danger);
}

.dashboard-main-area {
  min-width: 0;
  height: 100dvh;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Topbar */
.dashboard-topbar {
  height: 56px;
  flex: 0 0 56px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.dashboard-topbar-left,
.dashboard-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-topbar-title {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}

.dashboard-topbar-freshness {
  color: var(--ink-muted);
  font-size: 0.75rem;
  line-height: 1;
}

.dashboard-drawer-toggle-btn {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--dashboard-radius-sm);
  background: var(--surface);
  color: var(--ink);
}

.dashboard-status-pill {
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.dashboard-status-pill.active {
  border-color: var(--success-border);
  color: var(--success);
}

.dashboard-status-pill.paused {
  border-color: var(--warning-border);
  color: var(--warning);
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-indicator-dot.active {
  color: var(--success);
}

.status-indicator-dot.paused {
  color: var(--warning);
}

.dashboard-topbar-refresh-btn {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--dashboard-radius-sm);
  background: var(--surface);
  color: var(--ink-secondary);
  transition: background-color 120ms ease, border-color 120ms ease;
}

.dashboard-topbar-refresh-btn:hover:not(:disabled) {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  color: var(--ink);
}

.dashboard-topbar-refresh-btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

.dashboard-topbar-refresh-btn.loading svg {
  animation: dashboardRefreshSpin 800ms linear infinite;
}

@keyframes dashboardRefreshSpin {
  to { transform: rotate(360deg); }
}

.dashboard-content-scroll {
  min-height: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dashboard-workspace-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 32px 48px;
}

/* Feedback Alert */
.dashboard-alert {
  min-height: 40px;
  margin-bottom: 20px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid;
  border-radius: var(--dashboard-radius-md);
  font-size: 0.8125rem;
  font-weight: 500;
}

.dashboard-alert.success {
  border-color: var(--success-border);
  background: var(--success-light);
  color: var(--success);
}

.dashboard-alert.error {
  border-color: var(--danger-border);
  background: var(--danger-light);
  color: var(--danger);
}

.dashboard-alert.warn {
  border-color: var(--warning-border);
  background: var(--warning-light);
  color: var(--warning);
}

.dashboard-alert-icon {
  display: inline-flex;
}

.dashboard-alert-icon svg {
  width: 16px;
  height: 16px;
}

/* Home: Outcome Banner */
.dashboard-outcome-banner {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: var(--dashboard-radius-md);
  background: var(--surface);
  margin-bottom: 16px;
}

.dashboard-outcome-copy {
  min-width: 0;
}

.dashboard-outcome-eyebrow {
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-outcome-copy h2 {
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.dashboard-outcome-subcopy {
  margin-top: 4px;
  color: var(--ink-secondary);
  font-size: 0.875rem;
  line-height: 1.45;
}

.dashboard-outcome-now {
  margin-top: 6px;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
}

.dashboard-outcome-badge {
  min-height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-subtle);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.dashboard-outcome-badge.active {
  border-color: var(--success-border);
  color: var(--success);
}

.dashboard-outcome-badge.paused {
  border-color: var(--warning-border);
  color: var(--warning);
}

/* Home: Four-Cell Outcome Strip */
.dashboard-outcome-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--dashboard-radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}

.dashboard-outcome-cell {
  background: var(--surface);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}

.outcome-cell-label {
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
}

.outcome-cell-value {
  margin-top: 6px;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.outcome-cell-sub {
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 0.75rem;
  line-height: 1.3;
}

/* Panels */
.dashboard-panel {
  border: 1px solid var(--border);
  border-radius: var(--dashboard-radius-md);
  background: var(--surface);
  padding: 20px;
  margin-bottom: 20px;
}

.dashboard-panel-header {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-panel-header h2 {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.dashboard-panel-header p {
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

/* Home: Momentum Chart */
.dashboard-momentum-panel {
  margin-bottom: 20px;
}

.dashboard-momentum-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.6875rem;
  color: var(--ink-muted);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}

.legend-dot.submitted {
  background: var(--primary);
}

.legend-dot.reply {
  background: var(--success);
}

.dashboard-momentum-chart-container {
  height: 120px;
  display: flex;
  align-items: flex-end;
  padding-top: 10px;
}

.dashboard-momentum-bars {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  gap: 4px;
  align-items: flex-end;
}

.momentum-bar-col {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.momentum-bar-track {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.momentum-bar-fill {
  width: 100%;
  min-height: 2px;
  background: var(--primary-light);
  border-radius: 2px 2px 0 0;
  transition: height 150ms ease, background-color 150ms ease;
}

.momentum-bar-col:hover .momentum-bar-fill {
  background: var(--primary);
}

.momentum-reply-marker {
  position: absolute;
  top: -6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
}

.momentum-bar-date {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

/* Home: Two-Column Lower Grid */
.dashboard-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  gap: 20px;
}

.dashboard-home-roles-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dashboard-home-role-row {
  width: 100%;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--dashboard-radius-sm);
  background: var(--surface);
  text-align: left;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.dashboard-home-role-row:hover {
  background: var(--surface-subtle);
  border-color: var(--border-hover);
}

.home-role-initial {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--dashboard-radius-sm);
  background: var(--surface-subtle);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--ink);
}

.home-role-main {
  min-width: 0;
  flex: 1;
}

.home-role-main strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-role-main span {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--ink-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-role-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.home-role-meta time {
  font-size: 0.6875rem;
  color: var(--ink-muted);
  font-size: 0.71875rem;
  font-weight: 400;
  line-height: 1.4;
}

.dashboard-company-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--dashboard-radius-md);
  background: var(--surface-subtle);
  user-select: none;
}

.dashboard-company-logo-list {
  width: 36px;
  height: 36px;
}

.dashboard-company-logo-detail {
  width: 48px;
  height: 48px;
}

.dashboard-company-logo img {
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
  background: var(--surface);
  display: block;
}

.dashboard-company-logo-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 650;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.dashboard-company-logo-list .dashboard-company-logo-fallback {
  font-size: 0.75rem;
}

.dashboard-company-logo-detail .dashboard-company-logo-fallback {
  font-size: 0.875rem;
}

.dashboard-company-logo.is-fallback img {
  display: none;
}

.dashboard-company-logo.is-fallback .dashboard-company-logo-fallback {
  display: flex;
}

.dashboard-table-primary-action-with-logo {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.dashboard-table-identity-text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dashboard-table-time {
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Pace Card */
.dashboard-pace-card {
  padding: 14px 16px;
  margin-bottom: 16px;
}

.dashboard-pace-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.dashboard-pace-header span {
  color: var(--ink-muted);
}

.dashboard-pace-header strong {
  color: var(--ink);
}

.dashboard-progress {
  width: 100%;
  height: 6px;
  border: none;
  border-radius: 3px;
  background: #eeecef;
  overflow: hidden;
}

.dashboard-progress::-webkit-progress-bar {
  background: #eeecef;
}

.dashboard-progress::-webkit-progress-value {
  background: var(--primary);
  border-radius: 3px;
}

.dashboard-progress::-moz-progress-bar {
  background: var(--primary);
  border-radius: 3px;
}

/* Progress Events List */
.dashboard-progress-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-progress-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.dashboard-progress-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--ink-muted);
}

.dashboard-progress-dot.success {
  background: var(--success);
}

.dashboard-progress-dot.info {
  background: var(--primary);
}

.dashboard-progress-body {
  min-width: 0;
  flex: 1;
}

.dashboard-progress-message {
  font-size: 0.75rem;
  color: var(--ink);
  line-height: 1.35;
}

.dashboard-progress-snippet {
  margin-top: 4px;
  padding: 4px 8px;
  border-left: 2px solid var(--success);
  background: var(--success-light);
  color: var(--ink);
  font-size: 0.6875rem;
  border-radius: 0 4px 4px 0;
}

.dashboard-progress-actions {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  color: var(--ink-muted);
}

.dashboard-gmail-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dashboard-gmail-link:hover {
  text-decoration: underline;
}

/* Status Chips */
.status-chip {
  min-height: 20px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.status-chip.active {
  background: var(--success-light);
  color: var(--success);
}

.status-chip.in-progress {
  background: #fef9c3;
  color: #854d0e;
}

.status-chip.queued {
  background: var(--primary-light);
  color: var(--primary);
}

.status-chip.warning {
  background: var(--warning-light);
  color: var(--warning);
}

.status-chip.neutral {
  background: #f1f5f9;
  color: #475569;
}

/* Inline Links */
.dashboard-inline-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.dashboard-inline-link:hover {
  text-decoration: underline;
}

/* Empty States */
.dashboard-empty-state {
  padding: 36px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-muted);
}

.dashboard-empty-state-compact {
  padding: 20px;
}

.dashboard-empty-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
}

.dashboard-empty-state h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.dashboard-empty-state p {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--ink-muted);
  max-width: 360px;
}

/* ==========================================================================
   Applications Lifecycle Workspace (Search, Filters, Grid, Detail)
   ========================================================================== */
/* Company Monogram & Mark */
.dashboard-company-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-subtle, #e5e3e8);
  flex-shrink: 0;
}

.dashboard-company-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.dashboard-company-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1;
  text-transform: uppercase;
}

/* Lane Navigation */
.dashboard-lane-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.dashboard-lane-tab {
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--dashboard-radius-sm);
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 120ms ease;
}

.dashboard-lane-tab:hover {
  background: var(--surface-hover);
  color: var(--ink);
}

.dashboard-lane-tab.active {
  background: var(--surface-selected);
  border-color: #d7d0ff;
  color: var(--primary);
  font-weight: 600;
}

.lane-tab-count {
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.dashboard-lane-tab.active .lane-tab-count {
  background: var(--primary-light);
  color: var(--primary);
}

.dashboard-applications-toolbar-surface {
  border: 1px solid var(--border);
  border-radius: var(--dashboard-radius-md);
  background: var(--surface);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.dashboard-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-search-field {
  position: relative;
  min-width: 280px;
  flex: 1;
  max-width: 440px;
}

.dashboard-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
  display: inline-flex;
}

.dashboard-search-input {
  width: 100%;
  height: 38px;
  padding: 0 34px 0 34px;
  border: 1px solid var(--border);
  border-radius: var(--dashboard-radius-sm);
  background: var(--surface);
  font-size: 0.8125rem;
  color: var(--ink);
  outline: none;
  transition: border-color 120ms ease;
}

.dashboard-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.dashboard-search-clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--ink-muted);
  cursor: pointer;
}

.dashboard-filters-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-select-wrapper {
  position: relative;
}

.dashboard-select {
  height: 38px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--dashboard-radius-sm);
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  outline: none;
}

.dashboard-select:focus {
  border-color: var(--primary);
}

.dashboard-select.small {
  height: 32px;
  font-size: 0.75rem;
}

.dashboard-clear-filters-btn {
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: var(--dashboard-radius-sm);
  background: var(--surface);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--danger);
  cursor: pointer;
}

/* Master-Detail Layout */
.dashboard-master-detail-layout {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(400px, 440px);
  gap: 16px;
  align-items: start;
}

.dashboard-master-pane {
  min-width: 0;
}

/* Ledger Table */
.dashboard-ledger-container {
  border: 1px solid var(--border);
  border-radius: var(--dashboard-radius-md);
  background: var(--surface);
  overflow: hidden;
}

.dashboard-ledger-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 140px 100px;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboard-ledger-body {
  display: flex;
  flex-direction: column;
}

.dashboard-ledger-row {
  min-height: 72px;
  height: 72px;
  padding: 0 16px;
  border: none;
  border-bottom: 1px solid var(--border-subtle, #f0eef2);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 140px 100px;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  background: var(--surface);
  cursor: pointer;
  transition: background 120ms ease;
  position: relative;
}

.dashboard-ledger-row:last-child {
  border-bottom: none;
}

.dashboard-ledger-row:hover {
  background: var(--surface-hover);
}

.dashboard-ledger-row[aria-current="true"],
.dashboard-ledger-row.selected {
  background: var(--surface-selected);
}

.dashboard-ledger-row[aria-current="true"]::before,
.dashboard-ledger-row.selected::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
}

.ledger-role-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

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

.ledger-role-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger-role-sub {
  display: block;
  margin-top: 3px;
  font-size: 0.75rem;
  color: var(--ink-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger-stage-cell {
  display: flex;
  align-items: center;
}

.ledger-match-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
}

.ledger-time-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.dashboard-applications-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px;
}

.footer-count-label {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.dashboard-load-more-btn {
  height: 36px;
  padding: 0 16px;
}

/* Detail Card */
.dashboard-detail-pane {
  position: sticky;
  top: 72px;
}

.dashboard-detail-card {
  border: 1px solid var(--border);
  border-radius: var(--dashboard-radius-md);
  background: var(--surface);
  padding: 24px;
}

.dashboard-detail-header-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.dashboard-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.dashboard-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dashboard-field-group.full-width {
  grid-column: 1 / -1;
}

.dashboard-field-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}

.dashboard-form-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-start;
}

.dashboard-text-input.disabled {
  background: var(--surface-subtle);
  color: var(--ink-muted);
  cursor: not-allowed;
}

.role-fit-tag {
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
}

.role-fit-none {
  color: var(--ink-muted);
  font-size: 0.75rem;
}

.role-engagement-chip.replied {
  padding: 2px 6px;
  background: #eef9f3;
  color: var(--success);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.dashboard-mobile-back-row {
  display: none;
  margin-bottom: 16px;
}

.dashboard-back-button {
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: var(--dashboard-radius-sm);
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.dashboard-detail-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.dashboard-detail-company {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.dashboard-detail-title {
  margin-top: 2px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.dashboard-detail-meta-row {
  margin-top: 6px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.ats-badge {
  font-weight: 600;
}

.dashboard-job-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Stepper */
.dashboard-lifecycle-stepper {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.stepper-step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.stepper-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  margin-top: 3px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
}

.stepper-step.completed .stepper-dot {
  border-color: var(--success);
  background: var(--success);
}

.stepper-step.active .stepper-dot {
  border-color: var(--primary);
  background: var(--primary);
}

.stepper-info strong {
  display: block;
  font-size: 0.75rem;
  color: var(--ink);
}

.stepper-info time {
  display: block;
  margin-top: 2px;
  font-size: 0.6875rem;
  color: var(--ink-muted);
}

/* Match Rationale Card */
.dashboard-detail-section {
  margin-bottom: 20px;
}

.dashboard-detail-section h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.dashboard-match-eval-card {
  padding: 12px 14px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--dashboard-radius-sm);
}

.eval-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.eval-fit-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.eval-fit-tag.direct {
  background: var(--success-light);
  color: var(--success);
}

.eval-fit-tag.adjacent {
  background: var(--primary-light);
  color: var(--primary);
}

.eval-confidence {
  font-size: 0.6875rem;
  color: var(--ink-muted);
}

.eval-score {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
}

.eval-reason {
  font-size: 0.75rem;
  color: var(--ink-secondary);
  line-height: 1.4;
}

.eval-skills-tags {
  margin-top: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.6875rem;
  color: var(--ink-muted);
}

.eval-skill-tag {
  padding: 2px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--ink);
}

/* Resources & Materials */
.dashboard-resource-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dashboard-resource-row {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--dashboard-radius-sm);
  background: var(--surface);
}

.dashboard-resource-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.resource-row-copy {
  min-width: 0;
  flex: 1;
}

.resource-row-copy strong {
  display: block;
  font-size: 0.75rem;
  color: var(--ink);
}

.resource-row-copy span {
  display: block;
  font-size: 0.6875rem;
  color: var(--ink-muted);
}

.dashboard-action-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dashboard-resource-state {
  font-size: 0.6875rem;
  color: var(--ink-muted);
}

/* Contacts */
.dashboard-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-contact-card {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--dashboard-radius-sm);
  background: var(--surface);
}

.contact-card-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-contact-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-subtle);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--ink);
}

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

.contact-card-info strong {
  display: block;
  font-size: 0.75rem;
  color: var(--ink);
}

.contact-card-info span {
  display: block;
  font-size: 0.6875rem;
  color: var(--ink-muted);
}

.contact-email-link {
  font-size: 0.6875rem;
  color: var(--primary);
}

.dashboard-icon-button {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--dashboard-radius-sm);
  background: var(--surface);
  color: var(--ink-muted);
  cursor: pointer;
}

.contact-reply-box {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: var(--dashboard-radius-sm);
  background: var(--success-light);
  border: 1px solid var(--success-border);
}

.reply-box-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 4px;
}

.reply-box-snippet {
  font-size: 0.75rem;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 6px;
}

/* Submission Proof */
.dashboard-submission-proof {
  padding: 12px;
  border: 1px solid var(--success-border);
  border-radius: var(--dashboard-radius-sm);
  background: var(--success-light);
}

.proof-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.6875rem;
  color: var(--success);
}

.proof-confirmation-text {
  font-size: 0.75rem;
  color: var(--ink);
  line-height: 1.4;
}

.dashboard-proof-link {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--success);
}

/* Role History */
.dashboard-role-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.history-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--ink-muted);
}

.history-content p {
  font-size: 0.6875rem;
  color: var(--ink);
}

.history-content time {
  font-size: 0.625rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   Profile & Settings Workspace
   ========================================================================== */

.dashboard-settings-layout {
  display: grid;
  grid-template-columns: 176px minmax(0, 720px);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.dashboard-settings-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 72px;
}

.settings-nav-link {
  padding: 8px 12px;
  border-radius: var(--dashboard-radius-sm);
  color: var(--ink-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 120ms ease, color 120ms ease;
}

.settings-nav-link:hover {
  background: var(--surface-hover);
  color: var(--ink);
}

.dashboard-settings-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-settings-card {
  border: 1px solid var(--border);
  border-radius: var(--dashboard-radius-md);
  background: var(--surface);
  padding: 24px;
}
.settings-card-header {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.settings-card-header h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.settings-card-header p {
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.dashboard-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.dashboard-details-grid dt {
  font-size: 0.6875rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboard-details-grid dd {
  margin-top: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}

.dashboard-resume-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--dashboard-radius-sm);
  background: var(--surface-subtle);
  margin-bottom: 10px;
}

.resume-box-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.resume-box-info strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink);
}

.resume-box-info span {
  display: block;
  font-size: 0.6875rem;
  color: var(--ink-muted);
}

.resume-box-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.dashboard-detail-identity {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.dashboard-detail-heading {
  min-width: 0;
  flex: 1;
}

.dashboard-detail-company {
  display: block;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
}

.dashboard-detail-title {
  margin: 3px 0 9px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.dashboard-detail-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--ink-muted);
  font-size: 0.71875rem;
  line-height: 1.4;
}

.dashboard-detail-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dashboard-detail-meta-row svg {
  width: 13px;
  height: 13px;
}

.dashboard-detail-score {
  min-width: 72px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--success-border);
  border-radius: var(--dashboard-radius-md);
  background: var(--success-light);
}

.dashboard-detail-score strong {
  color: var(--success);
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.dashboard-detail-score span {
  margin-top: 2px;
  color: var(--success);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dashboard-detail-status {
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.dashboard-toggle-row strong {
  display: block;
  font-size: 0.875rem;
  color: var(--ink);
}

.dashboard-toggle-row p {
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.dashboard-field-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.dashboard-field-row:last-child {
  border-bottom: none;
}

.dashboard-field-row label,
.dashboard-field-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.dashboard-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 360px;
}

.dashboard-number-input,
.dashboard-text-input {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--dashboard-radius-sm);
  background: var(--surface);
  font-size: 0.8125rem;
  color: var(--ink);
  flex: 1;
}

.dashboard-strategy-radios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.strategy-radio-card {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--dashboard-radius-sm);
  background: var(--surface);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  transition: border-color 120ms ease;
}

.strategy-radio-card.selected {
  border-color: var(--primary);
  background: var(--surface-selected);
}

.strategy-radio-card strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink);
}

.strategy-radio-card small {
  display: block;
  margin-top: 2px;
  font-size: 0.6875rem;
  color: var(--ink-muted);
}

.dashboard-field-help {
  display: block;
  margin-top: 6px;
  font-size: 0.6875rem;
  color: var(--ink-muted);
}

.dashboard-account-actions {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Primary and Secondary Actions */
.dashboard-primary-action {
  height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--primary);
  border-radius: var(--dashboard-radius-sm);
  background: var(--primary);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 120ms ease;
}

.dashboard-primary-action:hover:not(:disabled) {
  background: var(--primary-hover);
}

.dashboard-secondary-action {
  height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: var(--dashboard-radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.dashboard-secondary-action:hover:not(:disabled) {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.dashboard-secondary-action.danger {
  color: var(--danger);
}

.dashboard-secondary-action.danger:hover:not(:disabled) {
  background: var(--danger-light);
  border-color: var(--danger-border);
}

/* Switches */
.dashboard-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex: 0 0 44px;
  display: inline-block;
}

.dashboard-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.dashboard-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #c8c4cc;
  border-radius: 12px;
  transition: background-color 120ms ease;
}

.dashboard-slider::before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 120ms ease;
}

.dashboard-switch input:checked + .dashboard-slider {
  background: var(--primary);
}

.dashboard-switch input:checked + .dashboard-slider::before {
  transform: translateX(20px);
}

/* Mobile Drawer */
.dashboard-drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(23, 19, 31, 0.48);
  z-index: 40;
}

.dashboard-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: var(--surface);
  z-index: 50;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
}

.dashboard-drawer-header {
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.dashboard-drawer-close-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--ink-muted);
}

.dashboard-drawer-status {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
}

.dashboard-drawer-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
}

/* Gate */
.dashboard-gate {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
}

.dashboard-gate-header {
  height: 56px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.dashboard-gate-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.dashboard-gate-panel {
  width: 100%;
  max-width: 440px;
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: var(--dashboard-radius-md);
  background: var(--surface);
  text-align: center;
}

.dashboard-gate-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.dashboard-gate-icon.primary {
  background: var(--primary-light);
  color: var(--primary);
}

.dashboard-gate-icon.error {
  background: var(--danger-light);
  color: var(--danger);
}

.dashboard-gate-panel h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

.dashboard-gate-panel p {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--ink-secondary);
  line-height: 1.45;
}

.dashboard-gate-action {
  width: 100%;
  margin-top: 20px;
}

/* Skeleton */
.skeleton-box {
  background: #eceaee;
  border-radius: var(--dashboard-radius-sm);
}

.dashboard-skeleton-role-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-role-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--dashboard-radius-md);
}

.skeleton-role-row .skeleton-avatar {
  width: 36px;
  height: 36px;
}

.skeleton-role-row .skeleton-title {
  flex: 1;
  height: 16px;
}

.skeleton-role-row .skeleton-chip {
  width: 72px;
  height: 20px;
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
  .dashboard-master-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-master-detail-layout:not(.mobile-detail-open):not(.mobile-detail-mode) .dashboard-detail-pane {
    display: none;
  }

  .dashboard-master-detail-layout.mobile-detail-open .dashboard-master-pane,
  .dashboard-master-detail-layout.mobile-detail-mode .dashboard-master-pane {
    display: none;
  }

  .dashboard-mobile-back-row {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .dashboard-customer-shell > .dashboard-sidebar {
    display: none;
  }

  .dashboard-drawer-toggle-btn {
    display: inline-flex;
  }

  .dashboard-workspace-container {
    padding: 24px 20px 48px;
  }
}

@media (max-width: 900px) {
  .dashboard-home-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-settings-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .dashboard-settings-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .dashboard-outcome-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-toolbar-row {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-search-field {
    max-width: none;
  }

  .dashboard-filters-group {
    flex-wrap: wrap;
  }

  .dashboard-ledger-header {
    display: none;
  }

  .dashboard-ledger-row {
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    min-height: 52px;
    padding: 12px;
    gap: 10px;
  }

  .ledger-match-cell,
  .ledger-time-cell {
    display: none;
  }

  .dashboard-strategy-radios {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-details-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .dashboard-outcome-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-outcome-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-filters-group select {
    width: 100%;
  }

  .dashboard-account-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .resume-box-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-sidebar,
  .dashboard-nav-item,
  .dashboard-role-card,
  .dashboard-home-role-row,
  .dashboard-topbar-refresh-btn,
  .momentum-bar-fill {
    transition: none !important;
    animation: none !important;
  }
}
/* Clerk-protected operator canary console */
.operator-shell {
  --operator-panel-gap: 16px;
}

.operator-sidebar-copy {
  padding: 28px 20px;
}

.operator-sidebar-copy > span {
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.operator-sidebar-copy h1 {
  margin-top: 7px;
  color: var(--ink);
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}

.operator-sidebar-copy p {
  margin-top: 8px;
  color: var(--ink-secondary);
  font-size: 0.78rem;
  line-height: 1.55;
}

.operator-signout {
  width: 100%;
}

.operator-workspace {
  max-width: 1240px;
}

.operator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--operator-panel-gap);
}

.operator-system-panel,
.operator-timeline-panel {
  grid-column: 1 / -1;
}

.operator-panel-body {
  padding: 20px;
}

.operator-check-grid {
  padding: 4px 20px 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.operator-check {
  min-height: 78px;
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--dashboard-radius-md);
  background: var(--surface-subtle);
}

.operator-check > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.operator-check strong {
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.operator-check span:last-child {
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.operator-field {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
}

.operator-input {
  width: 100%;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--border-hover);
  border-radius: var(--dashboard-radius-md);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.8125rem;
}

.operator-input:focus {
  border-color: var(--primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(104, 80, 250, 0.16);
}

.operator-field-help {
  margin-top: 7px;
  color: var(--ink-muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.operator-start-button {
  width: 100%;
  margin-top: 16px;
}

.operator-start-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.operator-customer-summary {
  margin-top: 16px;
  border-top: 1px solid var(--border);
}

.operator-customer-summary > div {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.operator-customer-summary dt {
  color: var(--ink-muted);
  font-size: 0.7rem;
}

.operator-customer-summary dd {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 500;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.operator-customer-checks > div {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-secondary);
  font-size: 0.68rem;
}

.operator-run-header {
  padding-bottom: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.operator-run-header > div {
  min-width: 0;
}

.operator-run-header span:first-child {
  color: var(--ink-muted);
  font-size: 0.66rem;
}

.operator-run-header h3 {
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-timeline {
  padding: 8px 0;
}

.operator-timeline-event {
  min-height: 60px;
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
}

.operator-timeline-event::before {
  content: '';
  width: 1px;
  position: absolute;
  left: 6px;
  top: 15px;
  bottom: -4px;
  background: var(--border);
}

.operator-timeline-event:last-child::before {
  display: none;
}

.operator-timeline-dot {
  width: 13px;
  height: 13px;
  margin-top: 4px;
  z-index: 1;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.operator-timeline-event.completed .operator-timeline-dot {
  background: var(--success);
  box-shadow: 0 0 0 1px var(--success);
}

.operator-timeline-event.failed .operator-timeline-dot,
.operator-timeline-event.blocked .operator-timeline-dot {
  background: var(--danger);
  box-shadow: 0 0 0 1px var(--danger);
}

.operator-timeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.operator-timeline-meta strong {
  color: var(--ink);
  font-size: 0.74rem;
  text-transform: capitalize;
}

.operator-timeline-meta time {
  color: var(--ink-muted);
  font-size: 0.64rem;
  white-space: nowrap;
}

.operator-timeline-event p {
  margin-top: 4px;
  color: var(--ink-secondary);
  font-size: 0.72rem;
  line-height: 1.45;
}

.operator-proof-grid {
  margin-top: 14px;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--success-border);
  border-radius: var(--dashboard-radius-md);
  background: var(--success-light);
}

.operator-proof-grid a,
.operator-proof-grid span {
  overflow: hidden;
  color: var(--success);
  font-size: 0.7rem;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-run-actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.operator-run-actions > span {
  color: var(--warning);
  font-size: 0.7rem;
}

.operator-empty {
  padding: 20px 0;
  color: var(--ink-muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.operator-modal-scrim {
  position: fixed;
  inset: 0;
  z-index: 200;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 19, 31, 0.58);
}

.operator-confirmation {
  width: min(100%, 520px);
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--dashboard-radius-lg);
  background: var(--surface);
  box-shadow: 0 18px 60px rgba(23, 19, 31, 0.24);
}

.operator-confirmation h2 {
  color: var(--ink);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.operator-confirmation > p {
  margin-top: 8px;
  color: var(--ink-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
}

.operator-confirmation dl {
  margin-top: 18px;
  border-top: 1px solid var(--border);
}

.operator-confirmation dl > div {
  padding: 10px 0;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.operator-confirmation dt {
  color: var(--ink-muted);
  font-size: 0.72rem;
}

.operator-confirmation dd {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.72rem;
  text-align: right;
}

.operator-confirmation-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 1024px) {
  .operator-workspace {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .operator-grid,
  .operator-check-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .operator-system-panel,
  .operator-timeline-panel {
    grid-column: auto;
  }

  .operator-customer-summary > div,
  .operator-confirmation dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .operator-customer-summary dd,
  .operator-confirmation dd {
    text-align: left;
  }

  .operator-proof-grid,
  .operator-customer-checks {
    grid-template-columns: minmax(0, 1fr);
  }

  .operator-confirmation-actions {
    flex-direction: column-reverse;
  }

  .operator-confirmation-actions button {
    width: 100%;
  }
}

/* ==========================================================================
   Public Page Responsive Reflow
   ========================================================================== */

@media (max-width: 992px) {
  .reference-feature-band {
    grid-template-columns: 1fr;
  }
  .reference-feature-grid, .proof-cards-grid, .document-examples-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-chooser-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .reference-nav {
    top: 8px;
    height: 56px;
    padding: 6px 12px;
    width: calc(100% - 16px);
  }
  .reference-nav__center {
    display: none;
  }
  .reference-container {
    padding: 0 16px;
  }
  .reference-hero-section {
    padding-top: 40px;
  }
  .reference-logo-marquee {
    height: 52px;
    padding: 4px 0;
  }
  .reference-logo-track {
    gap: 16px;
  }
  .reference-logo-group {
    gap: 16px;
  }
  .reference-logo-item {
    height: 44px;
    padding: 0 14px;
  }
  .reference-logo-item img {
    max-height: 18px;
  }
  .reference-feature-grid, .proof-cards-grid, .document-examples-grid {
    grid-template-columns: 1fr;
  }
  .footer-columns {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .btn-primary-reference {
    width: 100%;
  }
  .reference-hero-card {
    padding: 16px;
  }
  .reference-jobs-carousel {
    width: 100%;
    margin-bottom: 48px;
  }
  .reference-logo-marquee-section {
    margin-bottom: 36px;
  }
  .reference-logo-marquee {
    height: 48px;
  }
  .reference-logo-track {
    gap: 32px;
  }
  .reference-logo-group {
    gap: 32px;
  }
  .reference-logo-item svg {
    height: 22px;
  }
  .reference-question-h2 {
    font-size: 30px;
    line-height: 38px;
  }
  .reference-question-container {
    padding: 24px 16px 100px;
    max-width: 100%;
  }
  .funnel-action-row {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(245, 245, 245, 0.95);
    backdrop-filter: blur(8px);
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    margin-top: 0;
  }
  .funnel-action-row .btn-primary-reference {
    width: 100%;
  }
}

/* ============================================================================
 * Free Credits Modal & Modern Dashboard Enhancements
 * ============================================================================ */
.credits-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: creditsFadeIn 0.15s ease-out;
}

.credits-modal-card {
  position: relative;
  width: 100%;
  max-width: 32rem;
  background-color: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  animation: creditsZoomIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes creditsFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes creditsZoomIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.dash-status-pill {
  user-select: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dash-status-pill:active {
  transform: scale(0.96);
}
