/* The question and the single answer action share one viewport. */
body.one-action-room{overflow:hidden;padding:0}
body.one-action-room> :not(#flow-room):not(dialog):not(script){display:none!important}
#flow-room{position:fixed;inset:0;z-index:60;background:var(--bg,#faf9f7);color:var(--text,#202331);height:100dvh;overflow:hidden}
.flow-header{height:64px;padding:0 max(20px,4vw);display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);background:var(--surface)}
.flow-header>span{font-size:12px;color:var(--muted)}
.flow-menu-button{width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--text);font-size:24px;line-height:1;cursor:pointer}
.flow-layout{height:calc(100% - 64px);max-width:1040px;margin:auto;padding:20px 28px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:18px}
.flow-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;min-width:0}
.flow-heading h1{font-size:17px;line-height:1.35;letter-spacing:-.3px;margin:0}
.flow-heading p{font-size:12px;color:var(--muted);margin:4px 0 0}
.flow-pill{font-size:12px;padding:6px 12px;border:1px solid var(--line);border-radius:20px;white-space:nowrap}
.flow-stage{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:0;border:1px solid var(--line);border-radius:24px;background:var(--surface);padding:28px 36px;overflow:auto;overscroll-behavior:contain}
.flow-portraits{display:flex;align-items:center;justify-content:center;gap:32px;flex-shrink:0}
.flow-avatar{width:120px;height:120px;display:grid;place-items:center;flex-shrink:0;border-radius:50%;background:var(--tint,#fae3dd);color:#c94359;box-shadow:0 0 0 10px var(--soft);font-size:64px;margin:12px 0 18px}
.flow-avatar[data-state=speaking]{animation:flow-speaking 1.8s ease-in-out infinite}
.flow-avatar[data-state=listening]{box-shadow:0 0 0 10px #738c741a}
#flow-self{width:160px;height:120px;object-fit:cover;transform:scaleX(-1);border-radius:14px;background:#1f2230}
.flow-question-region{flex:0 1 auto;min-height:45px;max-height:40%;overflow:auto;overscroll-behavior:contain;text-align:center;width:100%}
.flow-question-region h2{font-size:clamp(21px,2.4vw,29px);line-height:1.42;letter-spacing:-.6px;max-width:730px;margin:0 auto}
.flow-state{font-size:13px;color:var(--muted);margin:0;min-height:20px;text-align:center}
.flow-action{text-align:center}
#flow-next{min-width:320px;min-height:50px;border-radius:12px;font-size:16px;font-weight:650;padding:14px 22px}
#flow-notice{font-size:12px;line-height:1.4;margin:0 0 8px;color:var(--muted);max-height:44px;overflow:auto}
#flow-notice:empty{display:none}
#flow-hint{font-size:11px;color:var(--muted);margin:8px 0 0}
#flow-answer{width:100%;flex:1 1 130px;min-height:70px;max-height:280px;resize:none;margin:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);font-size:16px;padding:14px;line-height:1.5}
#flow-answer-label{align-self:flex-start;font-size:12px;margin:0}
#flow-options{width:100%;overflow:auto;flex:0 1 auto;min-height:70px}
#flow-options label{display:flex;align-items:start;gap:10px;border:1px solid var(--line);border-radius:10px;padding:10px;margin:4px 0;font-size:14px;cursor:pointer}
#flow-options input{margin:4px 0;flex-shrink:0}
#flow-preflight,#flow-menu{width:min(530px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid var(--line);border-radius:22px;padding:28px;background:var(--surface);color:var(--text)}
#flow-preflight::backdrop,#flow-menu::backdrop{background:#1e223566;backdrop-filter:blur(4px)}
#flow-preflight h2,#flow-menu h2{font-size:28px;letter-spacing:-.8px;margin:8px 0}
#flow-preflight-copy,#flow-menu p{font-size:13px;color:var(--muted);margin:12px 0 20px}
.flow-close{position:absolute;right:16px;top:14px;width:36px;height:36px;font-size:24px;background:transparent;border:0;color:var(--muted)}
.flow-device{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:12px 0;font-size:13px}
.flow-device strong{font-size:12px;text-align:right}
.flow-policy,#flow-preflight-error{font-size:12px;line-height:1.6;margin:16px 0}
#flow-preflight-error{color:#bd3c52}
#flow-preflight-error:empty{display:none}
#flow-preflight details>summary{font-size:12px;padding:8px 0}
#flow-preflight-next,#flow-preflight-text,#flow-menu button{width:100%;min-height:46px;margin-top:10px;border-radius:10px}
#flow-preview{width:100%;height:150px;object-fit:cover;transform:scaleX(-1);border-radius:12px;background:#1c2230}
#flow-meter{width:100%;height:10px}
@keyframes flow-speaking{50%{transform:scale(1.045);opacity:.8}}
@media(max-width:600px){.flow-header{height:56px;padding:0 16px}.flow-header>span{display:none}.flow-layout{height:calc(100% - 56px);padding:16px;gap:12px}.flow-heading h1{font-size:15px}.flow-pill{display:none}.flow-stage{border-radius:18px;padding:20px 16px;gap:12px}.flow-avatar{width:82px;height:82px;font-size:44px;margin:10px 0 14px}.flow-portraits{gap:20px}#flow-self{width:110px;height:82px}.flow-question-region h2{font-size:21px}.flow-question-region{max-height:45%}#flow-next{min-width:0;width:100%}#flow-hint{font-size:10px}#flow-preflight,#flow-menu{padding:24px 20px}.flow-stage:has(#flow-answer:not(.hidden)) .flow-portraits{display:none}}
@media(max-height:580px){.flow-portraits{display:none}.flow-layout{padding:10px 16px;gap:8px}.flow-stage{padding:12px 18px;gap:8px}.flow-header{height:48px}.flow-layout{height:calc(100% - 48px)}.flow-question-region{max-height:60%}.flow-question-region h2{font-size:20px}#flow-hint{display:none}#flow-next{min-height:44px;padding:10px}.flow-stage:has(#flow-answer:not(.hidden)) .flow-question-region{max-height:45%}}
@media(prefers-reduced-motion:reduce){.flow-avatar{animation:none!important}}
