:root {
  color-scheme: light;
  --paper: #fffefb;
  --canvas: #f4f2ed;
  --ink: #171719;
  --muted: #6d6b66;
  --line: #ddd9d0;
  --soft: #eeece6;
  --amber: #e8b764;
  --amber-deep: #945f21;
  --green: #27845d;
  --danger: #a23e34;
  --stage: #0d111c;
  --stage-panel: #151a26;
  --stage-line: #2a303e;
  --stage-ink: #f5f1e8;
  --stage-muted: #9ba1ae;
  --radius: 14px;
  --shadow: 0 16px 45px rgba(34, 29, 20, .09);
  --ease: cubic-bezier(.2,.8,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--ink); background: var(--canvas); line-height: 1.55; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #e8b76488; outline-offset: 3px; }
input, textarea, select { width: 100%; min-height: 48px; padding: 12px 14px; color: var(--ink); background: var(--paper); border: 1px solid #c9c5bc; border-radius: 8px; }
textarea { resize: vertical; line-height: 1.6; }
label { display: block; margin-bottom: 8px; font-weight: 680; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; font-weight: 680; transition: border-color .18s, background .18s, transform .18s; }
.btn:hover:not(:disabled) { border-color: #aaa59b; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.primary { color: #1e170c; background: var(--amber); border-color: var(--amber); }
.btn.dark { color: #fff; background: var(--ink); border-color: var(--ink); }
.btn.danger { color: var(--danger); }
.btn.ghost { background: transparent; }
.btn.small { min-height: 38px; padding: 7px 12px; font-size: 14px; }
.btn.wide { width: 100%; }
.icon-btn { width: 42px; padding: 0; }
.quiet { color: var(--muted); font-size: 14px; }
.topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 24px; background: #faf9f6; border-bottom: 1px solid var(--line); }
.landing-page .topbar { position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 var(--line); }
.home-section[id], section[id="pricing"] { scroll-margin-top: 80px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; white-space: nowrap; }
.brand img { width: 32px; height: 32px; }
.brand span { padding-left: 10px; color: var(--muted); border-left: 1px solid var(--line); font-size: 11px; font-weight: 650; letter-spacing: .15em; }
.brand.compact { font-size: 18px; }
.brand.compact img { width: 30px; height: 30px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.account-button { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-nav-link { padding: 8px 5px; color: var(--muted); font-size: 14px; white-space: nowrap; border-bottom: 2px solid transparent; transition: color .18s, border-color .18s; }
.home-nav-link:hover { color: var(--ink); }
.home-nav-link.active { color: var(--ink); border-bottom-color: var(--amber-deep, #c8891a); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
.connection { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 13px; white-space: nowrap; }
.connection::before { width: 7px; height: 7px; content: ""; background: currentColor; border-radius: 50%; box-shadow: 0 0 0 5px #27845d16; }
.connection.off { color: #a66b27; }
.join-code-chip { padding: 7px 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.join-code-chip strong { margin-left: 5px; font-size: 15px; letter-spacing: .12em; }
.eyebrow { color: var(--amber-deep); font-size: 12px; font-weight: 780; letter-spacing: .16em; }
.eyebrow::before { width: 20px; height: 2px; display: inline-block; margin-right: 9px; content: ""; background: var(--amber); vertical-align: middle; }
.surface { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Landing and join */
.landing { max-width: 1180px; margin: 0 auto; padding: 64px 28px 48px; }
.hero { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 64px; }
.hero h1 { margin: 20px 0 24px; font-family: Georgia, "Songti SC", serif; font-size: clamp(48px, 5vw, 68px); line-height: 1.16; letter-spacing: -.045em; }
.hero h1 em { color: var(--amber-deep); font-style: normal; }
.hero .intro { max-width: 470px; margin-bottom: 30px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { min-height: 52px; padding: 13px 20px; }
.mini-note { margin-top: 14px; color: var(--muted); font-size: 13px; }
.demo-card { position: relative; padding: 30px; overflow: hidden; background: var(--stage); color: var(--stage-ink); border: 1px solid #292f3b; border-radius: 18px; box-shadow: 0 28px 70px #10141e35; }
.demo-card::before { position: absolute; top: -130px; right: -70px; width: 300px; height: 300px; content: ""; border: 1px solid #e8b76455; border-radius: 50%; box-shadow: 0 0 70px #e8b76416, inset 0 0 70px #e8b7640d; }
.demo-top, .demo-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.demo-card h2 { position: relative; margin: 34px 0; font-family: Georgia, "Songti SC", serif; font-size: 26px; line-height: 1.55; }
.tag { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.tag .icon { width: 17px; }
.demo-card .tag, .demo-card .quiet { color: var(--stage-muted); }
.demo-bar { display: grid; grid-template-columns: 100px 1fr 42px; align-items: center; gap: 12px; margin: 18px 0; font-size: 13px; }
.demo-bar i { height: 7px; overflow: hidden; background: #252b38; border-radius: 999px; }
.demo-bar b { height: 100%; display: block; background: linear-gradient(90deg, #9fbde7, var(--amber)); border-radius: inherit; }
.demo-bar strong { color: var(--amber); text-align: right; }
.demo-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--stage-line); font-size: 13px; }
.history { margin-top: 56px; }
.entitlement-summary { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.entitlement-summary div { display: grid; gap: 4px; }
.entitlement-summary strong { font-size: 20px; }
.entitlement-summary p { margin: 0; color: var(--muted); }
.entitlement-summary b { color: var(--ink); }
.agent-panel { margin-top:18px; padding:22px; border:1px solid var(--line); border-radius:14px; background:var(--paper); }
.agent-panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; }
.agent-panel-head h2 { margin:4px 0 6px; font-size:22px; }
.agent-panel-head p { margin:0; color:var(--muted); }
.agent-list { display:grid; gap:8px; margin-top:18px; }
.agent-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto auto; align-items:center; gap:10px; padding:12px 14px; border:1px solid var(--line); border-radius:10px; }
.agent-row > div { display:grid; gap:3px; min-width:0; }
.agent-row small,.agent-confirmation small { color:var(--muted); overflow-wrap:anywhere; }
.agent-row > span { color:var(--green); font-size:12px; font-weight:700; }
.agent-row.revoked { opacity:.62; }
.agent-row.revoked > span { color:var(--muted); }
.agent-empty { margin:0; padding:12px; color:var(--muted); text-align:center; }
.agent-pending { display:grid; gap:8px; margin-top:18px; padding-top:16px; border-top:1px solid var(--line); }
.agent-confirmation { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:8px; padding:11px; border:1px solid color-mix(in srgb,var(--amber) 45%,var(--line)); border-radius:10px; background:var(--amber-soft); }
.agent-confirmation > div { display:grid; gap:3px; min-width:0; }
.host-agent-confirmations { display:grid; gap:8px; padding:14px; border:1px solid #d99b43; border-radius:12px; background:#fff7e8; }
.host-agent-confirmations > small { color:var(--amber-deep); font-weight:800; letter-spacing:.1em; }
.host-agent-confirmations .agent-confirmation { grid-template-columns:1fr 1fr; }
.host-agent-confirmations .agent-confirmation > div { grid-column:1/-1; }
.agent-scopes { display:grid; gap:8px; margin:18px 0 0; padding:0; border:0; }
.agent-scopes legend { margin-bottom:8px; font-weight:700; }
.agent-scopes label { display:flex; align-items:center; gap:10px; padding:11px; border:1px solid var(--line); border-radius:10px; }
.agent-scopes label span { display:grid; gap:2px; }
.agent-scopes label small { color:var(--muted); }
#agent-api-key { width:100%; margin-top:8px; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; overflow-wrap:anywhere; }
.history-list { display: flex; flex-wrap: wrap; gap: 10px; }
.history-card { display: flex; align-items: center; gap: 10px; padding: 12px 15px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.history-card span { font-weight: 650; }
.history-card small { color: var(--muted); }
.home-section { margin-top: clamp(88px, 10vw, 132px); scroll-margin-top: 82px; }
.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-heading h2, .roles-copy h2, .ownership-section h2, .home-final h2 { margin-bottom: 16px; font-family: Georgia, "Songti SC", serif; font-size: clamp(32px, 4vw, 48px); line-height: 1.26; letter-spacing: -.035em; }
.section-heading p, .roles-copy > p, .ownership-section > div > p, .home-final p { max-width: 650px; margin-bottom: 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.journey-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.journey-grid article { min-width: 0; padding: 28px 26px 8px 0; }
.journey-grid article + article { padding-left: 26px; border-left: 1px solid var(--line); }
.journey-grid article > span, .capability-grid article > span { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 24px; color: var(--amber-deep); background: color-mix(in srgb, var(--amber) 18%, var(--paper)); border-radius: 12px; }
.journey-grid h3, .role-list strong, .case-card h3, .capability-grid h3 { margin: 0 0 10px; font-size: 18px; }
.journey-grid p, .capability-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.roles-section { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 72px; }
.role-list { margin-top: 34px; }
.role-list article { display: grid; grid-template-columns: 116px 1fr; gap: 20px; padding: 17px 0; border-top: 1px solid var(--line); }
.role-list span { color: var(--muted); font-size: 14px; line-height: 1.7; }
.roles-visual { margin: 0; }
.roles-visual img { width: 100%; height: auto; display: block; overflow: hidden; background: var(--stage); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 70px rgba(34, 29, 20, .14); }
.roles-visual figcaption { margin-top: 13px; color: var(--muted); font-size: 13px; }
.case-grid { display: grid; grid-template-columns: 1.16fr .84fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 18px; }
.case-card { min-height: 250px; display: grid; grid-template-columns: .43fr .57fr; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 45px rgba(34, 29, 20, .06); }
.case-card.case-featured { grid-row: 1 / 3; grid-template-columns: 1fr; }
.case-card img { width: 100%; height: 100%; min-height: 0; display: block; object-fit: cover; background: var(--stage); }
.case-card.case-featured img { aspect-ratio: 16 / 9; height: auto; }
.case-card > div { padding: 24px; }
.case-card.case-featured > div { padding: 30px; }
.case-type { display: block; margin-bottom: 12px; color: var(--amber-deep); font-size: 13px; font-weight: 760; }
.case-card h3 { font-family: Georgia, "Songti SC", serif; font-size: 23px; line-height: 1.45; }
.case-card p { margin-bottom: 18px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.case-card strong { color: var(--ink); font-size: 13px; line-height: 1.6; }
.capability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 54px; border-top: 1px solid var(--line); }
.capability-grid article { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.capability-grid article > span { margin: 0; }
.ownership-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; padding: 46px; background: color-mix(in srgb, var(--amber) 10%, var(--paper)); border: 1px solid color-mix(in srgb, var(--amber-deep) 26%, var(--line)); border-radius: 18px; }
.ownership-section h2 { font-size: clamp(30px, 3.6vw, 43px); }
.ownership-points { display: grid; align-content: center; gap: 20px; }
.ownership-points article { display: grid; grid-template-columns: 100px 1fr; gap: 18px; }
.ownership-points strong { font-size: 14px; }
.ownership-points span { color: var(--muted); font-size: 14px; line-height: 1.65; }
.home-final { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-top: clamp(88px, 10vw, 132px); padding: 54px; background: linear-gradient(135deg, color-mix(in srgb, var(--amber) 20%, var(--paper)), var(--paper)); border: 1px solid var(--line); border-radius: 18px; }
.home-final h2 { font-size: clamp(31px, 4vw, 46px); }
.home-final .hero-actions { flex: 0 0 auto; }
.footer { max-width: 1180px; display: flex; justify-content: space-between; gap: 16px; margin: 40px auto 20px; padding: 22px 28px; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; }
.join-shell { max-width: 480px; margin: 70px auto; padding: 0 24px; }
.join-shell h1 { margin: 20px 0 10px; font-family: Georgia, "Songti SC", serif; font-size: 40px; }
.join-shell > p { color: var(--muted); }
.join-card { margin-top: 30px; padding: 28px; }
.join-input { margin-bottom: 18px; padding-left: 20px; font-size: 30px; font-weight: 750; letter-spacing: .22em; text-align: center; }
.privacy { margin-top: 22px; color: var(--muted); font-size: 13px; line-height: 1.75; }

/* Shared 1280 by 720 stage */
.stage-fit { position: relative; width: 100%; overflow: hidden; background: var(--stage); border-radius: 16px; }
.echo-stage, .participant-app { --stage:#0c111c; --stage-panel:#151a26; --stage-line:#2a303e; --stage-ink:#f3efe6; --stage-muted:#a1a2a6; --amber:#e9b872; --sky:#8db4f0; --track:#202633; --stage-footer:#0d111cf2; --stage-shadow:#0007; }
.echo-stage[data-theme="light"], .participant-app[data-theme="light"] { color-scheme:light; --stage:#f7f3eb; --stage-panel:#fffdf8; --stage-line:#ded8ce; --stage-ink:#1a1b20; --stage-muted:#66645f; --amber:#9c5b17; --sky:#4467b5; --track:#e5e0d8; --stage-footer:#fffdf8f2; --stage-shadow:#5c45242a; }
.echo-stage { position: absolute; top: 0; left: 0; width: 1280px; height: 720px; overflow: hidden; color: var(--stage-ink); background: var(--stage); transform-origin: top left; font-family: Inter, ui-sans-serif, "PingFang SC", sans-serif; transition: color .6s var(--ease), background-color .6s var(--ease); }
.stage-scene { position: absolute; inset: 0 0 72px; padding: 52px 72px; overflow: hidden; animation: scene-in .8s var(--ease) both; }
.stage-scene h1 { font-family: Georgia, "Songti SC", serif; font-weight: 620; }
.stage-footer { position: absolute; right: 0; bottom: 0; left: 0; height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 64px; color: var(--stage-muted); border-top: 1px solid var(--stage-line); background: var(--stage-footer); font-size: 18px; transition: color .6s var(--ease), background-color .6s var(--ease), border-color .6s var(--ease); }
.stage-join, .stage-metrics { display: flex; align-items: center; gap: 14px; }
.stage-join strong { color: var(--stage-ink); font-size: 26px; letter-spacing: .14em; }
.stage-metrics { gap: 30px; }
.stage-metrics strong { margin-right: 6px; color: var(--stage-ink); font-size: 26px; }
.logo-orbit { width: 24px; height: 24px; border: 1px solid #e8b76488; border-radius: 50%; box-shadow: inset 0 0 0 5px #e8b76412, 0 0 0 4px #e8b7640b; }
.qr { display: inline-block; padding: 7px; color: #111; background: #fff; border-radius: 8px; line-height: 0; }
.qr svg { width: 100%; height: auto; display: block; }
.qr-tiny { width: 38px; padding: 3px; border-radius: 4px; }
.echo-rings { position: relative; display: grid; place-items: center; }
.echo-rings::before, .echo-rings::after { position: absolute; content: ""; border: 1px solid #e8b76455; border-radius: 50%; animation: echo 4.5s ease-out infinite; }
.echo-rings::before { inset: 14%; }
.echo-rings::after { inset: 3%; animation-delay: 1.5s; }
.echo-dot { width: 18px; height: 18px; display: inline-block; background: var(--amber); border-radius: 50%; box-shadow: 0 0 30px #e8b764aa; }
.stage-lobby { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; padding: 56px 86px; background: radial-gradient(circle at 76% 45%, #27313a 0, #131925 22%, var(--stage) 55%); }
.echo-stage[data-theme="light"] .stage-lobby { background: radial-gradient(circle at 76% 45%, #e6d6bd 0, #f1e9db 24%, var(--stage) 58%); }
.lobby-copy { position: relative; z-index: 2; }
.lobby-copy > small { color: var(--amber); font-size: 16px; letter-spacing: .12em; }
.lobby-copy h1 { margin: 34px 0 25px; font-size: 56px; line-height: 1.22; }
.lobby-copy p { margin: 0 0 4px; color: var(--stage-muted); font-size: 19px; }
.stage-code { font-family: Georgia, serif; font-size: 64px; letter-spacing: .18em; }
.lobby-online { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 50px; color: var(--stage-muted); }
.lobby-online strong { color: var(--stage-ink); font-size: 28px; }
.lobby-rings { width: 480px; height: 480px; justify-self: center; }
.lobby-rings::before { box-shadow: 0 0 60px #e8b76412; }
.qr-large { position: relative; z-index: 3; width: 220px; padding: 16px; border-radius: 16px; box-shadow: 0 22px 70px var(--stage-shadow); }
.stage-ready { display: grid; grid-template-columns: 52% 48%; align-items: center; padding: 0; }
.stage-art { height: 100%; overflow: hidden; background: radial-gradient(circle at 35% 48%, #b17b3b55, #171d28 34%, var(--stage) 70%); }
.echo-stage[data-theme="light"] .stage-art { background: radial-gradient(circle at 35% 48%, #bc772b3b, #ede3d2 36%, var(--stage) 72%); }
.stage-art::before { inset: 25%; }
.stage-art::after { inset: 12%; }
.stage-art > span { position: relative; z-index: 2; color: #e8b764bb; font-family: Georgia, serif; font-size: 120px; -webkit-text-stroke: 1px #e8b764; }
.stage-art.stage-image { position:relative; background:#151922; }
.stage-art.stage-image::before { position:absolute; inset:0; z-index:2; content:""; background:linear-gradient(90deg, transparent 58%, var(--stage) 100%); }
.stage-art.stage-image::after { display:none; }
.stage-art.stage-image img { width:100%; height:100%; display:block; object-fit:cover; animation:ken-burns 14s ease-in-out infinite alternate; }
.echo-stage[data-theme="light"] .stage-art.stage-image { background:#e9e4db; box-shadow:inset -14px 0 30px #5c45242a; }
.echo-stage[data-theme="light"] .stage-art.stage-image::before { background:linear-gradient(90deg, transparent 72%, var(--stage) 100%); }
.ready-copy { padding: 50px 72px; }
.outline-number { color: transparent; font-family: Georgia, serif; font-size: 92px; line-height: 1; -webkit-text-stroke: 1px #d1a65d; }
.outline-number small { margin-left: 12px; color: var(--stage-muted); font-family: Inter, sans-serif; font-size: 18px; -webkit-text-stroke: 0; }
.ready-copy > p { display: flex; align-items: center; gap: 8px; margin: 20px 0; color: var(--stage-muted); }
.ready-copy h1 { margin: 0 0 30px; font-size: 48px; line-height: 1.35; }
.shimmer { color: #c9c1b4; font-size: 17px; background: linear-gradient(90deg, #858996, #f3cc89, #858996); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 3s linear infinite; }
.stage-kicker { display: flex; align-items: center; gap: 18px; color: var(--stage-muted); font-size: 15px; }
.live-dot, .reveal-label { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; color: #8fd3ad; border: 1px solid #335243; border-radius: 999px; }
.live-dot::before { width: 7px; height: 7px; content: ""; background: #76d19b; border-radius: 50%; animation: live-blink 1.3s infinite; }
.reveal-label { color: var(--amber); border-color: #74582f; }
.stage-collect h1, .stage-reveal h1 { margin: 24px 0 30px; font-size: 46px; line-height: 1.35; }
.stage-collect h1.with-thumb, .stage-reveal h1.with-thumb { max-width:760px; }
.stage-question-thumb { position:absolute; top:52px; right:72px; width:268px; height:151px; margin:0; overflow:hidden; background:var(--stage-panel); border:1px solid var(--stage-line); border-radius:11px; box-shadow:0 14px 34px var(--stage-shadow); }
.stage-question-thumb::after { position:absolute; inset:0; content:""; box-shadow:inset 0 0 0 1px #fff1; pointer-events:none; }
.stage-question-thumb img { width:100%; height:100%; display:block; object-fit:cover; }
.collect-center { height: 390px; display: grid; place-items: center; }
.answer-orbit { position: relative; width: 270px; height: 270px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--stage-line); border-radius: 50%; box-shadow: inset 0 0 80px #e8b76408, 0 0 70px var(--stage-shadow); }
.answer-orbit::before { position: absolute; inset: -1px; content: ""; border: 3px solid transparent; border-top-color: var(--amber); border-right-color: color-mix(in srgb, var(--amber) calc(var(--answer-ratio) * 100%), transparent); border-radius: 50%; transform: rotate(30deg); }
.answer-orbit strong { font-family: Georgia, serif; font-size: 80px; font-weight: 400; line-height: 1; }
.answer-orbit span { margin-top: 14px; color: var(--stage-muted); }
.stage-live-results { margin-top: 12px; }
.stage-bars { display: grid; gap: 20px; }
.stage-bar { display: grid; grid-template-columns: 42px 220px 1fr 70px; align-items: center; gap: 18px; min-height: 44px; }
.stage-bar .bar-index { width: 36px; height: 36px; display: grid; place-items: center; color: var(--stage-muted); background: var(--stage-panel); border: 1px solid var(--stage-line); border-radius: 8px; font-size: 13px; }
.stage-bar strong { overflow: hidden; font-size: 20px; font-weight: 560; text-overflow: ellipsis; white-space: nowrap; }
.stage-bar i { height: 14px; overflow: hidden; background: var(--track); border-radius: 999px; }
.stage-bar b { width: var(--bar-width); height: 100%; display: block; background: linear-gradient(90deg, color-mix(in srgb, var(--sky) 72%, white), var(--sky)); border-radius: inherit; animation: bar-grow 1.1s var(--ease) var(--delay) both; transition: width 1.1s var(--ease); }
.stage-bar.leader b { background: linear-gradient(90deg, #9c6a2a, #efc274); box-shadow: 0 0 18px #e8b76455; }
.stage-bar.leader .bar-index { color: var(--amber); border-color: #7f6135; }
.bar-percent { color: var(--stage-muted); font-family: Georgia, serif; font-size: 24px; text-align: right; }
.leader-badge, .mine-badge, .stage-answers em { display: inline-block; margin-left: 10px; padding: 2px 8px; color: #21180d; background: var(--amber); border-radius: 999px; font-family: Inter, sans-serif; font-size: 11px; font-style: normal; font-weight: 700; vertical-align: 3px; animation: badge-in .5s var(--spring) var(--delay) both; }
.mine-badge { color: var(--amber); background: color-mix(in srgb, var(--amber) 14%, transparent); border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); }
.stage-bars.compact { gap: 14px; }
.stage-bars.compact .stage-bar { min-height: 36px; }
.stage-words { min-height: 330px; display: flex; flex-wrap: wrap; align-content: center; align-items: center; justify-content: center; gap: 18px 30px; padding: 10px 50px; font-family: Georgia, "Songti SC", serif; }
.stage-words > span { position: relative; line-height: 1.15; animation: word-in .9s var(--spring) var(--delay) both, word-float 6s ease-in-out var(--float-delay) infinite; transition: font-size .8s var(--spring); }
.stage-words small { display: block; margin-top: 5px; color: var(--amber); font-family: Inter, sans-serif; font-size: 10px; font-weight: 700; text-align: center; }
.tone-0 { color: #f0bd68; } .tone-1 { color: #98bce9; } .tone-2 { color: #91c9ae; } .tone-3 { color: #e8a8ba; } .tone-4 { color: #e7dfd1; }
.echo-stage[data-theme="light"] .tone-0, .participant-app[data-theme="light"] .tone-0 { color:#a9651e; }
.echo-stage[data-theme="light"] .tone-1, .participant-app[data-theme="light"] .tone-1 { color:#4467b5; }
.echo-stage[data-theme="light"] .tone-2, .participant-app[data-theme="light"] .tone-2 { color:#247153; }
.echo-stage[data-theme="light"] .tone-3, .participant-app[data-theme="light"] .tone-3 { color:#a74464; }
.echo-stage[data-theme="light"] .tone-4, .participant-app[data-theme="light"] .tone-4 { color:#5f5245; }
.stage-answers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stage-answers article { min-height: 130px; padding: 18px; overflow: hidden; background: var(--stage-panel); border: 1px solid var(--stage-line); border-radius: 12px; animation: card-in .7s var(--spring) var(--delay) both; }
.stage-answers article:first-child, .stage-answers article.is-new { border-color: color-mix(in srgb, var(--amber) 64%, var(--stage-line)); box-shadow: 0 8px 26px color-mix(in srgb, var(--amber) 12%, transparent); }
.stage-answers small { color: var(--stage-muted); }
.stage-answers p { display: -webkit-box; margin: 10px 0 0; overflow: hidden; font-size: 18px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.stage-empty { min-height: 300px; display: grid; place-items: center; align-content: center; gap: 28px; color: var(--stage-muted); }
.answer-pulse { position: absolute; top: 50%; left: 50%; z-index: 8; width: 30px; height: 30px; border: 2px solid var(--amber); border-radius: 50%; pointer-events: none; animation: answer-pulse 2.2s var(--ease) forwards; }
.stage-end { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle at center, #27303c 0, #111722 38%, var(--stage) 70%); }
.echo-stage[data-theme="light"] .stage-end { background: radial-gradient(circle at center, #eadbc3 0, #f1e9dd 40%, var(--stage) 72%); }
.end-rings { position: absolute; inset: 80px 330px; opacity: .55; }
.stage-end > small, .stage-end > h1, .stage-end > p, .end-stats { position: relative; z-index: 2; }
.stage-end > small { color: var(--amber); letter-spacing: .14em; }
.stage-end h1 { margin: 20px 0 12px; font-size: 52px; line-height: 1.2; }
.stage-end > p { color: var(--stage-muted); }
.end-stats { display: flex; gap: 70px; margin-top: 38px; }
.end-stats span { color: var(--stage-muted); font-size: 14px; }
.end-stats strong { display: block; color: var(--stage-ink); font-family: Georgia, serif; font-size: 42px; font-weight: 400; }

/* Host */
.host-workspace { min-height: calc(100vh - 64px); display: grid; grid-template-columns: 248px minmax(520px, 1fr) 292px; gap: 24px; padding: 24px; }
.flow-sidebar { min-width: 0; padding-right: 18px; border-right: 1px solid var(--line); }
.side-title, .preview-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.side-title { color: var(--muted); font-size: 13px; font-weight: 720; letter-spacing: .1em; }
.side-title small { font-weight: 550; }
.question-list { display: grid; gap: 9px; max-height: calc(100vh - 250px); padding-right: 3px; overflow: auto; }
.question-row { position: relative; min-width: 0; }
.question-row .flow-card { padding-right: 48px; }
.question-edit { position: absolute; top: 50%; right: 2px; width: 44px; height: 44px; transform: translateY(-50%); color: var(--muted); }
.question-edit:hover:not(:disabled) { color: var(--ink); background: var(--soft); }
.flow-card { width: 100%; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 11px; padding: 9px; color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: 11px; text-align: left; }
.flow-card:hover:not(:disabled) { background: #eeece7; }
.flow-card > span:last-child { min-width: 0; }
.flow-card strong { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.flow-card small { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.flow-card small b { font-weight: 700; }
.flow-thumb { width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; color: var(--amber); background: var(--stage); border-radius: 8px; font-family: Georgia, serif; }
.flow-thumb img { width:100%; height:100%; display:block; object-fit:cover; }
.ripple-thumb { background: radial-gradient(circle, var(--amber) 0 4px, transparent 5px 11px, #e8b76477 12px 13px, transparent 14px 20px, #e8b76444 21px 22px, var(--stage) 23px); }
.lobby-card { margin-bottom: 9px; opacity: 1 !important; }
.add-question { width: 100%; margin-top: 12px; border-style: dashed; background: transparent; }
.host-center { min-width: 0; }
.preview-label strong { font-size: 14px; }
.preview-label span { color: var(--muted); font-size: 12px; }
.host-stage { overflow: hidden; border-radius: 16px; box-shadow: 0 18px 45px #181a2130; }
.under-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.under-stage article { display: grid; grid-template-columns: 1fr; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.under-stage small { color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.under-stage strong { margin-top: 3px; font-size: 13px; }
.under-stage span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.under-stage.has-curation { grid-template-columns: 180px minmax(0, 1fr); }
.curation-panel { min-width:0; max-height:210px; padding:0 !important; overflow:hidden; }
.curation-title { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; border-bottom:1px solid var(--line); }
.curation-title > span { display:grid; margin:0; }
.curation-title em { flex:0 0 auto; padding:5px 8px; color:var(--amber-deep); background:#fff3dc; border-radius:999px; font-size:10px; font-style:normal; font-weight:700; }
.curation-list { display:grid; gap:7px; padding:9px; overflow:auto; }
.curation-list > div { display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:center; gap:10px; padding:8px 9px; background:var(--soft); border:1px solid transparent; border-radius:9px; }
.curation-list > div.featured { background:#fff7e9; border-color:#e8b76488; }
.curation-list p { margin:0; overflow:hidden; font-size:12px; line-height:1.4; text-overflow:ellipsis; white-space:nowrap; }
.curation-list .btn { padding:6px 9px; font-size:10px; }
.curation-empty { margin:4px 5px; color:var(--muted); font-size:11px; }
.control-column { min-width: 0; }
.control-card { padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 30px #312a1f0a; }
.phase-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 26px; }
.phase-rail span { position: relative; display: grid; justify-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.phase-rail span::after { position: absolute; top: 5px; left: calc(50% + 12px); width: calc(100% - 20px); height: 1px; content: ""; background: var(--line); }
.phase-rail span:last-child::after { display: none; }
.phase-rail i { position: relative; z-index: 2; width: 11px; height: 11px; background: var(--paper); border: 2px solid #c9c5bc; border-radius: 50%; }
.phase-rail .active { color: var(--ink); font-weight: 750; }
.phase-rail .active i { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 7px #e8b7642d; }
.phase-rail .done i { background: var(--ink); border-color: var(--ink); }
.control-count { display: flex; align-items: baseline; gap: 7px; }
.control-count strong { font-family: Georgia, serif; font-size: 58px; font-weight: 500; line-height: 1; }
.control-count span { color: var(--muted); font-size: 13px; }
.control-card > p { margin: 8px 0 20px; color: var(--muted); font-size: 13px; }
.main-control { position: relative; width: 100%; min-height: 88px; display: grid; justify-items: start; padding: 18px 52px 18px 18px; color: #fff; background: var(--ink); border: 0; border-radius: 12px; text-align: left; }
.main-control strong { font-size: 15px; }
.main-control span { color: #b8b7b2; font-size: 11px; }
.main-control kbd { position: absolute; top: 20px; right: 15px; }
.return-ready { width: 100%; min-height: 54px; display: grid; gap: 2px; margin-top: 8px; padding: 10px 12px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 10px; text-align: left; }
.return-ready strong { font-size: 12px; }
.return-ready span { color: var(--muted); font-size: 10px; }
.return-ready:hover:not(:disabled) { background: var(--soft); }
kbd { padding: 2px 6px; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 4px; font-family: inherit; font-size: 10px; box-shadow: 0 1px 0 #aaa; }
.control-progress { height: 3px; margin: -3px 12px 17px; overflow: hidden; background: #313033; border-radius: 3px; }
.control-progress i { height: 100%; display: block; background: var(--amber); transition: width .3s; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; }
.switch-row span { display: grid; }
.switch-row strong { font-size: 13px; }
.switch-row small { color: var(--muted); font-size: 11px; font-weight: 400; }
.switch-row input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; pointer-events: none; }
.switch-row > i { position: relative; width: 39px; height: 23px; flex: 0 0 auto; background: #ccc8c0; border-radius: 999px; }
.switch-row > i::after { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; content: ""; background: #fff; border-radius: 50%; transition: transform .18s; }
.switch-row input:checked + i { background: var(--ink); }
.switch-row input:checked + i::after { transform: translateX(16px); }
.theme-row { width:100%; min-height:60px; display:grid; grid-template-columns:1fr auto 18px; align-items:center; gap:10px; padding:12px 0; color:var(--ink); background:transparent; border:0; border-bottom:1px solid var(--line); text-align:left; }
.theme-row > span:first-child { display:grid; }
.theme-row strong { font-size:13px; }
.theme-row small { color:var(--muted); font-size:11px; }
.theme-row > .icon { width:16px; color:var(--muted); }
.theme-swatches { display:flex; }
.theme-swatches i { width:20px; height:20px; border:2px solid var(--paper); border-radius:50%; box-shadow:0 0 0 1px var(--line); }
.theme-swatches i:first-child { background:#0c111c; }
.theme-swatches i:last-child { margin-left:-6px; background:#f7f3eb; }
.control-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.control-actions .btn { min-width: 0; padding: 8px; font-size: 12px; }
.control-actions .danger { grid-column: 1 / -1; }
.control-actions .poster-action { grid-column:1 / -1; color:#fff; background:var(--ink); border-color:var(--ink); }
.shortcut-hint { margin: 14px 0 0 !important; text-align: center; }
.room-title-button, .copy-host { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; margin-top: 12px; padding: 13px 15px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 12px; text-align: left; }
.room-title-button small { color: var(--muted); font-size: 10px; }
.room-title-button strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.room-title-button .icon { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.copy-host { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; }

/* Participant */
.participant-app { min-height: 100dvh; color: var(--stage-ink); background: var(--stage); transition:color .6s var(--ease), background-color .6s var(--ease); }
.featured-notice { display:flex; align-items:center; justify-content:center; gap:8px; padding:10px 16px; color:#2d1b08; background:#f1bc68; font-size:12px; font-weight:700; text-align:center; }
.featured-notice .icon { width:16px; }
.participant-top { height: 72px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--stage-line); }
.participant-top .brand { color: var(--stage-ink); }
.participant-top > div { min-width: 0; display: grid; }
.participant-top > div > strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.participant-top > div > span { display: flex; align-items: center; gap: 3px; color: var(--stage-muted); font-size: 10px; }
.participant-top .connection { font-size: 10px; }
.participant-top .connection::before { width: 5px; height: 5px; box-shadow: none; }
.text-link { min-width:44px; min-height:44px; display:inline-flex; align-items:center; justify-content:flex-end; color: var(--stage-muted); font-size: 12px; }
.participant-progress { height: 3px; background: var(--track); }
.participant-progress i { height: 100%; display: block; background: var(--amber); transition: width .25s; }
.participant-body { max-width: 560px; min-height: calc(100dvh - 116px); display: grid; align-items: center; margin: 0 auto; padding: 32px 22px 46px; }
.participant-waiting, .participant-end { text-align: center; }
.phone-rings { width: 210px; height: 210px; margin: 0 auto 40px; }
.participant-waiting h1, .participant-end h1 { margin-bottom: 12px; font-family: Georgia, "Songti SC", serif; font-size: 28px; }
.participant-waiting p, .participant-end p { color: var(--stage-muted); }
.participant-waiting small { color: var(--amber); letter-spacing: .08em; }
.waiting-online { margin-top: 18px; font-size: 12px; }
.waiting-online strong { color: var(--amber); font-size: 15px; }
.phone-reveal { animation:card-in .5s var(--spring) both; }
.phone-question, .phone-reveal { align-self: start; width: 100%; }
.phone-banner { width:100%; aspect-ratio:16 / 9; margin:0 0 22px; overflow:hidden; background:var(--stage-panel); border:1px solid var(--stage-line); border-radius:14px; box-shadow:0 16px 38px var(--stage-shadow); }
.phone-banner img { width:100%; height:100%; display:block; object-fit:cover; animation:ken-burns 10s ease-in-out infinite alternate; }
.question-meta { margin-bottom: 14px; color: var(--amber); font-size: 12px; letter-spacing: .08em; }
.phone-question h1, .phone-reveal h1 { margin-bottom: 26px; font-family: Georgia, "Songti SC", serif; font-size: 28px; line-height: 1.45; }
.phone-choices { display: grid; gap: 11px; }
.phone-choice { position:relative; width: 100%; min-height: 60px; display: grid; grid-template-columns: 34px minmax(0, 1fr) 22px; align-items: center; gap: 12px; padding: 11px 13px; overflow:hidden; color: var(--stage-ink); background: var(--stage-panel); border: 1px solid var(--stage-line); border-radius: 11px; text-align: left; animation:card-in .5s var(--spring) both; transition:transform .2s var(--ease), background-color .3s, border-color .3s; }
.phone-choice > span { width: 32px; height: 32px; display: grid; place-items: center; color: var(--stage-muted); background: color-mix(in srgb, var(--stage-ink) 7%, var(--stage-panel)); border-radius: 7px; font-size: 12px; }
.phone-choice strong { font-size: 15px; font-weight: 570; }
.phone-choice > i { display: none; color: var(--amber); }
.phone-choice.selected { border-color: var(--amber); background: #2a251d; }
.participant-app[data-theme="light"] .phone-choice.selected { background:#f3e2c9; }
.phone-choice.selected > span { color: #21180d; background: var(--amber); }
.phone-choice.selected > i { display: block; }
.phone-choice .tap-wave { position:absolute; top:50%; left:50%; width:120px; height:120px; margin:-60px; background:color-mix(in srgb, var(--amber) 34%, transparent); border-radius:50%; pointer-events:none; animation:tap-wave .6s var(--ease) forwards; }
.phone-question input, .phone-question textarea { color: var(--stage-ink); background: var(--stage-panel); border-color: var(--stage-line); }
.phone-question input::placeholder, .phone-question textarea::placeholder { color: var(--stage-muted); }
.word-inputs { display: grid; gap: 10px; }
.answer-help, .tap-hint { margin: 13px 0; color: var(--stage-muted); font-size: 12px; text-align: center; }
.answer-help { text-align: left; }
.answer-submit { margin-top: 18px; }
.receipt-card { width: 100%; padding: 30px 24px; text-align: center; background: var(--stage-panel); border: 1px solid var(--stage-line); border-radius: 16px; animation:card-in .6s var(--spring) both; }
.receipt-check { width:92px; height:92px; margin:0 auto 24px; overflow:visible; fill:none; stroke:var(--amber); stroke-linecap:round; stroke-linejoin:round; stroke-width:2; filter:drop-shadow(0 0 16px color-mix(in srgb, var(--amber) 28%, transparent)); }
.receipt-check circle { stroke-dasharray:195; stroke-dashoffset:195; animation:draw-stroke .7s var(--ease) forwards; }
.receipt-check path { stroke-width:2.5; stroke-dasharray:42; stroke-dashoffset:42; animation:draw-stroke .4s var(--ease) .55s forwards; }
.receipt-card h1 { margin-bottom: 18px; font-family: Georgia, "Songti SC", serif; font-size: 27px; }
.receipt-answer { display: inline-block; max-width: 100%; margin-bottom: 18px; padding: 8px 14px; color: var(--amber); background: #e8b76412; border-radius: 999px; overflow-wrap: anywhere; white-space: pre-wrap; }
.receipt-card p { color: var(--stage-muted); font-size: 12px; }
.receipt-card .btn { color: var(--stage-ink); background: transparent; border-color: var(--stage-line); }
.undo-button { min-height:44px; display: inline-flex; align-items: center; gap: 7px; margin: 0 auto 18px; padding: 8px 12px; color: var(--amber); background: transparent; border: 0; font-size: 13px; }
.phone-reveal .stage-bar { grid-template-columns: 28px minmax(76px, 105px) 1fr 43px; gap: 8px; min-height: 44px; }
.phone-reveal .stage-bar .bar-index { width: 27px; height: 27px; font-size: 10px; }
.phone-reveal .stage-bar strong { font-size: 12px; }
.phone-reveal .stage-bar i { height: 7px; }
.phone-reveal .bar-percent { font-size: 13px; }
.phone-reveal .leader-badge, .phone-reveal .mine-badge { display:block; width:max-content; margin:3px 0 0; padding:1px 6px; font-size:9px; vertical-align:0; }
.phone-reveal .stage-words { min-height: 220px; padding: 0; gap: 12px 16px; }
.phone-reveal .stage-answers { grid-template-columns: 1fr; }
.phone-reveal .stage-answers article:nth-child(n+4) { display: none; }
.phone-reveal > p { margin-top: 24px; color: var(--stage-muted); font-size: 12px; text-align: center; }
.phone-end-stats { display: flex; justify-content: center; gap: 45px; margin-top: 30px; color: var(--stage-muted); font-size: 11px; }
.phone-end-stats strong { display: block; color: var(--stage-ink); font-family: Georgia, serif; font-size: 34px; }
.phone-footer { height: 41px; padding: 10px 18px; color: var(--stage-muted); border-top: 1px solid var(--stage-line); font-size: 10px; text-align: center; }
.participant-app .net-banner { color: #f4d2a2; background: #3b2a17; border-color: #6b4b26; }

/* Screen */
.screen-app { min-height: 100dvh; display: grid; place-items: center; overflow: hidden; background: #05070c; transition:background-color .6s var(--ease); }
.screen-app[data-theme="light"] { background:#e7e0d5; }
.screen-app.high-contrast { background:#000; }
.screen-app.high-contrast .echo-stage { --stage:#000; --stage-panel:#0a0a0c; --stage-line:#3f444e; --stage-ink:#ffffff; --stage-muted:#c9ccd2; --amber:#f5c98c; --sky:#a8c6f8; --track:#23262e; --stage-footer:#000000f5; }
.screen-app.high-contrast .echo-stage[data-theme="light"] { --stage:#fff; --stage-panel:#fbfaf7; --stage-line:#8a8578; --stage-ink:#000; --stage-muted:#3f3c36; --amber:#7a430d; --sky:#2c4f9e; --track:#d8d3c8; --stage-footer:#fffffff5; }
.screen-app.high-contrast .echo-rings::before, .screen-app.high-contrast .echo-rings::after { display: none; }
.screen-contrast { position: fixed; top: 14px; right: 118px; z-index: 20; padding: 8px 14px; color: #c9ccd2; background: #0009; border: 1px solid #3f444e; border-radius: 999px; font-size: 13px; opacity: .55; transition: opacity .3s; }
.screen-contrast:hover, .screen-contrast[aria-pressed="true"] { opacity: 1; }
.screen-app[data-theme="light"] .screen-contrast { color: #3f3c36; background: #fffb; border-color: #8a8578; }
.screen-stage { width: min(100vw, calc(100vh * 16 / 9)); }
.screen-stage .stage-fit { border-radius: 0; }
.screen-fullscreen { position: fixed; top: 14px; right: 14px; z-index: 20; display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; color: #c2c5cd; background: #101520cc; border: 1px solid #303746; border-radius: 8px; opacity: .55; }
.screen-fullscreen:hover { opacity: 1; }
.screen-net { position: fixed; top: 0; right: 0; left: 0; z-index: 30; }
.theme-debug { position:fixed; top:14px; left:14px; z-index:20; padding:7px 10px; color:#d8d9dd; background:#101520cc; border:1px solid #303746; border-radius:8px; font-size:11px; opacity:.72; }

/* Feedback, dialogs and utility */
.net-banner { padding: 10px 18px; color: #704512; background: #fff1d8; border-bottom: 1px solid #e4cfa9; font-size: 12px; text-align: center; }
.inline-error { display: none; margin: 12px 0; padding: 10px 12px; color: #a5392f; background: #fcedea; border-radius: 8px; font-size: 13px; }
.inline-error:not(:empty) { display: block; }
.loading { padding: 80px 24px; color: var(--muted); text-align: center; }
.boot { min-height: 60dvh; display: grid; place-items: center; padding: 40px 20px; }
.boot-card { width: min(420px, 92vw); padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; display: grid; gap: 14px; }
.boot-frame { width: min(880px, 94vw); aspect-ratio: 16 / 9; padding: 5%; background: #0d111c; border-radius: 16px; display: grid; gap: 3.5%; align-content: center; }
.boot-line { display: block; height: 14px; border-radius: 7px; background: #c9c4b8; }
.boot-line.tall { height: 26px; border-radius: 10px; }
.boot-block { display: block; height: 46px; border-radius: 12px; background: #c9c4b8; }
.boot-block.wide { width: 60%; height: 12%; min-height: 30px; }
.boot-frame .boot-line, .boot-frame .boot-block { background: #232a38; }
.w30 { width: 30%; } .w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
@media (prefers-reduced-motion: no-preference) {
  .boot-line, .boot-block { animation: boot-pulse 1.6s ease-in-out infinite; }
  @keyframes boot-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
}
@media (prefers-color-scheme: dark) {
  .boot-card { background: #171d26; border-color: #343b47; }
  .boot-card .boot-line, .boot-card .boot-block { background: #2a323f; }
}
.error-page { max-width: 560px; margin: 90px auto; padding: 0 24px; }
.error-page h1 { margin: 20px 0 10px; font-family: Georgia, "Songti SC", serif; font-size: 36px; }
.error-page p { color: var(--muted); }
#toast { position: fixed; bottom: 24px; left: 50%; z-index: 100; max-width: calc(100% - 32px); padding: 11px 18px; color: #fff; background: #171719; border-radius: 9px; box-shadow: 0 12px 40px #0004; opacity: 0; pointer-events: none; transform: translate(-50%, 80px); transition: opacity .2s, transform .2s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
dialog { width: 520px; max-width: calc(100% - 30px); max-height: calc(100dvh - 40px); padding: 28px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 30px 100px #17120c45; }
dialog:has(.question-editor) { width:720px; }
dialog:has(.poster-editor) { width:900px; }
dialog::backdrop { background: #17130d55; backdrop-filter: blur(4px); }
.dialog-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.dialog-title h2 { margin: 0; font-size: 23px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.field { margin-bottom: 20px; }
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.dialog-eyebrow { margin:0 0 3px; color:var(--amber-deep); font-size:10px; font-weight:760; letter-spacing:.14em; }
.theme-modes { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin:0 0 18px; padding:0; border:0; }
.theme-modes legend { margin-bottom:9px; font-size:13px; font-weight:700; }
.theme-modes label { margin:0; cursor:pointer; }
.theme-modes input { position:absolute; width:1px; height:1px; min-height:0; opacity:0; }
.theme-modes label > span { min-height:76px; display:grid; grid-template-columns:16px 1fr; align-content:center; gap:2px 9px; padding:12px; border:1px solid var(--line); border-radius:11px; }
.theme-modes label > span > i { width:15px; height:15px; grid-row:1 / 3; align-self:center; border:1px solid #aaa49a; border-radius:50%; }
.theme-modes strong { font-size:13px; }
.theme-modes small { color:var(--muted); font-size:10px; }
.theme-modes input:checked + span { border-color:var(--amber-deep); background:#fff7e9; box-shadow:0 0 0 2px #e8b76422; }
.theme-modes input:checked + span > i { border:4px solid var(--amber-deep); }
.theme-times { display:grid; grid-template-columns:1fr auto 1fr; align-items:end; gap:10px; margin-bottom:18px; padding:14px; background:var(--soft); border-radius:11px; }
.theme-times label { margin:0; color:var(--muted); font-size:11px; }
.theme-times input { margin-top:5px; background:var(--paper); }
.theme-times > span { padding-bottom:13px; color:var(--muted); }
.warning { margin-bottom: 18px; padding: 11px 13px; color: #7b4e16; background: #fff2dd; border-radius: 8px; font-size: 12px; }
.image-later { margin:0 0 18px; padding:12px 14px; color:var(--muted); background:var(--soft); border-radius:9px; font-size:12px; }
.image-editor { margin:24px 0 20px; padding-top:22px; border-top:1px solid var(--line); }
.image-editor-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:12px; }
.image-editor-head > div { display:grid; gap:3px; }
.image-editor-head strong { font-size:14px; }
.image-editor-head small, .image-tools > span, .ai-image-section small { color:var(--muted); font-size:11px; }
.image-current { min-height:72px; display:grid; place-items:center; padding:12px; color:var(--muted); background:var(--soft); border:1px dashed var(--line); border-radius:11px; font-size:12px; text-align:center; }
.image-current > span { display:inline-flex; align-items:center; gap:7px; }
.image-current.has-image { position:relative; aspect-ratio:16 / 6; padding:0; overflow:hidden; border-style:solid; }
.image-current.has-image img { width:100%; height:100%; display:block; object-fit:cover; }
.image-current.has-image span { position:absolute; right:9px; bottom:9px; padding:5px 8px; color:#fff; background:#111b; border-radius:6px; font-size:10px; }
.image-tools { display:flex; align-items:center; gap:11px; margin:11px 0 18px; }
.image-upload { cursor:pointer; }
.preset-section > small { display:block; margin-bottom:8px; color:var(--muted); font-size:11px; }
.preset-grid, .candidate-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; }
.preset-grid button, .candidate-grid button { min-width:0; padding:0; overflow:hidden; color:var(--ink); background:var(--paper); border:1px solid var(--line); border-radius:9px; text-align:left; }
.preset-grid button:hover, .candidate-grid button:hover { border-color:var(--amber-deep); box-shadow:0 0 0 2px #e8b76422; }
.preset-grid img, .candidate-grid img { width:100%; aspect-ratio:16 / 9; display:block; object-fit:cover; }
.preset-grid span, .candidate-grid span { display:block; padding:6px 8px; overflow:hidden; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.ai-image-section { display:grid; grid-template-columns:1fr auto; gap:9px 12px; margin-top:20px; padding:14px; background:#f7f3eb; border:1px solid var(--line); border-radius:11px; }
.ai-image-section > div:first-child { display:grid; gap:2px; }
.ai-image-section strong { display:flex; align-items:center; gap:6px; font-size:13px; }
.ai-image-section textarea { grid-column:1; }
.ai-image-section > .btn { grid-column:2; align-self:stretch; }
.candidate-grid { grid-column:1 / -1; grid-template-columns:repeat(4, minmax(0, 1fr)); }
.poster-toolbar { display:flex; align-items:end; gap:16px; margin-bottom:16px; }
.poster-toolbar fieldset { display:flex; gap:6px; margin:0; padding:0; border:0; }
.poster-toolbar legend { margin-bottom:6px; color:var(--muted); font-size:10px; font-weight:700; letter-spacing:.08em; }
.poster-toolbar label { margin:0; cursor:pointer; }
.poster-toolbar input { position:absolute; width:1px; height:1px; min-height:0; opacity:0; }
.poster-toolbar label > span { display:block; padding:8px 11px; color:var(--muted); background:var(--soft); border:1px solid var(--line); border-radius:8px; font-size:11px; }
.poster-toolbar input:checked + span { color:var(--ink); background:#fff7e9; border-color:var(--amber-deep); box-shadow:0 0 0 2px #e8b76422; }
.poster-qr { margin-left:auto !important; }
.poster-preview { height:min(50vh, 520px); display:grid; place-items:center; padding:18px; overflow:hidden; background:#ded8cf; border-radius:12px; }
.poster-preview canvas { max-width:100%; max-height:100%; display:block; background:transparent; filter:drop-shadow(0 15px 18px #17120c2b); }
.poster-meta { display:flex; justify-content:space-between; gap:12px; margin-top:9px; color:var(--muted); font-size:11px; }
.poster-meta small { text-align:right; }
.pricing-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.pricing-section.has-test-product .pricing-grid { grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); }
.pricing-card { display:flex; min-height:410px; flex-direction:column; padding:28px; background:var(--paper); border:1px solid var(--line); border-radius:20px; box-shadow:var(--shadow); }
.pricing-card.featured { border-color:var(--amber-deep); box-shadow:0 20px 56px #b5732a22; }
.pricing-card.test-only { border-style:dashed; box-shadow:none; }
.pricing-card > span { color:var(--amber-deep); font-size:12px; font-weight:800; letter-spacing:.08em; }
.pricing-card > strong { margin-top:14px; font-family:var(--serif); font-size:38px; }
.pricing-card > p { min-height:44px; margin:8px 0 18px; color:var(--muted); line-height:1.65; }
.pricing-card ul { display:grid; gap:10px; margin:0 0 24px; padding:0; list-style:none; }
.pricing-card li { display:flex; gap:8px; align-items:flex-start; font-size:13px; line-height:1.5; }
.pricing-card li .icon { width:15px; min-width:15px; color:var(--amber-deep); }
.pricing-card > .btn { width:100%; margin-top:auto; }
.pricing-note { margin-top:15px; color:var(--muted); font-size:12px; text-align:center; }
.order-summary { max-width:1180px; display:grid; grid-template-columns:180px minmax(0,1fr); gap:20px; margin:18px auto 0; padding:22px 26px; background:var(--paper); border:1px solid var(--line); border-radius:15px; }
.order-summary > div:first-child { display:grid; align-content:start; gap:5px; }
.order-summary > div:last-child { display:grid; gap:8px; }
.order-summary article { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:14px; padding:10px 0; border-bottom:1px solid var(--line); }
.order-summary article:last-child { border-bottom:0; }
.order-summary article > span { display:grid; gap:3px; }
.order-summary article small { color:var(--muted); font-size:10px; }
.order-summary article em { padding:4px 8px; border-radius:999px; color:var(--muted); background:var(--soft); font-size:10px; font-style:normal; }
.order-summary article .order-paid { color:#236b4b; background:#daf1e4; }
.order-summary article .order-pending { color:#865716; background:#fff0cf; }
.order-receipt { display:grid; grid-template-columns:90px minmax(0,1fr); gap:10px 16px; margin:20px 0; padding:18px; background:var(--soft); border-radius:12px; }
.order-receipt span { color:var(--muted); font-size:12px; }
.order-receipt strong { overflow-wrap:anywhere; }

/* Authenticated management and operations consoles */
.login-shell { width:min(980px,calc(100% - 40px)); min-height:calc(100vh - 64px); display:grid; grid-template-columns:1fr 420px; align-items:center; gap:80px; margin:0 auto; padding:64px 0; }
.login-copy h1 { margin:18px 0; font-family:Georgia,"Songti SC",serif; font-size:52px; line-height:1.18; }
.login-copy p { max-width:480px; color:var(--muted); font-size:17px; }
.login-card { display:grid; gap:12px; padding:30px; }
.login-card small { color:var(--muted); }
.console-shell { min-height:calc(100vh - 64px); display:grid; grid-template-columns:238px minmax(0,1fr); }
.console-nav { position:sticky; top:0; height:calc(100vh - 64px); display:flex; flex-direction:column; padding:28px 18px 20px; background:#efede7; border-right:1px solid var(--line); }
.console-brand { display:grid; gap:5px; padding:0 10px 22px; }
.console-brand strong { font-size:18px; }
.console-nav nav { display:grid; gap:4px; }
.console-nav nav a { padding:10px 12px; color:var(--muted); border-radius:8px; font-size:14px; font-weight:650; }
.console-nav nav a:hover,.console-nav nav a.active { color:var(--ink); background:var(--paper); }
.console-user { display:grid; gap:10px; margin-top:auto; padding:18px 10px 0; border-top:1px solid var(--line); }
.console-user small { overflow:hidden; color:var(--muted); text-overflow:ellipsis; }
.console-main { width:100%; max-width:1480px; min-width:0; padding:42px clamp(24px,4vw,64px) 90px; }
.console-loading { padding:80px 0; color:var(--muted); text-align:center; }
.console-section { padding:0 0 58px; scroll-margin-top:28px; }
.console-section + .console-section { padding-top:48px; border-top:1px solid var(--line); }
.console-heading,.section-bar { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; margin-bottom:24px; }
.console-heading h1 { margin:8px 0 4px; font-family:Georgia,"Songti SC",serif; font-size:38px; }
.console-heading p,.section-bar p { color:var(--muted); }
.section-bar h2,.section-bar h1 { margin:5px 0 0; font-size:26px; }
.metric-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.metric-grid article { display:grid; gap:6px; min-height:128px; padding:20px; background:var(--paper); border:1px solid var(--line); border-radius:14px; }
.metric-grid small,.metric-grid span { color:var(--muted); }
.metric-grid strong { font-size:28px; }
.notice-panel { display:grid; gap:10px; margin-top:16px; padding:18px; background:#fff7e8; border:1px solid #d99b43; border-radius:13px; }
.data-list { display:grid; gap:9px; }
.activity-row,.workspace-row,.operator-row { display:flex; align-items:center; gap:10px; padding:14px 16px; background:var(--paper); border:1px solid var(--line); border-radius:11px; }
.activity-row > div,.workspace-row > div,.operator-row > div,.workspace-detail .data-list > div { min-width:0; display:grid; gap:3px; margin-right:auto; }
.activity-row small,.workspace-row small,.operator-row small,.workspace-detail small { color:var(--muted); overflow-wrap:anywhere; }
.operator-row.muted { opacity:.6; }
.inline-form { display:grid; grid-template-columns:minmax(220px,1fr) minmax(280px,1.4fr) auto; align-items:end; gap:12px; margin-top:18px; padding:18px; background:var(--paper); border:1px solid var(--line); border-radius:12px; }
.inline-form > div { display:grid; gap:3px; }
.inline-form small { color:var(--muted); }
.inline-form .inline-error { grid-column:1/-1; }
.table-wrap { margin-top:20px; overflow:auto; background:var(--paper); border:1px solid var(--line); border-radius:12px; }
.table-wrap table { width:100%; border-collapse:collapse; font-size:13px; }
.table-wrap th,.table-wrap td { padding:12px 14px; border-bottom:1px solid var(--line); text-align:left; white-space:nowrap; vertical-align:middle; }
.table-wrap th { color:var(--muted); background:var(--soft); font-size:11px; letter-spacing:.05em; }
.table-wrap tr:last-child td { border-bottom:0; }
.table-wrap td small { display:block; margin-top:3px; color:var(--muted); }
.table-wrap code { font-size:12px; }
.status-badge { display:inline-block; padding:4px 8px; color:var(--muted); background:var(--soft); border-radius:999px; font-size:11px; }
.status-paid { color:#236b4b; background:#daf1e4; }
.status-pending { color:#865716; background:#fff0cf; }
.meter-grid,.compact-pricing { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.meter-grid article,.compact-pricing article { padding:18px; background:var(--paper); border:1px solid var(--line); border-radius:12px; }
.meter-grid article > div,.compact-pricing article > div { display:flex; justify-content:space-between; gap:12px; }
.meter-grid i { height:7px; display:block; margin:18px 0 8px; overflow:hidden; background:var(--soft); border-radius:99px; }
.meter-grid i b { height:100%; display:block; background:var(--amber-deep); border-radius:inherit; }
.meter-grid small,.compact-pricing p { color:var(--muted); }
.compact-pricing article { display:flex; flex-direction:column; }
.compact-pricing article > div span { color:var(--amber-deep); font-weight:750; }
.compact-pricing .btn { margin-top:auto; }
.account-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:0; }
.account-grid div { padding:18px; background:var(--paper); border:1px solid var(--line); border-radius:12px; }
.account-grid dt { color:var(--muted); font-size:12px; }
.account-grid dd { margin:5px 0 0; font-weight:700; overflow-wrap:anywhere; }
.boundary-note,.empty-state { padding:16px; color:var(--muted); background:var(--soft); border-radius:10px; }
.search-form { display:flex; gap:10px; margin-bottom:16px; }
.workspace-detail h3 { margin:24px 0 10px; }
.detail-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:18px 0; }
.detail-grid article { display:grid; gap:5px; padding:14px; background:var(--soft); border-radius:9px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes echo { 0% { opacity: .75; transform: scale(.68); } 75%, 100% { opacity: 0; transform: scale(1.1); } }
@keyframes shimmer { to { background-position: -200% center; } }
@keyframes answer-pulse { from { opacity: .8; transform: translate(-50%, -50%) scale(.3); } to { opacity: 0; transform: translate(-50%, -50%) scale(14); } }
@keyframes scene-in { from { opacity:0; transform:scale(1.015); filter:blur(6px); } }
@keyframes live-blink { 50% { opacity:.25; } }
@keyframes bar-grow { from { width:0; } to { width:var(--bar-width); } }
@keyframes badge-in { from { opacity:0; transform:scale(.25); } }
@keyframes word-in { from { opacity:0; transform:scale(.3) translateY(30px); filter:blur(8px); } }
@keyframes word-float { 50% { translate:0 -6px; } }
@keyframes card-in { from { opacity:0; transform:translateY(24px) scale(.96); } }
@keyframes tap-wave { to { opacity:0; transform:scale(2.4); } }
@keyframes draw-stroke { to { stroke-dashoffset:0; } }
@keyframes ken-burns { from { transform:scale(1.01) translate3d(-.4%, -.3%, 0); } to { transform:scale(1.08) translate3d(.7%, .5%, 0); } }
@keyframes home-enter { from { opacity:0; transform:translateY(14px); } }

@media (prefers-reduced-motion: no-preference) {
  .landing-page .hero-copy { animation:home-enter .58s var(--ease) both; }
  .landing-page .demo-card { animation:home-enter .66s .08s var(--ease) both; }
}

@media (prefers-color-scheme: dark) {
  body.landing-page { color-scheme: dark; --canvas:#0f141c; --paper:#171d26; --ink:#f3efe6; --muted:#b1b0aa; --line:#343b47; --soft:#202732; --amber-deep:#efc47c; --shadow:0 16px 45px #05070b55; background:#0f141c; }
  body.landing-page .topbar { background:#111720; }
  body.landing-page .demo-card { border-color:#3a414d; box-shadow:0 28px 70px #05070b88; }
  body.landing-page .roles-visual img, body.landing-page .case-card { box-shadow:0 20px 60px #05070b66; }
}

@media (max-width: 1160px) {
  .host-workspace { grid-template-columns: 210px minmax(450px, 1fr) 260px; gap: 16px; padding: 18px; }
  .top-actions .join-code-chip { display: none; }
  .control-card { padding: 14px; }
}
@media (max-width: 900px) {
  .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .host-workspace { display: grid; grid-template-columns: 190px minmax(0, 1fr); }
  .control-column { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px; }
  .control-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 10px 18px; }
  .phase-rail, .control-count, .control-card > p { grid-column: 1; }
  .main-control, .control-progress, .switch-row, .theme-row, .control-actions, .shortcut-hint { grid-column: 2; }
  .main-control { grid-row: 1 / 3; }
  .return-ready { grid-column: 1; grid-row: 4; }
  .control-progress { grid-row: 3; }
  .switch-row { grid-row: 4; }
  .curate-switch { grid-row:5; }
  .theme-row { grid-row:6; }
  .control-actions { grid-row: 7; }
  .shortcut-hint { grid-row: 8; }
  .hero { grid-template-columns: 1fr; }
  .home-nav-link { display: none; }
  .journey-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-grid article:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .journey-grid article:nth-child(4) { border-top: 1px solid var(--line); }
  .roles-section, .ownership-section { grid-template-columns: 1fr; gap: 38px; }
  .case-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .case-card.case-featured { grid-row: auto; }
  .case-card:not(.case-featured) { min-height: 270px; }
  .home-final { align-items: start; flex-direction: column; }
  .pricing-grid, .pricing-section.has-test-product .pricing-grid { grid-template-columns:1fr; }
}
@media (max-width: 680px) {
  .login-shell { width:auto; min-height:auto; grid-template-columns:1fr; gap:28px; padding:46px 22px; }
  .login-copy h1 { font-size:40px; }
  .console-shell { display:block; }
  .console-nav { position:static; width:auto; height:auto; padding:16px; border-right:0; border-bottom:1px solid var(--line); }
  .console-brand { padding-bottom:12px; }
  .console-nav nav { display:flex; padding-bottom:4px; overflow-x:auto; }
  .console-nav nav a { flex:0 0 auto; }
  .console-user { grid-template-columns:1fr auto; align-items:center; margin-top:12px; padding-top:12px; }
  .console-main { padding:28px 16px 60px; }
  .console-heading,.section-bar { align-items:flex-start; flex-direction:column; }
  .metric-grid,.meter-grid,.compact-pricing,.account-grid,.detail-grid { grid-template-columns:1fr; }
  .activity-row,.workspace-row,.operator-row { align-items:stretch; flex-direction:column; }
  .activity-row > div,.workspace-row > div,.operator-row > div { width:100%; margin-right:0; }
  .activity-row .btn,.workspace-row .btn { width:100%; }
  .inline-form { grid-template-columns:1fr; }
  .topbar { height: 58px; padding: 0 15px; }
  .topbar .brand span, .top-actions .quiet, .top-actions .connection, .top-actions .btn:not(:last-child) { display: none; }
  .landing { padding: 48px 22px 26px; }
  .hero { gap: 40px; }
  .entitlement-summary { align-items: flex-start; flex-direction: column; gap: 10px; }
  .order-summary { grid-template-columns:1fr; }
  .order-summary article { grid-template-columns:minmax(0,1fr) auto; }
  .order-summary article > strong { grid-column:2; }
  .agent-panel-head { flex-direction:column; }
  .agent-row { grid-template-columns:1fr auto; }
  .agent-row > div { grid-column:1/-1; }
  .agent-confirmation { grid-template-columns:1fr 1fr; }
  .agent-confirmation > div { grid-column:1/-1; }
  .hero h1 { font-size: 48px; }
  .hero .intro { font-size: 16px; }
  .demo-card { padding: 22px; }
  .demo-card h2 { font-size: 22px; }
  .demo-bar { grid-template-columns: 80px 1fr 38px; gap: 8px; }
  .home-section { margin-top: 82px; }
  .section-heading { margin-bottom: 30px; }
  .section-heading h2, .roles-copy h2, .ownership-section h2, .home-final h2 { font-size: 32px; }
  .section-heading p, .roles-copy > p, .ownership-section > div > p, .home-final p { font-size: 15px; }
  .journey-grid { grid-template-columns: 1fr; }
  .journey-grid article, .journey-grid article + article { padding: 24px 0; border-top: 1px solid var(--line); border-left: 0; }
  .journey-grid { border-top: 0; }
  .role-list article { grid-template-columns: 1fr; gap: 5px; }
  .case-card, .case-card:not(.case-featured) { min-height: 0; grid-template-columns: 1fr; }
  .case-card:not(.case-featured) img { aspect-ratio: 16 / 8; height: auto; }
  .case-card > div, .case-card.case-featured > div { padding: 24px; }
  .capability-grid { grid-template-columns: 1fr; }
  .ownership-section { padding: 30px 24px; }
  .ownership-points article { grid-template-columns: 1fr; gap: 4px; }
  .home-final { padding: 34px 24px; }
  .home-final .hero-actions, .home-final .hero-actions .btn { width: 100%; }
  .footer { flex-direction: column; padding: 20px 22px; }
  .host-workspace { display: block; padding: 14px; }
  .flow-sidebar { padding: 0; border: 0; }
  .question-list { display: flex; max-height: none; padding-bottom: 8px; overflow-x: auto; }
  .question-row { flex: 0 0 230px; }
  .flow-card { min-width: 190px; }
  .question-row .flow-card { min-width: 0; }
  .lobby-card { display: none; }
  .add-question { width: auto; margin: 5px 0 14px; }
  .preview-label { margin-top: 4px; }
  .under-stage { grid-template-columns: 1fr; }
  .under-stage:not(.has-curation) article:nth-child(2) { display: none; }
  .under-stage.has-curation { grid-template-columns:1fr; }
  .under-stage.has-curation > article:first-child { display:none; }
  .control-column { display: block; margin-top: 14px; }
  .control-card { display: block; }
  .copy-host { display: none; }
  .join-shell { margin: 46px auto; }
  dialog { padding: 22px; }
  .dialog-foot { flex-wrap: wrap; }
  .participant-top .brand strong { display: none; }
  .screen-fullscreen { top: 8px; right: 8px; font-size: 11px; }
  .theme-modes { grid-template-columns:1fr; }
  .preset-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .candidate-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .ai-image-section { grid-template-columns:1fr; }
  .ai-image-section textarea, .ai-image-section > .btn { grid-column:1; }
  dialog:has(.poster-editor) { padding:18px; }
  .poster-toolbar { flex-wrap:wrap; align-items:start; }
  .poster-qr { margin-left:0 !important; }
  .poster-preview { height:44vh; padding:10px; }
  .poster-meta { display:grid; }
  .poster-meta small { text-align:left; }
}
.payment-return { min-height:calc(100vh - 138px); display:grid; place-items:center; padding:48px 22px; }
.payment-return section { width:min(680px,100%); padding:54px; border:1px solid var(--line); border-radius:28px; background:var(--surface); box-shadow:0 24px 70px rgba(32,27,20,.08); }
.payment-return h1 { margin:12px 0 18px; font-family:var(--serif); font-size:clamp(34px,6vw,58px); line-height:1.08; }
.payment-return p { margin:0; color:var(--muted); font-size:17px; line-height:1.8; }
.payment-order-summary { display:grid; gap:10px; margin:28px 0 0; padding:20px; border:1px solid var(--line); border-radius:18px; background:var(--background); }
.payment-order-summary div { display:grid; grid-template-columns:76px 1fr; gap:16px; align-items:baseline; }
.payment-order-summary dt { color:var(--muted); font-size:13px; }
.payment-order-summary dd { margin:0; overflow-wrap:anywhere; font-weight:650; }
.payment-return-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:28px; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration:.18s; animation-timing-function:ease-out; }
@media (max-width: 640px) { .payment-return section { padding:32px 24px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-delay:0s !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; transition-delay:0s !important; }
}
