:root {
  --bg: #050816;
  --bg-2: #071b2c;
  --surface: rgba(15, 23, 40, 0.72);
  --surface-deep: rgba(7, 27, 44, 0.82);
  --text: #f1f3f5;
  --muted: #dde2e8;
  --quiet: rgba(221, 226, 232, 0.66);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(34, 214, 232, 0.28);
  --cyan: #22d6e8;
  --lime: #b7f34b;
  --orange: #ff9f1c;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  --glow-cyan: 0 0 26px rgba(34, 214, 232, 0.18);
  --glow-lime: 0 0 30px rgba(183, 243, 75, 0.18);
  --radius-lg: 34px;
  --radius-md: 24px;
  --radius-sm: 18px;
  --phase-color: var(--cyan);
  --phase-color-2: var(--lime);
  --phase-glow: rgba(34, 214, 232, 0.22);
  --phase-gradient: linear-gradient(90deg, var(--phase-color), var(--phase-color-2));
}

body[data-current-phase="human"] {
  --phase-color: var(--cyan);
  --phase-color-2: #77f3ff;
  --phase-glow: rgba(34, 214, 232, 0.24);
}

body[data-current-phase="data"] {
  --phase-color: #b66cff;
  --phase-color-2: #e1a8ff;
  --phase-glow: rgba(182, 108, 255, 0.28);
}

body[data-current-phase="collaboration"] {
  --phase-color: var(--orange);
  --phase-color-2: #ffd063;
  --phase-glow: rgba(255, 159, 28, 0.24);
}

body[data-current-phase="impact"] {
  --phase-color: #7cee92;
  --phase-color-2: var(--lime);
  --phase-glow: rgba(124, 238, 146, 0.24);
}

body[data-current-phase="human"],
body[data-current-phase="data"],
body[data-current-phase="collaboration"],
body[data-current-phase="impact"] {
  --phase-gradient: linear-gradient(90deg, var(--phase-color), var(--phase-color-2));
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  font-family: "Heebo", "Assistant", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(34, 214, 232, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(183, 243, 75, 0.09), transparent 26rem),
    radial-gradient(circle at 70% 82%, rgba(255, 159, 28, 0.08), transparent 24rem),
    linear-gradient(145deg, #050816 0%, #071b2c 48%, #050816 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  z-index: -2;
  background:
    linear-gradient(rgba(34, 214, 232, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 214, 232, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 32% 30%, rgba(34, 214, 232, 0.1) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 66%, rgba(183, 243, 75, 0.12) 0 1px, transparent 2px);
  background-size: 46px 46px, 46px 46px, 118px 118px, 142px 142px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.45) 70%, transparent);
}

body::after {
  z-index: -1;
  opacity: 0.78;
  background:
    radial-gradient(circle at 14% 18%, rgba(34, 214, 232, 0.36) 0 3px, transparent 4px),
    radial-gradient(circle at 28% 54%, rgba(183, 243, 75, 0.34) 0 4px, transparent 5px),
    radial-gradient(circle at 45% 32%, rgba(34, 214, 232, 0.22) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 24%, rgba(255, 159, 28, 0.26) 0 3px, transparent 4px),
    radial-gradient(circle at 84% 72%, rgba(34, 214, 232, 0.3) 0 3px, transparent 4px),
    linear-gradient(118deg, transparent 8%, rgba(34, 214, 232, 0.08) 8.2%, transparent 30%),
    linear-gradient(42deg, transparent 18%, rgba(183, 243, 75, 0.06) 18.2%, transparent 44%),
    repeating-radial-gradient(ellipse at 18% 80%, rgba(34, 214, 232, 0.045) 0 1px, transparent 2px 18px);
  filter: blur(0.1px);
  animation: ambientFlow 18s ease-in-out infinite alternate;
}

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

button {
  cursor: pointer;
}

.app-shell {
  position: relative;
  isolation: isolate;
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 18px;
}

.app-shell::before {
  position: absolute;
  z-index: 0;
  top: 150px;
  right: 34px;
  left: 34px;
  height: 260px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(34, 214, 232, 0.08);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 50%, rgba(34, 214, 232, 0.22) 0 7px, transparent 8px),
    radial-gradient(circle at 52% 42%, rgba(183, 243, 75, 0.16) 0 6px, transparent 7px),
    radial-gradient(circle at 82% 58%, rgba(255, 159, 28, 0.18) 0 5px, transparent 6px);
  mask-image: linear-gradient(to left, transparent, #000 14%, #000 86%, transparent);
  opacity: 0.56;
}

main,
.credit-footer {
  position: relative;
  z-index: 1;
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  direction: ltr;
  margin-bottom: 14px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: clamp(6px, 1vw, 16px);
}

.eilab-title {
  display: grid;
  justify-items: start;
  line-height: 1;
}

.city-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  direction: rtl;
  margin-right: clamp(12px, 3vw, 44px);
}

.city-logo {
  display: none;
  width: clamp(86px, 10vw, 132px);
  height: 48px;
  object-fit: contain;
  object-position: center;
  padding: 0;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 0 18px rgba(34, 214, 232, 0.13));
}

.eyebrow,
.phase-label,
.status-kicker {
  margin: 0;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(34, 214, 232, 0.32);
}

.eilab-title .eyebrow {
  margin-top: 6px;
  color: var(--text);
  font-size: clamp(0.56rem, 0.9vw, 0.74rem);
  text-shadow: 0 0 14px rgba(241, 243, 245, 0.16);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5.2vw, 4.35rem);
  line-height: 0.78;
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 30px rgba(34, 214, 232, 0.22);
}

.program-pill,
.live-badge {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(15, 23, 40, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--glow-cyan);
  color: var(--muted);
  padding: 10px 18px;
  font-size: 0.94rem;
  font-weight: 800;
  backdrop-filter: blur(18px);
}

.mode-switch {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: min(540px, 100%);
  margin: 0 0 14px auto;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 26px rgba(34, 214, 232, 0.04);
  backdrop-filter: blur(18px);
}

.mode-button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 12px 14px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.mode-button:hover {
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(34, 214, 232, 0.18);
}

.mode-button.active {
  background: linear-gradient(135deg, var(--text), rgba(221, 226, 232, 0.9));
  color: #0a1020;
  box-shadow: 0 0 28px rgba(34, 214, 232, 0.14);
}

.app-shell:has(#participantView.active) .mode-switch {
  display: none;
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: softReveal 360ms ease both;
}

.participant-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
}

.question-card,
.status-panel,
.control-panel,
.live-map,
.answers-stream {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--surface);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.question-card::before,
.status-panel::before,
.control-panel::before,
.live-map::before,
.answers-stream::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 20% 16%, rgba(34, 214, 232, 0.13), transparent 14rem),
    radial-gradient(circle at 84% 28%, rgba(183, 243, 75, 0.08), transparent 12rem),
    linear-gradient(125deg, transparent 0 40%, rgba(34, 214, 232, 0.05) 40.2%, transparent 58%);
}

.question-card::after,
.live-map::after {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 72px;
  height: 72px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(160, 245, 255, 0.26);
  border-radius: 48% 52% 55% 45% / 52% 44% 56% 48%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.46) 0 3px, transparent 8px),
    radial-gradient(circle at 68% 72%, rgba(183, 243, 75, 0.18), transparent 22px),
    radial-gradient(circle at 45% 48%, rgba(34, 214, 232, 0.13), transparent 28px),
    conic-gradient(from 90deg, transparent, rgba(34, 214, 232, 0.22), transparent, rgba(183, 243, 75, 0.18), transparent);
  box-shadow:
    inset 9px 10px 22px rgba(255, 255, 255, 0.09),
    inset -13px -16px 24px rgba(34, 214, 232, 0.08),
    0 0 28px rgba(34, 214, 232, 0.12);
  backdrop-filter: blur(7px) saturate(130%);
  opacity: 0.72;
  animation: bubbleFieldDrift 8.5s ease-in-out infinite, bubbleSkin 11s ease-in-out infinite;
}

.question-card {
  min-height: calc(100vh - 132px);
  padding: clamp(28px, 3.4vw, 44px);
}

.phase-meta {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 800;
}

.phase-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(34, 214, 232, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  padding: 5px 13px;
}

.progress-track {
  position: relative;
  height: 12px;
  margin: 14px 0 28px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.35);
}

.progress-track::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0 1px, transparent 1.5px);
  background-size: 22px 12px;
  opacity: 0.28;
}

.progress-fill {
  position: relative;
  width: 33.333%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  box-shadow: var(--glow-lime);
  transition: width 280ms ease;
}

.question-card h2 {
  position: relative;
  max-width: 820px;
  margin: 10px 0 14px;
  font-size: clamp(2.45rem, 4.3vw, 3.65rem);
  line-height: 1.02;
  font-weight: 900;
  color: var(--text);
  text-wrap: balance;
}

.question-help,
.panel-copy,
.status-panel p {
  position: relative;
  max-width: 760px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.58;
}

.answer-form {
  position: relative;
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-top: 20px;
}

.identity-fields {
  display: grid;
  gap: 12px;
}

.participant-lookup-wrap {
  position: relative;
}

.participant-suggestions {
  position: absolute;
  z-index: 40;
  inset-inline: 0;
  top: calc(100% + 6px);
  display: grid;
  gap: 6px;
  max-height: min(280px, 48vh);
  overflow: auto;
  border: 1px solid rgba(34, 214, 232, 0.24);
  border-radius: 18px;
  background: rgba(11, 23, 40, 0.98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32), 0 0 24px rgba(34, 214, 232, 0.12);
  padding: 8px;
}

.participant-suggestions[hidden] {
  display: none;
}

.participant-suggestion {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 10px 12px;
  text-align: right;
}

.participant-suggestion:hover,
.participant-suggestion:focus-visible {
  border-color: rgba(34, 214, 232, 0.44);
  background: rgba(34, 214, 232, 0.1);
  outline: none;
}

.participant-suggestion strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.participant-suggestion span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.manual-identity-fields {
  display: grid;
  gap: 12px;
}

.participant-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(34, 214, 232, 0.18);
  border-radius: 18px;
  background: rgba(5, 8, 22, 0.34);
  color: var(--muted);
  padding: 10px 12px;
  font-weight: 800;
}

.participant-identity[hidden],
.identity-fields[hidden],
.manual-identity-fields[hidden] {
  display: none;
}

.identity-edit {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
}

.identity-edit[hidden] {
  display: none;
}

.identity-edit:hover {
  border-color: rgba(34, 214, 232, 0.36);
  color: var(--cyan);
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.form-message.success {
  color: var(--lime);
}

.form-message.waiting {
  border: 1px solid color-mix(in srgb, var(--phase-color) 28%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--phase-color) 9%, transparent);
  padding: 10px 12px;
}

.form-message.error {
  color: #ffb199;
}

label {
  color: var(--text);
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(5, 8, 22, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: var(--text);
  outline: none;
  padding: 13px 16px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

select {
  direction: rtl;
  appearance: none;
  cursor: pointer;
  background:
    linear-gradient(45deg, transparent 50%, rgba(221, 226, 232, 0.78) 50%) calc(100% - 22px) 50% / 8px 8px no-repeat,
    linear-gradient(135deg, rgba(221, 226, 232, 0.78) 50%, transparent 50%) calc(100% - 16px) 50% / 8px 8px no-repeat,
    rgba(5, 8, 22, 0.54);
  padding-inline-start: 42px;
}

select option {
  background: #101a2a;
  color: var(--text);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(221, 226, 232, 0.52);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(34, 214, 232, 0.72);
  background: rgba(5, 8, 22, 0.72);
  box-shadow: 0 0 0 4px rgba(34, 214, 232, 0.12), 0 0 30px rgba(34, 214, 232, 0.12);
}

input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.primary-action,
.secondary-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-action {
  margin-top: 10px;
  background: linear-gradient(135deg, var(--lime), #d8ff83);
  box-shadow: 0 0 28px rgba(183, 243, 75, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  color: #071018;
}

.primary-action:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 0 42px rgba(183, 243, 75, 0.3);
}

.primary-action:disabled,
.secondary-action:disabled,
.ghost-action:disabled {
  cursor: not-allowed;
  transform: none;
  opacity: 0.58;
  box-shadow: none;
}

.secondary-action,
.ghost-action {
  border: 1px solid rgba(34, 214, 232, 0.34);
  background: rgba(255, 255, 255, 0.045);
  color: var(--cyan);
}

.secondary-action:hover,
.ghost-action:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 214, 232, 0.66);
  box-shadow: 0 0 28px rgba(34, 214, 232, 0.18);
}

.status-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - 132px);
  padding: 22px;
}

.pulse-orbit {
  position: relative;
  height: 178px;
  border: 1px solid rgba(34, 214, 232, 0.16);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 50%, rgba(34, 214, 232, 0.06), transparent 42%),
    linear-gradient(90deg, rgba(34, 214, 232, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(34, 214, 232, 0.055) 1px, transparent 1px);
  background-size: auto, 30px 30px, 30px 30px;
  box-shadow: inset 0 0 42px rgba(34, 214, 232, 0.055);
}

.pulse-orbit::before,
.pulse-orbit::after {
  position: absolute;
  content: "";
  height: 2px;
  border-radius: 999px;
  background-size: 180% 100%;
  transform-origin: center;
}

.pulse-orbit::before {
  top: 88px;
  right: 58px;
  width: 190px;
  background: linear-gradient(90deg, transparent, rgba(34, 214, 232, 0.64), rgba(183, 243, 75, 0.42), rgba(255, 159, 28, 0.2), transparent);
  background-size: 180% 100%;
  box-shadow: 0 0 16px rgba(34, 214, 232, 0.18);
  transform: rotate(-18deg);
  animation: routeFlow 4s linear infinite;
}

.pulse-orbit::after {
  right: 76px;
  bottom: 76px;
  width: 160px;
  background: linear-gradient(90deg, transparent, rgba(255, 159, 28, 0.28), rgba(183, 243, 75, 0.48), rgba(34, 214, 232, 0.38), transparent);
  background-size: 180% 100%;
  box-shadow: 0 0 16px rgba(183, 243, 75, 0.16);
  transform: rotate(28deg);
  animation: routeFlow 5s linear infinite reverse;
}

.pulse-orbit span {
  position: absolute;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid rgba(188, 250, 255, 0.28);
  border-radius: 48% 52% 51% 49% / 54% 46% 52% 48%;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.58) 0 4px, rgba(255, 255, 255, 0.18) 5px, transparent 13px),
    radial-gradient(circle at 72% 70%, rgba(183, 243, 75, 0.2), transparent 24px),
    radial-gradient(circle at 42% 50%, rgba(34, 214, 232, 0.16), transparent 32px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(34, 214, 232, 0.04) 42%, rgba(183, 243, 75, 0.06));
  box-shadow:
    inset 8px 10px 18px rgba(255, 255, 255, 0.08),
    inset -12px -16px 24px rgba(34, 214, 232, 0.08),
    0 0 24px rgba(34, 214, 232, 0.16);
  opacity: 0.82;
  backdrop-filter: blur(8px) saturate(142%);
  transform-origin: 48% 52%;
  animation:
    bubbleFloatA 9.5s cubic-bezier(0.45, 0, 0.2, 1) infinite,
    bubbleSkin 7.8s ease-in-out infinite;
}

.pulse-orbit span::before,
.pulse-orbit span::after {
  position: absolute;
  pointer-events: none;
  content: "";
  border-radius: inherit;
}

.pulse-orbit span::before {
  inset: 5px 7px 9px 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(ellipse at 26% 22%, rgba(255, 255, 255, 0.62), transparent 18%),
    radial-gradient(ellipse at 76% 32%, rgba(34, 214, 232, 0.24), transparent 22%),
    linear-gradient(118deg, transparent 20%, rgba(255, 255, 255, 0.12), transparent 52%);
  filter: blur(0.2px);
  mix-blend-mode: screen;
  animation: bubbleGlint 6.6s ease-in-out infinite;
}

.pulse-orbit span::after {
  inset: -20%;
  background:
    linear-gradient(105deg, transparent 22%, rgba(255, 255, 255, 0.2) 35%, transparent 48%),
    radial-gradient(circle at 64% 70%, rgba(183, 243, 75, 0.16), transparent 18%);
  opacity: 0.55;
  transform: translateX(-18%) rotate(10deg);
  animation: bubbleReflection 8.5s ease-in-out infinite;
}

.pulse-orbit span:nth-child(1) {
  top: 34px;
  right: 34px;
  width: 62px;
  height: 60px;
  border-color: rgba(34, 214, 232, 0.38);
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.58) 0 4px, rgba(255, 255, 255, 0.18) 5px, transparent 13px),
    radial-gradient(circle at 72% 70%, rgba(34, 214, 232, 0.25), transparent 24px),
    radial-gradient(circle at 42% 50%, rgba(11, 230, 204, 0.18), transparent 32px),
    linear-gradient(135deg, rgba(34, 214, 232, 0.14), rgba(183, 243, 75, 0.04) 50%, rgba(255, 255, 255, 0.05));
  box-shadow:
    inset 8px 10px 18px rgba(255, 255, 255, 0.08),
    inset -12px -16px 24px rgba(34, 214, 232, 0.1),
    0 0 26px rgba(34, 214, 232, 0.2);
  animation-name: bubbleFloatA, bubbleSkin;
  animation-duration: 10.8s, 8.4s;
}

.pulse-orbit span:nth-child(2) {
  top: 98px;
  left: 58px;
  width: 54px;
  height: 57px;
  border-color: rgba(255, 225, 172, 0.24);
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.52) 0 4px, transparent 12px),
    radial-gradient(circle at 70% 74%, rgba(255, 159, 28, 0.16), transparent 24px),
    radial-gradient(circle at 44% 48%, rgba(34, 214, 232, 0.12), transparent 30px),
    linear-gradient(135deg, rgba(255, 159, 28, 0.08), rgba(34, 214, 232, 0.05));
  box-shadow:
    inset 8px 10px 18px rgba(255, 255, 255, 0.07),
    inset -12px -16px 24px rgba(255, 159, 28, 0.06),
    0 0 22px rgba(255, 159, 28, 0.11);
  animation-name: bubbleFloatB, bubbleSkin;
  animation-duration: 12.4s, 9.2s;
  animation-delay: -2.1s, -1.4s;
}

.pulse-orbit span:nth-child(3) {
  right: 112px;
  bottom: 24px;
  width: 56px;
  height: 54px;
  border-color: rgba(211, 255, 126, 0.26);
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.5) 0 4px, transparent 12px),
    radial-gradient(circle at 70% 72%, rgba(183, 243, 75, 0.22), transparent 25px),
    radial-gradient(circle at 42% 50%, rgba(34, 214, 232, 0.11), transparent 30px),
    linear-gradient(135deg, rgba(183, 243, 75, 0.09), rgba(34, 214, 232, 0.045));
  box-shadow:
    inset 8px 10px 18px rgba(255, 255, 255, 0.07),
    inset -12px -16px 24px rgba(183, 243, 75, 0.07),
    0 0 22px rgba(183, 243, 75, 0.14);
  animation-name: bubbleFloatC, bubbleSkin;
  animation-duration: 11.6s, 10.5s;
  animation-delay: -3.8s, -2.5s;
}

.pulse-orbit span:nth-child(1)::after {
  background:
    linear-gradient(105deg, transparent 22%, rgba(34, 214, 232, 0.24) 35%, transparent 48%),
    radial-gradient(circle at 64% 70%, rgba(255, 255, 255, 0.14), transparent 18%);
}

.pulse-orbit span:nth-child(2)::after {
  background:
    linear-gradient(105deg, transparent 22%, rgba(255, 159, 28, 0.22) 35%, transparent 48%),
    radial-gradient(circle at 64% 70%, rgba(34, 214, 232, 0.13), transparent 18%);
}

.pulse-orbit span:nth-child(3)::after {
  background:
    linear-gradient(105deg, transparent 22%, rgba(183, 243, 75, 0.22) 35%, transparent 48%),
    radial-gradient(circle at 64% 70%, rgba(255, 255, 255, 0.13), transparent 18%);
}

.status-panel h3 {
  position: relative;
  margin: 10px 0;
  font-size: 1.6rem;
}

.mini-stats,
.insight-strip {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini-stats div,
.insight-strip div {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 18px rgba(34, 214, 232, 0.035);
  padding: 15px;
}

.mini-stats strong,
.insight-strip strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--lime);
  text-shadow: 0 0 18px rgba(183, 243, 75, 0.22);
}

.mini-stats span,
.insight-strip span {
  color: var(--quiet);
  font-size: 0.88rem;
  font-weight: 800;
}

.admin-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr) 340px;
  gap: 18px;
  min-height: calc(100vh - 132px);
}

.control-panel,
.live-map,
.answers-stream {
  padding: 22px;
}

.control-panel h2,
.live-map h2 {
  position: relative;
  margin: 8px 0 12px;
  font-size: 2rem;
  line-height: 1.08;
}

.phase-controls {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.phase-chip {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 15px 16px;
  text-align: right;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.phase-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 214, 232, 0.36);
  box-shadow: var(--glow-cyan);
}

.phase-chip.active {
  border-color: rgba(34, 214, 232, 0.58);
  background: linear-gradient(135deg, rgba(34, 214, 232, 0.16), rgba(183, 243, 75, 0.06));
  box-shadow: 0 0 32px rgba(34, 214, 232, 0.14);
}

.phase-chip strong {
  font-size: 1.04rem;
}

.phase-chip span {
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-actions {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.admin-quick-actions {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.admin-quick-actions .ghost-action {
  width: 100%;
  min-height: 38px;
  justify-content: center;
}

.admin-quick-actions .reset-action {
  grid-column: 1 / -1;
  border-color: rgba(255, 159, 28, 0.38);
  color: #ffd063;
}

.admin-quick-actions .reset-action:hover {
  border-color: rgba(255, 159, 28, 0.72);
  box-shadow: 0 0 28px rgba(255, 159, 28, 0.16);
}

.map-header,
.stream-header {
  position: relative;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
  font-weight: 900;
}

.live-badge span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 16px rgba(183, 243, 75, 0.62);
  animation: nodePulse 2.4s ease-in-out infinite;
}

.insight-strip {
  grid-template-columns: repeat(3, 1fr);
  margin: 20px 0;
}

.cluster-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cluster-card {
  position: relative;
  min-height: 138px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 20%, rgba(34, 214, 232, 0.12), transparent 7rem),
    rgba(5, 8, 22, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 18px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.cluster-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 214, 232, 0.34);
  box-shadow: 0 0 34px rgba(34, 214, 232, 0.12);
}

.cluster-card::after {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 42px;
  height: 42px;
  content: "";
  border: 1px solid rgba(34, 214, 232, 0.24);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 243, 75, 0.22) 0 5px, transparent 6px);
}

.cluster-card strong {
  position: relative;
  display: block;
  color: var(--text);
  font-size: 1.18rem;
}

.cluster-card .cluster-count {
  position: relative;
  color: var(--lime);
  font-size: 2.2rem;
  font-weight: 900;
  text-shadow: 0 0 20px rgba(183, 243, 75, 0.22);
}

.cluster-card .cluster-signal {
  position: relative;
  margin: 0 8px 8px 0;
  padding: 4px 9px;
  font-size: 0.72rem;
}

.cluster-card p {
  position: relative;
  color: var(--muted);
  line-height: 1.48;
}

.answers-stream {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.screen-stage {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  height: calc(100vh - 154px);
  min-height: 620px;
}

.app-shell:has(#screenView.active) {
  height: 100vh;
  padding: 8px 12px;
  overflow: hidden;
}

.app-shell:has(#screenView.active) .topbar {
  margin-bottom: 6px;
}

.app-shell:has(#screenView.active) .brand-lockup {
  gap: 10px;
  margin-left: 16px;
}

.app-shell:has(#screenView.active) .city-logo {
  width: 74px;
  height: 34px;
}

.app-shell:has(#screenView.active) h1 {
  font-size: clamp(2rem, 3.2vw, 2.85rem);
}

.app-shell:has(#screenView.active) .eilab-title .eyebrow {
  margin-top: 3px;
  font-size: 0.52rem;
}

.app-shell:has(#screenView.active) .program-pill {
  padding: 7px 14px;
  font-size: 0.82rem;
}

.app-shell:has(#screenView.active) .mode-switch {
  width: min(460px, 100%);
  margin-bottom: 8px;
  padding: 5px;
}

.app-shell:has(#screenView.active) .mode-button {
  padding: 8px 10px;
  font-size: 0.92rem;
}

.app-shell:has(#screenView.active) .screen-stage {
  height: calc(100vh - 112px);
  min-height: 0;
  gap: 10px;
}

.app-shell:has(#screenView.active) .credit-footer {
  display: none;
}

.app-shell:has(#screenView.active) .screen-hero {
  min-height: 68px;
  padding: 12px 22px;
}

.app-shell:has(#screenView.active) .screen-hero h2 {
  margin: 3px 0 2px;
  font-size: clamp(1.55rem, 2.7vw, 2.6rem);
}

.app-shell:has(#screenView.active) .screen-hero p,
.app-shell:has(#screenView.active) .screen-status {
  font-size: 0.86rem;
}

.app-shell:has(#screenView.active) .screen-status {
  min-height: 40px;
  padding: 8px 16px;
}

.app-shell:has(#screenView.active) .screen-network {
  gap: 12px;
  padding: 12px;
}

.app-shell:has(#screenView.active) .screen-source-panel {
  padding: 14px;
  border-radius: 24px;
}

.app-shell:has(#screenView.active) .source-group {
  padding: 10px 12px;
  border-radius: 18px;
}

.app-shell:has(#screenView.active) .source-group h4 {
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.app-shell:has(#screenView.active) .source-item {
  padding: 5px 0;
  font-size: 0.86rem;
}

.app-shell:has(#screenView.active) .source-item strong {
  font-size: 1.05rem;
}

.app-shell:has(#screenView.active) .screen-node-map {
  border-radius: 30px;
}

.app-shell:has(#screenView.active) .insight-bubble {
  width: min(var(--bubble-size), 245px);
  height: min(var(--bubble-size), 245px);
  padding: 22px;
}

.app-shell:has(#screenView.active) .bubble-score {
  margin: 6px 0;
  font-size: clamp(2rem, 3.4vw, 3.6rem);
}

.app-shell:has(#screenView.active) .bubble-phase {
  font-size: clamp(0.95rem, 1.1vw, 1.18rem);
}

.app-shell:has(#screenView.active) .insight-bubble p {
  max-width: 210px;
  font-size: clamp(0.82rem, 1vw, 1.05rem);
}

.screen-hero,
.screen-insights,
.screen-network {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--surface);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.screen-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 112px;
  padding: 18px 28px;
}

.screen-journey-title {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  direction: rtl;
  width: 100%;
  gap: clamp(18px, 3vw, 56px);
  padding-inline: clamp(22px, 4vw, 62px);
}

.journey-title-step {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.journey-title-step strong {
  font-size: clamp(1.28rem, 2vw, 2.05rem);
  font-weight: 900;
  line-height: 1;
}

.journey-title-step span {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.82rem, 1.04vw, 1.08rem);
  font-weight: 900;
  line-height: 1.15;
}

.title-human strong {
  color: var(--cyan);
}

.title-data strong {
  color: #8fa2ff;
}

.title-collaboration strong {
  color: #ff9f1c;
}

.title-impact strong {
  color: #7cee92;
}

.screen-hero h2 {
  margin: 6px 0 4px;
  font-size: clamp(1.8rem, 3.2vw, 3.25rem);
  line-height: 0.95;
}

.screen-hero p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.flow-axis {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(34, 214, 232, 0.15);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(183, 243, 75, 0.1), rgba(34, 214, 232, 0.08), rgba(168, 123, 255, 0.1)),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 26px rgba(34, 214, 232, 0.055), var(--glow-cyan);
  padding: 10px;
  backdrop-filter: blur(18px);
}

.flow-axis::before {
  position: absolute;
  top: 50%;
  right: 8%;
  left: 8%;
  height: 2px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(183, 243, 75, 0.12), rgba(34, 214, 232, 0.62), rgba(168, 123, 255, 0.42), rgba(255, 159, 28, 0.18));
  background-size: 180% 100%;
  transform: translateY(-50%);
  animation: routeFlow 5s linear infinite;
}

.flow-axis div {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(5, 8, 22, 0.58);
  color: var(--muted);
  padding: 8px 12px;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
}

.flow-axis strong {
  color: var(--text);
  font-weight: 900;
}

.flow-arrow {
  color: var(--cyan);
  font-weight: 900;
  text-shadow: 0 0 16px rgba(34, 214, 232, 0.46);
}

.screen-status {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  border: 1px solid rgba(34, 214, 232, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--lime);
  padding: 12px 22px;
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow: var(--glow-cyan);
}

.screen-network {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
  padding: 18px;
}

.screen-node-map {
  position: relative;
  min-height: 0;
  height: 100%;
  border: 1px solid rgba(34, 214, 232, 0.14);
  border-radius: 38px;
  background:
    linear-gradient(rgba(34, 214, 232, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 214, 232, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(34, 214, 232, 0.1), transparent 24rem);
  background-size: 48px 48px, 48px 48px, auto;
  overflow: hidden;
}

.screen-node-map::before,
.screen-node-map::after {
  position: absolute;
  content: "";
  height: 3px;
  border-radius: 999px;
  background-size: 180% 100%;
  pointer-events: none;
}

.screen-node-map::before {
  top: 46%;
  right: 19%;
  width: 58%;
  background: linear-gradient(90deg, transparent, rgba(34, 214, 232, 0.56), rgba(183, 243, 75, 0.42), rgba(255, 159, 28, 0.18), transparent);
  transform: rotate(-14deg);
  animation: routeFlow 5s linear infinite;
}

.screen-node-map::after {
  top: 55%;
  right: 27%;
  width: 44%;
  background: linear-gradient(90deg, transparent, rgba(255, 159, 28, 0.26), rgba(183, 243, 75, 0.42), rgba(34, 214, 232, 0.44), transparent);
  transform: rotate(28deg);
  animation: routeFlow 6s linear infinite reverse;
}

.insight-bubble {
  --bubble-size: 220px;
  position: absolute;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  width: var(--bubble-size);
  height: var(--bubble-size);
  overflow: hidden;
  border: 1px solid rgba(188, 250, 255, 0.28);
  border-radius: 48% 52% 51% 49% / 54% 46% 52% 48%;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.58) 0 5px, rgba(255, 255, 255, 0.16) 6px, transparent 18px),
    radial-gradient(circle at 72% 70%, rgba(183, 243, 75, 0.2), transparent 44%),
    radial-gradient(circle at 42% 50%, rgba(34, 214, 232, 0.18), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(34, 214, 232, 0.05) 44%, rgba(183, 243, 75, 0.06));
  box-shadow:
    inset 12px 15px 32px rgba(255, 255, 255, 0.08),
    inset -18px -22px 34px rgba(34, 214, 232, 0.08),
    0 0 42px rgba(34, 214, 232, 0.18);
  padding: 30px;
  text-align: center;
  backdrop-filter: blur(10px) saturate(145%);
  animation: bubbleFloatA 11s cubic-bezier(0.45, 0, 0.2, 1) infinite, bubbleSkin 8s ease-in-out infinite;
}

.insight-bubble::before,
.insight-bubble::after {
  position: absolute;
  pointer-events: none;
  content: "";
  border-radius: inherit;
}

.insight-bubble::before {
  inset: 10px 14px 18px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(ellipse at 24% 18%, rgba(255, 255, 255, 0.58), transparent 18%),
    linear-gradient(118deg, transparent 22%, rgba(255, 255, 255, 0.11), transparent 54%);
  mix-blend-mode: screen;
  animation: bubbleGlint 7s ease-in-out infinite;
}

.insight-bubble::after {
  inset: -18%;
  background: linear-gradient(105deg, transparent 22%, rgba(255, 255, 255, 0.16) 35%, transparent 48%);
  opacity: 0.52;
  animation: bubbleReflection 9s ease-in-out infinite;
}

.insight-bubble.active {
  border-color: rgba(183, 243, 75, 0.32);
  box-shadow:
    inset 12px 15px 32px rgba(255, 255, 255, 0.08),
    inset -18px -22px 34px rgba(183, 243, 75, 0.08),
    0 0 54px rgba(183, 243, 75, 0.2);
}

.insight-bubble p,
.bubble-score,
.bubble-phase {
  position: relative;
  z-index: 2;
}

.bubble-phase {
  color: var(--text);
  font-size: clamp(1.1rem, 1.4vw, 1.45rem);
  font-weight: 900;
}

.bubble-score {
  color: var(--lime);
  margin: 10px 0;
  font-size: clamp(2.6rem, 4.2vw, 4.8rem);
  font-weight: 900;
  line-height: 0.9;
  text-shadow: 0 0 26px rgba(183, 243, 75, 0.28);
}

.insight-bubble p {
  max-width: 260px;
  margin: 0;
  color: var(--text);
  font-size: clamp(1rem, 1.25vw, 1.35rem);
  font-weight: 800;
  line-height: 1.35;
}

.bubble-1 {
  top: 8%;
  right: 10%;
}

.bubble-2 {
  top: 22%;
  left: 9%;
  animation-name: bubbleFloatB, bubbleSkin;
  animation-delay: -2.2s, -1s;
}

.bubble-3 {
  right: 36%;
  bottom: 7%;
  animation-name: bubbleFloatC, bubbleSkin;
  animation-delay: -3.6s, -2s;
}

.phase-bubble-1 {
  border-color: rgba(183, 243, 75, 0.34);
  box-shadow:
    inset 12px 15px 32px rgba(255, 255, 255, 0.08),
    inset -18px -22px 34px rgba(183, 243, 75, 0.09),
    0 0 54px rgba(183, 243, 75, 0.18);
}

.phase-bubble-1 .bubble-score {
  color: var(--lime);
}

.phase-bubble-2 {
  border-color: rgba(168, 123, 255, 0.36);
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.56) 0 5px, rgba(255, 255, 255, 0.14) 6px, transparent 18px),
    radial-gradient(circle at 72% 70%, rgba(168, 123, 255, 0.22), transparent 44%),
    radial-gradient(circle at 42% 50%, rgba(34, 214, 232, 0.12), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(168, 123, 255, 0.07) 44%, rgba(34, 214, 232, 0.04));
  box-shadow:
    inset 12px 15px 32px rgba(255, 255, 255, 0.08),
    inset -18px -22px 34px rgba(168, 123, 255, 0.1),
    0 0 54px rgba(168, 123, 255, 0.18);
}

.phase-bubble-2 .bubble-score {
  color: #b997ff;
  text-shadow: 0 0 26px rgba(168, 123, 255, 0.32);
}

.phase-bubble-3 {
  border-color: rgba(34, 214, 232, 0.38);
  box-shadow:
    inset 12px 15px 32px rgba(255, 255, 255, 0.08),
    inset -18px -22px 34px rgba(34, 214, 232, 0.1),
    0 0 54px rgba(34, 214, 232, 0.2);
}

.phase-bubble-3 .bubble-score {
  color: var(--cyan);
  text-shadow: 0 0 26px rgba(34, 214, 232, 0.34);
}

.screen-source-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.045);
  padding: 18px;
}

.screen-source-list {
  display: grid;
  gap: 10px;
  overflow: auto;
}

.source-group {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(5, 8, 22, 0.36);
  padding: 14px;
}

.source-group h4 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1rem;
}

.source-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  color: var(--muted);
  font-weight: 800;
}

.source-item + .source-item {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.source-item strong {
  color: var(--lime);
  font-size: 1.25rem;
}

.answers-list {
  position: relative;
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 270px);
  overflow: auto;
  padding-left: 4px;
}

.answer-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  padding: 15px;
}

.answer-item::before {
  position: absolute;
  top: 17px;
  right: 14px;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(34, 214, 232, 0.58);
}

.answer-item div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-right: 16px;
}

.answer-authority {
  color: var(--quiet);
  font-size: 0.85rem;
  font-weight: 800;
}

.answer-text {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.54;
}

.credit-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  direction: ltr;
  margin: 16px auto 0;
  padding: 12px 12px 6px;
  color: rgba(241, 243, 245, 0.72);
  text-align: right;
}

.credit-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border: 1px solid rgba(34, 214, 232, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 18px rgba(34, 214, 232, 0.12);
}

.credit-footer p {
  direction: rtl;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 900;
}

.credit-footer span {
  display: block;
  direction: rtl;
  color: var(--quiet);
  font-size: 0.86rem;
  font-weight: 700;
}

.thank-you-panel[hidden] {
  display: none;
}

.thank-you-panel {
  display: grid;
  min-height: calc(100vh - 132px);
  place-items: center;
  padding: clamp(24px, 5vw, 58px);
}

.thank-you-content {
  display: grid;
  justify-items: center;
  width: min(720px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 18%, rgba(34, 214, 232, 0.18), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(15, 23, 40, 0.74);
  box-shadow: var(--shadow), 0 0 42px rgba(34, 214, 232, 0.12);
  padding: clamp(26px, 5vw, 52px);
  text-align: center;
  backdrop-filter: blur(18px);
}

.thank-you-kicker {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0;
}

.thank-you-content h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(2rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 0.95;
}

.thank-you-content > p:not(.thank-you-kicker) {
  max-width: 520px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  font-weight: 800;
  line-height: 1.5;
}

.creator-signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  direction: rtl;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
}

.creator-signature img {
  width: clamp(82px, 13vw, 118px);
  height: clamp(82px, 13vw, 118px);
  object-fit: contain;
  border: 1px solid rgba(34, 214, 232, 0.28);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 34px rgba(34, 214, 232, 0.18);
}

.creator-signature div {
  display: grid;
  justify-items: start;
  text-align: right;
}

.creator-signature strong {
  color: var(--text);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 900;
}

.creator-signature span {
  direction: ltr;
  color: var(--quiet);
  font-size: clamp(0.9rem, 1.3vw, 1.04rem);
  font-weight: 800;
}

.empty-state {
  border: 1px dashed rgba(34, 214, 232, 0.26);
  border-radius: 22px;
  color: var(--muted);
  padding: 20px;
  text-align: center;
}

.locked .question-card {
  border-color: rgba(255, 159, 28, 0.58);
  box-shadow: var(--shadow), 0 0 38px rgba(255, 159, 28, 0.12);
}

@keyframes ambientFlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-18px, 12px, 0) scale(1.02);
  }
}

@keyframes softReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nodePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.78;
  }

  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@keyframes bubbleFloatA {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1) skew(0deg, 0deg);
    border-radius: 48% 52% 51% 49% / 54% 46% 52% 48%;
  }

  22% {
    transform: translate3d(-5px, -8px, 0) scale(1.025, 0.985) skew(-1deg, 0.6deg);
    border-radius: 53% 47% 49% 51% / 47% 55% 45% 53%;
  }

  51% {
    transform: translate3d(4px, -13px, 0) scale(0.985, 1.03) skew(0.7deg, -0.8deg);
    border-radius: 46% 54% 56% 44% / 55% 43% 57% 45%;
  }

  78% {
    transform: translate3d(7px, -4px, 0) scale(1.015, 1) skew(0.4deg, 0.7deg);
    border-radius: 51% 49% 47% 53% / 50% 56% 44% 50%;
  }
}

@keyframes bubbleFloatB {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1) skew(0deg, 0deg);
    border-radius: 52% 48% 47% 53% / 46% 55% 45% 54%;
  }

  28% {
    transform: translate3d(7px, -6px, 0) scale(0.99, 1.035) skew(0.8deg, -0.9deg);
    border-radius: 47% 53% 55% 45% / 53% 45% 55% 47%;
  }

  58% {
    transform: translate3d(-4px, -15px, 0) scale(1.03, 0.985) skew(-0.7deg, 0.5deg);
    border-radius: 55% 45% 50% 50% / 49% 57% 43% 51%;
  }

  83% {
    transform: translate3d(-9px, -5px, 0) scale(1.01) skew(-0.4deg, -0.5deg);
    border-radius: 49% 51% 45% 55% / 56% 44% 52% 48%;
  }
}

@keyframes bubbleFloatC {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1) skew(0deg, 0deg);
    border-radius: 49% 51% 54% 46% / 52% 47% 53% 48%;
  }

  24% {
    transform: translate3d(-8px, -4px, 0) scale(1.018, 0.992) skew(-0.6deg, 0.8deg);
    border-radius: 54% 46% 48% 52% / 45% 56% 44% 55%;
  }

  48% {
    transform: translate3d(-3px, -12px, 0) scale(0.99, 1.026) skew(0.5deg, -0.6deg);
    border-radius: 46% 54% 57% 43% / 55% 42% 58% 45%;
  }

  76% {
    transform: translate3d(6px, -8px, 0) scale(1.022) skew(0.9deg, 0.2deg);
    border-radius: 52% 48% 46% 54% / 50% 54% 46% 50%;
  }
}

@keyframes bubbleFieldDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    border-radius: 48% 52% 55% 45% / 52% 44% 56% 48%;
  }

  38% {
    transform: translate3d(5px, -8px, 0) scale(1.02, 0.99);
    border-radius: 54% 46% 49% 51% / 46% 56% 44% 54%;
  }

  70% {
    transform: translate3d(-4px, -3px, 0) scale(0.99, 1.018);
    border-radius: 46% 54% 57% 43% / 55% 43% 57% 45%;
  }
}

@keyframes satellitePresence {
  0%,
  100% {
    opacity: 0.82;
    filter: saturate(106%) brightness(0.98);
    border-radius: 48% 52% 51% 49% / 53% 47% 52% 48%;
  }

  50% {
    opacity: 0.9;
    filter: saturate(122%) brightness(1.08);
    border-radius: 52% 48% 47% 53% / 48% 54% 46% 52%;
  }
}

@keyframes processingCore {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.86;
  }

  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

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

@keyframes processingDot {
  to {
    transform: translate(-50%, -50%) rotate(360deg) translateY(-22px);
  }
}

@keyframes processingPulse {
  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

@keyframes bubbleSkin {
  0%,
  100% {
    background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    filter: saturate(112%) brightness(1);
    opacity: 0.82;
  }

  43% {
    background-position: 12% -8%, -8% 10%, 5% 4%, 0% 0%;
    filter: saturate(138%) brightness(1.08);
    opacity: 0.9;
  }

  72% {
    background-position: -8% 10%, 10% -6%, -6% 8%, 0% 0%;
    filter: saturate(124%) brightness(1.03);
    opacity: 0.78;
  }
}

@keyframes bubbleGlint {
  0%,
  100% {
    opacity: 0.52;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  44% {
    opacity: 0.86;
    transform: translate3d(5px, -4px, 0) rotate(8deg);
  }

  72% {
    opacity: 0.45;
    transform: translate3d(-3px, 3px, 0) rotate(-5deg);
  }
}

@keyframes bubbleReflection {
  0%,
  100% {
    opacity: 0.38;
    transform: translateX(-18%) rotate(10deg);
  }

  48% {
    opacity: 0.68;
    transform: translateX(12%) rotate(18deg);
  }

  78% {
    opacity: 0.46;
    transform: translateX(-4%) rotate(2deg);
  }
}

@keyframes routeFlow {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 80px 0;
  }
}

@keyframes routeFlowRtl {
  from {
    opacity: 0;
    transform: translateX(58%);
  }

  12% {
    opacity: 0.9;
  }

  82% {
    opacity: 0.9;
  }

  to {
    opacity: 0;
    transform: translateX(-58%);
  }
}

@keyframes stepGlowRtl {
  0%,
  100% {
    filter: brightness(1);
  }

  12%,
  24% {
    filter: brightness(1.28);
  }

  25%,
  100% {
    filter: brightness(1);
  }
}

@media (max-width: 1100px) {
  h1 {
    font-size: 2.8rem;
  }

  .participant-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .question-card,
  .status-panel {
    min-height: auto;
  }

  .status-panel {
    gap: 22px;
  }

  .screen-insights,
  .screen-network {
    grid-template-columns: 1fr;
  }

  .screen-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .screen-source-panel {
    min-height: 280px;
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 12px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  h1 {
    font-size: 2.3rem;
  }

  .city-lockup {
    width: 100%;
    align-items: center;
  }

  .program-pill {
    display: flex;
    flex: 1;
    align-items: center;
    min-height: 48px;
  }

  .city-logo {
    width: 112px;
  }

  .credit-footer {
    padding-top: 14px;
    justify-content: flex-start;
  }

  .mode-switch {
    width: 100%;
  }

  .mode-button {
    padding: 10px 8px;
    font-size: 0.9rem;
  }

  .question-card,
  .status-panel,
  .control-panel,
  .live-map,
  .answers-stream {
    padding: 20px;
    border-radius: 26px;
  }

  .phase-meta,
  .map-header,
  .stream-header {
    flex-direction: column;
  }

  .question-card h2 {
    font-size: 2.25rem;
  }

  .question-help,
  .panel-copy,
  .status-panel p {
    font-size: 1rem;
  }

  .cluster-board,
  .insight-strip {
    grid-template-columns: 1fr;
  }

  .screen-hero,
  .screen-insights,
  .screen-network {
    padding: 18px;
    border-radius: 26px;
  }

  .screen-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .screen-metrics {
    grid-template-columns: 1fr;
  }

  .screen-node-map {
    min-height: 720px;
  }

  .insight-bubble {
    --bubble-size: 190px;
  }

  .bubble-1 {
    top: 5%;
    right: 8%;
  }

  .bubble-2 {
    top: 28%;
    left: 6%;
  }

  .bubble-3 {
    right: 18%;
    bottom: 26%;
  }

  .bubble-4 {
    top: auto;
    right: 10%;
    bottom: 4%;
  }
}

/* Final dashboard navigation and composition lock */
.dashboard-page-actions {
  position: absolute;
  left: clamp(52px, 5vw, 96px);
  bottom: clamp(28px, 3.8vh, 52px);
  z-index: 9;
}

.dashboard-action {
  min-height: 42px;
  padding: 0 clamp(16px, 1.25vw, 24px);
  font-size: clamp(0.84rem, 0.92vw, 1.05rem);
}

.dashboard-principle-orbit > .dashboard-action {
  justify-self: start;
  margin-top: clamp(6px, 1vh, 14px);
}

/* dashboard-final rules consolidated below */

@media (max-width: 720px) {
  .dashboard-page-actions {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    justify-content: center;
    margin-top: 8px;
  }

  .dashboard-action {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .dashboard-final {
    gap: 8px;
    padding-top: 58px;
    padding-bottom: 14px;
  }

  .dashboard-final h2 {
    max-width: 94vw;
    font-size: clamp(1.7rem, 8vw, 3rem);
  }

  .dashboard-final-flow {
    width: 94vw;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .dashboard-final-node {
    min-height: 68px;
  }

  .dashboard-final-insight {
    width: 94vw;
    padding: 0;
  }

  .dashboard-final .dashboard-page-actions {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
  }
}

.app-shell:has(#screenView.active) .topbar {
  display: none;
}

.app-shell:has(#screenView.active)::before {
  display: none;
}

.app-shell:has(#screenView.active) .mode-switch {
  margin: 0 0 8px auto;
}

.app-shell:has(#screenView.active) .screen-stage {
  height: calc(100vh - 74px);
  min-height: 0;
}

.app-shell:has(#screenView.active) .screen-network {
  grid-template-columns: minmax(220px, 26%) minmax(0, 1fr);
  min-height: 0;
  align-items: stretch;
}

.app-shell:has(#screenView.active) .screen-source-panel {
  min-height: 0;
}

.app-shell:has(#screenView.active) .screen-node-map {
  height: 100%;
  min-height: 0;
}

.app-shell:has(#screenView.active) .bubble-1 {
  top: 6%;
  right: 11%;
}

.app-shell:has(#screenView.active) .bubble-2 {
  top: 24%;
  left: 8%;
}

.app-shell:has(#screenView.active) .bubble-3 {
  right: 37%;
  bottom: 5%;
}

.app-shell:has(#screenView.active) {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 6px;
  height: 100vh;
  padding: 8px 12px;
  overflow: hidden;
}

.app-shell:has(#screenView.active)::before {
  display: none;
}

.app-shell:has(#screenView.active) .topbar {
  display: flex;
  min-height: 58px;
  margin-bottom: 0;
}

.app-shell:has(#screenView.active) main,
.app-shell:has(#screenView.active) #screenView {
  min-height: 0;
}

.app-shell:has(#screenView.active) #screenView.active {
  display: block;
  height: 100%;
}

.app-shell:has(#screenView.active) .brand-lockup {
  gap: 10px;
  margin-left: clamp(12px, 3vw, 48px);
}

.app-shell:has(#screenView.active) .city-logo {
  width: 68px;
  height: 34px;
}

.app-shell:has(#screenView.active) h1 {
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.app-shell:has(#screenView.active) .eilab-title .eyebrow {
  margin-top: 3px;
  font-size: 0.55rem;
}

.app-shell:has(#screenView.active) .program-pill {
  padding: 7px 14px;
  font-size: 0.82rem;
}

.app-shell:has(#screenView.active) .mode-switch {
  width: min(520px, 100%);
  margin: 0 0 4px auto;
  padding: 5px;
}

.app-shell:has(#screenView.active) .mode-button {
  padding: 7px 10px;
  font-size: 0.9rem;
}

.app-shell:has(#screenView.active) .screen-stage {
  height: 100%;
  min-height: 0;
  gap: 8px;
}

.app-shell:has(#screenView.active) .screen-hero {
  min-height: 60px;
  padding: 10px 20px;
  border-radius: 28px;
}

.app-shell:has(#screenView.active) .flow-axis {
  gap: 8px;
  padding: 8px;
}

.app-shell:has(#screenView.active) .flow-axis div {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 0.78rem;
}

.app-shell:has(#screenView.active) .screen-hero h2 {
  margin: 2px 0 1px;
  font-size: clamp(1.45rem, 2.4vw, 2.35rem);
}

.app-shell:has(#screenView.active) .screen-hero p,
.app-shell:has(#screenView.active) .screen-status {
  font-size: 0.82rem;
}

.app-shell:has(#screenView.active) .screen-status {
  min-height: 38px;
  padding: 7px 15px;
}

.app-shell:has(#screenView.active) .screen-network {
  grid-template-columns: minmax(240px, 25%) minmax(0, 1fr);
  min-height: 0;
  align-items: stretch;
  gap: 10px;
  padding: 10px;
  border-radius: 28px;
}

.app-shell:has(#screenView.active) .screen-source-panel {
  min-height: 0;
  padding: 12px;
  border-radius: 22px;
}

.app-shell:has(#screenView.active) .screen-source-list {
  gap: 8px;
  overflow: hidden;
}

.app-shell:has(#screenView.active) .source-group {
  padding: 9px 11px;
  border-radius: 17px;
}

.app-shell:has(#screenView.active) .source-group h4 {
  margin-bottom: 4px;
  font-size: 0.88rem;
}

.app-shell:has(#screenView.active) .source-item {
  padding: 4px 0;
  font-size: 0.82rem;
}

.app-shell:has(#screenView.active) .source-item strong {
  font-size: 1rem;
}

.app-shell:has(#screenView.active) .screen-node-map {
  height: 100%;
  min-height: 0;
  border-radius: 28px;
}

.app-shell:has(#screenView.active) .insight-bubble {
  width: min(var(--bubble-size), 218px);
  height: min(var(--bubble-size), 218px);
  padding: 18px;
}

.app-shell:has(#screenView.active) .bubble-score {
  margin: 5px 0;
  font-size: clamp(1.9rem, 3vw, 3.15rem);
}

.app-shell:has(#screenView.active) .bubble-phase {
  font-size: clamp(0.88rem, 1vw, 1.05rem);
}

.app-shell:has(#screenView.active) .insight-bubble p {
  max-width: 178px;
  font-size: clamp(0.78rem, 0.92vw, 0.98rem);
  line-height: 1.28;
}

.app-shell:has(#screenView.active) .credit-footer {
  display: flex;
  margin: 0 auto;
  padding: 5px 12px 2px;
}

.app-shell:has(#screenView.active) .credit-logo {
  width: 38px;
  height: 38px;
  border-radius: 13px;
}

.app-shell:has(#screenView.active) .credit-footer p {
  font-size: 0.82rem;
}

.app-shell:has(#screenView.active) .credit-footer span {
  font-size: 0.74rem;
}

.app-shell:has(#participantView.active),
.app-shell:has(#adminView.active) {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 8px;
  height: 100vh;
  padding: 10px 16px 8px;
  overflow: hidden;
}

.app-shell:has(#participantView.active) main,
.app-shell:has(#adminView.active) main,
.app-shell:has(#participantView.active) #participantView,
.app-shell:has(#adminView.active) #adminView {
  min-height: 0;
}

.app-shell:has(#participantView.active) #participantView.active,
.app-shell:has(#adminView.active) #adminView.active {
  display: block;
  height: 100%;
}

.app-shell:has(#participantView.active) .topbar,
.app-shell:has(#adminView.active) .topbar {
  min-height: 60px;
  margin-bottom: 0;
}

.app-shell:has(#participantView.active) .brand-lockup,
.app-shell:has(#adminView.active) .brand-lockup {
  gap: 0;
  margin-left: clamp(6px, 1vw, 16px);
}

.app-shell:has(#participantView.active) .city-logo,
.app-shell:has(#adminView.active) .city-logo {
  display: none;
}

.app-shell:has(#participantView.active) h1,
.app-shell:has(#adminView.active) h1 {
  font-size: clamp(2rem, 3.4vw, 3.1rem);
}

.app-shell:has(#participantView.active) .eilab-title .eyebrow,
.app-shell:has(#adminView.active) .eilab-title .eyebrow {
  margin-top: 3px;
  font-size: 0.55rem;
}

.app-shell:has(#participantView.active) .program-pill,
.app-shell:has(#adminView.active) .program-pill {
  padding: 7px 14px;
  font-size: 0.82rem;
}

.app-shell:has(#participantView.active) .mode-switch,
.app-shell:has(#adminView.active) .mode-switch {
  width: min(520px, 100%);
  margin: 0 0 4px auto;
  padding: 5px;
}

.app-shell:has(#participantView.active) .mode-button,
.app-shell:has(#adminView.active) .mode-button {
  padding: 7px 10px;
  font-size: 0.9rem;
}

.app-shell:has(#participantView.active) .participant-grid {
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 12px;
  height: 100%;
  min-height: 0;
}

.app-shell:has(#participantView.active) .question-card,
.app-shell:has(#participantView.active) .status-panel {
  height: 100%;
  min-height: 0;
  padding: 16px 20px;
  border-radius: 28px;
}

.app-shell:has(#participantView.active) .phase-meta {
  font-size: 0.82rem;
}

.app-shell:has(#participantView.active) .phase-meta span {
  min-height: 26px;
  padding: 4px 10px;
}

.app-shell:has(#participantView.active) .progress-track {
  height: 8px;
  margin: 8px 0 14px;
}

.app-shell:has(#participantView.active) .question-card h2 {
  max-width: 980px;
  margin: 6px 0 8px;
  font-size: clamp(1.75rem, 3.4vw, 3.1rem);
  line-height: 0.98;
}

.app-shell:has(#participantView.active) .question-help {
  max-width: 960px;
  margin-bottom: 0;
  font-size: 0.86rem;
  line-height: 1.36;
}

.app-shell:has(#participantView.active) .answer-form {
  gap: 7px;
  max-width: 900px;
  margin-top: 10px;
}

.app-shell:has(#participantView.active) input,
.app-shell:has(#participantView.active) textarea {
  padding: 9px 14px;
}

.app-shell:has(#participantView.active) textarea {
  min-height: 84px;
  max-height: 110px;
}

.app-shell:has(#participantView.active) .primary-action {
  margin-top: 4px;
  padding: 10px 18px;
}

.app-shell:has(#participantView.active) .pulse-orbit {
  height: 130px;
}

.app-shell:has(#participantView.active) .status-panel {
  gap: 10px;
}

.app-shell:has(#participantView.active) .status-panel h3 {
  margin: 4px 0;
  font-size: 1.28rem;
}

.app-shell:has(#participantView.active) .status-panel p {
  font-size: 0.86rem;
  line-height: 1.35;
}

.app-shell:has(#participantView.active) .mini-stats {
  gap: 8px;
}

.app-shell:has(#participantView.active) .mini-stats div {
  padding: 10px;
}

.app-shell:has(#participantView.active) .mini-stats strong {
  font-size: 1.45rem;
}

.app-shell:has(#adminView.active) .admin-layout {
  grid-template-columns: 280px minmax(0, 1fr) 300px;
  gap: 12px;
  height: 100%;
  min-height: 0;
}

.app-shell:has(#adminView.active) .control-panel,
.app-shell:has(#adminView.active) .live-map,
.app-shell:has(#adminView.active) .answers-stream {
  height: 100%;
  min-height: 0;
  padding: 16px;
  border-radius: 28px;
}

.app-shell:has(#adminView.active) .control-panel h2,
.app-shell:has(#adminView.active) .live-map h2 {
  font-size: clamp(1.35rem, 2.6vw, 2.3rem);
  line-height: 1;
}

.app-shell:has(#adminView.active) .panel-copy {
  font-size: 0.86rem;
  line-height: 1.4;
}

.app-shell:has(#adminView.active) .phase-controls,
.app-shell:has(#adminView.active) .admin-actions {
  gap: 8px;
}

.app-shell:has(#adminView.active) .phase-chip {
  padding: 10px 12px;
  border-radius: 18px;
}

.app-shell:has(#adminView.active) .phase-chip span {
  font-size: 0.78rem;
}

.app-shell:has(#adminView.active) .primary-action,
.app-shell:has(#adminView.active) .secondary-action,
.app-shell:has(#adminView.active) .ghost-action {
  padding: 10px 14px;
}

.app-shell:has(#adminView.active) .insight-strip {
  gap: 8px;
}

.app-shell:has(#adminView.active) .insight-strip div {
  padding: 10px;
}

.app-shell:has(#adminView.active) .cluster-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.app-shell:has(#adminView.active) .cluster-card {
  min-height: 0;
  padding: 14px;
}

.app-shell:has(#adminView.active) .cluster-card strong {
  font-size: 1.08rem;
}

.app-shell:has(#adminView.active) .cluster-card .cluster-count {
  font-size: 1.9rem;
}

.app-shell:has(#adminView.active) .cluster-card p {
  margin-bottom: 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.app-shell:has(#adminView.active) .answers-list {
  max-height: none;
  min-height: 0;
  overflow: auto;
}

.app-shell:has(#participantView.active) .credit-footer,
.app-shell:has(#adminView.active) .credit-footer {
  margin: 0 auto;
  padding: 4px 12px 0;
}

.app-shell:has(#participantView.active) .credit-logo,
.app-shell:has(#adminView.active) .credit-logo {
  width: 38px;
  height: 38px;
  border-radius: 13px;
}

.app-shell:has(#participantView.active) .credit-footer p,
.app-shell:has(#adminView.active) .credit-footer p {
  font-size: 0.82rem;
}

.app-shell:has(#participantView.active) .credit-footer span,
.app-shell:has(#adminView.active) .credit-footer span {
  font-size: 0.74rem;
}

.app-shell:has(#participantView.active),
.app-shell:has(#adminView.active),
.app-shell:has(#screenView.active) {
  height: auto;
  min-height: 100vh;
  overflow: visible;
}

.app-shell:has(#participantView.active) main,
.app-shell:has(#adminView.active) main,
.app-shell:has(#screenView.active) main,
.app-shell:has(#participantView.active) #participantView,
.app-shell:has(#adminView.active) #adminView,
.app-shell:has(#screenView.active) #screenView {
  min-height: 0;
  height: auto;
}

.app-shell:has(#participantView.active) #participantView.active,
.app-shell:has(#adminView.active) #adminView.active,
.app-shell:has(#screenView.active) #screenView.active {
  height: auto;
}

.app-shell:has(#participantView.active) .participant-grid,
.app-shell:has(#adminView.active) .admin-layout {
  height: auto;
  min-height: calc(100vh - 190px);
}

.app-shell:has(#participantView.active) .question-card,
.app-shell:has(#participantView.active) .status-panel,
.app-shell:has(#adminView.active) .control-panel,
.app-shell:has(#adminView.active) .live-map,
.app-shell:has(#adminView.active) .answers-stream {
  height: auto;
  min-height: 0;
}

.app-shell:has(#screenView.active) .screen-stage {
  height: auto;
  min-height: calc(100vh - 190px);
}

.app-shell:has(#screenView.active) .screen-network {
  min-height: 520px;
}

.app-shell:has(#screenView.active) .screen-node-map {
  min-height: 500px;
}

@media (max-width: 860px) {
  .flow-axis {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .flow-axis::before {
    top: 10%;
    right: 50%;
    bottom: 10%;
    left: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(183, 243, 75, 0.14), rgba(34, 214, 232, 0.62), rgba(168, 123, 255, 0.42));
  }
}

body:has(#screenView.active) {
  height: 100vh;
  overflow: hidden;
}

.app-shell:has(#screenView.active) {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 6px;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  padding: 8px 12px;
}

.app-shell:has(#screenView.active) main,
.app-shell:has(#screenView.active) #screenView,
.app-shell:has(#screenView.active) #screenView.active {
  height: 100%;
  min-height: 0;
}

.app-shell:has(#screenView.active) .credit-footer {
  display: none;
}

.app-shell:has(#screenView.active) .topbar {
  min-height: 54px;
  margin-bottom: 0;
}

.app-shell:has(#screenView.active) .brand-lockup {
  gap: 0;
  margin-left: clamp(6px, 1vw, 16px);
}

.app-shell:has(#screenView.active) .city-logo {
  display: none;
}

.app-shell:has(#screenView.active) h1 {
  font-size: clamp(1.85rem, 2.9vw, 2.7rem);
}

.app-shell:has(#screenView.active) .program-pill {
  padding: 6px 13px;
  font-size: 0.78rem;
}

.app-shell:has(#screenView.active) .mode-switch {
  display: none;
}

.app-shell:has(#screenView.active) .mode-button {
  padding: 6px 10px;
  font-size: 0.86rem;
}

.app-shell:has(#screenView.active) .screen-stage {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  height: 100%;
  min-height: 0;
}

.app-shell:has(#screenView.active) .screen-hero {
  min-height: 78px;
  padding: 11px 24px;
  border-radius: 26px;
}

.app-shell:has(#screenView.active) .screen-journey-title {
  padding-inline: clamp(28px, 4vw, 64px);
}

.app-shell:has(#screenView.active) .journey-title-step strong {
  font-size: clamp(1.25rem, 2.05vw, 2.05rem);
}

.app-shell:has(#screenView.active) .journey-title-step span {
  font-size: clamp(0.8rem, 1vw, 1.08rem);
}

.app-shell:has(#screenView.active) .flow-axis {
  display: none;
}

.app-shell:has(#screenView.active) .flow-axis::before {
  top: 50%;
  right: 13%;
  left: 13%;
  width: auto;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(124, 238, 146, 0.92) 0%,
    rgba(124, 238, 146, 0.9) 30%,
    rgba(34, 214, 232, 0.86) 42%,
    rgba(34, 214, 232, 0.9) 68%,
    rgba(255, 111, 71, 0.9) 82%,
    rgba(255, 111, 71, 0.96) 100%
  );
  transform: translateY(-50%);
}

.app-shell:has(#screenView.active) .flow-axis::after {
  position: absolute;
  top: calc(50% - 4.5px);
  right: 13%;
  left: 13%;
  height: 9px;
  content: "";
  background:
    radial-gradient(circle, rgba(218, 255, 244, 0.96) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(34, 214, 232, 0.92) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(218, 255, 244, 0.9) 0 2px, transparent 3px);
  background-position: 86% 50%, 50% 50%, 14% 50%;
  background-repeat: no-repeat;
  background-size: 18px 100%, 18px 100%, 18px 100%;
  filter: drop-shadow(0 0 8px rgba(34, 214, 232, 0.62));
  opacity: 0;
  animation: routeFlowRtl 4.6s linear infinite;
}

.app-shell:has(#screenView.active) .flow-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "index title"
    "index copy";
  column-gap: 10px;
  align-items: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 7px 14px;
  text-align: right;
}

.app-shell:has(#screenView.active) .flow-index {
  grid-area: index;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 900;
}

.app-shell:has(#screenView.active) .flow-step strong {
  grid-area: title;
  font-size: 0.92rem;
}

.app-shell:has(#screenView.active) .flow-step span:last-child {
  grid-area: copy;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.app-shell:has(#screenView.active) .flow-step-barrier {
  border-color: rgba(255, 111, 71, 0.38);
  box-shadow: 0 0 22px rgba(255, 111, 71, 0.12);
  animation: stepGlowRtl 5.4s ease-in-out infinite;
}

.app-shell:has(#screenView.active) .flow-step-partnership {
  border-color: rgba(34, 214, 232, 0.34);
  box-shadow: 0 0 22px rgba(34, 214, 232, 0.12);
  animation: stepGlowRtl 5.4s ease-in-out infinite;
  animation-delay: 1.8s;
}

.app-shell:has(#screenView.active) .flow-step-experience {
  border-color: rgba(124, 238, 146, 0.36);
  box-shadow: 0 0 22px rgba(124, 238, 146, 0.12);
  animation: stepGlowRtl 5.4s ease-in-out infinite;
  animation-delay: 3.6s;
}

.app-shell:has(#screenView.active) .screen-network {
  display: block;
  height: 100%;
  min-height: 0;
  padding: 12px;
  border-radius: 28px;
}

.app-shell:has(#screenView.active) .screen-node-map {
  --show-bubble: min(19.8vw, 34.5vh, 286px);
  position: relative;
  display: flex;
  flex-direction: row;
  direction: rtl;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 34px);
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(20px, 4vw, 54px) clamp(28px, 4vw, 64px) clamp(54px, 8vh, 88px);
  isolation: isolate;
}

.app-shell:has(#screenView.active) .screen-node-map::before {
  display: none;
}

.app-shell:has(#screenView.active) .screen-node-map::after {
  display: none;
}

.app-shell:has(#screenView.active) .journey-meter {
  position: absolute;
  right: clamp(72px, 7vw, 118px);
  bottom: clamp(18px, 3.2vh, 34px);
  left: clamp(72px, 7vw, 118px);
  z-index: 3;
  height: 28px;
  pointer-events: none;
}

.app-shell:has(#screenView.active) .room-signal-panel {
  position: absolute;
  z-index: 4;
  top: clamp(10px, 2vh, 20px);
  right: clamp(18px, 3vw, 46px);
  left: clamp(18px, 3vw, 46px);
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 214, 232, 0.12), transparent 18rem),
    rgba(5, 8, 22, 0.76);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  padding: 10px 14px;
  backdrop-filter: blur(16px);
}

.app-shell:has(#screenView.active) .room-signal-kicker,
.app-shell:has(#screenView.active) .room-signal-sentence {
  margin: 0;
}

.app-shell:has(#screenView.active) .room-signal-kicker {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
}

.app-shell:has(#screenView.active) .room-signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.app-shell:has(#screenView.active) .room-signal-card {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  padding: 8px 10px;
}

.app-shell:has(#screenView.active) .room-signal-card span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.68rem;
  font-weight: 800;
}

.app-shell:has(#screenView.active) .room-signal-card strong {
  overflow: hidden;
  color: var(--text);
  font-size: clamp(0.78rem, 0.9vw, 1rem);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell:has(#screenView.active) .room-signal-sentence {
  color: rgba(245, 247, 250, 0.86);
  font-size: clamp(0.78rem, 0.9vw, 1rem);
  font-weight: 800;
  line-height: 1.34;
}

.app-shell:has(#screenView.active) .journey-line {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  width: auto;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 0 18px rgba(5, 8, 22, 0.55),
    0 0 24px rgba(34, 214, 232, 0.12);
  transform: translateY(-50%);
}

.app-shell:has(#screenView.active) .journey-line span {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--journey-progress, 0%);
  height: auto;
  border-radius: inherit;
    background: linear-gradient(90deg, #7cee92 0%, #22d6e8 52%, #ff9f1c 100%);
    background-size: calc(100vw - 144px) 100%;
    background-position: right center;
  box-shadow: 0 0 24px rgba(34, 214, 232, 0.38);
  transition: width 520ms ease;
}

.app-shell:has(#screenView.active) .journey-step {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  display: block;
  transform: translate(-50%, -50%);
}

.app-shell:has(#screenView.active) .journey-experience {
  left: 0;
}

.app-shell:has(#screenView.active) .journey-partnership {
  left: 50%;
}

.app-shell:has(#screenView.active) .journey-barrier {
  left: 100%;
}

.app-shell:has(#screenView.active) .journey-dot {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(5, 8, 22, 0.48);
}

.app-shell:has(#screenView.active) .journey-step.active {
  color: rgba(255, 255, 255, 0.88);
}

.app-shell:has(#screenView.active) .journey-step.active .journey-dot {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 3px, var(--phase-dot, var(--cyan)) 4px 8px, rgba(5, 8, 22, 0.42) 9px);
  box-shadow: 0 0 22px var(--phase-dot-glow, rgba(34, 214, 232, 0.4));
}

.app-shell:has(#screenView.active) .journey-barrier {
  --phase-dot: #ff9f1c;
  --phase-dot-glow: rgba(255, 159, 28, 0.42);
}

.app-shell:has(#screenView.active) .journey-partnership {
  --phase-dot: #22d6e8;
  --phase-dot-glow: rgba(34, 214, 232, 0.42);
}

.app-shell:has(#screenView.active) .journey-experience {
  --phase-dot: #7cee92;
  --phase-dot-glow: rgba(124, 238, 146, 0.42);
}

.app-shell:has(#screenView.active) .insight-node {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  flex: 0 1 var(--show-bubble);
  min-width: min(29vw, 380px);
  min-height: min(43vh, 410px);
  padding: clamp(34px, 5vh, 62px) clamp(22px, 2vw, 38px);
}

.app-shell:has(#screenView.active) .insight-bubble {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 1;
  width: var(--show-bubble);
  height: var(--show-bubble);
  max-width: 292px;
  max-height: 292px;
  min-width: 198px;
  min-height: 198px;
  padding: clamp(18px, 2.2vw, 28px);
  animation-duration: 10s, 8s;
  cursor: pointer;
}

.app-shell:has(#screenView.active) .insight-bubble:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.72);
  outline-offset: 8px;
}

.app-shell:has(#screenView.active) .screen-node-map.depth-active .insight-node,
.app-shell:has(#screenView.active) .screen-node-map.depth-active .journey-meter {
  opacity: 0.3;
  filter: blur(1px) saturate(80%);
  transition: opacity 180ms ease, filter 180ms ease;
}

.app-shell:has(#screenView.active) .depth-panel {
  --depth-rgb: 34 214 232;
  --depth-color: rgb(var(--depth-rgb));
  --depth-glow: rgba(34, 214, 232, 0.18);
  position: absolute;
  z-index: 10;
  inset: clamp(18px, 3vh, 34px) clamp(28px, 4vw, 72px) clamp(40px, 7vh, 88px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 76% 22%, rgb(var(--depth-rgb) / 0.16), transparent 28rem),
    linear-gradient(135deg, rgba(10, 20, 38, 0.94), rgba(5, 8, 22, 0.88));
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: clamp(18px, 2vw, 28px);
  backdrop-filter: blur(18px) saturate(130%);
}

.app-shell:has(#screenView.active) .depth-panel.depth-barrier {
  --depth-rgb: 255 159 28;
  --depth-color: rgb(var(--depth-rgb));
  --depth-glow: rgba(255, 159, 28, 0.2);
}

.app-shell:has(#screenView.active) .depth-panel.depth-partnership {
  --depth-rgb: 34 214 232;
  --depth-color: rgb(var(--depth-rgb));
  --depth-glow: rgba(34, 214, 232, 0.2);
}

.app-shell:has(#screenView.active) .depth-panel.depth-experience {
  --depth-rgb: 124 238 146;
  --depth-color: rgb(var(--depth-rgb));
  --depth-glow: rgba(124, 238, 146, 0.18);
}

.app-shell:has(#screenView.active) .depth-panel header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 16px;
  padding-inline-end: 42px;
}

.app-shell:has(#screenView.active) .depth-kicker {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--depth-color);
  font-size: 0.82rem;
  font-weight: 900;
  text-shadow: 0 0 18px var(--depth-glow);
}

.app-shell:has(#screenView.active) .depth-panel h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.55rem, 2.1vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
}

.app-shell:has(#screenView.active) .depth-count {
  align-self: center;
  border: 1px solid rgb(var(--depth-rgb) / 0.28);
  border-radius: 999px;
  background: rgb(var(--depth-rgb) / 0.1);
  color: rgba(255, 255, 255, 0.88);
  padding: 8px 14px;
  font-weight: 900;
  white-space: nowrap;
}

.app-shell:has(#screenView.active) .depth-close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgb(var(--depth-rgb) / 0.28);
  border-radius: 50%;
  background: rgb(var(--depth-rgb) / 0.11);
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 700;
  cursor: pointer;
}

.app-shell:has(#screenView.active) .depth-clusters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  overflow: auto;
  padding: 2px 2px 8px;
}

.app-shell:has(#screenView.active) .depth-cluster {
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  gap: 10px;
  min-height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  padding: 14px;
}

.app-shell:has(#screenView.active) .signal-badge,
.cluster-signal,
.bubble-signal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  font-weight: 900;
}

.app-shell:has(#screenView.active) .signal-badge {
  margin: 0;
  padding: 5px 10px;
  font-size: 0.72rem;
}

.app-shell:has(#screenView.active) .signal-badge.signal-strong,
.cluster-card.signal-strong .cluster-signal,
.bubble-signal.signal-strong {
  color: #9dffb0;
}

.app-shell:has(#screenView.active) .signal-badge.signal-medium,
.cluster-card.signal-medium .cluster-signal,
.bubble-signal.signal-medium {
  color: #ffd063;
}

.app-shell:has(#screenView.active) .signal-badge.signal-weak,
.cluster-card.signal-weak .cluster-signal,
.bubble-signal.signal-weak {
  color: rgba(255, 255, 255, 0.72);
}

.app-shell:has(#screenView.active) .depth-meaning-label,
.app-shell:has(#screenView.active) .depth-quotes-label {
  margin: 0;
  color: var(--depth-color);
  font-size: 0.74rem;
  font-weight: 900;
}

.app-shell:has(#screenView.active) .depth-meaning {
  margin: 0;
  color: rgba(245, 247, 250, 0.86);
  font-size: clamp(0.78rem, 0.86vw, 0.94rem);
  font-weight: 800;
  line-height: 1.34;
}

.app-shell:has(#screenView.active) .depth-cluster.active {
  border-color: rgb(var(--depth-rgb) / 0.32);
  background: rgb(var(--depth-rgb) / 0.08);
  box-shadow: inset 0 1px 0 rgb(var(--depth-rgb) / 0.12), 0 0 24px var(--depth-glow);
}

.app-shell:has(#screenView.active) .depth-cluster-title {
  display: grid;
  gap: 7px;
}

.app-shell:has(#screenView.active) .depth-cluster-title strong {
  color: var(--text);
  font-size: clamp(0.92rem, 1vw, 1.12rem);
  font-weight: 900;
  line-height: 1.18;
}

.app-shell:has(#screenView.active) .depth-cluster-title span {
  justify-self: start;
  border-radius: 999px;
  background: rgb(var(--depth-rgb) / 0.16);
  color: rgba(255, 255, 255, 0.82);
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 900;
}

.app-shell:has(#screenView.active) .depth-quotes {
  display: grid;
  align-content: start;
  gap: 8px;
}

.app-shell:has(#screenView.active) .depth-quotes blockquote,
.app-shell:has(#screenView.active) .depth-empty {
  margin: 0;
  border-inline-start: 2px solid rgb(var(--depth-rgb) / 0.35);
  color: rgba(245, 247, 250, 0.82);
  padding-inline-start: 10px;
  font-size: clamp(0.74rem, 0.82vw, 0.92rem);
  font-weight: 700;
  line-height: 1.35;
}

.app-shell:has(#screenView.active) .depth-empty {
  color: rgba(255, 255, 255, 0.48);
}

.app-shell:has(#screenView.active) .insight-node-label {
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
  color: var(--text);
  font-size: clamp(1.22rem, 1.55vw, 1.78rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.12);
}

.app-shell:has(#screenView.active) .bubble-index,
.app-shell:has(#screenView.active) .bubble-phase,
.app-shell:has(#screenView.active) .bubble-insight,
.app-shell:has(#screenView.active) .bubble-status,
.app-shell:has(#screenView.active) .bubble-clusters,
.app-shell:has(#screenView.active) .insight-bubble p {
  position: relative;
  z-index: 2;
}

.app-shell:has(#screenView.active) .bubble-index {
  display: none;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(5, 8, 22, 0.32);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 900;
}

.app-shell:has(#screenView.active) .bubble-phase {
  margin-bottom: 8px;
  font-size: clamp(1.18rem, 1.45vw, 1.65rem);
}

.app-shell:has(#screenView.active) .bubble-insight {
  display: block;
  max-width: 82%;
  margin: 7px 0 6px;
  color: var(--text);
  font-size: clamp(1rem, 1.28vw, 1.42rem);
  font-weight: 900;
  line-height: 1.18;
}

.app-shell:has(#screenView.active) .bubble-clusters {
  display: grid;
  gap: 8px;
  width: min(80%, 250px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-shell:has(#screenView.active) .bubble-clusters li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  padding: 5px 2px;
  font-size: clamp(1.05rem, 1.22vw, 1.38rem);
  font-weight: 900;
  line-height: 1.18;
  text-align: center;
}

.app-shell:has(#screenView.active) .bubble-signal {
  justify-self: center;
  padding: 2px 7px;
  font-size: clamp(0.5rem, 0.58vw, 0.68rem);
  line-height: 1.1;
}

.app-shell:has(#screenView.active) .bubble-clusters li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.app-shell:has(#screenView.active) .bubble-clusters li.featured {
  padding: 6px 2px;
  font-size: clamp(1.35rem, 1.68vw, 1.9rem);
}

.app-shell:has(#screenView.active) .bubble-clusters li.more-patterns {
  display: block;
  color: var(--muted);
  text-align: center;
}

.app-shell:has(#screenView.active) .bubble-satellites {
  position: absolute;
  inset: 0;
  z-index: 3;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.app-shell:has(#screenView.active) .bubble-satellites li {
  position: absolute;
  display: grid;
  align-items: center;
  justify-content: center;
  align-content: center;
  justify-items: center;
  width: clamp(76px, 6.2vw, 96px);
  height: clamp(66px, 6.2vw, 96px);
  border: 1px solid rgba(188, 250, 255, 0.24);
  border-radius: 48% 52% 51% 49% / 53% 47% 52% 48%;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.44) 0 4px, rgba(255, 255, 255, 0.12) 5px, transparent 16px),
    radial-gradient(circle at 62% 70%, rgba(34, 214, 232, 0.14), transparent 52%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(5, 8, 22, 0.62));
  color: rgba(245, 247, 250, 0.9);
  padding: 10px;
  font-size: clamp(0.58rem, 0.62vw, 0.72rem);
  font-weight: 900;
  line-height: 1.1;
  opacity: 0.86;
  text-align: center;
  box-shadow:
    inset 7px 9px 18px rgba(255, 255, 255, 0.07),
    inset -10px -12px 20px rgba(34, 214, 232, 0.07),
    0 0 28px rgba(34, 214, 232, 0.14);
  backdrop-filter: blur(12px);
  animation: satellitePresence 8.5s ease-in-out infinite;
}

.app-shell:has(#screenView.active) .bubble-satellites li::before {
  position: absolute;
  z-index: 0;
  width: clamp(54px, 5.8vw, 88px);
  height: 2px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, currentColor 34%, currentColor 68%, transparent);
  opacity: 0.42;
  transform-origin: center;
}

.app-shell:has(#screenView.active) .bubble-satellites .satellite-name,
.app-shell:has(#screenView.active) .bubble-satellites .satellite-count {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
}

.app-shell:has(#screenView.active) .bubble-satellites .satellite-count {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08em;
}

.app-shell:has(#screenView.active) .bubble-satellites li.satellite-more {
  width: clamp(68px, 5.5vw, 86px);
  height: clamp(54px, 5.5vw, 86px);
  opacity: 0.84;
  font-size: clamp(0.56rem, 0.62vw, 0.72rem);
}

.app-shell:has(#screenView.active) .bubble-satellites li:nth-child(1) {
  top: 14%;
  inset-inline-start: 4%;
}

.app-shell:has(#screenView.active) .bubble-satellites li:nth-child(2) {
  bottom: 14%;
  inset-inline-end: 4%;
}

.app-shell:has(#screenView.active) .bubble-satellites li:nth-child(3) {
  top: 72%;
  inset-inline-start: 14%;
}

.app-shell:has(#screenView.active) .bubble-satellites li:nth-child(4) {
  bottom: 45%;
  inset-inline-end: 0;
}

.app-shell:has(#screenView.active) .phase-node-1 .bubble-satellites li:nth-child(1) {
  top: 17%;
  inset-inline-start: 7%;
}

.app-shell:has(#screenView.active) .phase-node-1 .bubble-satellites li:nth-child(2) {
  bottom: 17%;
  inset-inline-end: 7%;
}

.app-shell:has(#screenView.active) .phase-node-1 .bubble-satellites li:nth-child(3) {
  top: 49%;
  inset-inline-start: 0;
}

.app-shell:has(#screenView.active) .phase-node-1 .bubble-satellites li:nth-child(4) {
  bottom: 45%;
  inset-inline-end: 0;
}

.app-shell:has(#screenView.active) .phase-node-2 .bubble-satellites li:nth-child(1) {
  top: 10%;
  inset-inline-start: 50%;
  transform: translateX(-50%);
}

.app-shell:has(#screenView.active) .phase-node-2 .bubble-satellites li:nth-child(2) {
  bottom: 10%;
  inset-inline-start: 50%;
  transform: translateX(-50%);
}

.app-shell:has(#screenView.active) .phase-node-2 .bubble-satellites li:nth-child(3) {
  top: 48%;
  inset-inline-start: 4%;
}

.app-shell:has(#screenView.active) .phase-node-2 .bubble-satellites li:nth-child(4) {
  top: 48%;
  inset-inline-end: 4%;
}

.app-shell:has(#screenView.active) .phase-node-3 .bubble-satellites li:nth-child(1) {
  top: 17%;
  inset-inline-end: 7%;
}

.app-shell:has(#screenView.active) .phase-node-3 .bubble-satellites li:nth-child(2) {
  bottom: 17%;
  inset-inline-start: 7%;
}

.app-shell:has(#screenView.active) .phase-node-3 .bubble-satellites li:nth-child(3) {
  top: 49%;
  inset-inline-end: 0;
}

.app-shell:has(#screenView.active) .phase-node-3 .bubble-satellites li:nth-child(4) {
  bottom: 45%;
  inset-inline-start: 0;
}

.app-shell:has(#screenView.active) .bubble-satellites li:nth-child(1)::before {
  bottom: 8px;
  inset-inline-start: 68%;
  transform: rotate(26deg);
}

.app-shell:has(#screenView.active) .bubble-satellites li:nth-child(2)::before {
  top: 8px;
  inset-inline-end: 68%;
  transform: rotate(24deg);
}

.app-shell:has(#screenView.active) .bubble-satellites li:nth-child(3)::before {
  top: 18px;
  inset-inline-start: 72%;
  transform: rotate(-18deg);
}

.app-shell:has(#screenView.active) .bubble-satellites li:nth-child(4)::before {
  top: 50%;
  inset-inline-end: 72%;
  transform: translateY(-50%) rotate(0deg);
}

.app-shell:has(#screenView.active) .phase-node-1 .bubble-satellites li {
  border-color: rgba(255, 159, 28, 0.28);
  box-shadow: 0 0 22px rgba(255, 159, 28, 0.14);
}

.app-shell:has(#screenView.active) .phase-node-2 .bubble-satellites li {
  border-color: rgba(34, 214, 232, 0.28);
  box-shadow: 0 0 22px rgba(34, 214, 232, 0.16);
}

.app-shell:has(#screenView.active) .phase-node-3 .bubble-satellites li {
  border-color: rgba(124, 238, 146, 0.28);
  box-shadow: 0 0 22px rgba(124, 238, 146, 0.14);
}

.app-shell:has(#screenView.active) .bubble-clusters span {
  min-width: 0;
}

.app-shell:has(#screenView.active) .bubble-clusters strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(221, 226, 232, 0.82);
  padding: 3px 8px;
  font-size: 0.68em;
  font-weight: 900;
}

.app-shell:has(#screenView.active) .bubble-empty {
  max-width: 72%;
  margin: 8px 0 0;
  color: var(--text);
  font-size: clamp(1rem, 1.2vw, 1.3rem);
  font-weight: 900;
}

.app-shell:has(#screenView.active) .bubble-processing {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  color: rgba(245, 247, 250, 0.9);
  text-align: center;
}

.app-shell:has(#screenView.active) .bubble-processing strong {
  max-width: 140px;
  font-size: clamp(0.92rem, 1vw, 1.12rem);
  font-weight: 900;
  line-height: 1.12;
}

.app-shell:has(#screenView.active) .processing-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(54px, 4.8vw, 78px);
  aspect-ratio: 1;
  border: 1px solid rgb(var(--phase-rgb, 34 214 232) / 0.45);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgb(var(--phase-rgb, 34 214 232) / 0.18), transparent 62%),
    rgba(5, 8, 22, 0.28);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.08),
    0 0 28px rgb(var(--phase-rgb, 34 214 232) / 0.22);
  animation: processingCore 2.6s ease-in-out infinite;
}

.app-shell:has(#screenView.active) .processing-icon::before,
.app-shell:has(#screenView.active) .processing-icon::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.app-shell:has(#screenView.active) .processing-icon::before {
  inset: 11px;
  border: 1px dashed rgb(var(--phase-rgb, 34 214 232) / 0.4);
  animation: processingOrbit 4.6s linear infinite;
}

.app-shell:has(#screenView.active) .processing-icon::after {
  top: 50%;
  left: 50%;
  width: 11px;
  aspect-ratio: 1;
  background: rgb(var(--phase-rgb, 34 214 232) / 0.95);
  box-shadow: 0 0 18px rgb(var(--phase-rgb, 34 214 232) / 0.65);
  transform: translate(-50%, -50%) rotate(0deg) translateY(-22px);
  animation: processingDot 4.6s linear infinite;
}

.app-shell:has(#screenView.active) .processing-icon span {
  position: absolute;
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.32);
  animation: processingPulse 1.8s ease-in-out infinite;
}

.app-shell:has(#screenView.active) .processing-icon span:nth-child(1) {
  transform: translate(0, -7px);
}

.app-shell:has(#screenView.active) .processing-icon span:nth-child(2) {
  transform: translate(12px, 8px);
  animation-delay: 0.18s;
}

.app-shell:has(#screenView.active) .processing-icon span:nth-child(3) {
  transform: translate(-12px, 8px);
  animation-delay: 0.36s;
}

.app-shell:has(#screenView.active) .insight-bubble.processing {
  border-color: rgb(var(--phase-rgb, 34 214 232) / 0.48);
  box-shadow:
    inset 12px 15px 32px rgba(255, 255, 255, 0.08),
    inset -18px -22px 34px rgb(var(--phase-rgb, 34 214 232) / 0.11),
    0 0 62px rgb(var(--phase-rgb, 34 214 232) / 0.22);
}

.app-shell:has(#screenView.active) .insight-bubble p {
  max-width: 82%;
  color: var(--muted);
  font-size: clamp(0.76rem, 0.82vw, 0.94rem);
  font-weight: 800;
  line-height: 1.3;
}

.app-shell:has(#screenView.active) .bubble-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 86%;
  margin-top: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(5, 8, 22, 0.34);
  color: rgba(255, 255, 255, 0.78);
  padding: 5px 10px;
  font-size: clamp(0.66rem, 0.72vw, 0.82rem);
  font-weight: 900;
  line-height: 1.2;
}

.app-shell:has(#screenView.active) .insight-bubble.empty .bubble-insight {
  color: rgba(255, 255, 255, 0.82);
}

.app-shell:has(#screenView.active) .phase-bubble-1 {
  --phase-meter: linear-gradient(180deg, #ffd063 0%, #ff9f1c 42%, #ff6f47 100%);
  border-color: rgba(255, 111, 71, 0.42);
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.56) 0 5px, rgba(255, 255, 255, 0.14) 6px, transparent 18px),
    radial-gradient(circle at 72% 70%, rgba(255, 111, 71, 0.26), transparent 44%),
    radial-gradient(circle at 42% 50%, rgba(255, 159, 28, 0.18), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 111, 71, 0.08) 44%, rgba(255, 159, 28, 0.05));
  box-shadow:
    inset 12px 15px 32px rgba(255, 255, 255, 0.08),
    inset -18px -22px 34px rgba(255, 111, 71, 0.1),
    0 0 54px rgba(255, 111, 71, 0.2);
}

.app-shell:has(#screenView.active) .phase-bubble-2 {
  --phase-meter: linear-gradient(180deg, #82f6ff 0%, #22d6e8 62%, #0ca6c2 100%);
  border-color: rgba(34, 214, 232, 0.4);
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.56) 0 5px, rgba(255, 255, 255, 0.14) 6px, transparent 18px),
    radial-gradient(circle at 72% 70%, rgba(34, 214, 232, 0.24), transparent 44%),
    radial-gradient(circle at 42% 50%, rgba(92, 190, 255, 0.15), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(34, 214, 232, 0.08) 44%, rgba(92, 190, 255, 0.04));
  box-shadow:
    inset 12px 15px 32px rgba(255, 255, 255, 0.08),
    inset -18px -22px 34px rgba(34, 214, 232, 0.1),
    0 0 54px rgba(34, 214, 232, 0.2);
}

.app-shell:has(#screenView.active) .phase-bubble-3 {
  --phase-meter: linear-gradient(180deg, #d5ff69 0%, #7cee92 56%, #42d978 100%);
  border-color: rgba(124, 238, 146, 0.42);
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.56) 0 5px, rgba(255, 255, 255, 0.14) 6px, transparent 18px),
    radial-gradient(circle at 72% 70%, rgba(124, 238, 146, 0.24), transparent 44%),
    radial-gradient(circle at 42% 50%, rgba(183, 243, 75, 0.16), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(124, 238, 146, 0.08) 44%, rgba(183, 243, 75, 0.05));
  box-shadow:
    inset 12px 15px 32px rgba(255, 255, 255, 0.08),
    inset -18px -22px 34px rgba(124, 238, 146, 0.1),
    0 0 54px rgba(124, 238, 146, 0.2);
}

@media (max-height: 760px) {
  .app-shell:has(#screenView.active) .topbar {
    min-height: 46px;
  }

  .app-shell:has(#screenView.active) .screen-hero {
    min-height: 50px;
    padding: 7px 18px;
  }

  .app-shell:has(#screenView.active) .flow-axis {
    min-height: 50px;
    padding: 6px 10px;
  }

  .app-shell:has(#screenView.active) .screen-node-map {
    --show-bubble: min(18.5vw, 29vh, 222px);
    padding: 20px 38px 54px;
  }

  .app-shell:has(#screenView.active) .insight-bubble p {
    display: none;
  }

  .app-shell:has(#screenView.active) .bubble-empty {
    display: block;
  }

  .app-shell:has(#screenView.active) .bubble-clusters {
    gap: 5px;
  }

  .app-shell:has(#screenView.active) .bubble-clusters li {
    padding: 6px 8px;
    font-size: 0.82rem;
  }

  .app-shell:has(#screenView.active) .bubble-satellites li {
    width: 72px;
    height: 60px;
    padding: 8px 10px;
    font-size: 0.58rem;
  }

  .app-shell:has(#screenView.active) .depth-panel {
    inset: 16px 24px 54px;
    padding: 16px;
  }

  .app-shell:has(#screenView.active) .depth-clusters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell:has(#screenView.active) .depth-cluster {
    min-height: 150px;
  }
}

@media (max-width: 760px) {
  .app-shell:has(#participantView.active) {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow: visible;
    padding: 10px;
  }

  .app-shell:has(#participantView.active) .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
  }

  .app-shell:has(#participantView.active) .brand-lockup {
    gap: 8px;
    margin: 0;
  }

  .app-shell:has(#participantView.active) .city-logo {
    width: 54px;
    height: 28px;
  }

  .app-shell:has(#participantView.active) h1 {
    font-size: 2.15rem;
  }

  .app-shell:has(#participantView.active) .program-pill {
    align-self: flex-start;
    padding: 6px 12px;
    font-size: 0.78rem;
  }

  .app-shell:has(#participantView.active) .mode-switch {
    width: 100%;
    margin: 8px 0;
  }

  .app-shell:has(#participantView.active) .mode-button {
    min-height: 40px;
    padding: 8px;
    font-size: 0.86rem;
  }

  .app-shell:has(#participantView.active) .participant-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: auto;
  }

  .app-shell:has(#participantView.active) .question-card {
    order: 1;
    height: auto;
    padding: 18px;
    border-radius: 22px;
  }

  .app-shell:has(#participantView.active) .status-panel {
    order: 2;
    height: auto;
    border-radius: 20px;
    padding: 14px;
  }

  .app-shell:has(#participantView.active) .pulse-orbit,
  .app-shell:has(#participantView.active) .status-kicker {
    display: none;
  }

  .app-shell:has(#participantView.active) .phase-meta {
    gap: 6px;
  }

  .app-shell:has(#participantView.active) .phase-meta span {
    min-height: 24px;
    padding: 4px 9px;
    font-size: 0.74rem;
  }

  .app-shell:has(#participantView.active) .question-card h2 {
    margin: 8px 0 10px;
    font-size: clamp(1.55rem, 8vw, 2.45rem);
    line-height: 1.08;
  }

  .app-shell:has(#participantView.active) .question-help {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .app-shell:has(#participantView.active) .answer-form {
    gap: 9px;
    margin-top: 14px;
  }

  .app-shell:has(#participantView.active) input,
  .app-shell:has(#participantView.active) textarea {
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 1rem;
  }

  .app-shell:has(#participantView.active) textarea {
    min-height: 150px;
    max-height: none;
  }

  .app-shell:has(#participantView.active) .participant-identity {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 16px;
    font-size: 0.9rem;
  }

  .app-shell:has(#participantView.active) .identity-edit {
    width: 100%;
    min-height: 38px;
  }

  .app-shell:has(#participantView.active) .primary-action {
    width: 100%;
    justify-content: center;
    min-height: 50px;
    border-radius: 18px;
    font-size: 1rem;
  }

  .app-shell:has(#participantView.active) .mini-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell:has(#participantView.active) .credit-footer {
    margin-top: 10px;
  }
}

.app-shell:has(#participantView.active) .phase-meta {
  justify-content: flex-start;
}

.app-shell:has(#participantView.active) #phaseMapName {
  display: none;
}

.app-shell:has(#participantView.active) .phase-meta span {
  border-color: color-mix(in srgb, var(--phase-color) 32%, transparent);
  color: rgba(255, 255, 255, 0.82);
}

.app-shell:has(#participantView.active) .progress-fill {
  background: var(--phase-gradient);
  box-shadow: 0 0 22px var(--phase-glow);
}

.app-shell:has(#participantView.active) .question-card .phase-label {
  margin: 0;
  color: var(--phase-color);
  font-size: clamp(2.05rem, 4.2vw, 3.72rem);
  font-weight: 900;
  line-height: 1.02;
  text-shadow: 0 0 24px var(--phase-glow);
  text-wrap: balance;
}

.app-shell:has(#participantView.active) .participant-phase-subtitle {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 10px 0 14px;
  border: 1px solid color-mix(in srgb, var(--phase-color) 34%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--phase-color) 11%, transparent);
  color: rgba(255, 255, 255, 0.88);
  padding: 7px 15px;
  font-size: clamp(0.9rem, 1.2vw, 1.08rem);
  font-weight: 900;
  line-height: 1.15;
  box-shadow: 0 0 20px var(--phase-glow);
}

.app-shell:has(#participantView.active) .question-body {
  position: relative;
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.32rem);
  font-weight: 800;
  line-height: 1.42;
  text-wrap: balance;
}

.app-shell:has(#participantView.active) .question-card h2.phase-label {
  max-width: none;
}

.app-shell:has(#participantView.active) .answer-form {
  margin-top: 16px;
}

.app-shell:has(#participantView.active) input:focus,
.app-shell:has(#participantView.active) textarea:focus {
  border-color: color-mix(in srgb, var(--phase-color) 74%, white 8%);
  box-shadow: 0 0 0 4px var(--phase-glow), 0 0 30px var(--phase-glow);
}

.app-shell:has(#participantView.active) .primary-action {
  background: var(--phase-gradient);
  box-shadow: 0 0 28px var(--phase-glow), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.app-shell:has(#participantView.active) .primary-action:hover {
  box-shadow: 0 0 42px var(--phase-glow);
}

.app-shell:has(#participantView.active) .mini-stats {
  display: none;
}

.app-shell:has(#adminView.active) .credit-footer {
  display: none;
}

.app-shell:has(#screenView.active) .title-data strong,
.app-shell:has(#screenView.active) .flow-step-data strong {
  color: #b66cff;
  text-shadow: 0 0 24px rgba(182, 108, 255, 0.28);
}

.app-shell:has(#screenView.active) .phase-bubble-2 {
  --phase-meter: linear-gradient(180deg, #efc8ff 0%, #b66cff 58%, #7c3cff 100%);
  border-color: rgba(182, 108, 255, 0.46);
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.58) 0 5px, rgba(255, 255, 255, 0.15) 6px, transparent 18px),
    radial-gradient(circle at 72% 70%, rgba(182, 108, 255, 0.3), transparent 44%),
    radial-gradient(circle at 44% 50%, rgba(124, 60, 255, 0.2), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(182, 108, 255, 0.1) 44%, rgba(230, 112, 255, 0.06));
  box-shadow:
    inset 12px 15px 32px rgba(255, 255, 255, 0.08),
    inset -18px -22px 34px rgba(182, 108, 255, 0.13),
    0 0 54px rgba(182, 108, 255, 0.24);
}

.app-shell:has(#screenView.active) .phase-bubble-2 .bubble-score {
  color: #d9a2ff;
  text-shadow: 0 0 26px rgba(182, 108, 255, 0.38);
}

.app-shell:has(#screenView.active) .phase-node-2 .bubble-satellites li {
  border-color: rgba(182, 108, 255, 0.34);
  box-shadow: 0 0 24px rgba(182, 108, 255, 0.18);
}

.app-shell:has(#screenView.active) .journey-line span {
  background: linear-gradient(90deg, #7cee92 0%, #ff9f1c 34%, #b66cff 67%, #22d6e8 100%);
  background-size: calc(100vw - 144px) 100%;
  background-position: right center;
}

.app-shell:has(#screenView.active) .journey-data {
  --phase-dot: #b66cff;
  --phase-dot-glow: rgba(182, 108, 255, 0.46);
}

.app-shell:has(#screenView.active) .depth-panel.depth-data {
  --depth-rgb: 182 108 255;
  --depth-color: rgb(var(--depth-rgb));
  --depth-glow: rgba(182, 108, 255, 0.22);
}
/* Final projection readability override. Keep this block last. */
.app-shell:has(#screenView.active) .bubble-clusters {
  width: min(82%, 260px);
  gap: clamp(7px, 0.8vh, 11px);
}

.app-shell:has(#screenView.active) .bubble-clusters li {
  color: #ffffff;
  padding: 7px 2px;
  font-size: clamp(1.18rem, 1.42vw, 1.66rem);
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: 0;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.88),
    0 0 12px rgba(0, 0, 0, 0.72),
    0 0 22px rgba(255, 255, 255, 0.2);
  -webkit-text-stroke: 0.25px rgba(255, 255, 255, 0.28);
}

.app-shell:has(#screenView.active) .bubble-clusters li + li {
  border-top-color: rgba(255, 255, 255, 0.22);
}

.app-shell:has(#screenView.active) .bubble-clusters li.featured {
  font-size: clamp(1.5rem, 1.82vw, 2.05rem);
}

.app-shell:has(#screenView.active) .bubble-clusters span,
.app-shell:has(#screenView.active) .bubble-clusters strong,
.app-shell:has(#screenView.active) .bubble-satellites .satellite-name,
.app-shell:has(#screenView.active) .bubble-satellites .satellite-count {
  color: #ffffff;
  font-weight: 950;
}

.app-shell:has(#screenView.active) .bubble-satellites li {
  color: #ffffff;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.86),
    0 0 14px rgba(0, 0, 0, 0.72);
}

.app-shell:has(#screenView.active) .screen-node-map.summary-active .insight-node {
  opacity: 0.32;
  filter: none;
}

.app-shell:has(#screenView.active) .room-signal-panel {
  top: clamp(34px, 5vh, 58px);
  right: clamp(26px, 2.8vw, 54px);
  left: clamp(26px, 2.8vw, 54px);
  max-width: none;
  gap: clamp(12px, 1.4vh, 18px);
  padding: clamp(18px, 2.2vh, 28px) clamp(24px, 3vw, 48px);
  border-radius: 24px;
  background:
    linear-gradient(rgba(65, 98, 168, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 98, 168, 0.16) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(34, 214, 232, 0.16), transparent 24rem),
    rgba(5, 8, 22, 0.9);
  background-size: 54px 54px, 54px 54px, auto, auto;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.app-shell:has(#screenView.active) .room-signal-kicker {
  font-size: clamp(1rem, 1.22vw, 1.42rem);
}

.app-shell:has(#screenView.active) .room-signal-grid {
  gap: clamp(12px, 1.4vw, 22px);
}

.app-shell:has(#screenView.active) .room-signal-card {
  min-height: 78px;
  justify-content: center;
  padding: 12px 16px;
}

.app-shell:has(#screenView.active) .room-signal-card span {
  font-size: clamp(0.84rem, 0.98vw, 1.08rem);
}

.app-shell:has(#screenView.active) .room-signal-card strong {
  font-size: clamp(1.04rem, 1.28vw, 1.45rem);
}

.app-shell:has(#screenView.active) .room-signal-sentence {
  font-size: clamp(1.02rem, 1.24vw, 1.42rem);
  line-height: 1.52;
}

/* Final results focus: primary bubbles only, room summary as a full product view. */
.app-shell:has(#screenView.active) .screen-node-map {
  --show-bubble: min(19.8vw, 38vh, 340px);
}

.app-shell:has(#screenView.active) .phase-node-1 {
  top: 48%;
  left: 83%;
}

.app-shell:has(#screenView.active) .phase-node-2 {
  top: 58%;
  left: 61%;
}

.app-shell:has(#screenView.active) .phase-node-3 {
  top: 44%;
  left: 39%;
}

.app-shell:has(#screenView.active) .phase-node-4 {
  top: 57%;
  left: 17%;
}

.app-shell:has(#screenView.active) .insight-bubble {
  width: var(--show-bubble);
  height: var(--show-bubble);
}

.app-shell:has(#screenView.active) .bubble-satellites {
  display: none;
}

.app-shell:has(#screenView.active) .bubble-clusters {
  width: min(84%, 284px);
  gap: clamp(8px, 0.95vh, 13px);
}

.app-shell:has(#screenView.active) .bubble-clusters li {
  padding: clamp(7px, 0.95vh, 10px) 2px;
  font-size: clamp(1.18rem, 1.48vw, 1.76rem);
}

.app-shell:has(#screenView.active) .bubble-clusters li.featured {
  font-size: clamp(1.5rem, 1.9vw, 2.15rem);
}

.app-shell:has(#screenView.active) .screen-node-map.summary-active .insight-node {
  visibility: hidden;
  opacity: 0;
  filter: none;
  pointer-events: none;
}

.app-shell:has(#screenView.active) .screen-node-map.summary-active .room-signal-panel {
  inset: clamp(18px, 2.8vw, 46px);
  align-content: center;
  gap: clamp(18px, 2.2vh, 30px);
  padding: clamp(30px, 4.2vh, 58px) clamp(34px, 4.4vw, 76px);
  border-radius: 28px;
  background:
    linear-gradient(rgba(65, 98, 168, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 98, 168, 0.15) 1px, transparent 1px),
    radial-gradient(circle at 22% 18%, rgba(34, 214, 232, 0.17), transparent 26rem),
    radial-gradient(circle at 80% 78%, rgba(182, 108, 255, 0.13), transparent 24rem),
    rgba(4, 8, 23, 0.97);
  background-size: 56px 56px, 56px 56px, auto, auto, auto;
}

.app-shell:has(#screenView.active) .screen-node-map.summary-active .room-signal-kicker {
  font-size: clamp(1.35rem, 1.75vw, 2.1rem);
}

.app-shell:has(#screenView.active) .screen-node-map.summary-active .room-signal-grid {
  gap: clamp(18px, 2vw, 34px);
}

.app-shell:has(#screenView.active) .screen-node-map.summary-active .room-signal-card {
  min-height: clamp(112px, 13vh, 156px);
  padding: clamp(18px, 2.4vh, 28px) clamp(18px, 2vw, 30px);
  border-radius: 20px;
}

.app-shell:has(#screenView.active) .screen-node-map.summary-active .room-signal-card span {
  font-size: clamp(1rem, 1.18vw, 1.32rem);
}

.app-shell:has(#screenView.active) .screen-node-map.summary-active .room-signal-card strong {
  font-size: clamp(1.22rem, 1.62vw, 1.95rem);
}

.app-shell:has(#screenView.active) .screen-node-map.summary-active .room-signal-sentence {
  max-width: 92%;
  justify-self: center;
  font-size: clamp(1.22rem, 1.55vw, 1.88rem);
  line-height: 1.62;
  text-align: center;
}

/* Final projection readability override. Keep this block last. */
.app-shell:has(#screenView.active) .bubble-clusters {
  width: min(82%, 260px);
  gap: clamp(7px, 0.8vh, 11px);
}

.app-shell:has(#screenView.active) .bubble-clusters li {
  color: #ffffff;
  padding: 7px 2px;
  font-size: clamp(1.18rem, 1.42vw, 1.66rem);
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: 0;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.88),
    0 0 12px rgba(0, 0, 0, 0.72),
    0 0 22px rgba(255, 255, 255, 0.2);
  -webkit-text-stroke: 0.25px rgba(255, 255, 255, 0.28);
}

.app-shell:has(#screenView.active) .bubble-clusters li + li {
  border-top-color: rgba(255, 255, 255, 0.22);
}

.app-shell:has(#screenView.active) .bubble-clusters li.featured {
  font-size: clamp(1.5rem, 1.82vw, 2.05rem);
}

.app-shell:has(#screenView.active) .bubble-clusters span,
.app-shell:has(#screenView.active) .bubble-clusters strong,
.app-shell:has(#screenView.active) .bubble-satellites .satellite-name,
.app-shell:has(#screenView.active) .bubble-satellites .satellite-count {
  color: #ffffff;
  font-weight: 950;
}

.app-shell:has(#screenView.active) .bubble-satellites li {
  color: #ffffff;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.86),
    0 0 14px rgba(0, 0, 0, 0.72);
}

.app-shell:has(#screenView.active) .screen-node-map.summary-active .insight-node {
  opacity: 0.32;
  filter: none;
}

.app-shell:has(#screenView.active) .room-signal-panel {
  top: clamp(34px, 5vh, 58px);
  right: clamp(26px, 2.8vw, 54px);
  left: clamp(26px, 2.8vw, 54px);
  max-width: none;
  gap: clamp(12px, 1.4vh, 18px);
  padding: clamp(18px, 2.2vh, 28px) clamp(24px, 3vw, 48px);
  border-radius: 24px;
  background:
    linear-gradient(rgba(65, 98, 168, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 98, 168, 0.16) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(34, 214, 232, 0.16), transparent 24rem),
    rgba(5, 8, 22, 0.9);
  background-size: 54px 54px, 54px 54px, auto, auto;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.app-shell:has(#screenView.active) .room-signal-kicker {
  font-size: clamp(1rem, 1.22vw, 1.42rem);
}

.app-shell:has(#screenView.active) .room-signal-grid {
  gap: clamp(12px, 1.4vw, 22px);
}

.app-shell:has(#screenView.active) .room-signal-card {
  min-height: 78px;
  justify-content: center;
  padding: 12px 16px;
}

.app-shell:has(#screenView.active) .room-signal-card span {
  font-size: clamp(0.84rem, 0.98vw, 1.08rem);
}

.app-shell:has(#screenView.active) .room-signal-card strong {
  font-size: clamp(1.04rem, 1.28vw, 1.45rem);
}

.app-shell:has(#screenView.active) .room-signal-sentence {
  font-size: clamp(1.02rem, 1.24vw, 1.42rem);
  line-height: 1.52;
}

/* Projection readability pass: keep the bubbles alive, make the insight text lead. */
.app-shell:has(#screenView.active) .insight-bubble.active {
  background-blend-mode: normal, screen, screen, normal;
}

.app-shell:has(#screenView.active) .bubble-clusters {
  width: min(82%, 260px);
  gap: clamp(7px, 0.8vh, 11px);
}

.app-shell:has(#screenView.active) .bubble-clusters li {
  color: #ffffff;
  font-size: clamp(1.18rem, 1.42vw, 1.66rem);
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: 0;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.88),
    0 0 12px rgba(0, 0, 0, 0.72),
    0 0 22px rgba(255, 255, 255, 0.2);
  -webkit-text-stroke: 0.25px rgba(255, 255, 255, 0.28);
}

.app-shell:has(#screenView.active) .bubble-clusters li + li {
  border-top-color: rgba(255, 255, 255, 0.22);
}

.app-shell:has(#screenView.active) .bubble-clusters li.featured {
  font-size: clamp(1.5rem, 1.82vw, 2.05rem);
}

.app-shell:has(#screenView.active) .bubble-clusters span,
.app-shell:has(#screenView.active) .bubble-clusters strong {
  color: #ffffff;
}

.app-shell:has(#screenView.active) .bubble-satellites li {
  color: #ffffff;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.86),
    0 0 14px rgba(0, 0, 0, 0.72);
}

.app-shell:has(#screenView.active) .bubble-satellites .satellite-name,
.app-shell:has(#screenView.active) .bubble-satellites .satellite-count {
  color: #ffffff;
  font-weight: 950;
}

.app-shell:has(#screenView.active) .screen-node-map.summary-active .insight-node {
  opacity: 0.32;
  filter: none;
}

.app-shell:has(#screenView.active) .room-signal-panel {
  top: clamp(34px, 5vh, 58px);
  right: clamp(26px, 2.8vw, 54px);
  left: clamp(26px, 2.8vw, 54px);
  max-width: none;
  gap: clamp(12px, 1.4vh, 18px);
  padding: clamp(18px, 2.2vh, 28px) clamp(24px, 3vw, 48px);
  border-radius: 24px;
  background:
    linear-gradient(rgba(65, 98, 168, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 98, 168, 0.16) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(34, 214, 232, 0.16), transparent 24rem),
    rgba(5, 8, 22, 0.9);
  background-size: 54px 54px, 54px 54px, auto, auto;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.app-shell:has(#screenView.active) .room-signal-kicker {
  font-size: clamp(1rem, 1.22vw, 1.42rem);
}

.app-shell:has(#screenView.active) .room-signal-grid {
  gap: clamp(12px, 1.4vw, 22px);
}

.app-shell:has(#screenView.active) .room-signal-card {
  min-height: 78px;
  justify-content: center;
  padding: 12px 16px;
}

.app-shell:has(#screenView.active) .room-signal-card span {
  font-size: clamp(0.84rem, 0.98vw, 1.08rem);
}

.app-shell:has(#screenView.active) .room-signal-card strong {
  font-size: clamp(1.04rem, 1.28vw, 1.45rem);
}

.app-shell:has(#screenView.active) .room-signal-sentence {
  font-size: clamp(1.02rem, 1.24vw, 1.42rem);
  line-height: 1.52;
}

/* Projection cleanup: cinematic map first, summary only on demand. */
body[data-view="screen"] {
  background:
    linear-gradient(rgba(41, 71, 124, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 71, 124, 0.18) 1px, transparent 1px),
    radial-gradient(circle at 50% 38%, rgba(34, 214, 232, 0.12), transparent 34rem),
    radial-gradient(circle at 78% 72%, rgba(182, 108, 255, 0.08), transparent 30rem),
    linear-gradient(180deg, #111c45 0%, #0c1737 52%, #071126 100%);
  background-size: 72px 72px, 72px 72px, auto, auto, auto;
}

body[data-view="screen"] .app-shell {
  background:
    linear-gradient(rgba(50, 84, 145, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(50, 84, 145, 0.14) 1px, transparent 1px),
    radial-gradient(circle at 50% 46%, rgba(34, 214, 232, 0.1), transparent 32rem),
    linear-gradient(180deg, rgba(13, 24, 57, 0.98), rgba(7, 15, 34, 0.98));
  background-size: 72px 72px, 72px 72px, auto, auto;
}

.app-shell:has(#screenView.active) .flow-axis,
.app-shell:has(#screenView.active) .journey-meter {
  display: none !important;
}

.app-shell:has(#screenView.active) .screen-stage {
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.app-shell:has(#screenView.active) .screen-hero {
  min-height: 96px;
  padding: 14px 28px;
  background: rgba(10, 20, 45, 0.66);
}

.app-shell:has(#screenView.active) .screen-network {
  position: relative;
  padding: 0;
  background:
    linear-gradient(rgba(54, 91, 158, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 91, 158, 0.16) 1px, transparent 1px),
    radial-gradient(circle at 52% 42%, rgba(34, 214, 232, 0.12), transparent 36rem),
    rgba(7, 14, 33, 0.5);
  background-size: 72px 72px, 72px 72px, auto, auto;
}

.screen-summary-toggle {
  position: absolute;
  z-index: 12;
  top: clamp(14px, 2vh, 24px);
  left: clamp(18px, 2.4vw, 38px);
  border: 1px solid rgba(34, 214, 232, 0.34);
  border-radius: 999px;
  background: rgba(8, 18, 39, 0.78);
  color: var(--cyan);
  padding: 9px 18px;
  font: inherit;
  font-size: clamp(0.76rem, 0.8vw, 0.92rem);
  font-weight: 900;
  box-shadow: 0 0 24px rgba(34, 214, 232, 0.12);
  cursor: pointer;
}

.screen-summary-toggle[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(34, 214, 232, 0.15);
  color: var(--text);
}

.app-shell:has(#screenView.active) .screen-node-map {
  --show-bubble: min(16.8vw, 31.5vh, 252px);
  display: block;
  height: 100%;
  padding: 0;
  background: transparent;
}

.app-shell:has(#screenView.active) .insight-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(280px, 20vw, 380px);
  height: clamp(300px, 50vh, 430px);
  min-width: 0;
  min-height: 0;
  padding: 0;
  transform: translate(-50%, -50%);
}

.app-shell:has(#screenView.active) .phase-node-1 {
  top: 44%;
  left: 82%;
}

.app-shell:has(#screenView.active) .phase-node-2 {
  top: 58%;
  left: 60%;
}

.app-shell:has(#screenView.active) .phase-node-3 {
  top: 42%;
  left: 38%;
}

.app-shell:has(#screenView.active) .phase-node-4 {
  top: 59%;
  left: 16%;
}

.app-shell:has(#screenView.active) .insight-bubble {
  width: var(--show-bubble);
  height: var(--show-bubble);
}

.app-shell:has(#screenView.active) .bubble-clusters {
  width: min(74%, 220px);
  gap: 5px;
}

.app-shell:has(#screenView.active) .bubble-clusters li {
  padding: 6px 2px;
}

.app-shell:has(#screenView.active) .bubble-signal {
  display: none;
}

.app-shell:has(#screenView.active) .room-signal-panel {
  top: clamp(56px, 8vh, 86px);
  right: clamp(56px, 7vw, 120px);
  left: clamp(56px, 7vw, 120px);
  gap: 10px;
  padding: 14px 18px;
  border-radius: 20px;
  background:
    linear-gradient(rgba(65, 98, 168, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 98, 168, 0.13) 1px, transparent 1px),
    rgba(7, 12, 30, 0.88);
  background-size: 52px 52px, 52px 52px, auto;
}

.app-shell:has(#screenView.active) .room-signal-kicker {
  font-size: clamp(0.82rem, 0.9vw, 1rem);
}

.app-shell:has(#screenView.active) .room-signal-card {
  padding: 9px 11px;
}

.app-shell:has(#screenView.active) .room-signal-sentence {
  font-size: clamp(0.9rem, 1vw, 1.12rem);
  line-height: 1.55;
}

.app-shell:has(#screenView.active) .screen-node-map.summary-active .insight-node {
  opacity: 0.16;
  filter: blur(0.8px);
}

@media (max-width: 900px) {
  .app-shell:has(#screenView.active) .phase-node-1,
  .app-shell:has(#screenView.active) .phase-node-2,
  .app-shell:has(#screenView.active) .phase-node-3,
  .app-shell:has(#screenView.active) .phase-node-4 {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
  }

  .app-shell:has(#screenView.active) .screen-node-map {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 14px;
    padding: 76px 16px 18px;
  }
}

/* Final workshop usability pass: brighter projection surface and self-paced participant controls. */
body {
  background:
    radial-gradient(circle at 18% 8%, rgba(34, 214, 232, 0.26), transparent 30rem),
    radial-gradient(circle at 88% 12%, rgba(183, 243, 75, 0.14), transparent 28rem),
    radial-gradient(circle at 70% 82%, rgba(255, 159, 28, 0.11), transparent 26rem),
    linear-gradient(145deg, #071424 0%, #0d2a3b 48%, #07111f 100%);
}

.question-card,
.status-panel,
.control-panel,
.live-map,
.answers-stream {
  background-color: rgba(24, 40, 58, 0.78);
}

input,
select,
textarea {
  background-color: rgba(9, 17, 32, 0.48);
}

input:focus,
select:focus,
textarea:focus {
  background-color: rgba(11, 23, 40, 0.62);
}

.question-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.question-nav .ghost-action,
.review-answers-action {
  min-height: 42px;
  padding: 9px 14px;
  font-size: 0.88rem;
}

.question-nav .ghost-action:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.review-answers-action {
  width: fit-content;
  margin: 18px auto 0;
}

.app-shell:has(#screenView.active) {
  grid-template-rows: minmax(0, 1fr) auto;
  padding-top: 0;
}

.app-shell:has(#screenView.active) .topbar {
  display: none;
}

.app-shell:has(#screenView.active) .screen-stage {
  gap: 10px;
  padding-top: 10px;
}

.app-shell:has(#screenView.active) .screen-node-map {
  background:
    linear-gradient(rgba(34, 214, 232, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 214, 232, 0.075) 1px, transparent 1px),
    radial-gradient(circle at 50% 42%, rgba(34, 214, 232, 0.14), transparent 34%),
    rgba(20, 36, 54, 0.72);
}

@media (max-width: 760px) {
  .app-shell:has(#participantView.active) .participant-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .app-shell:has(#participantView.active) .status-panel {
    order: 0;
    display: grid;
    grid-template-columns: minmax(104px, 34%) minmax(0, 1fr);
    align-items: center;
    min-height: 82px;
    padding: 9px 12px;
    border-radius: 20px;
  }

  .app-shell:has(#participantView.active) .status-panel::after {
    position: absolute;
    top: 18px;
    inset-inline-start: 18px;
    width: 34px;
    height: 34px;
    content: "";
    border: 1px solid rgba(124, 238, 146, 0.32);
    border-radius: 48% 52% 51% 49% / 54% 46% 52% 48%;
    background:
      radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.58) 0 3px, rgba(255, 255, 255, 0.16) 4px, transparent 10px),
      radial-gradient(circle at 72% 70%, rgba(124, 238, 146, 0.24), transparent 44%),
      radial-gradient(circle at 44% 50%, rgba(183, 243, 75, 0.15), transparent 58%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(124, 238, 146, 0.08) 44%, rgba(183, 243, 75, 0.05));
    box-shadow:
      inset 7px 8px 15px rgba(255, 255, 255, 0.08),
      inset -9px -11px 18px rgba(124, 238, 146, 0.08),
      0 0 22px rgba(124, 238, 146, 0.16);
    opacity: 0.82;
    animation: bubbleFloatC 10s cubic-bezier(0.45, 0, 0.2, 1) infinite, bubbleSkin 8s ease-in-out infinite;
  }

  .app-shell:has(#participantView.active) .question-card {
    order: 1;
    min-height: 0;
  }

  .app-shell:has(#participantView.active) .pulse-orbit {
    display: block;
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 100%;
    height: 64px;
    min-height: 64px;
    border-radius: 16px;
    opacity: 0.9;
  }

  .app-shell:has(#participantView.active) .pulse-orbit::before {
    top: 31px;
    right: 15px;
    width: 84px;
    background: linear-gradient(90deg, transparent, rgba(34, 214, 232, 0.58), rgba(182, 108, 255, 0.45), transparent);
  }

  .app-shell:has(#participantView.active) .pulse-orbit::after {
    right: 26px;
    bottom: 20px;
    width: 76px;
    background: linear-gradient(90deg, transparent, rgba(255, 159, 28, 0.44), rgba(124, 238, 146, 0.44), transparent);
  }

  .app-shell:has(#participantView.active) .pulse-orbit span {
    width: 34px;
    height: 34px;
  }

  .app-shell:has(#participantView.active) .pulse-orbit span:nth-child(1) {
    top: 10px;
    right: 12px;
    width: 36px;
    height: 35px;
    border-color: rgba(34, 214, 232, 0.38);
    background:
      radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.58) 0 3px, rgba(255, 255, 255, 0.16) 4px, transparent 10px),
      radial-gradient(circle at 72% 70%, rgba(34, 214, 232, 0.25), transparent 44%),
      radial-gradient(circle at 44% 50%, rgba(92, 190, 255, 0.16), transparent 58%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(34, 214, 232, 0.08) 44%, rgba(92, 190, 255, 0.05));
  }

  .app-shell:has(#participantView.active) .pulse-orbit span:nth-child(2) {
    top: 22px;
    left: 14px;
    width: 33px;
    height: 34px;
    border-color: rgba(182, 108, 255, 0.42);
    background:
      radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.58) 0 3px, rgba(255, 255, 255, 0.16) 4px, transparent 10px),
      radial-gradient(circle at 72% 70%, rgba(182, 108, 255, 0.3), transparent 44%),
      radial-gradient(circle at 44% 50%, rgba(124, 60, 255, 0.2), transparent 58%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(182, 108, 255, 0.1) 44%, rgba(230, 112, 255, 0.06));
  }

  .app-shell:has(#participantView.active) .pulse-orbit span:nth-child(3) {
    right: 54px;
    bottom: 8px;
    width: 32px;
    height: 32px;
    border-color: rgba(255, 159, 28, 0.36);
    background:
      radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.58) 0 3px, rgba(255, 255, 255, 0.16) 4px, transparent 10px),
      radial-gradient(circle at 72% 70%, rgba(255, 159, 28, 0.26), transparent 44%),
      radial-gradient(circle at 44% 50%, rgba(255, 111, 71, 0.16), transparent 58%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 159, 28, 0.08) 44%, rgba(255, 111, 71, 0.05));
  }

  .app-shell:has(#participantView.active) .status-kicker,
  .app-shell:has(#participantView.active) .status-panel p,
  .app-shell:has(#participantView.active) .mini-stats {
    display: none;
  }

  .app-shell:has(#participantView.active) .status-panel h3 {
    grid-column: 2;
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.2;
    text-align: right;
  }
}

.app-shell:has(#screenView.active) .title-data strong,
.app-shell:has(#screenView.active) .flow-step-data strong {
  color: #b66cff;
  text-shadow: 0 0 24px rgba(182, 108, 255, 0.28);
}

.app-shell:has(#screenView.active) .phase-bubble-2 {
  --phase-meter: linear-gradient(180deg, #efc8ff 0%, #b66cff 58%, #7c3cff 100%);
  border-color: rgba(182, 108, 255, 0.46);
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.58) 0 5px, rgba(255, 255, 255, 0.15) 6px, transparent 18px),
    radial-gradient(circle at 72% 70%, rgba(182, 108, 255, 0.3), transparent 44%),
    radial-gradient(circle at 44% 50%, rgba(124, 60, 255, 0.2), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(182, 108, 255, 0.1) 44%, rgba(230, 112, 255, 0.06));
  box-shadow:
    inset 12px 15px 32px rgba(255, 255, 255, 0.08),
    inset -18px -22px 34px rgba(182, 108, 255, 0.13),
    0 0 54px rgba(182, 108, 255, 0.24);
}

.app-shell:has(#screenView.active) .phase-bubble-2 .bubble-score {
  color: #d9a2ff;
  text-shadow: 0 0 26px rgba(182, 108, 255, 0.38);
}

.app-shell:has(#screenView.active) .phase-node-2 .bubble-satellites li {
  border-color: rgba(182, 108, 255, 0.34);
  box-shadow: 0 0 24px rgba(182, 108, 255, 0.18);
}

.app-shell:has(#screenView.active) .journey-line span {
  background: linear-gradient(90deg, #7cee92 0%, #ff9f1c 34%, #b66cff 67%, #22d6e8 100%);
  background-size: calc(100vw - 144px) 100%;
  background-position: right center;
}

.app-shell:has(#screenView.active) .journey-data {
  --phase-dot: #b66cff;
  --phase-dot-glow: rgba(182, 108, 255, 0.46);
}

.app-shell:has(#screenView.active) .depth-panel.depth-data {
  --depth-rgb: 182 108 255;
  --depth-color: rgb(var(--depth-rgb));
  --depth-glow: rgba(182, 108, 255, 0.22);
}

.app-shell:has(#screenView.active) .topbar {
  min-height: 58px;
  padding-block: 6px;
}

.app-shell:has(#screenView.active) .brand-lockup {
  gap: 8px;
}

.app-shell:has(#screenView.active) h1 {
  font-size: clamp(1.65rem, 2.25vw, 2.28rem);
}

.app-shell:has(#screenView.active) .eilab-title .eyebrow {
  margin-top: 0;
  font-size: 0.48rem;
}

.app-shell:has(#screenView.active) .city-logo {
  width: 28px;
  height: 28px;
}

.app-shell:has(#screenView.active) .program-pill {
  padding: 5px 12px;
  font-size: 0.74rem;
}

.app-shell:has(#screenView.active) .screen-stage {
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}

.app-shell:has(#screenView.active) .screen-hero {
  min-height: 104px;
  padding: 16px 30px;
  border-radius: 28px;
}

.app-shell:has(#screenView.active) .screen-journey-title {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2.3vw, 42px);
  padding-inline: clamp(24px, 4vw, 72px);
}

.app-shell:has(#screenView.active) .journey-title-step strong {
  font-size: clamp(1.16rem, 1.85vw, 1.95rem);
  line-height: 1.05;
  text-wrap: balance;
}

.app-shell:has(#screenView.active) .journey-title-step span {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.78rem, 0.95vw, 1.04rem);
  font-weight: 800;
}

.app-shell:has(#screenView.active) .title-human strong,
.app-shell:has(#screenView.active) .flow-step-human strong {
  color: var(--cyan);
}

.app-shell:has(#screenView.active) .title-data strong,
.app-shell:has(#screenView.active) .flow-step-data strong {
  color: #8fa2ff;
}

.app-shell:has(#screenView.active) .title-collaboration strong,
.app-shell:has(#screenView.active) .flow-step-collaboration strong {
  color: #ff9f1c;
}

.app-shell:has(#screenView.active) .title-impact strong,
.app-shell:has(#screenView.active) .flow-step-impact strong {
  color: #7cee92;
}

.app-shell:has(#screenView.active) .screen-node-map {
  --show-bubble: min(16.4vw, 32vh, 246px);
  gap: clamp(8px, 1.4vw, 22px);
  padding: clamp(18px, 3vw, 46px) clamp(18px, 3vw, 46px) clamp(54px, 8vh, 86px);
}

.app-shell:has(#screenView.active) .insight-node {
  flex: 1 1 0;
  min-width: min(21vw, 286px);
  min-height: min(40vh, 380px);
  padding: clamp(26px, 4vh, 50px) clamp(12px, 1.4vw, 24px);
}

.app-shell:has(#screenView.active) .insight-bubble {
  max-width: 252px;
  max-height: 252px;
  min-width: 176px;
  min-height: 176px;
}

.app-shell:has(#screenView.active) .bubble-clusters {
  gap: clamp(5px, 0.55vw, 9px);
}

.app-shell:has(#screenView.active) .bubble-clusters li {
  font-size: clamp(0.74rem, 0.88vw, 0.98rem);
}

.app-shell:has(#screenView.active) .phase-bubble-1 {
  --phase-rgb: 34 214 232;
  border-color: rgba(34, 214, 232, 0.38);
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.58) 0 5px, rgba(255, 255, 255, 0.15) 6px, transparent 18px),
    radial-gradient(circle at 72% 70%, rgba(34, 214, 232, 0.24), transparent 44%),
    radial-gradient(circle at 44% 50%, rgba(92, 190, 255, 0.17), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(34, 214, 232, 0.08) 44%, rgba(92, 190, 255, 0.05));
  box-shadow:
    inset 12px 15px 32px rgba(255, 255, 255, 0.08),
    inset -18px -22px 34px rgba(34, 214, 232, 0.1),
    0 0 50px rgba(34, 214, 232, 0.18);
}

.app-shell:has(#screenView.active) .phase-bubble-2 {
  --phase-rgb: 182 108 255;
  border-color: rgba(143, 162, 255, 0.38);
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.58) 0 5px, rgba(255, 255, 255, 0.15) 6px, transparent 18px),
    radial-gradient(circle at 72% 70%, rgba(143, 162, 255, 0.24), transparent 44%),
    radial-gradient(circle at 44% 50%, rgba(34, 214, 232, 0.12), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(143, 162, 255, 0.08) 44%, rgba(34, 214, 232, 0.04));
  box-shadow:
    inset 12px 15px 32px rgba(255, 255, 255, 0.08),
    inset -18px -22px 34px rgba(143, 162, 255, 0.1),
    0 0 50px rgba(143, 162, 255, 0.18);
}

.app-shell:has(#screenView.active) .phase-bubble-3 {
  --phase-rgb: 255 159 28;
  border-color: rgba(255, 159, 28, 0.36);
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.58) 0 5px, rgba(255, 255, 255, 0.15) 6px, transparent 18px),
    radial-gradient(circle at 72% 70%, rgba(255, 159, 28, 0.26), transparent 44%),
    radial-gradient(circle at 44% 50%, rgba(255, 111, 71, 0.16), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 159, 28, 0.08) 44%, rgba(255, 111, 71, 0.05));
  box-shadow:
    inset 12px 15px 32px rgba(255, 255, 255, 0.08),
    inset -18px -22px 34px rgba(255, 159, 28, 0.1),
    0 0 50px rgba(255, 159, 28, 0.18);
}

.app-shell:has(#screenView.active) .phase-bubble-4 {
  --phase-rgb: 124 238 146;
  border-color: rgba(124, 238, 146, 0.36);
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.58) 0 5px, rgba(255, 255, 255, 0.15) 6px, transparent 18px),
    radial-gradient(circle at 72% 70%, rgba(124, 238, 146, 0.24), transparent 44%),
    radial-gradient(circle at 44% 50%, rgba(183, 243, 75, 0.16), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(124, 238, 146, 0.08) 44%, rgba(183, 243, 75, 0.05));
  box-shadow:
    inset 12px 15px 32px rgba(255, 255, 255, 0.08),
    inset -18px -22px 34px rgba(124, 238, 146, 0.1),
    0 0 50px rgba(124, 238, 146, 0.18);
}

.app-shell:has(#screenView.active) .phase-node-1 .bubble-satellites li {
  border-color: rgba(34, 214, 232, 0.28);
  box-shadow: 0 0 22px rgba(34, 214, 232, 0.14);
}

.app-shell:has(#screenView.active) .phase-node-2 .bubble-satellites li {
  border-color: rgba(143, 162, 255, 0.28);
  box-shadow: 0 0 22px rgba(143, 162, 255, 0.14);
}

.app-shell:has(#screenView.active) .phase-node-3 .bubble-satellites li {
  border-color: rgba(255, 159, 28, 0.28);
  box-shadow: 0 0 22px rgba(255, 159, 28, 0.14);
}

.app-shell:has(#screenView.active) .phase-node-4 .bubble-satellites li {
  border-color: rgba(124, 238, 146, 0.28);
  box-shadow: 0 0 22px rgba(124, 238, 146, 0.14);
}

.app-shell:has(#screenView.active) .phase-node-4 .bubble-satellites li:nth-child(1) {
  top: 17%;
  inset-inline-end: 7%;
}

.app-shell:has(#screenView.active) .phase-node-4 .bubble-satellites li:nth-child(2) {
  bottom: 17%;
  inset-inline-start: 7%;
}

.app-shell:has(#screenView.active) .phase-node-4 .bubble-satellites li:nth-child(3) {
  top: 49%;
  inset-inline-end: 0;
}

.app-shell:has(#screenView.active) .phase-node-4 .bubble-satellites li:nth-child(4) {
  bottom: 45%;
  inset-inline-start: 0;
}

.app-shell:has(#screenView.active) .journey-line span {
  background: linear-gradient(90deg, #7cee92 0%, #ff9f1c 34%, #8fa2ff 67%, #22d6e8 100%);
  background-size: calc(100vw - 144px) 100%;
  background-position: right center;
}

.app-shell:has(#screenView.active) .journey-human {
  left: 100%;
  --phase-dot: #22d6e8;
  --phase-dot-glow: rgba(34, 214, 232, 0.42);
}

.app-shell:has(#screenView.active) .journey-data {
  left: 66.666%;
  --phase-dot: #8fa2ff;
  --phase-dot-glow: rgba(143, 162, 255, 0.42);
}

.app-shell:has(#screenView.active) .journey-collaboration {
  left: 33.333%;
  --phase-dot: #ff9f1c;
  --phase-dot-glow: rgba(255, 159, 28, 0.42);
}

.app-shell:has(#screenView.active) .journey-impact {
  left: 0;
  --phase-dot: #7cee92;
  --phase-dot-glow: rgba(124, 238, 146, 0.42);
}

.app-shell:has(#screenView.active) .depth-panel.depth-human {
  --depth-rgb: 34 214 232;
  --depth-color: rgb(var(--depth-rgb));
  --depth-glow: rgba(34, 214, 232, 0.2);
}

.app-shell:has(#screenView.active) .depth-panel.depth-data {
  --depth-rgb: 143 162 255;
  --depth-color: rgb(var(--depth-rgb));
  --depth-glow: rgba(143, 162, 255, 0.2);
}

.app-shell:has(#screenView.active) .depth-panel.depth-collaboration {
  --depth-rgb: 255 159 28;
  --depth-color: rgb(var(--depth-rgb));
  --depth-glow: rgba(255, 159, 28, 0.2);
}

.app-shell:has(#screenView.active) .depth-panel.depth-impact {
  --depth-rgb: 124 238 146;
  --depth-color: rgb(var(--depth-rgb));
  --depth-glow: rgba(124, 238, 146, 0.18);
}

.app-shell:has(#screenView.active) .credit-footer {
  display: flex;
  margin: 0 auto;
  padding: 5px 12px 2px;
}

.app-shell:has(#screenView.active) .credit-logo {
  width: 38px;
  height: 38px;
  border-radius: 13px;
}

.app-shell:has(#screenView.active) .credit-footer p {
  font-size: 0.82rem;
}

.app-shell:has(#screenView.active) .credit-footer span {
  font-size: 0.74rem;
}

@media (max-width: 760px) {
  .app-shell:has(#participantView.active) .question-card .phase-label {
    font-size: clamp(1.9rem, 9.5vw, 3rem);
  }

  .app-shell:has(#participantView.active) .participant-phase-subtitle {
    font-size: clamp(0.86rem, 3.7vw, 1rem);
  }

  .app-shell:has(#participantView.active) .question-body {
    font-size: 1rem;
    line-height: 1.42;
  }

  .creator-signature {
    flex-direction: column;
    text-align: center;
  }

  .creator-signature div {
    justify-items: center;
    text-align: center;
  }

  .app-shell:has(#participantView.active) .credit-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-right: 0;
    padding-left: 0;
  }

  .app-shell:has(#participantView.active) .credit-logo {
    width: 50px;
    height: 50px;
    margin-left: 0;
  }

  .app-shell:has(#participantView.active) .credit-footer > div {
    justify-items: end;
    text-align: right;
  }
}

.app-shell:has(#participantView.active) .credit-footer {
  width: 100%;
  max-width: none;
  justify-content: space-between;
  gap: 18px;
  direction: ltr;
  margin: 14px 0 0;
  padding: 10px clamp(8px, 1vw, 16px) 4px;
}

.app-shell:has(#participantView.active) .credit-footer > div {
  display: grid;
  justify-items: end;
  min-width: 0;
  text-align: right;
}

.app-shell:has(#participantView.active) .credit-logo {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 15px;
}

.app-shell:has(#participantView.active) .credit-footer p,
.app-shell:has(#participantView.active) .credit-footer span {
  max-width: 100%;
  text-align: right;
}

.app-shell:has(#participantView.active) .credit-footer p {
  font-size: clamp(0.86rem, 2.6vw, 1rem);
}

.app-shell:has(#participantView.active) .credit-footer span {
  font-size: clamp(0.74rem, 2.2vw, 0.86rem);
}

.app-shell:has(#screenView.active) .credit-footer {
  display: flex;
}

body[data-view="screen"] .mode-switch {
  display: none;
}

body[data-view="screen"] {
  height: 100vh;
  overflow: hidden;
}

.app-shell:has(#adminView.active) .credit-footer {
  display: none;
}

.app-shell:has(#screenView.active) .title-data strong,
.app-shell:has(#screenView.active) .flow-step-data strong {
  color: #b66cff;
  text-shadow: 0 0 24px rgba(182, 108, 255, 0.28);
}

.app-shell:has(#screenView.active) .phase-bubble-2 {
  --phase-meter: linear-gradient(180deg, #efc8ff 0%, #b66cff 58%, #7c3cff 100%);
  border-color: rgba(182, 108, 255, 0.46);
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.58) 0 5px, rgba(255, 255, 255, 0.15) 6px, transparent 18px),
    radial-gradient(circle at 72% 70%, rgba(182, 108, 255, 0.3), transparent 44%),
    radial-gradient(circle at 44% 50%, rgba(124, 60, 255, 0.2), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(182, 108, 255, 0.1) 44%, rgba(230, 112, 255, 0.06));
  box-shadow:
    inset 12px 15px 32px rgba(255, 255, 255, 0.08),
    inset -18px -22px 34px rgba(182, 108, 255, 0.13),
    0 0 54px rgba(182, 108, 255, 0.24);
}

.app-shell:has(#screenView.active) .phase-bubble-2 .bubble-score {
  color: #d9a2ff;
  text-shadow: 0 0 26px rgba(182, 108, 255, 0.38);
}

.app-shell:has(#screenView.active) .phase-node-2 .bubble-satellites li {
  border-color: rgba(182, 108, 255, 0.34);
  box-shadow: 0 0 24px rgba(182, 108, 255, 0.18);
}

.app-shell:has(#screenView.active) .journey-line span {
  background: linear-gradient(90deg, #7cee92 0%, #ff9f1c 34%, #b66cff 67%, #22d6e8 100%);
  background-size: calc(100vw - 144px) 100%;
  background-position: right center;
}

.app-shell:has(#screenView.active) .journey-data {
  --phase-dot: #b66cff;
  --phase-dot-glow: rgba(182, 108, 255, 0.46);
}

.app-shell:has(#screenView.active) .depth-panel.depth-data {
  --depth-rgb: 182 108 255;
  --depth-color: rgb(var(--depth-rgb));
  --depth-glow: rgba(182, 108, 255, 0.22);
}

/* Final projection readability override. Keep this block last. */
.app-shell:has(#screenView.active) .bubble-clusters {
  width: min(82%, 260px);
  gap: clamp(7px, 0.8vh, 11px);
}

.app-shell:has(#screenView.active) .bubble-clusters li {
  color: #ffffff;
  padding: 7px 2px;
  font-size: clamp(1.18rem, 1.42vw, 1.66rem);
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: 0;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.88),
    0 0 12px rgba(0, 0, 0, 0.72),
    0 0 22px rgba(255, 255, 255, 0.2);
  -webkit-text-stroke: 0.25px rgba(255, 255, 255, 0.28);
}

.app-shell:has(#screenView.active) .bubble-clusters li + li {
  border-top-color: rgba(255, 255, 255, 0.22);
}

.app-shell:has(#screenView.active) .bubble-clusters li.featured {
  font-size: clamp(1.5rem, 1.82vw, 2.05rem);
}

.app-shell:has(#screenView.active) .bubble-clusters span,
.app-shell:has(#screenView.active) .bubble-clusters strong,
.app-shell:has(#screenView.active) .bubble-satellites .satellite-name,
.app-shell:has(#screenView.active) .bubble-satellites .satellite-count {
  color: #ffffff;
  font-weight: 950;
}

.app-shell:has(#screenView.active) .bubble-satellites li {
  color: #ffffff;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.86),
    0 0 14px rgba(0, 0, 0, 0.72);
}

.app-shell:has(#screenView.active) .screen-node-map.summary-active .insight-node {
  opacity: 0.32;
  filter: none;
}

.app-shell:has(#screenView.active) .room-signal-panel {
  top: clamp(34px, 5vh, 58px);
  right: clamp(26px, 2.8vw, 54px);
  left: clamp(26px, 2.8vw, 54px);
  max-width: none;
  gap: clamp(12px, 1.4vh, 18px);
  padding: clamp(18px, 2.2vh, 28px) clamp(24px, 3vw, 48px);
  border-radius: 24px;
  background:
    linear-gradient(rgba(65, 98, 168, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 98, 168, 0.16) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(34, 214, 232, 0.16), transparent 24rem),
    rgba(5, 8, 22, 0.9);
  background-size: 54px 54px, 54px 54px, auto, auto;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.app-shell:has(#screenView.active) .room-signal-kicker {
  font-size: clamp(1rem, 1.22vw, 1.42rem);
}

.app-shell:has(#screenView.active) .room-signal-grid {
  gap: clamp(12px, 1.4vw, 22px);
}

.app-shell:has(#screenView.active) .room-signal-card {
  min-height: 78px;
  justify-content: center;
  padding: 12px 16px;
}

.app-shell:has(#screenView.active) .room-signal-card span {
  font-size: clamp(0.84rem, 0.98vw, 1.08rem);
}

.app-shell:has(#screenView.active) .room-signal-card strong {
  font-size: clamp(1.04rem, 1.28vw, 1.45rem);
}

.app-shell:has(#screenView.active) .room-signal-sentence {
  font-size: clamp(1.02rem, 1.24vw, 1.42rem);
  line-height: 1.52;
}

/* Final results focus: primary bubbles only, room summary as a full product view. */
.app-shell:has(#screenView.active) .screen-node-map {
  --show-bubble: min(19.8vw, 38vh, 340px);
}

.app-shell:has(#screenView.active) .phase-node-1 {
  top: 48%;
  left: 83%;
}

.app-shell:has(#screenView.active) .phase-node-2 {
  top: 58%;
  left: 61%;
}

.app-shell:has(#screenView.active) .phase-node-3 {
  top: 44%;
  left: 39%;
}

.app-shell:has(#screenView.active) .phase-node-4 {
  top: 57%;
  left: 17%;
}

.app-shell:has(#screenView.active) .insight-bubble {
  width: var(--show-bubble);
  height: var(--show-bubble);
}

.app-shell:has(#screenView.active) .bubble-satellites {
  display: none;
}

.app-shell:has(#screenView.active) .bubble-clusters {
  width: min(84%, 284px);
  gap: clamp(8px, 0.95vh, 13px);
}

.app-shell:has(#screenView.active) .bubble-clusters li {
  padding: clamp(7px, 0.95vh, 10px) 2px;
  font-size: clamp(1.18rem, 1.48vw, 1.76rem);
}

.app-shell:has(#screenView.active) .bubble-clusters li.featured {
  font-size: clamp(1.5rem, 1.9vw, 2.15rem);
}

.app-shell:has(#screenView.active) .screen-node-map.summary-active .insight-node {
  visibility: hidden;
  opacity: 0;
  filter: none;
  pointer-events: none;
}

.app-shell:has(#screenView.active) .screen-node-map.summary-active .room-signal-panel {
  inset: clamp(18px, 2.8vw, 46px);
  align-content: center;
  gap: clamp(18px, 2.2vh, 30px);
  padding: clamp(30px, 4.2vh, 58px) clamp(34px, 4.4vw, 76px);
  border-radius: 28px;
  background:
    linear-gradient(rgba(65, 98, 168, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 98, 168, 0.15) 1px, transparent 1px),
    radial-gradient(circle at 22% 18%, rgba(34, 214, 232, 0.17), transparent 26rem),
    radial-gradient(circle at 80% 78%, rgba(182, 108, 255, 0.13), transparent 24rem),
    rgba(4, 8, 23, 0.97);
  background-size: 56px 56px, 56px 56px, auto, auto, auto;
}

.app-shell:has(#screenView.active) .screen-node-map.summary-active .room-signal-kicker {
  font-size: clamp(1.35rem, 1.75vw, 2.1rem);
}

.app-shell:has(#screenView.active) .screen-node-map.summary-active .room-signal-grid {
  gap: clamp(18px, 2vw, 34px);
}

.app-shell:has(#screenView.active) .screen-node-map.summary-active .room-signal-card {
  min-height: clamp(112px, 13vh, 156px);
  padding: clamp(18px, 2.4vh, 28px) clamp(18px, 2vw, 30px);
  border-radius: 20px;
}

.app-shell:has(#screenView.active) .screen-node-map.summary-active .room-signal-card span {
  font-size: clamp(1rem, 1.18vw, 1.32rem);
}

.app-shell:has(#screenView.active) .screen-node-map.summary-active .room-signal-card strong {
  font-size: clamp(1.22rem, 1.62vw, 1.95rem);
}

.app-shell:has(#screenView.active) .screen-node-map.summary-active .room-signal-sentence {
  max-width: 92%;
  justify-self: center;
  font-size: clamp(1.22rem, 1.55vw, 1.88rem);
  line-height: 1.62;
  text-align: center;
}

/* Final room summary wrap: never truncate insight labels. */
.app-shell:has(#screenView.active) .room-signal-card strong,
.app-shell:has(#screenView.active) .screen-node-map.summary-active .room-signal-card strong {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.18;
  display: block;
  max-width: 100%;
}

.app-shell:has(#screenView.active) .screen-node-map.summary-active .room-signal-card {
  min-height: clamp(128px, 15vh, 174px);
  align-content: center;
}

.app-shell:has(#screenView.active) .screen-node-map.summary-active .room-signal-grid {
  align-items: stretch;
}

/* Results screen: match dashboard background */

/* Principles dashboard: presentation-style, shareable, no scrolling. */
body[data-view="dashboard"] {
  height: 100dvh;
  overflow: hidden;
  background:
    linear-gradient(rgba(112, 132, 190, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 132, 190, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 74% 18%, rgba(239, 196, 70, 0.12), transparent 24rem),
    radial-gradient(circle at 14% 84%, rgba(32, 166, 205, 0.11), transparent 22rem),
    #10183d;
  background-size: 6.4vw 6.4vw, 6.4vw 6.4vw, auto, auto, auto;
}

body[data-view="dashboard"]::before,
body[data-view="dashboard"]::after {
  display: none;
}

body[data-view="dashboard"] .topbar,
body[data-view="dashboard"] .mode-switch,
body[data-view="dashboard"] .credit-footer {
  display: none;
}

body[data-view="dashboard"] .app-shell {
  width: 100vw;
  height: 100dvh;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

body[data-view="dashboard"] main,
body[data-view="dashboard"] .main-content {
  height: 100dvh;
  padding: 0;
  overflow: hidden;
}

#dashboardView.active {
  display: block;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}

.dashboard-hero,
.dashboard-signal,
.dashboard-principles,
.dashboard-recommendations {
  display: none;
}

.dashboard-stage {
  position: relative;
  width: 100vw;
  height: 100dvh;
  direction: rtl;
  overflow: hidden;
  color: #ffffff;
  font-family: "Heebo", system-ui, sans-serif;
  background:
    linear-gradient(rgba(112, 132, 190, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 132, 190, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 72% 18%, rgba(239, 196, 70, 0.1), transparent 25rem),
    radial-gradient(circle at 16% 84%, rgba(17, 176, 211, 0.11), transparent 22rem),
    #10183d;
  background-size: 6.4vw 6.4vw, 6.4vw 6.4vw, auto, auto, auto;
}

.dashboard-stage::before {
  display: none;
  position: absolute;
  top: clamp(20px, 3vw, 42px);
  left: clamp(28px, 4vw, 72px);
  z-index: 4;
  color: rgba(255, 255, 255, 0.92);
  content: "EILAB";
  direction: ltr;
  font-size: clamp(1.7rem, 3vw, 4rem);
  font-weight: 950;
  letter-spacing: 0;
}

.dashboard-brand {
  position: absolute;
  top: clamp(18px, 3vw, 44px);
  left: clamp(26px, 4vw, 72px);
  z-index: 6;
  color: rgba(255, 255, 255, 0.96);
  direction: ltr;
  text-align: left;
}

.dashboard-brand strong {
  display: block;
  font-size: clamp(1.75rem, 3.1vw, 4.2rem);
  font-weight: 950;
  line-height: 0.82;
  letter-spacing: 0;
}

.dashboard-brand span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.62rem, 0.9vw, 1.15rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.dashboard-partner-logos {
  position: absolute;
  top: clamp(18px, 3vw, 44px);
  left: clamp(210px, 16vw, 340px);
  right: auto;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  direction: ltr;
}

.dashboard-partner-logos img {
  max-width: clamp(126px, 10vw, 190px);
  max-height: clamp(48px, 6.4vh, 82px);
  object-fit: contain;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.28));
}

.dashboard-partner-logos img[src*="Untitled"] {
  max-height: clamp(44px, 6vh, 76px);
}

.dashboard-credit {
  position: absolute;
  right: auto;
  left: clamp(64px, 7vw, 128px);
  bottom: clamp(14px, 2.3vh, 30px);
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(12px, 1.4vw, 22px);
  transform: none;
  color: rgba(255, 255, 255, 0.84);
  direction: ltr;
  text-align: left;
  white-space: nowrap;
}

.dashboard-credit-inline {
  position: relative;
  right: auto;
  left: auto;
  bottom: auto;
  width: auto;
  justify-self: start;
  margin-top: clamp(12px, 1.6vh, 24px);
}

.dashboard-credit img {
  width: clamp(34px, 3.2vw, 48px);
  height: clamp(34px, 3.2vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  object-fit: cover;
}

.dashboard-credit strong,
.dashboard-credit span {
  display: inline;
  line-height: 1;
}

.dashboard-credit strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.88rem, 1.05vw, 1.2rem);
  font-weight: 950;
}

.dashboard-credit span {
  color: #b6f34e;
  font-size: clamp(0.82rem, 1vw, 1.16rem);
  font-weight: 900;
}

.dashboard-slide {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  padding: clamp(76px, 9vh, 112px) clamp(64px, 7vw, 128px) clamp(76px, 9vh, 112px);
  overflow: hidden;
}

.dashboard-slide.active {
  display: grid;
}

/* ── Dashboard Bubble Slide (slide 0 — map overview) ── */
.dashboard-bubble-slide {
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}

.bubble-label {
  display: block;
  text-align: center;
  font-size: clamp(1rem, 1.6vw, 1.6rem);
  font-weight: 900;
  line-height: 1.15;
  text-wrap: balance;
  margin-bottom: clamp(14px, 2.4vh, 28px);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  z-index: 3;
  position: relative;
}

.bubble-label.dashboard-cyan { color: #22d6e8; }
.bubble-label.dashboard-purple { color: #b66cff; }
.bubble-label.dashboard-gold { color: #ff9f1c; }
.bubble-label.dashboard-green { color: #7cee92; }

.dashboard-node-map {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  z-index: 2;
}

.dashboard-node-map::before,
.dashboard-node-map::after {
  display: none;
}

.dashboard-bubble-slide .insight-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: clamp(260px, 20vw, 360px);
  min-width: 0;
  min-height: 0;
  padding: 0;
  transform: translate(-50%, -50%);
}

.dashboard-bubble-slide .phase-node-1 { top: 30%; left: 80%; }
.dashboard-bubble-slide .phase-node-2 { top: 62%; left: 58%; }
.dashboard-bubble-slide .phase-node-3 { top: 30%; left: 36%; }
.dashboard-bubble-slide .phase-node-4 { top: 62%; left: 14%; }

.dashboard-bubble-slide .insight-bubble {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: var(--bubble-size);
  height: var(--bubble-size);
  max-width: 308px;
  max-height: 308px;
  min-width: 198px;
  min-height: 198px;
  padding: clamp(18px, 2.2vw, 28px);
  cursor: pointer;
  transition: transform 280ms ease;
}

.dashboard-bubble-slide .insight-bubble:hover {
  transform: scale(1.06);
}

.dashboard-bubble-slide .phase-bubble-1 {
  border-color: rgba(20, 180, 240, 0.55);
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.56) 0 5px, rgba(255, 255, 255, 0.14) 6px, transparent 18px),
    radial-gradient(circle at 72% 70%, rgba(20, 180, 240, 0.42), transparent 44%),
    radial-gradient(circle at 42% 50%, rgba(20, 160, 230, 0.32), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(20, 180, 240, 0.16) 44%, rgba(20, 160, 230, 0.12));
  box-shadow: inset 0 0 42px rgba(20, 180, 240, 0.16), 0 0 64px rgba(20, 180, 240, 0.45), 0 0 120px rgba(20, 160, 230, 0.18);
}

.dashboard-bubble-slide .phase-bubble-2 {
  border-color: rgba(182, 108, 255, 0.55);
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.58) 0 5px, rgba(255, 255, 255, 0.15) 6px, transparent 18px),
    radial-gradient(circle at 72% 70%, rgba(182, 108, 255, 0.4), transparent 44%),
    radial-gradient(circle at 42% 50%, rgba(140, 80, 220, 0.3), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(182, 108, 255, 0.14) 44%, rgba(140, 80, 220, 0.1));
  box-shadow: inset 0 0 42px rgba(182, 108, 255, 0.14), 0 0 64px rgba(182, 108, 255, 0.4), 0 0 120px rgba(182, 108, 255, 0.15);
}

.dashboard-bubble-slide .phase-bubble-3 {
  border-color: rgba(255, 159, 28, 0.52);
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.56) 0 5px, rgba(255, 255, 255, 0.14) 6px, transparent 18px),
    radial-gradient(circle at 72% 70%, rgba(255, 159, 28, 0.38), transparent 44%),
    radial-gradient(circle at 42% 50%, rgba(255, 159, 28, 0.28), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 159, 28, 0.14) 44%, rgba(255, 159, 28, 0.1));
  box-shadow: inset 0 0 42px rgba(255, 159, 28, 0.14), 0 0 64px rgba(255, 159, 28, 0.4), 0 0 120px rgba(255, 159, 28, 0.15);
}

.dashboard-bubble-slide .phase-bubble-4 {
  border-color: rgba(80, 220, 110, 0.55);
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.56) 0 5px, rgba(255, 255, 255, 0.14) 6px, transparent 18px),
    radial-gradient(circle at 72% 70%, rgba(80, 220, 110, 0.44), transparent 44%),
    radial-gradient(circle at 42% 50%, rgba(60, 200, 90, 0.34), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(80, 220, 110, 0.18) 44%, rgba(60, 200, 90, 0.14));
  box-shadow: inset 0 0 42px rgba(80, 220, 110, 0.16), 0 0 64px rgba(80, 220, 110, 0.48), 0 0 120px rgba(60, 200, 90, 0.2);
}

.dashboard-bubble-slide .bubble-clusters {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: min(74%, 220px);
  list-style: none;
  padding: 0;
  margin: 0;
}

.dashboard-bubble-slide .bubble-clusters li {
  padding: 6px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: clamp(0.82rem, 1vw, 1.08rem);
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.dashboard-bubble-slide .bubble-clusters li:last-child {
  border-bottom: none;
}

.dashboard-bubble-slide .bubble-empty {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.92rem;
}

.dashboard-kicker {
  margin: 0;
  color: #efc446;
  font-size: clamp(1.2rem, 1.55vw, 2rem);
  font-weight: 950;
  letter-spacing: 0;
}

.dashboard-kicker::after {
  display: inline-block;
  width: clamp(56px, 5vw, 110px);
  height: 4px;
  margin-inline-start: 18px;
  vertical-align: middle;
  background: #efc446;
  content: "";
}

.dashboard-slide h2 {
  max-width: 1120px;
  margin: clamp(12px, 1.8vh, 24px) 0 0;
  color: #ffffff;
  font-size: clamp(3.8rem, 6.2vw, 8.8rem);
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: 0;
  text-shadow: 0 18px 58px rgba(0, 0, 0, 0.28);
}

.dashboard-subtitle,
.dashboard-manifest,
.dashboard-full-question,
.dashboard-question {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 900;
  letter-spacing: 0;
}

.dashboard-subtitle {
  max-width: 960px;
  margin: clamp(14px, 2vh, 26px) 0 0;
  font-size: clamp(1.35rem, 2.2vw, 3rem);
  line-height: 1.2;
}

.dashboard-manifest {
  margin: clamp(20px, 3vh, 42px) 0 0;
  color: #efc446;
  font-size: clamp(1.1rem, 1.6vw, 2rem);
}

.dashboard-landing {
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(38px, 5vw, 88px);
}

.dashboard-landing h2 {
  max-width: 1160px;
  font-size: clamp(3.2rem, 5.2vw, 7.2rem);
}

.dashboard-landing .dashboard-subtitle {
  color: #efc446;
  font-size: clamp(1.45rem, 2.35vw, 3.25rem);
  line-height: 1.12;
}

.dashboard-landing .dashboard-manifest {
  max-width: 1120px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.04rem, 1.35vw, 1.7rem);
  line-height: 1.45;
}

.dashboard-landing-copy {
  align-self: center;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 28px);
  margin-top: clamp(34px, 4.8vh, 66px);
}

.dashboard-stat {
  min-height: clamp(118px, 14vh, 176px);
  display: grid;
  align-content: center;
  gap: 8px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.dashboard-stat strong {
  color: #ffffff;
  font-size: clamp(2.8rem, 5.5vw, 7.8rem);
  font-weight: 950;
  line-height: 0.88;
}

.dashboard-stat:nth-child(even) strong {
  color: #efc446;
}

.dashboard-stat span {
  color: rgba(223, 229, 249, 0.88);
  font-size: clamp(1rem, 1.35vw, 1.55rem);
  font-weight: 900;
}

.dashboard-principle-orbit {
  position: relative;
  display: grid;
  gap: clamp(18px, 2.4vh, 30px);
  align-content: center;
}

.dashboard-section-label {
  margin: 0 0 4px;
  color: #efc446;
  font-size: clamp(1.15rem, 1.6vw, 2rem);
  font-weight: 950;
}

.dashboard-principle-button {
  position: relative;
  min-height: clamp(98px, 12vh, 140px);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "index title"
    "index pattern";
  column-gap: 18px;
  align-items: center;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  padding: clamp(18px, 2.3vh, 26px);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.045);
  text-align: right;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.dashboard-principle-button:hover,
.dashboard-principle-button:focus-visible {
  transform: translateY(-3px);
  outline: none;
  background: rgba(255, 255, 255, 0.075);
}

.dashboard-principle-index {
  grid-area: index;
  color: var(--dash-accent, #efc446);
  font-size: clamp(1.4rem, 2vw, 2.4rem);
  font-weight: 950;
}

.dashboard-principle-button strong {
  grid-area: title;
  font-size: clamp(1.4rem, 2.1vw, 2.6rem);
  font-weight: 950;
  line-height: 1.05;
}

.dashboard-principle-button em {
  grid-area: pattern;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.96rem, 1.18vw, 1.3rem);
  font-style: normal;
  font-weight: 850;
}

.dashboard-loading-note {
  border: 1px solid rgba(239, 196, 70, 0.28);
  border-radius: 22px;
  padding: clamp(18px, 2vh, 24px);
  background: rgba(239, 196, 70, 0.08);
  color: #ffffff;
}

.dashboard-loading-note strong,
.dashboard-loading-note span {
  display: block;
}

.dashboard-loading-note strong {
  color: #efc446;
  font-size: clamp(1.15rem, 1.45vw, 1.7rem);
  font-weight: 950;
}

.dashboard-loading-note span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.9rem, 1vw, 1.12rem);
  font-weight: 850;
}

.dashboard-cyan {
  --dash-accent: #20d9ee;
  --dash-soft: rgba(32, 217, 238, 0.16);
}

.dashboard-purple {
  --dash-accent: #ba77ff;
  --dash-soft: rgba(186, 119, 255, 0.17);
}

.dashboard-gold {
  --dash-accent: #efc446;
  --dash-soft: rgba(239, 196, 70, 0.18);
}

.dashboard-green {
  --dash-accent: #72ec95;
  --dash-soft: rgba(114, 236, 149, 0.14);
}

.dashboard-depth {
  grid-template-rows: auto 1fr;
  align-content: center;
  gap: clamp(24px, 4vh, 48px);
}

.dashboard-depth::before {
  display: none;
  position: absolute;
  inset: auto -12vw -30vh auto;
  width: clamp(520px, 45vw, 920px);
  aspect-ratio: 1;
  border: clamp(12px, 1vw, 18px) solid var(--dash-accent);
  border-radius: 50%;
  opacity: 0.26;
  content: "";
}

.dashboard-depth-header {
  position: relative;
  z-index: 1;
  max-width: 1180px;
}

.dashboard-depth h2 {
  color: var(--dash-accent);
}

.dashboard-question {
  margin: clamp(12px, 1.8vh, 22px) 0 0;
  font-size: clamp(1.8rem, 2.8vw, 3.8rem);
}

.dashboard-full-question {
  max-width: 1050px;
  margin: clamp(12px, 1.8vh, 22px) 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.08rem, 1.45vw, 1.75rem);
  line-height: 1.35;
}

.dashboard-depth-grid {
  position: relative;
  z-index: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 1fr;
  gap: clamp(18px, 2.2vw, 36px);
  align-items: stretch;
}

.dashboard-panel {
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
  padding: clamp(20px, 2.3vw, 34px);
  background:
    linear-gradient(rgba(112, 132, 190, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 132, 190, 0.08) 1px, transparent 1px),
    rgba(255, 255, 255, 0.045);
  background-size: 56px 56px, 56px 56px, auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dashboard-panel h3 {
  margin: 0 0 clamp(16px, 2vh, 24px);
  color: var(--dash-accent);
  font-size: clamp(1.15rem, 1.55vw, 1.9rem);
  font-weight: 950;
}

.dashboard-patterns ol {
  display: grid;
  gap: clamp(8px, 1.2vh, 14px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-patterns li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  padding-bottom: clamp(8px, 1.2vh, 12px);
}

.dashboard-patterns li strong {
  color: #ffffff;
  font-size: clamp(1.05rem, 1.55vw, 1.82rem);
  font-weight: 950;
  line-height: 1.14;
}

.dashboard-patterns li span {
  color: #efc446;
  font-size: clamp(0.84rem, 1vw, 1.1rem);
  font-weight: 950;
}

.dashboard-meaning p {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.35rem, 2vw, 2.55rem);
  font-weight: 950;
  line-height: 1.28;
}

.dashboard-quote-list {
  display: grid;
  min-height: 0;
  height: 100%;
  gap: 14px;
  align-content: stretch;
}

.dashboard-quote-list blockquote {
  position: relative;
  min-height: clamp(170px, 27vh, 300px);
  height: 100%;
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  border: 0;
  padding: clamp(18px, 2.4vw, 34px);
}

.dashboard-quote-list blockquote::before,
.dashboard-quote-list blockquote::after {
  position: absolute;
  color: #efc446;
  font-size: clamp(3.2rem, 6vw, 7.8rem);
  font-weight: 950;
  line-height: 1;
  opacity: 0.78;
  pointer-events: none;
}

.dashboard-quote-list blockquote::before {
  top: 0;
  right: 0;
  content: "״";
}

.dashboard-quote-list blockquote::after {
  left: 0;
  bottom: -0.1em;
  content: "״";
}

.dashboard-quote-list p,
.dashboard-empty {
  margin: 0;
  place-self: center;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(1.16rem, 1.55vw, 2rem);
  font-weight: 950;
  line-height: 1.32;
  text-align: center;
  text-wrap: balance;
}

.dashboard-quotes {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.dashboard-quote-list cite {
  display: none;
  margin-top: 6px;
  color: rgba(239, 196, 70, 0.92);
  font-size: clamp(0.82rem, 0.98vw, 1.1rem);
  font-style: normal;
  font-weight: 900;
}

@keyframes dashboardFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dashboard-rotating-copy.is-rotating {
  animation: dashboardFadeIn 420ms ease-out;
}

.dashboard-rotation-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(6px, 1vh, 12px);
  color: rgba(255, 255, 255, 0.45);
  font-size: clamp(0.78rem, 0.92vw, 1rem);
  font-weight: 800;
}

.dashboard-rotation-label::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(239, 196, 70, 0.6);
  animation: dashboardPulse 2.6s ease-in-out infinite;
}

@keyframes dashboardPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

.dashboard-final {
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(38px, 5vw, 88px);
  text-align: right;
}

.dashboard-final-copy {
  align-self: center;
}

.dashboard-final h2 {
  max-width: 1160px;
  font-size: clamp(3.2rem, 5.2vw, 7.2rem);
  line-height: 0.96;
}

.dashboard-final .dashboard-subtitle {
  margin-top: clamp(10px, 1.5vh, 20px);
  font-size: clamp(1.35rem, 2vw, 2.8rem);
}

.dashboard-final-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.8vh, 32px) clamp(18px, 2.5vw, 36px);
  width: 100%;
  max-width: 820px;
  margin: clamp(18px, 3vh, 36px) auto 0;
}

.dashboard-final-node {
  min-height: clamp(110px, 14vh, 170px);
  display: grid;
  align-content: center;
  gap: 8px;
  border: 2px solid var(--dash-accent);
  border-radius: 26px;
  padding: clamp(20px, 2.2vw, 32px);
  background: var(--dash-soft);
  text-align: right;
}

.dashboard-final-node span {
  color: var(--dash-accent);
  font-size: clamp(1.05rem, 1.35vw, 1.6rem);
  font-weight: 950;
}

.dashboard-final-node strong {
  color: #ffffff;
  font-size: clamp(1.2rem, 1.6vw, 2rem);
  font-weight: 950;
  line-height: 1.14;
}

.dashboard-final-insight {
  display: grid;
  gap: clamp(8px, 1.2vh, 14px);
  margin-top: clamp(18px, 2.8vh, 36px);
  background: transparent;
}

.dashboard-final-insight p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.04rem, 1.35vw, 1.7rem);
  font-weight: 950;
  line-height: 1.4;
}

.dashboard-final-insight strong {
  color: #efc446;
  font-size: clamp(1rem, 1.3vw, 1.65rem);
  font-weight: 950;
  line-height: 1.24;
}

.dashboard-dots {
  position: absolute;
  bottom: clamp(14px, 2.2vh, 28px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  display: flex;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(16, 24, 61, 0.65);
  backdrop-filter: blur(8px);
}

.dashboard-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.dashboard-dot.active {
  background: #efc446;
  border-color: #efc446;
  transform: scale(1.3);
}

.dashboard-music-toggle {
  position: fixed;
  bottom: clamp(14px, 2.2vh, 28px);
  right: clamp(14px, 2vw, 28px);
  z-index: 20;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(16, 24, 61, 0.65);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
  line-height: 1;
}

.dashboard-music-toggle:hover {
  background: rgba(16, 24, 61, 0.85);
  transform: scale(1.1);
}

.dashboard-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.3);
}

.dashboard-nav {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: block;
  direction: ltr;
  pointer-events: none;
}

.dashboard-arrow {
  position: absolute;
  bottom: clamp(18px, 2.8vh, 38px);
  width: clamp(40px, 3.3vw, 54px);
  height: clamp(40px, 3.3vw, 54px);
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  color: #10183d;
  background: #efc446;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  font-size: clamp(1rem, 1.4vw, 1.65rem);
  font-weight: 950;
  line-height: 1;
  pointer-events: auto;
}

.dashboard-prev {
  right: clamp(16px, 2.4vw, 42px);
  color: #10183d;
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.92);
}

.dashboard-next {
  left: clamp(16px, 2.4vw, 42px);
  color: #10183d;
  background: #efc446;
  border-color: #ffffff;
}

.dashboard-arrow:disabled {
  display: none;
}

.dashboard-page-actions {
  position: absolute;
  left: clamp(64px, 7vw, 128px);
  bottom: clamp(22px, 3.2vh, 44px);
  z-index: 9;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  direction: rtl;
}

.dashboard-action {
  min-height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 0 clamp(18px, 1.6vw, 28px);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  font: inherit;
  font-size: clamp(0.9rem, 1.05vw, 1.15rem);
  font-weight: 950;
}

.dashboard-action:hover,
.dashboard-action:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
}

.dashboard-action-primary {
  border-color: #efc446;
  color: #10183d;
  background: #efc446;
}

.dashboard-principle-orbit > .dashboard-action {
  justify-self: start;
  margin-top: clamp(2px, 0.8vh, 10px);
}

.dashboard-landing-copy > .dashboard-action {
  margin-top: clamp(16px, 2.2vh, 28px);
}

.dashboard-final .dashboard-page-actions {
  left: clamp(34px, 3.8vw, 72px);
  bottom: clamp(28px, 4vh, 60px);
}

.dashboard-counter {
  display: none;
  position: absolute;
  left: 50%;
  bottom: clamp(34px, 5vh, 64px);
  transform: translateX(-50%);
  min-width: 62px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
  text-align: center;
  pointer-events: none;
}

.dashboard-rotating-copy {
  animation: dashboardTextPulse 5200ms ease-in-out infinite;
}

@keyframes dashboardTextPulse {
  0%,
  100% {
    opacity: 0.82;
    transform: translateY(0);
  }

  14%,
  72% {
    opacity: 1;
    transform: translateY(0);
  }

  86% {
    opacity: 0.62;
    transform: translateY(-3px);
  }
}

@media (max-width: 1100px) {
  .dashboard-slide {
    padding: 82px 28px 72px;
  }

  .dashboard-brand {
    top: 18px;
    left: 24px;
  }

  .dashboard-brand strong {
    font-size: 2.35rem;
  }

  .dashboard-brand span {
    font-size: 0.66rem;
  }

  .dashboard-partner-logos {
    top: 18px;
    left: 170px;
    right: auto;
    gap: 14px;
  }

  .dashboard-partner-logos img {
    max-width: 122px;
    max-height: 54px;
  }

  .dashboard-landing {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .dashboard-landing h2,
  .dashboard-slide h2 {
    font-size: clamp(2.6rem, 9vw, 5.6rem);
  }

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

  .dashboard-depth-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dashboard-depth {
    align-content: start;
    gap: 18px;
  }

  .dashboard-depth-header {
    max-width: none;
  }

  .dashboard-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .dashboard-quote-list blockquote {
    min-height: 120px;
    padding: 16px 22px;
  }

  .dashboard-quote-list p,
  .dashboard-empty {
    font-size: clamp(1rem, 3.7vw, 1.45rem);
  }

  .dashboard-final-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body[data-view="dashboard"] {
    height: auto;
    overflow-y: hidden;
  }

  body[data-view="dashboard"] .app-shell {
    height: 100dvh;
    overflow: hidden;
  }

  .dashboard-stage {
    height: 100dvh;
    background-size: 84px 84px, 84px 84px, auto, auto, auto;
  }

  .dashboard-slide {
    padding: 58px 14px 52px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dashboard-brand {
    top: 12px;
    left: 14px;
  }

  .dashboard-brand strong {
    font-size: 1.6rem;
  }

  .dashboard-brand span {
    margin-top: 3px;
    font-size: 0.5rem;
  }

  .dashboard-bubble-slide {
    padding-top: 48px;
    gap: 0;
    grid-template-rows: minmax(0, 1fr);
  }

  .bubble-label {
    font-size: clamp(0.75rem, 3.4vw, 0.95rem);
    margin-bottom: 12px;
  }

  .dashboard-node-map {
    border-radius: 18px;
  }

  .dashboard-bubble-slide .insight-node {
    width: clamp(145px, 42vw, 185px);
  }

  .dashboard-bubble-slide .insight-bubble {
    max-width: 145px;
    max-height: 145px;
    min-width: 110px;
    min-height: 110px;
    padding: 10px;
  }

  .dashboard-bubble-slide .phase-node-3 { top: 32%; left: 30%; }
  .dashboard-bubble-slide .phase-node-1 { top: 30%; left: 74%; }
  .dashboard-bubble-slide .phase-node-4 { top: 62%; left: 26%; }
  .dashboard-bubble-slide .phase-node-2 { top: 74%; left: 73%; }

  .dashboard-bubble-slide .bubble-clusters {
    width: 90%;
    gap: 2px;
  }

  .dashboard-bubble-slide .bubble-clusters li {
    font-size: 0.62rem;
    padding: 3px 1px;
  }

  .dashboard-partner-logos {
    top: 12px;
    left: 96px;
    right: auto;
    gap: 6px;
  }

  .dashboard-partner-logos img {
    max-width: 52px;
    max-height: 24px;
  }

  .dashboard-kicker {
    font-size: clamp(0.88rem, 3.8vw, 1.15rem);
  }

  .dashboard-kicker::after {
    width: 32px;
    height: 2px;
    margin-inline-start: 8px;
  }

  .dashboard-landing {
    align-content: start;
    gap: 10px;
  }

  .dashboard-landing-copy {
    padding-top: 8px;
  }

  .dashboard-landing h2,
  .dashboard-slide h2 {
    font-size: clamp(1.8rem, 8vw, 3rem);
    margin-top: 6px;
  }

  .dashboard-landing .dashboard-subtitle {
    font-size: clamp(1rem, 4.5vw, 1.45rem);
    margin-top: 6px;
  }

  .dashboard-landing .dashboard-manifest {
    font-size: clamp(0.82rem, 3.2vw, 0.98rem);
    margin-top: 8px;
  }

  .dashboard-stats {
    gap: 6px;
    margin-top: 10px;
  }

  .dashboard-stat {
    min-height: 58px;
    border-radius: 12px;
  }

  .dashboard-stat strong {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
  }

  .dashboard-stat span {
    font-size: 0.68rem;
  }

  .dashboard-principle-orbit {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-top: 8px;
  }

  .dashboard-section-label {
    font-size: 0.88rem;
    margin-bottom: 2px;
  }

  .dashboard-principle-orbit > .dashboard-section-label {
    grid-column: 1 / -1;
  }

  .dashboard-principle-orbit > .dashboard-action {
    grid-column: 1 / -1;
  }

  .dashboard-principle-button {
    min-height: 48px;
    padding: 8px 10px;
    border-radius: 14px;
  }

  .dashboard-principle-index {
    font-size: 0.68rem;
  }

  .dashboard-principle-button strong {
    font-size: 0.82rem;
  }

  .dashboard-principle-button em {
    font-size: 0.65rem;
  }

  .dashboard-loading-note {
    grid-column: 1 / -1;
  }

  .dashboard-depth {
    gap: 10px;
    align-content: start;
  }

  .dashboard-depth-header {
    margin-bottom: 0;
  }

  .dashboard-question {
    font-size: clamp(1.15rem, 5.5vw, 1.7rem);
  }

  .dashboard-full-question {
    font-size: clamp(0.76rem, 3.2vw, 0.92rem);
    margin-top: 2px;
  }

  .dashboard-depth-grid {
    gap: 8px;
  }

  .dashboard-panel {
    padding: 11px;
    border-radius: 14px;
  }

  .dashboard-panel h3 {
    margin-bottom: 6px;
    font-size: 0.88rem;
  }

  .dashboard-patterns ol {
    gap: 4px;
  }

  .dashboard-patterns li {
    gap: 6px;
    padding-bottom: 4px;
  }

  .dashboard-patterns li strong {
    font-size: 0.88rem;
  }

  .dashboard-patterns li span {
    font-size: 0.66rem;
  }

  .dashboard-meaning p {
    font-size: clamp(0.92rem, 4.2vw, 1.25rem);
  }

  .dashboard-quote-list blockquote {
    min-height: 72px;
    padding: 10px 16px;
  }

  .dashboard-quote-list blockquote::before,
  .dashboard-quote-list blockquote::after {
    font-size: 2.4rem;
  }

  .dashboard-quote-list p,
  .dashboard-empty {
    font-size: clamp(0.86rem, 3.4vw, 1.15rem);
  }

  .dashboard-final {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 58px;
    text-align: right;
  }

  .dashboard-final-copy {
    align-self: start;
  }

  .dashboard-final h2 {
    max-width: none;
    font-size: clamp(1.7rem, 7vw, 2.8rem);
  }

  .dashboard-final .dashboard-subtitle {
    font-size: clamp(1rem, 4.5vw, 1.5rem);
  }

  .dashboard-final-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 14px auto 0;
  }

  .dashboard-final-node {
    min-height: 90px;
    padding: 14px;
    border-radius: 18px;
    text-align: right;
  }

  .dashboard-final-node span {
    font-size: clamp(0.82rem, 3.5vw, 1rem);
  }

  .dashboard-final-node strong {
    font-size: clamp(0.92rem, 3.8vw, 1.1rem);
  }

  .dashboard-final-insight {
    gap: 6px;
    margin-top: 8px;
  }

  .dashboard-final-insight p {
    font-size: clamp(0.82rem, 3.4vw, 1.05rem);
  }

  .dashboard-final-insight strong {
    font-size: clamp(0.78rem, 3.2vw, 0.95rem);
  }

  .dashboard-final-copy > .dashboard-action {
    margin-top: 10px;
  }

  .dashboard-landing-copy > .dashboard-action {
    margin-top: 8px;
  }

  .dashboard-rotation-label {
    font-size: 0.68rem;
    margin-top: 4px;
  }

  .dashboard-credit {
    position: relative;
    left: 0;
    right: 0;
    width: auto;
    bottom: auto;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    padding-bottom: 6px;
  }

  .dashboard-credit-inline {
    position: relative;
    bottom: auto;
    width: 100%;
    white-space: normal;
  }

  .dashboard-credit img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .dashboard-credit strong {
    font-size: 0.66rem;
  }

  .dashboard-credit span {
    font-size: 0.6rem;
  }

  .dashboard-arrow {
    bottom: 10px;
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }

  .dashboard-nav {
    z-index: 10;
  }
}

/* Unified presentation background and final dashboard composition pass. */
body[data-view="participant"],
body[data-view="admin"],
body[data-view="screen"],
body[data-view="dashboard"] {
  background:
    linear-gradient(rgba(112, 132, 190, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 132, 190, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 74% 18%, rgba(239, 196, 70, 0.12), transparent 24rem),
    radial-gradient(circle at 14% 84%, rgba(32, 166, 205, 0.11), transparent 22rem),
    #10183d;
  background-size: 6.4vw 6.4vw, 6.4vw 6.4vw, auto, auto, auto;
}

body[data-view="participant"]::before,
body[data-view="participant"]::after,
body[data-view="admin"]::before,
body[data-view="admin"]::after,
body[data-view="screen"]::before,
body[data-view="screen"]::after {
  display: none;
}

body[data-view="participant"] .app-shell,
body[data-view="admin"] .app-shell,
body[data-view="screen"] .app-shell {
  background: transparent;
}

.dashboard-final .dashboard-kicker {
  margin-top: 0;
}

.dashboard-landing {
  align-items: start;
}

.dashboard-landing-copy {
  align-self: start;
  padding-top: clamp(30px, 4.2vh, 62px);
}

.dashboard-landing h2 {
  max-width: 1260px;
  font-size: clamp(3.3rem, 5vw, 7rem);
}

.dashboard-landing .dashboard-subtitle {
  font-size: clamp(1.45rem, 2.15vw, 2.9rem);
}

.dashboard-stats {
  margin-top: clamp(24px, 3.2vh, 42px);
}

.dashboard-stat {
  min-height: clamp(104px, 12vh, 150px);
}

.dashboard-stat strong {
  font-size: clamp(2.6rem, 4.8vw, 6.6rem);
}

@media (max-width: 720px) {
  .dashboard-final {
    gap: 8px;
    padding-top: 58px;
    padding-bottom: 16px;
  }

  .dashboard-final h2 {
    max-width: 94vw;
    font-size: clamp(1.7rem, 8vw, 3rem);
  }

  .dashboard-final .dashboard-subtitle {
    font-size: clamp(1rem, 4.5vw, 1.5rem);
  }

  .dashboard-final-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .dashboard-final-node {
    min-height: 68px;
  }

  .dashboard-final-insight {
    padding: 0 8px;
  }

  .dashboard-credit-inline {
    position: relative;
    bottom: auto;
    width: 100%;
    white-space: normal;
  }
}

/* ===== Credit footer upgrade — context line + contact icons (מרעש לאות) ===== */
.credit-footer {
  flex-direction: column;
  gap: 8px;
}
.credit-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  direction: ltr;
  text-align: right;
}
.credit-context {
  direction: rtl;
  color: var(--quiet);
  font-size: 0.82rem;
}
.credit-contact {
  display: flex;
  justify-content: center;
  gap: 12px;
  direction: ltr;
}
.credit-contact a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.credit-contact a svg {
  fill: #071b2c;
}
.credit-contact a:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}

/* ===== Dashboard credit bar — context + contact icons (מרעש לאות) ===== */
.dashboard-credit {
  flex-wrap: wrap;
  max-width: 94vw;
  row-gap: 8px;
  white-space: normal;
}
.dashboard-credit-context {
  direction: rtl;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.72rem, 0.9vw, 1rem);
  font-weight: 700;
  padding-left: clamp(10px, 1.2vw, 18px);
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}
.dashboard-credit-contact {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dashboard-credit-contact a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dashboard-credit-contact a svg {
  fill: #071b2c;
}
.dashboard-credit-contact a:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}

/* ===== Credit bar layout: logo first, rights line, side group at the right corner ===== */
.dashboard-credit-side {
  position: absolute;
  right: clamp(28px, 4vw, 72px);
  bottom: clamp(14px, 2.3vh, 30px);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 16px);
  direction: rtl;
}
.dashboard-credit-context {
  border-left: none;
  padding-left: 0;
}
.dashboard-credit-rights {
  direction: rtl;
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(0.72rem, 0.9vw, 1rem);
  font-weight: 700;
}
@media (max-width: 900px) {
  .dashboard-credit-side {
    right: 14px;
    bottom: 60px;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }
}

/* ===== Side group: context + rights stacked, icons beside ===== */
.dashboard-credit-texts {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
}

/* ===== Footer replica (like eilat-nivut) in product colors ===== */
.credit-footer {
  gap: 10px;
  padding: 16px 12px 14px;
  border-top: 1px solid var(--line-strong);
}
.credit-footer .credit-contact {
  align-items: center;
}
.credit-footer .credit-logo {
  width: 40px;
  height: 40px;
}
.credit-rights {
  direction: rtl;
  margin: 0;
  color: var(--quiet);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.7;
  text-align: center;
}

/* dashboard slide: logo + rights block on the left, context + icons on the right */
.dashboard-credit-rights-block {
  direction: rtl;
  text-align: right;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.7rem, 0.85vw, 0.95rem);
  font-weight: 600;
  line-height: 1.55;
  white-space: normal;
  max-width: 46vw;
}

/* ===== Depth slide composition fixes: contained cards + calmer title ===== */
.dashboard-slide h2 {
  font-size: clamp(2.8rem, 4.8vw, 6.4rem);
}
.dashboard-question {
  font-size: clamp(1.5rem, 2.2vw, 3rem);
}
.dashboard-panel {
  overflow: hidden;
}
.dashboard-quote-list blockquote {
  min-height: clamp(110px, 16vh, 220px);
}

/* ===== Compact mode: short viewports (embedded preview, small laptops) ===== */
@media (max-height: 840px) {
  .dashboard-slide h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
  .dashboard-question { font-size: clamp(1.2rem, 1.8vw, 2.1rem); margin-top: 8px; }
  .dashboard-full-question { font-size: clamp(0.9rem, 1.2vw, 1.3rem); margin-top: 8px; }
  .dashboard-depth-grid { gap: 12px; }
  .dashboard-panel { padding: 14px 18px; }
  .dashboard-panel h3 { margin-bottom: 10px; font-size: clamp(1rem, 1.3vw, 1.5rem); }
  .dashboard-meaning p { font-size: clamp(1.05rem, 1.4vw, 1.7rem); }
  .dashboard-quote-list blockquote { min-height: 0; padding: 12px 30px; }
  .dashboard-quote-list p,
  .dashboard-empty { font-size: clamp(0.95rem, 1.15vw, 1.4rem); }
  .dashboard-quote-list blockquote::before,
  .dashboard-quote-list blockquote::after { font-size: clamp(2rem, 3.6vw, 4.2rem); }
}
