@font-face { font-family: 'Qvantum'; src: url('/assets/fonts/DINNextLTPro-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Qvantum'; src: url('/assets/fonts/DINNextLTPro-Medium.ttf') format('truetype'); font-weight: 500 700; font-display: swap; }

/* ============================================================================================
   Design tokens – Kevin reference 25.09.2026 (dark navy/black, fine contours, warm gold accents,
   cyan hologram light). Gold = primary action, active navigation, highlights. Status is always
   text + colour, never colour alone. All text colours meet WCAG AA on --bg/--panel.
   ============================================================================================ */
:root {
  --bg: #070B13; --bg-2: #0A0F1A; --panel: #0F1621; --panel-2: #131C2A; --panel-3: #18233400;
  --line: #1F2B3C; --line-2: #2C3B51;
  --text: #F2F4F7; --text-2: #BAC2CE; --text-3: #939DAD;
  --gold: #C9A24D; --gold-hi: #E3C27A; --gold-deep: #7A5C26; --on-gold: #1A1408;
  --gold-grad: linear-gradient(135deg, #B8913F 0%, #E6C77F 100%);
  --cyan: #29C5FF; --cyan-soft: #7FE3FF; --cyan-deep: #1D6FE0;
  --c-resource: #3DDC8F; --c-potential: #F2C94C; --c-lever: #FF7F66; --c-muted: #8E98A8;
  --danger: #FF7B7B; --danger-bg: #2A1216; --ok-bg: #0E2A22;
  /* legacy brand names kept for compatibility */
  --blue: #1D6FE0; --navy: #070B13; --teal: #29C5FF; --paper: var(--bg); --ink: var(--text); --ink-2: var(--text-2);
  --r-lg: 16px; --r-md: 12px; --r-sm: 8px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 32px rgba(0, 0, 0, .35);
  --tap: 48px;
  --focus: 0 0 0 3px var(--cyan-soft);
  font-family: 'Qvantum', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text); background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
/* Text sizes in rem so a larger browser default font also enlarges body text and inputs (16 px default → same as before: 17/18 px). */
body { min-height: 100dvh; line-height: 1.5; font-size: 1.0625rem; overflow-wrap: break-word; background: radial-gradient(90% 60% at 55% 20%, #0D1A33 0%, var(--bg) 60%) fixed, var(--bg); overflow-x: hidden; }
a { color: var(--gold-hi); text-underline-offset: 3px; }
h1, h2, h3 { font-weight: 500; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.005em; color: var(--text); }
h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75em; }
.small { font-size: .88rem; }
.muted { color: var(--text-2); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--cyan-soft); outline-offset: 2px; border-radius: 6px; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }
.skip { position: absolute; left: 8px; top: 0; transform: translateY(calc(-100% - 8px)); z-index: 50; background: var(--gold-grad); color: var(--on-gold); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 500; }
.skip:focus { transform: translateY(8px); } /* hidden by its own height, so it stays hidden at large text sizes */

/* ============================ App shell ============================ */
.app { min-height: 100dvh; display: flex; flex-direction: column; }
.shell { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow-x: clip; } /* a card swinging in from the side never widens the page (r7, 390 px) */
main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px 32px; min-width: 0; }
.app.wide main { max-width: 1320px; }

/* Header (mobile/tablet everywhere, desktop on public screens and in focus mode) */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 12px 16px; max-width: 1320px; margin: 0 auto; width: 100%; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 500; letter-spacing: .14em; font-size: .78rem; text-transform: uppercase; min-height: var(--tap); }
.brand { letter-spacing: 0; text-transform: none; }
/* Combined lockup: original Qvantum mark (white on dark) | gold rule | HUMAN OS */
.lockup { display: inline-flex; align-items: center; gap: 12px; line-height: 1; }
.lockup-mark { height: 44px; width: auto; flex: none; filter: brightness(0) invert(1); }
.lockup-rule { width: 1px; align-self: stretch; margin: 4px 0; background: linear-gradient(180deg, transparent, var(--gold) 20%, var(--gold-hi) 50%, var(--gold) 80%, transparent); }
.lockup-os { display: flex; flex-direction: column; gap: 3px; color: var(--gold-hi); font-weight: 500; text-transform: uppercase; }
.lockup-os span:first-child { font-size: .98rem; letter-spacing: .28em; }
.lockup-os span:last-child { font-size: 1.38rem; letter-spacing: .12em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 379px) { .top { padding-left: 12px; padding-right: 12px; gap: 8px; } .top-right { gap: 6px; } .lockup { gap: 8px; } .lockup-mark { height: 34px; } .lockup-os span:first-child { font-size: .76rem; letter-spacing: .2em; } .lockup-os span:last-child { font-size: 1.04rem; letter-spacing: .1em; } }
@media (min-width: 760px) { .lockup-mark { height: 52px; } .lockup-os span:first-child { font-size: 1.08rem; } .lockup-os span:last-child { font-size: 1.55rem; } }
.lockup.stacked { flex-direction: column; gap: 10px; }
.lockup.stacked .lockup-mark { height: 78px; }
.lockup.stacked .lockup-rule { width: 64%; height: 1px; align-self: center; margin: 0; background: linear-gradient(90deg, transparent, var(--gold-hi), transparent); }
.lockup.stacked .lockup-os { flex-direction: row; gap: .5em; }
.lockup.stacked .lockup-os span:first-child, .lockup.stacked .lockup-os span:last-child { font-size: 1.12rem; letter-spacing: .3em; }
/* Wrap decision uses the brand's minimum width, so at normal text size the header stays on one line as before. */
.top > .brand { flex: 1 1 0%; min-width: min-content; }
.top-right { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-left: auto; min-width: 0; }
@media (max-width: 379px) { .top-right { gap: 6px; } } /* after the base rule, otherwise it never applies */
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; background: var(--panel); }
.lang button { min-height: 40px; min-width: 46px; border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: .85rem; cursor: pointer; padding: 0 12px; }
.lang button[aria-pressed="true"] { background: var(--gold-grad); color: var(--on-gold); font-weight: 500; }
.menu { position: relative; }
.menu-btn { height: var(--tap); min-width: var(--tap); padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { border-color: var(--gold); }
.menu-label { display: none; font-size: .875rem; }
@media (min-width: 420px) { .menu-label { display: inline; } }
.burger { display: grid; gap: 4px; width: 18px; }
.burger i { display: block; height: 2px; border-radius: 1px; background: currentColor; transition: transform .15s ease, opacity .15s ease; }
.burger.x i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.x i:nth-child(2) { opacity: 0; }
.burger.x i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .burger i { transition: none; } }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--gold); color: var(--gold-hi); display: grid; place-items: center; font-weight: 500; flex: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); max-width: calc(100vw - 16px); overflow-y: auto; overscroll-behavior: contain; background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--shadow); min-width: 230px; padding: 6px; z-index: 40; display: flex; flex-direction: column; }
.menu-pop > * { flex: none; }
.menu-pop a, .menu-pop button { display: flex; align-items: center; padding: 10px 14px; border-radius: var(--r-sm); text-decoration: none; color: var(--text); background: none; border: 0; font: inherit; text-align: left; cursor: pointer; min-height: var(--tap); }
.menu-pop a:hover, .menu-pop button:hover { background: rgba(255, 255, 255, .05); }
.menu-pop a[aria-current="page"] { color: var(--gold-hi); }

/* Sidebar (desktop ≥ 1100px, signed-in workspace) */
.side { display: none; }
@media (min-width: 1100px) {
  .app.has-side { flex-direction: row; }
  .app.has-side .top { display: none; }
  /* very large text (HOS 06, 32 px browser text): from above 150 % the sidebar grows with the text so "HUMAN OS" and
     "Profil & Einstellungen" stay inside it; up to 150 % (24 px) exactly 248 px as before (6.5rem + 92px = 248px at 24px) */
  .side { display: flex; flex-direction: column; gap: 18px; width: max(248px, calc(6.5rem + 92px)); flex: none; position: sticky; top: 0; height: 100dvh; overflow-y: auto; padding: 22px 14px 18px; background: linear-gradient(180deg, #0B0F15 0%, #06080C 100%); border-right: 1px solid var(--line); }
}
.side-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0 14px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); }
.side-brand .claim { font-size: .7rem; letter-spacing: .16em; color: var(--text-3); text-transform: uppercase; }
.side-nav { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.side-nav a, .side-nav button { display: flex; align-items: center; gap: 12px; min-height: var(--tap); padding: 0 14px; border-radius: var(--r-sm); color: var(--text-2); text-decoration: none; border: 1px solid transparent; background: none; font: inherit; font-size: .95rem; width: 100%; text-align: left; cursor: pointer; }
.side-nav a:hover, .side-nav button:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.side-nav a[aria-current="page"] { color: #FFF7E6; font-weight: 500; background: linear-gradient(90deg, rgba(201, 162, 77, .45) 0%, rgba(122, 92, 38, .25) 55%, rgba(122, 92, 38, 0) 100%); border-color: rgba(227, 194, 122, .35); }
.side-nav svg { width: 20px; height: 20px; flex: none; }
/* Identity Code (owner 24.10.2026): own entry below the main navigation, gold like the DNA layer – highlighted, not loud.
   Sidebar on desktop, avatar menu below 1100px. Opens the external site in a new tab. */
.ic-nav, .menu-pop a.ic-nav { display: flex; align-items: center; gap: 12px; min-height: 58px; margin-top: 14px; padding: 8px 14px; border-radius: var(--r-md); text-decoration: none; color: var(--text);
  background: linear-gradient(135deg, rgba(201, 162, 77, .24) 0%, rgba(122, 92, 38, .14) 55%, rgba(15, 22, 33, .55) 100%);
  border: 1px solid rgba(227, 194, 122, .6); box-shadow: 0 6px 20px rgba(201, 162, 77, .14); transition: background .15s, border-color .15s; }
.ic-nav:hover, .menu-pop a.ic-nav:hover { border-color: var(--gold-hi); background: linear-gradient(135deg, rgba(201, 162, 77, .34) 0%, rgba(122, 92, 38, .2) 55%, rgba(15, 22, 33, .55) 100%); }
.ic-nav:focus-visible { outline: 3px solid var(--cyan-soft); outline-offset: 2px; }
.ic-nav > svg { width: 22px; height: 22px; flex: none; color: var(--gold-hi); }
.ic-nav .ic-ext { width: 16px; height: 16px; margin-left: auto; color: var(--gold-hi); opacity: .85; }
.ic-nav-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; min-width: 0; }
.ic-nav-label { font-weight: 500; font-size: 1rem; color: #FFF7E6; letter-spacing: .01em; }
.ic-nav-sub { font-size: .75rem; color: var(--text-2); }
.menu-pop a.ic-nav { margin: 6px 0; }
/* Shop (Leon 13.11.2026): own prominent entry right below the main navigation - the filled gold of the primary buttons,
   so it is the one entry that stands out. Same tab (qvantum.world/shop). Sidebar on desktop, menu below 1100px. */
.shop-nav, .menu-pop a.shop-nav { display: flex; align-items: center; gap: 12px; min-height: 58px; margin-top: 14px; padding: 8px 14px; border-radius: var(--r-md); text-decoration: none;
  color: var(--on-gold); background: var(--gold-grad); border: 1px solid var(--gold-hi); box-shadow: 0 8px 24px rgba(201, 162, 77, .28); transition: filter .15s, box-shadow .15s; }
.shop-nav:hover, .menu-pop a.shop-nav:hover { background: var(--gold-grad); filter: brightness(1.06); box-shadow: 0 10px 28px rgba(201, 162, 77, .38); }
.shop-nav:focus-visible { outline: 3px solid var(--cyan-soft); outline-offset: 2px; }
.shop-nav > svg { width: 22px; height: 22px; flex: none; }
.shop-nav .shop-go { width: 18px; height: 18px; margin-left: auto; }
.shop-nav-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; min-width: 0; }
.shop-nav-label { font-weight: 600; font-size: 1rem; letter-spacing: .01em; }
.shop-nav-sub { font-size: .75rem; color: #3A2B10; }
.menu-pop a.shop-nav { margin: 6px 0 0; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.side .lang { display: flex; }
.side .lang button { flex: 1; }
.side-slogan { position: relative; border-radius: var(--r-md); padding: 18px 16px; min-height: 180px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border: 1px solid var(--line);
  /* abstract dusk horizon (CSS only, no photo asset) */
  background: radial-gradient(60% 30% at 70% 42%, rgba(230, 199, 127, .55), transparent 70%),
    linear-gradient(180deg, #0B1119 0%, #1B2638 30%, #5A4A3C 44%, #B8913F 47%, #1C2A3A 49%, #121C29 60%, #0A0F17 100%); }
.side-slogan::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(7, 11, 19, .85) 100%); }
.side-slogan p, .side-slogan span { position: relative; z-index: 1; }
.side-slogan p { margin: 0; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.25; color: var(--text); }
.side-slogan span { margin-top: 8px; font-size: .7rem; letter-spacing: .3em; color: var(--gold-hi); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-top: 1px solid var(--line); }
.side-user .who { min-width: 0; flex: 1; }
.side-user .who strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .who span { font-size: .8rem; color: var(--text-3); }

/* ============================ Buttons ============================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; text-align: center; line-height: 1.2; transition: transform .12s, box-shadow .12s, background .12s, border-color .12s; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn.primary[disabled] { background: var(--panel-2); color: var(--text-3); border-color: var(--line-2); box-shadow: none; }
.btn.lg { min-height: 56px; font-size: 1.05rem; width: 100%; }
.btn.primary { background: var(--gold-grad); color: var(--on-gold); box-shadow: 0 6px 22px rgba(201, 162, 77, .28); }
.btn.primary:hover { box-shadow: 0 8px 28px rgba(227, 194, 122, .38); }
.btn.secondary { background: transparent; border-color: var(--gold); color: var(--gold-hi); }
.btn.secondary:hover { background: rgba(201, 162, 77, .1); }
.btn.ghost, .btn.ghost-light { background: rgba(255, 255, 255, .03); border-color: #4A5C76; color: var(--text); }
.btn.ghost:hover, .btn.ghost-light:hover { border-color: var(--text-3); }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn:focus-visible { outline: 3px solid var(--cyan-soft); outline-offset: 3px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--gold-hi); text-decoration: underline; font: inherit; cursor: pointer; min-height: 32px; }

/* ============================ Landing ============================ */
.landing { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px 0 8px; text-align: center; }
.landing-copy { display: flex; flex-direction: column; align-items: center; }
.landing-copy > * { max-width: 100%; }
.eyebrow { letter-spacing: .24em; font-size: .75rem; text-transform: uppercase; color: var(--gold-hi); margin-bottom: .6em; }
.hook { font-size: clamp(1.9rem, 7.4vw, 3.3rem); font-weight: 400; margin: 0 auto .35em; max-width: min(16em, 100%); text-wrap: balance; }
.cta-stack .btn { min-height: 56px; width: 100%; }
.hook-sub { font-size: clamp(1.05rem, 3.6vw, 1.4rem); color: var(--cyan-soft); margin: 0 auto 1em; max-width: 26em; }
.landing-twin { width: min(300px, 76vw); margin: 0 auto; }
.hook-body { max-width: 32em; margin: 0 auto 1.4em; color: var(--text-2); }
.cta-stack { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 380px; margin: 0 auto; }
.steps { margin-top: 1.4em; font-size: .9rem; color: var(--text-2); letter-spacing: .02em; }
.tagline { font-style: italic; color: var(--text-3); }
@media (min-width: 900px) {
  .app.r-home main, .app.r-home .top { max-width: 1180px; }
  .landing { grid-template-columns: 1.15fr .85fr; align-items: center; text-align: left; gap: 40px; padding-top: 32px; }
  .landing-copy { align-items: flex-start; }
  .landing .hook, .landing .hook-sub, .landing .hook-body { margin-left: 0; }
  .landing .cta-stack { margin: 0; }
  .landing-twin { width: 100%; max-width: 420px; order: 2; }
}

/* ============================ Digital Twin ============================ */
.twin { width: 100%; height: auto; display: block; overflow: visible; }
.tw-outline path { stroke-dasharray: 1400; stroke-dashoffset: 0; }
.tw-r { transition: opacity .25s; }
.tw-r .tw-organ { opacity: .8; }
.twin.has-sel .tw-r.dim { opacity: .35; }
.twin .tw-r.on { opacity: 1; }
.twin .tw-r.on .tw-organ { opacity: 1; }
.twin.selectable .tw-r { cursor: pointer; }
.tw-lead { opacity: .95; transition: opacity .2s; }
.twin.has-sel .tw-lead:not(.on) { opacity: .8; }
.tw-field { opacity: .9; }
.tw-lead.on { opacity: 1; }
.tw-lead.on .tw-lead-line { stroke-width: 2.2; }
/* Decorative layers never take a click; only regions, markers and leader lines (all bound to a domain) do. */
.tw-aura, .tw-rings, .tw-body, .tw-scan { pointer-events: none; }
.twin.selectable .tw-mark, .twin.selectable .tw-lead, .twin.selectable .tw-hit { cursor: pointer; }
.tw-mark .tw-dot { transition: stroke .15s, cx .45s ease, cy .45s ease; }
/* 3D figure live: markers glide from the raster anchors to the projected organ anchors instead of jumping */
.tw-mark-halo, .tw-mark-ring, .tw-hit { transition: cx .45s ease, cy .45s ease; }
@media (prefers-reduced-motion: reduce) { .tw-mark .tw-dot, .tw-mark-halo, .tw-mark-ring, .tw-hit { transition: none; } }
/* Raster figure (owner reference 01.10.2026): fades in during the reveal, soft hologram glow, gentle idle breathing */
.tw-fig { filter: none; } /* the still already carries the hologram glow */
/* Living 3D figure (owner 02.10.2026): WebGL relief of the same asset below the SVG interaction layer. The static
   image is only hidden after the first real frame (data-live=1); otherwise (no WebGL, reduced motion) it stays. */
.tw-wrap { position: relative; width: 100%; }
/* the absolutely positioned canvas would otherwise paint above the in-flow SVG: markers/lines stay on top */
.tw-wrap > .twin { position: relative; z-index: 1; }
.tw-live { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0;
  filter: drop-shadow(0 0 3px rgba(110, 230, 255, .75)) drop-shadow(0 0 12px rgba(40, 190, 255, .55)) drop-shadow(0 0 28px rgba(20, 150, 255, .35)); }
.tw-wrap.is-live { background: radial-gradient(60% 60% at 50% 42%, rgba(41, 197, 255, .16) 0%, rgba(29, 111, 224, .04) 60%, transparent 100%); }
.tw-wrap.is-live .tw-live { opacity: 1; }
.tw-wrap.is-live .tw-fig, .tw-wrap.is-live .tw-aura { visibility: hidden; }
.tw-wrap.is-live[data-phase="0"] .tw-live { opacity: 0; }
.tw-wrap.is-live[data-phase="1"] .tw-live { animation: fadein 1.4s ease-out both; }
.phase-1 .tw-fig { animation: fadein 1.4s ease-out both; }
.phase-3 .tw-mark-halo { animation: pulse 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.tw-hit, .tw-mark-halo { pointer-events: none; }
.twin.selectable .tw-hit { pointer-events: all; }
.twin.has-sel .tw-mark:not(.on) .tw-dot { opacity: .7; }
.twin.selectable .tw-mark:hover .tw-dot { stroke: #F4EBD2; stroke-width: 2; }
.phase-0 .tw-body, .phase-0 .tw-regions, .phase-0 .tw-rings, .phase-0 .tw-lines, .phase-0 .tw-marks { opacity: 0; }
.phase-1 .tw-outline path { animation: draw 1.4s ease-out both; }
.phase-1 .tw-regions, .phase-1 .tw-lines, .phase-1 .tw-marks { opacity: 0; }
.phase-1 .tw-scan, .phase-2 .tw-scan { animation: scan 1.8s ease-in-out infinite; }
.phase-2 .tw-regions, .phase-3.twin:not(.twin-compact) .tw-regions { animation: fadein .7s ease-out both; }
.phase-3 .tw-scan { opacity: 0; }
.twin-compact .tw-scan { display: none; }
/* Human hologram 29.09.2026: slowly drifting inner connection field and softly breathing joint nodes (transform/opacity only) */
.tw-field-2 { transform-box: view-box; transform-origin: 150px 150px; animation: tw-drift 38s linear infinite; }
.tw-joints circle { animation: pulse 3.6s ease-in-out infinite; }
.tw-joints circle:nth-child(2n) { animation-delay: -1.8s; }
.phase-0 .tw-joints, .phase-1 .tw-joints { opacity: 0; }
@keyframes tw-drift { to { transform: rotate(360deg); } }
.tw-rings ellipse { animation: pulse 3.2s ease-in-out infinite; transform-origin: 150px 548px; }
.tw-heart { animation: beat 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes draw { from { stroke-dashoffset: 1400; opacity: .2; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes scan { 0% { transform: translateY(0); } 50% { transform: translateY(500px); } 100% { transform: translateY(0); } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
/* ---- Spatial reveal stage (owner 29.09.2026) – CSS 3D only, transform/opacity animations ---- */
.tw-flow { stroke-dasharray: 7 93; stroke-dashoffset: 0; opacity: 0; filter: drop-shadow(0 0 3px #7FE3FF); }
.phase-3 .tw-flow, .phase-2 .tw-flow { opacity: .9; animation: flow 5.5s linear infinite; }
.phase-3 .tw-flow-2, .phase-2 .tw-flow-2 { opacity: .8; stroke-dasharray: 14 86; animation: flow2 3.2s linear infinite; filter: drop-shadow(0 0 3px #E3C27A); }
.twin-compact .tw-flow { opacity: .55; }
@keyframes flow { to { stroke-dashoffset: -100; } }
@keyframes flow2 { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

.rv3d { --tx: 0; --ty: 0; position: relative; width: 100%; aspect-ratio: 380 / 600; perspective: 900px; perspective-origin: 50% 40%; pointer-events: none; overflow: hidden; contain: paint; }
.landing-twin, .reveal-stage { overflow: hidden; max-width: 100%; }
.rv-cam { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(calc(var(--ty) * -6deg)) rotateY(calc(var(--tx) * 10deg)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.rv-rig { position: absolute; inset: 0; transform-style: preserve-3d; }
.rv-p0 .rv-rig { opacity: 0; }
.rv-reveal.rv-p1 .rv-rig, .rv-reveal.rv-p2 .rv-rig, .rv-reveal.rv-p3 .rv-rig { animation: rv-enter 1.9s cubic-bezier(.16, .84, .26, 1) both; }
.rv-reveal.rv-p3 .rv-rig { animation: rv-enter 1.9s cubic-bezier(.16, .84, .26, 1) both, rv-sway 9s 1.9s ease-in-out infinite; }
.rv-idle .rv-rig { animation: rv-sway 11s ease-in-out infinite; }
@keyframes rv-enter { 0% { opacity: 0; transform: translateZ(-260px) rotateY(-50deg) scale(.82); } 55% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes rv-sway { 0%, 100% { transform: rotateY(-11deg) translateY(0); } 50% { transform: rotateY(11deg) translateY(-6px); } }

.rv-twin { position: absolute; left: 11%; right: 11%; top: 3%; transform: translateZ(30px); }
.rv-twin .twin { filter: drop-shadow(0 0 18px rgba(41, 197, 255, .28)); }
.rv-halo { position: absolute; left: 50%; top: 36%; width: 100%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%) translateZ(-120px); background: radial-gradient(circle, rgba(41, 197, 255, .26) 0%, rgba(29, 111, 224, .1) 38%, rgba(201, 162, 77, .07) 58%, transparent 70%); animation: rv-breathe 5s ease-in-out infinite; }
@keyframes rv-breathe { 0%, 100% { opacity: .65; transform: translate(-50%, -50%) translateZ(-120px) scale(.94); } 50% { opacity: 1; transform: translate(-50%, -50%) translateZ(-120px) scale(1.04); } }

/* Floor: concentric light rings lying flat in 3D space, expanding outwards */
.rv-floor { position: absolute; left: 50%; top: 93%; width: 92%; aspect-ratio: 1; transform: translate(-50%, -50%) rotateX(78deg); transform-style: preserve-3d; }
.rv-floor i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(127, 227, 255, .65); box-shadow: 0 0 24px rgba(41, 197, 255, .45), inset 0 0 24px rgba(41, 197, 255, .3); animation: rv-ripple 3.6s cubic-bezier(.2, .6, .3, 1) infinite; opacity: 0; }
.rv-floor i:nth-child(2) { animation-delay: 1.2s; border-color: rgba(227, 194, 122, .6); box-shadow: 0 0 22px rgba(201, 162, 77, .4); }
.rv-floor i:nth-child(3) { animation-delay: 2.4s; }
@keyframes rv-ripple { 0% { transform: scale(.15); opacity: 0; } 20% { opacity: 1; } 100% { transform: scale(1); opacity: 0; } }

/* Tilted orbits circling the body in real depth (front half passes in front of the twin) */
.rv-orbit { position: absolute; left: 50%; width: 86%; aspect-ratio: 1; transform-style: preserve-3d; }
.rv-orbit.o1 { top: 40%; transform: translate(-50%, -50%) rotateX(74deg) rotateZ(0deg); animation: rv-spin1 16s linear infinite; }
.rv-orbit.o2 { top: 62%; width: 74%; transform: translate(-50%, -50%) rotateX(80deg) rotateY(-14deg); animation: rv-spin2 22s linear infinite; }
.rv-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(127, 227, 255, .45); box-shadow: 0 0 14px rgba(41, 197, 255, .25); }
.o2 .rv-ring { border-color: rgba(227, 194, 122, .7); border-style: dashed; box-shadow: none; }
@keyframes rv-spin1 { to { transform: translate(-50%, -50%) rotateX(74deg) rotateZ(360deg); } }
@keyframes rv-spin2 { to { transform: translate(-50%, -50%) rotateX(80deg) rotateY(-14deg) rotateZ(-360deg); } }
.rv-orb { position: absolute; inset: 0; transform: rotateZ(var(--a)); transform-style: preserve-3d; }
.rv-orb i { position: absolute; left: 100%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: radial-gradient(circle, #fff 0%, var(--c) 45%, transparent 72%); box-shadow: 0 0 12px 2px var(--c); transform: rotateX(-74deg); }
.rv-p0 .rv-orb i, .rv-p1 .rv-orb i { opacity: 0; transform: rotateX(-74deg) scale(0); }
.rv-p2 .rv-orb i, .rv-p3 .rv-orb i, .rv-idle .rv-orb i { opacity: 1; transition: opacity .6s, transform .8s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--a) / 60deg * 110ms); }

/* Rising light particles (depth via translateZ) */
.rv-motes { position: absolute; inset: 0; transform-style: preserve-3d; }
/* each mote is a full-height column (so % transforms mean stage height) with the light point at its foot */
.rv-motes > span { position: absolute; top: 0; bottom: 0; left: var(--x); width: 4px; transform: translateZ(var(--z)); }
.rv-motes i { position: absolute; left: 0; bottom: 4%; width: 4px; height: 4px; border-radius: 50%; background: #BFF2FF; box-shadow: 0 0 8px #29C5FF; opacity: 0; animation: rv-rise var(--d) var(--dl) linear infinite; }
.rv-motes > span:nth-child(3n) i { background: #F4E2B4; box-shadow: 0 0 8px #E3C27A; }
.rv-motes > span { animation: none; }
@keyframes rv-rise { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: .9; } 100% { opacity: 0; transform: translateY(-1500%); } }

/* Build scan: a bright plane sweeping up through the body while it assembles */
.rv-sweep { position: absolute; left: 12%; right: 12%; top: 0; height: 12%; opacity: 0; transform: translateZ(60px); background: linear-gradient(180deg, transparent 0%, rgba(127, 227, 255, .12) 35%, rgba(214, 248, 255, .55) 50%, rgba(127, 227, 255, .12) 65%, transparent 100%); -webkit-mask-image: radial-gradient(50% 50% at 50% 50%, #000 30%, transparent 100%); mask-image: radial-gradient(50% 50% at 50% 50%, #000 30%, transparent 100%); }
.rv-reveal.rv-p1 .rv-sweep, .rv-reveal.rv-p2 .rv-sweep { animation: rv-sweep 1.6s ease-in-out infinite; }
@keyframes rv-sweep { 0% { opacity: 0; transform: translateZ(60px) translateY(400%); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateZ(60px) translateY(-10%); } }
.rv3d .tw-scan, .rv3d .tw-rings { display: none; }
.rv-reveal.rv-p3 .rv-twin { animation: rv-pulse .9s ease-out 1; }
@keyframes rv-pulse { 0% { filter: brightness(1.9) drop-shadow(0 0 26px #7FE3FF); } 100% { filter: none; } }

/* Result rows fly in one after another once the twin stands */
.reveal-list li { opacity: 0; transform: translateY(14px) scale(.97); }
.reveal-list.show li { animation: rv-row .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--k, 0) * 110ms); }
@keyframes rv-row { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal-list li { opacity: 1; transform: none; }
  .rv-cam { transform: none !important; }
  .rv-orb i { opacity: 1 !important; transform: rotateX(-74deg) !important; }
  .rv-floor i:first-child { opacity: .5; transform: scale(.7); }
  .rv-motes, .rv-sweep { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .tw-scan { display: none; } }

/* ============================ Forms ============================ */
.screen { padding: 16px 0 24px; }
.screen.center { display: grid; place-items: center; align-content: center; min-height: 50vh; text-align: center; gap: 12px; }
.form-screen { max-width: 560px; margin: 0 auto; }
.panel, .form-screen > form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); }
form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: .92rem; color: var(--text-2); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], select, input:not([type]) {
  min-height: var(--tap); padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); font: inherit; font-size: 1.0625rem; color: var(--text); background: var(--bg-2); width: 100%; min-width: 0; }
select option { background: var(--panel-2); color: var(--text); }
input:focus, select:focus { border-color: var(--gold); outline: none; box-shadow: var(--focus); }
input[aria-invalid="true"] { border-color: var(--danger); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 359px) { .row2 { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-size: .92rem; color: var(--text-2); margin-bottom: 6px; padding: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row legend { width: 100%; }
.radio-row > * { min-width: 0; max-width: 100%; }
.chip { position: relative; flex-direction: row; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip.sel { border-color: var(--gold); background: rgba(201, 162, 77, .14); color: #FFF7E6; }
.chip:focus-within { outline: 3px solid var(--cyan-soft); outline-offset: 2px; }
.consents { display: flex; flex-direction: column; gap: 12px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 14px; }
.check { flex-direction: row; align-items: flex-start; gap: 12px; color: var(--text); font-size: .92rem; line-height: 1.45; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--gold); }
.check > span { min-width: 0; overflow-wrap: anywhere; }
.check.optional { border-top: 1px dashed var(--line-2); padding-top: 12px; color: var(--text-2); }
.req { color: var(--gold-hi); font-style: normal; font-size: .8rem; }
.err { color: var(--danger); font-weight: 500; }
.hint { color: var(--text-2); font-size: .92rem; }
.form-screen h1 + .muted { margin-bottom: 1.2em; }
.form-screen .center a { display: inline-flex; align-items: center; min-height: var(--tap); }

/* ============================ Assessment (focus mode) ============================ */
.assess { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; min-height: calc(100dvh - 190px); }
.assess-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .82rem; margin-bottom: 10px; }
.section-label { text-transform: uppercase; letter-spacing: .16em; color: var(--gold-hi); font-weight: 500; }
.save-state { color: var(--text-2); min-height: 1.2em; text-align: right; }
.save-state.error { color: var(--danger); }
.save-state.saved::before { content: '✓ '; color: var(--c-resource); }
.save-retry { margin-left: 8px; min-height: 36px; padding: 0 12px; font-size: .8rem; color: var(--text); }
.assess .save-state.error { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold) 0%, var(--gold-hi) 60%, var(--cyan-soft) 100%); transition: width .3s; }
.q-count { font-size: .85rem; color: var(--text-3); margin: 8px 0 18px; }
.q { flex: 1; }
.q h1 { font-size: clamp(1.35rem, 5.2vw, 1.85rem); color: var(--text); }
.options { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.opt { flex-direction: row; align-items: center; gap: 14px; min-height: 56px; padding: 12px 16px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line-2); color: var(--text); font-size: 1rem; cursor: pointer; transition: border-color .12s, background .12s; }
.opt:hover { border-color: var(--text-3); }
.opt input { width: 20px; height: 20px; flex: none; accent-color: var(--gold); }
.opt.sel { border-color: var(--gold); background: linear-gradient(90deg, rgba(201, 162, 77, .18), rgba(201, 162, 77, .05)); box-shadow: 0 0 0 1px var(--gold) inset; }
.opt:focus-within { outline: 3px solid var(--cyan-soft); outline-offset: 2px; }
.opt-exclusive { border-style: dashed; }
/* Single choice moves on by itself: no double-tap zoom delay on quiz options and buttons. */
.opt, .assess-nav .btn { touch-action: manipulation; }
/* Large browser default font relative to the screen (em in media queries = browser default font: 19.5em is 312 px at
   16 px, so normal phones never match; at 32 px it is 624 px): the quiz buttons stack instead of squeezing. */
.assess-nav .btn { min-width: 0; hyphens: auto; overflow-wrap: break-word; }
.slider { margin-top: 28px; }
.slider-val { display: block; text-align: center; font-size: 2.6rem; font-weight: 500; color: var(--gold-hi); margin-bottom: 10px; }
.slider-val.unset { color: var(--text-3); }
input[type="range"] { width: 100%; height: 44px; accent-color: var(--gold); }
.slider-labels { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; color: var(--text-2); }
.slider-labels span:last-child { text-align: right; }
.number { margin-top: 18px; }
.number-row { display: flex; align-items: center; gap: 12px; }
.number-row input { font-size: 1.6rem; max-width: 200px; text-align: center; }
.unit { font-size: 1.1rem; color: var(--text-2); }
.skip-hint { font-size: .85rem; color: var(--text-3); text-align: center; margin: 14px 0 6px; }
.assess-nav { position: sticky; bottom: 0; z-index: 5; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; padding: 14px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(7, 11, 19, 0), rgba(7, 11, 19, .88) 40%); }
@media (max-width: 19.5em) { .assess-nav { grid-template-columns: minmax(0, 1fr); } } /* see .assess-nav .btn above; must follow the base rule */
.assess > h1 { margin-top: 18px; }
/* Early completeness hint (existing MIN_COVERAGE rule, shown while answering) */
.cov-hint { margin: 10px 0 18px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid rgba(227, 194, 122, .45); background: linear-gradient(135deg, rgba(201, 162, 77, .12), rgba(15, 22, 33, .9)); text-align: left; }
.cov-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cov-head h2 { font-size: .95rem; margin: 0; flex: 1 1 180px; color: var(--text); line-height: 1.35; }
.cov-ic { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: var(--on-gold); font-weight: 700; font-size: .85rem; }
.cov-toggle { background: none; border: 0; color: var(--gold-hi); font: inherit; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 40px; padding: 0 4px; }
.cov-body { margin: 8px 0 0; font-size: .92rem; color: var(--text-2); line-height: 1.45; }
.cov-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.cov-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.cov-dom { font-weight: 500; flex: 1 1 140px; min-width: 0; overflow-wrap: anywhere; }
.cov-q { order: 3; flex: 1 1 100%; font-size: .88rem; color: var(--text-2); overflow-wrap: anywhere; margin-top: 4px; }
.cov-q ul { margin: 4px 0 0; padding-left: 1.1em; display: grid; gap: 4px; }
.cov-list .btn { flex: none; }
.cov-ok { color: var(--text-2); font-size: .9rem; }

/* ============================ Safety ============================ */
.safety { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.safety-card, .safety-inline { background: #2A2210; border: 2px solid var(--c-potential); border-radius: var(--r-lg); padding: 20px; color: var(--text); }
.safety-card h1, .safety-inline h2 { color: #FFE2A8; }
.safety-emergency a { display: inline-flex; min-height: var(--tap); align-items: center; padding: 0 18px; border-radius: 999px; background: #C62828; color: #fff; text-decoration: none; font-weight: 500; }

/* ============================ Reveal ============================ */
.reveal { text-align: center; padding-top: 8px; }
.reveal-stage { width: min(300px, 74vw); margin: 0 auto; }
.reveal-list .dom-ic { grid-area: auto; width: 34px; height: 34px; }
.reveal-list .dom-ic .dicon { width: 18px; height: 18px; }
@media (min-width: 900px) {
  .reveal { display: grid; grid-template-columns: 340px minmax(0, 460px); grid-template-areas: 'eye eye' 'twin list' 'twin note' 'twin act'; justify-content: center; column-gap: 56px; align-items: center; }
  .reveal > .eyebrow { grid-area: eye; }
  .reveal-stage { grid-area: twin; width: 100%; }
  .reveal-list { grid-area: list; margin: 0; align-self: end; }
  .reveal > .small { grid-area: note; margin: 12px 0; text-align: left; max-width: 460px; }
  .reveal-actions { grid-area: act; margin: 0; align-self: start; }
}
.reveal-list { list-style: none; padding: 0; margin: 16px auto 20px; max-width: 460px; display: grid; gap: 8px; opacity: 0; transform: translateY(8px); transition: opacity .6s, transform .6s; }
.reveal-list.show { opacity: 1; transform: none; }
.reveal-list li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line); text-align: left; }
.reveal-list .dname { display: flex; flex-direction: column; }
.reveal-list .dname small { color: var(--text-2); font-size: .8rem; }
.reveal-list strong { font-size: 1.25rem; }
.reveal-list strong small { font-size: .75rem; color: var(--text-3); font-weight: 400; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.reveal-actions { max-width: 380px; margin: 0 auto; }

/* ============================ Shared cards / labels ============================ */
.card { background: var(--panel); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); min-width: 0; }
.card h2 { font-size: 1.1rem; }
.label { font-size: .75rem; text-transform: uppercase; letter-spacing: .16em; color: var(--text-3); margin-bottom: .45em; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(41, 197, 255, .1); border: 1px solid rgba(127, 227, 255, .3); color: var(--cyan-soft); font-size: .78rem; line-height: 1.35; }
.badge.draft { background: rgba(242, 184, 75, .1); border-color: rgba(242, 184, 75, .45); color: #FFD68A; }
.big { font-size: 2.6rem; font-weight: 500; line-height: 1; margin: .1em 0 .2em; }
.big span { font-size: 1rem; color: var(--text-3); margin-left: 4px; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.sec-h { margin: 6px 0 0; font-size: 1.15rem; }
details summary { cursor: pointer; color: var(--gold-hi); min-height: 44px; display: flex; align-items: center; font-size: .92rem; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text-2); max-width: 100%; overflow-wrap: anywhere; }
.status i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.status.b-resource { color: #9DF0C4; } .status.b-resource i { background: var(--c-resource); }
.status.b-potential { color: #FFD68A; } .status.b-potential i { background: var(--c-potential); }
.status.b-lever { color: #FFC0A3; } .status.b-lever i { background: var(--c-lever); }
.status.b-insufficient i { background: var(--c-muted); }

/* ============================ Dashboard ============================ */
.dash { padding-top: 8px; display: flex; flex-direction: column; gap: 16px; }
.dash-main, .dash-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dash-head h1 { margin-bottom: .15em; font-size: clamp(1.7rem, 5vw, 2.3rem); }
.dash-head .intro { font-size: 1.1rem; margin-bottom: .2em; }
.dash-head .meta { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 8px; font-size: .86rem; color: var(--text-2); }

/* Stage: twin + six selectable domains */
.stage { position: relative; overflow: hidden; container: stage / inline-size; background: radial-gradient(70% 60% at 50% 40%, rgba(29, 111, 224, .18), transparent 70%), var(--panel); }
.stage-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: 'twin twin' 'left right'; gap: 10px; }
.stage-twin { grid-area: twin; width: min(150px, 40vw); margin: 0 auto 4px; }
.dom-col { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-rows: 1fr; gap: 10px; min-width: 0; }
.dom-col.left { grid-area: left; } .dom-col.right { grid-area: right; }
/* Leader lines only where the cards sit beside the twin; markers (with their hit circles) on every width. */
.tw-lines { display: none; }
.dom-btn { width: 100%; height: 100%; display: grid; grid-template-columns: 34px 1fr; grid-template-areas: 'ic name' 'ic meta'; column-gap: 10px; row-gap: 2px; align-items: center; min-height: 104px; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: rgba(10, 15, 26, .75); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.dom-btn:hover { border-color: var(--text-3); }
.dom-btn[aria-pressed="true"] { border-color: var(--gold); background: linear-gradient(90deg, rgba(201, 162, 77, .2), rgba(201, 162, 77, .04)); box-shadow: 0 0 0 1px var(--gold) inset; }
.dom-ic { grid-area: ic; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--acc); color: var(--acc); background: rgba(0, 0, 0, .25); box-shadow: 0 0 12px -2px var(--acc); }
.dom-ic .dicon { width: 18px; height: 18px; }
.dom-name { grid-area: name; font-size: .9rem; font-weight: 500; line-height: 1.25; overflow-wrap: break-word; hyphens: auto; }
.dom-meta { grid-area: meta; display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.dom-score { font-size: 1.15rem; font-weight: 500; }
.dom-score small { font-size: .78rem; color: var(--text-2); font-weight: 400; }
@media (max-width: 759px) {
  .dom-btn { grid-template-columns: 26px 1fr; grid-template-areas: 'ic name' 'meta meta'; min-height: 0; align-items: start; row-gap: 6px; }
  .dom-btn .dom-ic { width: 26px; height: 26px; }
  .dom-btn .dom-ic .dicon { width: 15px; height: 15px; }
  .stage-twin { width: min(190px, 50vw); }
}
.stage-hint { margin: 12px 0 0; text-align: center; font-size: .86rem; color: var(--text-3); }
@media (max-width: 379px) {
  .stage-grid { grid-template-columns: 1fr; grid-template-areas: 'twin' 'left' 'right'; }
  .stage-twin { width: min(200px, 62vw); }
}
/* The cards sit beside the twin only where the STAGE itself is wide enough (QA 08.11.2026: from 1100 px the sidebar and
   the right column leave the stage only 400-580 px, and the titles and "Großer Hebel" broke down to single letters while
   the window was "wide"). The switch follows the stage's own width in rem - the card texts are rem-sized, so larger
   text switches earlier. Widest unbreakable text in a card: DE "Optimierungspotenzial" (8rem) behind the status dot
   (15px) -> 9rem. Beside the twin: 2 × (9rem + 70px card frame) + 250px twin = 42.375rem. Otherwise the twin stands
   above the cards, in two columns or, when even that is too narrow (2 × (9rem + 70px) + 10px = 27.375rem), in one; no
   leader lines then. Phones (compact cards, status across the card: 2 × (9rem + 26px) + 10px = 21.875rem) get one
   column below that width. */
@media (min-width: 760px) {
  .stage-twin { width: min(220px, 64%); }
  @container stage (width < 27.375rem) {
    .stage-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'twin' 'left' 'right'; }
  }
  @container stage (width >= 42.375rem) {
    .stage-grid { grid-template-columns: minmax(0, 1fr) minmax(200px, 250px) minmax(0, 1fr); grid-template-areas: 'left twin right'; align-items: stretch; gap: 0; }
    .stage-twin { width: 100%; margin: 0; padding: 0 4px; }
    /* three equal rows whose centres sit at 1/6, 1/2, 5/6 of the twin height = the leader-line ends */
    .dom-col { grid-template-rows: repeat(3, 1fr); grid-auto-rows: auto; align-items: center; padding: 0; }
    .dom-col .dom-btn { height: auto; min-height: 112px; }
    .tw-lines { display: inline; }
  }
}
@media (max-width: 759px) {
  @container stage (width < 21.875rem) {
    .stage-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'twin' 'left' 'right'; }
    .stage-twin { width: min(200px, 62vw); }
  }
}

/* Selected domain detail */
.detail { border-color: var(--line-2); }
.detail-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 14px; }
.detail-head > div { flex: 1 1 180px; min-width: 0; }
.detail-head .dom-ic { width: 44px; height: 44px; flex: none; }
.detail-head .dom-ic .dicon { width: 22px; height: 22px; }
.detail-head h2 { margin: 0 0 4px; font-size: 1.2rem; }
.detail-score { margin: 0 0 0 auto; text-align: right; flex: 0 1 auto; max-width: 100%; }
.detail-score strong { font-size: 2rem; font-weight: 500; line-height: 1; }
.detail-score small { display: block; color: var(--text-3); font-size: .75rem; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.tag { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: .78rem; border: 1px solid var(--line-2); color: var(--text-2); }
.tag.resource { border-color: rgba(61, 220, 143, .5); color: #9DF0C4; }
.tag.lever { border-color: rgba(255, 148, 102, .5); color: #FFC0A3; }
.bar { position: relative; height: 8px; background: var(--line); border-radius: 99px; margin-top: 14px; overflow: visible; }
.bar .now { display: block; height: 100%; border-radius: 99px; }
/* Potential marker. Own class: .opt is the questionnaire option button and would leak min-height/padding. */
.bar .bar-pot { position: absolute; top: -4px; width: 3px; height: 16px; background: var(--text); border-radius: 2px; transform: translateX(-1px); }
.pot { margin-top: 6px; }
.why { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.why ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.why li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; font-size: .88rem; align-items: baseline; color: var(--text-2); }
.why-val { font-weight: 500; color: var(--text); }
.why-w { color: var(--text-3); font-size: .8rem; }
.why-toggle { margin-top: 10px; }

/* Right column: priorities */
.score-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; align-items: center; background: linear-gradient(135deg, rgba(201, 162, 77, .12), rgba(201, 162, 77, 0) 60%), var(--panel); border-color: rgba(201, 162, 77, .35); }
.score-card .ring { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold-hi) calc(var(--v) * 1%), var(--line-2) 0); position: relative; }
.score-card .ring::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--panel); }
.score-card .ring strong { position: relative; z-index: 1; font-size: 1.7rem; font-weight: 500; }
.score-card .label { margin: 0; }
.score-card p { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.score-card .small { grid-column: 1 / -1; color: var(--text-2); }
.next-step { border-left: 3px solid var(--gold); }
.next-step h2 { margin: .2em 0; }
.next-step p { margin: .3em 0; }
.next-step .btn { margin-top: 8px; }
@media (min-width: 1100px) { .next-step.mobile-only { display: none; } }
.form-screen .panel { margin-bottom: 16px; }
.form-screen .card { margin-bottom: 14px; }
.kpi h2 { font-size: 1.05rem; margin-bottom: .3em; }
.kpi p { color: var(--text-2); margin: 0; font-size: .95rem; }
.kpi.resource { border-left: 3px solid var(--c-resource); }
.kpi.lever { border-left: 3px solid var(--c-lever); }
.actions-card h2 { margin-bottom: .6em; }
.domains, .actions { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.action { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.action:first-child { border-top: 0; padding-top: 0; }
.action h3 { font-size: 1rem; margin-bottom: .3em; }
.action p { color: var(--text-2); font-size: .94rem; }
.num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(201, 162, 77, .12); border: 1px solid var(--gold); color: var(--gold-hi); font-weight: 500; }
.first-step { border-left: 2px solid var(--gold); padding: 2px 0 2px 10px; font-size: .94rem; color: var(--text) !important; }
.traj-steps { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 10px; }
.traj-steps li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); position: relative; }
.traj-steps li .label { margin: 0; letter-spacing: .08em; }
.traj-steps li > * { min-width: 0; overflow-wrap: anywhere; }
.traj-steps li .small { grid-column: 1 / -1; color: var(--text-2); }
.traj-steps li + li::before { content: '↓'; position: absolute; top: -15px; left: 18px; color: var(--text-3); font-size: .8rem; }
.traj-steps .t-optimized { border-color: rgba(61, 220, 143, .4); }
.traj-steps .t-stable { border-color: rgba(242, 184, 75, .4); }
.traj-steps .t-attention { border-color: rgba(255, 148, 102, .45); }
.traj-steps strong { font-size: 1rem; text-align: right; }
.deepen { background: linear-gradient(135deg, rgba(201, 162, 77, .1), transparent 60%), var(--panel); }
.experts { margin: 10px 0 14px; }
.expert { font-weight: 500; margin-bottom: .3em; }
.products { border-style: dashed; box-shadow: none; }
.products ul { padding-left: 18px; color: var(--text-2); }
.products li strong { color: var(--text); }
.commercial { display: inline-block; background: rgba(255, 255, 255, .06); padding: 2px 8px; border-radius: 6px; color: var(--text-2); }
.history ul { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 4px; }
.history li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 40px; }
.history li { min-height: 0; }
.history .h-entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, max-content); gap: 2px 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; color: var(--text); text-decoration: none; }
.history .h-when { grid-column: 1; }
.history .h-score { grid-column: 1; font-size: .875em; color: var(--text-3); }
.history .h-tag { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: .8125em; text-align: right; }
.history .h-entry > * { min-width: 0; overflow-wrap: anywhere; }
.history a.h-entry .h-tag { color: var(--gold-hi); }
.history a.h-entry:hover, .history a.h-entry:focus-visible { border-color: var(--gold-hi); }
.history .h-entry.current { border-color: var(--gold-hi); background: rgba(255,255,255,.03); }
.history .h-entry.current .h-tag { color: var(--text-3); }
.history .h-tech { margin: 0 0 12px; }
.history .h-tech summary { cursor: pointer; min-height: 32px; }
.history .h-tech ul { gap: 0; margin: 6px 0 0; }

/* Data layers as consistent cards */
.layers-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.layers-head h2 { margin: 0; }
/* Owner 12.10.2026: opening a layer must not stretch its neighbours. Each <li> is display:contents, so tiles and the
   open info panel are siblings in one grid: the panel takes its own full-width row below the selected tile's row
   (dense flow lets the following tiles fill that row first), closed tiles keep one compact, uniform height. */
.layers ul { list-style: none; padding: 0; margin: 14px 0 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); grid-auto-flow: row dense; align-items: stretch; gap: 10px; }
.layers li { display: contents; }
/* Six layers → balanced 1 / 2 / 3 column grids (no half-empty last row = no empty void next to the open panel).
   Browsers without container queries keep the auto-fill grid above. */
.layers { container-type: inline-size; }
@container (min-width: 440px) { .layers ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 660px) { .layers ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.layers .layer-row { min-width: 0; width: 100%; height: auto; display: grid; grid-template-columns: 30px 1fr; grid-template-areas: 'ic name' 'ic status'; column-gap: 10px; row-gap: 4px; align-items: center; min-height: 76px; padding: 12px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--bg-2); font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.layers .layer-row > [aria-hidden] { grid-area: ic; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .9rem; border: 1px solid var(--line-2); }
.layers .active .layer-row { border-color: rgba(61, 220, 143, .55); background: linear-gradient(135deg, rgba(61, 220, 143, .1), transparent 70%), var(--bg-2); cursor: default; }
.layers .active .layer-row > [aria-hidden] { color: var(--c-resource); border-color: rgba(61, 220, 143, .6); }
.layers .locked .layer-row { color: var(--text-2); border-style: dashed; }
.layers .locked .layer-row:hover, .layers .locked .layer-row[aria-expanded="true"] { border-color: var(--text-3); border-style: solid; }
.layers .dna .layer-row { border-color: rgba(201, 162, 77, .55); }
.layers .dna .layer-row > [aria-hidden] { color: var(--gold-hi); border-color: rgba(201, 162, 77, .6); }
.layer-name { grid-area: name; display: flex; flex-direction: column; font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.layer-sub { font-weight: 400; color: var(--text-2); }
.layer-status { grid-area: status; font-size: .8rem; color: var(--text-3); }
.layer-status.on { justify-self: start; background: rgba(61, 220, 143, .15); color: #9DF0C4; border-radius: 999px; padding: 1px 10px; font-weight: 500; }
/* Expand/collapse affordance on every toggle tile: chevron down = closed, up = open. */
.layers button.layer-row { position: relative; padding-right: 34px; }
.layers button.layer-row::after { content: ''; position: absolute; top: 17px; right: 15px; width: 7px; height: 7px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg); transition: transform .15s ease; }
.layers button.layer-row[aria-expanded="true"]::after { transform: translateY(3px) rotate(-135deg); border-color: var(--text); }
.layers .open .layer-row { border-style: solid; border-color: var(--text-2); background: var(--panel-2); }
.layers .dna.open .layer-row { border-color: var(--gold); }
.layer-info { position: relative; grid-column: 1 / -1; min-width: 0; margin: 0; padding: 12px 16px 14px; border: 1px solid var(--line-2); border-left: 3px solid var(--text-3); background: var(--panel-2); border-radius: 0 var(--r-md) var(--r-md) 0; font-size: .92rem; }
.layers .dna .layer-info { border-left-color: var(--gold); }
.layer-info > strong { display: block; }
.layer-info-for { display: block; margin-bottom: 2px; color: var(--text-2); letter-spacing: .02em; }
.layer-info .btn { min-height: 44px; }
/* single column: the panel sits directly under its tile, the repeated layer label would only be noise */
@container (max-width: 439px) { .layer-info-for { display: none; } }
/* caret pointing up at the opened tile; only drawn once JS has measured its position (style="--caret-x: …") */
.layer-info[style*="--caret-x"]::before { content: ''; position: absolute; top: -6px; left: var(--caret-x); width: 10px; height: 10px; margin-left: -5px; background: var(--panel-2); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); transform: rotate(45deg); }
.layers .dna .layer-info[style*="--caret-x"]::before { border-color: var(--gold); }
.layer-info p { margin: 4px 0 10px; max-width: 68ch; color: var(--text-2); }

@media (min-width: 1100px) {
  .dash { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; padding-top: 22px; }
  .dash-side { position: sticky; top: 16px; }
}
/* Mobile/tablet priority order: greeting → safety/next step → twin → detail → top 3 → rest */
@media (max-width: 1099px) {
  .dash-main, .dash-side { display: contents; }
  .dash > * , .dash-main > *, .dash-side > * { order: 5; }
  .dash-head { order: 0 !important; }
  .safety-inline { order: 1 !important; }
  .next-step { order: 2 !important; }
  .stage { order: 3 !important; }
  .detail { order: 4 !important; }
  .layers { order: 6 !important; }
  .deepen, .products, .history { order: 7 !important; }
}

.foot { text-align: center; font-size: .8rem; color: var(--text-3); padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); margin-top: 16px; }
.foot a { color: var(--text-2); }
.preview-note { opacity: .9; }
.spinner { width: 38px; height: 38px; border: 3px solid rgba(201, 162, 77, .2); border-top-color: var(--gold-hi); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================ Admin (look only) ============================ */
.admin { max-width: 1180px; display: flex; flex-direction: column; gap: 14px; padding-top: 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text-2); font: inherit; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--gold-grad); color: var(--on-gold); border-color: var(--gold); font-weight: 500; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; }
.filters label { min-width: min(100%, 220px); flex: 1 1 220px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.kpis .label { letter-spacing: .08em; }
.kpis .big { font-size: 2rem; color: var(--gold-hi); }
.funnel { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.funnel li { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr 44px; gap: 10px; align-items: center; font-size: .82rem; color: var(--text-2); overflow-wrap: anywhere; }
.fbar { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.fbar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); }
.plain { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 4px; }
.plain li { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; border-bottom: 1px solid var(--line); padding: 6px 0; color: var(--text-2); }
.plain li strong { color: var(--text); }
.plain li.conv > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.plain li.conv small { font-size: .76rem; }
.fgroup { margin-top: 14px; }
.fgroup h3 { font-size: .92rem; margin: 0 0 8px; font-weight: 500; }
.scroll-x { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .84rem; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--text-3); font-weight: 500; }
.evidence { padding-left: 18px; display: grid; gap: 8px; font-size: .88rem; color: var(--text-2); }
.scope { padding: 8px 12px; border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--line); }
.scope.on { background: rgba(242, 184, 75, .08); border-color: rgba(242, 184, 75, .5); }

@media (min-width: 720px) { body { font-size: 1.125rem; } }

/* ============================ Global notice ============================ */
.banner { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 auto 8px; max-width: 960px; width: calc(100% - 32px); padding: 12px 16px; border-radius: 0 0 var(--r-md) var(--r-md); box-shadow: var(--shadow); }
.banner p { margin: 0; flex: 1 1 240px; }
.banner.error { background: var(--danger-bg); color: #FFD3D3; border: 1px solid rgba(255, 123, 123, .55); border-top: 0; }
.banner.info { background: var(--ok-bg); color: #C9F5E0; border: 1px solid rgba(61, 220, 143, .45); border-top: 0; }
.banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Forced colours / high contrast: keep boundaries visible */
@media (forced-colors: active) {
  .card, .dom-btn, .opt, .layer-row, .btn { border: 1px solid CanvasText; }
  .dom-btn[aria-pressed="true"], .opt.sel { outline: 3px solid Highlight; }
}

/* Full 3D character (owner 05.10.2026) */
.char3d { display: block; width: 100%; height: 100%;
  /* holographic bloom: the canvas is transparent outside the figure, so stacked drop-shadows trace the silhouette
     as a soft cyan glow (smooth Gaussian falloff, no extra geometry, no stepped shells) */
  filter: drop-shadow(0 0 3px rgba(110, 230, 255, .75)) drop-shadow(0 0 12px rgba(40, 190, 255, .55)) drop-shadow(0 0 28px rgba(20, 150, 255, .35)); }
.char-review { max-width: 1100px; margin: 0 auto; }
.char-live { position: relative; height: min(78vh, 760px); margin: 12px 0 20px; background: radial-gradient(55% 55% at 50% 45%, rgba(41, 197, 255, .14) 0%, rgba(29, 111, 224, .04) 60%, transparent 100%); }
.char-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.char-views { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.char-view { margin: 0; height: 420px; display: flex; flex-direction: column; border: 1px solid rgba(127, 227, 255, .14); border-radius: 12px; padding: 6px; }
.char-view canvas { flex: 1; min-height: 0; }
.char-view figcaption { text-align: center; font-size: .8125rem; opacity: .8; padding: 4px 0 2px; }
@media (max-width: 720px) { .char-views { grid-template-columns: repeat(2, minmax(0, 1fr)); } .char-view { height: 340px; } .char-live { height: 70vh; } }

/* Large browser default font relative to the screen (19.5em = 312 px at the usual 16 px default, so normal phones never
   match): paired form fields stack so values like „Deutschland“ stay readable, long headings hyphenate. */
@media (max-width: 19.5em) {
  .row2 { grid-template-columns: minmax(0, 1fr); }
  h1, h2, h3 { hyphens: auto; }
}

/* Admin leads tab: independent channel states; test-only is visually distinct from a real live delivery. */
.leads { display: flex; flex-direction: column; gap: 14px; }
.leadtable tr.click { cursor: pointer; }
.leadtable td:first-child { min-width: 200px; max-width: 280px; overflow-wrap: anywhere; }
.leadtable td:last-child, .leadtable th:last-child { white-space: nowrap; }
.kpis .muted.small span { display: inline-block; }
.plain li > .lstate { align-self: center; flex-shrink: 0; }
.plain li > strong { overflow-wrap: anywhere; text-align: right; }
.leadtable td:first-child .badge { margin-top: 4px; }
.leadtable tr.click:hover, .leadtable tr.click:focus-visible { background: rgba(255,255,255,.04); outline: none; }
.lstate { display: inline-block; font-size: .76rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; color: var(--text-2); }
.lstate.ok { color: #7ee2a8; border-color: rgba(126,226,168,.5); }
.lstate.test { color: #9fb4ff; border-color: rgba(159,180,255,.45); border-style: dashed; }
.lstate.wait { color: var(--text-2); }
.lstate.warn { color: #f2c46d; border-color: rgba(242,196,109,.5); }
.lstate.bad { color: #ff8a8a; border-color: rgba(255,138,138,.5); }
.lstate.off { opacity: .6; }

/* Personal e-mail journey card (QV-04/05/06): sits under "Größter Hebel"; problems in red with symbol + fixing action. */
.journey { display: flex; flex-direction: column; gap: 10px; border-left: 3px solid var(--c-lever, var(--gold)); }
.journey h2 { margin: 0; }
.journey p { margin: 0; }
.journey .consents { display: flex; flex-direction: column; gap: 12px; }
.journey .btn { align-self: flex-start; }
.j-status { display: flex; gap: 8px; align-items: flex-start; color: var(--text); }
.j-status.handed_over > span { color: #7ee2a8; }
.j-status.held_unsubscribed, .j-status.not_restarted, .j-status.unavailable { color: var(--text-2); }
.j-info { color: var(--text-2); font-size: .95rem; }
.j-problem { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border: 1px solid var(--danger); border-radius: var(--r-sm); background: var(--danger-bg); color: var(--danger); }
.j-problem p { flex: 1 1 200px; margin: 0; font-weight: 500; min-width: 0; }
.j-problem-ic { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--danger); color: #1a0b0d; font-weight: 700; flex: none; }
.check.invalid input { outline: 2px solid var(--danger); outline-offset: 2px; }
.check.invalid > span { color: var(--danger); }
.j-attn { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lrequeue { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 6px; }
.j-approval { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 10px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); color: var(--text-2); font-size: .9rem; }
.j-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold-hi); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.j-privacy-toggle { align-self: flex-start; }
.j-privacy { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg-2); font-size: .88rem; white-space: pre-line; }
.j-privacy p { margin: 0; }
.j-problem-text { color: #ff9a8a; }
.j-testenv .j-chip { border-color: var(--text-2); }
.leadtable td.gaps { white-space: normal; min-width: 22rem; }

/* ============================================================================================
   Motion and depth (Leon 17.11.2026: "deutlich animierter, bessere Übergänge zwischen den Views und Buttons ...
   dreidimensionaler, flippiger, bewegter und belebter"). The pictures of leaving views fly in .fx-layer
   (motion.ts); everything that can be pressed tilts towards the pointer and lights up where it is touched;
   the background drifts. Reduced motion: all of it stays still (the global rule above and motion.ts).
   ============================================================================================ */
.fx-layer { position: fixed; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; }
.fx-inner { position: fixed; inset: 0; pointer-events: none; perspective: 1200px; overflow: hidden; }
.fx-frame { position: fixed; inset: 0; overflow: hidden; perspective: 1400px; perspective-origin: 50% 38%; }
.fx-ghost { will-change: transform, opacity; transform-origin: 50% 50%; backface-visibility: hidden; }
.fx-ring { position: fixed; border-radius: var(--r-md); border: 2px solid var(--gold-hi); box-shadow: 0 0 22px rgba(227, 194, 122, .7), inset 0 0 14px rgba(227, 194, 122, .4); }
.fx-flash { position: fixed; width: 70vmax; height: 70vmax; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .95) 0%, rgba(191, 242, 255, .8) 10%, rgba(41, 197, 255, .35) 30%, rgba(29, 111, 224, .12) 48%, transparent 66%); } /* no blend mode: it would make the browser recompose the whole page under it every frame */
.fx-spark { position: fixed; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c), 0 0 26px var(--c); }
.fx-ripple { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .18) 35%, transparent 62%); }

/* the living background: two slow currents of light and a field of stars */
.app { position: relative; isolation: isolate; }
.app::before { content: ''; position: fixed; inset: -25%; z-index: -1; pointer-events: none;
  background: radial-gradient(32% 28% at 22% 28%, rgba(29, 111, 224, .20), transparent 70%), radial-gradient(28% 26% at 78% 72%, rgba(41, 197, 255, .13), transparent 70%), radial-gradient(22% 20% at 62% 16%, rgba(201, 162, 77, .11), transparent 70%);
  animation: aurora 28s ease-in-out infinite alternate; will-change: transform; }
.app::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image: radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 33% 72%, #bff2ff, transparent), radial-gradient(1.5px 1.5px at 58% 34%, #fff, transparent), radial-gradient(1px 1px at 81% 12%, #f4e2b4, transparent), radial-gradient(1px 1px at 91% 58%, #fff, transparent), radial-gradient(1.5px 1.5px at 7% 88%, #bff2ff, transparent), radial-gradient(1px 1px at 46% 92%, #fff, transparent), radial-gradient(1px 1px at 68% 84%, #fff, transparent);
  }
/* the currents only drift (no turning or scaling: the layer is never drawn again, the compositor just moves it) */
@keyframes aurora { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(6%, -5%, 0); } }

/* everything that can be pressed: depth, tilt towards the pointer, light where the pointer is, a ripple on press */
.btn, .opt, .dom-btn, .ic-act, .shop-nav, .ic-nav, .layer-row, .h-entry, .side-nav a { position: relative; isolation: isolate; overflow: hidden; }
.btn::after, .dom-btn::after, .ic-act::after, .opt::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .2), transparent 60%); }
.is-tilt::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .btn, .opt, .dom-btn, .ic-act, .shop-nav, .ic-nav, .h-entry { transform: perspective(700px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateZ(0);
    transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background .2s, border-color .2s, color .2s; }
  .btn.is-tilt, .ic-act.is-tilt, .dom-btn.is-tilt { transform: perspective(700px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateZ(14px); }
  .btn.primary.is-tilt { box-shadow: 0 14px 34px rgba(227, 194, 122, .45), 0 0 0 1px rgba(255, 240, 200, .25) inset; }
  /* the main action breathes, and a sheen runs over it now and then */
  .btn.primary.lg:not([disabled])::before { content: ''; position: absolute; inset: -2px; z-index: -1; pointer-events: none; background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, .55) 46%, transparent 60%); transform: translateX(-130%); animation: btn-sheen 5.2s ease-in-out infinite; }
  .btn.primary.lg:not([disabled]) { animation: btn-breathe 3.4s ease-in-out infinite; }
  .opt.sel { animation: opt-glow 2.4s ease-in-out infinite; }
  .dash-side > .card, .ic-boost { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s; }
  .dash-side > .card:hover { transform: translateY(-3px); box-shadow: var(--shadow), 0 18px 40px rgba(0, 0, 0, .35); border-color: var(--line-2); }
  .progress span { position: relative; overflow: hidden; box-shadow: 0 0 12px rgba(227, 194, 122, .55); }
  .progress span::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); transform: translateX(-100%); animation: prog-sheen 1.9s ease-in-out infinite; }
  /* the start page builds itself up */
  .landing-copy > * { animation: land-in .9s cubic-bezier(.16, 1, .3, 1) both; }
  .landing-copy > :nth-child(2) { animation-delay: .08s; } .landing-copy > :nth-child(3) { animation-delay: .16s; } .landing-copy > :nth-child(4) { animation-delay: .24s; }
  .landing-copy > :nth-child(5) { animation-delay: .32s; } .landing-copy > :nth-child(6) { animation-delay: .4s; } .landing-copy > :nth-child(n + 7) { animation-delay: .48s; }
  .landing-twin { animation: twin-rise 1.6s cubic-bezier(.16, 1, .3, 1) both; }
}
@keyframes btn-sheen { 0%, 62% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
@keyframes btn-breathe { 0%, 100% { filter: drop-shadow(0 4px 8px rgba(201, 162, 77, .18)); } 50% { filter: drop-shadow(0 6px 16px rgba(227, 194, 122, .5)); } } /* a filter, not a box-shadow: the compositor animates it, the button keeps its size and place */
@keyframes opt-glow { 0%, 100% { box-shadow: 0 0 0 1px var(--gold) inset, 0 0 0 rgba(227, 194, 122, 0); } 50% { box-shadow: 0 0 0 1px var(--gold-hi) inset, 0 0 22px rgba(227, 194, 122, .28); } }
@keyframes prog-sheen { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes land-in { from { opacity: 0; transform: perspective(800px) translate3d(0, 26px, -90px) rotateX(22deg); } to { opacity: 1; transform: none; } }
@keyframes twin-rise { from { opacity: 0; transform: translateY(60px) scale(.86); filter: brightness(2.2) blur(6px); } 60% { filter: brightness(1.3) blur(0); } to { opacity: 1; transform: none; filter: none; } }

/* reveal: symmetric - three areas left of the twin, three right (as on the dashboard) */
.reveal-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.reveal-grid .reveal-stage { order: -1; }
.reveal-grid .reveal-list { margin: 0 auto; width: 100%; }
.reveal-list li { position: relative; overflow: hidden; }
.reveal-list li::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--acc, var(--cyan)); box-shadow: 0 0 12px var(--acc, var(--cyan)); }
@media (prefers-reduced-motion: no-preference) { .reveal-list.show li { animation: none; opacity: 1; transform: none; } }
.reveal > .reveal-note { text-align: center; margin: 14px auto 10px; max-width: 520px; }
.reveal-actions { margin: 0 auto; }
.reveal-ic { max-width: 560px; margin: 22px auto 0; text-align: left; animation: fadein .8s .2s both; }
@media (min-width: 900px) {
  .reveal { display: block; }
  .reveal-grid > *, .reveal > * { grid-area: auto; } /* the named areas of the former two-column reveal */
  .reveal-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px) minmax(0, 1fr); align-items: center; column-gap: 32px; max-width: 1180px; margin: 0 auto; }
  .reveal-grid .reveal-stage { order: 0; width: 100%; }
  .reveal-grid .reveal-list { max-width: 400px; }
  .reveal-list.left { justify-self: end; }
  .reveal-list.right { justify-self: start; }
  .reveal-list.right li { grid-template-columns: auto minmax(0, 1fr) 34px; text-align: right; }
  .reveal-list.right li::before { left: auto; right: 0; }
  .reveal-list.right .dom-ic { order: 3; }
  .reveal-list.right .dname { order: 2; align-items: flex-end; }
  .reveal-list.right strong { order: 1; }
  .reveal-ic { max-width: 1060px; }
  .reveal-ic .ic-acts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* symmetric stage around the twin: both orbits level, mirrored side scales */
.rv-orbit.o2 { transform: translate(-50%, -50%) rotateX(80deg); animation-name: rv-spin2s; }
@keyframes rv-spin2s { to { transform: translate(-50%, -50%) rotateX(80deg) rotateZ(-360deg); } }
.rv-hud { position: absolute; inset: 8% 4% 12%; pointer-events: none; }
.rv-hud i { position: absolute; top: 0; bottom: 0; width: 12px; opacity: .55;
  background: repeating-linear-gradient(180deg, rgba(127, 227, 255, .75) 0 1px, transparent 1px 14px); -webkit-mask: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); mask: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); }
.rv-hud i.l { left: 0; border-left: 1px solid rgba(127, 227, 255, .5); }
.rv-hud i.r { right: 0; border-right: 1px solid rgba(127, 227, 255, .5); }
/* the scale runs on the compositor: a taller strip of ticks slides, the bar itself never repaints */
.rv-hud i { overflow: hidden; background: none; }
.rv-hud i::before { content: ''; position: absolute; left: 0; right: 0; top: -140px; bottom: 0;
  background: repeating-linear-gradient(180deg, rgba(127, 227, 255, .75) 0 1px, transparent 1px 14px); }
@media (prefers-reduced-motion: no-preference) { .rv-hud i::before { animation: hud-scroll 6s linear infinite; } }
@keyframes hud-scroll { to { transform: translateY(140px); } }

/* dashboard: the leader lines wait until the six areas stand at their places */
.dash.is-bursting .tw-lines { opacity: 0; }
.dash .tw-lines { transition: opacity .5s .1s; }

/* Identity Code around the results */
.ic-boost { position: relative; overflow: hidden; border-color: rgba(201, 162, 77, .42);
  background: radial-gradient(120% 80% at 100% 0%, rgba(41, 197, 255, .13), transparent 60%), radial-gradient(90% 70% at 0% 100%, rgba(201, 162, 77, .14), transparent 60%), var(--panel); }
.ic-boost h2 { padding-right: 56px; }
.ic-boost .ic-kicker { color: var(--gold-hi); letter-spacing: .18em; text-transform: uppercase; font-size: .72rem; }
.ic-helix { position: absolute; right: 6px; top: 6px; width: 46px; height: 92px; opacity: .7; will-change: transform; } /* its own layer: the turning helix never repaints the card */
.ic-helix line { stroke: rgba(127, 227, 255, .45); stroke-width: 1.2; }
.ic-helix circle { fill: var(--cyan-soft); } .ic-helix circle.b { fill: var(--gold-hi); }
.ic-helix g { transform-box: view-box; transform-origin: 30px 50%; }
@media (prefers-reduced-motion: no-preference) { .ic-helix g { animation: ic-twist 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.3s); } }
@keyframes ic-twist { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(-1); } }
.ic-acts { display: grid; gap: 10px; margin-top: 14px; }
.ic-act { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 60px; padding: 10px 14px; border-radius: 14px; text-align: left; text-decoration: none; font: inherit; cursor: pointer; }
.ic-act.btn { display: grid; justify-content: stretch; border-radius: 14px; }
.ic-alt { background: rgba(255, 255, 255, .035); border: 1px solid var(--line-2); color: var(--text); }
.ic-alt:hover { border-color: var(--gold); background: rgba(201, 162, 77, .08); }
.ic-act .ic-ic { font-size: 1.35rem; line-height: 1; text-align: center; }
.ic-txt b { display: block; font-weight: 500; line-height: 1.25; }
.ic-txt small { display: block; font-size: .8rem; color: var(--text-2); line-height: 1.3; margin-top: 2px; }
.btn.primary .ic-txt small { color: rgba(26, 20, 8, .78); }
.ic-ext { width: 18px; height: 18px; flex: none; opacity: .85; }
.ic-go { font-size: 1.2rem; }
.ic-expert { border-color: rgba(41, 197, 255, .5); box-shadow: 0 0 0 1px rgba(41, 197, 255, .12) inset; }
.ic-expert .ic-ic { color: var(--cyan-soft); text-shadow: 0 0 12px var(--cyan); }
.ic-boost .experts { margin-top: 10px; }
.ic-act:focus-visible { outline: 3px solid var(--cyan-soft); outline-offset: 3px; }
/* the embedded Identity Code chat (only when the server names an embeddable address) */
.ic-chat-wrap { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(4, 7, 13, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ic-chat { width: min(560px, 100%); height: min(760px, calc(100dvh - 32px)); display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 22px; background: var(--panel); border: 1px solid rgba(41, 197, 255, .35); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 60px rgba(41, 197, 255, .12); }
@media (prefers-reduced-motion: no-preference) { .ic-chat { animation: chat-in .6s cubic-bezier(.16, 1, .3, 1) both; } }
@keyframes chat-in { from { opacity: 0; transform: perspective(900px) translateY(40px) rotateX(18deg) scale(.94); } to { opacity: 1; transform: none; } }
.ic-chat-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.ic-chat-head h2 { margin: 0; }
.ic-chat-orb { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0%, var(--cyan-soft) 20%, var(--cyan-deep) 60%, #0a1830 100%); box-shadow: 0 0 22px rgba(41, 197, 255, .6); }
.ic-coins { margin: 2px 0 0; font-size: .82rem; color: var(--gold-hi); }
.ic-chat-frame { flex: 1; width: 100%; border: 1px solid var(--line-2); border-radius: 14px; background: #fff; }
.ic-chat-note { margin: 0; }
/* counting values: the real number stays in the text (transparent while counting), the overlay counts */
.num { position: relative; }
.num.is-counting { color: transparent; }
.num.is-counting::after { content: attr(data-n); position: absolute; left: 0; top: 0; color: var(--text); }
.ring .num.is-counting::after { left: 50%; transform: translateX(-50%); }

/* ---- the guide after the result (17.11.2026): Human OS greets, tells the result, invites to a short talk ---------- */
.reveal.has-guide { padding-bottom: calc(var(--guide-h, 0px) + 28px); }
.guide { position: fixed; z-index: 60; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); width: min(760px, calc(100vw - 32px)); translate: -50% 0; perspective: 1200px; text-align: left; }
.guide-card { position: relative; overflow: hidden; border-radius: 22px; padding: 12px 18px 10px; transform-origin: 50% 100%;
  background: linear-gradient(160deg, #142240, #080e1c); border: 1px solid rgba(127, 227, 255, .3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(227, 194, 122, .12) inset, 0 0 44px rgba(41, 197, 255, .18); }
.guide-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--cyan-soft), var(--gold-hi), transparent); opacity: .8; }
.g-arrive .guide-card { opacity: 0; }
.guide-head { display: flex; align-items: center; gap: 12px; }
.guide-who { margin: 0; line-height: 1.2; }
.guide-who b { display: block; color: var(--gold-hi); font-size: .95rem; letter-spacing: .02em; }
.guide-who small { color: var(--text-3); font-size: .74rem; letter-spacing: .05em; }
.guide-skip, .guide-later { margin-left: auto; }
.guide-lines { max-height: 170px; overflow-y: auto; overscroll-behavior: contain; margin: 10px 0 6px; padding-right: 4px; display: grid; gap: 8px; }
.gl { margin: 0; }
.gl p { margin: 0; }
p.gl.os { color: var(--text); line-height: 1.5; }
p.gl.os:not(.cur) { color: var(--text-2); }
div.gl.os > p { background: rgba(41, 197, 255, .08); border: 1px solid rgba(127, 227, 255, .22); padding: 8px 12px; border-radius: 14px 14px 14px 4px; line-height: 1.5; }
.gl.you { justify-self: end; max-width: 82%; }
.gl.you p { background: linear-gradient(135deg, rgba(227, 194, 122, .24), rgba(201, 162, 77, .12)); border: 1px solid rgba(227, 194, 122, .38); padding: 6px 12px; border-radius: 14px 14px 4px 14px; }
.gl-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.gl-link { display: inline-flex; flex-direction: column; justify-content: center; font-size: .84rem; padding: 6px 12px; border-radius: 14px; border: 1px solid rgba(127, 227, 255, .35); color: var(--cyan-soft); text-decoration: none; background: rgba(41, 197, 255, .06); font-family: inherit; cursor: pointer; text-align: left; }
.gl-link small, .guide-expert small { display: block; font-size: .7rem; opacity: .78; font-weight: 400; }
.gl-expert { border-color: rgba(227, 194, 122, .5); color: var(--gold-hi); background: rgba(227, 194, 122, .08); }
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--cyan-soft); }
.guide-invite { display: grid; gap: 10px; margin-top: 2px; }
.guide-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-chip { font: inherit; font-size: .9rem; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(127, 227, 255, .42); background: rgba(41, 197, 255, .09); color: var(--text); cursor: pointer; transition: background .2s, border-color .2s, translate .2s; }
.guide-chip:hover { background: rgba(41, 197, 255, .18); border-color: var(--cyan-soft); translate: 0 -2px; }
.guide-chip:focus-visible, .gl-link:focus-visible, .guide-mini:focus-visible { outline: 3px solid var(--cyan-soft); outline-offset: 2px; }
.guide-expert { justify-self: start; display: inline-flex; flex-direction: column; align-items: flex-start; text-align: left; }
.guide-note { font-size: .72rem; color: var(--text-3); margin: 8px 0 0; }
/* the orb: a core of light in three turning rings, two sparks on their way around it */
.guide-orb { position: relative; flex: 0 0 auto; width: 54px; height: 54px; transform-style: preserve-3d; }
.guide-orb .core { position: absolute; inset: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0%, #BFF2FF 18%, var(--cyan) 46%, var(--cyan-deep) 70%, rgba(29, 111, 224, 0) 72%); box-shadow: 0 0 22px rgba(41, 197, 255, .75), 0 0 46px rgba(227, 194, 122, .25); }
.guide-orb .ring { position: absolute; inset: 4px; border-radius: 50%; border: 1.5px solid rgba(127, 227, 255, .65); }
.guide-orb .r1 { transform: rotateX(70deg); }
.guide-orb .r2 { transform: rotateY(70deg); border-color: rgba(227, 194, 122, .65); }
.guide-orb .r3 { inset: 0; transform: rotateX(58deg) rotateY(42deg); border-style: dashed; border-color: rgba(127, 227, 255, .4); }
.guide-orb .spark { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: #BFF2FF; box-shadow: 0 0 8px var(--cyan); opacity: .9; }
.guide-orb .s2 { background: var(--gold-hi); box-shadow: 0 0 8px var(--gold); }
.guide-orb.sm { width: 36px; height: 36px; }
.guide-orb.sm .core { inset: 9px; }
.guide-orb.sm .ring { inset: 2px; }
.guide-mini { position: fixed; z-index: 60; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 6px; border-radius: 999px; border: 1px solid rgba(127, 227, 255, .38); background: rgba(10, 18, 34, .92); color: var(--text); font: inherit; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 24px rgba(41, 197, 255, .25); }
.fx-orb { position: fixed; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0%, #BFF2FF 18%, #29C5FF 46%, #1D6FE0 70%, rgba(29, 111, 224, 0) 72%); box-shadow: 0 0 30px 8px rgba(41, 197, 255, .55), 0 0 80px 22px rgba(227, 194, 122, .22); }
/* what the guide names lights up: the card (its own scale/translate, independent of the row's entrance animation) and
   the area's point on the orbit around the twin */
.reveal-list li { transition: scale .45s cubic-bezier(.2, .8, .2, 1), translate .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s, border-color .45s; }
.reveal-list li.is-spoken { scale: 1.035; translate: 0 -3px; z-index: 1; border-color: color-mix(in srgb, var(--acc) 70%, transparent); box-shadow: 0 0 0 1px var(--acc), 0 12px 34px rgba(0, 0, 0, .45), 0 0 34px color-mix(in srgb, var(--acc) 42%, transparent); }
.rv-orb.is-focus i { scale: 1.9; box-shadow: 0 0 22px 7px var(--c); }
@media (prefers-reduced-motion: no-preference) {
  .g-talk .guide-card, .g-invite .guide-card { animation: guide-in .9s cubic-bezier(.16, 1, .3, 1) both; }
  .guide-orb .r1 { animation: orb-r1 4s linear infinite; }
  .guide-orb .r2 { animation: orb-r2 5.5s linear infinite; }
  .guide-orb .r3 { animation: orb-r3 9s linear infinite; }
  .guide-orb .s1 { animation: orb-spark 3.2s linear infinite; }
  .guide-orb .s2 { animation: orb-spark 4.6s linear infinite reverse; }
  .guide-orb.speaking .core { animation: orb-speak .7s ease-in-out infinite alternate; }
  .guide-orb.speaking .r1 { animation-duration: 1.6s; }
  .guide-orb.speaking .r2 { animation-duration: 2.2s; }
  .caret { animation: caret-blink .9s steps(1) infinite; }
  .gl { animation: gl-in .45s cubic-bezier(.16, 1, .3, 1) both; }
  .guide-chip, .guide-expert { animation: chip-in .6s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--i, 3) * 90ms + 80ms); }
  .guide-mini { animation: guide-mini-in .6s cubic-bezier(.34, 1.56, .64, 1) both; }
  .rv-orb.is-focus i { animation: orb-focus 1.1s ease-in-out infinite; }
}
@keyframes guide-in { from { opacity: 0; transform: translateY(70px) translateZ(-220px) rotateX(44deg); } 55% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes orb-r1 { to { transform: rotateX(70deg) rotateZ(360deg); } }
@keyframes orb-r2 { to { transform: rotateY(70deg) rotateZ(-360deg); } }
@keyframes orb-r3 { to { transform: rotateX(58deg) rotateY(42deg) rotateZ(360deg); } }
@keyframes orb-spark { from { transform: rotate(0deg) translateX(27px) rotate(0deg); } to { transform: rotate(360deg) translateX(27px) rotate(-360deg); } }
@keyframes orb-speak { from { transform: scale(.9); } to { transform: scale(1.1); } }
@keyframes caret-blink { 50% { opacity: 0; } }
@keyframes gl-in { from { opacity: 0; transform: translateY(10px) rotateX(30deg); } to { opacity: 1; transform: none; } }
@keyframes chip-in { from { opacity: 0; transform: translateY(18px) translateZ(-80px) rotateX(50deg) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes guide-mini-in { from { opacity: 0; transform: translateY(30px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes orb-focus { 0%, 100% { scale: 1.6; } 50% { scale: 2.3; } }
/* wide screens: once the conversation opens, the topics stand to the right of it - the guide stays low */
@media (min-width: 1000px) {
  .guide { width: min(860px, calc(100vw - 32px)); }
  .g-invite .guide-card { display: grid; grid-template-columns: minmax(0, 1fr) 286px; column-gap: 20px;
    grid-template-areas: "head head" "lines invite" "note note"; }
  .g-invite .guide-head { grid-area: head; }
  .g-invite .guide-lines { grid-area: lines; max-height: 206px; }
  .g-invite .guide-invite { grid-area: invite; align-content: start; margin: 10px 0 6px; }
  .g-invite .guide-note { grid-area: note; }
  .g-invite .guide-chips { flex-direction: column; flex-wrap: nowrap; }
  .g-invite .guide-chip { border-radius: 14px; text-align: left; line-height: 1.3; }
  .g-invite .guide-expert { justify-self: stretch; }
}
@media (max-width: 600px) {
  .guide { width: calc(100vw - 16px); bottom: max(8px, env(safe-area-inset-bottom)); }
  .guide-card { padding: 10px 14px 8px; border-radius: 18px; }
  .guide-lines { max-height: 28vh; }
  .g-invite .guide-lines { max-height: 22vh; }
  /* the topics in one row to swipe through: the guide stays low, the result above it visible */
  .guide-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 2px 14px 4px; scroll-padding-inline: 14px; }
  .guide-chips::-webkit-scrollbar { display: none; }
  .guide-chip { flex: 0 0 auto; font-size: .85rem; padding: 7px 12px; white-space: nowrap; }
  .guide-note { display: none; }
}
/* the expert may know the result: asked for each conversation */
.ctx-ask { flex: 1; overflow-y: auto; padding: 8px 4px 4px; text-align: left; }
.ctx-ask h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--gold-hi); }
.ctx-list { margin: 8px 0; padding-left: 1.1em; columns: 2; column-gap: 24px; font-size: .9rem; color: var(--text-2); }
.ctx-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.ctx-status { margin: 0 0 6px; color: var(--cyan-soft); }
@media (max-width: 600px) { .ctx-list { columns: 1; } }
