:root {
  color-scheme: light;
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f5f5f1;
  --ink: #18181b;
  --muted: #565f59;
  --line: #e7e5e4;
  --dark: #09090b;
  --dark-2: #18181b;
  --accent: #609b90;
  --accent-strong: #28675d;
  --accent-2: #c026d3;
  --accent-2-light: #e879f9;
  --accent-3: #fb923c;
  --accent-soft: #e7f2ef;
  --fuchsia-soft: #fae8ff;
  --warn: #996018;
  --shadow: 0 18px 55px rgba(20, 21, 18, 0.1);
  --radius: 8px;
  --native-stack:
    Aptos, "Segoe UI Variable", "Segoe UI", "Helvetica Neue", Arial,
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: var(--native-stack);
  --ui: var(--native-stack);
  --display: var(--native-stack);
  font-family: var(--native-stack);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(96, 155, 144, 0.06), transparent 28%, rgba(192, 38, 211, 0.035) 56%, transparent 76%),
    linear-gradient(180deg, #ffffff, var(--bg));
  background-size: 160% 160%, 100% 100%;
  color: var(--ink);
  animation: pageDrift 18s ease-in-out infinite;
  font-family: var(--ui);
}

button,
input,
select,
textarea {
  font: inherit;
  min-width: 0;
}

select option,
select optgroup {
  background: #ffffff;
  color: #18181b;
}

.client-login-card select option,
.client-login-card select optgroup,
.room-view-select option,
.room-view-select optgroup,
.chart-select-label select option,
.chart-select-label select optgroup,
.media-meta-grid select option,
.media-meta-grid select optgroup {
  background: #ffffff;
  color: #18181b;
}

select:disabled option {
  color: #71717a;
}

button {
  cursor: pointer;
}

.shell {
  display: flex;
  flex-direction: column;
  width: min(1680px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 32px;
  animation: shellRise 620ms ease-out both;
}

.brand-hero {
  order: 1;
}

.asap-hub-panel {
  order: 2;
}

.client-access-panel {
  order: 3;
}

.ai-grid {
  order: 4;
}

.dashboard-panel {
  order: 5;
}

.workspace-grid {
  order: 6;
}

.bottom-grid {
  order: 7;
}

.site-foot {
  order: 8;
}

.brand-nav,
.hero-grid,
.panel-head,
.ai-actions,
.bottom-grid,
.workspace-grid,
.launch-actions,
.status-card,
.preset-bar {
  display: flex;
}

.brand-hero {
  position: relative;
  margin-bottom: 20px;
  overflow: hidden;
  contain: paint;
  border-radius: var(--radius);
  background:
    linear-gradient(115deg, rgba(96, 155, 144, 0.22), transparent 58%, rgba(192, 38, 211, 0.14)),
    var(--dark);
  color: white;
}

.brand-hero::before,
.brand-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.brand-hero::before {
  background:
    linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.08) 50%, transparent 58%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 70px);
  background-size: 220% 100%, 70px 100%;
  opacity: 0.55;
  animation: heroScan 9s linear infinite;
}

.brand-hero::after {
  background: linear-gradient(180deg, transparent, rgba(9, 9, 11, 0.22));
  opacity: 0.8;
  animation: heroPulse 6s ease-in-out infinite;
}

.brand-nav {
  position: relative;
  z-index: 80;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 64px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 9, 11, 0.84);
  animation: navDrop 520ms ease-out both;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(340px, 0.72fr);
  gap: 24px;
  align-items: stretch;
  padding: clamp(28px, 5vw, 64px) 22px 24px;
}

.brand-hero h1,
.panel h2,
.answer-section-head h3,
.dashboard-panel h2,
.chart-card h3 {
  font-family: var(--display);
  margin: 0;
  letter-spacing: 0;
}

.brand-hero h1 {
  color: white;
  font-family: var(--serif);
  font-size: clamp(3.3rem, 8.5vw, 7rem);
  font-weight: 700;
  line-height: 0.92;
  max-width: 920px;
  text-shadow: 0 0 28px rgba(192, 38, 211, 0.24);
  animation: titleRise 800ms ease-out both;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  max-width: 100%;
  color: white;
  font-family: var(--serif);
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-brand-row {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  max-width: 100%;
  flex-wrap: wrap;
}

.hero-brand-main {
  color: white;
  font-size: 1em;
  line-height: 1;
}

.hero-brand-tail {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-left: 0.11em;
  color: #d4d4d8;
  font-size: 0.24em;
  line-height: 1;
}

.hero-brand-x {
  margin-right: 0.1em;
  color: var(--accent-2-light);
}

.brand-heading {
  max-width: 780px;
  min-width: 0;
}

.wordmark {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  color: white;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  animation: titleRise 650ms ease-out both;
}

.wordmark-text {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.wordmark-main {
  font-size: 1.22em;
  line-height: 1;
}

.wordmark-tail {
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1;
  margin-left: 0.12em;
}

.wordmark-x {
  color: var(--accent-2);
  font-size: 0.62em;
  line-height: 1;
  margin-right: 0.1em;
}

.wordmark-tail span:last-child {
  color: #d4d4d8;
  font-size: 0.62em;
  line-height: 1;
}

.brand-logo-slot {
  display: none;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo-slot.ready {
  display: inline-flex;
}

.brand-logo-slot img {
  display: none;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  opacity: 0.96;
}

.brand-logo-slot img.is-loaded {
  display: block;
}

.nav-logo-slot img {
  max-height: 26px;
}

.hero-logo-slot {
  padding-bottom: 0.42em;
}

.hero-logo-slot img {
  max-width: 190px;
  max-height: 58px;
}

.subhead {
  width: 100%;
  max-width: 620px;
  margin: 8px 0 0;
  color: #94c9bf;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: break-word;
  animation: titleRise 850ms 120ms ease-out both;
}

.hero-kicker {
  margin: 18px 0 0;
  color: #e4e4e7;
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0;
  animation: titleRise 750ms 80ms ease-out both;
}

.hero-product {
  width: 100%;
  max-width: 100%;
  margin: 18px 0 0;
  color: #e4e4e7;
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0;
  overflow-wrap: break-word;
  animation: titleRise 750ms 80ms ease-out both;
}

.hero-copy {
  width: 100%;
  max-width: 650px;
  margin: 14px 0 0;
  color: #d4d4d8;
  font-size: clamp(0.98rem, 1.45vw, 1.16rem);
  line-height: 1.65;
  overflow-wrap: break-word;
  animation: titleRise 880ms 150ms ease-out both;
}

.client-access-panel {
  position: relative;
  margin-bottom: 20px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(96, 155, 144, 0.12), rgba(255, 255, 255, 0.96) 38%, rgba(198, 160, 79, 0.1)),
    var(--surface);
  box-shadow: var(--shadow);
  animation: stageEnter 560ms 80ms ease-out both;
}

.client-access-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 34%, rgba(255, 255, 255, 0.68) 45%, transparent 56%),
    repeating-linear-gradient(90deg, rgba(24, 24, 27, 0.035) 0 1px, transparent 1px 82px);
  background-size: 220% 100%, 82px 100%;
  opacity: 0.55;
  pointer-events: none;
  animation: heroScan 12s linear infinite;
}

.client-access-head,
.client-grid {
  position: relative;
  z-index: 1;
}

.client-access-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.client-access-head h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 2.45rem);
  letter-spacing: 0;
  line-height: 1.05;
}

.active-client-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(96, 155, 144, 0.25);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(24, 24, 27, 0.06);
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

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

.client-grid.single-client-grid .client-card {
  min-height: 168px;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  align-items: center;
}

.client-grid.single-client-grid .client-status {
  grid-column: 2;
}

.client-grid.single-client-grid .client-logo-mark {
  grid-row: 1 / span 3;
  grid-column: 1;
}

.client-grid.single-client-grid .client-card strong,
.client-grid.single-client-grid .client-card small {
  grid-column: 2;
}

.client-room-links {
  display: flex;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.client-room-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(96, 155, 144, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 900;
  text-decoration: none;
}

.client-room-links a:hover {
  border-color: rgba(96, 155, 144, 0.46);
  background: rgba(96, 155, 144, 0.1);
}

.asap-hub-panel {
  position: relative;
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(192, 38, 211, 0.22);
  border-top: 4px solid #c026d3;
  border-radius: var(--radius);
  background:
    linear-gradient(118deg, rgba(24, 24, 27, 0.94), rgba(40, 24, 49, 0.86)),
    var(--dark);
  color: white;
  box-shadow: 0 20px 54px rgba(24, 24, 27, 0.18);
}

.asap-hub-panel[hidden] {
  display: none;
}

.asap-hub-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 22%, rgba(255, 255, 255, 0.1) 48%, transparent 68%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 82px);
  background-size: 230% 100%, 82px 100%;
  opacity: 0.62;
  animation: cardGlide 8s ease-in-out infinite;
}

.asap-hub-head,
.asap-profile-grid {
  position: relative;
  z-index: 1;
}

.asap-hub-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.asap-hub-head h2 {
  margin: 0;
  color: white;
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 0.95;
}

.asap-hub-head p:not(.eyebrow) {
  max-width: 760px;
  margin: 8px 0 0;
  color: #e7d8f0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
}

.asap-hub-chip {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid rgba(120, 216, 200, 0.32);
  border-radius: var(--radius);
  background: rgba(120, 216, 200, 0.12);
  color: #bff4eb;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.asap-hub-chip:hover,
.asap-hub-chip:focus-visible {
  border-color: rgba(217, 70, 239, 0.72);
  background: rgba(217, 70, 239, 0.16);
  color: #fff8ff;
}

.asap-profile-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.asap-profile-button {
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(9, 9, 11, 0.62);
  color: white;
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.asap-profile-button:hover,
.asap-profile-button.active {
  transform: translateY(-3px);
  border-color: rgba(217, 70, 239, 0.7);
  background:
    linear-gradient(135deg, rgba(192, 38, 211, 0.24), rgba(120, 216, 200, 0.12)),
    rgba(9, 9, 11, 0.72);
}

.asap-profile-button.active {
  outline: 2px solid rgba(217, 70, 239, 0.8);
  outline-offset: 2px;
}

.asap-profile-button span {
  justify-self: start;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: #ddf9f4;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.asap-profile-button strong {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.58rem);
  line-height: 1;
}

.asap-profile-button small {
  color: #dcc9e8;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.38;
}

.asap-profile-button em {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  font-style: normal;
}

.asap-profile-button em b {
  min-width: 0;
  padding: 7px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #78d8c8;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.client-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(88px, auto) auto 1fr;
  gap: 10px;
  min-height: 238px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(24, 24, 27, 0.1);
  border-top: 5px solid var(--client-card-accent, var(--accent));
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(24, 24, 27, 0.88), rgba(24, 24, 27, 0.76)),
    var(--dark);
  color: white;
  text-align: left;
  box-shadow: 0 16px 38px rgba(24, 24, 27, 0.12);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  animation: clientCardIn 560ms ease-out both;
}

.client-card:nth-child(2) {
  animation-delay: 80ms;
}

.client-card:nth-child(3) {
  animation-delay: 160ms;
}

.client-card::before,
.client-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.client-card::before {
  inset: 0;
  background:
    linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, 0.14) 48%, transparent 68%),
    radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--client-card-accent, var(--accent)) 32%, transparent), transparent 34%);
  background-size: 220% 100%, 100% 100%;
  opacity: 0.7;
  animation: cardGlide 7s ease-in-out infinite;
}

.client-card::after {
  right: 12px;
  bottom: 12px;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--client-card-accent, var(--accent)));
  opacity: 0.85;
}

.client-card:hover,
.client-card.active {
  border-color: color-mix(in srgb, var(--client-card-accent, var(--accent)) 65%, white);
  box-shadow: 0 24px 62px rgba(24, 24, 27, 0.2);
  transform: translateY(-4px);
}

.client-card.active {
  outline: 2px solid color-mix(in srgb, var(--client-card-accent, var(--accent)) 56%, white);
  outline-offset: 2px;
}

.client-card > * {
  position: relative;
  z-index: 1;
}

.client-status {
  justify-self: start;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #f4f4f5;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.client-logo-mark {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 230px;
  min-height: 86px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.client-logo-mark img {
  display: none;
  width: auto;
  max-width: 100%;
  max-height: 66px;
  object-fit: contain;
}

.client-logo-mark img.is-loaded {
  display: block;
}

.client-logo-mark.has-logo span {
  display: none;
}

.client-logo-mark span {
  color: white;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 0;
}

.client-card strong {
  color: white;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.3vw, 1.72rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.client-card small {
  color: #d4d4d8;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
}

.app-menu-shell {
  display: flex;
  flex: 1 1 520px;
  min-width: 260px;
}

.app-menu-toggle {
  display: none;
}

.app-menu {
  display: flex;
  flex: 1 1 520px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 260px;
}

.app-menu-button,
.room-view-select {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.065);
  color: #e4e4e7;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.app-menu-button {
  padding: 0 10px;
}

.room-view-select {
  width: min(230px, 100%);
  padding: 0 32px 0 10px;
  color: white;
  background:
    linear-gradient(135deg, rgba(96, 155, 144, 0.18), rgba(192, 38, 211, 0.12)),
    rgba(9, 9, 11, 0.55);
}

.room-view-select[hidden] {
  display: none;
}

.admin-only-action {
  display: none;
}

.admin-mode .admin-only-action {
  display: inline-flex;
}

.asset-status {
  min-height: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.asset-status.ok {
  color: var(--teal);
}

.asset-status.warn {
  color: #f0b3f5;
}

.app-menu-button[disabled] {
  cursor: not-allowed;
  opacity: 0.46;
}

.app-menu-button:hover,
.app-menu-button:focus-visible,
.app-menu-button.active,
.room-view-select:hover,
.room-view-select:focus-visible {
  border-color: rgba(96, 155, 144, 0.68);
  background: rgba(96, 155, 144, 0.18);
  color: white;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
}

.nav-links a {
  position: relative;
  color: #d4d4d8;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover {
  color: white;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.admin-login-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: #d4d4d8;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.admin-login-button:hover,
.admin-login-button.active {
  border-color: rgba(96, 155, 144, 0.72);
  background: rgba(96, 155, 144, 0.18);
  color: white;
  transform: translateY(-1px);
}

.admin-login-button svg {
  width: 15px;
  height: 15px;
}

.panel h2 {
  font-size: clamp(1.08rem, 1.3vw, 1.28rem);
  line-height: 1.16;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.brand-hero .eyebrow {
  color: var(--accent-2-light);
}

.status-card {
  position: relative;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #d4d4d8;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
}

.status-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: translateX(-110%);
  animation: statusSweep 4.4s ease-in-out infinite;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(96, 155, 144, 0.2);
  animation: statusPulse 1.8s ease-in-out infinite;
}

.signal-module {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 16px;
  width: 100%;
  min-width: 0;
  min-height: 310px;
  padding: 18px;
  border: 1px solid #3f3f46;
  border-radius: var(--radius);
  background: rgba(24, 24, 27, 0.78);
  overflow: hidden;
  animation: moduleFloat 7s ease-in-out infinite;
}

.signal-module::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-100%);
  animation: moduleSheen 4.8s ease-in-out infinite;
}

.signal-label {
  position: relative;
  z-index: 1;
  color: #d4d4d8;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-line {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  min-height: 98px;
}

.signal-line::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, #71717a, #94c9bf, var(--accent-3));
  transform: rotate(-9deg);
  transform-origin: center;
  animation: signalFlow 3.3s ease-in-out infinite;
}

.signal-line span {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--dark);
  animation: nodePulse 2.8s ease-in-out infinite;
}

.signal-line span:nth-child(2) {
  animation-delay: 180ms;
}

.signal-line span:nth-child(3) {
  animation-delay: 360ms;
}

.signal-line span:nth-child(4) {
  animation-delay: 540ms;
}

.signal-line span:nth-child(1) {
  align-self: end;
}

.signal-line span:nth-child(2) {
  align-self: center;
}

.signal-line span:nth-child(3),
.signal-line span:nth-child(4) {
  align-self: start;
}

.process-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-strip li {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 62px;
  padding: 10px;
  border-top: 3px solid var(--accent);
  background: white;
  color: var(--ink);
  animation: stageEnter 700ms ease-out both;
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.process-strip li::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(96, 155, 144, 0.1), transparent);
  transform: translateX(-120%);
  animation: processSweep 6.2s ease-in-out infinite;
  pointer-events: none;
}

.process-strip li:hover {
  box-shadow: 0 12px 28px rgba(24, 24, 27, 0.16);
  transform: translateY(-3px);
}

.process-strip li:nth-child(2) {
  animation-delay: 80ms;
}

.process-strip li:nth-child(3) {
  animation-delay: 160ms;
}

.process-strip li:nth-child(4) {
  animation-delay: 240ms;
}

.process-strip li:nth-child(3) {
  border-top-color: var(--accent-2);
}

.process-strip li:nth-child(4) {
  border-top-color: var(--accent-3);
}

.process-strip strong {
  color: var(--muted);
  font-size: 0.72rem;
}

.process-strip span {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.workspace-grid {
  display: none;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
}

.admin-mode .workspace-grid {
  display: grid;
}

.admin-panel .workspace-grid {
  margin: 0;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.bottom-grid {
  display: none;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.admin-mode .bottom-grid {
  display: grid;
}

.admin-panel {
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.admin-mode .admin-panel {
  display: block;
}

.admin-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.admin-panel > summary::-webkit-details-marker {
  display: none;
}

.admin-panel > summary svg {
  transition: transform 160ms ease;
}

.admin-panel[open] > summary svg {
  transform: rotate(180deg);
}

.admin-panel:not([open]) .launch-panel,
.admin-panel:not([open]) .workspace-grid,
.admin-panel:not([open]) .command-panel,
.admin-panel:not([open]) .refresh-panel,
.admin-panel:not([open]) .data-depth-panel,
.admin-panel:not([open]) .seat-panel,
.admin-panel:not([open]) .onboard-panel {
  display: none;
}

.admin-panel .launch-panel,
.admin-panel .command-panel,
.admin-panel .refresh-panel,
.admin-panel .data-depth-panel,
.admin-panel .seat-panel,
.admin-panel .onboard-panel {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.admin-panel .launch-panel:last-child,
.admin-panel .command-panel:last-child,
.admin-panel .refresh-panel:last-child,
.admin-panel .data-depth-panel:last-child,
.admin-panel .seat-panel:last-child,
.admin-panel .onboard-panel:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
}

.refresh-panel,
.data-depth-panel,
.seat-panel,
.onboard-panel {
  display: grid;
  gap: 14px;
}

.data-depth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.data-depth-actions select {
  min-height: 40px;
  width: min(280px, 100%);
  border: 1px solid rgba(96, 155, 144, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-weight: 900;
}

.data-depth-body {
  display: grid;
  gap: 12px;
}

.data-depth-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(96, 155, 144, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(96, 155, 144, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(24, 24, 27, 0.96), rgba(40, 30, 48, 0.96));
  color: #f4f4f5;
}

.data-depth-hero span,
.data-depth-topics span {
  display: block;
  color: #c6b8d9;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.data-depth-hero strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 2.35rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.98;
}

.data-depth-hero small {
  display: block;
  max-width: 720px;
  margin-top: 8px;
  color: rgba(244, 244, 245, 0.78);
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.35;
}

.data-depth-hero b {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(120, 216, 200, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(120, 216, 200, 0.26), transparent 60%),
    rgba(9, 9, 11, 0.72);
  color: #78d8c8;
  font-size: 1.62rem;
  font-weight: 950;
  box-shadow: 0 0 28px rgba(120, 216, 200, 0.18);
}

.data-depth-progress {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(24, 24, 27, 0.14);
}

.data-depth-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--accent-2), var(--accent-3));
  animation: scoreFlow 4.8s ease-in-out infinite;
}

.data-depth-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.data-depth-metrics article,
.data-depth-bars article {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(24, 24, 27, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.data-depth-metrics span,
.data-depth-bars span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-depth-metrics strong {
  display: block;
  margin-top: 4px;
  color: var(--teal);
  font-size: clamp(1.15rem, 2.2vw, 1.72rem);
  font-weight: 950;
  line-height: 1;
}

.data-depth-metrics small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 780;
  line-height: 1.25;
}

.data-depth-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.data-depth-bars article {
  display: grid;
  gap: 8px;
  animation: answerMetricIn 480ms ease-out calc(var(--i) * 80ms) both;
}

.data-depth-bars b {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 950;
}

.data-depth-bars em {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(24, 24, 27, 0.12);
}

.data-depth-bars em::before {
  content: "";
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--accent-2));
}

.data-depth-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.data-depth-topics > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(96, 155, 144, 0.2);
  border-radius: var(--radius);
  background: rgba(96, 155, 144, 0.06);
}

.data-depth-topics span {
  flex-basis: 100%;
  color: var(--muted);
}

.data-depth-topics button {
  min-height: 30px;
  border: 1px solid rgba(96, 155, 144, 0.24);
  border-radius: 999px;
  background: white;
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 900;
}

.data-depth-topics small {
  color: var(--muted);
  font-weight: 800;
}

.refresh-result-box {
  min-height: 86px;
}

.onboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.onboard-routing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(96, 155, 144, 0.22);
  border-radius: var(--radius);
  background: rgba(96, 155, 144, 0.07);
}

.onboard-routing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.onboard-routing-actions .secondary-button {
  min-height: 42px;
  white-space: nowrap;
}

.seat-grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(96, 155, 144, 0.22);
  border-radius: var(--radius);
  background: rgba(96, 155, 144, 0.07);
}

.seat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.seat-actions button {
  min-height: 42px;
  white-space: nowrap;
}

.seat-list {
  display: grid;
  gap: 8px;
  min-height: 64px;
}

.seat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(24, 24, 27, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
}

.seat-row strong,
.seat-row span {
  display: block;
}

.seat-row strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.seat-row span,
.seat-row em,
.seat-empty {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.seat-row em {
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(96, 155, 144, 0.12);
  color: var(--accent-strong);
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.market-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.market-grid input {
  width: auto;
}

.market-grid span {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: none;
}

.onboard-accept {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(192, 38, 211, 0.2);
  border-radius: var(--radius);
  background: rgba(192, 38, 211, 0.06);
}

.onboard-accept input {
  width: auto;
  margin-top: 2px;
}

.onboard-accept span {
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.35;
  text-transform: none;
}

.onboard-validation {
  display: grid;
  gap: 8px;
  min-height: 36px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.onboard-validation strong {
  color: var(--ink);
}

.onboard-validation ul {
  margin: 0;
  padding-left: 18px;
}

.onboard-validation.is-ok {
  color: var(--accent-strong);
}

.onboard-validation.is-warn {
  color: var(--warn);
}

.onboard-panel button:disabled svg {
  animation: none;
}

.admin-dialog {
  width: min(420px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
}

.client-login-gate {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(120deg, rgba(96, 155, 144, 0.2), transparent 40%, rgba(192, 38, 211, 0.16)),
    rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(12px);
}

.client-login-gate[hidden] {
  display: none;
}

.matrix-entry {
  position: fixed;
  z-index: 1400;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(120, 216, 200, 0.18), transparent 34%),
    linear-gradient(180deg, #020403, #050807 54%, #010201);
  color: #a8fff1;
}

.matrix-entry[hidden] {
  display: none;
}

.matrix-entry::before,
.matrix-entry::after {
  content: "";
  position: absolute;
  inset: -12%;
  pointer-events: none;
}

.matrix-entry::before {
  background:
    repeating-linear-gradient(90deg, rgba(120, 216, 200, 0.11) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(180deg, rgba(120, 216, 200, 0.08) 0 1px, transparent 1px 18px);
  transform: perspective(700px) rotateX(58deg) translateY(10%);
  transform-origin: center bottom;
  animation: matrixGridIn 1100ms cubic-bezier(0.2, 0.84, 0.28, 1) both;
}

.matrix-entry::after {
  background:
    linear-gradient(90deg, transparent, rgba(120, 216, 200, 0.22), transparent),
    linear-gradient(180deg, transparent, rgba(217, 70, 239, 0.16), transparent);
  mix-blend-mode: screen;
  animation: matrixScan 860ms ease-out both;
}

.matrix-entry-code {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 18px;
  padding: 24px;
  opacity: 0.38;
  color: #78d8c8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.72rem, 1.5vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
}

.matrix-entry-code span {
  animation: matrixRain 880ms linear both;
}

.matrix-entry-code span:nth-child(2n) {
  animation-delay: 90ms;
  color: #d946ef;
}

.matrix-entry-code span:nth-child(3n) {
  animation-delay: 160ms;
}

.matrix-entry-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  width: min(440px, calc(100% - 36px));
  padding: 24px;
  border: 1px solid rgba(120, 216, 200, 0.46);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(120, 216, 200, 0.12), rgba(217, 70, 239, 0.08)),
    rgba(4, 6, 6, 0.86);
  box-shadow:
    0 0 48px rgba(120, 216, 200, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  text-align: center;
  animation: matrixCardIn 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.matrix-entry-card p,
.matrix-entry-card span {
  margin: 0;
  color: #bff4eb;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.matrix-entry-card strong {
  color: #fff;
  font-size: clamp(2.4rem, 8vw, 5.2rem);
  font-weight: 950;
  line-height: 0.9;
  text-shadow: 0 0 24px rgba(120, 216, 200, 0.42);
}

.matrix-entry.is-leaving {
  animation: matrixLeave 420ms ease-in forwards;
}

.secure-entry-active body {
  overflow: hidden;
}

.client-login-card {
  display: grid;
  gap: 16px;
  width: min(520px, 100%);
  max-width: calc(100vw - 28px);
  padding: 22px;
  border: 1px solid rgba(120, 216, 200, 0.36);
  border-top: 4px solid var(--client-accent, var(--accent));
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(24, 24, 27, 0.96), rgba(30, 22, 38, 0.94)),
    var(--dark);
  color: white;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.4);
}

.client-login-card label,
.client-login-card input,
.client-login-card select,
.client-login-card button {
  min-width: 0;
}

.client-login-head,
.client-login-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.client-login-head h2 {
  margin: 3px 0 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1;
}

.client-login-card label span {
  color: #c9bddd;
}

.client-login-card input,
.client-login-card select {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.client-login-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(120, 216, 200, 0.28);
  border-radius: 999px;
  color: #8fe8d9;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.client-login-message {
  min-height: 18px;
  color: #f0d6ff;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.45;
}

.client-login-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.client-locked .shell {
  max-height: 100vh;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  filter: blur(14px);
}

.admin-dialog::backdrop {
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(8px);
}

.admin-dialog-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(96, 155, 144, 0.36);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(9, 9, 11, 0.28);
}

.admin-dialog-head,
.admin-dialog-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-dialog-head h2 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 1.18rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-login-message {
  min-height: 18px;
  color: var(--warn);
  font-size: 0.84rem;
  font-weight: 800;
}

.admin-reset-panel {
  display: grid;
  gap: 12px;
}

.admin-reset-panel[hidden] {
  display: none;
}

.admin-reset-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;
}

.admin-dialog-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.panel {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 3px solid rgba(96, 155, 144, 0.72);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(24, 24, 27, 0.045);
  padding: 16px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
  animation: panelIn 520ms ease-out both;
  overflow: hidden;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(96, 155, 144, 0.09), transparent),
    linear-gradient(180deg, rgba(192, 38, 211, 0.08), transparent 34%);
  transform: translateX(-118%);
  opacity: 0;
  animation: panelSweep 7.4s ease-in-out infinite;
}

.panel:hover {
  border-color: rgba(96, 155, 144, 0.32);
  box-shadow: 0 16px 45px rgba(24, 24, 27, 0.09);
  transform: translateY(-2px);
}

.panel-head {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.preset-bar {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.preset-button,
.stage-toggle,
.icon-button,
.icon-text-button,
.secondary-button,
.primary-button {
  position: relative;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
  overflow: hidden;
}

.preset-button::after,
.stage-toggle::after,
.icon-button::after,
.icon-text-button::after,
.secondary-button::after,
.primary-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: translateX(-120%);
  transition: transform 420ms ease;
  pointer-events: none;
}

.preset-button:hover::after,
.stage-toggle:hover::after,
.icon-button:hover::after,
.icon-text-button:hover::after,
.secondary-button:hover::after,
.primary-button:hover::after {
  transform: translateX(120%);
}

.preset-button {
  padding: 0 12px;
}

.preset-button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(96, 155, 144, 0.14);
}

.stage-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stage-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--stage-accent, var(--accent));
  border-radius: var(--radius);
  background: white;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  animation: stageEnter 420ms ease-out both;
  overflow: hidden;
}

.stage-item::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--stage-accent, var(--accent)), transparent);
  transform: translateX(-100%);
  opacity: 0.72;
  pointer-events: none;
}

.stage-item.active::after {
  animation: stageRail 3.6s ease-in-out infinite;
}

.stage-item.excluded {
  opacity: 0.55;
}

.stage-item.active:hover {
  box-shadow: 0 12px 30px rgba(24, 24, 27, 0.08);
  transform: translateX(4px);
}

.stage-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--stage-accent, var(--accent));
  font-weight: 900;
}

.stage-item.active .stage-number {
  background: var(--stage-accent, var(--accent));
  color: white;
  animation: stageNode 2.8s ease-in-out infinite;
}

.stage-item.active {
  border-color: var(--line);
  border-top-color: var(--stage-accent, var(--accent));
}

.stage-copy strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.stage-copy span {
  color: var(--muted);
  font-size: 0.83rem;
  overflow-wrap: anywhere;
}

.stage-badge {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stage-item.active .stage-badge {
  background: var(--surface-2);
  color: var(--stage-accent, var(--accent));
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.prompt-block {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.setup-panel {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
}

.setup-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.setup-panel > summary::-webkit-details-marker {
  display: none;
}

.setup-panel > summary svg {
  transition: transform 160ms ease;
}

.setup-panel[open] > summary svg {
  transform: rotate(180deg);
}

.setup-panel:not([open]) .prompt-block {
  display: none;
}

.admin-only {
  display: none;
}

.gideon-console-panel,
.gideon-question-stack,
.gideon-answer-stack {
  display: grid;
  gap: 14px;
  align-content: start;
}

.gideon-console-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(480px, 1fr);
  gap: 18px;
  align-items: start;
}

.gideon-answer-stack {
  min-height: 100%;
  max-height: min(760px, calc(100vh - 170px));
  overflow: auto;
  padding-left: 18px;
  padding-right: 4px;
  border-left: 1px solid var(--line);
}

.answer-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.answer-section-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.8vw, 2.25rem);
  line-height: 1.1;
}

.ai-input-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(260px, 1fr);
  gap: 12px;
}

.ai-actions {
  gap: 10px;
}

.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attachment-list {
  position: relative;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  overflow: hidden;
}

.attachment-list::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.64), transparent);
  transform: translateX(-110%);
  animation: attachmentSweep 7s ease-in-out infinite;
  pointer-events: none;
}

.attachment-list strong {
  color: var(--ink);
}

.attachment-items {
  display: grid;
  gap: 8px;
}

.attachment-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  padding: 8px 9px;
  border: 1px solid rgba(96, 155, 144, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.54);
}

.attachment-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.attachment-item small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 700;
}

.attachment-kind {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.media-editor {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(120, 216, 200, 0.3);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(120, 216, 200, 0.13), transparent 42%),
    linear-gradient(180deg, rgba(9, 9, 11, 0.93), rgba(24, 19, 31, 0.95));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 46px rgba(9, 9, 11, 0.18);
}

.media-editor[hidden] {
  display: none;
}

.media-editor-head,
.media-clip-head,
.media-clip-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.media-editor-head h3,
.media-clip-head h4 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: 0;
  line-height: 1.05;
}

.media-editor-head > span,
.media-clip-kind {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(120, 216, 200, 0.16);
  border: 1px solid rgba(120, 216, 200, 0.22);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.media-editor-list {
  display: grid;
  gap: 12px;
}

.media-clip-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 10% 0%, rgba(120, 216, 200, 0.13), transparent 32%),
    linear-gradient(145deg, rgba(7, 7, 10, 0.98), rgba(25, 19, 32, 0.96)),
    #111315;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(9, 9, 11, 0.12);
  animation: studioCardIn 420ms ease-out both;
}

.media-clip-card:nth-child(2) {
  animation-delay: 70ms;
}

.media-clip-card:nth-child(3) {
  animation-delay: 140ms;
}

.media-clip-head h4 {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 0.98rem;
}

.media-clip-head small {
  display: block;
  margin-top: 3px;
  color: #b8b6c0;
  font-size: 0.74rem;
  font-weight: 800;
}

.media-edit-bay {
  display: grid;
  grid-template-columns: minmax(180px, 0.74fr) minmax(260px, 1.26fr);
  gap: 12px;
  align-items: stretch;
}

.media-source-monitor,
.media-timeline-console {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(4, 4, 8, 0.78);
}

.media-source-monitor {
  display: grid;
  grid-template-rows: auto minmax(94px, 1fr);
}

.media-monitor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
  padding: 0 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #b8b6c0;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-monitor-bar b {
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.media-player {
  width: 100%;
  height: 100%;
  max-height: 250px;
  border-radius: 0;
  background: #050508;
}

audio.media-player {
  align-self: center;
  min-height: 54px;
  padding: 18px 10px;
}

.media-timeline-console {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.media-analysis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.media-analysis-grid div {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
}

.media-analysis-grid span {
  display: block;
  color: #c6b8d9;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.media-analysis-grid strong {
  display: block;
  margin-top: 4px;
  color: #78d8c8;
  font-family: var(--display);
  font-size: clamp(1rem, 2vw, 1.45rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.media-analysis-status {
  margin: 0;
  color: #d8d0e6;
  font-size: 0.8rem;
  font-weight: 800;
}

.media-waveform-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(96, 155, 144, 0.18), rgba(192, 38, 211, 0.2)),
    #08070c;
}

.media-ruler {
  position: absolute;
  z-index: 1;
  top: 7px;
  right: 8px;
  left: 8px;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  pointer-events: none;
  text-transform: uppercase;
}

.media-waveform {
  display: block;
  width: 100%;
  height: 108px;
}

.media-clip-summary {
  color: #d8d0e6;
  font-size: 0.78rem;
  font-weight: 900;
}

.media-clip-summary span {
  color: #fff;
}

.media-range-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.media-range-grid label,
.media-meta-grid label {
  display: grid;
  gap: 6px;
}

.media-range-grid span,
.media-meta-grid span {
  color: #c6b8d9;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-range-grid input[type="range"] {
  accent-color: var(--accent-2);
}

.media-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.media-meta-grid .wide {
  grid-column: 1 / -1;
}

.media-meta-grid input,
.media-meta-grid select,
.media-meta-grid textarea {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.media-meta-grid select option {
  color: #111315;
}

.media-meta-grid textarea {
  min-height: 74px;
  resize: vertical;
}

.media-clip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.media-clip-actions .secondary-button {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.media-peak-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 27px;
}

.media-peak-list button,
.media-peak-list span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(120, 216, 200, 0.26);
  border-radius: 999px;
  background: rgba(120, 216, 200, 0.1);
  color: #dff9f5;
  font-size: 0.64rem;
  font-weight: 900;
}

@media (max-width: 760px) {
  .media-editor {
    padding: 10px;
  }

  .media-editor-head,
  .media-clip-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .media-edit-bay,
  .media-analysis-grid,
  .media-meta-grid,
  .media-range-grid {
    grid-template-columns: 1fr;
  }

  .media-monitor-bar {
    align-items: flex-start;
    flex-direction: column;
    padding: 8px;
  }

  .media-waveform {
    height: 96px;
  }

  audio.media-player {
    padding: 10px 8px;
  }
}

.status-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(96, 155, 144, 0.42);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  animation: pillPulse 3.2s ease-in-out infinite;
  overflow: hidden;
}

.capability-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.capability {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  animation: chipFloat 5s ease-in-out infinite;
}

.capability:nth-child(2) {
  animation-delay: 160ms;
}

.capability:nth-child(3) {
  animation-delay: 320ms;
}

.capability:nth-child(4) {
  animation-delay: 480ms;
}

.capability:nth-child(5) {
  animation-delay: 640ms;
}

.capability.ready {
  border-color: rgba(96, 155, 144, 0.38);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.capability.next {
  border-color: rgba(192, 38, 211, 0.24);
  background: var(--fuchsia-soft);
  color: #9d1caf;
}

.answer-result-box {
  min-height: 156px;
}

.social-reply-bot,
.social-integrity-bot {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(96, 155, 144, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(96, 155, 144, 0.09), rgba(192, 38, 211, 0.07)),
    rgba(255, 255, 255, 0.78);
}

.social-integrity-bot {
  border-color: rgba(192, 38, 211, 0.22);
  background:
    linear-gradient(135deg, rgba(192, 38, 211, 0.1), rgba(96, 155, 144, 0.08)),
    rgba(255, 255, 255, 0.8);
}

.social-reply-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.social-reply-head h3 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.08;
}

.social-reply-head > span {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid rgba(96, 155, 144, 0.24);
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.social-reply-input {
  display: grid;
  gap: 6px;
}

.social-reply-input span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.social-reply-input textarea,
.social-reply-input input {
  min-height: 86px;
  resize: vertical;
}

.social-reply-input input {
  min-height: 46px;
  resize: none;
}

.social-tone-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-tone-button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(24, 24, 27, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.social-tone-button:hover,
.social-tone-button:focus-visible,
.social-tone-button.active {
  border-color: rgba(96, 155, 144, 0.58);
  background: rgba(96, 155, 144, 0.16);
  color: var(--ink);
}

.social-reply-action {
  justify-content: center;
}

.social-scan-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 8px;
}

.social-scan-button {
  justify-content: center;
  min-height: 42px;
  position: relative;
}

.social-scan-button:first-child {
  border-color: rgba(192, 38, 211, 0.34);
  background: linear-gradient(135deg, rgba(192, 38, 211, 0.16), rgba(96, 155, 144, 0.1));
  color: var(--ink);
}

.social-reply-output,
.social-integrity-output {
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(24, 24, 27, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.42;
  white-space: pre-wrap;
}

.social-integrity-output {
  min-height: 154px;
}

.dashboard-panel {
  position: relative;
  margin-top: 18px;
  padding: 22px 0 0;
  border-top: 3px solid #b5429f;
  background:
    linear-gradient(180deg, rgba(245, 245, 241, 0.96), rgba(250, 250, 249, 0.72) 72%, transparent);
  overflow: hidden;
}

.dashboard-panel::before,
.dashboard-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.dashboard-panel::before {
  inset: 0;
  background:
    linear-gradient(100deg, transparent 18%, rgba(96, 155, 144, 0.11) 28%, transparent 42%),
    repeating-linear-gradient(90deg, rgba(96, 155, 144, 0.06) 0 1px, transparent 1px 92px);
  transform: translateX(-36%);
  animation: dashboardScan 9s linear infinite;
}

.dashboard-panel::after {
  width: 340px;
  height: 340px;
  right: -180px;
  top: -170px;
  border: 1px solid rgba(192, 38, 211, 0.18);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(192, 38, 211, 0.1), transparent 62%);
  animation: dashboardPulse 5.8s ease-in-out infinite;
}

.dashboard-head,
.metric-strip,
.chart-grid {
  position: relative;
  z-index: 1;
}

html[data-dashboard-motion="preview"] .metric-tile strong {
  animation: numberBreathe 2.8s ease-in-out infinite;
}

html[data-dashboard-motion="preview"] .chart-card canvas {
  animation:
    canvasGlow 5.2s ease-in-out infinite,
    chartBreathe 8.4s ease-in-out infinite,
    previewFloat 4.8s ease-in-out infinite;
}

html[data-dashboard-motion="preview"] .chart-card:nth-child(2) canvas {
  animation-delay: 160ms, 260ms, 260ms;
}

html[data-dashboard-motion="preview"] .chart-card:nth-child(3) canvas {
  animation-delay: 320ms, 520ms, 520ms;
}

.dashboard-head,
.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.chart-head > div:first-child {
  min-width: 0;
}

.chart-head-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.chart-select-label {
  display: inline-grid;
  grid-template-columns: auto minmax(118px, 150px);
  align-items: center;
  gap: 8px;
}

.chart-select-label span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.chart-select-label select {
  height: 36px;
  padding: 7px 28px 7px 10px;
  font-size: 0.82rem;
  font-weight: 900;
}

.dashboard-head {
  margin-bottom: 14px;
}

.ideas-lockup {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: max-content;
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1;
  white-space: nowrap;
  animation: ideasLift 6s ease-in-out infinite;
}

.ideas-main {
  font-size: clamp(2.1rem, 5vw, 4.3rem);
  font-weight: 900;
  line-height: 1;
}

.ideas-tail {
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1;
  margin-left: 0.12em;
}

.ideas-x {
  color: var(--accent-2);
  font-size: clamp(1rem, 1.65vw, 1.34rem);
  line-height: 1;
  margin-right: 0.1em;
}

.ideas-tbc {
  color: var(--muted);
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  line-height: 1;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.metric-tile {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 8px 24px rgba(24, 24, 27, 0.045);
  animation: stageEnter 460ms ease-out both;
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.metric-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(96, 155, 144, 0.1), transparent);
  transform: translateX(-110%);
  animation: metricSweep 6.8s ease-in-out infinite;
  pointer-events: none;
}

.metric-tile:hover {
  border-color: rgba(96, 155, 144, 0.38);
  box-shadow: 0 18px 45px rgba(24, 24, 27, 0.09);
  transform: translateY(-3px);
}

.metric-tile:nth-child(-n + 2) {
  min-height: 112px;
  background:
    linear-gradient(135deg, rgba(96, 155, 144, 0.16), rgba(255, 255, 255, 0.96)),
    white;
}

.metric-tile:nth-child(2) {
  border-top-color: var(--accent-2);
  animation-delay: 80ms;
}

.metric-tile:nth-child(3) {
  border-top-color: var(--accent-3);
  animation-delay: 160ms;
}

.metric-tile:nth-child(4) {
  border-top-color: var(--muted);
  animation-delay: 240ms;
}

.metric-tile span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-tile strong {
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.metric-tile:nth-child(-n + 2) strong {
  color: var(--accent-strong);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  letter-spacing: 0;
}

.metric-tile small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.45vw, 22px);
}

.chart-card {
  position: relative;
  align-self: start;
  min-width: 0;
  padding: clamp(14px, 1.25vw, 20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(245, 245, 244, 0.66), rgba(255, 255, 255, 0.95)),
    white;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 12px 32px rgba(24, 24, 27, 0.06);
  overflow: hidden;
  animation: chartRise 620ms ease-out both;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.chart-card[data-description] {
  outline: none;
}

.chart-card::before {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), var(--accent-3), transparent);
  transform: translateX(-80%);
  animation: chartSweep 5.6s ease-in-out infinite;
  pointer-events: none;
}

.chart-card[data-description]::after {
  content: attr(data-description);
  position: absolute;
  z-index: 4;
  top: 54px;
  right: 14px;
  max-width: min(360px, calc(100% - 28px));
  padding: 11px 12px;
  border: 1px solid rgba(217, 70, 239, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(120, 216, 200, 0.14), transparent 48%),
    rgba(9, 5, 15, 0.95);
  color: #fff8ff;
  font-size: clamp(0.72rem, 0.82vw, 0.82rem);
  font-weight: 800;
  line-height: 1.35;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 18px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(-5px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  pointer-events: none;
}

.focus-lens-card[data-description]::after {
  top: auto;
  right: 14px;
  bottom: calc(100% + 8px);
  max-width: min(460px, calc(100% - 28px));
}

.concept-directions-card[data-description]::after,
.trend-priority-card[data-description]::after,
.trend-outlook-card[data-description]::after {
  top: 62px;
}

.chart-card:hover {
  border-color: rgba(192, 38, 211, 0.24);
  box-shadow: 0 18px 46px rgba(24, 24, 27, 0.1);
  transform: translateY(-2px);
}

.chart-card[data-description]:focus-visible::after,
.chart-card[data-description]:hover:not(:focus-visible)::after,
.chart-card[data-description]:focus-within:not(:focus-visible)::after,
.chart-annotation-live .chart-card[data-description]::after {
  opacity: 0;
  transform: translateY(-5px);
}

.chart-card[data-description]:active::after {
  opacity: 1;
  transform: translateY(0);
}

canvas[data-chart-annotations="true"],
[data-chart-note] {
  cursor: help;
}

.chart-annotation-layer {
  position: fixed;
  z-index: 36;
  padding: 11px 12px;
  border: 1px solid rgba(120, 216, 200, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(120, 216, 200, 0.12), transparent 54%),
    rgba(8, 5, 13, 0.96);
  color: #fff8ff;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.35;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 42px rgba(0, 0, 0, 0.32);
  pointer-events: none;
}

.chart-annotation-layer[hidden] {
  display: none;
}

.chart-selection-layer {
  position: fixed;
  z-index: 37;
  padding: 12px 14px;
  border: 1px solid rgba(217, 70, 239, 0.5);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(217, 70, 239, 0.18), rgba(120, 216, 200, 0.08) 58%),
    rgba(8, 5, 13, 0.97);
  color: #fff8ff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.35;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 46px rgba(0, 0, 0, 0.38);
  pointer-events: none;
}

.chart-selection-layer[hidden] {
  display: none;
}

.chart-card-wide {
  grid-column: 1 / -1;
}

.concept-directions-card .concept-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.concept-directions-card,
.chart-card:has(#conceptPortfolioChart) {
  min-height: auto;
}

.chart-card:has(#conceptPortfolioChart) {
  display: grid;
  grid-template-rows: auto 1fr;
}

.chart-card:has(#conceptPortfolioChart) #conceptPortfolioChart {
  align-self: stretch;
}

.concept-directions-card .concept-item {
  padding: 12px;
}

.concept-directions-card .concept-item strong {
  font-size: clamp(0.8rem, 0.95vw, 0.9rem);
}

.concept-directions-card .concept-item p {
  font-size: clamp(0.72rem, 0.86vw, 0.8rem);
  line-height: 1.32;
}

.concept-directions-card .concept-item span {
  font-size: clamp(0.68rem, 0.8vw, 0.76rem);
}

.trend-outlook-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 12px;
  align-items: stretch;
}

.trend-outlook-layout canvas {
  min-width: 0;
}

.trend-map-list {
  display: grid;
  gap: 8px;
  align-content: start;
  margin-top: 10px;
  min-width: 0;
}

.trend-map-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(231, 229, 228, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  padding: 9px;
  animation: stageEnter 480ms ease-out both;
}

.trend-map-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: white;
  background: #101512;
  font-size: 0.72rem;
  font-weight: 900;
}

.trend-map-item strong,
.trend-map-item small,
.trend-map-item b {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.trend-map-item strong {
  color: var(--ink);
  font-size: clamp(0.8rem, 0.95vw, 0.9rem);
  line-height: 1.15;
}

.trend-map-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: clamp(0.68rem, 0.82vw, 0.76rem);
  font-weight: 800;
  line-height: 1.25;
}

.trend-map-item b {
  color: var(--accent-strong);
  font-size: clamp(0.72rem, 0.86vw, 0.8rem);
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.trend-priority-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 12px;
  align-items: stretch;
}

.trend-priority-layout canvas {
  min-width: 0;
}

.trend-priority-list {
  align-content: start;
  margin-top: 10px;
}

.trend-priority-list .priority-item {
  grid-template-columns: 28px minmax(0, 1fr) auto;
  padding: 9px;
}

.trend-priority-list .priority-item strong {
  font-size: clamp(0.8rem, 0.95vw, 0.9rem);
}

.trend-priority-list .priority-item small {
  font-size: clamp(0.7rem, 0.82vw, 0.76rem);
}

.chart-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(0.98rem, 1.2vw, 1.18rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.chart-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.chart-card canvas {
  display: block;
  width: 100%;
  height: clamp(320px, 32vw, 430px);
  margin-top: 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(96, 155, 144, 0.48), rgba(192, 38, 211, 0.36), rgba(251, 146, 60, 0.34)) border-box;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    0 16px 38px rgba(24, 24, 27, 0.08);
  animation:
    canvasGlow 5.2s ease-in-out infinite,
    chartBreathe 8.4s ease-in-out infinite;
}

.chart-card canvas:active {
  cursor: grabbing;
}

.chart-card-wide canvas {
  height: clamp(350px, 26vw, 440px);
}

#opportunityMapChart {
  height: clamp(520px, 42vw, 660px);
}

#conceptPortfolioChart {
  height: clamp(620px, 48vw, 760px);
}

#segmentDemandChart,
#predictionBandsChart {
  height: clamp(410px, 36vw, 520px);
}

#verbatimSignalChart {
  height: clamp(360px, 28vw, 440px);
}

#dataNodeChart {
  height: clamp(420px, 42vw, 560px);
}

.intelligence-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.intelligence-card-wide {
  grid-column: span 2;
}

.intelligence-card {
  position: relative;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 245, 241, 0.82)),
    white;
  box-shadow: 0 8px 24px rgba(24, 24, 27, 0.05);
  overflow: hidden;
  animation: chartRise 620ms ease-out both;
}

.intelligence-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), var(--accent-3));
  animation: leftRail 3s ease-in-out infinite;
}

.intelligence-card-head {
  margin-bottom: 10px;
}

.intelligence-card h3 {
  margin: 0;
  font-size: clamp(0.98rem, 1.25vw, 1.16rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.verbatim-list,
.priority-list,
.concept-list,
.node-ledger,
.prediction-ledger {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.verbatim-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.verbatim-item,
.priority-item,
.concept-item,
.node-ledger-item,
.prediction-hero,
.prediction-stat,
.prediction-row,
.prediction-next,
.prediction-action,
.prediction-check {
  min-width: 0;
  border: 1px solid rgba(231, 229, 228, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  padding: 10px;
  animation: stageEnter 480ms ease-out both;
}

.verbatim-item strong,
.priority-item strong,
.concept-item strong,
.node-ledger-item strong,
.prediction-hero strong,
.prediction-stat strong,
.prediction-next strong,
.prediction-action strong,
.prediction-check strong {
  display: block;
  color: var(--ink);
  font-size: clamp(0.82rem, 1vw, 0.94rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.verbatim-item span,
.concept-item span,
.node-ledger-item span,
.prediction-hero span,
.prediction-stat span,
.prediction-next span,
.prediction-action span,
.prediction-check span,
.priority-item small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: clamp(0.7rem, 0.9vw, 0.8rem);
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.prediction-ledger {
  grid-template-rows: auto auto auto auto auto;
}

.prediction-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  background:
    linear-gradient(135deg, rgba(120, 216, 200, 0.14), transparent 52%),
    rgba(255, 255, 255, 0.78);
}

.prediction-hero span,
.prediction-stat span,
.prediction-next span {
  margin: 0 0 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prediction-hero strong {
  font-size: clamp(1rem, 1.45vw, 1.25rem);
}

.prediction-hero p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: clamp(0.72rem, 0.9vw, 0.82rem);
  font-weight: 800;
  line-height: 1.3;
}

.prediction-hero b {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 999px;
  background: var(--dark);
  color: #78d8c8;
  font-size: 1.3rem;
  line-height: 1;
}

.prediction-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.prediction-stat {
  min-height: 88px;
  background: rgba(255, 255, 255, 0.66);
}

.prediction-stat strong {
  color: var(--accent-strong);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1;
}

.prediction-stat small,
.prediction-next small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: clamp(0.66rem, 0.8vw, 0.74rem);
  font-weight: 800;
  line-height: 1.2;
}

.prediction-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.prediction-split h4 {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prediction-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 10px;
  align-items: stretch;
}

.prediction-bottom-grid h4 {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prediction-window-list {
  display: grid;
  gap: 7px;
}

.prediction-action-list,
.prediction-check-list {
  display: grid;
  gap: 7px;
}

.prediction-row {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(72px, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
}

.prediction-row span {
  overflow: visible;
  color: var(--ink);
  font-size: clamp(0.7rem, 0.86vw, 0.78rem);
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.prediction-row i {
  display: block;
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #78d8c8, #d946ef) 0 0 / var(--prediction-score, 70%) 100% no-repeat,
    rgba(24, 24, 27, 0.13);
}

.prediction-row strong {
  color: var(--accent-strong);
  font-size: 0.78rem;
}

.prediction-next {
  background:
    linear-gradient(135deg, rgba(217, 70, 239, 0.14), transparent 50%),
    rgba(255, 255, 255, 0.72);
}

.prediction-action {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  min-height: 72px;
  padding: 8px;
}

.prediction-action b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(120, 216, 200, 0.16);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 900;
}

.prediction-action strong {
  font-size: clamp(0.78rem, 0.92vw, 0.88rem);
  line-height: 1.12;
}

.prediction-action span {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  font-size: clamp(0.66rem, 0.78vw, 0.72rem);
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.prediction-action i {
  display: block;
  height: 5px;
  margin-top: 7px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #78d8c8, #d946ef) 0 0 / var(--prediction-score, 70%) 100% no-repeat,
    rgba(24, 24, 27, 0.13);
}

.prediction-check-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prediction-check {
  min-height: 74px;
  padding: 8px;
}

.prediction-check span {
  min-height: 2.2em;
  margin: 0 0 5px;
  font-size: clamp(0.66rem, 0.78vw, 0.72rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prediction-check strong {
  color: var(--accent-strong);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1;
}

.prediction-check small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: clamp(0.64rem, 0.75vw, 0.7rem);
  font-weight: 800;
  line-height: 1.15;
}

.priority-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.priority-rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--dark);
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
}

.priority-item b {
  color: var(--accent-strong);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
}

.concept-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: clamp(0.76rem, 0.95vw, 0.84rem);
  font-weight: 750;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.node-ledger {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.node-ledger-item strong {
  color: var(--accent-strong);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
}

/* Premium dashboard suite */
.dashboard-panel {
  margin-top: 22px;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid rgba(217, 70, 239, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(122deg, rgba(120, 216, 200, 0.13), transparent 34%),
    linear-gradient(112deg, rgba(217, 70, 239, 0.22), transparent 42%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 84px),
    linear-gradient(145deg, #09060e 0%, #140a20 48%, #07040b 100%);
  color: #fff8ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(217, 70, 239, 0.12),
    0 32px 80px rgba(9, 4, 17, 0.24);
}

.dashboard-panel::before {
  inset: 0;
  background:
    linear-gradient(105deg, transparent 18%, rgba(255, 255, 255, 0.09) 26%, transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 22%, rgba(217, 70, 239, 0.08));
  opacity: 0.5;
  mix-blend-mode: screen;
  transform: translateX(-42%);
  animation: dashboardScan 11s linear infinite;
}

.dashboard-panel::after {
  display: none;
}

.dashboard-panel .eyebrow,
.dashboard-panel .chart-subtitle,
.dashboard-panel .chart-select-label span {
  color: #c6b8d9;
  letter-spacing: 0.16em;
}

.dashboard-panel h2,
.dashboard-panel h3 {
  color: #fff8ff;
  letter-spacing: 0;
}

.dashboard-head {
  align-items: flex-end;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.dashboard-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.dashboard-head .secondary-button,
.chart-download {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045)),
    rgba(12, 7, 20, 0.84);
  color: #fff8ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dashboard-head .secondary-button:hover,
.chart-download:hover {
  border-color: rgba(217, 70, 239, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 34px rgba(217, 70, 239, 0.16);
}

.dashboard-panel .ideas-lockup {
  color: #fff8ff;
  text-shadow: 0 0 28px rgba(217, 70, 239, 0.28);
}

.dashboard-panel .ideas-main {
  font-size: clamp(2.1rem, 4.6vw, 4rem);
}

.dashboard-panel .ideas-x {
  color: #d946ef;
}

.dashboard-panel .ideas-tbc {
  color: #d8d0e6;
}

.metric-strip {
  gap: 12px;
  margin-bottom: 14px;
}

.metric-tile {
  min-height: 118px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-top: 1px solid rgba(217, 70, 239, 0.44);
  background:
    linear-gradient(135deg, rgba(217, 70, 239, 0.15), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.082), rgba(255, 255, 255, 0.035)),
    rgba(16, 10, 25, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 42px rgba(0, 0, 0, 0.2);
}

.metric-tile::after {
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.metric-tile:nth-child(-n + 2) {
  min-height: 118px;
  background:
    linear-gradient(135deg, rgba(120, 216, 200, 0.16), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(16, 10, 25, 0.82);
}

.metric-tile:nth-child(2) {
  border-top-color: rgba(217, 70, 239, 0.62);
}

.metric-tile:nth-child(3) {
  border-top-color: rgba(215, 164, 97, 0.72);
}

.metric-tile:nth-child(4) {
  border-top-color: rgba(255, 255, 255, 0.34);
}

.metric-tile span,
.metric-tile small {
  color: #c6b8d9;
}

.metric-tile strong,
.metric-tile:nth-child(-n + 2) strong {
  color: #fff8ff;
  font-size: clamp(1.55rem, 2.72vw, 2.45rem);
  letter-spacing: 0;
  white-space: nowrap;
}

.metric-tile:hover {
  border-color: rgba(217, 70, 239, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 24px 54px rgba(0, 0, 0, 0.26);
}

.chart-grid {
  gap: clamp(14px, 1.45vw, 22px);
}

.chart-card,
.intelligence-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(217, 70, 239, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.032)),
    rgba(13, 8, 21, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 20px 48px rgba(0, 0, 0, 0.21);
}

.chart-card::before {
  height: 1px;
  background: linear-gradient(90deg, transparent, #78d8c8, #d946ef, #d7a461, transparent);
  opacity: 0.82;
}

.chart-card:hover,
.intelligence-card:hover {
  border-color: rgba(120, 216, 200, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 26px 60px rgba(0, 0, 0, 0.3);
}

.chart-card canvas {
  border-color: transparent;
  background:
    linear-gradient(145deg, #140b1f, #08040d) padding-box,
    linear-gradient(135deg, rgba(120, 216, 200, 0.54), rgba(217, 70, 239, 0.44), rgba(215, 164, 97, 0.38)) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 16px 36px rgba(0, 0, 0, 0.2);
}

.chart-select-label select {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(13, 8, 21, 0.9);
  color: #fff8ff;
}

.trend-map-item,
.verbatim-item,
.priority-item,
.concept-item,
.node-ledger-item,
.prediction-hero,
.prediction-stat,
.prediction-row,
.prediction-next,
.prediction-action,
.prediction-check {
  border-color: rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(135deg, rgba(120, 216, 200, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.045);
}

.trend-map-item strong,
.verbatim-item strong,
.priority-item strong,
.concept-item strong,
.node-ledger-item strong,
.prediction-hero strong,
.prediction-next strong,
.prediction-action strong,
.prediction-check strong {
  color: #fff8ff;
}

.trend-map-item small,
.trend-map-item b,
.verbatim-item span,
.concept-item span,
.concept-item p,
.node-ledger-item span,
.prediction-hero span,
.prediction-hero p,
.prediction-stat span,
.prediction-stat small,
.prediction-next span,
.prediction-next small,
.prediction-action span,
.prediction-check span,
.prediction-check small,
.priority-item small {
  color: #c6b8d9;
}

.trend-map-rank,
.priority-rank {
  background:
    linear-gradient(135deg, #d946ef, #4b164f);
  color: #fff8ff;
}

.priority-item b,
.node-ledger-item strong,
.prediction-stat strong,
.prediction-row strong,
.prediction-check strong {
  color: #78d8c8;
}

.prediction-hero b {
  background:
    linear-gradient(135deg, rgba(120, 216, 200, 0.16), rgba(217, 70, 239, 0.14)),
    rgba(10, 5, 16, 0.84);
  color: #fff8ff;
}

.prediction-row span {
  color: #fff8ff;
}

.prediction-row i {
  background:
    linear-gradient(90deg, #78d8c8, #d946ef) 0 0 / var(--prediction-score, 70%) 100% no-repeat,
    rgba(255, 255, 255, 0.1);
}

.prediction-action b {
  background:
    linear-gradient(135deg, rgba(120, 216, 200, 0.2), rgba(217, 70, 239, 0.14)),
    rgba(10, 5, 16, 0.82);
  color: #fff8ff;
}

.prediction-action i {
  background:
    linear-gradient(90deg, #78d8c8, #d946ef) 0 0 / var(--prediction-score, 70%) 100% no-repeat,
    rgba(255, 255, 255, 0.1);
}

.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.conversation-log {
  position: relative;
  display: grid;
  gap: 9px;
  max-height: 320px;
  overflow: auto;
  padding: 12px 12px 12px 16px;
  border: 0;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(96, 155, 144, 0.14), transparent 8px),
    linear-gradient(180deg, #fafafa, #f5f5f4);
  box-shadow: inset 0 0 0 1px rgba(231, 229, 228, 0.88);
}

.conversation-empty {
  color: var(--muted);
  font-size: 0.84rem;
}

.conversation-turn {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  animation: stageEnter 360ms ease-out both;
  overflow: hidden;
}

.conversation-turn::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  animation: leftRail 3s ease-in-out infinite;
  pointer-events: none;
}

.conversation-turn strong {
  color: var(--ink);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.conversation-turn p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.conversation-turn small {
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

label {
  display: grid;
  gap: 6px;
}

label > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  padding: 10px 11px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(96, 155, 144, 0.18);
  animation: focusPulse 1.8s ease-in-out infinite;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.switch span {
  position: relative;
  width: 50px;
  height: 28px;
  border-radius: 999px;
  background: var(--line);
  transition:
    background 150ms ease,
    box-shadow 150ms ease;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 8px rgba(24, 32, 42, 0.25);
  transition: transform 150ms ease;
}

.switch input:checked + span {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(96, 155, 144, 0.14);
}

.switch input:checked + span::after {
  transform: translateX(22px);
}

.skip-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(48px, 1fr));
  gap: 8px;
}

.stage-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
}

.stage-toggle input {
  width: 16px;
  height: 16px;
}

.command-panel pre {
  min-height: 160px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--dark);
  color: #f4f4f5;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.launch-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.launch-actions {
  gap: 10px;
}

.primary-button,
.secondary-button,
.icon-text-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary-button {
  flex: 1;
  border-color: #b622c2;
  background: #b622c2;
  color: white;
  box-shadow: 0 10px 24px rgba(192, 38, 211, 0.18);
  animation: primaryPulse 4.6s ease-in-out infinite;
}

.primary-button:hover,
.preset-button.active:hover {
  filter: brightness(0.96);
}

.primary-button:hover,
.secondary-button:hover,
.icon-text-button:hover,
.icon-button:hover,
.preset-button:hover,
.stage-toggle:hover {
  transform: translateY(-1px);
}

.primary-button:active,
.secondary-button:active,
.icon-text-button:active,
.icon-button:active,
.preset-button:active,
.stage-toggle:active {
  transform: translateY(0) scale(0.99);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

button:disabled svg {
  animation: spin 900ms linear infinite;
}

.secondary-button,
.icon-text-button {
  padding: 0 13px;
}

.icon-button {
  width: 42px;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.result-box {
  position: relative;
  min-height: 116px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
  overflow: hidden;
}

.result-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(96, 155, 144, 0.08), transparent);
  transform: translateX(-120%);
  animation: resultSweep 8s ease-in-out infinite;
  pointer-events: none;
}

.result-box.ok {
  border-color: rgba(96, 155, 144, 0.42);
  background: var(--accent-soft);
  color: var(--accent-strong);
  animation: answerFlash 520ms ease-out;
}

.result-box.warn {
  border-color: rgba(161, 92, 6, 0.38);
  background: #fff5e8;
  color: var(--warn);
  animation: answerFlash 520ms ease-out;
}

.result-box.error {
  border-color: rgba(169, 33, 33, 0.38);
  background: #fff0f0;
  color: #9c1e1e;
  animation: answerShake 420ms ease-out;
}

.answer-result-box {
  min-height: 156px;
  padding: 18px 20px 18px 26px;
  border: 1px solid rgba(24, 24, 27, 0.72);
  background:
    linear-gradient(135deg, rgba(96, 155, 144, 0.24), transparent 34%),
    linear-gradient(145deg, #09090b, #18181b 72%);
  color: #f4f4f5;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  font-weight: 820;
  line-height: 1.48;
  white-space: normal;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 14px 34px rgba(24, 24, 27, 0.14);
}

.answer-result-box.ok {
  min-height: 132px;
}

.answer-result-box::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), var(--accent-3));
  pointer-events: none;
}

.answer-result-box::after {
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.answer-result-box.ok {
  border-color: rgba(96, 155, 144, 0.62);
  background:
    linear-gradient(135deg, rgba(96, 155, 144, 0.36), transparent 38%),
    linear-gradient(145deg, #062b28, #111827 74%);
  color: #f4f4f5;
}

.answer-result-box.warn {
  border-color: rgba(251, 191, 36, 0.58);
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.3), transparent 38%),
    linear-gradient(145deg, #3b2606, #18181b 74%);
  color: #fff7ed;
}

.answer-result-box.error {
  border-color: rgba(192, 38, 211, 0.58);
  background:
    linear-gradient(135deg, rgba(192, 38, 211, 0.28), transparent 38%),
    linear-gradient(145deg, #3b123f, #18181b 74%);
  color: #fdf4ff;
}

.answer-world {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(240px, 0.92fr);
  gap: 18px;
  align-items: center;
  animation: answerWorldIn 520ms ease-out both;
}

.answer-world-copy {
  display: grid;
  gap: 12px;
}

.answer-world-copy p {
  margin: 0;
  color: rgba(244, 244, 245, 0.82);
  font-size: clamp(0.94rem, 1.25vw, 1.12rem);
  font-weight: 780;
  line-height: 1.48;
}

.answer-world-copy .answer-lead {
  color: #fff;
  font-size: clamp(1.1rem, 1.8vw, 1.52rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.16;
}

.answer-world-visual {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 24% 30%, rgba(120, 216, 200, 0.18), transparent 28%),
    radial-gradient(circle at 78% 34%, rgba(217, 70, 239, 0.16), transparent 28%),
    rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.answer-world-map {
  display: block;
  width: 100%;
  height: auto;
  color: #fff;
}

.answer-world-shadow,
.answer-world-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.answer-world-shadow {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 14;
}

.answer-world-path {
  stroke: url("#answerWorldGradient");
  stroke-width: 6;
  stroke-dasharray: 640;
  stroke-dashoffset: 640;
  animation: answerPathDraw 1100ms ease-out 120ms forwards;
}

.answer-world-node {
  animation: answerNodeRise 620ms ease-out calc(var(--i) * 90ms) both;
}

.answer-world-node circle {
  fill: rgba(9, 9, 11, 0.9);
  stroke: #78d8c8;
  stroke-width: 4;
  filter: drop-shadow(0 0 10px rgba(120, 216, 200, 0.35));
}

.answer-world-node:nth-of-type(even) circle {
  stroke: #d946ef;
  filter: drop-shadow(0 0 10px rgba(217, 70, 239, 0.35));
}

.answer-world-node text {
  fill: #fff;
  font-size: 12px;
  font-weight: 950;
}

.answer-world-label {
  fill: #78d8c8;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.answer-world-title {
  fill: rgba(244, 244, 245, 0.76);
  font-size: 10px;
}

.answer-metric-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.answer-metric-chip {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  animation: answerMetricIn 520ms ease-out calc(var(--i) * 80ms) both;
}

.answer-metric-chip small {
  overflow: hidden;
  color: #c6b8d9;
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.answer-metric-chip strong {
  color: #78d8c8;
  font-size: clamp(1rem, 2.2vw, 1.48rem);
  font-weight: 950;
  line-height: 1;
}

.answer-table-stage {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.answer-chart-stage,
.answer-verbatim-rail {
  grid-column: 1 / -1;
}

.answer-live-table {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(120, 216, 200, 0.08), rgba(217, 70, 239, 0.06)),
    rgba(255, 255, 255, 0.045);
  animation: answerTableLift 620ms ease-out calc(var(--table-i) * 120ms) both;
}

.answer-live-table::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.09), transparent 58%);
  transform: translateX(-120%);
  animation: answerTableSweep 2200ms ease-out calc(var(--table-i) * 160ms) both;
  pointer-events: none;
}

.answer-live-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.answer-live-table-head span {
  color: #fff8ff;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.answer-live-table-head strong {
  color: #78d8c8;
  font-size: 0.72rem;
  font-weight: 950;
}

.answer-live-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.answer-live-table th,
.answer-live-table td {
  position: relative;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  hyphens: none;
  overflow-wrap: normal;
  text-align: left;
  vertical-align: top;
  word-break: normal;
}

.answer-live-table th:nth-child(1),
.answer-live-table td:nth-child(1) {
  width: 34%;
}

.answer-live-table th:nth-child(2),
.answer-live-table td:nth-child(2) {
  width: 27%;
}

.answer-live-table th:nth-child(3),
.answer-live-table td:nth-child(3) {
  width: 39%;
}

.answer-live-table th {
  color: #c6b8d9;
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.answer-live-table td {
  color: rgba(244, 244, 245, 0.86);
  font-size: clamp(0.72rem, 1vw, 0.86rem);
  font-weight: 820;
  line-height: 1.25;
}

.answer-live-table td:nth-child(2) {
  color: #78d8c8;
  font-weight: 950;
}

.answer-live-table tbody tr {
  position: relative;
  animation: answerTableRowIn 560ms ease-out calc(var(--row-i) * 82ms + var(--table-i) * 110ms) both;
}

.answer-live-table tbody tr::after {
  content: "";
  position: absolute;
  left: 10px;
  width: var(--bar);
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #78d8c8, #d946ef, #d7a461);
  opacity: 0.38;
}

.answer-mini-chart {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(120, 216, 200, 0.1), rgba(217, 70, 239, 0.08)),
    rgba(255, 255, 255, 0.045);
}

.answer-mini-chart-bars {
  display: grid;
  gap: 8px;
  padding: 10px 12px 12px;
}

.answer-mini-chart-bars button {
  display: grid;
  grid-template-columns: minmax(88px, 0.32fr) minmax(120px, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f4f4f5;
  text-align: left;
  animation: answerTableRowIn 520ms ease-out calc(var(--i) * 70ms) both;
}

.answer-mini-chart-bars span {
  overflow: hidden;
  color: rgba(244, 244, 245, 0.86);
  font-size: 0.78rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.answer-mini-chart-bars em {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.answer-mini-chart-bars i {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #78d8c8, #d946ef, #d7a461);
  animation: scoreFlow 5.2s ease-in-out infinite;
}

.answer-mini-chart-bars b {
  color: #78d8c8;
  font-size: 0.82rem;
  font-weight: 950;
}

.answer-verbatim-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.answer-section-kicker {
  grid-column: 1 / -1;
  color: #c6b8d9;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.answer-verbatim-rail article {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    rgba(9, 9, 11, 0.28);
  animation: answerMetricIn 520ms ease-out calc(var(--i) * 80ms) both;
}

.answer-verbatim-rail p {
  margin: 0;
  color: #fff;
  font-size: clamp(0.8rem, 1vw, 0.96rem);
  font-weight: 880;
  line-height: 1.25;
}

.answer-verbatim-rail span {
  display: block;
  margin-top: 9px;
  color: #c6b8d9;
  font-size: 0.7rem;
  font-weight: 950;
  line-height: 1.25;
}

.decision-artifact {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(96, 155, 144, 0.3);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(96, 155, 144, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.decision-artifact[hidden] {
  display: none;
}

.decision-artifact-head,
.decision-artifact-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.decision-artifact-actions .secondary-button {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 0.82rem;
}

.decision-artifact-body {
  display: grid;
  gap: 14px;
}

.decision-world-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  align-items: stretch;
  padding: 6px 0;
}

.decision-world-strip::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 7%;
  right: 7%;
  height: 2px;
  background: linear-gradient(90deg, rgba(120, 216, 200, 0.12), rgba(217, 70, 239, 0.58), rgba(215, 164, 97, 0.42));
}

.decision-world-node {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  justify-items: center;
  min-width: 0;
  animation: answerNodeRise 520ms ease-out calc(var(--i) * 80ms) both;
}

.decision-world-node b {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.7), transparent 18%),
    linear-gradient(145deg, #78d8c8, #d946ef);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 950;
  box-shadow: 0 10px 28px rgba(24, 24, 27, 0.12);
}

.decision-world-node small {
  display: grid;
  gap: 2px;
  width: 100%;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.decision-world-node small span,
.decision-world-node small em {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.decision-world-node small em {
  color: var(--ink);
  font-size: 0.74rem;
  letter-spacing: 0;
  text-transform: none;
}

.decision-point-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.decision-point {
  display: grid;
  gap: 5px;
  min-height: 112px;
  padding: 13px;
  border: 1px solid rgba(24, 24, 27, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(24, 24, 27, 0.04), rgba(96, 155, 144, 0.1)),
    white;
}

.decision-point span {
  color: var(--accent-strong);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.decision-point strong {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.1;
}

.decision-point small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.35;
}

.decision-artifact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(220px, 0.92fr);
  gap: 12px;
  align-items: stretch;
}

.decision-table-wrap,
.decision-chart-wrap {
  overflow: hidden;
  border: 1px solid rgba(24, 24, 27, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.decision-artifact table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.decision-artifact th,
.decision-artifact td {
  padding: 9px;
  border-bottom: 1px solid rgba(24, 24, 27, 0.1);
  text-align: left;
  vertical-align: top;
}

.decision-artifact th {
  color: var(--accent-strong);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.decision-chart-wrap {
  padding: 10px;
}

.decision-chart-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  animation: chartRise 420ms ease-out both;
}

.decision-chart-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.decision-mini-chart {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(24, 24, 27, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  animation: answerMetricIn 520ms ease-out calc(var(--i) * 90ms) both;
}

.decision-mini-chart figcaption {
  overflow: hidden;
  color: var(--accent-strong);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.decision-mini-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.gideon-console-panel {
  border-top-color: rgba(96, 155, 144, 0.42);
}

.gideon-console-panel > .panel-head {
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(24, 24, 27, 0.08);
}

.gideon-console-panel > .panel-head .eyebrow {
  color: #59645d;
  font-family: var(--ui);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.gideon-console-panel > .panel-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: none;
}

.gideon-console-panel .status-pill {
  border-color: rgba(96, 155, 144, 0.26);
  background: rgba(231, 242, 239, 0.64);
  color: #28675d;
  letter-spacing: 0.04em;
}

.capability-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.capability {
  min-height: 34px;
  border: 1px solid rgba(96, 155, 144, 0.3);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(231, 242, 239, 0.78);
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.capability.next {
  border-color: rgba(192, 38, 211, 0.28);
  background: rgba(250, 232, 255, 0.78);
  color: #a21caf;
}

.capability:hover,
.capability:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(24, 24, 27, 0.1);
}

.social-score-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 16px;
}

.social-score-pill,
.social-credit-panel,
.social-roadmap,
.signal-atlas,
.focus-lens-content,
.move-calculator {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(120, 216, 200, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.045);
}

.social-score-pill {
  display: grid;
  min-width: 84px;
  padding: 8px 12px;
  text-align: right;
}

.social-score-pill span,
.social-score-copy span,
.focus-lens-main span,
.focus-lens-metrics span,
.move-scoreboard span,
.node-ledger-item span {
  color: #c6b8d9;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.social-score-pill strong,
.social-score-copy strong,
.focus-lens-main strong,
.focus-lens-metrics strong,
.move-scoreboard strong {
  color: #fff8ff;
}

.social-score-pill strong {
  font-size: 2rem;
  line-height: 1;
}

.social-credit-panel,
.social-roadmap,
.move-calculator {
  padding: 14px;
}

.social-credit-panel {
  display: grid;
  grid-template-rows: auto auto auto minmax(132px, 1fr) auto;
  gap: 12px;
  min-height: 560px;
}

.social-score-copy p,
.move-scoreboard p,
.focus-lens-main p {
  margin: 8px 0 0;
  color: #c6b8d9;
  font-weight: 750;
  line-height: 1.42;
}

.social-credit-bar {
  position: relative;
  height: 22px;
  margin: 4px 0 24px;
  overflow: visible;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.social-credit-fill {
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #78d8c8, #d946ef, #d7a461);
  animation: scoreFlow 5s ease-in-out infinite;
}

.social-credit-marker {
  position: absolute;
  top: 30px;
  color: #c6b8d9;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.social-credit-marker.low { left: 0; }
.social-credit-marker.mid { left: 48%; transform: translateX(-50%); }
.social-credit-marker.high { right: 0; }

.social-score-drivers,
.social-roadmap,
.move-track,
.focus-evidence-grid {
  display: grid;
  gap: 10px;
}

.social-score-drivers {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.social-driver,
.social-signal-item,
.social-mini-row,
.roadmap-step,
.move-token,
.atlas-tile {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(10, 5, 16, 0.54);
  color: #fff8ff;
}

.social-driver,
.social-signal-item,
.social-mini-row,
.roadmap-step,
.move-token {
  padding: 10px;
  text-align: left;
}

.social-driver strong,
.social-signal-item strong,
.roadmap-step strong,
.move-token strong {
  display: block;
  margin-top: 4px;
}

.social-driver {
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 8px 9px;
}

.social-driver span {
  color: #c6b8d9;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
}

.social-driver strong {
  color: #fff8ff;
  font-size: clamp(0.95rem, 1.25vw, 1.16rem);
  line-height: 1;
}

.social-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  align-self: stretch;
}

.social-signal-item {
  display: grid;
  min-height: 82px;
  align-content: start;
  gap: 3px;
  background:
    linear-gradient(135deg, rgba(120, 216, 200, 0.1), transparent 52%),
    rgba(10, 5, 16, 0.46);
}

.social-signal-item span,
.social-signal-item small,
.social-mini-row span {
  color: #c6b8d9;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.social-signal-item strong {
  color: #78d8c8;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1;
}

.social-signal-item small {
  color: #d8d0e6;
  font-size: 0.68rem;
  text-transform: none;
}

.social-mini-charts {
  display: grid;
  gap: 7px;
}

.social-mini-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 7px 9px;
}

.social-mini-row i {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #78d8c8, #d946ef) 0 0 / var(--mini-score, 70%) 100% no-repeat,
    rgba(255, 255, 255, 0.09);
}

.social-mini-row strong {
  color: #fff8ff;
  font-size: 0.78rem;
  text-align: right;
}

.roadmap-step::before,
.move-token::before {
  content: "";
  position: absolute;
  inset: auto 10px 7px 10px;
  height: 3px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #78d8c8, #d946ef) 0 0 / var(--step-score, var(--move-score, 70%)) 100% no-repeat,
    rgba(255, 255, 255, 0.08);
}

.signal-atlas {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.atlas-tile {
  display: grid;
  gap: 7px;
  padding: 10px;
  animation: atlasSettle 620ms ease-out both;
}

.atlas-tile div {
  overflow: hidden;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.atlas-tile svg {
  display: block;
  width: 100%;
  height: auto;
}

.atlas-tile strong,
.atlas-tile span {
  display: block;
  overflow-wrap: anywhere;
}

.atlas-tile span,
.roadmap-step small,
.move-token small {
  color: #c6b8d9;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
}

.focus-lens-card[hidden] {
  display: none;
}

.focus-lens-content {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  gap: clamp(14px, 1.4vw, 22px);
  padding: clamp(14px, 1.3vw, 20px);
}

.focus-lens-main {
  grid-row: span 2;
  padding: clamp(14px, 1.2vw, 18px);
  border-radius: var(--radius);
  background: rgba(10, 5, 16, 0.58);
}

.focus-lens-main > strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.9;
}

.focus-chart-window {
  position: relative;
  display: grid;
  min-height: clamp(320px, 29vw, 410px);
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(16, 8, 24, 0.96), rgba(8, 4, 13, 0.98)) padding-box,
    linear-gradient(135deg, rgba(120, 216, 200, 0.52), rgba(217, 70, 239, 0.4), rgba(215, 164, 97, 0.38)) border-box,
    radial-gradient(circle at 72% 26%, rgba(217, 70, 239, 0.16), transparent 36%),
    rgba(255, 255, 255, 0.035);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 42px rgba(0, 0, 0, 0.2);
}

.focus-chart-window::after {
  content: "";
  position: absolute;
  inset: auto 14px 12px auto;
  width: 46px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(120, 216, 200, 0.86), transparent);
  opacity: 0;
  pointer-events: none;
}

.focus-chart-window svg {
  display: block;
  width: 100%;
  height: clamp(315px, 29vw, 390px);
  min-height: 315px;
  text-rendering: geometricPrecision;
}

.chart-svg-text,
.focus-chart-window svg text,
.signal-atlas svg text,
.network-visual svg text {
  filter: none !important;
  paint-order: normal !important;
  stroke: none !important;
  stroke-width: 0 !important;
  text-shadow: none !important;
}

.focus-chart-score {
  position: absolute;
  right: 12px;
  top: auto;
  bottom: 12px;
  min-width: 82px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(10, 5, 16, 0.82);
  text-align: right;
}

.focus-chart-score span {
  display: block;
  color: #c6b8d9;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.focus-chart-score strong {
  display: block;
  margin-top: 2px;
  color: #fff8ff;
  font-size: clamp(1.35rem, 2.8vw, 2.45rem);
  line-height: 0.9;
}

.focus-chart-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.focus-chart-metrics article {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.focus-chart-metrics span {
  display: block;
  overflow: hidden;
  color: #c6b8d9;
  font-size: 0.62rem;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.focus-chart-metrics strong {
  display: block;
  margin-top: 4px;
  color: #fff8ff;
  font-size: clamp(0.95rem, 1.6vw, 1.22rem);
  line-height: 1;
}

.market-map-layer {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(120, 216, 200, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(120, 216, 200, 0.09), rgba(217, 70, 239, 0.07)),
    rgba(255, 255, 255, 0.035);
}

.market-map-layer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.market-map-layer-head span,
.market-map-level h4 {
  margin: 0;
  color: #c6b8d9;
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.market-map-layer-head strong {
  color: #fff8ff;
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.12;
  text-align: right;
}

.market-map-layer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.market-map-level {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.market-map-level > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.market-map-chip {
  min-height: 28px;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(10, 5, 16, 0.58);
  color: #fff8ff;
  font-size: 0.67rem;
  font-weight: 900;
  line-height: 1.05;
  text-align: left;
}

.market-map-chip:hover,
.market-map-chip:focus-visible,
.market-map-chip.active {
  border-color: rgba(120, 216, 200, 0.62);
  background: linear-gradient(135deg, rgba(120, 216, 200, 0.2), rgba(217, 70, 239, 0.16));
  color: #fff;
}

.market-map-read {
  min-height: 54px;
  margin: 0;
  padding: 10px 11px;
  border: 1px solid rgba(217, 70, 239, 0.2);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(10, 5, 16, 0.62);
  color: #fff8ff;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.3;
}

.focus-matrix-svg,
.focus-map-svg,
.focus-flow-svg,
.focus-scatter-svg,
.focus-people-svg,
.focus-dotarc-svg {
  padding: 6px;
}

.focus-lens-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.focus-lens-metrics article,
.focus-evidence-item {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.focus-lens-metrics article {
  display: grid;
  gap: 5px;
  align-content: start;
}

.focus-lens-metrics span {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.12;
}

.focus-lens-metrics strong {
  display: block;
  color: #78d8c8;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1;
}

.focus-evidence-grid {
  grid-column: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.focus-evidence-item strong {
  display: block;
  color: #fff8ff;
  font-size: 0.88rem;
  line-height: 1.25;
}

.focus-evidence-item span {
  display: block;
  margin-top: 8px;
  color: #c6b8d9;
  font-size: 0.74rem;
  font-weight: 850;
}

.move-calculator {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px;
}

.move-scoreboard {
  min-height: 140px;
  padding: 14px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(217, 70, 239, 0.18), transparent 52%),
    rgba(10, 5, 16, 0.58);
}

.move-scoreboard strong {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1;
}

.move-track {
  grid-template-columns: 1fr;
  gap: 8px;
}

.move-token {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 9px 10px 14px;
}

.move-token .move-index {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(120, 216, 200, 0.14);
  color: #fff8ff;
  font-size: 0.72rem;
  font-weight: 950;
}

.move-token strong {
  margin: 0;
  overflow: hidden;
  color: #fff8ff;
  font-size: 0.83rem;
  line-height: 1.1;
}

.move-token strong small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #c6b8d9;
  font-size: 0.66rem;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.move-token em {
  display: grid;
  justify-items: end;
  color: #78d8c8;
  font-style: normal;
  line-height: 1;
}

.move-token em b {
  color: #78d8c8;
  font-size: 0.78rem;
}

.move-token em small {
  color: #c6b8d9;
  font-size: 0.65rem;
  font-weight: 900;
}

.evidence-trigger {
  cursor: pointer;
}

.evidence-trigger::after {
  content: attr(data-evidence);
  position: absolute;
  z-index: 8;
  right: 10px;
  bottom: calc(100% + 8px);
  width: min(360px, calc(100vw - 40px));
  max-width: calc(100% + 120px);
  padding: 11px 12px;
  border: 1px solid rgba(217, 70, 239, 0.34);
  border-radius: var(--radius);
  background: rgba(9, 5, 15, 0.96);
  color: #fff8ff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
  white-space: pre-line;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 100ms ease,
    transform 100ms ease;
  pointer-events: none;
  visibility: hidden;
}

.evidence-trigger:hover::after,
.evidence-trigger:focus-visible::after {
  opacity: 0;
  transform: translateY(4px);
  visibility: hidden;
}

.chart-focus {
  animation: chartFocus 1.4s ease-out both;
}

.tour-layer {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 30;
  width: min(360px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(120, 216, 200, 0.1), transparent 46%),
    rgba(8, 5, 12, 0.92);
  color: #fff8ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 16px 42px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
  animation: tourPanelIn 320ms ease-out both;
}

.tour-layer::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #78d8c8, #d946ef, #fb923c, transparent);
  opacity: 0.95;
}

.tour-layer[hidden] {
  display: none;
}

.tour-layer .eyebrow {
  margin-bottom: 6px;
  color: #78d8c8;
  letter-spacing: 0.16em;
}

.tour-layer h3 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.05;
}

.tour-layer p:not(.eyebrow) {
  margin: 0;
  color: #d8d0e6;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.38;
}

.tour-progress {
  float: right;
  color: #c6b8d9;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.tour-data {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(120, 216, 200, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.tour-data[hidden] {
  display: none;
}

.tour-data span {
  color: #c6b8d9;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tour-data strong {
  color: #78d8c8;
  font-size: clamp(1.3rem, 4vw, 2rem);
  line-height: 1;
}

.tour-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.tour-actions .primary-button,
.tour-actions .secondary-button {
  min-height: 36px;
  padding: 8px 13px;
  font-size: 0.78rem;
}

.tour-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.tour-running .tour-focus {
  position: relative;
  border-color: rgba(120, 216, 200, 0.62) !important;
  box-shadow:
    0 0 0 2px rgba(120, 216, 200, 0.16),
    0 22px 60px rgba(217, 70, 239, 0.18) !important;
  animation: tourFocusPulse 1.8s ease-in-out infinite;
}

.tour-build strong {
  color: #78d8c8;
  animation: numberBreathe 1.5s ease-in-out infinite;
}

.site-foot {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

@keyframes heroScan {
  0% {
    background-position: -120% 0, 0 0;
  }
  100% {
    background-position: 120% 0, 70px 0;
  }
}

@keyframes heroPulse {
  0%,
  100% {
    opacity: 0.48;
  }
  50% {
    opacity: 0.78;
  }
}

@keyframes titleRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes moduleFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes moduleSheen {
  0%,
  52% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(110%);
  }
}

@keyframes signalFlow {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(96, 155, 144, 0));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(96, 155, 144, 0.75));
  }
}

@keyframes statusPulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(96, 155, 144, 0.16);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(96, 155, 144, 0.28);
  }
}

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

@keyframes stageEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes clientCardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cardGlide {
  0%,
  38% {
    background-position: -120% 0, 0 0;
  }
  100% {
    background-position: 120% 0, 0 0;
  }
}

@keyframes matrixGridIn {
  from {
    opacity: 0;
    transform: perspective(700px) rotateX(68deg) translateY(24%);
  }
  to {
    opacity: 1;
    transform: perspective(700px) rotateX(58deg) translateY(10%);
  }
}

@keyframes matrixScan {
  from {
    opacity: 0;
    transform: translateX(-42%) scaleX(0.7);
  }
  45% {
    opacity: 1;
  }
  to {
    opacity: 0.38;
    transform: translateX(42%) scaleX(1);
  }
}

@keyframes matrixRain {
  from {
    opacity: 0;
    transform: translateY(-42px);
  }
  to {
    opacity: 1;
    transform: translateY(18px);
  }
}

@keyframes matrixCardIn {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

@keyframes matrixLeave {
  to {
    opacity: 0;
    filter: blur(10px);
    transform: scale(1.02);
  }
}

@keyframes pageDrift {
  0%,
  100% {
    background-position: 0% 0%, 0 0;
  }
  50% {
    background-position: 100% 100%, 0 0;
  }
}

@keyframes shellRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes navDrop {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes statusSweep {
  0%,
  42% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(110%);
  }
}

@keyframes processSweep {
  0%,
  55% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelSweep {
  0%,
  62% {
    opacity: 0;
    transform: translateX(-118%);
  }
  72% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(118%);
  }
}

@keyframes stageRail {
  0%,
  100% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
}

@keyframes stageNode {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(96, 155, 144, 0);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(96, 155, 144, 0.13);
  }
}

@keyframes attachmentSweep {
  0%,
  70% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(110%);
  }
}

@keyframes pillPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(96, 155, 144, 0);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(96, 155, 144, 0.1);
  }
}

@keyframes chipFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes ideasLift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes metricSweep {
  0%,
  66% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(110%);
  }
}

@keyframes chartRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chartSweep {
  0%,
  48% {
    transform: translateX(-80%);
  }
  100% {
    transform: translateX(80%);
  }
}

@keyframes canvasGlow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(96, 155, 144, 0);
  }
  50% {
    box-shadow: 0 0 24px rgba(96, 155, 144, 0.1);
  }
}

@keyframes chartBreathe {
  0%,
  100% {
    filter: saturate(1);
    transform: translateY(0) scale(1);
  }
  50% {
    filter: saturate(1.04);
    transform: translateY(-1px) scale(1.002);
  }
}

@keyframes dashboardScan {
  0% {
    transform: translateX(-36%);
  }
  100% {
    transform: translateX(36%);
  }
}

@keyframes dashboardPulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

@keyframes numberBreathe {
  0%,
  100% {
    color: #fff8ff;
    transform: translateY(0);
  }
  50% {
    color: #78d8c8;
    transform: translateY(-1px);
  }
}

@keyframes previewFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes chartPanHint {
  0%,
  100% {
    opacity: 0.16;
    transform: translateX(-8px);
  }
  50% {
    opacity: 0.72;
    transform: translateX(8px);
  }
}

@keyframes mobileChartEnter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes leftRail {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

@keyframes focusPulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(96, 155, 144, 0.18);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(192, 38, 211, 0.12);
  }
}

@keyframes primaryPulse {
  0%,
  100% {
    box-shadow: 0 10px 24px rgba(192, 38, 211, 0.18);
  }
  50% {
    box-shadow: 0 14px 34px rgba(192, 38, 211, 0.32);
  }
}

@keyframes resultSweep {
  0%,
  72% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

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

@keyframes answerFlash {
  from {
    transform: translateY(4px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes answerWorldIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes answerPathDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes answerNodeRise {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes answerMetricIn {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes answerTableLift {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes answerTableRowIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes answerTableSweep {
  0% {
    transform: translateX(-120%);
  }
  55%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes answerShake {
  0%,
  100% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(-3px);
  }
  60% {
    transform: translateX(3px);
  }
}

@keyframes scoreFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes atlasSettle {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes chartFocus {
  0% {
    box-shadow: 0 0 0 0 rgba(120, 216, 200, 0);
  }
  35% {
    box-shadow: 0 0 0 4px rgba(120, 216, 200, 0.22);
  }
  100% {
    box-shadow: inherit;
  }
}

@keyframes studioCardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tourPanelIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tourFocusPulse {
  0%,
  100% {
    outline: 1px solid rgba(120, 216, 200, 0.24);
  }
  50% {
    outline: 1px solid rgba(217, 70, 239, 0.5);
  }
}

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

@keyframes curtainDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 120px 0, 80px 0;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .workspace-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .client-grid {
    grid-template-columns: 1fr;
  }

  .asap-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gideon-console-grid {
    grid-template-columns: 1fr;
  }

  .gideon-answer-stack {
    max-height: none;
    overflow: visible;
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .answer-result-box {
    min-height: 126px;
  }

  .answer-world {
    grid-template-columns: 1fr;
  }

  .answer-table-stage {
    grid-template-columns: 1fr;
  }

  .answer-verbatim-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .answer-world-visual {
    order: -1;
  }

  .answer-metric-row,
  .decision-chart-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .decision-point-grid,
  .decision-artifact-grid,
  .decision-artifact-head {
    grid-template-columns: 1fr;
  }

  .decision-artifact-head,
  .decision-artifact-actions {
    display: grid;
    align-items: stretch;
  }

  .metric-strip,
  .chart-grid,
  .intelligence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intelligence-card-wide {
    grid-column: span 2;
  }

  .chart-card-wide {
    grid-column: 1 / -1;
  }

  .signal-module {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 18px, 1680px);
    padding-top: 12px;
  }

  .brand-nav {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    min-height: 56px;
    overflow: visible;
    padding: 10px 12px;
  }

  .client-access-panel {
    padding: 14px;
  }

  .client-access-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .asap-hub-panel {
    padding: 14px;
  }

  .asap-hub-head {
    flex-direction: column;
  }

  .asap-profile-grid {
    grid-template-columns: 1fr;
  }

  .client-card {
    min-height: 210px;
  }

  .client-grid.single-client-grid .client-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(76px, auto) auto auto;
  }

  .social-scan-actions {
    grid-template-columns: 1fr;
  }

  .social-integrity-output {
    min-height: 132px;
  }

  .client-grid.single-client-grid .client-status,
  .client-grid.single-client-grid .client-logo-mark,
  .client-grid.single-client-grid .client-card strong,
  .client-grid.single-client-grid .client-card small {
    grid-column: 1;
    grid-row: auto;
  }

  .client-logo-mark {
    width: 100%;
    min-height: 76px;
  }

  .nav-links {
    position: relative;
    z-index: 1;
    flex: 1 1 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: thin;
  }

  .nav-links a,
  .admin-login-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .app-menu-shell {
    position: relative;
    z-index: 180;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    margin-left: auto;
  }

  .app-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 36px;
    width: auto;
    min-width: 92px;
    border: 1px solid rgba(120, 216, 200, 0.32);
    border-radius: 999px;
    padding: 0 12px;
    background: rgba(9, 9, 11, 0.74);
    color: white;
    font-size: 0.82rem;
    font-weight: 950;
    letter-spacing: 0.04em;
    list-style: none;
    text-transform: uppercase;
  }

  .app-menu-toggle::-webkit-details-marker {
    display: none;
  }

  .app-menu-toggle::after {
    content: "+";
    color: var(--teal);
    font-size: 1.15rem;
    line-height: 1;
  }

  .app-menu-shell[open] .app-menu-toggle::after {
    content: "-";
  }

  .app-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 220;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    width: min(330px, calc(100vw - 24px));
    max-height: min(66vh, 430px);
    min-width: 0;
    margin-top: 0;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid rgba(120, 216, 200, 0.24);
    border-radius: var(--radius);
    background:
      linear-gradient(145deg, rgba(24, 24, 27, 0.98), rgba(30, 22, 38, 0.98)),
      var(--dark);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  }

  .app-menu-shell[open] .app-menu {
    display: grid;
    animation: mobileChartEnter 260ms ease-out both;
  }

  .app-menu-button {
    width: 100%;
    min-width: 0;
    animation: mobileChartEnter 300ms ease-out both;
  }

  .room-view-select {
    grid-column: 1 / -1;
    width: 100%;
  }

  .wordmark {
    align-items: center;
    flex: 1 1 min(210px, calc(100% - 120px));
    flex-wrap: wrap;
    white-space: normal;
  }

  .nav-logo-slot.ready {
    flex-basis: 100%;
    margin-top: 2px;
  }

  .hero-grid {
    padding: 26px 14px 16px;
  }

  .hero-brand-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .brand-hero h1 {
    font-size: clamp(2.7rem, 17vw, 4rem);
  }

  .hero-logo-slot {
    padding-bottom: 0;
  }

  .hero-logo-slot img {
    max-width: min(190px, 58vw);
    max-height: 48px;
  }

  .hero-product,
  .subhead,
  .hero-copy {
    max-width: min(100%, 330px);
  }

  .process-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid,
  .onboard-routing,
  .onboard-grid,
  .data-depth-metrics,
  .data-depth-bars,
  .data-depth-topics,
  .seat-grid,
  .market-grid,
  .ai-input-row,
  .chart-grid,
  .intelligence-grid,
  .skip-grid {
    grid-template-columns: 1fr;
  }

  .answer-metric-row,
  .decision-chart-rail,
  .decision-world-strip {
    grid-template-columns: 1fr;
  }

  .answer-result-box {
    padding: 14px;
  }

  .answer-world {
    gap: 14px;
  }

  .answer-live-table {
    overflow: hidden;
  }

  .answer-live-table table {
    min-width: 0;
  }

  .answer-live-table thead {
    display: none;
  }

  .answer-live-table tbody,
  .answer-live-table tr,
  .answer-live-table td {
    display: block;
    width: 100% !important;
  }

  .answer-live-table tbody {
    padding: 8px;
  }

  .answer-live-table tbody tr {
    margin-bottom: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.045);
  }

  .answer-live-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .answer-live-table td {
    display: grid;
    grid-template-columns: minmax(72px, 0.34fr) minmax(0, 1fr);
    gap: 8px;
    padding: 5px 0;
    border-bottom: 0;
    font-size: 0.82rem;
    overflow-wrap: anywhere;
  }

  .answer-live-table td::before {
    content: attr(data-label);
    color: #c6b8d9;
    font-size: 0.62rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .answer-mini-chart-bars button {
    grid-template-columns: 1fr auto;
    gap: 7px;
  }

  .answer-mini-chart-bars em {
    grid-column: 1 / -1;
    order: 3;
  }

  .answer-world-copy .answer-lead {
    font-size: clamp(1.02rem, 5.8vw, 1.34rem);
  }

  .decision-world-strip {
    gap: 10px;
    padding: 2px 0;
  }

  .decision-world-strip::before {
    display: none;
  }

  .decision-world-node {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    justify-items: start;
    min-height: 62px;
    padding: 10px;
    border: 1px solid rgba(24, 24, 27, 0.12);
    border-radius: var(--radius);
    background:
      linear-gradient(135deg, rgba(120, 216, 200, 0.1), transparent 54%),
      rgba(255, 255, 255, 0.86);
  }

  .decision-world-node b {
    width: 42px;
    height: 42px;
    font-size: 0.96rem;
  }

  .decision-world-node small {
    align-self: center;
    gap: 3px;
    text-align: left;
  }

  .decision-world-node small span,
  .decision-world-node small em {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .decision-world-node small span {
    color: var(--accent-strong);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .decision-world-node small em {
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.05;
  }

  .seat-actions,
  .data-depth-actions,
  .onboard-routing-actions {
    justify-content: stretch;
  }

  .seat-actions button,
  .data-depth-actions > *,
  .onboard-routing-actions .secondary-button {
    flex: 1 1 100%;
  }

  .data-depth-hero {
    grid-template-columns: 1fr;
  }

  .data-depth-hero b {
    width: 72px;
    height: 72px;
    font-size: 1.28rem;
  }

  .seat-row {
    grid-template-columns: 1fr;
  }

  .verbatim-list {
    grid-template-columns: 1fr;
  }

  .intelligence-card-wide {
    grid-column: auto;
  }

  .prediction-stat-grid,
  .prediction-split,
  .prediction-bottom-grid,
  .prediction-check-list {
    grid-template-columns: 1fr;
  }

  .tour-layer {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

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

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

  .chart-head-actions {
    justify-content: space-between;
    width: 100%;
  }

  .market-map-layer-grid {
    grid-template-columns: 1fr;
  }

  .chart-select-label {
    grid-template-columns: auto minmax(0, 1fr);
    flex: 1 1 auto;
  }

  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-tile strong,
  .metric-tile:nth-child(-n + 2) strong {
    font-size: clamp(1.35rem, 7.8vw, 2rem);
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .node-ledger {
    grid-template-columns: 1fr;
  }

  .chart-card {
    padding: 12px;
    overflow: visible;
  }

  .chart-card:has(canvas) {
    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-x: contain;
    scrollbar-color: rgba(120, 216, 200, 0.58) rgba(255, 255, 255, 0.06);
    scrollbar-width: thin;
  }

  .chart-card canvas,
  .chart-card-wide canvas {
    width: min(720px, 184vw);
    min-width: 620px;
    max-width: none;
    height: 430px;
    margin-top: 12px;
    cursor: help;
    animation:
      canvasGlow 5.2s ease-in-out infinite,
      chartBreathe 8.4s ease-in-out infinite,
      mobileChartEnter 360ms ease-out both;
  }

  .chart-card[data-description]::after {
    top: 48px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .concept-directions-card .concept-list {
    grid-template-columns: 1fr;
  }

  .concept-directions-card,
  .chart-card:has(#conceptPortfolioChart) {
    min-height: auto;
  }

  .trend-outlook-layout,
  .trend-priority-layout {
    grid-template-columns: 1fr;
  }

  #opportunityMapChart {
    height: clamp(600px, 158vw, 760px);
  }

  #conceptPortfolioChart {
    height: clamp(620px, 158vw, 760px);
  }

  #dataNodeChart {
    height: clamp(460px, 122vw, 620px);
  }

  #segmentDemandChart,
  #predictionBandsChart,
  #volumeForecastChart,
  #momentumChart,
  #channelMomentumChart,
  #signalMixChart,
  #fitProfileChart {
    width: min(720px, 184vw);
    min-width: 620px;
  }

  #trendPriorityChart,
  #associationStrengthChart,
  #verbatimSignalChart {
    width: min(720px, 184vw);
    min-width: 620px;
    height: clamp(420px, 112vw, 560px);
  }

  .social-score-layout,
  .focus-lens-content {
    grid-template-columns: 1fr;
  }

  .social-credit-panel {
    min-height: auto;
  }

  .social-score-drivers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-signal-grid,
  .signal-atlas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-lens-content {
    padding: 10px;
  }

  .focus-lens-main {
    grid-row: auto;
    padding: 10px;
  }

  .focus-chart-window {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-color: rgba(120, 216, 200, 0.58) rgba(255, 255, 255, 0.06);
    scrollbar-width: thin;
  }

  .focus-chart-window::after {
    opacity: 0.38;
    animation: chartPanHint 1.9s ease-in-out infinite;
  }

  .focus-chart-window svg {
    width: min(720px, 184vw);
    min-width: 620px;
    max-width: none;
    height: 390px;
    scroll-snap-align: start;
  }

  .decision-chart-wrap,
  .decision-mini-chart {
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  .decision-chart-wrap svg,
  .decision-mini-chart svg {
    min-width: 620px;
  }

  .focus-lens-metrics,
  .focus-evidence-grid {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .prompt-actions,
  .ai-actions,
  .export-actions {
    flex-direction: column;
  }

  .prompt-actions > *,
  .ai-actions > *,
  .export-actions > *,
  .launch-actions > * {
    width: 100%;
  }

  .stage-item {
    grid-template-columns: 36px 1fr;
  }

  .stage-badge {
    grid-column: 2;
    width: max-content;
  }

  .launch-actions {
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  .shell {
    width: min(100% - 12px, 1680px);
  }

  .panel,
  .signal-module {
    padding: 12px;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .answer-verbatim-rail {
    grid-template-columns: 1fr;
  }

  .brand-hero h1 {
    font-size: clamp(2.35rem, 16vw, 3.2rem);
  }

  .hero-kicker,
  .subhead {
    overflow-wrap: anywhere;
  }

  .status-card {
    width: 100%;
    white-space: normal;
  }

  .process-strip {
    grid-template-columns: 1fr;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .social-score-drivers,
  .social-signal-grid,
  .signal-atlas {
    grid-template-columns: 1fr;
  }

  .prediction-stat-grid,
  .prediction-check-list {
    grid-template-columns: 1fr;
  }

  .dashboard-panel {
    padding: 14px;
  }

  .chart-card canvas,
  .chart-card-wide canvas {
    width: min(680px, 190vw);
    min-width: 590px;
    height: 420px;
  }

  .focus-chart-window svg {
    width: min(680px, 190vw);
    min-width: 590px;
    height: 390px;
  }

  #dataNodeChart {
    min-width: 680px;
    height: 560px;
  }

  #opportunityMapChart {
    height: clamp(620px, 174vw, 760px);
  }

  #conceptPortfolioChart {
    height: clamp(640px, 176vw, 760px);
  }
}
