/* Delllusion — extends site styles.css (homepage tokens) */

.delllusion-page {
  background: var(--bg-secondary, #f8fafc);
  color: var(--text-primary, #0a1929);
  min-height: 100vh;
  font-family: 'Inter', system-ui, sans-serif;
}

.delllusion-page .navbar.scrolled {
  background: var(--glass-bg, rgba(255, 255, 255, 0.95));
}

.delllusion-page .navbar .nav-link {
  color: var(--text-primary, #0a1929);
}

.delllusion-page .navbar .logo-text {
  color: var(--primary-color, #0a1929);
}

/* Hero — product story + side auth rail */
.delllusion-hero {
  background: var(--gradient-hero, linear-gradient(135deg, #0a1929 0%, #1e3a5f 40%, #0066cc 100%));
  color: #fff;
  padding: 88px 0 36px;
  margin-top: 0;
}

.delllusion-hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 300px);
  gap: 28px 32px;
  align-items: start;
  max-width: 1200px;
}

.delllusion-hero-main {
  text-align: left;
  min-width: 0;
}

.delllusion-hero-caption {
  margin: 14px 0 0;
  font-size: 0.88rem;
  opacity: 0.85;
  max-width: 520px;
}

.delllusion-hero-visual {
  position: relative;
  margin-top: 20px;
  max-width: 560px;
}

.hero-deliberation-art {
  position: relative;
  margin-top: 8px;
  width: min(100%, 560px);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.15);
  container-type: inline-size;
}

.hero-deliberation-art picture,
.hero-deliberation-art img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Orbit overlay — aligned to hub in hero PNG (left-of-center) */
.hero-deliberation-scene {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-orbit-anchor {
  position: absolute;
  left: 38%;
  top: 50%;
  width: 0;
  height: 0;
}

.hero-orbit-ring {
  position: absolute;
  left: 0;
  top: 0;
  width: min(52cqi, 220px);
  height: min(52cqi, 220px);
  transform: translate(-50%, -50%);
  border: 2px dashed rgba(20, 184, 166, 0.65);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(20, 184, 166, 0.2);
  animation: hero-orbit-spin 28s linear infinite;
}

.hero-orbit-expert {
  position: absolute;
  left: 0;
  top: 0;
  width: min(14cqi, 56px);
  height: min(14cqi, 56px);
  margin: calc(min(14cqi, 56px) * -0.5) 0 0 calc(min(14cqi, 56px) * -0.5);
  border-radius: 50%;
  background: rgba(10, 25, 41, 0.55);
  border: 1px solid rgba(20, 184, 166, 0.55);
  backdrop-filter: blur(8px);
  font-size: clamp(0.48rem, 2.2cqi, 0.62rem);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
  padding: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  animation: hero-expert-orbit 18s linear infinite;
}

.hero-orbit-expert--1 { animation-delay: 0s; color: #a7f3d0; }
.hero-orbit-expert--2 { animation-delay: -3.6s; color: #fde68a; }
.hero-orbit-expert--3 { animation-delay: -7.2s; color: #bfdbfe; }
.hero-orbit-expert--4 { animation-delay: -10.8s; color: #fbcfe8; }
.hero-orbit-expert--5 { animation-delay: -14.4s; color: #ddd6fe; }

@keyframes hero-orbit-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes hero-expert-orbit {
  from {
    transform: rotate(0deg) translateX(min(26cqi, 110px)) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(min(26cqi, 110px)) rotate(-360deg);
  }
}

@supports not (width: 1cqi) {
  .hero-orbit-ring {
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
  }
  .hero-orbit-expert {
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
    font-size: 0.55rem;
  }
  @keyframes hero-expert-orbit {
    from {
      transform: rotate(0deg) translateX(100px) rotate(0deg);
    }
    to {
      transform: rotate(360deg) translateX(100px) rotate(-360deg);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orbit-ring,
  .hero-orbit-expert {
    animation: none;
  }
}

.delllusion-auth-rail {
  background: rgba(255, 255, 255, 0.97) !important;
  color: var(--text-primary, #0a1929);
  padding: 18px 18px 16px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 88px;
}

.auth-rail-heading {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary, #0a1929);
}

.auth-rail-lead {
  margin: 0 0 8px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary, #64748b);
}

.auth-rail-scope {
  margin: 0 0 14px;
  padding: 8px 10px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-secondary, #64748b);
  background: rgba(124, 58, 237, 0.06);
  border-radius: 8px;
  border: 1px solid rgba(124, 58, 237, 0.15);
}

.auth-rail-scope strong {
  color: #6d28d9;
  font-weight: 600;
}

.auth-rail-persist {
  margin: 0 0 14px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-secondary, #64748b);
}

.auth-rail-persist strong {
  color: var(--text-primary, #0a1929);
  font-weight: 600;
}

.auth-guest-retention,
.sharing-guest-retention {
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
}

.auth-switch {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.82rem;
  text-align: center;
  color: var(--text-secondary, #64748b);
}

.auth-switch-text {
  margin-right: 6px;
}

.auth-link-btn {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  color: #6d28d9;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-link-btn:hover {
  color: #5b21b6;
}

.auth-register-panel {
  padding-top: 4px;
}

.auth-back-signin {
  display: block;
  margin: 0 0 12px;
  text-align: left;
  font-size: 0.82rem;
  text-decoration: none;
}

.auth-back-signin:hover {
  text-decoration: underline;
}

.auth-register-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-register-hint {
  margin: 0 0 10px;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-secondary, #64748b);
}

.auth-field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-secondary, #64748b);
}

.auth-rail-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.auth-rail-actions .btn {
  width: 100%;
}

.auth-submit-btn {
  width: 100%;
  margin-top: 4px;
}

.delllusion-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal-accent, #14b8a6);
  margin: 0 0 8px;
}

.delllusion-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.15;
}

.delllusion-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.92;
  margin: 0 0 16px;
  max-width: 560px;
}

.delllusion-status {
  display: inline-block;
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.delllusion-status.ok { border-color: #14b8a6; color: #a7f3d0; }
.delllusion-status.warn { border-color: #fbbf24; color: #fde68a; }
.delllusion-status.err { border-color: #f87171; color: #fecaca; }

/* Community examples — top of page (public question history) */
.community-examples-section {
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 20px 24px 16px;
}

.community-examples-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.community-examples-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text-primary, #0a1929);
}

.community-examples-lead {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary, #64748b);
  max-width: 640px;
  flex: 1 1 100%;
}

.community-examples-refresh {
  flex-shrink: 0;
  font-size: 0.85rem;
}

.community-examples-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.community-example-card {
  flex: 0 0 min(320px, 85vw);
  scroll-snap-align: start;
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: #fff;
  box-shadow: 0 2px 8px rgba(10, 25, 41, 0.06);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.community-example-card:hover {
  border-color: #7c3aed;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.12);
}

.community-example-card:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
}

.community-example-card.is-seed {
  border-style: dashed;
  background: rgba(124, 58, 237, 0.04);
}

.community-example-question {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 8px;
  color: var(--text-primary, #0a1929);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.community-example-summary {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary, #64748b);
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.community-example-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-secondary, #64748b);
}

.community-example-author {
  font-weight: 600;
  color: #7c3aed;
}

.community-example-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.1);
  color: #6d28d9;
  font-weight: 500;
}

.community-example-badge.example {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.community-examples-loading,
.community-examples-empty {
  font-size: 0.9rem;
  color: var(--text-secondary, #64748b);
  margin: 0;
}

.delllusion-info {
  padding: 0 24px 8px;
  max-width: 1200px;
  margin: 0 auto;
}

.delllusion-rules-card {
  margin-bottom: 8px;
}

.delllusion-rules-summary {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-color, #0a1929);
  cursor: pointer;
  list-style: none;
}

.delllusion-rules-summary::-webkit-details-marker {
  display: none;
}

.delllusion-info-about {
  margin: 12px 0 16px;
  line-height: 1.6;
  color: var(--text-secondary, #475569);
  font-size: 0.95rem;
}

.delllusion-rules-list {
  margin: 0 0 16px;
  padding-left: 1.25rem;
  color: var(--text-primary, #0a1929);
}

.delllusion-rules-list li {
  margin-bottom: 10px;
  line-height: 1.5;
}

.delllusion-rules-list strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.delllusion-flow-note {
  font-size: 0.85rem;
  color: var(--text-secondary, #64748b);
  margin: 0;
  line-height: 1.55;
}

.delllusion-script-panel {
  grid-column: 1 / -1;
}

.delllusion-script-hint {
  font-size: 0.85rem;
  color: var(--text-secondary, #64748b);
  margin: -8px 0 12px;
}

.deliberation-script {
  max-height: 420px;
  overflow-y: auto;
  font-size: 0.88rem;
  line-height: 1.55;
}

.deliberation-script.empty {
  color: var(--text-secondary, #64748b);
  font-style: italic;
}

.script-step {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light, rgba(10, 25, 41, 0.1));
}

.script-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.script-step-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.script-stage {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 102, 204, 0.1);
  color: var(--cta-primary, #0066cc);
}

.script-step.user .script-stage {
  background: rgba(20, 184, 166, 0.15);
  color: #0d9488;
}

.script-step.specialist .script-stage {
  background: rgba(124, 58, 237, 0.12);
  color: #6d28d9;
}

.script-step.perspective_analysis .script-stage {
  background: rgba(234, 88, 12, 0.12);
  color: #c2410c;
}

.script-perspective-block {
  margin: 10px 0 8px;
  font-size: 0.84rem;
}

.script-perspective-block strong {
  display: block;
  margin-bottom: 6px;
  color: var(--primary-color, #0a1929);
}

.script-perspective-list {
  margin: 0;
  padding-left: 1.2rem;
}

.script-perspective-list > li {
  margin-bottom: 8px;
}

.script-perspective-theme {
  font-weight: 600;
}

.script-perspective-who {
  color: var(--text-secondary, #64748b);
  font-weight: 500;
}

.script-contrast-list {
  margin: 6px 0 0;
  padding-left: 1.1rem;
  list-style: circle;
}

.script-step-label {
  font-weight: 700;
  color: var(--primary-color, #0a1929);
}

.script-subq {
  font-size: 0.82rem;
  color: var(--text-secondary, #64748b);
  margin: 0 0 8px;
  padding: 8px 10px;
  background: var(--bg-secondary, #f1f5f9);
  border-radius: 8px;
  border-left: 3px solid var(--cta-primary, #0066cc);
}

.script-body {
  color: var(--text-primary, #0a1929);
  white-space: pre-wrap;
  word-break: break-word;
}

.script-meta {
  font-size: 0.8rem;
  color: var(--text-secondary, #64748b);
  margin-top: 6px;
}

.discussion-toolbar {
  margin: 0 auto 20px;
  max-width: 1200px;
  padding: 14px 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  border-bottom: 2px solid rgba(0, 102, 204, 0.12);
}

.discussion-toolbar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.discussion-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.delllusion-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0;
  min-width: 0;
  flex: 1;
}

.delllusion-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 280px;
  min-height: 44px;
  padding: 10px 12px 10px 14px;
  border-radius: 10px 10px 0 0;
  border: 1px solid var(--border-light, rgba(10, 25, 41, 0.12));
  border-bottom: 2px solid transparent;
  background: var(--bg-secondary, #f8fafc);
  color: var(--text-primary, #0a1929);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.delllusion-tab.loading {
  opacity: 0.7;
  pointer-events: none;
}

.delllusion-tab:hover {
  border-color: var(--cta-primary, #0066cc);
}

.delllusion-tab.active {
  background: #fff;
  border-color: var(--cta-primary, #0066cc);
  border-bottom-color: var(--cta-primary, #0066cc);
  color: var(--cta-primary, #0066cc);
  box-shadow: 0 -2px 12px rgba(0, 102, 204, 0.08);
}

.delllusion-tab-title {
  overflow: hidden;
  text-overflow: ellipsis;
}

.delllusion-tab-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text-secondary, #64748b);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.delllusion-tab-close:hover {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}

.delllusion-tab-add {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px dashed var(--cta-primary, #0066cc);
  background: rgba(0, 102, 204, 0.06);
  color: var(--cta-primary, #0066cc);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
}

.delllusion-tab-add:hover {
  background: rgba(0, 102, 204, 0.14);
}

.export-dropdown {
  position: relative;
  display: inline-flex;
}

.export-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--border-light, rgba(10, 25, 41, 0.12));
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(10, 25, 41, 0.12);
  z-index: 40;
  padding: 4px;
}

.export-menu[hidden] {
  display: none;
}

.export-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text-primary, #0a1929);
}

.export-menu button:hover {
  background: var(--bg-secondary, #f1f5f9);
}

.panel-actions-block {
  margin: 0 0 16px;
}

.panel-actions-block .btn-row + .btn-row {
  margin-top: 8px;
}

/* Discussion panel — composer + action toolbar */
.discussion-controls {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin-bottom: 18px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #fafbfc 0%, #f8fafc 100%);
  overflow: hidden;
}

.discussion-composer {
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.discussion-composer-label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary, #64748b);
}

.discussion-composer-input-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 14px;
}

.discussion-composer-input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.discussion-composer-input:focus {
  outline: none;
  border-color: var(--cta-primary, #0066cc);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.discussion-composer-mic {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  align-self: stretch;
}

.discussion-primary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.discussion-controls .discussion-btn-sharing,
.discussion-controls .discussion-btn-discuss,
.discussion-controls .discussion-btn-argue,
.discussion-controls .discussion-btn-summarize,
.discussion-controls .discussion-btn-end {
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.2;
  margin: 0;
}

.discussion-btn-discuss {
  min-width: 140px;
  padding-left: 28px !important;
  padding-right: 28px !important;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.25);
}

.discussion-btn-discuss:hover {
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.32);
}

.discussion-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.65);
}

.discussion-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.discussion-toolbar-group--panel {
  flex: 1 1 auto;
  min-width: min(100%, 280px);
}

.discussion-toolbar-group--session {
  flex-shrink: 0;
}

.discussion-toolbar-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
  white-space: nowrap;
  padding-right: 4px;
}

.discussion-toolbar-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.discussion-btn-argue:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.discussion-btn-end {
  white-space: nowrap;
}

.panel-discussion .transcript-primary {
  margin-top: 4px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding-top: 16px;
}

.discuss-actions-row {
  display: none;
}

.delllusion-btn-argue {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600;
  cursor: pointer;
}

.delllusion-btn-argue:hover:not(:disabled) {
  filter: brightness(1.05);
}

.delllusion-btn-argue:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.argue-hint {
  display: none;
}

.script-step.specialist_argue .script-stage,
.script-step.master_argue_frame .script-stage,
.script-step.master_argue_facilitate .script-stage {
  background: rgba(234, 88, 12, 0.12);
  color: #c2410c;
}

.deliberation-nodes-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.deliberation-nodes-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary, #64748b);
}

.deliberation-nodes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.deliberation-node-btn {
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(100, 116, 139, 0.35);
  background: #fff;
  cursor: pointer;
}

.deliberation-node-btn.active {
  background: #7c3aed;
  color: #fff;
  border-color: #7c3aed;
}

.deliberation-node-btn.archived {
  opacity: 0.85;
  font-style: italic;
}

.deliberation-node-hint {
  font-size: 0.88rem;
  color: var(--text-secondary, #64748b);
  margin: 0 0 10px;
}

.conclusion-philosophy-label,
.conclusion-style-label {
  margin: 12px 0 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.conclusion-style-label {
  margin-top: 14px;
}

.conclusion-philosophy-modes .conclusion-mode-btn {
  border-color: rgba(124, 58, 237, 0.35);
}

.conclusion-philosophy-modes .conclusion-mode-btn.active {
  background: #7c3aed;
  border-color: #7c3aed;
}

.conclusion-modes-hint {
  display: none;
}

.conclusion-section-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.conclusion-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  align-items: center;
}

.conclusion-mode-btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-light, rgba(10, 25, 41, 0.15));
  background: var(--bg-secondary, #f8fafc);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-primary, #0a1929);
  transition: background 0.15s, border-color 0.15s;
}

.conclusion-mode-btn:hover:not(:disabled) {
  border-color: var(--cta-primary, #0066cc);
  background: rgba(0, 102, 204, 0.08);
}

.conclusion-mode-btn.active {
  background: var(--cta-primary, #0066cc);
  color: #fff;
  border-color: var(--cta-primary, #0066cc);
}

.conclusion-mode-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.conclusion-mode-btn[title] {
  text-decoration: none;
}

.followup-panel {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light, rgba(10, 25, 41, 0.1));
}

.followup-heading {
  font-size: 1rem;
  margin: 0 0 8px;
  color: var(--primary-color, #0a1929);
}

.followup-quota {
  font-size: 0.82rem;
  color: var(--text-secondary, #64748b);
  margin: 0 0 10px;
}

.followup-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.followup-textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  margin-bottom: 10px;
}

.followup-actions {
  margin-bottom: 12px;
}

.followup-paywall {
  padding: 14px;
  background: rgba(234, 88, 12, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(234, 88, 12, 0.25);
}

.followup-paywall-msg {
  margin: 0 0 12px;
  font-size: 0.9rem;
}

.followup-paywall-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.followup-billing-hint {
  font-size: 0.78rem;
  color: var(--text-secondary, #64748b);
  margin: 0;
}

.panel-followup-thread-wrap {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light, rgba(10, 25, 41, 0.12));
}

.panel-followup-thread-title {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--primary-color, #0a1929);
}

.panel-followup-thread-hint {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--text-secondary, #64748b);
}

.panel-followup-thread {
  max-height: 480px;
  overflow-y: auto;
}

.followup-thread-empty {
  color: var(--text-secondary, #64748b);
  font-style: italic;
  margin: 0;
  font-size: 0.88rem;
}

.followup-round-block {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(13, 148, 136, 0.06);
  border: 1px solid rgba(13, 148, 136, 0.25);
}

.followup-round-block h5 {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #0d9488;
}

.followup-round-user {
  margin-bottom: 12px;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  border-left: 3px solid #0d9488;
}

.followup-round-user strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.8rem;
  color: var(--text-secondary, #64748b);
}

.followup-round-reply {
  margin: 8px 0;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.followup-round-reply .reply-who {
  font-weight: 700;
  color: var(--primary-color, #0a1929);
  display: block;
  margin-bottom: 4px;
}

.followup-round-master {
  margin-top: 10px;
  padding: 10px;
  background: rgba(0, 102, 204, 0.06);
  border-radius: 8px;
  border-left: 3px solid var(--cta-primary, #0066cc);
}

.followup-round-master strong {
  display: block;
  margin-bottom: 6px;
  color: var(--cta-primary, #0066cc);
}

/* Workspace tabs: My panel | Community */
.workspace-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.workspace-tab {
  border: 1px solid var(--border-light, rgba(10, 25, 41, 0.15));
  background: #fff;
  color: var(--text-primary, #0a1929);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.workspace-tab.active {
  background: var(--cta-primary, #0066cc);
  color: #fff;
  border-color: var(--cta-primary, #0066cc);
}

.sharing-bar {
  margin-bottom: 12px;
  padding: 8px 12px;
  font-size: 0.85rem;
}

.sharing-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
}

.sharing-badge.public {
  background: rgba(13, 148, 136, 0.15);
  color: #0d9488;
}

.sharing-badge.private {
  background: rgba(100, 116, 139, 0.15);
  color: #475569;
}

.sharing-fieldset {
  border: none;
  margin: 0 0 16px;
  padding: 0;
}

.sharing-legend {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.sharing-radio {
  display: block;
  margin: 8px 0;
  font-size: 0.88rem;
  line-height: 1.45;
  cursor: pointer;
}

.sharing-consent-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 12px 0;
  cursor: pointer;
}

.sharing-consent-label input {
  margin-top: 3px;
  flex-shrink: 0;
}

.sharing-note {
  font-size: 0.8rem;
  color: var(--text-secondary, #64748b);
  margin: 0 0 12px;
}

.sharing-visibility-row {
  margin: 12px 0;
}

.community-workspace {
  margin-bottom: 20px;
}

.community-intro {
  font-size: 0.9rem;
  color: var(--text-secondary, #64748b);
  margin: 0 0 16px;
}

.community-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 900px) {
  .community-layout.has-detail {
    grid-template-columns: minmax(240px, 320px) 1fr;
  }
}

.community-question-list {
  max-height: 520px;
  overflow-y: auto;
}

.community-question-card {
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid var(--border-light, rgba(10, 25, 41, 0.12));
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.community-question-card:hover {
  border-color: var(--cta-primary, #0066cc);
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.community-question-card h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--primary-color, #0a1929);
}

.community-question-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary, #64748b);
  line-height: 1.4;
}

.community-question-meta {
  font-size: 0.75rem;
  color: var(--text-secondary, #64748b);
  margin-top: 8px;
}

.community-back-btn {
  background: none;
  border: none;
  color: var(--cta-primary, #0066cc);
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  padding: 0;
}

.community-detail-card {
  padding: 16px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(13, 148, 136, 0.25);
  margin-bottom: 16px;
}

.community-detail-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.community-opinions-list {
  margin-bottom: 16px;
}

.community-opinion-item {
  padding: 12px;
  margin-bottom: 8px;
  background: rgba(13, 148, 136, 0.06);
  border-radius: 8px;
  border-left: 3px solid #0d9488;
}

.community-opinion-item.private-mine {
  border-left-color: #64748b;
  background: rgba(100, 116, 139, 0.08);
}

.community-opinion-item .opinion-who {
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.community-opinion-form {
  padding: 16px;
  background: var(--bg-secondary, #f8fafc);
}

.clarity-redelib-bar {
  margin: 14px 0;
  padding: 14px;
  border-radius: 10px;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.45);
}

.clarity-redelib-bar p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.expert-suggestion-bar {
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.35);
}

.expert-suggestion-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #5b21b6;
}

.expert-suggestion-lead {
  margin: 8px 0 12px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-secondary, #64748b);
}

.expert-suggestion-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.expert-suggestion-card {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.expert-suggestion-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.expert-suggestion-domain {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
}

.expert-suggestion-card-reason {
  margin: 0 0 10px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-primary, #0a1929);
}

.expert-suggestion-add-btn {
  font-size: 0.85rem !important;
  padding: 8px 14px !important;
}

.expert-suggestion-reason {
  margin: 0 0 8px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-primary, #0a1929);
}

.expert-suggestion-meta {
  display: none;
}

.expert-suggestion-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.orbit-suggested-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.orbit-suggested-strip-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-right: 4px;
}

.orbit-suggested-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 2px dashed rgba(124, 58, 237, 0.55);
  background: rgba(124, 58, 237, 0.08);
  color: #5b21b6;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.orbit-suggested-pill:hover {
  background: rgba(124, 58, 237, 0.16);
  border-color: #7c3aed;
}

.orbit-suggested-plus {
  font-weight: 800;
  color: #7c3aed;
}

.orbit-suggested-domain {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
}

.orbit-node-suggested {
  border: 2px dashed rgba(124, 58, 237, 0.65) !important;
  background: rgba(124, 58, 237, 0.1) !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
  animation: orbit-suggested-pulse 2.5s ease-in-out infinite;
}

.orbit-node-suggested:hover {
  background: rgba(124, 58, 237, 0.18) !important;
  border-color: #7c3aed !important;
}

.node-tag-suggested {
  background: rgba(124, 58, 237, 0.2) !important;
  color: #5b21b6 !important;
}

@keyframes orbit-suggested-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.18);
  }
}

.turn.redeliberate {
  border-left: 3px solid #ca8a04;
}

.followup-limits-desc {
  font-size: 0.82rem;
  color: var(--text-secondary, #64748b);
  margin: 0 0 12px;
  line-height: 1.5;
}

.followup-paywall-detail {
  font-size: 0.85rem;
  margin: 0 0 12px;
  line-height: 1.5;
}

.followup-input-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.followup-input-row .followup-textarea {
  flex: 1;
  margin-bottom: 0;
}

/* Legacy ask-row-voice — replaced by .discussion-composer */
.ask-row-voice {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: stretch;
  width: 100%;
}

.ask-row-voice .delllusion-input {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.ask-row-voice .btn,
.ask-row-voice .voice-btn {
  flex-shrink: 0;
  align-self: stretch;
}

.voice-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--border-light, rgba(10, 25, 41, 0.15));
  background: var(--bg-secondary, #f8fafc);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}

.voice-btn:hover {
  border-color: var(--cta-primary, #0066cc);
  background: rgba(0, 102, 204, 0.08);
}

.voice-btn.listening {
  background: rgba(220, 38, 38, 0.12);
  border-color: #dc2626;
  animation: voice-pulse 1s ease infinite;
}

.voice-btn-secondary {
  width: auto;
  padding: 0 12px;
  height: 38px;
  font-size: 0.85rem;
}

.voice-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.conclusion-toolbar {
  margin-bottom: 8px;
}

.delllusion-pricing-details {
  margin-top: 12px;
  font-size: 0.9rem;
}

.delllusion-pricing-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--cta-primary, #0066cc);
}

.delllusion-pricing-body {
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary, #64748b);
}

.delllusion-pricing-body ul {
  margin: 8px 0;
  padding-left: 1.2rem;
}

.delllusion-pricing-body strong {
  color: var(--primary-color, #0a1929);
}

@keyframes voice-pulse {
  50% { opacity: 0.7; }
}

.turn.followup-turn .who::after {
  content: ' · follow-up';
  font-size: 0.75rem;
  font-weight: 600;
  color: #0d9488;
  margin-left: 4px;
}

.script-step.specialist_followup .script-stage,
.script-step.user_followup .script-stage,
.script-step.master_followup .script-stage {
  background: rgba(13, 148, 136, 0.12);
  color: #0d9488;
}

.turn.custom-expert .who::after {
  content: ' · custom';
  font-size: 0.75rem;
  font-weight: 600;
  color: #6d28d9;
  margin-left: 4px;
}

.turn.argue .who::after {
  content: ' · argue';
  font-size: 0.75rem;
  font-weight: 600;
  color: #c2410c;
  margin-left: 4px;
}

.auth-login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.auth-input {
  width: 100%;
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
}

.auth-user-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cta-primary, #0066cc);
  margin-bottom: 8px;
}

.modal-overlay--wide.open {
  align-items: flex-start;
  padding-top: 6vh;
}

.modal--wide {
  width: min(720px, 94vw);
  max-height: 85vh;
}

.my-discussions-list button strong {
  font-size: 1rem;
}

.my-discussions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 360px;
  overflow-y: auto;
}

.my-discussions-list li {
  margin-bottom: 8px;
}

.my-discussions-list button {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-light, rgba(10, 25, 41, 0.12));
  background: var(--bg-secondary, #f8fafc);
  cursor: pointer;
  font-size: 0.9rem;
}

.my-discussions-list button:hover {
  border-color: var(--cta-primary, #0066cc);
}

.my-discussions-list .disc-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary, #64748b);
  margin-top: 4px;
}

.delllusion-main {
  padding: 32px 24px 100px;
}

.section-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color, #0a1929);
  margin: 0 0 16px;
}

.card-style {
  background: var(--bg-primary, #fff);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border-light, rgba(10, 25, 41, 0.15));
  box-shadow: var(--shadow-md, 0 4px 12px rgba(10, 25, 41, 0.1));
}

/* Orbit panel — experts + add control live in one box */
.orbit-section {
  position: relative;
  margin-bottom: 28px;
  border-radius: 16px;
  background: linear-gradient(180deg, #0f172a 0%, #1e3a5f 100%);
  border: 1px solid rgba(20, 184, 166, 0.25);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.orbit-header {
  padding: 20px 24px 0;
  text-align: center;
}

.orbit-heading {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.orbit-intro {
  margin: 0 auto 8px;
  max-width: 640px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.orbit-intro .inline-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(20, 184, 166, 0.35);
  color: #a7f3d0;
  vertical-align: middle;
}

.orbit-default-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.orbit-legend-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  min-width: 88px;
}

.orbit-legend-pill.on-orbit {
  background: rgba(20, 184, 166, 0.2);
  border: 1px solid rgba(20, 184, 166, 0.5);
  color: #ccfbf1;
}

.orbit-legend-pill.off-orbit {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.45);
  text-decoration: line-through;
}

.orbit-legend-pill .pill-name {
  font-weight: 700;
}

.orbit-legend-pill .pill-status {
  font-size: 0.65rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.orbit-stage {
  position: relative;
  width: 100%;
  height: 380px;
}

.orbit-ring {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(68%, 320px);
  height: min(68%, 320px);
  margin-left: calc(min(68%, 320px) / -2);
  margin-top: calc(min(68%, 320px) / -2);
  border: 1px dashed rgba(20, 184, 166, 0.35);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-center {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--cta-primary, #0066cc), var(--teal-accent, #14b8a6));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  box-shadow: 0 0 32px rgba(0, 102, 204, 0.45);
  z-index: 2;
}

.orbit-center-sub {
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.9;
}

.orbit-node-wrap {
  position: absolute;
  width: 80px;
  height: 80px;
  margin-left: -40px;
  margin-top: -40px;
  z-index: 5;
}

.orbit-node-wrap-add {
  width: 84px;
  height: 84px;
  margin-left: -42px;
  margin-top: -42px;
}

.orbit-node {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--teal-accent, #14b8a6);
  color: var(--primary-color, #0a1929);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  padding: 4px;
}

.orbit-node-default {
  border-color: #14b8a6;
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.35);
}

.orbit-node-pending {
  opacity: 0.92;
  cursor: pointer;
}

.orbit-node-pending.orbit-node-default {
  animation: orbit-pending-pulse 2s ease-in-out infinite;
}

@keyframes orbit-pending-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.35);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.35), 0 0 0 8px rgba(20, 184, 166, 0.12);
  }
}

.orbit-node:hover,
.orbit-node.selected {
  transform: scale(1.06);
  box-shadow: 0 0 18px rgba(20, 184, 166, 0.5);
  border-color: var(--cta-primary, #0066cc);
}

.orbit-node .node-label {
  pointer-events: none;
  text-align: center;
  line-height: 1.15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.orbit-node .node-tag {
  display: block;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(20, 184, 166, 0.2);
  color: #0f766e;
}

.orbit-node .node-tag-custom {
  background: rgba(124, 58, 237, 0.15);
  color: #5b21b6;
}

.orbit-node .node-domain {
  font-size: 0.55rem;
  font-weight: 500;
  color: #64748b;
  text-transform: lowercase;
}

.orbit-node-remove {
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: #dc2626;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  z-index: 3;
  padding: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.orbit-node-remove:hover {
  background: #b91c1c;
}

.orbit-node-add {
  background: rgba(0, 102, 204, 0.25);
  border: 2px dashed rgba(255, 255, 255, 0.65);
  color: #fff;
  width: 100%;
  height: 100%;
}

.orbit-node-add .node-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
}

.orbit-node-add .add-plus {
  display: block;
  font-size: 1.25rem;
  line-height: 1;
  margin-bottom: 2px;
}

.orbit-node-add:hover,
.orbit-node-add:focus-visible {
  background: rgba(0, 102, 204, 0.45);
  border-color: #fff;
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(0, 102, 204, 0.55);
}

.orbit-toolbar {
  padding: 16px 20px 20px;
  background: rgba(0, 0, 0, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.orbit-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 10px;
}

.orbit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
}

.orbit-btn-primary {
  background: var(--cta-primary, #0066cc);
  color: #fff;
}

.orbit-btn-primary:hover {
  background: var(--cta-hover, #0052a3);
}

.orbit-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.orbit-btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.22);
}

.orbit-btn-secondary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.orbit-btn-remove {
  background: rgba(220, 38, 38, 0.2);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.55);
}

.orbit-btn-remove:hover:not(:disabled) {
  background: rgba(220, 38, 38, 0.45);
  color: #fff;
}

.orbit-btn-remove:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.orbit-btn-icon {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.orbit-hint {
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.delllusion-field-hint {
    font-size: 0.8rem;
    color: var(--text-secondary, #64748b);
    margin: 0.25rem 0 0.75rem;
    line-height: 1.4;
}

.label-optional {
    font-weight: 400;
    color: var(--text-secondary, #64748b);
    font-size: 0.85em;
}

.node-tag-llm {
    display: inline-block;
    margin-left: 0.25rem;
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: rgba(124, 58, 237, 0.15);
    color: #6d28d9;
    vertical-align: middle;
}

.modal-lead {
  margin: -8px 0 16px;
  font-size: 0.9rem;
  color: var(--text-secondary, #64748b);
  line-height: 1.5;
}

.delllusion-kb-selected {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cta-primary, #0066cc);
  margin: 0 0 8px;
}

.modal-actions-footer {
  margin-top: 16px;
  padding-top: 0;
  border-top: none;
}

.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.panels-layout {
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "discussion discussion"
    "script conclusion";
  align-items: start;
}

.panel-discussion {
  grid-area: discussion;
}

.panel-script {
  grid-area: script;
}

.conclusion-panel {
  grid-area: conclusion;
}

.deliberation-method-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(99, 102, 241, 0.04));
  border: 1px solid rgba(124, 58, 237, 0.12);
}

.deliberation-method-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-secondary, #64748b);
}

.delllusion-select {
  width: 100%;
  min-height: 40px;
}

#deliberationMethodHint {
  grid-column: 1 / -1;
  margin: 0;
}

.transcript-primary {
  min-height: min(52vh, 520px);
  max-height: min(72vh, 720px);
}

.conclusion-method-summary {
  font-size: 0.85rem;
  color: var(--text-secondary, #64748b);
  margin: 0 0 10px;
}

.conclusion-blog-wrap {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.conclusion-blog-title {
  margin: 0 0 4px;
  font-size: 1rem;
}

.conclusion-blog-lead {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--text-secondary, #64748b);
}

.conclusion-blog-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(48vh, 480px);
  overflow-y: auto;
  padding: 4px 2px 8px;
}

.blog-comment {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.blog-comment-user {
  border-left: 3px solid #7c3aed;
  background: rgba(124, 58, 237, 0.04);
}

.blog-comment-master {
  border-left: 3px solid #0f766e;
  background: rgba(15, 118, 110, 0.04);
}

.blog-comment-specialist {
  border-left: 3px solid #6366f1;
}

.blog-comment-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.8rem;
}

.blog-comment-who {
  font-weight: 700;
  color: #0f172a;
}

.blog-comment-meta {
  color: #64748b;
  font-size: 0.75rem;
}

.blog-comment-body {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #1e293b;
  white-space: pre-wrap;
  word-break: break-word;
}

.discuss-secondary-row {
  flex-wrap: wrap;
}

.delllusion-script-hint,
.orbit-intro--short {
  display: none;
}

.section-heading-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.section-heading-row .section-heading {
  margin: 0;
}

.pdf-export-root {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 210mm;
  padding: 16mm;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11pt;
  line-height: 1.45;
  color: #0a1929;
}

@media (max-width: 900px) {
  .panels,
  .panels-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "discussion"
      "script"
      "conclusion";
  }
  .deliberation-method-bar {
    grid-template-columns: 1fr;
  }
  .orbit-stage { height: 320px; }
  .orbit-toolbar-actions { flex-wrap: wrap; justify-content: center; }
  .orbit-btn { justify-content: center; }
  .orbit-node-wrap,
  .orbit-node-wrap-add {
    width: 72px;
    height: 72px;
    margin-left: -36px;
    margin-top: -36px;
  }
  .community-examples-section {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 900px) {
  .delllusion-hero-grid {
    grid-template-columns: 1fr;
  }
  .delllusion-auth-rail {
    position: static;
    max-width: 420px;
  }
  .hero-deliberation-art {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .delllusion-hero {
    padding: 72px 12px 24px;
  }
  .hero-orbit-anchor {
    left: 42%;
    top: 48%;
  }
  .hero-orbit-expert {
    font-size: 0.48rem;
  }
  .discussion-composer-input-row {
    flex-wrap: wrap;
  }
  .discussion-composer-input {
    flex: 1 1 100%;
    min-width: 100%;
  }
  .discussion-composer-mic {
    width: 100%;
    max-width: 120px;
  }
  .discussion-primary-actions {
    justify-content: stretch;
  }
  .discussion-btn-discuss {
    flex: 1 1 100%;
    max-width: none;
  }
  .discussion-toolbar-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .discussion-toolbar-group--session {
    width: 100%;
  }
  .discussion-toolbar-group--session .discussion-btn-end {
    width: 100%;
  }
  .ask-row-voice {
    flex-wrap: wrap;
  }
  .ask-row-voice .delllusion-input {
    flex: 1 1 100%;
    min-width: 100%;
  }
  .discussion-toolbar,
  .panel.card-style,
  .community-workspace {
    padding: 12px;
  }
  .conclusion-mode-btn,
  .deliberation-node-btn {
    font-size: 0.78rem;
    padding: 6px 10px;
  }
  [data-tooltip]::after {
    left: 0;
    transform: none;
    max-width: 90vw;
  }
}

.ask-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.delllusion-input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-medium, rgba(10, 25, 41, 0.25));
  background: var(--bg-primary, #fff);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
}

.delllusion-btn-primary {
  background: var(--cta-primary, #0066cc) !important;
  color: #fff !important;
  border: none;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.delllusion-btn-primary:hover {
  background: var(--cta-hover, #0052a3) !important;
}

.delllusion-btn-outline {
  background: transparent !important;
  color: var(--cta-primary, #0066cc) !important;
  border: 1px solid var(--cta-primary, #0066cc) !important;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  margin: 0;
  white-space: nowrap;
}

.delllusion-btn-danger {
  color: #b91c1c !important;
  border-color: #b91c1c !important;
  margin: 0;
}

/* Aligned horizontal toolbars */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.btn-row--tight {
  gap: 6px;
}

/* Tooltips — hover/focus on [data-tooltip] */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 200;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  max-width: min(280px, 90vw);
  padding: 8px 10px;
  border-radius: 8px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s, visibility 0.15s;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

.info-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.15);
  color: #6d28d9;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: help;
  vertical-align: middle;
}

.delllusion-main.container {
  padding-left: 16px;
  padding-right: 16px;
  max-width: 1200px;
}

.delllusion-kb-hint {
  font-size: 0.85rem;
  color: var(--text-secondary, #64748b);
  margin: 0 0 12px;
}

.transcript {
  max-height: 360px;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary, #475569);
}

.turn {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.turn .who {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--cta-primary, #0066cc);
}

.turn-round {
  font-size: 0.7rem;
  opacity: 0.75;
  margin-right: 4px;
}

.turn.master .who { color: #7c3aed; }
.turn.user .who { color: var(--teal-accent, #0f766e); }

.conclusion {
  min-height: 80px;
  padding: 14px;
  border-radius: 10px;
  background: var(--bg-secondary, #f8fafc);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  line-height: 1.55;
}

.conclusion.empty {
  color: var(--text-secondary);
  font-style: italic;
}

.badge-clear {
  display: inline-block;
  background: var(--teal-accent, #14b8a6);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  font-weight: 600;
}

.status-line {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 10px;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 41, 0.55);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal label {
  display: block;
  margin: 12px 0 4px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.modal textarea {
  resize: vertical;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.delllusion-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 20px 0;
}

.delllusion-modal-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0 0 8px;
}

.delllusion-footer {
  padding: 24px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-light);
  background: var(--bg-primary);
}

.delllusion-footer a {
  color: var(--cta-primary);
}
