/* frontend/react-src/styles.css */
:root {
  --font-sans:
    "Avenir Next",
    "Segoe UI Variable",
    "Trebuchet MS",
    sans-serif;
  --font-display:
    "Iowan Old Style",
    "Palatino Linotype",
    "Book Antiqua",
    Georgia,
    serif;
  --radius-xs: 12px;
  --radius-sm: 18px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --shadow-soft: 0 20px 50px rgba(6, 20, 40, 0.12);
  --shadow-strong: 0 24px 80px rgba(6, 20, 40, 0.18);
}
:root,
:root[data-theme=dark] {
  --bg: #07111f;
  --bg-elevated: rgba(11, 24, 41, 0.82);
  --bg-panel: rgba(14, 30, 50, 0.88);
  --bg-soft: rgba(125, 159, 204, 0.08);
  --line: rgba(151, 185, 226, 0.16);
  --line-strong: rgba(151, 185, 226, 0.28);
  --text: #e8efff;
  --muted: #96a9c7;
  --accent: #7bf0c8;
  --accent-strong: #3fb5ff;
  --accent-warm: #ffb86b;
  --danger: #ff7c7c;
  --success: #64d9a3;
  --warning: #ffcf6e;
  --surface-gradient:
    linear-gradient(
      145deg,
      rgba(21, 38, 62, 0.96),
      rgba(8, 18, 33, 0.92));
  color-scheme: dark;
}
:root[data-theme=light] {
  --bg: #edf3fb;
  --bg-elevated: rgba(255, 255, 255, 0.84);
  --bg-panel: rgba(255, 255, 255, 0.92);
  --bg-soft: rgba(43, 92, 168, 0.06);
  --line: rgba(33, 67, 112, 0.12);
  --line-strong: rgba(33, 67, 112, 0.24);
  --text: #122138;
  --muted: #61708d;
  --accent: #0aa47b;
  --accent-strong: #2479ff;
  --accent-warm: #ba6f0d;
  --danger: #cb4b4b;
  --success: #0e9368;
  --warning: #9a6a0b;
  --surface-gradient:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.98),
      rgba(240, 246, 255, 0.9));
  --shadow-soft: 0 20px 50px rgba(28, 49, 84, 0.10);
  --shadow-strong: 0 30px 90px rgba(28, 49, 84, 0.14);
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(63, 181, 255, 0.22),
      transparent 24%),
    radial-gradient(
      circle at 85% 12%,
      rgba(123, 240, 200, 0.15),
      transparent 22%),
    radial-gradient(
      circle at 50% 120%,
      rgba(255, 184, 107, 0.12),
      transparent 26%),
    var(--bg);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.028) 1px,
      transparent 1px);
  background-size: 56px 56px;
  mask-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.5),
      transparent 78%);
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
#root {
  min-height: 100vh;
}
.auth-shell,
.auth-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-shell__panel {
  width: min(1040px, 100%);
  display: grid;
  gap: 20px;
}
.auth-loading {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.3rem;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(1.8rem, 2.6vw, 2.45rem);
}
h2 {
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
}
h3 {
  font-size: 1.1rem;
}
.eyebrow,
.stat-card__label,
th,
.tiny,
.brand-card__label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--muted);
}
.studio-shell {
  position: relative;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  min-height: 100vh;
  padding: 24px;
  align-items: start;
}
.studio-shell__ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(16px);
  pointer-events: none;
}
.studio-shell__ambient--one {
  inset: auto auto 4% 2%;
  width: 22rem;
  height: 22rem;
  background:
    radial-gradient(
      circle,
      rgba(63, 181, 255, 0.18),
      transparent 65%);
}
.studio-shell__ambient--two {
  inset: 8% 2% auto auto;
  width: 18rem;
  height: 18rem;
  background:
    radial-gradient(
      circle,
      rgba(123, 240, 200, 0.16),
      transparent 65%);
}
.studio-sidebar,
.studio-topbar,
.page-hero,
.panel,
.stat-card,
.brand-card,
.sidebar-card,
.feed-card,
.feature-card,
.empty-state,
.message,
.detail-json,
.hero-stat,
.meter-card {
  border: 1px solid var(--line);
  background: var(--surface-gradient);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
}
.tab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.tab-strip__button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 0.8rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: 180ms ease;
}
.tab-strip__button:hover {
  border-color: var(--line-strong);
  color: var(--text);
}
.tab-strip__button--active {
  background:
    linear-gradient(
      135deg,
      rgba(123, 240, 200, 0.18),
      rgba(63, 181, 255, 0.2));
  border-color: rgba(123, 240, 200, 0.4);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(123, 240, 200, 0.12);
}
.studio-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  display: grid;
  gap: 18px;
  min-width: 0;
}
.brand-card,
.sidebar-card,
.studio-topbar,
.page-hero,
.panel {
  border-radius: var(--radius-md);
  padding: 22px;
}
.brand-card {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.brand-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.studio-nav {
  display: grid;
  gap: 10px;
}
.studio-nav__item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
  min-width: 0;
}
.studio-nav__item > span:last-child {
  min-width: 0;
}
.studio-nav__item strong,
.studio-nav__item small {
  display: block;
  overflow-wrap: anywhere;
}
.studio-nav__item:hover,
.studio-nav__item--active {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(123, 240, 200, 0.08);
}
.studio-nav__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background:
    linear-gradient(
      145deg,
      rgba(123, 240, 200, 0.18),
      rgba(63, 181, 255, 0.18));
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.studio-nav small,
.studio-topbar p,
.page-hero p,
.panel__subtitle,
.sidebar-note,
.feature-card p,
.feed-card p,
.meter-card p {
  color: var(--muted);
}
.sidebar-card {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.sidebar-card__title,
.panel__header,
.feed-card__row,
.context-strip,
.studio-topbar,
.hero-actions,
.hero-stats,
.inline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.field {
  display: grid;
  gap: 8px;
}
.field span {
  color: var(--muted);
  font-size: 0.84rem;
}
.context-strip {
  align-items: stretch;
  gap: 10px;
}
.context-strip > div {
  flex: 1;
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
.context-strip span {
  color: var(--muted);
  font-size: 0.78rem;
}
.studio-main {
  display: grid;
  align-content: start;
  gap: 22px;
  min-width: 0;
}
.studio-topbar {
  position: sticky;
  top: 24px;
  z-index: 4;
  border-radius: var(--radius-md);
  min-width: 0;
}
.studio-topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}
.status-pill {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  min-width: 120px;
  border-radius: 999px;
  background: var(--bg-soft);
  text-align: left;
}
.status-pill span {
  font-size: 0.72rem;
  color: var(--muted);
}
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.95fr);
  gap: 20px;
  overflow: hidden;
  align-items: start;
}
.page-hero__copy {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  min-width: 0;
}
.hero-stat {
  border-radius: var(--radius-sm);
  padding: 16px;
  display: grid;
  gap: 6px;
}
.hero-stat span,
.hero-stat small {
  color: var(--muted);
}
.hero-stat strong {
  font-size: 1.35rem;
  font-family: var(--font-display);
}
.grid {
  display: grid;
  gap: 18px;
}
.grid--stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stack {
  display: grid;
  gap: 16px;
}
.compact {
  gap: 10px;
}
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.segmented-control {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}
.panel {
  border-radius: var(--radius-md);
  display: grid;
  gap: 18px;
  min-width: 0;
}
.panel--warning {
  border-color: rgba(255, 207, 110, 0.22);
}
.stat-card {
  border-radius: var(--radius-sm);
  padding: 18px;
  display: grid;
  gap: 8px;
  min-width: 0;
}
.stat-card__value {
  font-size: 1.45rem;
  font-family: var(--font-display);
}
.stat-card__detail {
  color: var(--muted);
  font-size: 0.92rem;
}
.stat-card--warning .stat-card__value {
  color: var(--accent-warm);
}
.stat-card--success .stat-card__value {
  color: var(--accent);
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
}
.badge--success {
  color: var(--success);
  border-color: rgba(100, 217, 163, 0.28);
}
.badge--warning {
  color: var(--warning);
  border-color: rgba(255, 207, 110, 0.32);
}
.button,
input,
select,
textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  width: auto;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
  white-space: normal;
  text-align: center;
}
.button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}
.button--primary {
  border-color: rgba(63, 181, 255, 0.34);
  background:
    linear-gradient(
      135deg,
      rgba(63, 181, 255, 0.88),
      rgba(20, 111, 255, 0.76));
  color: #fff;
}
.button--secondary {
  border-color: rgba(123, 240, 200, 0.34);
  background: rgba(123, 240, 200, 0.10);
}
.button--ghost {
  background: transparent;
}
input,
select,
textarea {
  min-height: 48px;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
textarea {
  min-height: 120px;
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.checkbox input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
}
.table-shell {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}
th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
th {
  background: rgba(255, 255, 255, 0.03);
}
tbody tr:hover {
  background: rgba(123, 240, 200, 0.04);
}
.feed-card,
.feature-card {
  padding: 16px;
  border-radius: var(--radius-sm);
  min-width: 0;
}
.message {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  color: var(--text);
}
.message--warning {
  border-color: rgba(255, 124, 124, 0.28);
}
.empty-state {
  padding: 18px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-align: center;
}
.detail-json {
  padding: 16px;
  border-radius: var(--radius-sm);
}
.detail-json summary {
  cursor: pointer;
  color: var(--text);
}
.detail-json pre {
  margin: 14px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--muted);
}
.meter-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-sm);
}
.meter-card__ring {
  --progress: 0%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at center,
      var(--bg-panel) 55%,
      transparent 56%),
    conic-gradient(var(--accent-strong) var(--progress), rgba(255, 255, 255, 0.08) 0);
  box-shadow: inset 0 0 0 1px var(--line);
}
.meter-card__ring span {
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.bar-list {
  display: grid;
  gap: 12px;
}
.bar-row {
  display: grid;
  gap: 8px;
}
.bar-row__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.bar-row__track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.bar-row__fill {
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      var(--accent),
      var(--accent-strong));
}
.chart-card {
  display: grid;
  gap: 10px;
}
.area-chart {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px),
    rgba(255, 255, 255, 0.02);
  background-size: 22px 22px;
}
.area-chart__fill {
  fill: rgba(63, 181, 255, 0.18);
}
.area-chart__line {
  fill: none;
  stroke: var(--accent-strong);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-card__labels {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}
.timeline {
  display: grid;
  gap: 14px;
}
.timeline__item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.timeline__item > div,
.hero-stat,
.context-strip > div,
.status-pill,
.field,
.kv-list__row,
.bar-row__meta {
  min-width: 0;
}
.hero-stat strong,
.kv-list__row strong,
.bar-row__meta strong,
.feed-card strong,
.feature-card strong,
.panel__header h3,
.page-hero h2,
.studio-topbar h2,
.brand-card h1 {
  overflow-wrap: anywhere;
}
.timeline__dot {
  position: relative;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent-strong));
  box-shadow: 0 0 0 6px rgba(63, 181, 255, 0.08);
}
.timeline p,
.timeline small {
  color: var(--muted);
}
.kv-list {
  display: grid;
  gap: 12px;
}
.kv-list__row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.kv-list__row span {
  color: var(--muted);
}
@media (max-width: 1200px) {
  .studio-shell {
    grid-template-columns: 1fr;
  }
  .studio-sidebar,
  .studio-topbar {
    position: static;
  }
  .page-hero,
  .grid--two,
  .grid--three,
  .grid--stats {
    grid-template-columns: 1fr 1fr;
  }
  .page-hero {
    align-items: stretch;
  }
}
@media (max-width: 800px) {
  .studio-shell {
    padding: 16px;
    gap: 18px;
  }
  .studio-topbar,
  .page-hero,
  .sidebar-card__title,
  .panel__header,
  .hero-actions,
  .hero-stats,
  .inline-actions,
  .context-strip,
  .split,
  .studio-topbar__actions {
    display: grid;
  }
  .studio-nav__item {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .studio-nav__step {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
  .page-hero,
  .grid--two,
  .grid--three,
  .grid--stats {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .button {
    width: 100%;
  }
  table {
    min-width: 540px;
  }
}
.health-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(
      135deg,
      rgba(123, 240, 200, 0.1),
      rgba(63, 181, 255, 0.1));
  border: 1px solid var(--line-strong);
}
.health-card__content {
  flex: 1;
  display: grid;
  gap: 12px;
}
.health-card__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}
.health-card__copy {
  font-size: 1.05rem;
  color: var(--text);
  opacity: 0.9;
}
.health-card__meta {
  font-size: 0.85rem;
  color: var(--muted);
}
.health-card__grade {
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--surface-gradient);
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent);
  box-shadow: var(--shadow-strong);
}
.health-card__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.health-card__signal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.health-card__signal--warning {
  border-color: rgba(255, 207, 110, 0.3);
  color: var(--warning);
}
.health-card__signal--success {
  border-color: rgba(100, 217, 163, 0.3);
  color: var(--success);
}
.stat-card__meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}
.table-shell--compact th,
.table-shell--compact td {
  padding: 10px 12px;
  font-size: 0.88rem;
}
.button--secondary:hover {
  background: rgba(123, 240, 200, 0.16);
}
.inline-actions {
  justify-content: flex-start;
}
.chart-card {
  height: 240px;
  position: relative;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}
.area-chart {
  width: 100%;
  height: 100%;
}
.area-chart__fill {
  fill: var(--accent);
  opacity: 0.1;
}
.area-chart__line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
}
.scatter-chart {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.scatter-chart__dot {
  fill: var(--accent);
  stroke: var(--bg);
  stroke-width: 0.5;
  transition: r 0.2s ease, opacity 0.2s ease;
}
.scatter-chart__dot:hover {
  r: 4;
  opacity: 1;
  fill: var(--accent-strong);
}
.chart-card__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}
@keyframes pulse-ring {
  0% {
    transform: scale(0.33);
    opacity: 0;
  }
  80%, 100% {
    opacity: 0;
  }
}
@keyframes pulse-circle {
  0% {
    transform: scale(0.1);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 0.2;
  }
}
.neural-pulse-container {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      circle,
      var(--accent-alpha) 0%,
      transparent 70%);
  overflow: hidden;
}
.pulse-ring {
  position: absolute;
  border: 2px solid var(--accent);
  border-radius: 50%;
  height: 100%;
  width: 100%;
  animation: pulse-ring 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.pulse-circle {
  position: relative;
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 40px var(--accent);
  animation: pulse-circle 2s ease-in-out infinite;
}
.fluid-wave {
  fill: var(--accent);
  opacity: 0.3;
  animation: wave-drift 10s linear infinite;
}
@keyframes wave-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.heatmap {
  margin-top: 16px;
  overflow-x: auto;
}
.heatmap__grid {
  display: grid;
  gap: 2px;
  min-width: 400px;
}
.heatmap__label {
  font-size: 0.7rem;
  color: var(--muted);
  padding: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.heatmap__label--x {
  text-align: center;
  transform: rotate(-45deg);
  height: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.heatmap__label--y {
  text-align: right;
  display: flex;
  align-items: center;
  padding-right: 8px;
}
.heatmap__cell {
  aspect-ratio: 1;
  border-radius: 2px;
  min-height: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: help;
}
.heatmap__cell:hover {
  transform: scale(1.2);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.neural-pulse {
  animation: neural-pulse 2s infinite;
}
@keyframes neural-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(63, 181, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(63, 181, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(63, 181, 255, 0);
  }
}
.sensitivity-glow {
  position: relative;
}
.sensitivity-glow::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 8px var(--glow-color, var(--accent));
  opacity: var(--glow-intensity, 0);
  transition: opacity 0.3s ease;
}
.lineage-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 10px 0;
}
.lineage-step {
  display: flex;
  gap: 20px;
}
.lineage-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 24px;
}
.lineage-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line);
  border: 2px solid var(--bg);
  position: relative;
  z-index: 2;
  margin-top: 24px;
}
.lineage-dot--data {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-alpha);
}
.lineage-dot--job {
  background: var(--warning);
  box-shadow: 0 0 10px rgba(255, 180, 0, 0.4);
}
.lineage-line {
  width: 2px;
  flex-grow: 1;
  background:
    linear-gradient(
      to bottom,
      var(--line),
      transparent);
  margin: -4px 0;
}
.lineage-content {
  flex-grow: 1;
  padding-bottom: 24px;
}
.lineage-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
}
.lineage-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-strong);
  transform: translateX(4px);
}
.lineage-card__title {
  display: block;
  font-size: 1rem;
  margin: 4px 0;
}
.lineage-card__detail {
  color: var(--text-dim);
}
