
  /* ===== Base ===== */
  html { scroll-behavior: smooth; }
  body { font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }

  /* ===== Body & full-height layout ===== */
  body { background: #070f1f; color: #f1f5f9; }
  html:not(.dark) body { background: #f7f9fc; color: #0f172a; }

  /* ===== Two-column shell ===== */
  /* Left panel is the persistent context/sidebar; right panel is the interactive stage */
  .shell {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100svh;
  }
  @media (min-width: 1024px) {
    .shell {
      grid-template-columns: 380px 1fr;
    }
  }
  @media (min-width: 1280px) {
    .shell {
      grid-template-columns: 420px 1fr;
    }
  }

  /* ===== Left panel ===== */
  .left-panel {
    position: relative;
    background: #0a1a31;
    border-right: 1px solid rgba(255,255,255,0.06);
    padding: 2.5rem 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  @media (min-width: 1024px) {
    .left-panel {
      position: sticky;
      top: 0;
      height: 100svh;
      overflow-y: auto;
      overflow-x: hidden;
    }
  }
  html:not(.dark) .left-panel {
    background: #f7f9fc;
    border-right-color: rgba(15,23,42,0.08);
  }

  /* Left panel ambient blobs */
  .left-panel::before, .left-panel::after {
    content: '';
    position: absolute;
    pointer-events: none;
    border-radius: 9999px;
    filter: blur(70px);
    z-index: 0;
  }
  .left-panel::before {
    top: -15%;
    left: -30%;
    width: 80%;
    height: 60%;
    background: radial-gradient(circle, rgba(30,99,170,0.4), transparent 70%);
  }
  .left-panel::after {
    bottom: 0;
    right: -30%;
    width: 80%;
    height: 50%;
    background: radial-gradient(circle, rgba(124,192,242,0.18), transparent 70%);
  }
  .left-panel > * { position: relative; z-index: 1; }

  html:not(.dark) .left-panel::before {
    background: radial-gradient(circle, rgba(30,99,170,0.07), transparent 70%);
  }
  html:not(.dark) .left-panel::after {
    background: radial-gradient(circle, rgba(59,143,217,0.04), transparent 70%);
  }

  /* Mobile: left panel hidden — sticky header handles branding */
  @media (max-width: 1023px) {
    .left-panel { display: none !important; }
  }

  /* ===== Right panel ===== */
  .right-panel {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    background: transparent;
    min-width: 0;
  }
  @media (max-width: 1023px) {
    .right-panel { min-height: auto; }
  }

  /* ===== Right ambient (light/dark) ===== */
  .right-ambient {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    border-radius: 9999px;
    filter: blur(100px);
    opacity: 0.18;
  }
  .right-ambient-a {
    top: 10%; right: -5%;
    width: 45vw; height: 45vw;
    background: radial-gradient(circle, #1e63aa, transparent 70%);
  }
  .right-ambient-b {
    bottom: 0%; left: 30%;
    width: 35vw; height: 35vw;
    background: radial-gradient(circle, #7cc0f2, transparent 70%);
  }
  html:not(.dark) .right-ambient { opacity: 0.12; }

  /* ===== Steps ===== */
  .step { display: none; }
  .step.active {display: block;animation: fadeUp 0.4s cubic-bezier(0.4,0,0.2,1) both;padding-bottom: 30px;}
  @keyframes fadeUp { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }

  /* ===== Greeting hero shrink + form reveal ===== */
  .hero-gradient-text {
    background: linear-gradient(120deg, #1e63aa 0%, #3b8fd9 45%, #7cc0f2 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .greeting-hero .hero-headline {
    font-size: 3rem; line-height: 1.05; letter-spacing: -0.02em;
    transition: font-size 0.6s cubic-bezier(0.4,0,0.2,1), line-height 0.6s cubic-bezier(0.4,0,0.2,1);
  }
  @media (min-width: 640px) { .greeting-hero .hero-headline { font-size: 3.875rem; } }
  .greeting-hero.shrunk .hero-headline { font-size: 1.875rem; line-height: 1.25; letter-spacing: -0.015em; }
  @media (min-width: 640px) { .greeting-hero.shrunk .hero-headline { font-size: 2.25rem; } }
  .greeting-hero .hero-sub {
    transition: opacity 0.4s ease, max-height 0.5s cubic-bezier(0.4,0,0.2,1);
    max-height: 8rem; overflow: hidden;
  }
  .greeting-hero.shrunk .hero-sub { opacity: 0; max-height: 0; pointer-events: none; }
  .greeting-hero { transition: margin-bottom 0.6s cubic-bezier(0.4,0,0.2,1); margin-bottom: 2.5rem; }
  .greeting-hero.shrunk { margin-bottom: 1.5rem; }
  #intake-form-wrap { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.75s cubic-bezier(0.4,0,0.2,1), opacity 0.45s ease 0.25s; }
  #intake-form-wrap.revealed { max-height: 1000px; opacity: 1; }

  /* ===== Sticky question action bar ===== */
  .q-action-bar {
    position: sticky; bottom: 0; z-index: 30;
    padding: 1.5rem 0 1.75rem;
    margin-top: 2.25rem;
    background: linear-gradient(to top, rgba(7,15,31,1) 55%, rgba(7,15,31,0));
  }
  html:not(.dark) .q-action-bar {
    background: linear-gradient(to top, rgba(247,249,252,1) 60%, rgba(247,249,252,0));
  }

  /* ===== Question step breadcrumb ===== */
  .q-step-bar {
    display: flex; align-items: center; gap: 0;
    margin-bottom: 2rem;
  }
  .q-step-pip {
    height: 4px; flex: 1; border-radius: 9999px;
    background: rgba(255,255,255,0.08);
    transition: background 0.4s ease;
  }
  html:not(.dark) .q-step-pip { background: rgba(15,23,42,0.08); }
  .q-step-pip.done { background: #7cc0f2; }
  html:not(.dark) .q-step-pip.done { background: #1e63aa; }
  .q-step-pip.active { background: linear-gradient(90deg, #1e63aa, #7cc0f2); }
  .q-step-pip + .q-step-pip { margin-left: 3px; }

  /* ===== Two-column question layout ===== */
  .q-layout {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }
  @media (min-width: 1024px) {
    .q-layout {
      grid-template-columns: minmax(0, 1fr) 268px;
      gap: 3rem;
    }
  }
  .q-side-col { display: none; }
  @media (min-width: 1024px) {
    .q-side-col {
      display: block;
      position: sticky;
      top: 6rem;
    }
  }
  .q-side-panel {
    border-radius: 1.25rem;
    border: 1px solid rgba(30,99,170,0.14);
    background: rgba(10,26,49,0.55);
    padding: 1.5rem 1.375rem;
    backdrop-filter: blur(16px);
  }
  html:not(.dark) .q-side-panel {
    background: rgba(255,255,255,0.8);
    border-color: rgba(30,99,170,0.1);
  }
  .q-side-dim-eyebrow {
    display: block;
    font-size: 0.625rem; font-weight: 700; font-family: 'Manrope', sans-serif;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: #3b8fd9; margin-bottom: 0.5rem;
  }
  .dark .q-side-dim-eyebrow { color: #7cc0f2; }
  .q-side-dim-title {
    font-size: 1rem; font-weight: 700; font-family: 'Manrope', sans-serif;
    color: #f8fafc; line-height: 1.3; margin: 0;
  }
  html:not(.dark) .q-side-dim-title { color: #0f172a; }
  .q-side-dim-text {
    font-size: 0.8125rem; line-height: 1.65;
    color: rgba(148,163,184,0.7); margin: 0.625rem 0 0 0;
  }
  html:not(.dark) .q-side-dim-text { color: #64748b; }
  .q-side-separator {
    height: 1px; background: rgba(255,255,255,0.07);
    margin: 1.25rem 0;
  }
  html:not(.dark) .q-side-separator { background: rgba(15,23,42,0.07); }
  .q-side-progress { display: flex; flex-direction: column; gap: 0.5rem; }
  .q-side-prog-track {
    height: 3px; border-radius: 9999px;
    background: rgba(255,255,255,0.07); overflow: hidden;
  }
  html:not(.dark) .q-side-prog-track { background: rgba(15,23,42,0.07); }
  .q-side-prog-fill {
    height: 100%; border-radius: 9999px;
    background: linear-gradient(90deg, #1e63aa, #7cc0f2);
  }
  .q-side-prog-label {
    font-size: 0.6875rem; font-weight: 600; font-family: 'Manrope', sans-serif;
    letter-spacing: 0.05em; text-transform: uppercase;
    color: rgba(148,163,184,0.5);
  }
  html:not(.dark) .q-side-prog-label { color: #94a3b8; }

  /* ===== Welcome screen two-column layout ===== */
  .intro-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 0;
  }
  @media (min-width: 1024px) {
    .intro-layout {
      grid-template-columns: minmax(0, 1fr) 260px;
      gap: 3rem;
    }
  }
  .intro-side-col { display: none; }
  @media (min-width: 1024px) {
    .intro-side-col {
      display: block;
      position: sticky;
      top: 6rem;
    }
  }
  .dim-chip {
    display: flex; align-items: center; gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.625rem;
    font-size: 0.8rem; font-weight: 500;
    color: rgba(148,163,184,0.85);
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.03);
    transition: background 0.15s ease, color 0.15s ease;
  }
  html:not(.dark) .dim-chip {
    color: #475569; border-color: rgba(15,23,42,0.07); background: rgba(15,23,42,0.025);
  }
  .dim-chip-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: #3b8fd9; flex-shrink: 0;
  }
  .dark .dim-chip-dot { background: #7cc0f2; }

  /* ===== Constrain single-column steps ===== */
  #step-lead, #step-reviewing, #step-results { max-width: 680px; }

  /* ===== Side panel advisor comment ===== */
  .q-side-comment { overflow: hidden; }
  /* Typing indicator */
  .q-side-typing {
    display: flex; align-items: center; gap: 0.625rem; margin-top: 1.125rem;
    animation: commentReveal 0.3s ease both;
  }
  .q-side-typing-dots {
    display: flex; align-items: center; gap: 3px;
    background: rgba(30,99,170,0.08); border: 1px solid rgba(30,99,170,0.14);
    border-radius: 999px; padding: 0.375rem 0.625rem;
  }
  .dark .q-side-typing-dots { background: rgba(30,99,170,0.15); }
  .q-side-typing-dot {
    width: 5px; height: 5px; border-radius: 50%; background: #3b8fd9; opacity: 0.5;
  }
  .dark .q-side-typing-dot { background: #7cc0f2; }
  .q-side-typing-dot:nth-child(1) { animation: typingBounce 1.1s ease-in-out infinite 0s; }
  .q-side-typing-dot:nth-child(2) { animation: typingBounce 1.1s ease-in-out infinite 0.18s; }
  .q-side-typing-dot:nth-child(3) { animation: typingBounce 1.1s ease-in-out infinite 0.36s; }
  @keyframes typingBounce {
    0%, 60%, 100% { opacity: 0.4; transform: translateY(0); }
    30%            { opacity: 1;   transform: translateY(-3px); }
  }
  /* Comment bubble */
  .q-side-comment-inner {
    margin-top: 1.125rem;
    animation: commentReveal 0.5s cubic-bezier(0.34,1.1,0.64,1) both;
  }
  @keyframes commentReveal {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .q-side-comment-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.5rem;
  }
  .q-side-comment-author { display: flex; align-items: center; gap: 0.5rem; }
  .q-side-comment-avatar {
    width: 2rem; height: 2rem; border-radius: 50%;
    background: white; border: 1.5px solid rgba(30,99,170,0.15);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden;
    box-shadow: 0 1px 8px rgba(30,99,170,0.15);
  }
  /* Dark mode: blue gradient so navy icon becomes visible as white */
  .dark .q-side-comment-avatar {
    background: linear-gradient(135deg, #1e63aa 0%, #3b8fd9 100%);
    border-color: transparent;
    box-shadow: 0 1px 10px rgba(30,99,170,0.45);
  }
  .q-side-comment-avatar img { width: 72%; height: 72%; object-fit: contain; display: block; }
  .dark .q-side-comment-avatar img { filter: brightness(0) invert(1); }
  .q-side-comment-name-wrap { display: flex; flex-direction: column; gap: 0.1rem; }
  .q-side-comment-name {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.01em;
    font-family: 'Manrope', sans-serif; color: #1e63aa; line-height: 1;
  }
  .dark .q-side-comment-name { color: #7cc0f2; }
  .q-side-comment-role {
    font-size: 0.5625rem; font-weight: 500; letter-spacing: 0.04em;
    font-family: 'Manrope', sans-serif; text-transform: uppercase;
    color: rgba(100,116,139,0.7);
  }
  .dark .q-side-comment-role { color: rgba(148,163,184,0.5); }
  .q-side-comment-ts {
    font-size: 0.5625rem; letter-spacing: 0.02em; font-family: 'Manrope', sans-serif;
    color: rgba(148,163,184,0.55);
  }
  .q-side-comment-bubble {
    padding: 0.75rem 0.875rem;
    border-radius: 0.25rem 0.875rem 0.875rem 0.875rem;
    background: rgba(30,99,170,0.07); border: 1px solid rgba(30,99,170,0.13);
    border-left: 2px solid rgba(30,99,170,0.3);
  }
  html:not(.dark) .q-side-comment-bubble {
    background: rgba(30,99,170,0.04); border-color: rgba(30,99,170,0.1);
    border-left-color: rgba(30,99,170,0.25);
  }
  .q-side-comment-text {
    font-size: 0.8rem; line-height: 1.68;
    color: rgba(148,163,184,0.95); font-style: italic; margin: 0;
  }
  html:not(.dark) .q-side-comment-text { color: #3d5068; }

  /* Hide question help text in main col on desktop (sidebar shows it) */
  @media (min-width: 1024px) { .q-main-help { display: none; } }

  /* ===== Hero headline reveal (replaces typewriter) ===== */
  .greeting-hero .hero-headline {
    animation: heroReveal 0.65s cubic-bezier(0.4,0,0.2,1) 0.08s both;
  }
  @keyframes heroReveal {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ===== Partners ribbon ===== */
  .partners-ribbon {
    margin-top: 0px;
    width: 100%;
    margin-bottom: 30px;
    max-width: 100%;
    min-width: 0;
    animation: heroReveal 0.65s cubic-bezier(0.4,0,0.2,1) 0.45s both;
  }
  .partners-ribbon__head {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 16px;
    min-width: 0;
  }
  .partners-ribbon__rule {
    flex: 1;
    min-width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  }
  html:not(.dark) .partners-ribbon__rule {
    background: linear-gradient(90deg, transparent, rgba(15,23,42,0.1), transparent);
  }
  .partners-ribbon__title {
    font-family: 'Manrope', sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(148,163,184,0.65);
    white-space: nowrap;
    flex-shrink: 0;
  }
  html:not(.dark) .partners-ribbon__title { color: rgba(100,116,139,0.75); }
  .partners-ribbon__marquee {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 32px;
    overflow: hidden;
    overflow: clip;
    contain: layout paint;
    isolation: isolate;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }
  .partners-ribbon__rail {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    height: 100%;
    width: max-content;
    will-change: transform;
    animation: partnersMarquee 32s linear infinite;
    animation-play-state: paused;
  }
  .partners-ribbon__marquee.is-ready .partners-ribbon__rail {
    animation-play-state: running;
  }
  @keyframes partnersMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-1 * var(--partners-loop-width, 50%))); }
  }
  .partners-ribbon__track {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    padding-right: 3.5rem;
    flex-shrink: 0;
  }
  @media (max-width: 639px) {
    .partners-ribbon__marquee { height: 28px; }
    .partners-ribbon__track {
      gap: 2rem;
      padding-right: 2rem;
    }
    .partners-ribbon__logo { height: 20px; }
    .partner-logo-item--aws { height: 24px; }
    .partner-logo-item--aws img { max-width: 88px; }
    .partner-logo-item--nvidia { height: 16px; }
    .partner-logo-item--nvidia img { max-width: 96px; }
    .partners-ribbon__logo img { max-width: 96px; }
  }
  .partners-ribbon__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    isolation: isolate;
  }
  .partners-ribbon__logo img {
    height: 100%;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.2s ease;
  }
  .partners-ribbon__logo:hover img { opacity: 1; }
  .partner-logo-item--aws {height: 29px;}
  .partner-logo-item--aws img { max-width: 110px; }
  .partner-logo-item--nvidia {height: 20px;}
  .partner-logo-item--nvidia img { max-width: 150px; }
  /* Dark bg: white/light logos — knock out black PNG backgrounds */
  .dark .partner-logo-item--aws img,
  .dark .partner-logo-item--hikvision img {
    mix-blend-mode: lighten;
  }
  /* Dark bg: NVIDIA wordmark is black — invert to white */
  .dark .partner-logo-item--nvidia img {
    filter: brightness(0) invert(1);
    mix-blend-mode: normal;
  }
  /* Light mode: invert white-on-black partner marks */
  html:not(.dark) .partner-logo-item--aws img,
  html:not(.dark) .partner-logo-item--hikvision img {
    filter: invert(1);
    mix-blend-mode: normal;
  }
  html:not(.dark) .partner-logo-item--anthropic img {
    filter: brightness(0.15);
  }

  /* ===== Option pill ===== */
  .option {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 1.125rem 1.25rem;
    border-radius: 0.875rem;
    border: 1px solid rgba(226,232,240,0.9);
    background: rgba(255,255,255,0.55);
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
  }
  .dark .option {
    border-color: rgba(255,255,255,0.07);
    background: rgba(11,26,52,0.5);
  }
  .option:hover {
    border-color: rgba(30,99,170,0.5);
    background: rgba(30,99,170,0.04);
    transform: translateY(-1px);
  }
  .dark .option:hover {
    border-color: rgba(124,192,242,0.3);
    background: rgba(30,99,170,0.12);
  }
  .option.selected {
    border-color: #1e63aa;
    background: rgba(30,99,170,0.06);
    box-shadow: 0 0 0 3px rgba(30,99,170,0.1), 0 2px 8px -2px rgba(30,99,170,0.15);
  }
  .dark .option.selected {
    border-color: #7cc0f2;
    background: rgba(30,99,170,0.16);
    box-shadow: 0 0 0 3px rgba(124,192,242,0.1), 0 2px 8px -2px rgba(30,99,170,0.25);
  }
  .option-radio {
    width: 1.25rem; height: 1.25rem; border-radius: 9999px;
    border: 2px solid #94a3b8; flex-shrink: 0; margin-top: 0.125rem;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
  }
  .dark .option-radio { border-color: #334155; }
  .option.selected .option-radio { border-color: #1e63aa; background: #1e63aa; }
  .dark .option.selected .option-radio { border-color: #7cc0f2; background: #7cc0f2; }
  .option.selected .option-radio::after {
    content: ''; width: 0.45rem; height: 0.45rem; border-radius: 9999px; background: #fff;
  }
  .dark .option.selected .option-radio::after { background: #0a1a31; }
  .option-label { font-size: 0.9375rem; line-height: 1.55; color: #0f172a; font-weight: 450; }
  .dark .option-label { color: #e2e8f0; }
  .option.selected .option-label { font-weight: 500; }

  /* ===== Validation ===== */
  .validation-msg { display: none; font-size: 0.8125rem; color: #f59e0b; margin-top: 0.625rem; }
  .validation-msg.show { display: block; }

  /* ===== Tier chips ===== */
  .tier-chip {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 0.85rem; border-radius: 9999px;
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase; margin-bottom: 0.5rem;
  }
  .tier-chip::before { content: ''; width: 0.4rem; height: 0.4rem; border-radius: 9999px; }
  .tier-chip.t1 { background: rgba(244,63,94,0.12); color: #f43f5e; border: 1px solid rgba(244,63,94,0.25); }
  .tier-chip.t1::before { background: #f43f5e; }
  .tier-chip.t2 { background: rgba(245,158,11,0.12); color: #d97706; border: 1px solid rgba(245,158,11,0.25); }
  .tier-chip.t2::before { background: #f59e0b; }
  .tier-chip.t3 { background: rgba(30,99,170,0.12); color: #1e63aa; border: 1px solid rgba(30,99,170,0.25); }
  .dark .tier-chip.t3 { color: #7cc0f2; border-color: rgba(124,192,242,0.25); }
  .tier-chip.t3::before { background: #1e63aa; }
  .tier-chip.t4 { background: rgba(59,143,217,0.14); color: #1e63aa; border: 1px solid rgba(59,143,217,0.3); }
  .dark .tier-chip.t4 { color: #7cc0f2; }
  .tier-chip.t4::before { background: #3b8fd9; }

  /* ===== Dimension breakdown ===== */
  .dim-row { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 0.875rem; }
  .dim-row:last-child { margin-bottom: 0; }
  .dim-name { font-size: 0.8rem; color: #64748b; min-width: 150px; font-weight: 500; }
  .dark .dim-name { color: #94a3b8; }
  .dim-track { flex: 1; height: 0.375rem; background: rgba(15,23,42,0.06); border-radius: 9999px; overflow: hidden; }
  .dark .dim-track { background: rgba(255,255,255,0.06); }
  .dim-fill { height: 100%; border-radius: 9999px; transition: width 0.9s cubic-bezier(0.4,0,0.2,1); }
  .dim-pct { font-size: 0.8rem; font-weight: 600; color: #0f172a; min-width: 2.25rem; text-align: right; }
  .dark .dim-pct { color: #f1f5f9; }

  /* ===== Recommendation rows ===== */
  .rec-item { display: flex; gap: 0.875rem; padding: 0.875rem 0; border-bottom: 1px solid rgba(15,23,42,0.06); }
  .dark .rec-item { border-color: rgba(255,255,255,0.05); }
  .rec-item:last-child { border-bottom: none; padding-bottom: 0; }
  .rec-icon { width: 2.25rem; height: 2.25rem; border-radius: 0.625rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .rec-icon.priority { background: rgba(244,63,94,0.12); color: #f43f5e; }
  .rec-icon.medium   { background: rgba(245,158,11,0.12); color: #d97706; }
  .rec-icon.strength { background: rgba(30,99,170,0.12); color: #1e63aa; }
  .dark .rec-icon.strength { color: #7cc0f2; }
  .rec-head { font-size: 0.875rem; font-weight: 600; color: #0f172a; margin-bottom: 0.2rem; }
  .dark .rec-head { color: #f1f5f9; }
  .rec-body { font-size: 0.8125rem; color: #64748b; line-height: 1.55; }
  .dark .rec-body { color: #94a3b8; }

  /* ===== Form input ===== */
  .form-input {
    width: 100%; padding: 0.875rem 1rem;
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(226,232,240,0.9);
    border-radius: 0.75rem; color: #0f172a;
    font-family: 'Inter', sans-serif; font-size: 0.95rem;
    transition: all 0.2s ease; outline: none;
  }
  .dark .form-input {
    background: rgba(11,26,52,0.6);
    border-color: rgba(255,255,255,0.07);
    color: #f1f5f9;
  }
  .form-input::placeholder { color: #94a3b8; }
  .dark .form-input::placeholder { color: #475569; }
  .form-input:focus {
    border-color: #1e63aa;
    background: rgba(30,99,170,0.03);
    box-shadow: 0 0 0 4px rgba(30,99,170,0.10);
  }
  .dark .form-input:focus {
    border-color: #7cc0f2;
    background: rgba(30,99,170,0.09);
    box-shadow: 0 0 0 4px rgba(124,192,242,0.09);
  }

  /* ===== Left panel step list — enterprise redesign ===== */
  .steps-track { display: flex; flex-direction: column; }
  .step-item {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  }
  /* The number badge column */
  .step-badge-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 2.5rem;
    margin-right: 0.875rem;
  }
  .step-num {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.09);
    color: rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.03);
    font-family: 'Manrope', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  }
  .step-item.current .step-num {
    background: linear-gradient(135deg, #1e63aa, #3b8fd9);
    border-color: transparent;
    color: white;
    box-shadow: 0 0 0 3px rgba(30,99,170,0.25), 0 4px 16px rgba(30,99,170,0.4);
  }
  .step-item.done .step-num {
    background: rgba(124,192,242,0.1);
    border-color: rgba(124,192,242,0.22);
    color: #7cc0f2;
  }
  .step-num-check { display: none; }
  .step-item.done .step-num-text { display: none; }
  .step-item.done .step-num-check { display: block; }
  /* Text content */
  .step-content {
    flex: 1;
    min-width: 0;
    padding: 0rem 0 0rem;
  }
  .step-label {
    font-family: 'Manrope', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    color: rgba(255,255,255,0.28);
    line-height: 1.2;
    letter-spacing: -0.005em;
    transition: color 0.3s ease;
  }
  .step-item.current .step-label { color: white; }
  .step-item.done .step-label { color: rgba(255,255,255,0.5); }
  .step-sublabel {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.18);
    margin-top: 0.2rem;
    font-weight: 400;
    transition: color 0.3s ease;
  }
  .step-item.current .step-sublabel { color: rgba(255,255,255,0.45); }
  .step-item.done .step-sublabel { color: rgba(255,255,255,0.28); }

  /* ===== Sidebar scrollbar ===== */
  .left-panel::-webkit-scrollbar { width: 3px; }
  .left-panel::-webkit-scrollbar-track { background: transparent; }
  .left-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 9999px; }
  .left-panel::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.28); }
  html:not(.dark) .left-panel::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.1); }
  html:not(.dark) .left-panel::-webkit-scrollbar-thumb:hover { background: rgba(15,23,42,0.2); }

  /* ===== Step items — light mode ===== */
  html:not(.dark) .step-num {
    border-color: rgba(15,23,42,0.1);
    color: rgba(15,23,42,0.25);
    background: rgba(15,23,42,0.03);
  }
  html:not(.dark) .step-item.current .step-num {
    background: linear-gradient(135deg, #1e63aa, #3b8fd9);
    border-color: transparent;
    color: white;
    box-shadow: 0 0 0 3px rgba(30,99,170,0.15), 0 4px 12px rgba(30,99,170,0.25);
  }
  html:not(.dark) .step-item.done .step-num {
    background: rgba(30,99,170,0.09);
    border-color: rgba(30,99,170,0.2);
    color: #1e63aa;
  }
  html:not(.dark) .step-label { color: rgba(15,23,42,0.28); }
  html:not(.dark) .step-item.current .step-label { color: #0f172a; }
  html:not(.dark) .step-item.done .step-label { color: rgba(15,23,42,0.5); }
  html:not(.dark) .step-sublabel { color: rgba(15,23,42,0.2); }
  html:not(.dark) .step-item.current .step-sublabel { color: rgba(15,23,42,0.5); }
  html:not(.dark) .step-item.done .step-sublabel { color: rgba(15,23,42,0.33); }

  /* ===== Sidebar text — light mode ===== */
  html:not(.dark) .sidebar-badge {
    border-color: rgba(30,99,170,0.22) !important;
    background: rgba(30,99,170,0.06) !important;
    color: #1e63aa !important;
  }
  html:not(.dark) .sidebar-title { color: #0a1a31 !important; }
  html:not(.dark) .sidebar-desc { color: #475569 !important; }
  html:not(.dark) .left-footer { border-top-color: rgba(15,23,42,0.09) !important; }
  html:not(.dark) .sidebar-foot { color: #94a3b8 !important; }
  html:not(.dark) #progressWrap .progress-track { background: rgba(15,23,42,0.08); }
  html:not(.dark) #progressLabel { color: #64748b; }
  html:not(.dark) .progress-heading { color: #64748b; }

  /* ===== Custom Select Dropdown ===== */
  .custom-select { position: relative; width: 100%; }
  .select-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(226,232,240,0.9);
    border-radius: 0.75rem;
    color: #94a3b8;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: left;
    outline: none;
  }
  .dark .select-trigger {
    background: rgba(11,26,52,0.6);
    border-color: rgba(255,255,255,0.07);
    color: #475569;
  }
  .select-trigger.has-value { color: #0f172a; }
  .dark .select-trigger.has-value { color: #f1f5f9; }
  .select-trigger:focus, .select-trigger.open {
    border-color: #1e63aa;
    background: rgba(30,99,170,0.03);
    box-shadow: 0 0 0 4px rgba(30,99,170,0.10);
  }
  .dark .select-trigger:focus, .dark .select-trigger.open {
    border-color: #7cc0f2;
    background: rgba(30,99,170,0.09);
    box-shadow: 0 0 0 4px rgba(124,192,242,0.09);
  }
  .select-chevron {
    width: 1rem; height: 1rem;
    flex-shrink: 0;
    color: #94a3b8;
    transition: transform 0.2s ease;
    pointer-events: none;
  }
  .select-trigger.open .select-chevron { transform: rotate(180deg); }
  .select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    z-index: 200;
    border-radius: 0.875rem;
    border: 1px solid rgba(226,232,240,0.9);
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px -15px rgba(15,23,42,0.18), 0 6px 20px -6px rgba(15,23,42,0.1);
    overflow: hidden;
    display: none;
    max-height: 280px;
    overflow-y: auto;
  }
  .dark .select-dropdown {
    background: rgba(7,15,31,0.97);
    border-color: rgba(255,255,255,0.07);
    box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6), 0 6px 20px -6px rgba(0,0,0,0.35);
  }
  .select-dropdown.open { display: block; animation: fadeUp 0.18s cubic-bezier(0.4,0,0.2,1) both; }
  .select-dropdown::-webkit-scrollbar { width: 4px; }
  .select-dropdown::-webkit-scrollbar-track { background: transparent; }
  .select-dropdown::-webkit-scrollbar-thumb { background: rgba(100,116,139,0.2); border-radius: 9999px; }
  .select-option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #334155;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
    border-bottom: 1px solid rgba(226,232,240,0.45);
    user-select: none;
  }
  .dark .select-option { color: #cbd5e1; border-bottom-color: rgba(255,255,255,0.04); }
  .select-option:last-child { border-bottom: none; }
  .select-option:hover { background: rgba(30,99,170,0.05); color: #1e63aa; }
  .dark .select-option:hover { background: rgba(124,192,242,0.08); color: #7cc0f2; }
  .select-option.selected { background: rgba(30,99,170,0.07); color: #1e63aa; font-weight: 500; }
  .dark .select-option.selected { background: rgba(30,99,170,0.15); color: #7cc0f2; }
  .select-opt-dot {
    width: 0.35rem; height: 0.35rem;
    border-radius: 9999px;
    background: currentColor;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s;
  }
  .select-option.selected .select-opt-dot { opacity: 1; }

  /* ===== Sidebar step connectors + mini progress ===== */
  .step-connector-line {
    height: 1.25rem;
    width: 1px;
    background: rgba(255,255,255,0.07);
    margin-left: calc(1.125rem + 0.5625rem); /* center of step-badge-col: 2.5rem/2 = 1.25rem, then minus half line-width */
    flex-shrink: 0;
    align-self: flex-start;
    margin-left: 1.25rem;
  }
  .step-connector-line.done { background: rgba(30,99,170,0.4); }
  html:not(.dark) .step-connector-line { background: rgba(15,23,42,0.07); }
  html:not(.dark) .step-connector-line.done { background: rgba(30,99,170,0.22); }
  .step-mini-progress { margin-top: 0.5rem; }
  .step-mini-track {
    height: 3px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
  }
  html:not(.dark) .step-mini-track { background: rgba(15,23,42,0.08); }
  .step-mini-fill {
    height: 100%; border-radius: 9999px;
    background: linear-gradient(90deg, #1e63aa, #7cc0f2);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
  }
  .step-mini-label {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.38);
    margin-top: 0.3rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  html:not(.dark) .step-mini-label { color: rgba(15,23,42,0.35); }

  /* ===== Logo ===== */
  .logo-dark-panel {display: block;filter: brightness(0) invert(1);margin: -10px;}
  html:not(.dark) .logo-dark-panel { filter: none; }

  /* ===== Letter-badged option (replaces radio) ===== */
  .option-letter {
    width: 1.75rem; height: 1.75rem;
    border-radius: 0.5rem;
    border: 1.5px solid rgba(148,163,184,0.55);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.625rem; font-weight: 800;
    font-family: 'Manrope', sans-serif;
    color: #94a3b8; flex-shrink: 0;
    transition: all 0.2s ease; letter-spacing: 0.03em;
    margin-top: 0.05rem;
  }
  .dark .option-letter {
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.28);
  }
  .option:hover .option-letter {
    border-color: rgba(30,99,170,0.5); color: #1e63aa;
  }
  .dark .option:hover .option-letter {
    border-color: rgba(124,192,242,0.4); color: #7cc0f2;
  }
  .option.selected .option-letter {
    background: #1e63aa; border-color: #1e63aa; color: white;
  }
  .dark .option.selected .option-letter {
    background: #7cc0f2; border-color: #7cc0f2; color: #0a1a31;
  }

  /* ===== Staggered option entrance ===== */
  .step.active .option { animation: optionIn 0.38s cubic-bezier(0.4,0,0.2,1) both; }
  .step.active .option:nth-child(1) { animation-delay: 0.06s; }
  .step.active .option:nth-child(2) { animation-delay: 0.13s; }
  .step.active .option:nth-child(3) { animation-delay: 0.20s; }
  .step.active .option:nth-child(4) { animation-delay: 0.27s; }
  @keyframes optionIn {
    from { opacity: 0; transform: translateY(7px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ===== Inline human commentary — chat bubble ===== */
  .q-comment { margin-top: 1.625rem; }
  .q-comment-inner {
    display: flex; gap: 0.75rem; align-items: flex-end;
    animation: commentIn 0.44s cubic-bezier(0.34,1.1,0.64,1) both;
  }
  @keyframes commentIn {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)  scale(1); }
  }
  .q-comment-avatar {
    width: 2rem; height: 2rem; border-radius: 50%;
    background: linear-gradient(135deg, #1e63aa 0%, #3b8fd9 100%);
    color: white; font-size: 0.625rem; font-weight: 800;
    font-family: 'Manrope', sans-serif;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(30,99,170,0.35);
  }
  .q-comment-bubble {
    position: relative;
    background: rgba(30,99,170,0.07);
    border: 1px solid rgba(30,99,170,0.14);
    border-radius: 0.25rem 1.25rem 1.25rem 1.25rem;
    padding: 0.875rem 1.125rem;
    max-width: calc(100% - 2.75rem);
  }
  .dark .q-comment-bubble {
    background: rgba(30,99,170,0.15);
    border-color: rgba(124,192,242,0.16);
  }
  .q-comment-bubble::before {
    content: '';
    position: absolute; top: 0; left: -7px;
    border-width: 0 8px 9px 0;
    border-style: solid;
    border-color: transparent rgba(30,99,170,0.14) transparent transparent;
  }
  .dark .q-comment-bubble::before {
    border-color: transparent rgba(124,192,242,0.16) transparent transparent;
  }
  .q-comment-name {
    display: block;
    font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em;
    font-family: 'Manrope', sans-serif; color: #1e63aa;
    margin-bottom: 0.3125rem;
  }
  .dark .q-comment-name { color: #7cc0f2; }
  .q-comment-text {
    font-size: 0.8125rem; line-height: 1.65;
    color: #334155; font-style: italic; margin: 0;
  }
  .dark .q-comment-text { color: #94a3b8; }

  /* ===== Keyboard hint badge on options ===== */
  .option-kbd {
    font-size: 0.6rem; font-family: 'Manrope', sans-serif; font-weight: 700;
    letter-spacing: 0.06em; color: rgba(148,163,184,0.5);
    padding: 0.1rem 0.35rem; border-radius: 0.25rem;
    border: 1px solid rgba(148,163,184,0.2); margin-left: auto; flex-shrink: 0;
    display: none;
  }
  @media (hover: hover) { .option-kbd { display: inline-flex; } }

  /* ===== Review / processing screen ===== */
  .review-pulse-wrap { display: flex; justify-content: center; }
  .review-pulse-ring {
    width: 80px; height: 80px; border-radius: 50%;
    border: 2px solid rgba(30,99,170,0.25);
    display: flex; align-items: center; justify-content: center;
    animation: reviewPulse 2.4s ease-in-out infinite;
  }
  @keyframes reviewPulse {
    0%,100%{ box-shadow: 0 0 0 0 rgba(30,99,170,0.3), 0 0 0 0 rgba(30,99,170,0.1); }
    50%    { box-shadow: 0 0 0 14px rgba(30,99,170,0.08), 0 0 0 28px rgba(30,99,170,0.03); }
  }
  .review-pulse-core {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg,#1e63aa,#3b8fd9);
    display: flex; align-items: center; justify-content: center;
  }
  .review-stage-card {
    border-radius: 1rem; padding: 1.5rem;
    border: 1px solid rgba(30,99,170,0.18);
    background: rgba(30,99,170,0.04);
  }
  .dark .review-stage-card {
    background: rgba(30,99,170,0.08);
    border-color: rgba(124,192,242,0.13);
  }
  .review-stage-text {
    font-size: 0.9375rem; font-weight: 500;
    color: #1e63aa; min-height: 1.5em;
    transition: opacity 0.4s ease; margin-bottom: 1rem;
  }
  .dark .review-stage-text { color: #7cc0f2; }
  .review-progress-track {
    height: 4px; border-radius: 9999px;
    background: rgba(15,23,42,0.07); overflow: hidden;
  }
  .dark .review-progress-track { background: rgba(255,255,255,0.07); }
  /* ===== Confirmation screen ===== */
  .confirm-ring {
    width: 5.5rem; height: 5.5rem; border-radius: 50%;
    background: rgba(30,99,170,0.08); border: 1px solid rgba(30,99,170,0.18);
    display: flex; align-items: center; justify-content: center;
    animation: confirmRingPulse 2.8s ease-in-out infinite;
  }
  html:not(.dark) .confirm-ring { background: rgba(30,99,170,0.06); border-color: rgba(30,99,170,0.13); }
  @keyframes confirmRingPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(30,99,170,0.22); }
    50%       { box-shadow: 0 0 0 16px rgba(30,99,170,0); }
  }
  .confirm-core {
    width: 3.25rem; height: 3.25rem; border-radius: 50%;
    background: linear-gradient(135deg, #1e63aa 0%, #3b8fd9 60%, #7cc0f2 100%);
    display: flex; align-items: center; justify-content: center;
  }
  .confirm-email-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin: 1.25rem auto 0;
    padding: 0.5625rem 1rem; border-radius: 9999px;
    background: rgba(30,99,170,0.06); border: 1px solid rgba(30,99,170,0.14);
  }
  .confirm-what-card {
    border-radius: 1.25rem; padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
  }
  html:not(.dark) .confirm-what-card { background: rgba(255,255,255,0.8); border-color: rgba(15,23,42,0.07); }
  .confirm-what-row { display: flex; gap: 0.875rem; align-items: flex-start; }
  .confirm-what-row + .confirm-what-row {
    margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.06);
  }
  html:not(.dark) .confirm-what-row + .confirm-what-row { border-top-color: rgba(15,23,42,0.06); }
  .confirm-what-icon {
    width: 2rem; height: 2rem; border-radius: 0.5rem; flex-shrink: 0;
    background: rgba(30,99,170,0.14); display: flex; align-items: center; justify-content: center;
    color: #3b8fd9;
  }
  .dark .confirm-what-icon { background: rgba(30,99,170,0.22); }
  .confirm-what-label { font-size: 0.875rem; font-weight: 600; color: #0f172a; line-height: 1.3; }
  .dark .confirm-what-label { color: #f1f5f9; }
  .confirm-what-sub { font-size: 0.8125rem; color: #64748b; margin-top: 0.2rem; }
  .dark .confirm-what-sub { color: rgba(148,163,184,0.6); }

div#pre-form-area {
}