/* Em●Trade landing — the worlds (.agent/artifacts/landing_worlds_plan_2026-10-07.md).
   Without html.worlds (no script, reduced motion) the page is a plain document: every world is a block at its final
   state. With it, a world's section is only scroll length and its .layer is fixed to the viewport; worlds.js sets
   --p (0..1) on the section, --o on the layer and the step classes s1…sN, and draws the stage canvas behind it all.
   Landing CSP: no inline styles anywhere — every per-element value comes from a class here or from worlds.js. */

@property --page-0 { syntax: "<color>"; inherits: true; initial-value: #ece3d2; }
@property --page-1 { syntax: "<color>"; inherits: true; initial-value: #e5e7ea; }

:root {
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --spring: cubic-bezier(0.3, 1.35, 0.5, 1);
  --dur: 180ms;
  --dur-slow: 320ms;
  --step: 700ms;
  --max: 1160px;
  --moon: #f5c842;
  /* Unemotional's colours (client/src/styles/themes.css, the same in both themes). */
  --brand-teal: #2dd4bf;
  --brand-teal-soft: #5eead4;
  --brand-teal-deep: #14b8a6;
  --brand-sky: #38bdf8;
  --brand-violet: #a78bfa;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

/* Tokens sit on the attribute, not only on <html>, so the stage's probe and the brand mark can carry a theme. */
[data-theme="alabaster"] {
  color-scheme: light;
  --page-0: #ece3d2;
  --page-1: #e5e7ea;
  --bg: #ece7dc;
  --surface: #f7f3ec;
  --raised: #fffdf9;
  --ink: #33302b;
  --ink-muted: #6f6656;
  --rule: #e6dfd1;
  --accent: #5b6b7a;
  --pos: #5f7048;
  --neg: #9a4b36;
  --warn: #b07d2e;
  --chart-up: #6f9068;
  --chart-down: #b06a52;
  --shadow: 0 1px 2px rgba(51, 48, 43, 0.05), 0 8px 24px rgba(51, 48, 43, 0.06);
  --lift: 0 2px 6px rgba(51, 48, 43, 0.06), 0 24px 64px rgba(51, 48, 43, 0.14);
}

[data-theme="graphite"],
.scope-dark,
.worlds[data-world="feeling"] {
  color-scheme: dark;
  --page-0: #201d17;
  --page-1: #1c1f23;
  --bg: #211f1a;
  --surface: #2a2722;
  --raised: #332f28;
  --ink: #e8e1d2;
  --ink-muted: #a59c8b;
  --rule: #3b382f;
  --accent: #9596cf;
  --pos: #9ca86a;
  --neg: #c26a4a;
  --warn: #c9a24b;
  --chart-up: #93b178;
  --chart-down: #cd7e5f;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  --lift: 0 2px 6px rgba(0, 0, 0, 0.35), 0 24px 64px rgba(0, 0, 0, 0.5);
}

/* ── Base ───────────────────────────────────────────────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.worlds { scroll-behavior: auto; overflow-anchor: none; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(90% 60% at 80% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%),
    linear-gradient(152deg, var(--page-0), var(--page-1));
  background-attachment: fixed;
  font-family: Geist, "Geist Variable", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
a { color: inherit; text-decoration: none; }
button, a.pill { font: inherit; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.06; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; }
h3 { font-size: 1rem; font-weight: 500; }
i { font-style: normal; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.eyebrow { color: var(--ink-muted); font-size: 0.92rem; margin-bottom: 12px; }
.lede { color: var(--ink-muted); margin-top: 14px; max-width: 36ch; font-size: 1.05rem; }
.pill {
  display: inline-flex;
  margin-top: 28px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--raised);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.pill:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.muted { color: var(--ink-muted); }
.small { font-size: 0.8rem; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.figure, .code, .console, .wait, .rule-line, .quote, .metrics strong, .runs, .cmp, .ft, .ch, .mom, .heat, .week .tag,
.limits dd, .breach, .today, .sim, .pm dd, .legs, .watch ul, .lineage li > span:last-child, .pc, kbd {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.card { background: var(--raised); border-radius: 14px; box-shadow: var(--shadow); padding: 20px; }
.screen { background: var(--raised); border-radius: 16px; box-shadow: var(--lift); overflow: hidden; }
.bubble {
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 0.92rem;
}
.bubble.small { font-size: 0.82rem; border-radius: 12px; }
.chip, .ticker, .mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}
.mini { color: var(--ink); }
.mini.quiet { background: transparent; border: 1px solid var(--rule); }
.mini.primary { background: var(--accent); color: var(--raised); }
.mini.danger { border: 1px solid color-mix(in srgb, var(--neg) 55%, transparent); background: transparent; color: var(--neg); }
.chip.warn { background: color-mix(in srgb, var(--warn) 14%, var(--raised)); color: var(--warn); }
.kicker { font-size: 0.76rem; color: var(--ink-muted); margin-bottom: 8px; }
.kicker span { margin-left: 6px; }
.caption { color: var(--ink-muted); font-size: 0.78rem; }

/* ── The page chrome ────────────────────────────────────────────────────────────────────────────────────────── */

.bar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  padding: 20px 0 16px;
  background: color-mix(in srgb, var(--page-0) 86%, transparent);
  backdrop-filter: blur(8px);
}
.worlds .bar {
  position: fixed;
  left: 0;
  right: 0;
  width: auto;
  padding: 18px max(24px, calc((100% - var(--max)) / 2));
  background: linear-gradient(to bottom, color-mix(in srgb, var(--page-0) 78%, transparent) 40%, transparent);
  backdrop-filter: none;
  transition: color 0.6s var(--ease);
}
.bar .wordmark { transition: opacity 0.25s var(--ease); }
.worlds:not(.docked) .bar .wordmark { opacity: 0; pointer-events: none; }
.bar-nav, .foot nav { display: flex; align-items: center; gap: 22px; color: var(--ink-muted); }
.bar-nav a:hover, .foot nav a:hover { color: var(--ink); }

.theme {
  position: relative;
  display: flex;
  padding: 2px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform var(--dur-slow) var(--ease);
}
html[data-theme="graphite"] .knob { transform: translateX(24px); }
.slot { width: 24px; height: 24px; display: grid; place-items: center; position: relative; z-index: 1; }
.sun { color: var(--ink); }
html[data-theme="graphite"] .sun { color: var(--ink-muted); }
.moon { color: var(--ink-muted); grid-area: 1 / 1; }
.moon-fill { color: var(--moon); fill: var(--moon); opacity: 0; transition: opacity var(--dur-slow) var(--ease); }
html[data-theme="graphite"] .moon-fill { opacity: 1; }

/* The big brand mark: born in the dawn, it flies into the bar's wordmark (worlds.js sets --bx --by --bs --bo). */
.brandmark { display: none; }
.worlds .brandmark {
  display: block;
  position: fixed;
  z-index: 6;
  top: 33svh;
  left: 0;
  right: 0;
  width: fit-content;
  margin-inline: auto;
  font-size: clamp(56px, 9vw, 124px);
  color: var(--ink);
  opacity: var(--bo, 0);
  transform-origin: 0 0;
  transform: translate(var(--bx, 0px), var(--by, 0px)) scale(var(--bs, 1));
  pointer-events: none;
}

/* The pulse: the film's big red heart in the opening, a small readout with Unemotional after it. */
.hud { display: none; }
.worlds .hud {
  display: flex;
  position: fixed;
  z-index: 6;
  left: max(24px, calc((100% - var(--max)) / 2));
  bottom: 22px;
  align-items: center;
  gap: 10px;
  color: var(--ink-muted);
  font: 500 12px/1 var(--mono);
  font-variant-numeric: tabular-nums;
  transition: color 0.6s var(--ease);
}
.hud-heart { width: 16px; height: 16px; fill: var(--neg); transform: scale(var(--hs, 1)); transform-origin: 50% 55%; }
.hud .bpm b { font-weight: 500; color: var(--ink); }
.hud-guide { width: 22px; height: 22px; margin-left: 6px; }
.worlds[data-world="feeling"] .hud { left: max(32px, 7vw); bottom: 10svh; gap: 18px; font-size: 22px; color: var(--neg); }
.worlds[data-world="feeling"] .hud-heart { width: 56px; height: 56px; }
.worlds[data-world="feeling"] .hud .bpm b { color: var(--neg); }
.worlds[data-world="feeling"] .hud-guide { display: none; }
.worlds .hud { transition: color 0.6s var(--ease), opacity 0.6s var(--ease); }
.worlds[data-world="after"] .hud { opacity: 0; }

/* The world rail: ticks on the right edge; names on hover; the current tick fills with its world's progress. */
.rail { display: none; }
.worlds .rail { display: block; position: fixed; z-index: 6; right: 18px; top: 50%; transform: translateY(-50%); }
.rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; justify-items: end; }
.rail a { display: flex; align-items: center; gap: 10px; padding: 2px 0; color: var(--ink-muted); font-size: 12px; line-height: 1; }
.rail a span {
  padding: 5px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--raised) 90%, transparent);
  box-shadow: var(--shadow);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.rail:hover a span, .rail a:focus-visible span { opacity: 1; transform: none; }
.rail a::after {
  content: "";
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.4;
  transition: width 0.3s var(--ease), opacity 0.3s var(--ease);
}
.rail a[aria-current] { color: var(--ink); }
.rail a[aria-current]::after {
  width: 28px;
  opacity: 1;
  background: linear-gradient(to right, var(--accent) calc(var(--rp, 0) * 100%), color-mix(in srgb, var(--ink-muted) 40%, transparent) 0);
}

/* ── Worlds ─────────────────────────────────────────────────────────────────────────────────────────────────── */

#stage { display: none; }
.worlds #stage {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  pointer-events: none;
}
.world { position: relative; }
.layer { position: relative; z-index: 1; }
.frame { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
main > .band, main > .close, .foot { position: relative; z-index: 2; }

/* The plain document. */
html:not(.worlds) .world { padding: 96px 0; }
html:not(.worlds) .world + .world { border-top: 1px solid var(--rule); }
html:not(.worlds) #feeling {
  background:
    radial-gradient(60% 50% at 18% 70%, color-mix(in srgb, var(--neg) 10%, transparent), transparent 70%),
    linear-gradient(152deg, var(--page-0), var(--page-1));
  color: var(--ink);
}

/* Worlds: the section is scroll length; the layer is the stage. */
.worlds .world { height: calc(var(--len, 2) * 100svh); }
.worlds #feeling { --len: 2.4; }
.worlds #rule { --len: 1.5; }
.worlds #ask { --len: 2.1; }
.worlds #lab { --len: 2.4; }
.worlds #prove { --len: 1.9; }
.worlds #market { --len: 2; }
.worlds #flow { --len: 2.1; }
.worlds #cmdk { --len: 1.5; }
.worlds #options { --len: 2; }
.worlds #gate { --len: 3.4; }
.worlds .layer {
  position: fixed;
  inset: 0;
  height: 100svh;
  display: grid;
  align-items: center;
  padding: 84px 0 60px;
  opacity: var(--o, 0);
  transform: scale(calc(0.985 + 0.015 * var(--o, 0)));
  pointer-events: none;
}
.worlds .layer.live { pointer-events: auto; }
.worlds.flow .world:not(#feeling) .layer { transform: none; }
.worlds .layer:focus-within { opacity: 1; z-index: 3; }
.worlds #feeling .layer { background: radial-gradient(60% 50% at 18% 70%, color-mix(in srgb, var(--neg) 10%, transparent), transparent 70%); }
/* A world's words rise as it arrives. */
.worlds .layer .copy { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.worlds .layer:not(.live) .copy { opacity: 0; transform: translateY(18px); }

/* Scrub ranges (progress of the world, step 0.02). */
.a0{--a:0} .a2{--a:0.02} .a4{--a:0.04} .a6{--a:0.06} .a8{--a:0.08} .a10{--a:0.1} .a12{--a:0.12} .a14{--a:0.14} .a16{--a:0.16} .a18{--a:0.18} .a20{--a:0.2} .a22{--a:0.22} .a24{--a:0.24} .a26{--a:0.26} .a28{--a:0.28} .a30{--a:0.3} .a32{--a:0.32} .a34{--a:0.34} .a36{--a:0.36} .a38{--a:0.38} .a40{--a:0.4} .a42{--a:0.42} .a44{--a:0.44} .a46{--a:0.46} .a48{--a:0.48} .a50{--a:0.5} .a52{--a:0.52} .a54{--a:0.54} .a56{--a:0.56} .a58{--a:0.58} .a60{--a:0.6} .a62{--a:0.62} .a64{--a:0.64} .a66{--a:0.66} .a68{--a:0.68} .a70{--a:0.7} .a72{--a:0.72} .a74{--a:0.74} .a76{--a:0.76} .a78{--a:0.78} .a80{--a:0.8} .a82{--a:0.82} .a84{--a:0.84} .a86{--a:0.86} .a88{--a:0.88} .a90{--a:0.9} .a92{--a:0.92} .a94{--a:0.94} .a96{--a:0.96} .a98{--a:0.98} .a100{--a:1}
.b2{--b:0.02} .b4{--b:0.04} .b6{--b:0.06} .b8{--b:0.08} .b10{--b:0.1} .b12{--b:0.12} .b14{--b:0.14} .b16{--b:0.16} .b18{--b:0.18} .b20{--b:0.2} .b22{--b:0.22} .b24{--b:0.24} .b26{--b:0.26} .b28{--b:0.28} .b30{--b:0.3} .b32{--b:0.32} .b34{--b:0.34} .b36{--b:0.36} .b38{--b:0.38} .b40{--b:0.4} .b42{--b:0.42} .b44{--b:0.44} .b46{--b:0.46} .b48{--b:0.48} .b50{--b:0.5} .b52{--b:0.52} .b54{--b:0.54} .b56{--b:0.56} .b58{--b:0.58} .b60{--b:0.6} .b62{--b:0.62} .b64{--b:0.64} .b66{--b:0.66} .b68{--b:0.68} .b70{--b:0.7} .b72{--b:0.72} .b74{--b:0.74} .b76{--b:0.76} .b78{--b:0.78} .b80{--b:0.8} .b82{--b:0.82} .b84{--b:0.84} .b86{--b:0.86} .b88{--b:0.88} .b90{--b:0.9} .b92{--b:0.92} .b94{--b:0.94} .b96{--b:0.96} .b98{--b:0.98} .b100{--b:1}

/* Step classes: .stN appears at step N, .untilN leaves at step N, .xN shows only during step N. */
.worlds .st1, .worlds .st2, .worlds .st3, .worlds .st4, .worlds .st5, .worlds .st6, .worlds .st7, .worlds .st8, .worlds .st9, .worlds .st10, .worlds .st11 { transition: opacity var(--step) var(--ease), transform var(--step) var(--ease); }
.worlds .world:not(.s1) .st1,
.worlds .world:not(.s2) .st2,
.worlds .world:not(.s3) .st3,
.worlds .world:not(.s4) .st4,
.worlds .world:not(.s5) .st5,
.worlds .world:not(.s6) .st6,
.worlds .world:not(.s7) .st7,
.worlds .world:not(.s8) .st8,
.worlds .world:not(.s9) .st9,
.worlds .world:not(.s10) .st10,
.worlds .world:not(.s11) .st11 { opacity: 0; transform: translateY(12px); }
.worlds .until1, .worlds .until2, .worlds .until3, .worlds .until4, .worlds .until5, .worlds .until6 { transition: opacity var(--step) var(--ease), transform var(--step) var(--ease); }
.worlds .world.s1 .until1,
.worlds .world.s2 .until2,
.worlds .world.s3 .until3,
.worlds .world.s4 .until4,
.worlds .world.s5 .until5,
.worlds .world.s6 .until6 { opacity: 0; transform: translateY(-8px); pointer-events: none; }
html:not(.worlds) .until1, html:not(.worlds) .until2, html:not(.worlds) .until3, html:not(.worlds) .until4, html:not(.worlds) .until5, html:not(.worlds) .until6 { display: none; }
.x0, .x1, .x2, .x3, .x4, .x5, .x6, .x7, .x8, .x9, .x10, .x11 { display: none; }
html:not(.worlds) .xl, .worlds .world:not(.s1) .x0, .worlds .world.s1:not(.s2) .x1, .worlds .world.s2:not(.s3) .x2, .worlds .world.s3:not(.s4) .x3, .worlds .world.s4:not(.s5) .x4, .worlds .world.s5:not(.s6) .x5, .worlds .world.s6:not(.s7) .x6, .worlds .world.s7:not(.s8) .x7, .worlds .world.s8:not(.s9) .x8, .worlds .world.s9:not(.s10) .x9, .worlds .world.s10:not(.s11) .x10, .worlds .world.s11 .x11 { display: revert; }

/* Scrubbed elements: --t runs 0→1 across the element's range (classes aN bN), --e is the same, eased. */
.worlds .k {
  --t: clamp(0, (var(--p, 0) - var(--a, 0)) / (var(--b, 1) - var(--a, 0)), 1);
  --e: calc(var(--t) * var(--t) * (3 - 2 * var(--t)));
}
.worlds .fx-draw { stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--t)); }
.worlds .fx-gone { opacity: calc(1 - var(--e)); }
.worlds .fx-dive { opacity: calc(1 - var(--e)); transform: scale(calc(1 + var(--e) * 0.3)); filter: blur(calc(var(--e) * 5px)); }
.worlds .fx-settle { transform: translateY(calc((1 - var(--e)) * 104px)); }

/* Revealed children (data-reveal): CSS does the motion, worlds.js only says which are on. */
.worlds [data-reveal] > * { opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease), transform 0.55s var(--ease); }
.worlds [data-reveal] > .on { opacity: 1; transform: none; }

/* Typing: a caret while the text is being written. */
.typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.16em;
  background: currentColor;
  animation: caret 1s steps(1) infinite;
}
.code.typing::after { display: none; }

@keyframes caret { 50% { opacity: 0; } }
@keyframes breathe { 0%, 100% { opacity: 0.45; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes flash { from { background: color-mix(in srgb, var(--accent) 16%, transparent); } to { background: transparent; } }

/* Layouts inside a stage. */
.copy h2 { margin: 0; }
.split { display: grid; grid-template-columns: minmax(240px, 0.8fr) 1.3fr; gap: 56px; align-items: center; }
.split.wide { grid-template-columns: minmax(220px, 0.6fr) 1.6fr; gap: 48px; }
.stack { display: grid; gap: 22px; align-content: center; }
.stack > .copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; align-items: end; }
.stack > .copy .eyebrow { grid-column: 1 / -1; }
.stack > .copy .lede { margin: 0 0 4px; justify-self: end; text-align: right; }
.center { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 30px; text-align: center; }
.center .lede { margin-inline: auto; }

/* ── W0 · The feeling ───────────────────────────────────────────────────────────────────────────────────────── */

.feel { display: grid; grid-template-columns: 1.25fr 0.75fr; grid-template-rows: auto auto; gap: 34px 40px; align-items: center; align-self: start; margin-top: 4svh; }
.quote { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--ink-muted); font-size: clamp(14px, 1.4vw, 19px); }
.quote b { color: var(--ink); font-weight: 400; }
.feel-lines { display: grid; gap: 0.1em; font-size: clamp(2.1rem, 4.3vw, 3.9rem); letter-spacing: -0.04em; line-height: 1.08; }
.fl { display: block; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.fl1 { animation: rise-in 1s var(--ease) 0.15s both; }
.worlds #feeling.s1 .fl1, .worlds #feeling.s2 .fl2 { opacity: 0.34; }
.tape { width: 100%; height: auto; overflow: visible; }
.tape-prior { stroke: var(--rule); stroke-width: 1.5; stroke-dasharray: 6 8; }
.tape-label { fill: var(--ink-muted); font: 14px var(--mono); text-anchor: end; }
.tape-line { fill: none; stroke: var(--neg); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.tape-head { fill: var(--neg); }

/* ── W1 · The rule ──────────────────────────────────────────────────────────────────────────────────────────── */

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-copy .st1:nth-child(2) { transition-delay: 70ms; }
.hero-copy .st1:nth-child(3) { transition-delay: 140ms; }
.hero-copy .st1:nth-child(4) { transition-delay: 210ms; }
.hero-card { display: grid; gap: 16px; padding: 26px; box-shadow: var(--lift); }
.hero-card .bubble { margin-left: auto; }
.rule-line { padding: 16px; border-radius: 10px; background: var(--surface); text-align: center; font-size: 1.05rem; }
.wait { display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 0.85rem; }
.wait .spacer { flex: 1; }
.waiting::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--warn);
  animation: breathe 2s ease-in-out infinite;
}

/* ── W2 · Ask ───────────────────────────────────────────────────────────────────────────────────────────────── */

.chat { display: grid; grid-template-rows: auto 1fr auto; height: min(580px, calc(100svh - 170px)); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.chat-head .unemo { width: 28px; height: 28px; }
.chat-head p { display: grid; line-height: 1.25; }
.chat-head b { font-weight: 500; font-size: 0.92rem; }
.chat-head span { color: var(--ink-muted); font-size: 0.74rem; }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; min-height: 0; overflow: hidden; }
.msg-user { align-self: flex-end; max-width: 82%; padding: 9px 13px; border-radius: 14px 14px 4px 14px; background: var(--surface); font-size: 0.9rem; }
.chat-status { display: flex; align-items: center; gap: 8px; color: var(--ink-muted); font-size: 0.76rem; }
.chat-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-teal); animation: breathe 1.4s ease-in-out infinite; }
.answer { padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px; }
.answer header { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; }
.answer header b { font-weight: 500; }
.answer header .chip { margin-left: auto; }
.day { display: block; width: 100%; height: auto; max-height: 27svh; margin-top: 6px; }
.day .u { fill: var(--chart-up); stroke: var(--chart-up); }
.day .d { fill: var(--chart-down); stroke: var(--chart-down); }
.day path { stroke-width: 1.4; }
.day .prior { stroke: var(--ink-muted); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.6; }
.gapband { fill: color-mix(in srgb, var(--neg) 16%, transparent); }
.worlds .day [data-reveal] > * { transform: scaleY(0.15); transform-box: fill-box; transform-origin: center bottom; transition-duration: 0.45s; }
.worlds .day [data-reveal] > .on { transform: none; }
.answer-meta { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; }
.figure { font-size: 1.35rem; }
.fan { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mini-card { display: grid; gap: 2px; min-width: 0; padding: 7px 9px; border-radius: 10px; background: var(--surface); font-size: 0.7rem; }
.mini-card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-card b { font-weight: 500; }
.mini-card span { color: var(--ink-muted); font-family: var(--mono); }
.worlds .fan.st5 { transform: none; }
.worlds .fan .mini-card { transition: transform 0.8s var(--spring), opacity 0.6s var(--ease); }
.worlds #ask:not(.s5) .fan .mini-card { opacity: 0; transform: translateY(-28px) scale(0.9); }
.fan .mini-card:nth-child(2) { transition-delay: 60ms; }
.fan .mini-card:nth-child(3) { transition-delay: 120ms; }
.fan .mini-card:nth-child(4) { transition-delay: 180ms; }
.chat-input { margin: 0 12px 12px; padding: 11px 14px; border: 1px solid var(--rule); border-radius: 12px; color: var(--ink-muted); font-size: 0.85rem; }

/* ── W3 · The Lab ───────────────────────────────────────────────────────────────────────────────────────────── */

.ide { display: grid; grid-template-columns: 220px 1fr; height: min(470px, calc(100svh - 290px)); }
.assist { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--surface); font-size: 0.84rem; }
.assist-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.assist-head b { font-weight: 500; }
.assist-head .unemo { width: 24px; height: 24px; }
.assist .bubble { background: var(--raised); }
.reply { color: var(--ink); }
.work { display: grid; grid-template-rows: auto 1fr; min-width: 0; min-height: 0; padding: 12px 18px; }
.tabs { display: flex; gap: 16px; color: var(--ink-muted); font-size: 0.85rem; }
.tabs span { padding-bottom: 6px; transition: color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.tabs .on, .tabs .t-code, .worlds #lab.s1 .tabs .t-dossier, html:not(.worlds) .tabs .t-dossier { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.worlds #lab.s1 .tabs .t-code, html:not(.worlds) .tabs .t-code { color: var(--ink-muted); box-shadow: none; }
.panes { display: grid; min-height: 0; padding-top: 10px; }
.pane { grid-area: 1 / 1; min-width: 0; min-height: 0; overflow: hidden; }
html:not(.worlds) .panes { display: block; }
html:not(.worlds) .pane + .pane { margin-top: 18px; }
html:not(.worlds) .until1.keep { display: revert; }
.strat { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 500; }
.code { list-style: none; margin-top: 10px; padding: 0; counter-reset: ln; font-size: 0.84rem; line-height: 1.7; overflow: hidden; }
.code li { counter-increment: ln; min-height: 1.7em; white-space: pre; }
.code li::before { content: counter(ln); display: inline-block; width: 2.2em; color: var(--ink-muted); opacity: 0.55; }
.code .kw { color: var(--accent); }
.code .fn { font-weight: 500; }
.code .str { color: var(--pos); }
.code .num { color: var(--warn); }
.code .cm { color: var(--ink-muted); }
.console { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--rule); color: var(--ink-muted); font-size: 0.76rem; }
.dossier { display: grid; grid-template-columns: 1fr 1.05fr; gap: 20px; }
.hyp div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 6px 0; border-top: 1px solid var(--rule); font-size: 0.82rem; }
.hyp dt { color: var(--ink-muted); font-size: 0.74rem; padding-top: 1px; }
.lineage-k { margin-top: 12px; }
.lineage { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 0.8rem; }
.lineage li { position: relative; display: grid; grid-template-columns: 9px 1fr auto; gap: 8px; align-items: center; }
.lineage li.child { margin-left: 20px; }
.lineage li.child::before {
  content: "";
  position: absolute;
  left: -15px;
  top: -14px;
  width: 11px;
  height: 22px;
  border-left: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-bottom-left-radius: 6px;
}
.lineage li > span:last-child { font-size: 0.72rem; }
.node { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-muted); }
.on-branch .node { background: var(--pos); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pos) 22%, transparent); }
.branches { display: block; width: 100%; height: auto; max-height: 120px; }
.branches path { fill: none; stroke-linecap: round; }
.branches .b-20 { stroke: var(--ink-muted); stroke-width: 1.4; opacity: 0.7; }
.branches .b-10 { stroke: var(--chart-down); stroke-width: 1.4; opacity: 0.75; }
.branches .b-15 { stroke: var(--pos); stroke-width: 2.4; }
.cmp { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 0.7rem; white-space: nowrap; }
.cmp th { padding: 4px 8px 4px 0; border-bottom: 1px solid var(--rule); color: var(--ink-muted); font-weight: 400; text-align: left; }
.cmp td { padding: 5px 8px 5px 0; border-bottom: 1px solid var(--rule); }
.cmp tr.on-branch td { font-weight: 500; }

/* ── W4 · Prove ─────────────────────────────────────────────────────────────────────────────────────────────── */

.bt { display: grid; gap: 10px; padding: 16px 20px 18px; }
.containers { display: flex; gap: 6px; }
.containers i { position: relative; width: 26px; height: 18px; border: 1px solid var(--rule); border-radius: 5px; background: var(--surface); }
.containers i::after { content: ""; position: absolute; inset: 5px 9px 6px; border-right: 1.5px solid var(--pos); border-bottom: 1.5px solid var(--pos); transform: rotate(45deg) scale(0); transition: transform 0.4s var(--spring) 0.2s; }
.worlds .containers i.on, html:not(.worlds) .containers i { background: color-mix(in srgb, var(--pos) 18%, var(--surface)); border-color: color-mix(in srgb, var(--pos) 40%, var(--rule)); }
.worlds .containers i.on::after, html:not(.worlds) .containers i::after { transform: rotate(45deg) scale(1); }
.equity { display: block; width: 100%; height: auto; max-height: 30svh; }
.spray path { fill: none; stroke: var(--ink-muted); stroke-width: 1.3; opacity: 0.5; transition: opacity 0.9s var(--ease); }
.worlds #prove.s2 .spray path, html:not(.worlds) .spray path { opacity: 0.12; }
.baseline { fill: none; stroke: var(--ink-muted); stroke-width: 1.4; stroke-dasharray: 5 5; }
.winner { fill: none; stroke: var(--pos); stroke-width: 2.6; stroke-linejoin: round; }
.dd { display: block; width: 100%; height: auto; max-height: 6svh; border-top: 1px solid var(--rule); }
.dd path { fill: color-mix(in srgb, var(--neg) 22%, transparent); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.metrics p { padding: 8px 10px; border-radius: 8px; background: var(--surface); }
.metrics span { display: block; color: var(--ink-muted); font-size: 0.7rem; }
.metrics strong { font-weight: 500; font-size: 1.05rem; }
.sim { font-size: 0.8rem; }
.sim b { font-weight: 500; }
.actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ── W5 · The market ────────────────────────────────────────────────────────────────────────────────────────── */

.mgrid { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 14px; align-items: start; }
.mgrid .card { padding: 14px 16px; }
.mgrid h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 0.92rem; }
.regime { grid-column: 1; grid-row: 1; }
.week-card { grid-column: 1; grid-row: 2; }
.sectors { grid-column: 2; grid-row: 1; }
.momentum { grid-column: 2; grid-row: 2; }
.exposure { grid-column: 3; grid-row: 1 / span 2; }
.switch { display: inline-flex; gap: 2px; margin-left: auto; padding: 2px; border-radius: 999px; background: var(--surface); font-size: 0.68rem; font-weight: 400; }
.switch > * { padding: 2px 8px; border-radius: 999px; color: var(--ink-muted); }
.switch b { background: var(--raised); color: var(--ink); font-weight: 500; box-shadow: var(--shadow); }
.quad-wrap { display: grid; grid-template-columns: auto 1fr; gap: 6px 8px; }
.axis { color: var(--ink-muted); font-size: 0.68rem; }
.axis.y { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; }
.axis.x { grid-column: 2; text-align: right; }
.quad { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; container-type: inline-size; }
.quad span { min-height: 46px; padding: 7px 9px; border-radius: 8px; background: var(--surface); color: var(--ink-muted); font-size: 0.72rem; line-height: 1.3; transition: background 0.8s var(--ease), color 0.8s var(--ease); }
.worlds #market.s3 .quad .q1, html:not(.worlds) .quad .q1 { background: color-mix(in srgb, var(--pos) 16%, var(--surface)); color: var(--ink); }
.regime-dot {
  position: absolute;
  left: calc(50% - 22px);
  top: 26px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pos);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--pos) 22%, transparent);
  translate: calc((1 - var(--e, 1)) * 50cqw) 0;
}
.week { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.week li { display: grid; align-content: start; gap: 6px; min-height: 88px; padding: 8px 7px; border-radius: 8px; background: var(--surface); transition: box-shadow 0.6s var(--ease), opacity 0.5s var(--ease), transform 0.55s var(--ease); }
.worlds #market.s3 .week li.today, html:not(.worlds) .week li.today { box-shadow: inset 0 0 0 1px var(--accent); }
.week .day { color: var(--ink-muted); font-size: 0.72rem; }
.week .tag { width: fit-content; padding: 1px 6px; border-radius: 999px; background: var(--raised); font-size: 0.64rem; }
.week .ev { font-size: 0.74rem; line-height: 1.25; }
.heat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; font-size: 0.72rem; }
.heat span { display: grid; gap: 1px; padding: 7px 8px; border-radius: 7px; }
.heat b { font-weight: 500; font-size: 0.78rem; }
.heat .u2 { background: color-mix(in srgb, var(--chart-up) 42%, var(--raised)); }
.heat .u1 { background: color-mix(in srgb, var(--chart-up) 22%, var(--raised)); }
.heat .u0 { background: var(--surface); }
.heat .d1 { background: color-mix(in srgb, var(--chart-down) 22%, var(--raised)); }
.heat .d2 { background: color-mix(in srgb, var(--chart-down) 42%, var(--raised)); }
.heat .spy { box-shadow: inset 0 0 0 1px var(--ink-muted); }
.worlds .heat[data-reveal] > * { transform: perspective(240px) rotateX(-80deg); transform-origin: center top; transition-duration: 0.5s, 0.6s; }
.worlds .heat[data-reveal] > .on { transform: none; }
.mom-head, .mom li { display: grid; grid-template-columns: 16px 1fr 34px 42px 36px; gap: 6px; align-items: center; }
.mom-head { padding-bottom: 4px; color: var(--ink-muted); font-size: 0.66rem; }
.mom { list-style: none; padding: 0; font-size: 0.74rem; }
.mom li { padding: 5px 0; border-top: 1px solid var(--rule); }
.mom li > span:first-child { color: var(--ink-muted); }
.mom b { font-weight: 500; text-align: right; }
.mom .also:not(:empty) { width: fit-content; padding: 0 5px; border-radius: 4px; background: var(--surface); font-size: 0.62rem; }
.gex { display: block; width: 100%; height: auto; }
.gex text { fill: var(--ink-muted); font: 10px var(--mono); text-anchor: end; }
.gex .bars-up rect { fill: var(--chart-up); }
.gex .bars-down rect { fill: var(--chart-down); }
.worlds .gex .bars-up.k { transform: scaleX(var(--e)); transform-box: fill-box; transform-origin: left center; }
.worlds .gex .bars-down.k { transform: scaleX(var(--e)); transform-box: fill-box; transform-origin: right center; }
.gex .zero { stroke: var(--rule); }
.gex .spot line { stroke: var(--accent); stroke-dasharray: 3 3; }
.gex .spot text { fill: var(--accent); }
.heatgrid rect { fill: var(--accent); }
.heatgrid .h1 { opacity: 0.06; }
.heatgrid .h2 { opacity: 0.12; }
.heatgrid .h3 { opacity: 0.2; }
.check::before { content: "✓"; display: inline-grid; place-items: center; width: 14px; height: 14px; margin-right: 6px; border-radius: 4px; background: var(--accent); color: var(--raised); font-size: 10px; }

/* ── W6 · The flow ──────────────────────────────────────────────────────────────────────────────────────────── */

.term { display: grid; grid-template-columns: 160px 1.05fr 1fr; gap: 12px; align-items: start; }
.panel { min-width: 0; min-height: 0; padding: 12px 14px; border-radius: 12px; background: var(--raised); box-shadow: var(--shadow); overflow: hidden; }
.worlds .term .panel { transition: opacity 0.45s var(--ease), transform 0.6s var(--spring); }
.worlds #flow:not(.s1) .watch { transform: translate(-22px, 16px) scale(0.96); }
.worlds #flow:not(.s2) .chart { transform: translate(0, 26px) scale(0.96); }
.worlds #flow:not(.s3) .tape { transform: translate(22px, 16px) scale(0.96); }
.watch { background: var(--surface); box-shadow: none; }
.watch ul { list-style: none; padding: 0; display: grid; gap: 3px; font-size: 0.78rem; }
.watch li { display: flex; justify-content: space-between; padding: 6px 8px; border-radius: 6px; }
.watch li.on { background: var(--raised); }
.flow-chip { margin-left: auto !important; float: right; padding: 2px 8px; font-size: 0.7rem; }
.flow-chip b { color: var(--pos); font-weight: 500; }
.prints { display: block; width: 100%; height: auto; }
.prints .bars-up { fill: var(--chart-up); stroke: var(--chart-up); }
.prints .bars-down { fill: var(--chart-down); stroke: var(--chart-down); }
.bubbles .call { fill: color-mix(in srgb, var(--chart-up) 35%, transparent); stroke: var(--chart-up); }
.bubbles .put { fill: color-mix(in srgb, var(--chart-down) 35%, transparent); stroke: var(--chart-down); }
.worlds .bubbles[data-reveal] > * { transform: scale(0); transform-box: fill-box; transform-origin: center; transition: opacity 0.4s var(--ease), transform 0.7s var(--spring); }
.worlds .bubbles[data-reveal] > .on { transform: none; }
.intensity { display: block; width: 100%; height: auto; margin-top: 4px; }
.intensity line { stroke: var(--rule); }
.intensity .calls rect { fill: var(--chart-up); opacity: 0.7; }
.intensity .puts rect { fill: var(--chart-down); opacity: 0.7; }
.worlds .intensity .calls.k { transform: scaleY(var(--e)); transform-box: fill-box; transform-origin: center bottom; }
.worlds .intensity .puts.k { transform: scaleY(var(--e)); transform-box: fill-box; transform-origin: center top; }
.legend { margin-top: 4px; color: var(--ink-muted); font-size: 0.66rem; }
.legend b { color: var(--ink); font-weight: 500; }
.live::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--pos); animation: breathe 1.6s ease-in-out infinite; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.filters .chip { padding: 2px 9px; font-size: 0.72rem; }
.ft { font-size: 0.7rem; }
.ft-head, .ft-rows > p { display: grid; grid-template-columns: 58px 36px 1fr 40px 58px 50px 64px; gap: 6px; align-items: center; padding: 6px 2px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.ft-head { color: var(--ink-muted); }
.ft-rows { display: flex; flex-direction: column-reverse; }
.ft-rows > p b { font-weight: 500; }
.worlds .ft-rows[data-reveal] > * { transform: translateY(-10px); }
.worlds .ft-rows[data-reveal] > .on { transform: none; animation: flash 1.4s var(--ease); }
.side, .flag { width: fit-content; padding: 1px 5px; border-radius: 4px; background: var(--surface); font-size: 0.64rem; }
.flag { color: var(--accent); }

/* ── W7 · ⌘K ────────────────────────────────────────────────────────────────────────────────────────────────── */

.pal-wrap { width: min(640px, 100%); }
.palette { text-align: left; border-radius: 16px; background: var(--raised); box-shadow: var(--lift); overflow: hidden; transform-origin: 50% 30%; }
.worlds .pal-wrap.st1 { transition: opacity 0.6s var(--ease), transform 0.8s var(--spring); }
.worlds #cmdk:not(.s1) .pal-wrap { transform: translateY(-36px) scale(0.96); }
.pal-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--rule); font-size: 1rem; }
.pal-search { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--ink-muted); stroke-width: 2; stroke-linecap: round; }
.pal-chips { display: inline-flex; gap: 6px; }
.pc { padding: 3px 8px; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--ink); font-size: 0.78rem; }
.worlds .pal-chips .pc { transition: opacity 0.35s var(--ease), transform 0.5s var(--spring); }
.worlds .world:not(.s2) .pc.st2, .worlds .world:not(.s3) .pc.st3, .worlds .world:not(.s4) .pc.st4, .worlds .world:not(.s5) .pc.st5 { width: 0; padding: 0; margin-left: -6px; transform: scale(0.6); }
.pal-field { flex: 1; min-width: 0; color: var(--ink); white-space: nowrap; }
.ph { color: var(--ink-muted); }
kbd { padding: 2px 7px; border: 1px solid var(--rule); border-radius: 6px; color: var(--ink-muted); font-size: 0.72rem; }
.pal-list { display: grid; min-height: 188px; padding: 8px; }
.pal-sec { grid-area: 1 / 1; }
.sec { padding: 8px 10px 4px; color: var(--ink-muted); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }
.row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 10px; border-radius: 8px; font-size: 0.88rem; }
.row b { font-weight: 500; }
.row span { color: var(--ink-muted); font-size: 0.8rem; }
.row.sel { background: var(--surface); }
.row.go { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }

/* ── W8 · Options ───────────────────────────────────────────────────────────────────────────────────────────── */

.opt-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; height: min(480px, calc(100svh - 190px)); }
.chain, .strategy { display: grid; grid-template-rows: auto 1fr; gap: 8px; min-height: 0; padding: 12px 14px; }
.strategy { grid-template-rows: auto auto auto auto 1fr auto; box-shadow: var(--shadow); }
.tabs .exp { margin-left: auto; }
.ch { min-height: 0; overflow: hidden; font-size: 0.7rem; container-type: inline-size; }
.ch-sides { display: flex; justify-content: space-between; color: var(--ink-muted); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; }
.ch-head, .ch-rows > p { display: flex; align-items: center; gap: 4px; padding: 5px 2px; text-align: right; }
.ch-head > *, .ch-rows > p > * { flex: 1; }
.ch-head > b, .ch-rows > p > b { flex: 0 0 62px; text-align: center; font-weight: 500; }
.ch-head { color: var(--ink-muted); border-bottom: 1px solid var(--rule); }
.ch-rows > p { border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent); }
.ch-rows > p.itm { background: linear-gradient(to right, color-mix(in srgb, var(--accent) 8%, transparent) 45%, transparent 45%); }
.ch-rows > .spot-row { display: block; position: relative; height: 0; padding: 0; border-bottom: 0; border-top: 1px dashed var(--accent); }
.spot-row span { position: absolute; right: 50%; top: -9px; transform: translateX(50%); padding: 0 6px; background: var(--raised); color: var(--accent); }
.pick { border-radius: 4px; transition: background 0.5s var(--ease), color 0.5s var(--ease); }
.worlds #options.s2 .leg-buy .pick, html:not(.worlds) .leg-buy .pick { background: color-mix(in srgb, var(--pos) 22%, transparent); color: var(--ink); }
.worlds #options.s3 .leg-sell .pick, html:not(.worlds) .leg-sell .pick { background: color-mix(in srgb, var(--neg) 20%, transparent); color: var(--ink); }
@container (max-width: 470px) { .w7 { display: none; } }
@container (max-width: 340px) { .w5 { display: none; } }
.legs { list-style: none; padding: 0; display: grid; gap: 6px; font-size: 0.78rem; }
.legs li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: var(--surface); }
.legs .px { margin-left: auto; }
.pill-buy, .pill-sell { padding: 1px 6px; border-radius: 4px; font-size: 0.64rem; font-weight: 500; }
.pill-buy { background: color-mix(in srgb, var(--pos) 22%, transparent); color: var(--pos); }
.pill-sell { background: color-mix(in srgb, var(--neg) 20%, transparent); color: var(--neg); }
.payoff { display: block; width: 100%; height: auto; min-height: 0; max-height: 24svh; }
.payoff path { fill: none; stroke-linejoin: round; }
.payoff .zero { stroke: var(--rule); }
.payoff .spotline { stroke: var(--accent); stroke-dasharray: 3 4; opacity: 0.7; }
.pay-call { stroke: var(--ink-muted); stroke-width: 1.6; stroke-dasharray: 5 5; }
.pay-spread { stroke: var(--pos); stroke-width: 2.6; }
.be { fill: var(--raised); stroke: var(--pos); stroke-width: 2; }
.pm { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; font-size: 0.76rem; }
.pm div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-top: 1px solid var(--rule); }
.pm dt { color: var(--ink-muted); }

/* ── W9 · The gate ──────────────────────────────────────────────────────────────────────────────────────────── */

.gate { display: grid; }
.worlds .gate > * { grid-area: 1 / 1; }
html:not(.worlds) .gate { gap: 14px; }
.cockpit, .supervise { display: grid; gap: 14px; align-content: start; align-items: start; }
.cockpit { grid-template-columns: 0.8fr 1.1fr 1.1fr; transition: opacity var(--step) var(--ease), transform var(--step) var(--ease); }
.worlds #gate.s6 .cockpit { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.supervise { grid-template-columns: 1fr 1fr; }
.gate h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pulse-heart { width: 15px; height: 15px; fill: var(--neg); transform-origin: 50% 55%; animation: emotrade-heartbeat 2s ease-in-out infinite; }
.today { display: flex; align-items: baseline; gap: 10px; margin: 6px 0; font-size: 1.5rem; }
.today .muted { font: 400 0.78rem Geist, system-ui, sans-serif; }
.today strong { font-weight: 500; }
.today > span:last-child { font-size: 0.9rem; }
.feed ol { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 0.8rem; }
.feed li { display: grid; grid-template-columns: 42px 1fr; gap: 8px; }
.feed time { color: var(--ink-muted); font: 0.72rem var(--mono); padding-top: 1px; }
.attention { display: grid; grid-template-rows: auto 1fr; }
.attention > .sheet, .attention > .calm { grid-row: 2; grid-column: 1; }
.sheet { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--rule); border-radius: 12px; }
.sheet-cap { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.74rem; }
.expires { padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--warn) 14%, var(--raised)); color: var(--warn); font: 0.7rem var(--mono); }
.expires b { font-weight: 500; }
.sheet-title { font-size: 1.1rem; font-weight: 500; }
.sheet-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.press { transition: transform 0.25s var(--ease), box-shadow 0.4s var(--ease); }
.worlds #gate.s4 .press { transform: scale(0.94); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 24%, transparent); }
.calm { align-self: center; color: var(--ink-muted); font-size: 0.9rem; }
html:not(.worlds) .attention .sheet { display: none; }
.seg { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 999px; background: var(--surface); font-size: 0.76rem; text-align: center; }
.seg span { position: relative; z-index: 1; padding: 6px 4px; color: var(--ink-muted); transition: color 0.5s var(--ease); }
.seg-knob { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 999px; background: var(--raised); box-shadow: var(--shadow); transition: transform 0.8s var(--spring); }
.worlds #gate.s7 .seg-knob { transform: translateX(100%); }
.worlds #gate.s8 .seg-knob, html:not(.worlds) .seg-knob { transform: translateX(200%); }
.worlds #gate:not(.s7) .s-auto, .worlds #gate.s7:not(.s8) .s-notify, .worlds #gate.s8 .s-approve, html:not(.worlds) .s-approve { color: var(--ink); }
.hint { margin: 8px 0 12px; color: var(--ink-muted); font-size: 0.8rem; }
.ladder { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ladder li { position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 8px; border-radius: 10px; background: var(--surface); text-align: center; }
.ladder li + li::before { content: "→"; position: absolute; left: -17px; top: 50%; transform: translateY(-50%); color: var(--ink-muted); }
.ladder strong { font-weight: 500; font-size: 0.84rem; }
.ladder span { color: var(--ink-muted); font-size: 0.7rem; }
.ladder .on { background: color-mix(in srgb, var(--pos) 16%, var(--surface)); }
.ladder .on strong { color: var(--pos); }
.note { color: var(--ink-muted); font-size: 0.8rem; }
.limits dl { display: grid; margin-top: 10px; }
.limits dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-top: 1px solid var(--rule); }
.limits dt { font-size: 0.84rem; }
.limits dt span { display: block; color: var(--ink-muted); font-size: 0.72rem; }
.breach { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding: 10px; border-radius: 10px; background: var(--surface); font-size: 0.76rem; }
.halt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; font-size: 0.78rem; }

/* ── Questions, close, footer ───────────────────────────────────────────────────────────────────────────────── */

.band, .close, .foot { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.band { padding: 96px 0 40px; }
.faq { max-width: 760px; margin-top: 24px; border-bottom: 1px solid var(--rule); }
.faq details { padding: 16px 0; border-top: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; font-weight: 500; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-muted); transition: transform var(--dur) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 52ch; margin-top: 8px; color: var(--ink-muted); }
.close { padding: 88px 0 72px; }
.close h2 { margin-top: 18px; }
.close p { margin-top: 8px; color: var(--ink-muted); }
.foot { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 28px; border-top: 1px solid var(--rule); color: var(--ink-muted); }

/* ── The logo (client/src/components/ui/EmotradeLogo.tsx) ──────────────────────────────────────────────────── */

.emotrade-logo { display: inline-flex; align-items: baseline; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-weight: 900; letter-spacing: -0.04em; line-height: 1; color: currentColor; }
.emotrade-logo-text { display: inline-block; }
.emotrade-logo-o { display: inline-flex; align-items: baseline; justify-content: center; width: 0.72em; height: 0.72em; margin: 0 -0.04em; vertical-align: baseline; }
.emotrade-logo-o svg { display: block; width: 100%; height: 100%; overflow: visible; }
.emotrade-heart { fill: var(--pos); transform-origin: 50px 54px; animation: emotrade-heartbeat 2s ease-in-out infinite; }
.wordmark .emotrade-logo { font-size: 24px; }
.close .wordmark .emotrade-logo { font-size: 32px; }
@keyframes emotrade-heartbeat {
  0% { transform: scale(1); }
  15% { transform: scale(1.15); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
  100% { transform: scale(1); }
}

/* ── Unemotional (client/src/features/assistant/ui/UnemotionalIcon.tsx): moods set by worlds.js ─────────────────
   The app's r and d: path() keyframes are rewritten as transforms, which every engine animates. */

.unemo { overflow: visible; color: var(--ink); }
.unemo * { transition: opacity 0.35s ease, stroke 0.35s ease, fill 0.35s ease; }
.unemo .ub-node { fill: var(--brand-teal); transform-box: fill-box; transform-origin: center; }
.unemo .ub-horizon-line, .unemo .ub-stream-wave { stroke: var(--brand-teal); }
.unemo .ub-exec-reticle circle { stroke: var(--brand-teal-soft); }
.unemo .ub-inflow-ring { stroke: var(--brand-sky); transform-box: fill-box; transform-origin: center; }
.unemo .ub-hemi-group, .unemo .ub-eyes, .unemo .ub-exec-reticle, .unemo .ub-stream-wave { transform-box: view-box; transform-origin: 48px 48px; }
.ub-stop-a { stop-color: var(--brand-teal); }
.ub-stop-b { stop-color: var(--brand-sky); }
.ub-stop-c { stop-color: var(--brand-teal-deep); }

.unemo[data-mood="idle"] .ub-hemi-group { animation: ub-breathe 4.2s ease-in-out infinite; }
.unemo[data-mood="idle"] .ub-node { animation: ub-idle-node 3.6s ease-in-out infinite; }
.unemo[data-mood="idle"] .ub-node-tr { animation-delay: 0.9s; }
.unemo[data-mood="idle"] .ub-node-br { animation-delay: 1.8s; }
.unemo[data-mood="idle"] .ub-node-bl { animation-delay: 2.7s; }
.unemo[data-mood="idle"] .ub-eyes { animation: ub-blink 4.5s ease-in-out infinite; }
@keyframes ub-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
@keyframes ub-idle-node { 0%, 100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.44); opacity: 1; fill: var(--brand-teal-soft); } }
@keyframes ub-blink { 0%, 46% { transform: scaleY(1); } 48% { transform: scaleY(0.12); } 50%, 100% { transform: scaleY(1); } }

.unemo[data-mood="thinking"] .ub-hemi-group { animation: ub-levitate 2s ease-in-out infinite; }
.unemo[data-mood="thinking"] .ub-node { animation: ub-think-node 1.4s ease-in-out infinite; }
.unemo[data-mood="thinking"] .ub-node-tr { animation-delay: 0.35s; }
.unemo[data-mood="thinking"] .ub-node-br { animation-delay: 0.7s; }
.unemo[data-mood="thinking"] .ub-node-bl { animation-delay: 1.05s; }
.unemo[data-mood="thinking"] .ub-horizon-line { stroke-dasharray: 4 2; animation: ub-think-horizon 1.4s ease-in-out infinite; }
.unemo[data-mood="thinking"] .ub-eyes { animation: ub-think-eyes 2.8s ease-in-out infinite; }
.unemo[data-mood="thinking"] .ub-center-glow { opacity: 0.65; }
@keyframes ub-levitate { 0%, 100% { transform: translateY(0) scale(1.02); } 50% { transform: translateY(-1.5px) scale(1.04); } }
@keyframes ub-think-node { 0%, 100% { transform: scale(0.88); opacity: 0.35; fill: var(--brand-sky); } 30% { transform: scale(1.84); opacity: 1; fill: var(--brand-violet); } 60% { transform: scale(1.12); opacity: 0.6; fill: var(--brand-teal); } }
@keyframes ub-think-horizon { 0%, 100% { stroke-dashoffset: 0; stroke: var(--brand-violet); } 50% { stroke-dashoffset: 12; stroke: var(--brand-sky); } }
@keyframes ub-think-eyes { 0%, 40% { transform: translateX(-1.2px) scaleY(0.9); } 50%, 90% { transform: translateX(1.2px) scaleY(0.9); } 95%, 100% { transform: none; } }

.unemo[data-mood="retrieving"] .ub-track-top, .unemo[data-mood="retrieving"] .ub-track-bot { stroke: var(--brand-sky); stroke-dasharray: 3 3; animation: ub-flow 0.8s linear infinite; }
.unemo[data-mood="retrieving"] .ub-node { animation: ub-retrieve-node 0.8s ease-in-out infinite alternate; }
.unemo[data-mood="retrieving"] .ub-inflow-ring { animation: ub-inflow 1.6s cubic-bezier(0.1, 0.7, 0.1, 1) infinite; }
.unemo[data-mood="retrieving"] .ub-eyes { animation: ub-look 1.6s ease-in-out infinite alternate; }
@keyframes ub-flow { from { stroke-dashoffset: 12; } to { stroke-dashoffset: 0; } }
@keyframes ub-retrieve-node { from { transform: scale(0.88); opacity: 0.4; fill: var(--brand-sky); } to { transform: scale(1.68); opacity: 1; fill: var(--brand-teal); } }
@keyframes ub-inflow { 0% { transform: scale(1.27); opacity: 0.8; } 100% { transform: scale(0.45); opacity: 0; } }
@keyframes ub-look { from { transform: translate(-0.8px, -1.2px); } to { transform: translate(0.8px, -1.2px); } }

.unemo[data-mood="executing"] .ub-hemi-group { animation: ub-lock 0.7s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite alternate; }
.unemo[data-mood="executing"] .ub-horizon-line { animation: ub-laser 0.6s ease-in-out infinite alternate; }
.unemo[data-mood="executing"] .ub-exec-reticle { animation: ub-reticle 1.2s cubic-bezier(0.1, 0.8, 0.2, 1) infinite; }
.unemo[data-mood="executing"] .ub-node { fill: var(--brand-teal-soft); transform: scale(1.52); }
.unemo[data-mood="executing"] .ub-eyes { transform: scaleY(0.95); }
@keyframes ub-lock { from { transform: scale(1.02); } to { transform: scale(1.05); } }
@keyframes ub-laser { from { stroke-width: 2.6; stroke: var(--brand-teal); } to { stroke-width: 4.2; stroke: var(--brand-teal-soft); } }
@keyframes ub-reticle { 0% { transform: scale(0.65) rotate(0deg); opacity: 1; } 80% { transform: scale(1.25) rotate(90deg); opacity: 0.35; } 100% { transform: scale(1.4) rotate(90deg); opacity: 0; } }

.unemo[data-mood="streaming"] .ub-stream-wave { opacity: 1; animation: ub-wave 1.2s ease-in-out infinite; }
.unemo[data-mood="streaming"] .ub-horizon-line { opacity: 0; }
.unemo[data-mood="streaming"] .ub-hemi-group { animation: ub-float 2s ease-in-out infinite; }
.unemo[data-mood="streaming"] .ub-eyes-flat { opacity: 0; }
.unemo[data-mood="streaming"] .ub-eyes-zen { opacity: 1; stroke: var(--brand-teal); }
@keyframes ub-wave { 0%, 100% { transform: scaleY(1); stroke: var(--brand-sky); } 50% { transform: scaleY(-1); stroke: var(--brand-teal); } }
@keyframes ub-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }

/* ── Smaller screens ────────────────────────────────────────────────────────────────────────────────────────── */

/* Short laptop screens: the stages scale down so each still fits in one screen. */
@media (min-width: 760px) and (max-height: 860px) { .worlds .layer .frame { zoom: 0.92; } }
@media (min-width: 760px) and (max-height: 760px) { .worlds .layer .frame { zoom: 0.82; } }
@media (min-width: 760px) and (max-height: 660px) { .worlds .layer .frame { zoom: 0.72; } }

@media (max-width: 1100px) {
  .split, .split.wide { grid-template-columns: 1fr; gap: 20px; }
  .split > .copy .lede { max-width: 52ch; }
  .chat { height: min(470px, calc(100svh - 300px)); }
  .mgrid { grid-template-columns: 1fr 1fr; }
  .exposure { grid-column: 1 / -1; grid-row: auto; }
  .exposure .gex { max-height: 22svh; }
  .term { grid-template-columns: 1fr 1fr; }
  .watch { display: none; }
  .opt-grid { height: min(430px, calc(100svh - 300px)); }
}

/* Phones: only the opening is a fixed stage; every other world is part of the document and plays as it scrolls in. */
@media (max-width: 759px) {
  .worlds.flow .world:not(#feeling) { height: auto; padding: 64px 0 16px; }
  .worlds.flow .world:not(#feeling) .layer { position: relative; inset: auto; height: auto; display: block; padding: 0; opacity: 1; pointer-events: auto; }
  .worlds.flow .layer:not(.live) .copy { opacity: 1; transform: none; }
  .worlds.flow .rail { display: none; }
  .worlds.flow:not([data-world="feeling"]) .hud { opacity: 0; }
  .worlds.flow .fx-dive { opacity: 1; transform: none; filter: none; }
  .worlds #feeling { --len: 1.7; }
  .bar, .band, .close, .foot, .frame { width: calc(100% - 32px); }
  .worlds .bar { padding: 14px 16px; }
  .bar-nav { gap: 14px; font-size: 0.92rem; }
  .bar-nav a[href="#ask"] { display: none; }
  .feel { grid-template-columns: 1fr; gap: 20px; min-height: 0; }
  .feel-lines { font-size: clamp(2rem, 9vw, 2.6rem); }
  .tape { max-height: 28svh; }
  .worlds[data-world="feeling"] .hud { bottom: 7svh; left: 20px; font-size: 16px; gap: 12px; }
  .worlds[data-world="feeling"] .hud-heart { width: 38px; height: 38px; }
  .hero, .stack > .copy, .dossier, .supervise, .cockpit, .opt-grid, .mgrid, .term { grid-template-columns: 1fr; }
  .stack > .copy .lede { justify-self: start; text-align: left; margin-top: 12px; }
  .regime, .week-card, .sectors, .momentum, .exposure { grid-column: auto; grid-row: auto; }
  .chat, .ide, .term, .opt-grid { height: auto; }
  .ide { grid-template-columns: 1fr; }
  .assist { display: none; }
  .worlds .panes { display: block; }
  .worlds .pane.until1 { display: none; }
  .code { font-size: 0.72rem; }
  .week { grid-template-columns: 1fr; }
  .week li { grid-template-columns: 36px auto 1fr; align-items: center; min-height: 0; }
  .heat { grid-template-columns: repeat(3, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .ft-head, .ft-rows > p { grid-template-columns: 56px 34px 1fr 54px 48px; }
  .ft .opt { display: none; }
  .ladder { gap: 18px; }
  .pal-input, .pal-chips, .row { flex-wrap: wrap; }
  .row { gap: 2px 14px; }
  .worlds .gate > * { grid-area: auto; }
  .worlds #gate.s6 .cockpit { opacity: 1; transform: none; }
  .gate { gap: 14px; }
  .brandmark { font-size: 56px; }
}

/* Reduced motion: app.js never turns the worlds on; the few loops stop too. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .knob, .moon-fill { transition: none; }
  .emotrade-heart, .pulse-heart, .waiting::before, .live::before, .chat-status::before, .fl1, .unemo * { animation: none !important; }
}

/* ── Request access (ACCESS-REQUEST): the dialog both buttons open (request-access.js) ─────────────────────────── */

html:has(.ra[open]) { overflow: hidden; }
.ra {
  width: min(560px, calc(100% - 32px));
  max-height: min(820px, calc(100svh - 32px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--raised);
  color: var(--ink);
  box-shadow: var(--lift);
  overflow: auto;
  overscroll-behavior: contain;
}
.ra::backdrop { background: color-mix(in srgb, #1c1a16 46%, transparent); backdrop-filter: blur(3px); }
.ra[open] { animation: ra-in 0.32s var(--ease); }
@keyframes ra-in { from { opacity: 0; transform: translateY(12px) scale(0.985); } to { opacity: 1; transform: none; } }
.ra-form, .ra-done { padding: 26px 28px 24px; }
.ra-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ra-head h2 { font-size: 1.5rem; }
.ra-close {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border: 1px solid var(--rule); border-radius: 50%; background: transparent; color: var(--ink-muted); cursor: pointer;
}
.ra-close svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ra-close:hover { color: var(--ink); }
.ra-lede { margin-top: 6px; color: var(--ink-muted); font-size: 0.95rem; }
.ra-body { display: grid; gap: 16px; margin-top: 20px; }
.ra-questions { display: grid; gap: 16px; }
.ra-field { display: grid; gap: 6px; }
.ra-label { display: flex; align-items: baseline; gap: 8px; padding: 0; font-size: 0.86rem; font-weight: 500; }
.ra-label i { color: var(--ink-muted); font-size: 0.76rem; font-weight: 400; }
.ra-field small { color: var(--ink-muted); font-size: 0.76rem; }
.ra input:not([type="radio"]):not([type="checkbox"]), .ra textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.ra textarea { resize: vertical; min-height: 76px; }
.ra input:focus-visible, .ra textarea:focus-visible {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.ra-q { margin: 0; padding: 0; border: 0; min-width: 0; }
.ra-q .ra-label { margin-bottom: 8px; }
.ra-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.ra-choice { position: relative; cursor: pointer; }
.ra-choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ra-choice span {
  display: inline-flex; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px;
  background: var(--surface); color: var(--ink-muted); font-size: 0.84rem;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.ra-choice:hover span { color: var(--ink); }
.ra-choice input:checked + span {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--rule));
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  color: var(--ink);
}
.ra-choice input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 26%, transparent); }
.ra-other { margin-top: 8px; }
.ra .invalid input:not([type="radio"]):not([type="checkbox"]), .ra .invalid textarea { border-color: var(--neg); }
.ra .invalid .ra-choice span { border-color: color-mix(in srgb, var(--neg) 55%, var(--rule)); }
.ra-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ra-loading { font-size: 0.85rem; }
.ra-error { margin-top: 14px; padding: 9px 12px; border-radius: 10px; background: color-mix(in srgb, var(--neg) 12%, var(--surface)); color: var(--neg); font-size: 0.86rem; }
.ra-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; font-size: 0.8rem; }
.ra-foot .pill, .ra-done .pill { margin-top: 0; border: 0; cursor: pointer; }
.ra-foot .pill:disabled { opacity: 0.6; cursor: progress; }
.ra-done { display: grid; justify-items: start; gap: 10px; }
.ra-done[hidden], .ra-form[hidden] { display: none; }
.ra-done h2 { font-size: 1.5rem; outline: none; }
.ra-done p { color: var(--ink-muted); }
.ra-done .pill { margin-top: 10px; }
.ra-done-mark { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: color-mix(in srgb, var(--pos) 16%, var(--surface)); fill: none; stroke: var(--pos); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 759px) {
  .ra { width: 100%; max-width: none; max-height: 92svh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .ra-form, .ra-done { padding: 22px 18px 20px; }
  .ra-foot { flex-direction: column-reverse; align-items: stretch; text-align: center; }
  .ra-foot .pill { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .ra[open] { animation: none; } }
