/* Author: Yogabrata Mukhopadhyay
   Organization: Brahmexa
   Copyright (c) 2026 Brahmexa. All rights reserved. */

:root {
  --ink: var(--text);
  --bg-2: var(--bg-soft);
  --line: var(--border);
  --gold: var(--manju-gold, #d4b46a);
  --gold-2: var(--accent-2, #f0d89a);
  --allow: #6fd3b0;
  --hold: #e0a45c;
  --block: #e07a7a;
  --syn: var(--cyan-light, #7eb6ff);
  --core: var(--cyan-light, #7ee0ff);
  --surface: color-mix(in srgb, var(--panel) 94%, var(--bg-soft));
  --surface-raised: color-mix(in srgb, var(--panel) 97%, var(--text) 3%);
  --surface-inset: color-mix(in srgb, var(--bg-soft) 88%, var(--bg));
  --on-accent: #071018;
  --surface-shadow: rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font: 15px/1.55 Inter, system-ui, sans-serif;
}
button, input, select, textarea { font: inherit; }

#cosmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}
.mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
}
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: ym-float 8s ease-in-out infinite;
}
.orb-cyan { width: 320px; height: 320px; background: rgba(6, 182, 212, 0.18); top: 12%; left: -8%; }
.orb-gold { width: 260px; height: 260px; background: rgba(212, 180, 106, 0.16); top: 8%; right: -5%; animation-delay: -3s; }

.ym-banner {
  position: sticky;
  top: 0.55rem;
  z-index: 40;
  width: min(42rem, calc(100% - 2rem));
  margin: 0 auto;
  text-align: center;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.68rem;
  padding: 0.42rem 1.2rem;
  border-radius: 999px;
  background: rgba(26, 20, 8, 0.82);
  color: var(--gold-2);
  border: 1px solid rgba(212, 180, 106, 0.4);
  backdrop-filter: blur(12px);
}

.atlas-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 2.4rem);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.6rem 1.2rem 3rem;
}
.atlas-constellation {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  padding: 0.35rem 0 0.7rem;
}
.atlas-mark { display: grid; gap: 0.2rem; justify-items: center; }
.atlas-mark__orb { width: 72px; height: 72px; margin-bottom: 0.1rem; }
.ym-orb-ring { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-dasharray: 8 6; transform-origin: 32px 32px; animation: ym-spin 18s linear infinite; }
.ym-orb-core { fill: var(--core); filter: drop-shadow(0 0 10px var(--core)); animation: ym-pulse 2.4s ease-in-out infinite; }
.ym-orb-sat { fill: var(--gold); animation: ym-orbit-dot 6s linear infinite; transform-origin: 32px 32px; }
.atlas-mark__name { display: block; letter-spacing: 0.32em; font-size: 0.78rem; color: var(--gold); font-weight: 600; }
.atlas-mark__title { display: block; font-size: 1.05rem; margin-top: 0.25rem; line-height: 1.3; font-weight: 600; }
.atlas-mark__sub { display: block; color: var(--muted); font-size: 0.85rem; margin: 0.15rem 0 0.45rem; }
.atlas-rail__foot { margin: 0; color: var(--muted); font-size: 0.78rem; max-width: 28rem; }

.atlas-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  max-width: 52rem;
}
.atlas-nav a {
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  padding: 0.35rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 58%),
    var(--surface);
  box-shadow: inset 0 0 18px color-mix(in srgb, var(--accent) 10%, transparent);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.atlas-nav a:hover {
  transform: scale(1.08);
  border-color: rgba(212, 180, 106, 0.55);
}
.atlas-nav a.is-on {
  color: var(--gold-2);
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(212, 180, 106, 0.28), inset 0 0 18px rgba(126, 224, 255, 0.12);
}

.atlas-main { min-width: 0; padding: 0; }
.atlas-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.4rem 0 1.1rem;
}
.atlas-top > div:first-child { text-align: left; }
.eyebrow { letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-size: 0.7rem; margin: 0; font-weight: 600; }
h1 { font-weight: 600; font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 0.2rem 0 0; }
.ym-session { display: flex; gap: 0.7rem; align-items: center; }
.ym-login-wrap summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.82rem;
  list-style: none;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
  padding: 0.3rem;
}
.ym-login-wrap summary::-webkit-details-marker { display: none; }
.login-form { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-top: 0.6rem; justify-content: flex-end; }
.login-form input {
  background: var(--surface-inset);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}
.login-form button, .ym-cta, .ym-btn, form.stack button, .ym-ask form button {
  background: var(--gold);
  color: var(--on-accent);
  border: 0;
  padding: 0.5rem 1.15rem;
  cursor: pointer;
  letter-spacing: 0.04em;
  border-radius: 999px;
  font-weight: 600;
}
.ym-cta { margin-top: 0.7rem; font-weight: 700; }
.ym-btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.ym-btn.syn {
  background: transparent;
  color: var(--syn);
  border: 1px solid rgba(126, 182, 255, 0.4);
}
.muted { color: var(--muted); }
.pill {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
}
.pill-syn { color: var(--syn); border-color: rgba(126, 182, 255, 0.45); }
.pill-engine { color: var(--allow); border-color: rgba(111, 211, 176, 0.4); }
.pill-ai { color: var(--gold); border-color: rgba(212, 180, 106, 0.45); }

.grid, .portal-grid, .proof-q {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.1rem, 3vw, 2.2rem);
  justify-content: center;
  align-items: center;
  margin-top: 1.2rem;
}

.portal, .persona, .ym-card {
  position: relative;
  width: min(240px, 78vw);
  height: min(240px, 78vw);
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  text-align: center;
  cursor: pointer;
  font: inherit;
  display: block;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.persona:hover, .portal:hover { transform: scale(1.06); }
.persona h2, .ym-card h2 { margin: 0.15rem 0; font-size: 0.98rem; font-weight: 700; }
.portal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 38%, transparent) 0%, color-mix(in srgb, var(--gold) 14%, transparent) 52%, transparent 72%);
  box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 30%, transparent), inset 0 0 40px color-mix(in srgb, var(--gold) 16%, transparent);
  animation: portalPulse 3.2s ease-in-out infinite;
}
.portal-orbit {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  animation: orbitSpin 18s linear infinite;
}
.portal-orbit::before,
.portal-orbit::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}
.portal-orbit::before { top: 0; left: 50%; transform: translate(-50%, -50%); }
.portal-orbit::after { bottom: 0; left: 50%; transform: translate(-50%, 50%); }
.portal-core {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.85rem;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 180, 106, 0.35);
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface-raised) 82%, var(--accent)), var(--surface));
  animation: coreBreath 4s ease-in-out infinite;
  overflow: hidden;
}
.portal-title {
  font-size: clamp(0.88rem, 2.2vw, 1.05rem);
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.2;
}
.portal-sub {
  font-size: 0.68rem;
  color: rgba(226, 232, 240, 0.78);
  margin-top: 0.35rem;
  letter-spacing: 0.03em;
  line-height: 1.3;
  max-height: 4.2em;
  overflow: hidden;
}
.portal--compact {
  width: min(168px, 42vw);
  height: min(168px, 42vw);
}
.portal--compact .portal-title { font-size: 0.78rem; font-weight: 600; }
.portal--source {
  width: min(22rem, 92vw);
  height: auto;
  min-height: 16rem;
  padding: 1rem;
  cursor: default;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--surface);
}
.portal--source .portal-ring,
.portal--source .portal-orbit,
.portal--source .portal-core { border-radius: 1.15rem; }
.portal--source .portal-orbit { inset: 0.55rem; animation: none; }
.portal--source .portal-orbit::before,
.portal--source .portal-orbit::after { display: none; }
.portal--source .portal-core {
  position: relative;
  inset: auto;
  min-height: 14rem;
  overflow: visible;
}
.portal--source .portal-sub { max-height: none; overflow: visible; }
.portal--source:hover { transform: scale(1.03); }

.score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1rem 0;
  justify-content: center;
}
.meter {
  width: 7.6rem;
  height: 7.6rem;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.55rem;
  font-size: 0.68rem;
  line-height: 1.2;
  color: var(--muted);
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--accent) 18%, transparent), var(--surface) 68%);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 18px rgba(126, 224, 255, 0.08);
}
.meter b { display: block; font-size: 1.35rem; font-weight: 600; color: var(--ink); margin-bottom: 0.15rem; }
.allow { color: var(--allow); }
.hold { color: var(--hold); }
.block { color: var(--block); }
.meter.allow { border-color: rgba(111, 211, 176, 0.45); }
.meter.hold { border-color: rgba(224, 164, 92, 0.5); }
.meter.block { border-color: rgba(224, 122, 122, 0.5); }

.timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin: 1rem 0 0;
  padding: 0;
}
.timeline li {
  list-style: none;
  width: min(12rem, 80vw);
  min-height: 5.4rem;
  border-radius: 1.25rem;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.85rem;
}

form.stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 28rem;
  margin: 1rem auto 0;
  padding: 1.4rem 1.5rem;
  border-radius: 2.4rem;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 12%, transparent), var(--surface) 55%);
}
form.stack label { display: grid; gap: 0.2rem; color: var(--muted); font-size: 0.85rem; }
form.stack input, form.stack select, form.stack textarea {
  background: var(--surface-inset);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
}
form.stack textarea { border-radius: 1.4rem; min-height: 5rem; }
pre.out {
  white-space: pre-wrap;
  background: var(--surface-inset);
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  overflow: auto;
  max-height: 22rem;
  font-size: 0.78rem;
  border-radius: 1rem;
}
.findings { color: var(--hold); }
.flow, .pipe, .ym-pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
}
.flow span, .pipe .node, .ym-pipeline .step {
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.15;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--accent) 16%, transparent), var(--surface) 70%);
  position: relative;
}
.flow span.on, .pipe .node.is-on, .ym-pipeline .step.on {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 14px rgba(212, 180, 106, 0.25);
}
.flow span.on::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--gold);
  animation: ym-flash 0.7s ease;
}
.pipe .node.inference { border-style: dashed; }
.pipe .arrow { color: var(--muted); font-size: 0.9rem; }
.ym-pipeline .step { min-width: 0; flex: 0 0 auto; }
.ym-pipeline .step.held { border-color: var(--hold); color: var(--hold); }
.ym-pipeline .step.stop { border-color: var(--block); color: var(--block); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--on-accent); padding: 0.4rem 0.8rem; z-index: 20; border-radius: 999px; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.portal:focus-visible, .persona:focus-visible, .atlas-nav a:focus-visible {
  outline-offset: 6px;
  border-radius: 50%;
}
.risk-text { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }
.proof-hero { margin: 1.2rem 0 0.4rem; text-align: center; }
.proof-hero h2 { font-weight: 500; font-size: 1.35rem; margin: 0.2rem 0; }
.proof-q button {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.proof-q button:hover, .proof-q button[aria-pressed="true"] { }
.proof-q button[aria-pressed="true"] .portal-ring {
  box-shadow: 0 0 70px rgba(212, 180, 106, 0.45), inset 0 0 40px rgba(126, 224, 255, 0.2);
}
.ledger {
  font-variant-numeric: tabular-nums;
  max-width: 22rem;
  margin: 1rem auto;
  min-height: 0;
  display: grid;
  align-content: center;
  padding: 1.4rem 1.6rem;
  border-radius: 1.35rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.ledger div { display: flex; justify-content: space-between; padding: 0.28rem 0; }
.ask-list { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center; }
.ask-list button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--syn);
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  border-radius: 999px;
}

.ym-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.6rem;
}
.ym-hero > div {
  max-width: 28rem;
  text-align: center;
}
.ym-hero p { font-size: 1.02rem; }
.ym-hero svg {
  width: min(380px, 88vw);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 46%, #123047, #071018 72%);
  border: 1px solid rgba(126, 224, 255, 0.22);
  box-shadow: 0 0 40px rgba(126, 224, 255, 0.12);
}
.ym-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; justify-content: center; }
.ym-term { color: var(--muted); font-size: 0.9rem; }
.ym-term b { color: var(--gold); font-weight: 600; }
.ym-choose { margin-top: 1.2rem; text-align: center; }
.ym-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1rem 0;
  justify-content: center;
}
.ym-reason {
  width: min(13rem, 88vw);
  min-height: 8.6rem;
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.2rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 32%, color-mix(in srgb, var(--accent) 14%, transparent), var(--surface) 68%);
  font-size: 0.72rem;
  line-height: 1.25;
}
.ym-reason .delta { font-variant-numeric: tabular-nums; font-weight: 700; }
.ym-reason.up .delta { color: var(--block); }
.ym-reason.down .delta { color: var(--allow); }
.ym-split {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin: 1.2rem 0;
  justify-content: center;
}
.ym-split article {
  width: min(30rem, 100%);
  min-height: 12rem;
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: visible;
  background: radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--accent) 16%, transparent), var(--surface) 62%);
}
.ym-split article h3 { margin: 0 0 0.4rem; font-size: 0.95rem; }
.ym-ask {
  margin: 1.6rem auto 0;
  max-width: 36rem;
  border: 1px solid var(--line);
  padding: 1.4rem 1.3rem 1.2rem;
  background: radial-gradient(circle at 50% 0%, rgba(126, 224, 255, 0.12), var(--panel) 48%);
  border-radius: 1.4rem;
  text-align: center;
}
.ym-chat {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}
.ym-bubble {
  width: min(92%, 32rem);
  min-height: 0;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  text-align: left;
  overflow: visible;
  font-size: 0.82rem;
  line-height: 1.55;
  background: var(--surface-raised);
}
.ym-bubble.engine {
  justify-self: start;
  border-color: color-mix(in srgb, var(--allow) 48%, var(--line));
  border-top-left-radius: 0.25rem;
  background: color-mix(in srgb, var(--surface-raised) 93%, var(--allow));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--allow) 12%, transparent);
}
.ym-bubble.ai {
  justify-self: end;
  border-color: color-mix(in srgb, var(--gold) 48%, var(--line));
  border-top-right-radius: 0.25rem;
  background: color-mix(in srgb, var(--surface-raised) 93%, var(--gold));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--gold) 12%, transparent);
}
.ym-bubble p { margin: 0.65rem 0 0; }
.ym-bubble ul { margin: 0.65rem 0; padding-left: 1.2rem; }
.ym-bubble li + li { margin-top: 0.35rem; }
.ym-ask form { display: flex; gap: 0.4rem; margin-top: 0.6rem; }
.ym-ask input {
  flex: 1;
  background: var(--surface-inset);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
}
details.ym-tech { margin-top: 1.2rem; color: var(--muted); text-align: center; }
details.ym-tech summary { cursor: pointer; color: var(--syn); }
.ym-runner-stage > details.ym-tech {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--surface-inset);
}
.ym-runner-evidence { padding: 0.8rem 0 0.25rem; }
.ym-runner-evidence > h3 { margin: 0 0 0.8rem; color: var(--ink); font-size: 0.9rem; }
.ym-evidence-path {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 auto 1rem;
}
.ym-evidence-node {
  width: 10.5rem;
  min-height: 9rem;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  padding: 0.75rem;
  color: var(--ink);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface-raised);
}
.ym-evidence-node__icon {
  width: 2.65rem;
  height: 2.65rem;
  display: grid;
  place-items: center;
  color: var(--gold-2);
  font-size: 0.5rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  border: 1px dashed var(--gold);
  border-radius: 50%;
  background: var(--surface-inset);
}
.ym-evidence-node small {
  color: var(--muted);
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ym-evidence-node strong { max-width: 100%; overflow-wrap: anywhere; font-size: 0.75rem; }
.ym-evidence-node em { color: var(--muted); font-size: 0.56rem; font-style: normal; line-height: 1.25; }
.ym-evidence-arrow { color: var(--gold); font-size: 1.2rem; }
.ym-raw-evidence {
  margin: 1rem 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}
.ym-raw-evidence > summary {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
}
.ym-raw-evidence pre.out {
  margin: 0.8rem 0 0;
  color: var(--ink);
  text-align: left;
  line-height: 1.5;
}

.ym-graph-wrap {
  position: relative;
  margin: 0.8rem auto 1.2rem;
  width: min(520px, 92vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(126, 224, 255, 0.22);
  box-shadow: 0 0 42px rgba(126, 224, 255, 0.12);
}
svg.ym-graph {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 46%, #152038, #071018 72%);
  display: block;
}
.ym-graph-hint { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); font-size: 0.72rem; color: var(--muted); text-align: center; width: 70%; }
.ym-graph-card {
  margin: 0.7rem auto 0;
  max-width: 28rem;
  min-height: 3rem;
  border: 1px solid var(--line);
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  text-align: center;
  background: var(--surface);
}

.ym-story { display: grid; gap: 1rem; margin-top: 1rem; justify-items: center; }
.ym-story__stage {
  position: relative;
  width: min(720px, 94vw);
  aspect-ratio: 1.55;
  border-radius: 50% / 42%;
  border: 1px solid rgba(126, 224, 255, 0.22);
  background: radial-gradient(circle at 50% 45%, #123047, #071018 70%);
  overflow: hidden;
  box-shadow: 0 0 48px rgba(126, 224, 255, 0.12);
}
.ym-story__stage svg { width: 100%; height: 100%; display: block; }
.ym-story__copy { text-align: center; max-width: 40rem; }
.ym-story__copy h2 { font-weight: 600; margin: 0 0 0.35rem; }
.ym-story__controls { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.ym-dots { display: flex; gap: 0.35rem; align-items: center; }
.ym-dots button {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 0;
  background: color-mix(in srgb, var(--muted) 72%, var(--surface));
  padding: 0;
  cursor: pointer;
}
.ym-dots button.on { background: var(--gold); box-shadow: 0 0 8px var(--gold); }

.ym-sig { fill: none; stroke: var(--syn); stroke-width: 1.6; stroke-dasharray: 6 8; animation: ym-dash 1.2s linear infinite; }
.ym-sig.gold { stroke: var(--gold); }
.ym-sig.risk { stroke: var(--hold); }
.ym-packet { fill: var(--core); filter: drop-shadow(0 0 6px var(--core)); animation: ym-pulse 1s ease-in-out infinite; }
.ym-core-glow { fill: var(--core); opacity: 0.25; animation: ym-pulse 2s ease-in-out infinite; }
.ym-pay-card { fill: #102033; stroke: var(--gold); stroke-width: 1.2; }
.ym-stop { fill: none; stroke: var(--block); stroke-width: 3; }
.ym-link-on { stroke: var(--gold); stroke-width: 2; animation: ym-dash 1.4s linear infinite; stroke-dasharray: 5 7; }
.ym-node-pop { animation: ym-pop 0.45s ease both; }
.ym-score-anim b, .ym-score-anim { display: inline-block; animation: ym-count 0.6s ease both; }

.ym-overview-hero {
  max-width: 54rem;
  margin: 0 auto 1.6rem;
  text-align: center;
  padding: clamp(1.4rem, 4vw, 2.8rem);
  border: 1px solid rgba(126, 224, 255, 0.22);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 48%),
    var(--surface);
  box-shadow: 0 0 48px color-mix(in srgb, var(--accent) 12%, transparent);
}
.ym-overview-lead {
  margin: 1rem auto 0.6rem;
  max-width: 47rem;
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  line-height: 1.45;
  color: var(--ink);
}
.ym-overview-hero .ym-actions a,
.ym-choice-prompt a,
.ym-architecture-grid + .ym-actions a,
details.ym-tech a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.ym-capability-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  max-width: 58rem;
  margin: 0 auto 2rem;
}
.ym-capability-pair article {
  position: relative;
  min-height: 14rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  border-radius: 1.75rem;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--accent) 18%, transparent), var(--surface) 64%);
  box-shadow: inset 0 0 36px color-mix(in srgb, var(--accent) 10%, transparent);
}
.ym-capability-pair h2 { margin: 0.3rem 0 0.5rem; font-size: 1.1rem; }
.ym-capability-pair p { margin: 0; font-size: 0.88rem; }
.ym-capability-index {
  color: var(--gold);
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}
.ym-system-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.38rem;
  max-width: 67rem;
  margin: 1.2rem auto 2rem;
}
.ym-system-flow span {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.7rem;
  text-align: center;
}
.ym-system-flow b { color: var(--gold); font-weight: 500; }
.ym-system-flow--large { margin-top: 1.8rem; }
.ym-system-flow--large span { min-height: 4rem; max-width: 8.5rem; }
.ym-choice-prompt {
  max-width: 50rem;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 0;
  padding: 2rem 2.25rem;
  border: 1px solid rgba(212, 180, 106, 0.45);
  border-radius: 1.75rem;
  background: radial-gradient(circle at 26% 30%, color-mix(in srgb, var(--gold) 18%, transparent), var(--surface) 64%);
}
.ym-choice-prompt h2 { margin: 0.5rem 0 0.15rem; }
.ym-choice-prompt p { margin: 0.25rem 0; }
.ym-boundary-note {
  max-width: 48rem;
  margin: 1rem auto;
  padding: 0.85rem 1.1rem;
  text-align: center;
  border: 1px solid rgba(126, 182, 255, 0.34);
  border-radius: 1rem;
  background: var(--surface);
}

.ym-catalog-intro {
  max-width: 50rem;
  margin: 0 auto 1.5rem;
  text-align: center;
}
.ym-scenario-layout-bar {
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 10px 28px var(--surface-shadow);
}
.ym-scenario-layout-bar > div { display: grid; gap: 0.15rem; }
.ym-scenario-layout-bar strong { color: var(--ink); font-size: 0.82rem; }
.ym-scenario-layout-bar small { color: var(--muted); font-size: 0.68rem; line-height: 1.35; }
.ym-layout-switch {
  flex: 0 0 auto;
  min-width: 8.7rem;
  min-height: 2.6rem;
  padding: 0.35rem 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-raised);
  cursor: pointer;
}
.ym-layout-switch:hover { border-color: var(--gold); }
.ym-layout-switch__track {
  position: relative;
  width: 2.8rem;
  height: 1.45rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--surface-inset);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.2s ease;
}
.ym-layout-switch__track > span {
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 2px 7px var(--surface-shadow);
  transition: transform 0.2s ease, background 0.2s ease;
}
.ym-layout-switch[aria-checked="true"] .ym-layout-switch__track {
  background: color-mix(in srgb, var(--accent) 48%, var(--surface-inset));
}
.ym-layout-switch[aria-checked="true"] .ym-layout-switch__track > span {
  transform: translateX(1.35rem);
  background: var(--gold-2);
}
.ym-layout-switch__label {
  min-width: 4.8rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: left;
}
.ym-scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
  align-items: stretch;
}
.ym-scenario-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  min-height: 36rem;
  padding: 7.8rem clamp(1.5rem, 3vw, 2.5rem) 2.5rem;
  overflow: visible;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 25% 18%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 34%),
    var(--surface);
  box-shadow: inset 0 0 40px color-mix(in srgb, var(--accent) 8%, transparent);
}
.ym-scenario-card::after {
  content: "";
  position: absolute;
  inset: 0.65rem;
  pointer-events: none;
  border: 1px dashed color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius: 1.5rem;
}
.ym-scenario-card.is-recommended {
  border-color: rgba(212, 180, 106, 0.62);
  box-shadow: 0 0 28px rgba(212, 180, 106, 0.14), inset 0 0 40px rgba(126, 224, 255, 0.06);
}
.ym-scenario-card__orbit {
  position: absolute;
  top: 1.6rem;
  left: calc(50% - 2.6rem);
  width: 5.2rem;
  height: 5.2rem;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 50%;
  border: 1px dashed rgba(212, 180, 106, 0.46);
  animation: orbitSpin 22s linear infinite;
}
.ym-scenario-card__orbit::before {
  content: "";
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 44%, var(--surface-raised)), var(--surface-inset) 68%);
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 24%, transparent);
}
.ym-scenario-card__orbit span {
  position: relative;
  z-index: 1;
  color: var(--gold-2);
  font-weight: 700;
  letter-spacing: 0.08em;
  animation: ym-counter-spin 22s linear infinite;
}
.ym-scenario-card__body { position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.ym-scenario-card__top { width: 100%; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.35rem; padding-inline: 2.7rem; }
.ym-duration { margin-left: 0; color: var(--muted); font-size: 0.72rem; }
.ym-scenario-card h2 { margin: 0.8rem 0 0; font-size: 1.18rem; line-height: 1.25; }
.ym-persona-name { margin: 0.15rem 0 0.6rem; color: var(--gold-2); font-weight: 650; }
.ym-scenario-card p { margin: 0.25rem 0 0.7rem; }
.ym-scenario-card dl { margin: 0; display: grid; gap: 0.5rem; }
.ym-scenario-card dl div {
  padding-top: 0.45rem;
  border-top: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
.ym-scenario-card dt {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ym-scenario-card dd { margin: 0.12rem 0 0; font-size: 0.82rem; }
.ym-risk-labels { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.32rem; margin: auto 0 0.8rem; padding-top: 0.8rem; }
.ym-risk-labels span {
  padding: 0.18rem 0.5rem;
  border: 1px solid rgba(126, 182, 255, 0.3);
  border-radius: 999px;
  color: var(--syn);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
}
.ym-run-scenario { width: auto; margin: 0; }
.ym-real-profile-card {
  grid-column: 1 / -1;
  width: min(100%, 36rem);
  justify-self: center;
  border-style: dashed;
  background:
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 36%),
    var(--surface);
}
[data-ym-scenario-layout="circular"] .ym-scenario-card {
  align-content: center;
  aspect-ratio: 1;
  min-height: 0;
  padding: clamp(3.2rem, 5vw, 4.5rem);
  overflow: hidden;
  border-radius: 50%;
  container-type: inline-size;
}
[data-ym-scenario-layout="circular"] .ym-scenario-card::after {
  border-radius: 50%;
}
@container (max-width: 30rem) {
  [data-ym-scenario-layout="circular"] .ym-scenario-card__body {
    font-size: 0.86rem;
  }
  [data-ym-scenario-layout="circular"] .ym-scenario-card h2 {
    margin-top: 0.55rem;
    font-size: 1.05rem;
    line-height: 1.2;
  }
  [data-ym-scenario-layout="circular"] .ym-scenario-card p {
    margin: 0.18rem 0 0.5rem;
    line-height: 1.4;
  }
  [data-ym-scenario-layout="circular"] .ym-persona-name {
    margin: 0.12rem 0 0.45rem;
  }
  [data-ym-scenario-layout="circular"] .ym-scenario-card dl {
    gap: 0.32rem;
  }
  [data-ym-scenario-layout="circular"] .ym-scenario-card dl div {
    padding-top: 0.32rem;
  }
  [data-ym-scenario-layout="circular"] .ym-scenario-card dd {
    font-size: 0.76rem;
    line-height: 1.35;
  }
  [data-ym-scenario-layout="circular"] .ym-risk-labels {
    margin: 0 0 0.55rem;
    padding-top: 0.5rem;
  }
}
.ym-coming-soon:disabled {
  color: var(--muted);
  background: var(--surface-inset);
  border: 1px solid var(--line);
  cursor: not-allowed;
  opacity: 1;
}

.ym-integrations {
  max-width: 68rem;
  margin: clamp(3rem, 7vw, 5rem) auto 1rem;
  padding-top: 2rem;
  text-align: center;
  border-top: 1px solid var(--line);
}
.ym-integrations > h2 { margin: 0.35rem 0 0.5rem; }
.ym-integrations > p:not(.eyebrow) { max-width: 48rem; margin: 0 auto 1.5rem; color: var(--muted); }
.ym-integration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  justify-items: center;
}
.ym-integration-card {
  width: min(100%, 20rem);
  min-height: 17rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.8rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 50% 22%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 36%),
    var(--surface);
  box-shadow: inset 0 0 32px color-mix(in srgb, var(--accent) 8%, transparent);
}
.ym-integration-card__orb {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  color: var(--gold-2);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  border: 1px dashed var(--gold);
  border-radius: 50%;
  background: var(--surface-inset);
}
.ym-integration-card h3 { margin: 0; font-size: 0.95rem; }
.ym-integration-card p { margin: 0; font-size: 0.76rem; line-height: 1.4; }
.ym-integration-card small {
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.ym-runner-loading {
  min-height: 22rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  text-align: center;
}
.ym-runner-loading__core {
  width: 7rem;
  height: 7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--on-accent);
  background: var(--core);
  box-shadow: 0 0 55px rgba(126, 224, 255, 0.55);
  animation: ym-pulse 1.8s ease-in-out infinite;
}
.ym-runner { display: grid; gap: 1rem; }
.ym-runner-synthetic {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: var(--gold-2);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.ym-runner-question {
  max-width: 53rem;
  margin: 0 auto;
  text-align: center;
}
.ym-runner-question > span {
  display: block;
  color: var(--gold-2);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 650;
}
.ym-runner-question p { margin: 0.4rem 0 0; color: var(--muted); }
.ym-runner-summary {
  position: sticky;
  top: 3rem;
  z-index: 12;
  padding: 0.75rem;
  border: 1px solid rgba(126, 224, 255, 0.25);
  border-radius: 1.25rem;
  background: var(--surface-raised);
  box-shadow: 0 10px 28px var(--surface-shadow);
  backdrop-filter: blur(16px);
}
.ym-runner-summary__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.55rem;
}
.ym-runner-summary__grid div { min-width: 0; padding: 0 0.48rem; border-right: 1px solid var(--line); }
.ym-runner-summary__grid div:last-child { border-right: 0; }
.ym-runner-summary__grid span {
  display: block;
  color: var(--muted);
  font-size: 0.57rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ym-runner-summary__grid strong {
  display: block;
  margin-top: 0.16rem;
  overflow-wrap: anywhere;
  font-size: 0.7rem;
  line-height: 1.25;
}
.ym-runner-layout {
  display: grid;
  grid-template-columns: minmax(11rem, 13rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.ym-runner-stepper {
  position: sticky;
  top: 10.5rem;
  max-height: calc(100vh - 12rem);
  overflow: auto;
  padding: 0.35rem;
}
.ym-runner-stepper ol { display: grid; gap: 0.32rem; margin: 0; padding: 0; list-style: none; }
.ym-runner-stepper button {
  width: 100%;
  min-height: 3.1rem;
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  color: var(--muted);
  text-align: left;
  border: 1px solid transparent;
  border-radius: 1rem;
  background: transparent;
  cursor: pointer;
}
.ym-runner-stepper button > span {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.65rem;
}
.ym-runner-stepper button strong { font-size: 0.72rem; line-height: 1.15; }
.ym-runner-stepper button.is-current {
  color: var(--gold-2);
  border-color: rgba(212, 180, 106, 0.5);
  background: rgba(212, 180, 106, 0.08);
}
.ym-runner-stepper button.is-current > span { border-color: var(--gold); box-shadow: 0 0 12px rgba(212, 180, 106, 0.3); }
.ym-runner-stepper button.is-complete { color: var(--allow); }
.ym-runner-stepper button.is-complete > span::after { content: "✓"; }
.ym-runner-stepper button.is-complete > span { font-size: 0; }
.ym-runner-stage {
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 35%),
    var(--surface);
}
.ym-runner-stage__heading { text-align: center; }
.ym-runner-stage__heading > span { color: var(--gold); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; }
.ym-runner-stage__heading h2 { margin: 0.22rem 0 0.8rem; font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
.ym-runner-stage__visual {
  min-height: 20rem;
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid rgba(126, 224, 255, 0.16);
  border-radius: 1.5rem;
  background: radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--surface-inset) 74%, var(--accent)), var(--surface-inset) 72%);
}
.ym-runner-four {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.ym-runner-four article {
  min-height: 10rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.35rem 2rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface-raised);
}
.ym-runner-four h3 {
  margin: 0 0 0.35rem;
  color: var(--gold-2);
  font-size: 0.73rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ym-runner-four p, .ym-runner-four ul { margin: 0; padding-left: 1rem; font-size: 0.83rem; }
.ym-runner-four p { padding-left: 0; }
.ym-runner-next { color: var(--muted); text-align: center; font-size: 0.82rem; }
.ym-runner-controls {
  position: static;
  z-index: 14;
  width: max-content;
  max-width: calc(100vw - 2rem);
  margin: 0.2rem auto;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-raised);
  backdrop-filter: blur(16px);
}
.ym-runner-controls button:disabled { opacity: 0.4; cursor: not-allowed; }

.ym-runner-orbit {
  position: relative;
  width: min(28rem, 78vw);
  height: min(17rem, 48vw);
  display: grid;
  place-items: center;
}
.ym-runner-orbit::before {
  content: "";
  position: absolute;
  inset: 6% 2%;
  border: 1px dashed rgba(212, 180, 106, 0.38);
  border-radius: 50%;
  animation: orbitSpin 18s linear infinite;
}
.ym-runner-orbit__core {
  position: relative;
  z-index: 2;
  width: 8.2rem;
  height: 8.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.8rem;
  border-radius: 50%;
  color: #071018;
  background: radial-gradient(circle at 40% 35%, #d8f8ff, var(--core) 55%, #2c7a91);
  box-shadow: 0 0 42px rgba(126, 224, 255, 0.42);
}
.ym-runner-orbit__core span { font-size: 0.7rem; letter-spacing: 0.12em; }
.ym-runner-orbit__core strong { font-size: 0.82rem; }
.ym-runner-orbit__signals { position: absolute; inset: 0; }
.ym-runner-signal {
  position: absolute;
  z-index: 3;
  max-width: 8rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(126, 182, 255, 0.4);
  border-radius: 999px;
  background: var(--surface-raised);
  font-size: 0.68rem;
  text-align: center;
  animation: ym-signal-in 0.65s ease both;
  animation-delay: calc(var(--ym-index) * 120ms);
}
.ym-runner-signal:nth-child(1) { top: 4%; left: 4%; }
.ym-runner-signal:nth-child(2) { top: 4%; right: 4%; }
.ym-runner-signal:nth-child(3) { bottom: 4%; left: 4%; }
.ym-runner-signal:nth-child(4) { bottom: 4%; right: 4%; }
.ym-runner-signal:nth-child(5) { top: 42%; left: 0; }
.ym-runner-signal:nth-child(6) { top: 42%; right: 0; }
.ym-runner-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}
.ym-runner-metric {
  width: 8.4rem;
  height: 8.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  text-align: center;
  border: 1px solid rgba(126, 224, 255, 0.28);
  border-radius: 50%;
  background: var(--surface-raised);
}
.ym-runner-metric span { color: var(--muted); font-size: 0.65rem; }
.ym-runner-metric strong { margin: 0.25rem 0; font-size: 1rem; }
.ym-runner-metric small { color: var(--muted); font-size: 0.58rem; }
.ym-runner-findings {
  width: min(35rem, 100%);
  display: grid;
  gap: 0.32rem;
  margin: 0.8rem auto 0;
  padding: 0;
  list-style: none;
}
.ym-runner-findings li {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr) 2.5rem;
  gap: 0.5rem;
  align-items: center;
  padding: 0.42rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--surface-raised);
  font-size: 0.7rem;
}
.ym-runner-findings li > span:nth-child(2) { display: grid; }
.ym-runner-findings small { color: var(--muted); }
.ym-runner-findings .is-adverse > span:first-child,
.ym-runner-findings .is-adverse > b { color: var(--block); }
.ym-runner-findings .is-protective > span:first-child,
.ym-runner-findings .is-protective > b { color: var(--allow); }
.ym-payment-intent-card {
  width: min(26rem, 90%);
  min-height: 16rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--gold);
  border-radius: 1.5rem;
  background: radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--gold) 17%, transparent), var(--surface-raised));
  box-shadow: 0 0 28px rgba(212, 180, 106, 0.12);
}
.ym-payment-intent-card > strong { color: var(--gold-2); font-size: 2rem; }
.ym-payment-intent-card > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.ym-payment-intent-card > div b { padding: 0.24rem 0.55rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.65rem; }
.ym-payment-intent-card small { color: var(--muted); }
.ym-transaction-focus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}
.ym-not-equal { color: var(--gold); font-size: 2.2rem; }
.ym-decision-hierarchy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.5rem;
}
.ym-decision-hierarchy article {
  width: 9.5rem;
  min-height: 9.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-raised);
}
.ym-decision-hierarchy article.is-final {
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(212, 180, 106, 0.2);
}
.ym-decision-hierarchy article span, .ym-decision-hierarchy article small { color: var(--muted); font-size: 0.6rem; }
.ym-decision-hierarchy article strong { margin: 0.35rem 0; font-size: 0.9rem; }
.ym-hierarchy-arrow { color: var(--gold); }
.ym-policy-ledger {
  width: min(32rem, 92%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.2rem 1rem;
  margin-top: 0.9rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface-raised);
  font-size: 0.7rem;
}
.ym-policy-ledger span { color: var(--muted); }
.ym-policy-ledger strong { text-align: right; }
.ym-control-gate, .ym-trace-replay {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.ym-control-gate > div,
.ym-trace-replay article {
  width: 9rem;
  height: 9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-raised);
}
.ym-control-gate > div.is-locked { border-color: var(--block); }
.ym-control-gate > div.is-open { border-color: var(--allow); }
.ym-control-gate span, .ym-trace-replay article span { color: var(--muted); font-size: 0.65rem; }
.ym-control-gate strong, .ym-trace-replay article strong { margin-top: 0.3rem; font-size: 0.78rem; }
.ym-state-flow, .ym-proof-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.ym-state-flow span, .ym-proof-links span {
  padding: 0.55rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-raised);
  font-size: 0.68rem;
}
.ym-state-flow span.is-current { color: var(--gold-2); border-color: var(--gold); box-shadow: 0 0 14px rgba(212, 180, 106, 0.24); }
.ym-state-flow b, .ym-proof-links b { color: var(--gold); }
.ym-trace-replay > span {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.ym-trace-replay > span.is-match { color: var(--allow); border: 1px solid var(--allow); }
.ym-trace-replay > span.is-mismatch { color: var(--block); border: 1px solid var(--block); }

.ym-architecture-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.ym-architecture-grid article {
  min-height: 13rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.8rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--accent) 14%, transparent), var(--surface) 58%);
}
.ym-architecture-grid h2 { margin: 0 0 0.5rem; color: var(--gold-2); font-size: 1rem; }
.ym-technical-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.2rem;
}
.ym-technical-grid a {
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.ym-technical-grid a:hover { transform: translateY(-3px); border-color: var(--gold); }
.ym-technical-grid small { color: var(--muted); font-size: 0.7rem; }
.ym-tech-orb {
  width: 3.2rem;
  height: 3.2rem;
  border: 1px dashed var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, var(--surface-raised)), var(--surface-inset) 65%);
  animation: orbitSpin 12s linear infinite;
}

input[type="file"] {
  display: block;
  margin: 0.8rem auto;
  color: var(--muted);
}
input[type="file"]::file-selector-button {
  margin-right: 0.7rem;
  padding: 0.48rem 0.9rem;
  color: var(--on-accent);
  font: inherit;
  font-weight: 650;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  cursor: pointer;
}

.ym-ach-intro {
  max-width: 52rem;
  margin: 0 auto 1.2rem;
  text-align: center;
}
.ym-ach-workbench {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 58rem;
  margin: 0 auto 1.5rem;
}
.ym-ach-input-panel {
  min-width: 0;
  padding: 1.4rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--surface);
  box-shadow: 0 12px 28px var(--surface-shadow);
}
.ym-ach-input-panel h2 { margin: 0.5rem 0 0.85rem; font-size: 1.05rem; }
.ym-ach-input-panel > label:not(.ym-ach-file-label) {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ym-ach-file-label {
  display: grid;
  gap: 0.2rem;
  padding: 1.1rem;
  border: 1px dashed var(--gold);
  border-radius: 1rem;
  background: var(--surface-inset);
  cursor: pointer;
}
.ym-ach-file-label span { color: var(--muted); font-size: 0.72rem; }
.ym-ach-input-panel select {
  width: 100%;
  padding: 0.55rem 0.8rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface-inset);
}
.ym-ach-input-panel .ym-cta { margin-top: 0.4rem; }
.ym-ach-result {
  max-width: 64rem;
  min-height: 6rem;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 1.8rem);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--surface);
}
.ym-ach-result__status {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  background: var(--surface-inset);
}
.ym-ach-result__status.is-accepted { border: 1px solid var(--allow); }
.ym-ach-result__status.is-rejected { border: 1px solid var(--block); }
.ym-ach-result__status h2 { margin: 0.5rem 0 0.25rem; }
.ym-ach-result__status p { margin: 0; }
.ym-ach-pipeline { margin-block: 1.4rem; }
.ym-ach-result__visual {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  justify-items: center;
  margin: 1rem 0;
}
.ym-ach-result__visual article {
  width: min(100%, 10rem);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-raised);
}
.ym-ach-result__visual article > span {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  color: var(--gold-2);
  font-weight: 750;
  border: 1px dashed var(--gold);
  border-radius: 50%;
}
.ym-ach-result__visual small {
  color: var(--muted);
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ym-ach-result__visual strong { font-size: 0.68rem; }
.ym-ach-findings {
  max-width: 50rem;
  margin: 1.3rem auto;
  text-align: left;
}
.ym-ach-findings h3 { text-align: center; }
.ym-ach-findings ul { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.ym-ach-findings li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--block) 45%, var(--line));
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--surface-raised) 94%, var(--block));
}
.ym-ach-finding__marker {
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  color: var(--block);
  font-weight: 800;
  border: 1px solid var(--block);
  border-radius: 50%;
}
.ym-ach-findings li > span:nth-child(2) { display: grid; }
.ym-ach-findings small { color: var(--muted); }
.ym-ach-findings li > span:last-child { color: var(--muted); font-size: 0.68rem; text-align: right; }
.ym-ach-valid-message {
  max-width: 44rem;
  margin: 1rem auto;
  padding: 0.8rem 1rem;
  color: var(--allow);
  border: 1px solid var(--allow);
  border-radius: 1rem;
}
.ym-proof-parser-select {
  display: grid;
  gap: 0.4rem;
  max-width: 30rem;
  margin: 1rem auto;
  color: var(--muted);
}
.ym-proof-parser-select select {
  width: 100%;
  padding: 0.55rem 0.8rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface-inset);
}
.ym-proof-parser-case {
  max-width: 54rem;
  margin: 1rem auto;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--surface);
}
.ym-proof-parser-case h4 { margin: 0.45rem 0 0.25rem; }

@keyframes ym-spin { to { transform: rotate(360deg); } }
@keyframes ym-orbit-dot { to { transform: rotate(360deg); } }
@keyframes ym-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
@keyframes ym-dash { to { stroke-dashoffset: -28; } }
@keyframes ym-flash { from { opacity: 1; } to { opacity: 0; } }
@keyframes ym-pop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes ym-count { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ym-counter-spin { to { transform: rotate(-360deg); } }
@keyframes ym-signal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.92); }
  to { opacity: 1; transform: none; }
}
@keyframes ym-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(18px); }
}
@keyframes portalPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.92; }
}
@keyframes coreBreath {
  0%, 100% { box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.06); }
  50% { box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.12); }
}
@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ym-orb-ring, .ym-orb-core, .ym-orb-sat, .ym-sig, .ym-packet, .ym-core-glow, .ym-link-on, .ym-node-pop, .ym-score-anim b, .ym-score-anim, .flow span.on::after, .portal-ring, .portal-orbit, .portal-core, .orb, .ym-scenario-card__orbit, .ym-scenario-card__orbit span, .ym-runner-loading__core, .ym-runner-orbit::before, .ym-runner-signal, .ym-tech-orb {
    animation: none !important;
  }
  .persona, .portal, .atlas-nav a, .ym-technical-grid a, .ym-layout-switch, .ym-layout-switch__track, .ym-layout-switch__track > span { transition: none; }
}

@media (max-width: 960px) {
  .ym-scenario-grid { grid-template-columns: 1fr; }
  .ym-scenario-card { width: min(100%, 36rem); justify-self: center; }
  .ym-runner-summary__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ym-runner-summary__grid div:nth-child(4) { border-right: 0; }
  .ym-runner-layout { grid-template-columns: 1fr; }
  .ym-runner-stepper {
    position: static;
    max-height: none;
    overflow-x: auto;
  }
  .ym-runner-stepper ol {
    display: flex;
    min-width: max-content;
  }
  .ym-runner-stepper button { width: 10rem; }
  .ym-technical-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ym-integration-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .atlas-top { flex-direction: column; align-items: center; text-align: center; }
  .atlas-top > div:first-child { text-align: center; }
  .login-form { justify-content: center; }
  .portal, .persona, .ym-card { width: min(220px, 78vw); height: min(220px, 78vw); }
  .portal--source { width: min(100%, 22rem); height: auto; }
  .ym-split article { width: 100%; min-height: 0; }
  .atlas-nav { gap: 0.4rem; }
  .atlas-nav a { width: 4.5rem; height: 4.5rem; font-size: 0.56rem; }
  .ym-capability-pair { grid-template-columns: 1fr; }
  .ym-capability-pair article { min-height: 0; padding: 1.6rem; }
  .ym-overview-hero { border-radius: 1.5rem; padding: 1.8rem 1.4rem; }
  .ym-choice-prompt { min-height: 0; flex-direction: column; padding: 1.6rem; text-align: center; }
  .ym-scenario-layout-bar { flex-direction: column; border-radius: 1.25rem; text-align: center; }
  .ym-scenario-card {
    width: min(100%, 27rem);
    min-height: 0;
    padding: 6.8rem 1.4rem 1.8rem;
  }
  [data-ym-scenario-layout="circular"] .ym-scenario-card {
    aspect-ratio: 2 / 3;
    min-height: 0;
    padding: 5.5rem 2.5rem 3.8rem;
    overflow: hidden;
    border-radius: 50%;
  }
  .ym-scenario-card__orbit {
    top: 1.15rem;
    left: calc(50% - 2.2rem);
    width: 4.4rem;
    height: 4.4rem;
    margin: 0;
  }
  .ym-scenario-card__body { align-items: center; }
  .ym-scenario-card__top { justify-content: center; }
  .ym-duration { margin-left: 0; }
  .ym-scenario-card h2, .ym-persona-name { text-align: center; }
  .ym-run-scenario { align-self: center; }
  .ym-runner-summary { position: static; }
  .ym-runner-summary__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ym-runner-summary__grid div,
  .ym-runner-summary__grid div:nth-child(4) { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 0.4rem; }
  .ym-runner-stage { border-radius: 1.5rem; }
  .ym-runner-stage__visual { min-height: 18rem; border-radius: 1.25rem; }
  .ym-runner-four { grid-template-columns: 1fr; }
  .ym-runner-four article { width: min(100%, 24rem); min-height: 11rem; justify-self: center; }
  .ym-runner-controls { border-radius: 999px; }
  .ym-evidence-path { flex-direction: column; }
  .ym-evidence-arrow { transform: rotate(90deg); }
  .ym-bubble { width: 100%; }
  .ym-runner-orbit { width: 100%; height: 16rem; }
  .ym-runner-orbit__core { width: 6.8rem; height: 6.8rem; }
  .ym-transaction-focus { flex-direction: column; }
  .ym-not-equal { transform: rotate(90deg); }
  .ym-decision-hierarchy { flex-direction: column; }
  .ym-hierarchy-arrow { transform: rotate(90deg); }
  .ym-architecture-grid { grid-template-columns: 1fr; }
  .ym-architecture-grid article { width: min(100%, 22rem); justify-self: center; }
  .ym-technical-grid { grid-template-columns: 1fr; }
  .ym-technical-grid a { width: min(100%, 20rem); justify-self: center; }
  .ym-integration-grid { grid-template-columns: 1fr; }
  .ym-integration-card { width: min(100%, 19rem); }
  .ym-ach-workbench { grid-template-columns: 1fr; }
  .ym-ach-pipeline { flex-direction: column; }
  .ym-ach-pipeline .arrow { transform: rotate(90deg); }
  .ym-ach-result__visual { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ym-ach-findings li { grid-template-columns: 2rem minmax(0, 1fr); }
  .ym-ach-findings li > span:last-child { grid-column: 2; text-align: left; }
}

[data-theme="light"] {
  --allow: #00664f;
  --hold: #8a3b00;
  --block: #a51d23;
  --syn: var(--cyan);
  --core: var(--accent);
  --surface: color-mix(in srgb, var(--panel) 96%, var(--bg-soft));
  --surface-raised: color-mix(in srgb, var(--panel) 98%, var(--text) 2%);
  --surface-inset: color-mix(in srgb, var(--bg-soft) 92%, var(--text) 8%);
  --on-accent: #ffffff;
  --surface-shadow: rgba(15, 23, 42, 0.18);
}
[data-theme="light"] .ym-banner {
  background: var(--text);
  color: var(--panel);
  border-color: var(--text);
}
[data-theme="light"] .atlas-nav a,
[data-theme="light"] .ym-login-wrap summary,
[data-theme="light"] .meter,
[data-theme="light"] .portal-core,
[data-theme="light"] .timeline li,
[data-theme="light"] form.stack,
[data-theme="light"] pre.out,
[data-theme="light"] .ym-ask,
[data-theme="light"] .ym-overview-hero,
[data-theme="light"] .ym-capability-pair article,
[data-theme="light"] .ym-system-flow span,
[data-theme="light"] .ym-choice-prompt,
[data-theme="light"] .ym-boundary-note,
[data-theme="light"] .ym-scenario-card,
[data-theme="light"] .ym-integration-card,
[data-theme="light"] .ym-runner-summary,
[data-theme="light"] .ym-runner-stage,
[data-theme="light"] .ym-runner-four article,
[data-theme="light"] .ym-runner-controls,
[data-theme="light"] .ym-runner-signal,
[data-theme="light"] .ym-runner-metric,
[data-theme="light"] .ym-runner-findings li,
[data-theme="light"] .ym-payment-intent-card,
[data-theme="light"] .ym-decision-hierarchy article,
[data-theme="light"] .ym-control-gate > div,
[data-theme="light"] .ym-trace-replay article,
[data-theme="light"] .ym-state-flow span,
[data-theme="light"] .ym-proof-links span,
[data-theme="light"] .ym-architecture-grid article,
[data-theme="light"] .ym-technical-grid a {
  color: var(--text);
  background-color: var(--surface);
}
[data-theme="light"] .ym-runner-stage__visual,
[data-theme="light"] .ym-runner-findings li,
[data-theme="light"] .ym-payment-intent-card {
  background-color: var(--surface-inset);
}
[data-theme="light"] .atlas-nav a.is-on {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}
[data-theme="light"] .login-form input,
[data-theme="light"] form.stack input,
[data-theme="light"] form.stack select,
[data-theme="light"] form.stack textarea,
[data-theme="light"] .ym-ask input {
  color: var(--text);
  background: var(--surface-raised);
  border-color: var(--border);
}
[data-theme="light"] .pill,
[data-theme="light"] .ym-risk-labels span,
[data-theme="light"] .ym-runner-signal {
  border-color: currentColor;
}
[data-theme="light"] .ym-runner-stepper button.is-current {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: var(--accent);
}
[data-theme="light"] .ym-runner-orbit__core {
  color: var(--on-accent);
  background: radial-gradient(circle at 40% 35%, color-mix(in srgb, var(--accent) 72%, white), var(--accent) 58%, color-mix(in srgb, var(--accent) 82%, black));
}
[data-theme="light"] .ym-scenario-card,
[data-theme="light"] .ym-capability-pair article,
[data-theme="light"] .ym-architecture-grid article,
[data-theme="light"] .ym-technical-grid a,
[data-theme="light"] .ym-integration-card {
  box-shadow: 0 14px 34px var(--surface-shadow), inset 0 0 28px color-mix(in srgb, var(--accent) 8%, transparent);
}
[data-theme="light"] .portal-title { color: var(--text); }
[data-theme="light"] .atlas-mark__name,
[data-theme="light"] .eyebrow { color: var(--manju-gold); }
[data-theme="light"] .ym-cta,
[data-theme="light"] .login-form button,
[data-theme="light"] form.stack button {
  background: var(--accent);
  color: var(--on-accent);
}
[data-theme="light"] .ym-btn.ghost {
  color: var(--text);
  background: var(--surface-raised);
  border: 1px solid var(--border);
}
[data-theme="light"] .ym-btn.syn {
  color: var(--syn);
  background: var(--surface-raised);
  border-color: currentColor;
}
[data-theme="light"] :focus-visible {
  outline-color: var(--accent);
}

.cosmic-theme-swatch {
  color: #ffffff !important;
  text-shadow: 0 1px 3px #000000;
}
