.material-symbols-outlined.portal-icon {
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
}
.material-symbols-outlined.portal-icon.filled {
  font-variation-settings: "FILL" 1, "wght" 300, "GRAD" 0, "opsz" 24;
}
.bg-grid {
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.orb-mint {
  background: radial-gradient(circle, rgba(164, 247, 145, 0.15) 0%, rgba(164, 247, 145, 0) 70%);
}
.orb-lavender {
  background: radial-gradient(circle, rgba(226, 224, 252, 0.2) 0%, rgba(226, 224, 252, 0) 70%);
}
.portal-nav-active {
  color: var(--tw-color-primary, #1e6d19);
  font-weight: 700;
  border-bottom: 2px solid currentColor;
  padding-bottom: 4px;
}

.portal-stat-delta {
  display: inline-block;
  font-size: 0.75rem;
  line-height: 1.25rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  margin-bottom: 0.25rem;
  white-space: nowrap;
}

.portal-stat-delta--green {
  color: #1a5f16;
  background: rgba(164, 247, 145, 0.45);
}

html.dark .portal-stat-delta--green {
  color: #b8f5b4;
  background: rgba(46, 125, 50, 0.45);
  border: 1px solid rgba(158, 240, 163, 0.35);
}

.portal-stat-delta--amber {
  color: #b45309;
  background: #fff3e0;
}

html.dark .portal-stat-delta--amber {
  color: #fcd34d;
  background: rgba(245, 165, 42, 0.22);
  border: 1px solid rgba(251, 191, 36, 0.4);
}

/* ── Product pages (PulseCheck, IdeaForge) ───────────────────────────── */
.portal-product-nav {
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
html.dark .portal-product-nav {
  background: rgba(20, 23, 26, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.portal-product-shell {
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 40%, #f4f7fb 100%);
}
html.dark .portal-product-shell {
  background: linear-gradient(180deg, #0c0e10 0%, #12161a 45%, #0c0e10 100%);
}

.portal-product-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 40px rgba(26, 26, 46, 0.06);
}
html.dark .portal-product-card {
  background: #1d2125;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.portal-pulse-hero {
  background: linear-gradient(135deg, #eef4ff 0%, #f0f7ff 50%, #e8f5e9 100%);
  border: 1px solid rgba(23, 86, 197, 0.15);
}
html.dark .portal-pulse-hero {
  background: linear-gradient(135deg, #0f1a28 0%, #121f2e 50%, #0f1f14 100%);
  border-color: rgba(77, 143, 224, 0.25);
}

.portal-idea-hero {
  background: linear-gradient(135deg, #eef8f6 0%, #eef4ff 55%, #f0f9ff 100%);
  border: 1px solid rgba(14, 148, 136, 0.2);
}
html.dark .portal-idea-hero {
  background: linear-gradient(135deg, #0f1f1c 0%, #0f1a28 55%, #121f2e 100%);
  border-color: rgba(0, 201, 167, 0.22);
}

.portal-field {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  background: #f7f9fc;
  color: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.portal-field:focus {
  border-color: #1756c5;
  box-shadow: 0 0 0 3px rgba(23, 86, 197, 0.15);
}
html.dark .portal-field {
  background: #14171a;
  border-color: rgba(255, 255, 255, 0.12);
  color: #eff1f4;
}
html.dark .portal-field:focus {
  border-color: #4d8fe0;
  box-shadow: 0 0 0 3px rgba(77, 143, 224, 0.2);
}

.pulse-opt {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: border-color 0.15s, background 0.15s;
  color: inherit;
}
.pulse-opt:hover {
  border-color: #1756c5;
  background: #f0f5ff;
}
.pulse-opt.is-selected {
  border-color: #1756c5;
  background: #eef4ff;
}
.pulse-opt.is-selected .pulse-opt-dot {
  border-color: #1756c5;
  background: #1756c5;
  box-shadow: inset 0 0 0 2px #eef4ff;
}
html.dark .pulse-opt {
  border-color: rgba(255, 255, 255, 0.12);
  color: #eff1f4;
}
html.dark .pulse-opt:hover,
html.dark .pulse-opt.is-selected {
  border-color: #4d8fe0;
  background: rgba(23, 86, 197, 0.18);
}
html.dark .pulse-opt.is-selected .pulse-opt-dot {
  border-color: #4d8fe0;
  background: #4d8fe0;
  box-shadow: inset 0 0 0 2px rgba(23, 86, 197, 0.35);
}

.idea-chip {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  color: inherit;
}
.idea-chip:hover {
  border-color: #0e9488;
  background: #eef9f7;
}
.idea-chip.is-selected {
  border-color: #0e9488;
  background: rgba(14, 148, 136, 0.1);
  font-weight: 600;
}
html.dark .idea-chip {
  border-color: rgba(255, 255, 255, 0.14);
  color: #eff1f4;
}
html.dark .idea-chip:hover,
html.dark .idea-chip.is-selected {
  border-color: #5eead4;
  background: rgba(14, 148, 136, 0.16);
}

.portal-sample-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 4px 16px rgba(26, 26, 46, 0.04);
}
html.dark .portal-sample-card {
  background: #1d2125;
  border-color: rgba(255, 255, 255, 0.08);
}

.portal-badge-blue {
  background: #eef4ff;
  color: #1756c5;
}
html.dark .portal-badge-blue {
  background: rgba(23, 86, 197, 0.2);
  color: #93c5fd;
}

.portal-badge-teal {
  background: rgba(14, 148, 136, 0.1);
  color: #0e9488;
  border: 1px solid rgba(14, 148, 136, 0.28);
}
html.dark .portal-badge-teal {
  background: rgba(0, 201, 167, 0.12);
  color: #5eead4;
  border-color: rgba(0, 201, 167, 0.28);
}

.portal-badge-amber {
  background: rgba(255, 255, 255, 0.65);
  color: #b45309;
  border: 1px solid rgba(245, 165, 42, 0.35);
}
html.dark .portal-badge-amber {
  background: rgba(245, 165, 42, 0.15);
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.35);
}

.portal-summary-block {
  border-left: 4px solid #f5a52a;
  background: #f7f9fc;
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1rem;
}
html.dark .portal-summary-block {
  background: #14171a;
  border-left-color: #fbbf24;
}

/* ── Helpline (blue / mint — matches portal) ─────────────────────────── */
.portal-shell-grid--helpline {
  align-items: stretch;
  padding-top: 0.5rem;
  min-height: calc(100vh - 68px - 2rem);
}
.hl-center {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 68px - 2.5rem);
  height: calc(100vh - 68px - 2.5rem);
  min-width: 0;
}
@media (max-width: 1099px) {
  .hl-center {
    height: auto;
    min-height: calc(100vh - 68px - 2rem);
  }
  .hl-hero--rail {
    display: none;
  }
  .hl-hero--mobile {
    display: block;
    margin-bottom: 0.75rem;
  }
  .hl-chat-card {
    flex: 1;
    min-height: calc(100vh - 68px - 14rem);
    max-height: none;
  }
}
@media (min-width: 1100px) {
  .hl-hero--mobile {
    display: none;
  }
  .hl-hero--rail {
    display: block;
    margin-bottom: 1rem;
  }
}
@media (min-width: 1100px) {
  .portal-shell-grid.portal-shell-grid--helpline {
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr) minmax(260px, 300px);
    gap: 1.25rem;
  }
  .portal-shell-grid--helpline .portal-shell-center {
    max-width: none;
  }
}
.hl-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b2d5c 0%, #1756c5 52%, #0e9488 100%);
  border-radius: 1.25rem;
  padding: 1.25rem 1.35rem;
  color: #fff;
}
.hl-hero--rail {
  padding: 1rem 1.125rem;
}
.hl-hero--rail::after {
  width: 80px;
  height: 80px;
  right: -16px;
  top: -20px;
}
.hl-hero::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -32px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}
.hl-hero-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b8e8df;
  margin-bottom: 6px;
}
.hl-persona {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px);
}
.hl-persona--rail {
  margin-bottom: 1rem;
}
.hl-rail-family {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hl-rail-family .hl-rail-card {
  margin-top: 0 !important;
}
.hl-rail-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.hl-rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hl-rail-list li {
  display: flex;
  align-items: flex-start;
  gap: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #6b7a8f;
}
html.dark .hl-rail-list li {
  color: #c0cab8;
}
.hl-rail-list .portal-shell-bullet-icon {
  flex-shrink: 0;
  margin-top: 1px;
}
@media (max-width: 1099px) {
  .hl-persona--rail {
    display: none !important;
  }
  .hl-persona--mobile {
    display: flex !important;
    margin-bottom: 0.75rem;
  }
}
@media (min-width: 1100px) {
  .hl-persona--mobile {
    display: none !important;
  }
}
html.dark .hl-persona {
  background: rgba(29, 33, 37, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
}
.hl-persona-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #1756c5, #00c9a7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.hl-chat-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1.25rem;
  box-shadow: 0 12px 40px rgba(11, 29, 58, 0.08);
  overflow: hidden;
}
html.dark .hl-chat-card {
  background: rgba(29, 33, 37, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.hl-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(23, 86, 197, 0.04);
  flex-shrink: 0;
}
html.dark .hl-chat-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(91, 155, 255, 0.06);
}
.hl-chat-header-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #1756c5, #00c9a7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hl-chat-header-icon .material-symbols-outlined {
  font-size: 1.25rem;
}
.hl-chat-header-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a2332;
}
html.dark .hl-chat-header-title {
  color: #eff1f4;
}
.hl-chat-header-sub {
  font-size: 0.75rem;
  color: #6b7a8f;
  margin-top: 2px;
}
html.dark .hl-chat-header-sub {
  color: #9aa8bc;
}
.hl-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.25rem 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 86, 197, 0.25) transparent;
}
.hl-messages::-webkit-scrollbar {
  width: 6px;
}
.hl-messages::-webkit-scrollbar-thumb {
  background: rgba(23, 86, 197, 0.22);
  border-radius: 999px;
}
html.dark .hl-messages::-webkit-scrollbar-thumb {
  background: rgba(91, 155, 255, 0.28);
}
.hl-chat-footer {
  flex-shrink: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(248, 250, 252, 0.98);
}
html.dark .hl-chat-footer {
  background: #14171a;
  border-top-color: rgba(255, 255, 255, 0.08);
}
.hl-msg {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  max-width: 88%;
}
.hl-msg.user {
  margin-left: auto;
  flex-direction: row-reverse;
}
.hl-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(135deg, #1756c5, #2e8ef7);
  color: #fff;
}
.hl-msg-avatar.bot {
  background: rgba(23, 86, 197, 0.1);
  color: #1756c5;
  border: 1px solid rgba(23, 86, 197, 0.15);
}
html.dark .hl-msg-avatar.bot {
  background: rgba(91, 155, 255, 0.12);
  color: #93c5fd;
  border-color: rgba(91, 155, 255, 0.2);
}
.hl-bubble {
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
}
.hl-bubble.bot {
  background: #f4f7fb;
  color: inherit;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}
html.dark .hl-bubble.bot {
  background: #14171a;
  border-color: rgba(255, 255, 255, 0.06);
}
.hl-bubble.user {
  background: linear-gradient(135deg, #1756c5, #1a6fd4);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 14px rgba(23, 86, 197, 0.22);
}
.hl-msg-time {
  font-size: 10px;
  color: #8a9bb0;
  margin-top: 4px;
}
html.dark .hl-msg-time {
  color: #8a9488;
}
.hl-msg.user .hl-msg-time {
  text-align: right;
}
.hl-typing {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
}
.hl-typing-dots {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  background: #f4f7fb;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
}
html.dark .hl-typing-dots {
  background: #14171a;
}
.hl-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1756c5;
  opacity: 0.35;
  animation: hl-dot 1.2s ease-in-out infinite;
}
.hl-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.hl-typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes hl-dot {
  0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
.hl-chips {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem 0;
  flex-shrink: 0;
  max-height: 6.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 86, 197, 0.25) transparent;
}
.hl-chips::-webkit-scrollbar {
  width: 5px;
}
.hl-chips::-webkit-scrollbar-thumb {
  background: rgba(23, 86, 197, 0.22);
  border-radius: 999px;
}
html.dark .hl-chips::-webkit-scrollbar-thumb {
  background: rgba(91, 155, 255, 0.28);
}
.hl-chips:empty {
  display: none;
  padding: 0;
}
.hl-chip {
  padding: 6px 12px;
  background: rgba(23, 86, 197, 0.08);
  border: 1px solid rgba(23, 86, 197, 0.18);
  color: #1756c5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
  width: 100%;
  text-align: left;
  line-height: 1.4;
}
.hl-chip:hover {
  background: rgba(23, 86, 197, 0.14);
  border-color: rgba(23, 86, 197, 0.35);
}
html.dark .hl-chip {
  background: rgba(91, 155, 255, 0.1);
  color: #93c5fd;
  border-color: rgba(91, 155, 255, 0.25);
}
.hl-composer {
  padding: 12px 16px 14px;
  background: transparent;
  flex-shrink: 0;
}
html.dark .hl-composer {
  background: transparent;
}
.hl-composer-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
#chat-input {
  flex: 1;
  width: 100%;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 14px;
  line-height: 1.5;
  outline: none;
  min-height: 48px;
  max-height: 140px;
  resize: none;
  background: #fff;
  color: #1a2332;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
html.dark #chat-input {
  background: #1d2125;
  border-color: rgba(255, 255, 255, 0.16);
  color: #eff1f4;
}
#chat-input:focus {
  border-color: #1756c5;
  box-shadow: 0 0 0 3px rgba(23, 86, 197, 0.12);
}
.hl-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: none;
  background: #e8ecf2;
  color: #8a9bb0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
html.dark .hl-send-btn {
  background: #2a2f34;
  color: #9aa8bc;
}
.hl-send-btn.ready {
  background: linear-gradient(135deg, #1756c5, #00a896);
  color: #fff;
  box-shadow: 0 4px 14px rgba(23, 86, 197, 0.25);
}
.hl-send-btn.ready:hover {
  transform: scale(1.03);
}
.hl-composer-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #8a9bb0;
  margin-top: 8px;
}
.hl-composer-hint .material-symbols-outlined {
  font-size: 14px;
}
.hl-support-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1756c5;
}
.hl-support-link:hover {
  text-decoration: underline;
}
html.dark .hl-support-link {
  color: #93c5fd;
}
.hl-urgent-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hl-urgent-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(23, 86, 197, 0.05);
  border: 1px solid rgba(23, 86, 197, 0.1);
}
html.dark .hl-urgent-contact-row {
  background: rgba(91, 155, 255, 0.08);
  border-color: rgba(91, 155, 255, 0.15);
}
.hl-urgent-contact-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: rgba(23, 86, 197, 0.12);
  color: #1756c5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hl-urgent-contact-icon .material-symbols-outlined {
  font-size: 1.125rem;
}
.hl-urgent-contact-icon--mail {
  background: rgba(0, 201, 167, 0.14);
  color: #0e9488;
}
html.dark .hl-urgent-contact-icon {
  background: rgba(91, 155, 255, 0.15);
  color: #93c5fd;
}
html.dark .hl-urgent-contact-icon--mail {
  background: rgba(0, 201, 167, 0.18);
  color: #5eead4;
}
.hl-urgent-contact-merged {
  gap: 12px;
}
.hl-urgent-mail-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: rgba(0, 201, 167, 0.14);
  color: #0e9488;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s, opacity 0.15s;
}
.hl-urgent-mail-btn .material-symbols-outlined {
  font-size: 1.25rem;
}
html.dark .hl-urgent-mail-btn {
  background: rgba(0, 201, 167, 0.18);
  color: #5eead4;
}
.hl-urgent-mail-btn:not(.hl-urgent-email-link--disabled):hover {
  background: rgba(0, 201, 167, 0.26);
  transform: scale(1.04);
}
html.dark .hl-urgent-mail-btn:not(.hl-urgent-email-link--disabled):hover {
  background: rgba(0, 201, 167, 0.3);
}
.hl-urgent-email-link--disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
.hl-status-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
}
html.dark .hl-status-pill {
  background: rgba(245, 165, 42, 0.15);
  color: #fcd34d;
}
.hl-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  padding-left: 12px;
}
.hl-timeline::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(0, 0, 0, 0.08);
}
html.dark .hl-timeline::before {
  background: rgba(255, 255, 255, 0.1);
}
.hl-timeline .timeline-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hl-timeline .timeline-step::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  border: 2px solid #fff;
}
html.dark .hl-timeline .timeline-step::before {
  border-color: #1d2125;
  background: #4b5563;
}
.hl-timeline .timeline-step.done::before,
.hl-timeline .timeline-step.active::before {
  background: #00c9a7;
  box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.2);
}
.hl-timeline .timeline-day {
  font-size: 11px;
  color: #8a9bb0;
  font-weight: 600;
  min-width: 42px;
}
.hl-timeline .timeline-name {
  font-size: 13px;
  color: inherit;
}
.hl-btn-primary {
  background: linear-gradient(135deg, #1756c5, #0e9488);
  color: #fff;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  transition: opacity 0.15s;
}
.hl-btn-primary:hover {
  opacity: 0.92;
}
.hl-toggle input:checked + .portal-toggle-slider {
  background: #1756c5;
}
html.dark .hl-toggle input:checked + .portal-toggle-slider {
  background: #2e8ef7;
}

.portal-toggle {
  position: relative;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}
.portal-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.portal-toggle-slider {
  position: absolute;
  inset: 0;
  background: #d8dadd;
  border-radius: 9999px;
  transition: background 0.2s;
  cursor: pointer;
}
.portal-toggle-slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.portal-toggle input:checked + .portal-toggle-slider {
  background: #1756c5;
}
.portal-toggle input:checked + .portal-toggle-slider::before {
  transform: translateX(20px);
}
html.dark .portal-toggle-slider {
  background: #3a3f44;
}
html.dark .portal-toggle input:checked + .portal-toggle-slider {
  background: #2e8ef7;
}

/* ── Premium login card (single centered card) ───────────────────────── */
.portal-card-enter {
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  animation: portal-card-in 480ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
@keyframes portal-card-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .portal-card-enter {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.portal-input {
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.portal-btn-primary {
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), opacity 160ms ease, box-shadow 160ms ease;
}
.portal-btn-primary:active {
  transform: scale(0.97);
}

.portal-step {
  transition: opacity 200ms cubic-bezier(0.23, 1, 0.32, 1), transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
.portal-step[data-leaving] {
  opacity: 0;
  transform: translateY(6px);
}

/* ── Login background: aurora orbs + grain + cursor glow ─────────────── */
.portal-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.portal-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  will-change: transform;
}
html.dark .portal-orb {
  filter: blur(90px);
}

.portal-orb--mint {
  width: 560px;
  height: 560px;
  top: -12%;
  left: -8%;
  animation: portal-drift-a 30s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
  background: radial-gradient(circle, rgba(94, 209, 74, 0.42) 0%, rgba(94, 209, 74, 0) 70%);
}
html.dark .portal-orb--mint {
  background: radial-gradient(circle, rgba(164, 247, 145, 0.16) 0%, rgba(164, 247, 145, 0) 70%);
}

.portal-orb--lavender {
  width: 520px;
  height: 520px;
  bottom: -16%;
  right: -10%;
  animation: portal-drift-b 36s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
  background: radial-gradient(circle, rgba(151, 124, 255, 0.42) 0%, rgba(151, 124, 255, 0) 70%);
}
html.dark .portal-orb--lavender {
  background: radial-gradient(circle, rgba(226, 224, 252, 0.22) 0%, rgba(226, 224, 252, 0) 70%);
}

.portal-orb--amber {
  width: 380px;
  height: 380px;
  top: 6%;
  right: 8%;
  animation: portal-drift-c 42s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
  background: radial-gradient(circle, rgba(245, 165, 42, 0.38) 0%, rgba(245, 165, 42, 0) 70%);
}
html.dark .portal-orb--amber {
  background: radial-gradient(circle, rgba(245, 165, 42, 0.18) 0%, rgba(245, 165, 42, 0) 70%);
}

.portal-orb--azure {
  width: 420px;
  height: 420px;
  bottom: 4%;
  left: 4%;
  animation: portal-drift-d 38s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
  background: radial-gradient(circle, rgba(38, 112, 235, 0.34) 0%, rgba(38, 112, 235, 0) 70%);
}
html.dark .portal-orb--azure {
  background: radial-gradient(circle, rgba(23, 86, 197, 0.16) 0%, rgba(23, 86, 197, 0) 70%);
}

@keyframes portal-drift-a {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 50px) scale(1.12); }
}
@keyframes portal-drift-b {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, -60px) scale(1.1); }
}
@keyframes portal-drift-c {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 40px) scale(0.9); }
}
@keyframes portal-drift-d {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(45px, -35px) scale(1.08); }
}

.portal-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.085;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxNjAnIGhlaWdodD0nMTYwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC44NScgbnVtT2N0YXZlcz0nMicgc3RpdGNoVGlsZXM9J3N0aXRjaCcvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPScxMDAlJyBoZWlnaHQ9JzEwMCUnIGZpbHRlcj0ndXJsKCNuKScvPjwvc3ZnPg==");
  background-size: 160px 160px;
}
html.dark .portal-grain {
  opacity: 0.09;
  mix-blend-mode: soft-light;
}

.portal-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 109, 25, 0.24) 0%, rgba(30, 109, 25, 0) 70%);
  filter: blur(6px);
  pointer-events: none;
  z-index: 1;
  will-change: transform;
  animation: portal-glow-bounce 24s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
html.dark .portal-glow {
  background: radial-gradient(circle, rgba(137, 218, 120, 0.22) 0%, rgba(137, 218, 120, 0) 70%);
}

@keyframes portal-glow-bounce {
  0% { transform: translate(-50%, -50%) translate(-28vw, -24vh); }
  18% { transform: translate(-50%, -50%) translate(27vw, -26vh); }
  37% { transform: translate(-50%, -50%) translate(30vw, 22vh); }
  55% { transform: translate(-50%, -50%) translate(-12vw, 30vh); }
  72% { transform: translate(-50%, -50%) translate(-32vw, 4vh); }
  88% { transform: translate(-50%, -50%) translate(6vw, -12vh); }
  100% { transform: translate(-50%, -50%) translate(-28vw, -24vh); }
}

@media (prefers-reduced-motion: reduce) {
  .portal-orb {
    animation: none !important;
  }
  .portal-glow {
    animation: none !important;
    transform: translate(-50%, -50%);
  }
}

/* ── Shared product shell (onboarding, PulseCheck, IdeaForge) ───────── */
.onboard-main,
.portal-shell-main {
  min-height: calc(100vh - 68px);
}
.onboard-shell,
.portal-shell-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}
@media (min-width: 1100px) {
  .onboard-shell,
  .portal-shell-grid {
    grid-template-columns: minmax(220px, 1fr) minmax(380px, 520px) minmax(220px, 1fr);
    gap: 2rem;
    padding-top: 2rem;
  }
}
.onboard-rail,
.portal-shell-rail {
  display: none;
}
@media (min-width: 1100px) {
  .onboard-rail,
  .portal-shell-rail {
    display: block;
  }
}
.onboard-rail-card,
.portal-shell-rail-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1.25rem;
  padding: 1.25rem 1.35rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(11, 29, 58, 0.06);
}
html.dark .onboard-rail-card,
html.dark .portal-shell-rail-card {
  background: rgba(29, 33, 37, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
}
.onboard-rail-card--muted,
.portal-shell-rail-card--muted {
  background: rgba(255, 255, 255, 0.45);
}
html.dark .onboard-rail-card--muted,
html.dark .portal-shell-rail-card--muted {
  background: rgba(20, 23, 26, 0.6);
}
.onboard-center,
.portal-shell-center {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}
@media (min-width: 1100px) {
  .onboard-center,
  .portal-shell-center {
    max-width: none;
    margin: 0;
  }
}
.portal-shell-bullet-icon,
.onboard-bullet-icon {
  font-size: 18px !important;
  vertical-align: -4px;
  margin-right: 6px;
}
.portal-shell-dim-grid,
.onboard-dim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #5d6b82;
}
html.dark .portal-shell-dim-grid,
html.dark .onboard-dim-grid {
  color: #9aa8bc;
}
.portal-shell-checklist li,
.onboard-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8a9bb0;
  transition: color 0.15s;
}
.portal-shell-checklist li.is-done,
.onboard-checklist li.is-done {
  color: #1a5f16;
  font-weight: 600;
}
html.dark .portal-shell-checklist li.is-done,
html.dark .onboard-checklist li.is-done {
  color: #a4f791;
}
.portal-shell-checklist li.is-active,
.onboard-checklist li.is-active {
  color: #1756c5;
  font-weight: 700;
}
html.dark .portal-shell-checklist li.is-active,
html.dark .onboard-checklist li.is-active {
  color: #93c5fd;
}
.portal-shell-check-icon,
.onboard-check-icon {
  width: 18px;
  text-align: center;
  font-size: 12px;
  flex-shrink: 0;
}
.portal-shell-preview-list div {
  margin-bottom: 12px;
}
.portal-shell-preview-list dt {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a9bb0;
  margin-bottom: 2px;
}
.portal-shell-preview-list dd {
  font-size: 13px;
  font-weight: 600;
  color: inherit;
  word-break: break-word;
  line-height: 1.45;
}

/* ── Onboarding ─────────────────────────────────────────────────────── */
.onboard-main {
  min-height: calc(100vh - 68px);
}
.onboard-shell {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}
@media (min-width: 1100px) {
  .onboard-shell {
    grid-template-columns: minmax(220px, 1fr) minmax(380px, 520px) minmax(220px, 1fr);
    gap: 2rem;
    padding-top: 2rem;
  }
}
.onboard-rail {
  display: none;
}
@media (min-width: 1100px) {
  .onboard-rail {
    display: block;
  }
}
.onboard-rail-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1.25rem;
  padding: 1.25rem 1.35rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(11, 29, 58, 0.06);
}
html.dark .onboard-rail-card {
  background: rgba(29, 33, 37, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
}
.onboard-rail-card--muted {
  background: rgba(255, 255, 255, 0.45);
}
html.dark .onboard-rail-card--muted {
  background: rgba(20, 23, 26, 0.6);
}
.onboard-bullet-icon {
  color: #1756c5;
}
html.dark .onboard-bullet-icon {
  color: #5b9bff;
}
.onboard-center {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}
@media (min-width: 1100px) {
  .onboard-center {
    max-width: none;
    margin: 0;
  }
}
.onboard-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #f8fafc;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
html.dark .onboard-input {
  background: #14171a;
  border-color: rgba(255, 255, 255, 0.12);
  color: #eff1f4;
}
.onboard-input:focus {
  border-color: #1756c5;
  box-shadow: 0 0 0 3px rgba(23, 86, 197, 0.12);
}
.onboard-other {
  margin-top: 10px;
}
.onboard-other .onboard-input {
  margin-bottom: 4px;
}
.onboard-char-count {
  display: block;
  text-align: right;
  font-size: 11px;
  font-weight: 600;
  color: #8a9bb0;
}
.onboard-char-count.is-near-limit {
  color: #e84c3d;
}
.onboard-preview-list div {
  margin-bottom: 12px;
}
.onboard-preview-list dt {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a9bb0;
  margin-bottom: 2px;
}
.onboard-preview-list dd {
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  word-break: break-word;
}
.onboard-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8a9bb0;
  transition: color 0.15s;
}
.onboard-checklist li.is-done {
  color: #1a5f16;
  font-weight: 600;
}
html.dark .onboard-checklist li.is-done {
  color: #a4f791;
}
.onboard-check-icon {
  width: 18px;
  text-align: center;
  font-size: 12px;
  flex-shrink: 0;
}
.portal-onboard-hero {
  background: linear-gradient(135deg, rgba(23, 86, 197, 0.08), rgba(0, 201, 167, 0.06));
  border: 1px solid rgba(23, 86, 197, 0.12);
}
html.dark .portal-onboard-hero {
  background: linear-gradient(135deg, rgba(23, 86, 197, 0.18), rgba(0, 201, 167, 0.08));
  border-color: rgba(255, 255, 255, 0.08);
}
.onboard-chip {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  background: #f8fafc;
  color: #3d506a;
  transition: 0.18s;
}
html.dark .onboard-chip {
  background: #1a2740;
  border-color: rgba(255, 255, 255, 0.1);
  color: #b8c6e0;
}
.onboard-chip:hover {
  border-color: #1756c5;
  color: #1756c5;
}
.onboard-chip.is-selected {
  background: #1756c5;
  border-color: #1756c5;
  color: #fff;
  box-shadow: 0 6px 20px rgba(23, 86, 197, 0.25);
}

/* ── PulseCheck (Appendix A inspired) ───────────────────────────────── */
.pulse-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1d3a 0%, #1756c5 100%);
  border-radius: 1.25rem;
  padding: 1.5rem 1.75rem;
  color: #fff;
  margin-bottom: 1.25rem;
}
.pulse-hero--compact {
  padding: 0.85rem 1.15rem;
  margin-bottom: 0.65rem;
  border-radius: 1rem;
}
.pulse-hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
}
.pulse-hero-copy {
  min-width: 0;
  flex: 1 1 200px;
}
.pulse-hero-title {
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
@media (min-width: 640px) {
  .pulse-hero-title {
    font-size: 1.15rem;
  }
}
.pulse-hero-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  margin: 2px 0 0;
}
.pulse-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}
.pulse-hero-pill {
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 4px 10px;
  color: #fff;
  white-space: nowrap;
}
@media (min-width: 1100px) {
  .portal-shell-grid.portal-shell-grid--pulse {
    grid-template-columns: minmax(240px, 300px) minmax(600px, 860px);
    justify-content: center;
    gap: 2rem;
    padding-top: 1.25rem;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
  }
}
.portal-shell-grid--pulse .portal-shell-center {
  max-width: min(100%, 860px);
}
/* PulseCheck shell — scales up on large / ultrawide displays */
.pulse-shell-wrap {
  width: 100%;
  max-width: 1280px;
}
@media (min-width: 1440px) {
  .pulse-shell-wrap {
    max-width: 1420px;
  }
  .portal-shell-grid.portal-shell-grid--pulse {
    grid-template-columns: minmax(260px, 340px) minmax(680px, 940px);
    max-width: 1360px;
    gap: 2.25rem;
  }
  .portal-shell-grid--pulse .portal-shell-center {
    max-width: min(100%, 940px);
  }
  .pulse-q-text {
    font-size: 1.42rem;
  }
}
@media (min-width: 1680px) {
  .pulse-shell-wrap {
    max-width: 1580px;
  }
  .portal-shell-grid.portal-shell-grid--pulse {
    grid-template-columns: minmax(280px, 360px) minmax(720px, 1020px);
    max-width: 1520px;
    gap: 2.5rem;
  }
  .portal-shell-grid--pulse .portal-shell-center {
    max-width: min(100%, 1020px);
  }
  .pulse-q-text {
    font-size: 1.48rem;
  }
  #pulse-card > div {
    padding: 2rem 2.5rem;
  }
}
@media (min-width: 1920px) {
  .pulse-shell-wrap {
    max-width: 1720px;
  }
  .portal-shell-grid.portal-shell-grid--pulse {
    grid-template-columns: minmax(300px, 380px) minmax(760px, 1100px);
    max-width: 1640px;
  }
  .portal-shell-grid--pulse .portal-shell-center {
    max-width: min(100%, 1100px);
  }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .portal-shell-grid--pulse .portal-shell-center {
    max-width: min(100%, 640px);
    margin-left: auto;
    margin-right: auto;
  }
}
/* PulseCheck completion — single centered column, full card width */
.portal-shell-grid.portal-shell-grid--pulse.pulse-shell--complete {
  grid-template-columns: 1fr;
  justify-items: center;
  max-width: min(100%, 720px);
  margin-left: auto;
  margin-right: auto;
}
.portal-shell-grid--pulse.pulse-shell--complete .portal-shell-center {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
}
#pulse-complete {
  width: 100%;
  text-align: center;
}
.pulse-complete-inner {
  max-width: 36rem;
  margin: 0 auto;
  padding: 0.5rem 0.25rem;
}
.pulse-complete-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 1rem;
}
@media (min-width: 1100px) {
  .portal-shell-grid.portal-shell-grid--pulse.pulse-shell--complete {
    max-width: min(100%, 860px);
  }
  .pulse-complete-inner {
    max-width: 40rem;
    padding: 1rem 0.5rem;
  }
}
@media (min-width: 1440px) {
  .portal-shell-grid.portal-shell-grid--pulse.pulse-shell--complete {
    max-width: min(100%, 940px);
  }
}
@media (min-width: 1680px) {
  .portal-shell-grid.portal-shell-grid--pulse.pulse-shell--complete {
    max-width: min(100%, 1020px);
  }
}
@media (min-width: 1920px) {
  .portal-shell-grid.portal-shell-grid--pulse.pulse-shell--complete {
    max-width: min(100%, 1100px);
  }
}
.pulse-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(0, 201, 167, 0.15);
  pointer-events: none;
}
.pulse-hero--compact::after {
  width: 100px;
  height: 100px;
  right: -20px;
  top: -20px;
}
.pulse-hero-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00c9a7;
  margin-bottom: 4px;
}
.pulse-hero--compact .pulse-hero-eyebrow {
  margin-bottom: 2px;
}
.pulse-dim-track {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.pulse-dim-dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0.45;
  transition: 0.2s;
}
.pulse-dim-dot.is-done {
  opacity: 1;
  background: rgba(0, 201, 167, 0.25);
  border-color: rgba(0, 201, 167, 0.5);
}
.pulse-dim-dot.is-active {
  opacity: 1;
  transform: scale(1.08);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.pulse-stage {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1.25rem;
  box-shadow: 0 12px 40px rgba(11, 29, 58, 0.08);
  overflow: hidden;
}
html.dark .pulse-stage {
  background: #1d2125;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.pulse-stage-accent {
  height: 4px;
  background: linear-gradient(90deg, #1756c5, #00c9a7);
}
.pulse-d1 .pulse-stage-accent { background: linear-gradient(90deg, #1756c5, #2e8ef7); }
.pulse-d2 .pulse-stage-accent { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.pulse-d3 .pulse-stage-accent { background: linear-gradient(90deg, #0e9488, #2dd4bf); }
.pulse-d4 .pulse-stage-accent { background: linear-gradient(90deg, #f5a52a, #fcd34d); }
.pulse-d5 .pulse-stage-accent { background: linear-gradient(90deg, #e84c3d, #fb7185); }
.pulse-d6 .pulse-stage-accent { background: linear-gradient(90deg, #059669, #34d399); }
.pulse-d7 .pulse-stage-accent { background: linear-gradient(90deg, #0891b2, #22d3ee); }
.pulse-d8 .pulse-stage-accent { background: linear-gradient(90deg, #6366f1, #818cf8); }
.pulse-d9 .pulse-stage-accent { background: linear-gradient(90deg, #db2777, #f472b6); }
.pulse-d-intent .pulse-stage-accent { background: linear-gradient(90deg, #1e6d19, #a4f791); }

.pulse-dim-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(23, 86, 197, 0.1);
  color: #1756c5;
}
html.dark .pulse-dim-badge {
  background: rgba(91, 155, 255, 0.15);
  color: #93c5fd;
}

.pulse-q-text {
  font-family: Newsreader, Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pulse-opt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 640px) {
  .pulse-opt-grid { grid-template-columns: 1fr; }
}
.pulse-opt {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  background: #f8faff;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  color: #3d506a;
  transition: 0.18s;
  cursor: pointer;
}
html.dark .pulse-opt {
  background: #182642;
  border-color: rgba(255, 255, 255, 0.1);
  color: #b8c6e0;
}
.pulse-opt:hover {
  border-color: #1756c5;
  background: #eef4ff;
}
html.dark .pulse-opt:hover {
  border-color: #5b9bff;
  background: #1f3050;
}
.pulse-opt.is-selected {
  border-color: #1756c5;
  background: #eef4ff;
  box-shadow: 0 4px 16px rgba(23, 86, 197, 0.15);
}
html.dark .pulse-opt.is-selected {
  border-color: #5b9bff;
  background: #1a3058;
}
.pulse-opt-letter {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: #1756c5;
  margin-top: 1px;
}
.pulse-d2 .pulse-opt-letter { background: #7c3aed; }
.pulse-d3 .pulse-opt-letter { background: #0e9488; }
.pulse-d4 .pulse-opt-letter { background: #f5a52a; }
.pulse-d5 .pulse-opt-letter { background: #e84c3d; }
.pulse-d6 .pulse-opt-letter { background: #059669; }
.pulse-d7 .pulse-opt-letter { background: #0891b2; }
.pulse-d8 .pulse-opt-letter { background: #6366f1; }
.pulse-d9 .pulse-opt-letter { background: #db2777; }

.pulse-open-field {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  background: #f8faff;
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
  outline: none;
}
html.dark .pulse-open-field {
  background: #14171a;
  border-color: rgba(255, 255, 255, 0.12);
  color: #eff1f4;
}
.pulse-open-field:focus {
  outline: none;
  border-color: #1756c5;
  box-shadow: 0 0 0 3px rgba(23, 86, 197, 0.15);
}
.pulse-starter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pulse-starter-chip {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.7);
  color: #2a3544;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
html.dark .pulse-starter-chip {
  background: rgba(29, 33, 37, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e8eaed;
}
.pulse-starter-chip:hover {
  border-color: rgba(23, 86, 197, 0.35);
}
.pulse-starter-chip.is-selected {
  border-color: #1756c5;
  background: rgba(23, 86, 197, 0.1);
  box-shadow: 0 0 0 2px rgba(23, 86, 197, 0.12);
}
html.dark .pulse-starter-chip.is-selected {
  border-color: #93c5fd;
  background: rgba(91, 155, 255, 0.12);
}
.pulse-d-intent .pulse-starter-chip.is-selected {
  border-color: #1e6d19;
  background: rgba(30, 109, 25, 0.1);
}
html.dark .pulse-d-intent .pulse-starter-chip.is-selected {
  border-color: #a4f791;
  background: rgba(164, 247, 145, 0.08);
}

.idea-plan-outline,
.idea-plan-card {
  text-align: left;
  background: rgba(14, 148, 136, 0.06);
  border: 1px solid rgba(14, 148, 136, 0.22);
  border-radius: 1rem;
  padding: 1.5rem 1.35rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}
html.dark .idea-plan-outline,
html.dark .idea-plan-card {
  background: rgba(14, 148, 136, 0.06);
  border-color: rgba(14, 148, 136, 0.15);
}
.idea-plan-outline-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(14, 148, 136, 0.2);
}
.idea-plan-outline-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a2332;
}
html.dark .idea-plan-outline-title {
  color: #eff1f4;
}
.idea-plan-section {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.idea-plan-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
html.dark .idea-plan-section {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.idea-plan-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f766e;
  margin-bottom: 0.5rem;
}
html.dark .idea-plan-section-title {
  color: #5eead4;
}
.idea-plan-section-body {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #2a3544;
  white-space: pre-wrap;
}
html.dark .idea-plan-section-body {
  color: #e8eaed;
}
.idea-plan-section-list {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #2a3544;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
html.dark .idea-plan-section-list {
  color: #e8eaed;
}
.idea-plan-section-list li {
  position: relative;
  padding-left: 1.1rem;
}
.idea-plan-section-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #0e9488;
  font-weight: 700;
}

.pulse-persona-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
}
html.dark .pulse-persona-strip {
  background: rgba(29, 33, 37, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ── IdeaForge shell ─────────────────────────────────────────────────── */
.idea-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b2d5c 0%, #1756c5 52%, #0e9488 100%);
  border-radius: 1.25rem;
  padding: 1.35rem 1.5rem;
  color: #fff;
  margin-bottom: 1.25rem;
}
.idea-hero::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.idea-hero-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b8e8df;
  margin-bottom: 6px;
}
.idea-checklist li.is-active {
  color: #0f766e;
}
html.dark .idea-checklist li.is-active {
  color: #5eead4;
}
#sample-grid .portal-sample-card {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
html.dark #sample-grid .portal-sample-card {
  background: rgba(20, 23, 26, 0.5);
  border-color: rgba(255, 255, 255, 0.06);
}

.idea-category-grid {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .idea-category-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.idea-category-card {
  text-align: left;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.6);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
html.dark .idea-category-card {
  background: rgba(29, 33, 37, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
}
.idea-category-card:hover {
  border-color: rgba(14, 148, 136, 0.5);
}
.idea-category-card.is-selected {
  border-color: #0e9488;
  box-shadow: 0 0 0 2px rgba(14, 148, 136, 0.2);
  background: rgba(14, 148, 136, 0.08);
}
.idea-category-card-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a2332;
  margin-bottom: 4px;
}
html.dark .idea-category-card-title {
  color: #eff1f4;
}
.idea-category-card-hint {
  display: block;
  font-size: 0.75rem;
  color: #6b7a8f;
  line-height: 1.4;
}
html.dark .idea-category-card-hint {
  color: #9aa8bc;
}
.idea-ai-ack {
  font-size: 0.875rem;
  color: #5d6b82;
  background: rgba(14, 148, 136, 0.1);
  border: 1px solid rgba(14, 148, 136, 0.25);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}
html.dark .idea-ai-ack {
  color: #c0cab8;
  background: rgba(14, 148, 136, 0.08);
}
.idea-sheet-grid {
  display: grid;
  gap: 1rem;
}
.idea-sheet-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.idea-sheet-field {
  width: 100%;
}
.idea-sheet-field--full {
  grid-column: 1 / -1;
}
.idea-sheet-input--stacked {
  min-height: 4.5rem;
  line-height: 1.55;
  font-size: 0.9375rem;
  resize: vertical;
  overflow: hidden;
}
.idea-details-field {
  line-height: 1.55;
  font-size: 0.9375rem;
}
.idea-context-recap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.idea-context-pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(14, 148, 136, 0.12);
  color: #0f766e;
  border: 1px solid rgba(14, 148, 136, 0.25);
}
html.dark .idea-context-pill {
  color: #5eead4;
  background: rgba(14, 148, 136, 0.1);
}
.idea-focus-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  background: rgba(14, 148, 136, 0.1);
  border-bottom: 1px solid rgba(14, 148, 136, 0.2);
}
html.dark .idea-focus-toolbar {
  background: rgba(14, 148, 136, 0.08);
}
.idea-focus-toolbar-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f766e;
}
html.dark .idea-focus-toolbar-label {
  color: #5eead4;
}
.idea-exit-focus-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: #134e4a;
  transition: background 0.15s, border-color 0.15s;
}
.idea-exit-focus-btn:hover {
  background: rgba(14, 148, 136, 0.12);
  border-color: rgba(14, 148, 136, 0.4);
}
html.dark .idea-exit-focus-btn {
  background: #1d2125;
  color: #5eead4;
  border-color: rgba(255, 255, 255, 0.12);
}
.idea-loading-orbit {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  margin-left: auto;
  margin-right: auto;
}
.idea-loading-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(14, 148, 136, 0.2);
  border-top-color: #0e9488;
  animation: idea-orbit-spin 1s linear infinite;
}
.idea-loading-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 2rem;
  height: 2rem;
  font-size: 2rem;
  color: #0e9488;
  animation: idea-orbit-pulse 1.6s ease-in-out infinite;
}
@keyframes idea-orbit-spin {
  to { transform: rotate(360deg); }
}
@keyframes idea-orbit-pulse {
  0%, 100% { opacity: 0.65; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1); }
}
.idea-loading-track {
  display: flex;
  gap: 0.35rem;
  max-width: 16rem;
}
.idea-loading-seg {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  transition: background 0.3s, transform 0.3s;
}
html.dark .idea-loading-seg {
  background: rgba(255, 255, 255, 0.1);
}
.idea-loading-seg.is-done {
  background: #0e9488;
}
.idea-loading-seg.is-active {
  background: linear-gradient(90deg, #0e9488, #1756c5);
  transform: scaleY(1.35);
}
.idea-loading-check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.45;
  transition: opacity 0.3s, color 0.3s;
}
.idea-loading-check-item.is-active {
  opacity: 1;
  color: #0f766e;
  font-weight: 600;
}
.idea-loading-check-item.is-done {
  opacity: 0.75;
}
html.dark .idea-loading-check-item.is-active {
  color: #5eead4;
}
.idea-loading-check-icon {
  font-size: 0.75rem;
  width: 1rem;
  text-align: center;
  flex-shrink: 0;
}
.idea-loading-message {
  transition: opacity 0.25s;
}

.idea-overview-stage {
  width: 100%;
}
.idea-overview-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1rem;
  padding: 1.5rem 1.35rem;
  margin-bottom: 1.5rem;
}
html.dark .idea-overview-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}
.idea-overview-block {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.idea-overview-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
html.dark .idea-overview-block {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.idea-overview-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f766e;
  margin-bottom: 0.5rem;
}
html.dark .idea-overview-label {
  color: #5eead4;
}
.idea-overview-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #2a3544;
  white-space: pre-wrap;
}
html.dark .idea-overview-text {
  color: #e8eaed;
}
.idea-overview-list {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #2a3544;
  list-style: disc;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
html.dark .idea-overview-list {
  color: #e8eaed;
}
.idea-overview-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}
@media (min-width: 640px) {
  .idea-overview-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}
.idea-shell--focus {
  grid-template-columns: 1fr !important;
  max-width: min(100%, 1120px);
  margin-left: auto;
  margin-right: auto;
}
.idea-shell--focus .portal-shell-rail {
  display: none !important;
}
.idea-shell--focus .portal-shell-center {
  max-width: 100% !important;
  width: 100%;
}
.idea-shell--focus .idea-hero {
  display: none;
}
.idea-shell--focus #idea-body {
  padding: 1.5rem 1.25rem 2rem;
}
@media (min-width: 768px) {
  .idea-shell--focus #idea-body {
    padding: 2rem 2.25rem 2.5rem;
  }
}
.idea-sheet-stage {
  max-width: 52rem;
  margin: 0 auto;
}
.idea-sheet-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f766e;
  margin-bottom: 0.35rem;
}
html.dark .idea-sheet-label {
  color: #5eead4;
}
.idea-sheet-input {
  width: 100%;
}
.idea-quality-pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  display: inline-block;
}
.idea-quality-pill--breakthrough {
  background: rgba(0, 201, 167, 0.15);
  color: #0d7a66;
}
.idea-quality-pill--promising {
  background: rgba(23, 86, 197, 0.12);
  color: #1756c5;
}
.idea-quality-pill--standard {
  background: rgba(0, 0, 0, 0.06);
  color: #5d6b82;
}
html.dark .idea-quality-pill--breakthrough { color: #5eead4; }
html.dark .idea-quality-pill--promising { color: #93c5fd; }
.idea-review-card {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1rem;
  padding: 1.25rem;
}
html.dark .idea-review-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
.idea-shell--complete {
  grid-template-columns: 1fr !important;
  justify-items: center;
}
.idea-shell--complete .portal-shell-center {
  max-width: min(100%, 860px);
  width: 100%;
}
.idea-complete-inner {
  max-width: 48rem;
  margin: 0 auto;
}
.portal-shell-grid--idea .portal-shell-center {
  max-width: min(100%, 720px);
}
@media (min-width: 1100px) {
  .portal-shell-grid.portal-shell-grid--idea {
    grid-template-columns: minmax(220px, 280px) minmax(480px, 1fr) minmax(200px, 260px);
  }
}

