:root {
  color-scheme: dark;
  --bg: #06080d;
  --bg-soft: rgba(7, 11, 18, 0.88);
  --panel: rgba(10, 16, 25, 0.8);
  --panel-strong: rgba(10, 16, 25, 0.94);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f7fb;
  --muted: #adb7c3;
  --soft: #7b8694;
  --accent: #8dc7ff;
  --accent-soft: rgba(141, 199, 255, 0.22);
  --copper: #cd8c5f;
  --copper-soft: rgba(205, 140, 95, 0.18);
  --good: #99efcb;
  --warn: #f4d28f;
  --bad: #ff9c97;
  --shadow: 0 28px 110px rgba(0, 0, 0, 0.42);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --detail-header-height: 62px;
  --scene-color: #86c9ff;
  --scene-glow: rgba(134, 201, 255, 0.24);
  --compare-color: rgba(255, 255, 255, 0.72);
  --compare-glow: rgba(255, 255, 255, 0.16);
  --mist-a: rgba(76, 122, 171, 0.18);
  --mist-b: rgba(136, 186, 255, 0.12);
  --fog-left: rgba(143, 116, 156, 0.2);
  --fog-right: rgba(246, 232, 218, 0.16);
  --mist-core: rgba(123, 159, 201, 0.08);
  --mist-warm: rgba(255, 234, 215, 0.06);
  --ground-glow: rgba(207, 166, 134, 0.14);
}

body[data-study="prime"] {
  --accent: #8dc7ff;
  --accent-soft: rgba(141, 199, 255, 0.22);
}

body[data-study="voice"] {
  --accent: #97ece1;
  --accent-soft: rgba(151, 236, 225, 0.22);
}

body[data-study="convoy"] {
  --accent: #b8c2ff;
  --accent-soft: rgba(184, 194, 255, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 16%, var(--mist-a), transparent 22%),
    radial-gradient(circle at 82% 28%, var(--mist-b), transparent 26%),
    linear-gradient(180deg, #030407 0%, #0b1018 50%, #060a10 100%);
}

body.detail-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

input,
select {
  color: inherit;
}

.ambient-media {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cloud,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.cloud {
  z-index: -4;
  filter: blur(76px);
  opacity: 0.7;
}

.cloud-a {
  background:
    radial-gradient(circle at 16% 18%, var(--mist-a), transparent 18%),
    radial-gradient(circle at 26% 54%, rgba(63, 90, 138, 0.12), transparent 18%);
  animation: driftA 22s ease-in-out infinite alternate;
}

.cloud-b {
  z-index: -5;
  background:
    radial-gradient(circle at 82% 24%, var(--mist-b), transparent 18%),
    radial-gradient(circle at 72% 58%, rgba(83, 116, 163, 0.1), transparent 18%);
  animation: driftB 30s ease-in-out infinite alternate;
}

.cloud-c {
  z-index: -6;
  background:
    radial-gradient(circle at 50% 6%, var(--mist-core), transparent 20%),
    radial-gradient(circle at 12% 84%, rgba(65, 90, 129, 0.12), transparent 18%);
  animation: driftC 28s ease-in-out infinite alternate;
}

.grain {
  z-index: -3;
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 140px 140px;
  mask-image: radial-gradient(circle at center, black 34%, transparent 86%);
}

.eyebrow,
.landing-kicker,
.landing-topbar__meta,
.connect-button,
.landing-brand__copy,
.landing-session-item__meta,
.view-button,
.enter-muted,
.link-button,
.pill-button,
.metric-pill__label,
.event-card__minute,
.event-card__status,
.metric-row__help,
.metric-input span,
.metric-delta__label,
.source-card__tag,
.source-card__url,
.priority-chip,
.panel-note,
.select-shell span {
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.68rem;
}

.entry-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(67, 86, 113, 0.2), transparent 18%),
    linear-gradient(180deg, rgba(5, 7, 10, 0.3), rgba(5, 7, 10, 0.74));
  backdrop-filter: blur(14px);
  transition:
    opacity 520ms ease,
    visibility 520ms ease;
}

.entry-overlay.is-dismissed {
  opacity: 0;
  visibility: hidden;
}

.entry-overlay__inner {
  display: grid;
  justify-items: center;
  gap: 72px;
}

.enter-orb {
  position: relative;
  width: 208px;
  height: 208px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.enter-orb__ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.enter-orb__ring--inner {
  inset: 8px;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.18);
}

.enter-orb__label {
  position: relative;
  z-index: 1;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.9);
}

.enter-orb::before {
  content: "";
  position: absolute;
  inset: -30px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(122, 155, 204, 0.16), transparent 68%);
  filter: blur(12px);
  opacity: 0;
  transition: opacity 240ms ease;
}

.enter-orb:hover::before,
.enter-orb:focus-visible::before {
  opacity: 1;
}

.enter-orb:hover .enter-orb__ring,
.enter-orb:focus-visible .enter-orb__ring {
  border-color: rgba(255, 255, 255, 0.42);
}

.enter-muted {
  position: relative;
  padding: 0 2px 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
}

.enter-muted::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.24) 50%, transparent 50%);
  background-size: 7px 1px;
}

.landing-scroll {
  --session-count: 6;
  position: relative;
  height: calc(var(--session-count) * 100vh);
}

.landing-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  overflow: hidden;
}

.landing-topbar {
  position: absolute;
  top: 24px;
  left: 40px;
  right: 40px;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.landing-brand__mark {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.1));
}

.landing-brand__copy {
  display: grid;
  gap: 2px;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.82);
}

.landing-brand__copy strong {
  font-size: 0.74rem;
}

.landing-topbar__meta {
  color: rgba(205, 140, 95, 0.9);
  font-size: 0.84rem;
}

.landing-topbar__meta--connect {
  position: relative;
  justify-self: end;
}

.connect-button {
  padding: 10px 0;
  color: rgba(205, 140, 95, 0.92);
  font-size: 0.82rem;
  transition:
    color 180ms ease,
    transform 180ms ease,
    text-shadow 180ms ease;
}

.connect-button:hover,
.connect-button:focus-visible {
  color: color-mix(in srgb, var(--scene-color) 70%, #ffd8c2 30%);
  transform: translateY(-1px);
  text-shadow: 0 0 20px color-mix(in srgb, var(--scene-color) 24%, transparent);
}

.connect-popup {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 270px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(7, 12, 20, 0.92);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  font-family: "JetBrains Mono", monospace;
}

.connect-popup[hidden] {
  display: none;
}

.connect-popup__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.connect-popup__icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: color-mix(in srgb, var(--scene-color) 72%, #ffd8c2 28%);
  background: rgba(255, 255, 255, 0.04);
  flex: 0 0 auto;
}

.connect-popup__icon svg {
  width: 16px;
  height: 16px;
}

.connect-popup a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.landing-sidecopy {
  position: absolute;
  top: 112px;
  left: 122px;
  z-index: 5;
}

.landing-kicker {
  margin: 0;
  color: rgba(205, 140, 95, 0.94);
  font-size: 0.92rem;
  line-height: 0.95;
}

.landing-index {
  position: absolute;
  top: 78px;
  right: 64px;
  z-index: 6;
  width: min(34vw, 460px);
}

.landing-session-list {
  display: grid;
  gap: 2px;
}

.landing-session-item {
  display: block;
  padding: 0;
  text-align: left;
  color: rgba(205, 140, 95, 0.82);
  transition:
    color 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

.landing-session-item.is-active,
.landing-session-item:hover,
.landing-session-item:focus-visible {
  color: var(--scene-color);
  transform: translateX(-2px);
}

.landing-session-item__title {
  display: block;
  margin: 0;
  font-size: clamp(1.34rem, 1.95vw, 2.08rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.landing-session-item__meta {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 0.56rem;
}

.landing-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 2200px;
  isolation: isolate;
}

.ambient-shader-canvas,
.landing-stage__fog,
.landing-stage__mist,
.landing-stage__ground,
.landing-stage__reflection {
  position: absolute;
  pointer-events: none;
}

.ambient-shader-canvas {
  inset: -18% -14%;
  width: calc(100% + 28%);
  height: calc(100% + 36%);
  z-index: 0;
  opacity: 1;
  mix-blend-mode: screen;
  filter: saturate(1.2);
}

.landing-stage__fog {
  border-radius: 999px;
  filter: blur(72px);
  opacity: 0.6;
  z-index: 1;
}

.landing-stage__fog--left {
  width: min(36vw, 540px);
  height: min(44vh, 420px);
  left: -4vw;
  top: 26vh;
  background: radial-gradient(circle, var(--fog-left), transparent 72%);
}

.landing-stage__fog--right {
  width: min(40vw, 660px);
  height: min(58vh, 560px);
  right: -10vw;
  top: 16vh;
  background: radial-gradient(circle, var(--fog-right), transparent 68%);
}

.landing-stage__mist {
  inset: 0;
  background:
    radial-gradient(circle at 50% 52%, var(--mist-warm), transparent 18%),
    radial-gradient(circle at 52% 48%, var(--mist-core), transparent 22%);
  filter: blur(20px);
  z-index: 1;
}

.landing-stage__ground {
  left: -4vw;
  right: -4vw;
  bottom: -8vh;
  height: 34vh;
  background:
    radial-gradient(ellipse at center, rgba(255, 230, 215, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(3, 5, 8, 0.7));
  filter: blur(8px);
  z-index: 1;
}

.landing-stage__reflection {
  width: min(48vw, 760px);
  height: 18vh;
  bottom: 10vh;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, var(--ground-glow), transparent 70%);
  filter: blur(28px);
  z-index: 1;
}

.voxel-stage {
  position: relative;
  z-index: 2;
  width: min(74vw, 1100px);
  height: min(76vh, 820px);
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  contain: layout paint style;
}

.voxel-scene {
  position: relative;
  width: min(64vw, 920px);
  aspect-ratio: 1.14;
  transform-style: preserve-3d;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --hover-x: 0;
  --hover-y: 0;
  --hover-spread: 0;
  transform:
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg));
  transition: transform 200ms ease;
  will-change: transform;
  animation: sceneIn 480ms ease;
}

.voxel-scene.is-hovered {
  --hover-spread: 1;
}

.voxel-scene__wall {
  position: absolute;
  inset: 4% 5%;
  display: block;
  transform-style: preserve-3d;
  filter: drop-shadow(0 28px 70px rgba(0, 0, 0, 0.32));
  contain: layout paint style;
  isolation: isolate;
}

.stage-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.voxel-scene__wall::before,
.voxel-scene__wall::after {
  content: "";
  position: absolute;
  inset: 10%;
  pointer-events: none;
  border-radius: 26%;
  z-index: -1;
}

.voxel-scene__wall::before {
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--scene-color) 24%, transparent), transparent 38%),
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.08), transparent 30%),
    radial-gradient(circle at 52% 74%, color-mix(in srgb, var(--scene-color) 16%, transparent), transparent 38%);
  filter: blur(26px) saturate(1.08);
  opacity: 0.42;
  transform: translateZ(-80px);
  animation: shaderFlow 16s ease-in-out infinite alternate;
}

.voxel-scene__wall::after {
  inset: 18% 22%;
  background:
    conic-gradient(from 135deg at 50% 50%, transparent 0deg, color-mix(in srgb, var(--scene-color) 10%, transparent) 90deg, transparent 180deg, rgba(255, 255, 255, 0.04) 240deg, transparent 320deg);
  filter: blur(34px);
  opacity: 0.22;
  transform: translateZ(-120px);
  animation: shaderFlowAlt 20s ease-in-out infinite alternate;
}

.voxel-scene__wall.is-live-shader::before {
  opacity: 0;
}

.voxel-scene__wall.is-live-shader::after {
  opacity: 0;
}

.voxel {
  aspect-ratio: 1;
  border-radius: 3px;
  background:
    linear-gradient(145deg, var(--face-highlight, rgba(255, 255, 255, 0.14)), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, color-mix(in srgb, var(--face-color, rgba(120, 140, 160, 0.5)) 90%, #ffffff 10%), var(--face-color, rgba(70, 72, 90, 0.8)));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 8px color-mix(in srgb, var(--scene-color) 14%, transparent);
  opacity: var(--voxel-opacity, 1);
  transform:
    translate3d(
      calc(var(--voxel-x, 0px) + (var(--dir-x, 0) * var(--hover-x, 0) * 8px) + (var(--dir-x, 0) * var(--hover-spread, 0) * 10px)),
      calc(var(--voxel-y, 0px) + (var(--dir-y, 0) * var(--hover-y, 0) * 8px) + (var(--dir-y, 0) * var(--hover-spread, 0) * 10px)),
      calc(var(--voxel-z, 0px) + (var(--dir-z, 0) * var(--hover-spread, 0) * 54px))
    )
    scale(var(--voxel-scale, 1));
  filter: blur(var(--voxel-blur, 0px));
  transition:
    transform 220ms ease,
    filter 220ms ease,
    opacity 220ms ease,
    box-shadow 220ms ease;
}

.voxel-scene.is-hovered .voxel {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 14px color-mix(in srgb, var(--scene-color) 26%, transparent);
}

.voxel-scene__glow {
  position: absolute;
  inset: 18% 22%;
  border-radius: 999px;
  background: radial-gradient(circle, var(--scene-glow), transparent 70%);
  filter: blur(26px);
  transform: translateZ(-120px);
}

.voxel-scene__ghostcopy {
  position: absolute;
  left: 26%;
  top: 9%;
  max-width: 36%;
  color: rgba(255, 255, 255, 0.07);
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  transform: translateZ(-180px);
}

.voxel-scene__title {
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(42%, 360px);
  translate: -50% -50%;
  transform-style: preserve-3d;
  transform:
    translate3d(
      calc(var(--hover-x, 0) * 10px),
      calc(var(--hover-y, 0) * 8px),
      36px
    );
  transition: transform 180ms ease;
}

.voxel-scene__title small {
  display: block;
  margin-bottom: 10px;
  color: color-mix(in srgb, var(--scene-color) 70%, #ffe0cb 30%);
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.56rem;
}

.voxel-scene__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--scene-color) 46%, rgba(255, 255, 255, 0.16));
  background: rgba(8, 12, 18, 0.42);
}

.voxel-scene__chip img {
  width: 16px;
  height: 16px;
}

.voxel-scene__chip span {
  color: color-mix(in srgb, var(--scene-color) 72%, rgba(255, 255, 255, 0.7));
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.52rem;
}

.voxel-scene__headline {
  position: relative;
  display: block;
  margin: 0;
  color: rgba(250, 252, 255, 0.98);
  font-size: clamp(2.5rem, 3.7vw, 4.25rem);
  line-height: 0.93;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow:
    0 0 8px color-mix(in srgb, var(--scene-color) 22%, rgba(255, 255, 255, 0.12)),
    0 0 24px color-mix(in srgb, var(--scene-color) 34%, transparent),
    0 0 52px color-mix(in srgb, var(--scene-color) 20%, transparent);
}

body[data-stage-mode="scatter"] .voxel-scene__title {
  top: 35%;
  width: min(46%, 400px);
}

body[data-stage-mode="scatter"] .voxel-scene__ghostcopy {
  top: 5%;
}

body[data-stage-mode="tilted"] .voxel-scene__title {
  top: 35%;
  width: min(46%, 400px);
}

body[data-stage-mode="tilted"] .voxel-scene__headline {
  color: color-mix(in srgb, #ffffff 90%, var(--scene-color) 10%);
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.2);
}

body[data-stage-mode="tilted"] .voxel-scene__headline::before,
body[data-stage-mode="tilted"] .voxel-scene__headline::after {
  display: none;
}

body[data-stage-mode="tilted"] .voxel-scene__ghostcopy {
  top: 3%;
  left: 22%;
  width: 320px;
  max-width: none;
  translate: 0 0;
  text-align: left;
  font-size: 4.3rem;
  line-height: 0.9;
  color: color-mix(in srgb, var(--scene-color) 28%, rgba(255, 255, 255, 0.08));
  text-shadow: 0 0 30px color-mix(in srgb, var(--scene-color) 18%, transparent);
}

body[data-stage-mode="tilted"] .voxel-scene__subline,
body[data-stage-mode="tilted"] .voxel-scene__chip span,
body[data-stage-mode="tilted"] .voxel-scene__title small {
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.14);
}

body[data-stage-mode="tilted"] .voxel-scene.is-hovered .voxel-scene__headline {
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.5),
    0 0 18px color-mix(in srgb, var(--scene-color) 72%, transparent),
    0 0 34px color-mix(in srgb, var(--scene-color) 52%, transparent),
    0 0 68px color-mix(in srgb, var(--scene-color) 30%, transparent);
}

body[data-stage-mode="tilted"] .voxel-scene.is-hovered .voxel-scene__subline,
body[data-stage-mode="tilted"] .voxel-scene.is-hovered .voxel-scene__chip span,
body[data-stage-mode="tilted"] .voxel-scene.is-hovered .voxel-scene__title small {
  text-shadow:
    0 0 10px color-mix(in srgb, var(--scene-color) 44%, transparent),
    0 0 22px color-mix(in srgb, var(--scene-color) 22%, transparent);
}

.voxel-scene__headline.is-clean {
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
}

.voxel-scene__headline.is-clean::before,
.voxel-scene__headline.is-clean::after {
  display: none;
}

.voxel-scene__headline::before,
.voxel-scene__headline::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0.42;
  pointer-events: none;
}

.voxel-scene__headline::before {
  color: color-mix(in srgb, var(--scene-color) 84%, rgba(255, 255, 255, 0.14));
  translate: 1px 0;
}

.voxel-scene__headline::after {
  color: color-mix(in srgb, var(--scene-color) 72%, rgba(255, 255, 255, 0.14));
  translate: -1px 0;
}

.voxel-scene.is-hovered .voxel-scene__headline {
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.3),
    0 0 22px color-mix(in srgb, var(--scene-color) 70%, transparent),
    0 0 42px color-mix(in srgb, var(--scene-color) 54%, transparent),
    0 0 78px color-mix(in srgb, var(--scene-color) 36%, transparent);
}

.voxel-scene__subline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  color: color-mix(in srgb, var(--scene-color) 70%, #ffd6be 30%);
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.56rem;
}

.view-button {
  position: absolute;
  left: 50%;
  bottom: 74px;
  translate: -50% 0;
  z-index: 6;
  min-width: 168px;
  padding: 14px 20px;
  color: color-mix(in srgb, var(--scene-color) 72%, #ffd6be 28%);
  font-size: 0.86rem;
  border: 1px dashed color-mix(in srgb, var(--scene-color) 44%, rgba(205, 140, 95, 0.44));
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.view-button:hover,
.view-button:focus-visible {
  border-color: color-mix(in srgb, var(--scene-color) 66%, #ffe0cb 34%);
  background: color-mix(in srgb, var(--scene-glow) 72%, transparent);
  box-shadow:
    0 0 20px color-mix(in srgb, var(--scene-color) 28%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--scene-color) 18%, transparent);
}

.view-button:active {
  translate: -50% 0;
  transform: none;
}

.pill-button,
.select-shell select,
.metric-input input {
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    rgba(9, 16, 28, 0.6);
  color: var(--text);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.pill-button {
  padding: 14px 18px;
  border-radius: 999px;
  font-size: 0.7rem;
}

.pill-button--light {
  background:
    linear-gradient(180deg, rgba(170, 223, 255, 0.16), rgba(170, 223, 255, 0.08)),
    rgba(10, 17, 28, 0.6);
  border-color: rgba(170, 223, 255, 0.22);
}

.pill-button:hover,
.pill-button:focus-visible,
.select-shell select:hover,
.select-shell select:focus-visible,
.metric-input input:hover,
.metric-input input:focus-visible,
.link-button:hover,
.link-button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: var(--text);
  font-size: 0.74rem;
}

.link-button::after {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transition: transform 220ms ease;
}

.link-button:hover::after,
.link-button:focus-visible::after {
  transform: translateX(6px);
}

.status-pill,
.fact-chip,
.metric-pill,
.priority-chip,
.detail-meta .fact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.66rem;
}

.status-pill::before,
.fact-chip::before,
.metric-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), rgba(255, 255, 255, 0.94));
  box-shadow: 0 0 18px var(--accent-soft);
}

.detail-meta,
.metric-strip,
.lab-toolbar,
.detail-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-view {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 4, 9, 0.58);
  opacity: 0;
  transition: opacity 420ms ease;
}

.detail-shell {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  transform: translateY(2%);
  opacity: 0;
  transition: transform 520ms cubic-bezier(0.2, 1, 0.2, 1);
  background:
    radial-gradient(circle at 12% 14%, rgba(116, 190, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(4, 10, 19, 0.96), rgba(5, 10, 18, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

body.detail-open .detail-view {
  pointer-events: auto;
}

body.detail-open .detail-backdrop {
  opacity: 1;
}

body.detail-open .detail-shell {
  transform: translateY(0);
  opacity: 1;
}

.detail-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: var(--detail-header-height);
  padding: 8px 18px;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(4, 10, 19, 0.92), rgba(4, 10, 19, 0.58));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-header .pill-button,
.detail-header .select-shell select {
  padding: 8px 11px;
  font-size: 0.58rem;
}

.detail-header .select-shell {
  gap: 6px;
}

.detail-header .select-shell span,
.detail-header .link-button {
  font-size: 0.56rem;
}

.detail-header-actions {
  gap: 8px;
}

.detail-panel {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 24px 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.detail-panel--hero {
  align-items: center;
  padding-top: 28px;
}

.detail-hero-copy h2,
.panel-copy h3 {
  margin: 12px 0 0;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.detail-hero-copy h2 {
  font-size: clamp(2.6rem, 4.6vw, 4.8rem);
  max-width: 10ch;
}

.detail-synopsis,
.panel-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.detail-synopsis {
  margin-top: 0;
  max-width: 46ch;
  font-size: 0.82rem;
  line-height: 1.5;
}

.hero-chip-stack {
  position: relative;
  min-height: 214px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(7, 14, 25, 0.74);
  overflow: hidden;
}

.hero-chip-stack::before,
.hero-chip-stack::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.hero-chip-stack::before {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  filter: blur(20px);
}

.hero-chip-stack::after {
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 32px;
}

.hero-chip {
  position: absolute;
  width: clamp(180px, 26vw, 260px);
  aspect-ratio: 1.2;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(9, 17, 30, 0.86);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.hero-chip--back {
  transform: translate(-28%, -14%) rotate(-9deg);
  opacity: 0.46;
}

.hero-chip--mid {
  transform: translate(28%, 18%) rotate(12deg);
  opacity: 0.6;
}

.hero-chip--front {
  width: clamp(196px, 26vw, 282px);
  aspect-ratio: 1.02;
  transform: none;
  border-radius: 40px;
  opacity: 1;
  display: grid;
  place-items: center;
}

.hero-chip__mark {
  width: 94px;
  height: 94px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.hero-chip__label {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.hero-chip__title {
  margin: 0;
  max-width: 8ch;
  font-size: 1.08rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-chip__study {
  color: var(--soft);
  font-size: 0.68rem;
}

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

.metric-pill {
  min-height: 58px;
  align-items: start;
  border-radius: 18px;
  padding: 10px 12px;
}

.metric-pill__body {
  display: grid;
  gap: 8px;
}

.metric-pill__label {
  color: var(--soft);
  font-size: 0.52rem;
}

.metric-pill strong {
  font-size: 0.98rem;
}

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

.panel-copy h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  max-width: 10ch;
}

.panel-note {
  color: var(--soft);
  font-size: 0.64rem;
  line-height: 1.7;
}

.panel-text--compact {
  font-size: 0.86rem;
  line-height: 1.55;
  max-width: none;
}

.detail-slide {
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.detail-slide--dashboard {
  position: relative;
  min-height: calc(100vh - var(--detail-header-height) - 34px);
  display: grid;
  gap: 10px;
  overflow: hidden;
}

.dashboard-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 12px;
  align-items: start;
}

.dashboard-main {
  display: grid;
  gap: 12px;
}

.dashboard-sidebar {
  display: grid;
  gap: 12px;
  align-content: start;
}

.detail-slide--dashboard::before,
.detail-slide--dashboard::after {
  content: "";
  position: absolute;
  inset: 8% 10%;
  border-radius: 40px;
  pointer-events: none;
  filter: blur(44px);
  opacity: 0.2;
}

.detail-slide--dashboard::before {
  background:
    radial-gradient(circle at 18% 24%, color-mix(in srgb, var(--scene-color) 22%, transparent), transparent 34%),
    radial-gradient(circle at 72% 30%, color-mix(in srgb, var(--scene-color) 16%, transparent), transparent 30%),
    radial-gradient(circle at 54% 78%, rgba(255, 255, 255, 0.04), transparent 24%);
  animation: shaderFlow 18s ease-in-out infinite alternate;
}

.detail-slide--dashboard::after {
  inset: 18% 16%;
  background:
    linear-gradient(125deg, transparent 12%, color-mix(in srgb, var(--scene-color) 12%, transparent) 36%, transparent 56%),
    conic-gradient(from 120deg at 50% 50%, transparent 0deg, color-mix(in srgb, var(--scene-color) 8%, transparent) 130deg, transparent 220deg, rgba(255, 255, 255, 0.04) 300deg, transparent 360deg);
  opacity: 0.12;
  animation: shaderFlowAlt 24s ease-in-out infinite alternate;
}

.dashboard-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.88fr);
  gap: 12px;
}

.dashboard-card,
.viz-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(7, 14, 25, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 70px rgba(0, 0, 0, 0.16);
}

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

.dashboard-card::before,
.viz-card::before {
  background:
    radial-gradient(circle at 20% 18%, color-mix(in srgb, var(--scene-color) 20%, transparent), transparent 30%),
    radial-gradient(circle at 84% 20%, rgba(255, 255, 255, 0.06), transparent 22%),
    radial-gradient(circle at 64% 82%, color-mix(in srgb, var(--scene-color) 14%, transparent), transparent 28%);
  opacity: 0.26;
  filter: blur(28px);
  animation: shaderFlow 20s ease-in-out infinite alternate;
}

.dashboard-card::after,
.viz-card::after {
  inset: 18%;
  border-radius: 34px;
  background:
    conic-gradient(from 110deg at 50% 50%, transparent 0deg, color-mix(in srgb, var(--scene-color) 10%, transparent) 120deg, transparent 200deg, rgba(255, 255, 255, 0.03) 280deg, transparent 360deg);
  opacity: 0.12;
  filter: blur(36px);
  animation: shaderFlowAlt 24s ease-in-out infinite alternate;
}

.dashboard-card > *,
.viz-card > * {
  position: relative;
  z-index: 1;
}

.dashboard-card {
  padding: 15px 16px;
}

.dashboard-card--summary {
  display: grid;
  gap: 10px;
  min-height: 214px;
}

.dashboard-card__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.dashboard-card__head--stack {
  flex-direction: column;
}

.dashboard-card__head--stack .detail-meta {
  gap: 8px;
}

.dashboard-card--summary h2 {
  margin: 8px 0 0;
  font-size: clamp(1.84rem, 3vw, 3.02rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  max-width: 7ch;
  text-shadow: 0 0 24px color-mix(in srgb, var(--scene-color) 18%, transparent);
}

.dashboard-legend-wrap {
  display: grid;
  gap: 8px;
  align-content: end;
}

.dashboard-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-card--hero {
  display: grid;
  gap: 10px;
}

.dashboard-grid {
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 12px;
  align-items: start;
}

.viz-card {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
}

.viz-card--trend,
.viz-card--compare {
  grid-column: span 2;
}

.viz-card--moments,
.viz-card--actions,
.viz-card--ai {
  min-height: 0;
}

.viz-card__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.viz-card__head h3 {
  margin: 6px 0 0;
  font-size: 1.02rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.viz-help {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: color-mix(in srgb, var(--scene-color) 72%, #f5fbff 28%);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.viz-help::after {
  content: attr(data-tip);
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(290px, 32vw);
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(4, 8, 14, 0.985);
  backdrop-filter: blur(20px);
  color: rgba(255, 255, 255, 0.84);
  text-align: left;
  line-height: 1.45;
  font-size: 0.72rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.viz-help:hover,
.viz-help:focus-visible {
  border-color: color-mix(in srgb, var(--scene-color) 44%, rgba(255, 255, 255, 0.12));
  background: color-mix(in srgb, var(--scene-glow) 38%, rgba(255, 255, 255, 0.02));
  box-shadow: 0 0 24px color-mix(in srgb, var(--scene-color) 18%, transparent);
}

.viz-help:hover::after,
.viz-help:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.chart-surface {
  min-height: 160px;
}

.chart-surface--line {
  min-height: 190px;
}

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

.chart-grid-line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.chart-axis-label {
  fill: rgba(255, 255, 255, 0.42);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.chart-area {
  fill: color-mix(in srgb, var(--scene-color) 12%, transparent);
  opacity: 0;
  animation: chartAreaIn 720ms ease 140ms forwards;
}

.chart-line,
.chart-line--compare {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: filter 180ms ease, stroke-width 180ms ease, opacity 180ms ease;
  animation: chartDraw 1100ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.chart-line {
  stroke: var(--accent);
  stroke-width: 4;
  filter:
    drop-shadow(0 0 10px color-mix(in srgb, var(--scene-color) 26%, transparent))
    drop-shadow(0 0 24px color-mix(in srgb, var(--scene-color) 20%, transparent));
}

.chart-line--compare {
  stroke: var(--compare-accent, rgba(255, 255, 255, 0.62));
  stroke-width: 3;
  opacity: 0.74;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--compare-accent, rgba(255,255,255,0.5)) 24%, transparent));
  animation-delay: 90ms;
}

.viz-card:hover .chart-line,
.viz-card:focus-within .chart-line {
  stroke-width: 4.6;
  filter:
    drop-shadow(0 0 14px color-mix(in srgb, var(--scene-color) 34%, transparent))
    drop-shadow(0 0 34px color-mix(in srgb, var(--scene-color) 28%, transparent));
}

.viz-card:hover .chart-line--compare,
.viz-card:focus-within .chart-line--compare {
  filter:
    drop-shadow(0 0 12px color-mix(in srgb, var(--compare-accent, rgba(255,255,255,0.5)) 34%, transparent))
    drop-shadow(0 0 24px color-mix(in srgb, var(--compare-accent, rgba(255,255,255,0.5)) 20%, transparent));
}

.chart-point {
  fill: rgba(255, 255, 255, 0.94);
  stroke: var(--scene-color);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: chartPointIn 320ms ease forwards;
  animation-delay: var(--point-delay, 240ms);
}

.chart-point--compare {
  stroke: var(--compare-accent, rgba(255, 255, 255, 0.72));
}

.mix-layout {
  display: grid;
  grid-template-columns: minmax(148px, 188px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.mix-donut-wrap {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.mix-donut {
  position: relative;
  width: 144px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--donut, conic-gradient(var(--scene-color) 0deg 220deg, rgba(255,255,255,0.12) 220deg 300deg, rgba(255,255,255,0.05) 300deg 360deg));
  box-shadow:
    inset 0 0 30px rgba(255, 255, 255, 0.06),
    0 0 34px color-mix(in srgb, var(--scene-color) 14%, transparent);
  opacity: 0;
  transform: scale(0.9);
  animation: widgetIn 680ms cubic-bezier(0.2, 0.9, 0.2, 1) 110ms forwards;
}

.mix-donut::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 17, 28, 0.96), rgba(8, 14, 24, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mix-donut__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  z-index: 1;
}

.mix-donut__center strong {
  font-size: 1.18rem;
  line-height: 1;
}

.mix-donut__center span {
  color: var(--soft);
  font-size: 0.62rem;
  margin-top: 6px;
}

.mix-legend {
  display: grid;
  gap: 8px;
}

.mix-legend__item {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.mix-legend__item strong {
  font-size: 0.8rem;
  margin: 0;
}

.mix-legend__item span,
.mix-legend__item p {
  margin: 0;
  color: var(--soft);
  font-size: 0.66rem;
  line-height: 1.5;
}

.mix-legend__swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 8px;
  box-shadow: 0 0 14px currentColor;
}

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

.mini-ring {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  min-height: 112px;
}

.mini-ring__chart {
  position: relative;
  width: 80px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ring, conic-gradient(var(--scene-color) 0deg 180deg, rgba(255,255,255,0.08) 180deg 360deg));
  box-shadow: 0 0 24px color-mix(in srgb, var(--scene-color) 14%, transparent);
  opacity: 0;
  transform: scale(0.92);
  animation: widgetIn 620ms cubic-bezier(0.2, 0.9, 0.2, 1) 180ms forwards;
}

.mini-ring__chart::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: rgba(7, 13, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-ring__value {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.92rem;
  z-index: 1;
}

.mini-ring__meta {
  display: grid;
  gap: 4px;
  text-align: center;
}

.mini-ring__meta strong {
  font-size: 0.74rem;
}

.mini-ring__meta span,
.mini-ring__meta small {
  color: var(--soft);
  font-size: 0.58rem;
}

.event-timeline,
.source-list,
.action-plan {
  display: grid;
  gap: 14px;
}

.event-timeline,
.comparison-bars {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.action-plan {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-card,
.source-card,
.action-card,
.metric-row,
.comparison-bar-card {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(8, 15, 27, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.event-timeline--compact {
  grid-template-columns: 1fr;
}

.event-card--compact {
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
}

.event-card--compact h4 {
  font-size: 0.8rem;
}

.event-card--compact p {
  font-size: 0.72rem;
  line-height: 1.48;
}

.event-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}

.event-card__minute,
.event-card__status {
  color: var(--soft);
  font-size: 0.62rem;
}

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

.event-card__status::before,
.metric-row__dot,
.metric-delta__tone::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

.event-card__status.is-good::before,
.metric-delta__tone.is-positive::before {
  background: var(--good);
  box-shadow: 0 0 18px rgba(153, 239, 203, 0.24);
}

.event-card__status.is-warn::before {
  background: var(--warn);
  box-shadow: 0 0 18px rgba(244, 210, 143, 0.24);
}

.event-card__status.is-bad::before,
.metric-delta__tone.is-negative::before {
  background: var(--bad);
  box-shadow: 0 0 18px rgba(255, 156, 151, 0.24);
}

.event-card h4,
.action-card h4,
.source-card h4 {
  margin: 8px 0 6px;
  font-size: 1rem;
}

.event-card p,
.source-card p,
.action-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.54;
  font-size: 0.92rem;
}

.lab-toolbar {
  margin-bottom: 16px;
  justify-content: flex-start;
  align-items: center;
}

.select-shell {
  display: grid;
  gap: 8px;
}

.select-shell span {
  color: var(--soft);
  font-size: 0.62rem;
}

.select-shell select {
  min-width: 280px;
  padding: 14px 16px;
  border-radius: 18px;
  appearance: none;
}

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

.metric-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.1fr) minmax(130px, 0.8fr) minmax(130px, 0.8fr) minmax(110px, 0.7fr);
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
}

.metric-row__meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.metric-row__dot {
  margin-top: 8px;
  background: linear-gradient(135deg, var(--accent), rgba(255, 255, 255, 0.92));
  box-shadow: 0 0 18px var(--accent-soft);
}

.metric-row__title {
  margin: 0;
  font-weight: 700;
}

.metric-row__help {
  margin-top: 6px;
  color: var(--soft);
  font-size: 0.56rem;
  line-height: 1.55;
}

.metric-input {
  display: grid;
  gap: 8px;
}

.metric-input span {
  color: var(--soft);
  font-size: 0.58rem;
}

.metric-input input {
  width: 100%;
  padding: 14px 14px;
  border-radius: 18px;
  outline: none;
}

.metric-delta {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.metric-delta strong {
  font-size: 1rem;
}

.metric-delta__label,
.metric-delta__tone {
  color: var(--soft);
  font-size: 0.58rem;
}

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

.comparison-bars {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.comparison-bars--dashboard {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comparison-bar-card {
  padding: 12px 14px;
}

.comparison-bar-card__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}

.comparison-bar-card__title {
  margin: 0;
  font-weight: 700;
  font-size: 0.86rem;
}

.comparison-bar-card__delta {
  color: var(--soft);
  font-size: 0.58rem;
}

.comparison-bar-card__tracks {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.compare-track {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 62px;
  gap: 8px;
  align-items: center;
}

.compare-track__label,
.compare-track__value {
  color: var(--soft);
  font-size: 0.64rem;
}

.compare-track__bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
}

.compare-track__fill {
  display: block;
  height: 100%;
  width: var(--bar-fill, 50%);
  border-radius: inherit;
  box-shadow: 0 0 16px color-mix(in srgb, var(--scene-color) 26%, transparent);
  transform-origin: left center;
  transform: scaleX(0);
  animation: barGrow 760ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
  animation-delay: calc(var(--fill-order, 0) * 70ms + 100ms);
}

.compare-track__fill.is-active {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.34), var(--accent));
}

.compare-track__fill.is-comparison {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), var(--compare-accent, rgba(255, 255, 255, 0.56)));
}

.action-plan {
  margin-top: 18px;
}

.action-plan--compact {
  margin-top: 0;
  grid-template-columns: 1fr;
}

.action-card {
  padding: 14px;
}

.action-plan--compact .action-card {
  padding: 12px 14px;
}

.action-plan--compact .action-card h4 {
  margin: 6px 0 4px;
  font-size: 0.84rem;
}

.action-plan--compact .action-card p {
  font-size: 0.72rem;
  line-height: 1.42;
}

.action-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.priority-chip {
  font-size: 0.58rem;
}

.priority-chip.is-high {
  border-color: rgba(255, 156, 151, 0.16);
  color: #ffd4d0;
}

.priority-chip.is-medium {
  border-color: rgba(244, 210, 143, 0.16);
  color: #ffe4b2;
}

.priority-chip.is-low {
  border-color: rgba(153, 239, 203, 0.16);
  color: #d8ffed;
}

.action-card__owner,
.source-card__tag,
.source-card__url {
  color: var(--soft);
  font-size: 0.62rem;
}

.source-card {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.select-shell--compact {
  min-width: 210px;
}

.select-shell--compact select {
  min-width: 210px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.58rem;
}

.guide-popup {
  position: sticky;
  top: calc(var(--detail-header-height) - 2px);
  z-index: 3;
  margin: 0 34px;
  padding: 16px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(7, 13, 22, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.guide-popup[hidden] {
  display: none;
}

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

.guide-card {
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

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

.guide-copy {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.guide-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.session-key {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.6rem;
}

.session-key__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 16px currentColor;
}

.detail-slide--sources {
  min-height: calc(100vh - var(--detail-header-height) - 56px);
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

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

.insight-form--sidebar {
  grid-template-columns: 1fr;
  gap: 10px;
}

.insight-input {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(9, 16, 28, 0.72);
  color: var(--text);
  outline: none;
}

.insight-input:focus-visible {
  border-color: var(--border-strong);
}

.insight-reply {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.insight-reply--panel {
  min-height: 180px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(8, 15, 27, 0.62);
  font-size: 0.82rem;
  line-height: 1.58;
  white-space: pre-wrap;
}

.source-card__url {
  overflow-wrap: anywhere;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.is-visible,
.event-card.is-visible,
.metric-row.is-visible,
.comparison-bar-card.is-visible,
.source-card.is-visible,
.action-card.is-visible {
  opacity: 1;
  transform: none;
}

.event-card,
.metric-row,
.comparison-bar-card,
.source-card,
.action-card {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 420ms ease,
    transform 420ms ease,
    border-color 220ms ease;
}

@keyframes driftA {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(3%, 2%, 0) scale(1.06);
  }
}

@keyframes driftB {
  from {
    transform: translate3d(1%, -2%, 0) scale(1);
  }
  to {
    transform: translate3d(-3%, 3%, 0) scale(1.08);
  }
}

@keyframes driftC {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2%, -3%, 0) scale(1.05);
  }
}

@keyframes sceneIn {
  from {
    opacity: 0;
    transform:
      rotateX(calc(var(--tilt-x, 0deg) + 4deg))
      rotateY(calc(var(--tilt-y, 0deg) - 6deg))
      scale(0.97);
  }
  to {
    opacity: 1;
    transform:
      rotateX(var(--tilt-x, 0deg))
      rotateY(var(--tilt-y, 0deg))
      scale(1);
  }
}

@keyframes shaderFlow {
  from {
    transform: translate3d(-3%, -2%, 0) scale(0.98) rotate(-4deg);
  }
  to {
    transform: translate3d(3%, 2%, 0) scale(1.04) rotate(5deg);
  }
}

@keyframes shaderFlowAlt {
  from {
    transform: translate3d(3%, -3%, 0) scale(1) rotate(0deg);
  }
  to {
    transform: translate3d(-4%, 4%, 0) scale(1.06) rotate(8deg);
  }
}

@keyframes chartDraw {
  0% {
    stroke-dashoffset: 100;
    opacity: 0.2;
  }
  74% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes chartAreaIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 0.8;
    transform: none;
  }
}

@keyframes chartPointIn {
  from {
    opacity: 0;
    transform: scale(0.35);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes barGrow {
  0% {
    transform: scaleX(0);
    filter: brightness(0.88);
  }
  80% {
    transform: scaleX(1);
    filter: brightness(1.22);
  }
  100% {
    transform: scaleX(1);
    filter: brightness(1);
  }
}

@keyframes widgetIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.dashboard-shell--apple {
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 12px;
  align-items: start;
  font-family: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dashboard-shell--apple .dashboard-main {
  display: grid;
  gap: 10px;
}

.dashboard-shell--apple .dashboard-sidebar--chat {
  position: sticky;
  top: calc(var(--detail-header-height) + 4px);
  display: grid;
  gap: 10px;
  align-content: start;
}

.dashboard-shell--apple .eyebrow,
.dashboard-shell--apple .select-shell span,
.dashboard-shell--apple .pill-button,
.dashboard-shell--apple .viz-help,
.dashboard-shell--apple .performance-row__note,
.dashboard-shell--apple .effort-stack__labels,
.dashboard-shell--apple .core-ring__label,
.dashboard-shell--apple .insight-mini-card__tag,
.dashboard-shell--apple .suggested-prompt,
.dashboard-shell--apple .detail-meta--header .fact-chip {
  font-family: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dashboard-panel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    rgba(7, 12, 20, 0.82);
  backdrop-filter: blur(28px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 46px rgba(0, 0, 0, 0.18);
  padding: 13px 14px;
  isolation: isolate;
}

.dashboard-panel::before {
  content: "";
  position: absolute;
  inset: -20% 10% auto auto;
  width: 42%;
  aspect-ratio: 1;
  pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--scene-color) 18%, transparent), transparent 72%);
  filter: blur(26px);
  opacity: 0.22;
}

.dashboard-panel > * {
  position: relative;
  z-index: 1;
}

.dashboard-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.dashboard-panel__head h3 {
  margin: 4px 0 0;
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.dashboard-panel__head--header {
  margin-bottom: 0;
  align-items: center;
}

.dashboard-session-copy {
  display: grid;
  gap: 6px;
  max-width: 520px;
}

.dashboard-session-copy h2 {
  margin: 0;
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.95rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.92);
}

.detail-meta--header {
  gap: 6px;
}

.detail-meta--header .fact-chip {
  padding: 7px 11px;
  font-size: 0.58rem;
}

.dashboard-header-controls {
  display: grid;
  grid-auto-flow: column;
  align-items: start;
  gap: 8px;
}

.dashboard-compare {
  min-width: 214px;
  justify-self: end;
}

.value-mode-toggle {
  min-width: 112px;
  white-space: nowrap;
}

.dashboard-panel--header {
  padding-top: 12px;
  padding-bottom: 12px;
}

.dashboard-panel--metrics {
  padding-top: 11px;
  padding-bottom: 12px;
}

.dashboard-panel--performance,
.dashboard-panel--effort,
.dashboard-panel--timeline {
  padding-top: 11px;
  padding-bottom: 12px;
}

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

.core-ring {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 2px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1), border-color 220ms ease, background 220ms ease;
}

.core-ring:hover,
.core-ring:focus-visible {
  transform: translateY(-2px) scale(1.01);
  border-color: color-mix(in srgb, var(--scene-color) 24%, rgba(255, 255, 255, 0.08));
  background: rgba(255, 255, 255, 0.03);
}

.core-ring__dial {
  position: relative;
  width: 100%;
  max-width: 126px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(7, 12, 20, 0.96) 0%, rgba(7, 12, 20, 0.92) 54%, transparent 55%),
    conic-gradient(from 180deg, var(--ring-color) 0deg var(--ring-deg), rgba(255, 255, 255, 0.08) var(--ring-deg) 360deg);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 22px color-mix(in srgb, var(--ring-color) 16%, transparent);
}

.core-ring__dial::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, color-mix(in srgb, var(--compare-color) 82%, transparent) 0deg var(--compare-deg), rgba(255, 255, 255, 0.04) var(--compare-deg) 360deg);
  opacity: var(--compare-opacity, 0);
  filter: blur(0.2px);
  z-index: 0;
}

.core-ring__dial::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 10, 18, 0.98), rgba(8, 13, 20, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1;
}

.core-ring__center {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
}

.core-ring__label {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.64rem;
  line-height: 1.1;
  max-width: 10ch;
  letter-spacing: 0.08em;
}

.core-ring__value,
.core-ring__compare {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.core-ring__value {
  margin-top: 6px;
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.core-ring__compare {
  margin-top: 2px;
  color: var(--soft);
  font-size: 0.56rem;
}

body[data-value-mode="visible"] .core-ring__value,
body[data-value-mode="visible"] .core-ring__compare,
body[data-value-mode="visible"] .performance-row__numbers strong,
body[data-value-mode="visible"] .performance-row__numbers span,
body[data-value-mode="visible"] .effort-item__value-wrap strong,
body[data-value-mode="visible"] .effort-item__value-wrap span {
  opacity: 1;
  transform: translateY(0);
}

.core-ring:hover .core-ring__value,
.core-ring:hover .core-ring__compare,
.core-ring:focus-visible .core-ring__value,
.core-ring:focus-visible .core-ring__compare {
  opacity: 1;
  transform: translateY(0);
}

.dashboard-dual-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 10px;
}

.performance-bars,
.effort-panel,
.insight-card-grid {
  display: grid;
  gap: 8px;
}

.performance-row,
.effort-item,
.insight-mini-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.025);
}

.performance-row {
  padding: 10px 12px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.performance-row:hover,
.performance-row:focus-visible,
.effort-item:hover,
.effort-item:focus-visible,
.insight-mini-card:hover,
.insight-mini-card:focus-visible {
  border-color: color-mix(in srgb, var(--scene-color) 24%, rgba(255, 255, 255, 0.08));
  transform: translateY(-1px);
}

.performance-row__meta,
.effort-item__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.performance-row__label,
.effort-item__label {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.performance-row__note {
  display: block;
  margin-top: 4px;
  color: var(--soft);
  font-size: 0.56rem;
}

.performance-row__numbers,
.effort-item__value-wrap {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 94px;
}

.performance-row__numbers strong,
.effort-item__value-wrap strong,
.performance-row__numbers span,
.effort-item__value-wrap span {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.performance-row__numbers span,
.effort-item__value-wrap span {
  color: var(--soft);
  font-size: 0.54rem;
}

.performance-row__numbers strong,
.effort-item__value-wrap strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.performance-row:hover .performance-row__numbers strong,
.performance-row:hover .performance-row__numbers span,
.performance-row:focus-visible .performance-row__numbers strong,
.performance-row:focus-visible .performance-row__numbers span,
.effort-item:hover .effort-item__value-wrap strong,
.effort-item:hover .effort-item__value-wrap span,
.effort-item:focus-visible .effort-item__value-wrap strong,
.effort-item:focus-visible .effort-item__value-wrap span {
  opacity: 1;
  transform: translateY(0);
}

.performance-row__track,
.effort-item__track {
  position: relative;
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.performance-row__fill,
.performance-row__compare,
.effort-item__fill,
.effort-item__comparison {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar-fill, 0%);
  border-radius: inherit;
  transform-origin: left center;
  transform: scaleX(0);
  animation: barGrow 860ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
  animation-delay: calc(var(--bar-order, 0) * 70ms + 70ms);
}

.performance-row__fill {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), color-mix(in srgb, var(--bar-color) 94%, rgba(255, 255, 255, 0.08)));
  box-shadow:
    0 0 10px color-mix(in srgb, var(--bar-color) 20%, transparent),
    0 0 18px color-mix(in srgb, var(--bar-color) 12%, transparent);
}

.performance-row__compare {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), color-mix(in srgb, var(--compare-color) 88%, rgba(255, 255, 255, 0.06)));
  opacity: 0.48;
}

.effort-stack {
  display: grid;
  gap: 10px;
}

.effort-stack__labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--soft);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.effort-stack__compare-tag {
  color: color-mix(in srgb, var(--scene-color) 54%, rgba(255, 255, 255, 0.72));
}

.effort-stack__bar {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
}

.effort-stack__bar--compare {
  height: 7px;
  opacity: 0.68;
}

.effort-stack__segment {
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  animation: barGrow 960ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), var(--segment-color));
  box-shadow: 0 0 12px color-mix(in srgb, var(--segment-color) 14%, transparent);
}

.effort-stack__segment.is-correction {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), var(--segment-color));
}

.effort-stack__segment.is-calibration {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), var(--segment-color));
}

.effort-stack__segment.is-hesitation {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), var(--segment-color));
}

.effort-list {
  display: grid;
  gap: 8px;
}

.effort-item {
  padding: 10px 12px;
}

.effort-item__fill {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), var(--effort-color));
  box-shadow: 0 0 14px color-mix(in srgb, var(--effort-color) 18%, transparent);
}

.effort-item__comparison {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), color-mix(in srgb, var(--compare-color) 86%, rgba(255, 255, 255, 0.05)));
  opacity: 0.46;
}

.timeline-sparkline {
  min-height: 92px;
}

.timeline-sparkline svg {
  width: 100%;
  height: auto;
  display: block;
}

.sparkline-area {
  fill: url(#sparklineGlow);
  opacity: 0.24;
}

.sparkline-line {
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter:
    drop-shadow(0 0 6px color-mix(in srgb, var(--scene-color) 24%, transparent))
    drop-shadow(0 0 14px color-mix(in srgb, var(--scene-color) 14%, transparent));
  animation: chartDraw 1100ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.sparkline-line--compare {
  stroke-width: 1.9;
  opacity: 0.58;
}

.sparkline-point {
  fill: rgba(255, 255, 255, 0.96);
  stroke: var(--scene-color);
  stroke-width: 2;
  opacity: 0;
  animation: chartPointIn 320ms ease forwards;
  animation-delay: 420ms;
}

.sparkline-point.is-dip {
  stroke: var(--active-color);
}

.sparkline-point.is-spike {
  stroke: var(--active-color);
}

.insight-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.insight-mini-card {
  display: grid;
  gap: 8px;
  padding: 13px 14px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.insight-mini-card__tag {
  color: var(--soft);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.insight-mini-card strong {
  font-size: 0.86rem;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.insight-mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.insight-mini-card.is-issue {
  box-shadow: inset 0 0 0 1px rgba(255, 156, 151, 0.08);
}

.insight-mini-card.is-observation {
  box-shadow: inset 0 0 0 1px rgba(141, 199, 255, 0.08);
}

.insight-mini-card.is-action {
  box-shadow: inset 0 0 0 1px rgba(153, 239, 203, 0.08);
}

.ai-panel {
  min-height: calc(100vh - var(--detail-header-height) - 22px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-panel__suggestions {
  display: grid;
  gap: 6px;
  margin-bottom: 2px;
}

.suggested-prompt {
  width: 100%;
  text-align: left;
  padding: 10px 11px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.84);
  font: inherit;
  font-size: 0.68rem;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.suggested-prompt:hover,
.suggested-prompt:focus-visible {
  border-color: color-mix(in srgb, var(--scene-color) 24%, rgba(255, 255, 255, 0.08));
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.insight-form--sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.insight-input {
  width: 100%;
  min-height: 42px;
  padding: 11px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.028);
  color: var(--text);
  font: inherit;
}

.insight-reply--panel {
  min-height: 188px;
  margin-top: 10px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.016)),
    rgba(10, 16, 27, 0.78);
  backdrop-filter: blur(18px);
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.68;
  flex: 1;
}

.deep-dive-modal {
  position: fixed;
  inset: 0;
  z-index: 72;
}

.deep-dive-modal[hidden] {
  display: none;
}

.deep-dive-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 10, 0.78);
  backdrop-filter: blur(18px);
}

.deep-dive-modal__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(760px, calc(100vw - 40px));
  max-height: min(80vh, 760px);
  overflow: auto;
  translate: -50% -50%;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    rgba(7, 13, 22, 0.985);
  backdrop-filter: blur(28px);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.42);
}

.deep-dive-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 0.64rem;
}

.deep-dive-modal__panel h3 {
  margin: 6px 0 0;
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.deep-dive-copy {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.82rem;
}

.deep-dive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.deep-dive-metric {
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.024);
}

.deep-dive-metric span {
  color: var(--soft);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.deep-dive-metric strong {
  display: block;
  margin-top: 8px;
  font-size: 0.94rem;
}

.deep-dive-metric p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .landing-topbar {
    right: 24px;
    left: 24px;
    grid-template-columns: 1fr auto;
  }

  .landing-sidecopy {
    left: 24px;
  }

  .landing-index {
    right: 24px;
    width: min(44vw, 360px);
  }

  .voxel-stage {
    width: min(82vw, 900px);
  }

  .voxel-scene {
    width: min(74vw, 760px);
  }

  .detail-panel,
  .dashboard-shell,
  .dashboard-overview,
  .dashboard-grid,
  .detail-slide--sources {
    grid-template-columns: 1fr;
  }

  .dashboard-shell--apple,
  .dashboard-dual-panels,
  .insight-card-grid {
    grid-template-columns: 1fr;
  }

  .viz-card--trend,
  .viz-card--compare {
    grid-column: auto;
  }

  .guide-popup__grid,
  .source-list,
  .action-plan,
  .comparison-bars,
  .comparison-bars--dashboard,
  .event-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-timeline--compact {
    grid-template-columns: 1fr;
  }

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

  .dashboard-shell--apple .dashboard-sidebar--chat {
    position: relative;
    top: auto;
  }

  .core-metrics-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .metric-row {
    grid-template-columns: 1fr 1fr;
  }

  .metric-delta {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .entry-overlay__inner {
    gap: 46px;
  }

  .enter-orb {
    width: 184px;
    height: 184px;
  }

  .landing-topbar {
    top: 16px;
    left: 18px;
    right: 18px;
    gap: 16px;
  }

  .landing-topbar__meta {
    font-size: 0.64rem;
  }

  .connect-popup {
    min-width: min(78vw, 270px);
  }

  .guide-popup {
    margin: 0 18px;
  }

  .guide-popup__grid,
  .source-list,
  .action-plan,
  .comparison-bars,
  .comparison-bars--dashboard,
  .event-timeline {
    grid-template-columns: 1fr;
  }

  .event-timeline--compact {
    grid-template-columns: 1fr;
  }

  .guide-card--wide {
    grid-column: auto;
  }

  .landing-sidecopy {
    top: 92px;
    left: 18px;
  }

  .landing-index {
    top: auto;
    right: 18px;
    left: 18px;
    bottom: 170px;
    width: auto;
  }

  .landing-session-item__title {
    font-size: 0.98rem;
  }

  .voxel-stage {
    width: 100vw;
    height: 76vh;
  }

  .voxel-scene {
    width: min(92vw, 560px);
  }

  .voxel-scene__wall {
    inset: 8% 4%;
  }

  .voxel-scene__ghostcopy {
    left: 10%;
    top: 12%;
    max-width: 50%;
  }

  body[data-stage-mode="scatter"] .voxel-scene__ghostcopy,
  body[data-stage-mode="tilted"] .voxel-scene__ghostcopy {
    top: 6%;
  }

  .voxel-scene__title {
    width: 54%;
  }

  .view-button {
    bottom: 40px;
  }

  .detail-header,
  .detail-panel,
  .detail-slide {
    padding-left: 18px;
    padding-right: 18px;
  }

  .detail-header {
    align-items: flex-start;
  }

  .detail-header-actions {
    width: 100%;
  }

  .detail-shell {
    width: 100%;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .lab-toolbar {
    align-items: stretch;
  }

  .mix-layout,
  .dashboard-shell,
  .dashboard-overview,
  .dashboard-grid,
  .detail-slide--sources,
  .mini-ring-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-shell--apple,
  .dashboard-dual-panels,
  .insight-card-grid,
  .deep-dive-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    grid-template-columns: 1fr;
  }

  .dashboard-panel {
    padding: 14px;
  }

  .dashboard-panel__head--header {
    flex-direction: column;
  }

  .dashboard-compare,
  .select-shell--compact select {
    width: 100%;
    min-width: 0;
  }

  .core-metrics-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insight-form--sidebar {
    grid-template-columns: 1fr;
  }

  .ai-panel {
    min-height: auto;
  }

  .dashboard-card--summary h2 {
    font-size: clamp(2rem, 11vw, 3.1rem);
  }

  .viz-card,
  .dashboard-card {
    padding: 16px;
  }

  .chart-surface--line {
    min-height: 180px;
  }

  .select-shell select {
    min-width: 0;
    width: 100%;
  }

  .select-shell--compact {
    min-width: 0;
    width: 100%;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .metric-delta {
    grid-column: auto;
  }

  .compare-track {
    grid-template-columns: 1fr;
  }

  .insight-form {
    grid-template-columns: 1fr;
  }
}
