/* Supplied VI v1.0 roles, scoped to the public website and its authentication. */
#official-site, .auth-dialog, #onboarding-dialog, .site-loading {
  --site-paper:#FBF8F3; --site-surface:#FFFFFF; --site-ink:#30332F; --site-muted:#62675F;
  --site-brand:#F07848; --site-soft:#FDEDE3; --site-action:#B54825; --site-on-action:#FFFFFF;
  --site-hover:#91361B; --site-pressed:#6C2A17; --site-support:#6E6963; --site-support-soft:#F3F1ED;
  --site-border:#DDDCD5; --site-control:#81877F; --site-disabled:#E6E4DE;
  --site-disabled-text:#62675F; --site-danger:#AF3345; --site-success:#246B53;
  --site-header:#FBF8F3F2;
  color:var(--site-ink); font-family:system-ui,-apple-system,BlinkMacSystemFont,"PingFang SC","Noto Sans CJK SC","Microsoft YaHei",sans-serif;
}
html[data-theme="dark"] :is(#official-site,.auth-dialog,#onboarding-dialog,.site-loading) {
  --site-paper:#1C1C1B; --site-surface:#242423; --site-ink:#F3F0E9; --site-muted:#B9B7B0;
  --site-soft:#472D22; --site-action:#FFA982; --site-on-action:#30332F;
  --site-hover:#FFBEA1; --site-pressed:#FFD0BB; --site-support:#C2BCB5; --site-support-soft:#33312F;
  --site-border:#3A3936; --site-control:#A0A99F; --site-disabled:#30302D;
  --site-disabled-text:#A6AEA4; --site-danger:#F5A6AF; --site-success:#97D4AF;
  --site-header:#1C1C1BF2;
}
body[data-access="public"] { background:var(--vi-paper,#FBF8F3); }
html[data-theme="dark"] body[data-access="public"] { background:#1C1C1B; }
#official-site.cx-site { --cx-bg:var(--site-paper); --cx-ink:var(--site-ink); --cx-muted:var(--site-muted); --cx-accent:var(--site-action); --cx-line:var(--site-border); background:var(--site-paper); color:var(--site-ink); }
.site-loading { background:var(--site-paper); }
#official-site .cx-header { display:flex; flex-wrap:wrap; height:auto; min-height:88px; background:var(--site-header); border-color:var(--site-border); padding:.75rem clamp(1rem,4vw,3rem); gap:.75rem 1.5rem; }
#official-site .cx-brand { gap:.5rem; min-height:3rem; }
#official-site .cx-brand strong { color:var(--site-ink); font-size:1.5rem; font-weight:600; letter-spacing:-.04em; }
#official-site .cx-nav, #official-site .cx-motion, #official-site .cx-motion svg { color:var(--site-muted); }
#official-site .cx-nav { font-size:.875rem; gap:1.5rem; margin-inline:auto; flex-wrap:wrap; }
#official-site .cx-header-actions { gap:.75rem; flex-wrap:wrap; margin-left:auto; }
#official-site :is(.cx-button,.cx-login,.cx-text-link,.cx-motion) { min-height:3rem; border-radius:.75rem; font-size:1rem!important; }
#official-site .cx-login { border-color:var(--site-control); color:var(--site-ink); padding:.625rem 1rem; }
#official-site .cx-motion { padding:.625rem; }
#official-site :is(.cx-primary,.cx-try-link) { background:var(--site-action); color:var(--site-on-action)!important; border-color:var(--site-action); }
#official-site :is(.cx-primary,.cx-try-link):hover { background:var(--site-hover); border-color:var(--site-hover); }
#official-site :is(.cx-primary,.cx-try-link):active { background:var(--site-pressed); }
#official-site button:disabled { opacity:1; cursor:default; background:var(--site-disabled); color:var(--site-disabled-text); border-color:var(--site-control); }
#official-site .cx-login:not(.cx-try-link):hover { background:var(--site-soft); color:var(--site-action); }
#official-site :is(a,button,[tabindex="0"]):focus-visible { outline:2px solid var(--site-action); outline-offset:2px; }
#official-site .cx-skip { background:var(--site-action); color:var(--site-on-action)!important; border-radius:.75rem; }
#official-site :is(.cx-kicker,.fx-coordinate) { color:var(--site-support); }
#official-site .cx-kicker { font-size:.8125rem; letter-spacing:.08em; }
#official-site .cx-kicker i { background:var(--site-brand); }
#official-site :is(h1,h2,h3) { font-weight:600; letter-spacing:-.04em; }
#official-site :is(h1,h2) em { background:none; -webkit-text-fill-color:currentColor; color:var(--site-action); }
#official-site .fx-display { font-family:inherit; font-weight:500; letter-spacing:-.05em; }
#official-site .fx-display em { font-style:normal; }
#official-site :is(.fx-lead,.fx-intent .fx-lead,.fx-collaborate-copy .fx-lead,.fx-platform-heading .fx-lead) { color:var(--site-muted); font-size:1rem; line-height:1.625; }
#official-site :is(.fx-orbit-note,.fx-orbit-note>span,.fx-demo-caption,.fx-platform-type,.fx-download-card p,.fx-download-note,.fx-download-note>span,.cx-footer,.fx-hud>p,.fx-hud>button) { color:var(--site-muted); font-size:.8125rem; line-height:1.5385; }
#official-site .fx-orbit-note>b { font-size:1rem; color:var(--site-ink); }
#official-site .fx-intent-chips>span { background:var(--site-surface); border-color:var(--site-border); border-radius:1rem; font-size:1rem; }
#official-site .cx-step-nav button { min-height:3rem; font-size:.875rem; border-color:var(--site-control); }
#official-site .cx-step-nav button span { color:var(--site-muted); font-size:.8125rem; }
#official-site .fx-device-labels>a { border-color:var(--site-control); }
#official-site .fx-device-labels span { color:var(--site-muted); font-size:.75rem; }
#official-site .fx-download-card { background:var(--site-surface); border-color:var(--site-border); border-radius:1rem; padding:1rem; box-shadow:none; backdrop-filter:none; }
#official-site .fx-download-card::before { display:none; }
#official-site .fx-download-card .fx-platform-symbol { color:var(--site-support); }
#official-site .fx-download-card h3 { font-size:1.375rem; color:var(--site-ink); }
#official-site .fx-platform-type { margin-top:1.5rem; }
#official-site .fx-download-card>a, #official-site .fx-download-card>button { min-height:3rem; font-size:.875rem; border-color:var(--site-border); color:var(--site-action); }
#official-site .fx-web-card { background:var(--site-soft); border-color:var(--site-border); }
#official-site .fx-web-card :is(p,.fx-platform-type,.fx-platform-symbol) { color:var(--site-ink); }
#official-site .fx-download-note a { color:var(--site-action); }
#official-site .cx-footer { border-color:var(--site-border); }
#official-site .cx-footer p { font-family:inherit; font-size:.8125rem; }
#official-site .fx-hud nav>a { min-height:3rem; }
#official-site .fx-hud nav>a::before { background:var(--site-control); }
#official-site .fx-hud nav>a[aria-current="step"]::before { background:var(--site-action); }
#official-site :is(#fx-chapter-number,.fx-hud>button) { color:var(--site-action); }
#official-site .fx-atmosphere { background:none; }
#official-site .fx-atmosphere>span { border-color:var(--site-border); opacity:.35; }
#official-site .cx-scene-fallback { opacity:.16; }
#official-site .cx-demo-window.fx-demo { background:var(--site-surface); border-color:var(--site-border); box-shadow:0 1.5rem 4rem #30332F0D; border-radius:1rem; }
#official-site .cx-demo-window.fx-demo::before, #official-site .cx-demo-panel::after { display:none; }
#official-site :is(.cx-demo-toolbar,.cx-demo-bottom) { border-color:var(--site-border); padding:1rem; }
#official-site .cx-demo-toolbar strong { font-size:.875rem; }
#official-site .cx-demo-badge { border-color:var(--site-border); color:var(--site-muted); font-size:.75rem; }
#official-site .cx-demo-tabs { gap:1.5rem; padding-inline:1rem; }
#official-site .cx-demo-tabs button { min-height:3rem; font-size:.875rem; color:var(--site-muted); }
#official-site .cx-demo-tabs button[aria-selected="true"] { color:var(--site-action); border-color:var(--site-action); }
#official-site .cx-demo-panel { padding:1rem; }
#official-site .cx-message-user>p { background:var(--site-soft); border-color:var(--site-border); font-size:.875rem; color:var(--site-ink); }
#official-site .cx-message-user>span { color:var(--site-muted); font-size:.8125rem; }
#official-site .cx-message-ai b { font-size:.875rem; }
#official-site .cx-message-ai p { color:var(--site-muted); font-size:.875rem; line-height:1.625; }
#official-site .cx-agent-flow { margin:1.5rem 0; }
#official-site .cx-flow-symbol { color:var(--site-support); border-color:var(--site-control); }
#official-site .cx-agent-flow b { font-size:.8125rem; }
#official-site .cx-agent-flow small { color:var(--site-muted); font-size:.75rem; }
#official-site .cx-flow-connector { background:var(--site-control); }
#official-site .cx-flow-connector::after { background:var(--site-support); }
#official-site .cx-delivery { border-color:var(--site-border); border-radius:1rem; opacity:1; }
#official-site .cx-delivery b { font-size:.875rem; }
#official-site .cx-delivery small { color:var(--site-muted); font-size:.75rem; }
#official-site .cx-document-symbol { border-color:var(--site-control); }
#official-site .cx-document-symbol span { background:var(--site-control); }
#official-site .cx-demo-bottom>span { color:var(--site-muted); font-size:.8125rem; }
#official-site .cx-demo-bottom button { min-height:3rem; color:var(--site-action); font-size:.875rem; }
#official-site .cx-demo-bottom i { background:var(--site-success); }
#official-site .cx-demo-window[data-phase="1"] .cx-flow-symbol, #official-site .cx-demo-window[data-phase="2"] .cx-flow-symbol { background:var(--site-soft); color:var(--site-action); border-color:var(--site-action); }
#official-site .cx-demo-window[data-phase="2"] .cx-delivery { background:var(--site-support-soft); border-color:var(--site-support); }
#official-site .cx-file-check { color:var(--site-success); }
#official-site .fx-platform-dialog { background:var(--site-surface); color:var(--site-ink); border-color:var(--site-border); border-radius:1.5rem; padding:1.5rem; }
#official-site .fx-platform-dialog :is(p,small) { color:var(--site-muted); font-size:1rem; }
#official-site .fx-platform-dialog :is(a,button) { min-height:3rem; border-radius:.75rem; border-color:var(--site-control); font-size:1rem; }
#official-site .fx-platform-dialog a { background:var(--site-action); color:var(--site-on-action); border-color:var(--site-action); }
.auth-dialog, #onboarding-dialog {
  --ws-surface:var(--site-surface); --ws-canvas:var(--site-paper); --ws-ink:var(--site-ink);
  --ws-muted:var(--site-muted); --ws-control:var(--site-control); --ws-line:var(--site-border);
  --ws-accent:var(--site-action); --ws-accent-hover:var(--site-hover); --ws-on-accent:var(--site-on-action);
  --ws-hover:var(--site-soft); --ws-danger:var(--site-danger); --ws-positive:var(--site-success);
  --accent:var(--site-action); --accent-strong:var(--site-hover); --surface:var(--site-surface);
  --text:var(--site-ink); --muted:var(--site-muted); --line-strong:var(--site-control);
  background:var(--site-paper); color:var(--site-ink); border-color:var(--site-border); border-radius:1.5rem;
}
.auth-dialog :is(p,.auth-kicker,.auth-route,.auth-secondary-routes), #onboarding-dialog p { color:var(--site-muted); }
.auth-dialog .auth-shell h2 { font-size:1.625rem; line-height:1.3846; }
.auth-dialog .auth-shell p, .auth-dialog .auth-form label { font-size:1rem; line-height:1.625; }
.auth-dialog .auth-kicker { font-size:.8125rem; line-height:1.5385; }
.auth-dialog :is(.auth-route,.auth-secondary-routes) { font-size:.8125rem; line-height:1.5385; }
.auth-dialog :is(button,input,select) { font-size:1rem; }
.auth-dialog :is(input,select), #onboarding-dialog :is(input,select) { background:var(--site-surface); color:var(--site-ink); border:1px solid var(--site-control); border-radius:.875rem; min-height:3rem; }
#auth-dialog :is(input,select):focus, #onboarding-dialog :is(input,select):focus { border-color:var(--site-action); box-shadow:none; outline:2px solid var(--site-action); outline-offset:2px; }
#auth-dialog button:focus-visible, #onboarding-dialog button:focus-visible { box-shadow:none; outline:2px solid var(--site-action); outline-offset:2px; }
.auth-dialog .auth-form>button[type="submit"], #onboarding-dialog button[type="submit"] { background:var(--site-action); color:var(--site-on-action); border-color:var(--site-action); min-height:3rem; border-radius:.75rem; }
.auth-dialog :is(.auth-route button,.auth-back,.auth-secondary-routes button) { color:var(--site-action); }
.auth-dialog button:disabled { background:var(--site-disabled); color:var(--site-disabled-text); }
.auth-dialog .auth-error { color:var(--site-danger)!important; }
.auth-dialog .auth-brand, #onboarding-dialog .auth-brand { width:auto; height:auto; flex:none; line-height:0; }
#auth-dialog { width:min(432px, calc(100vw - 24px)); border-radius:20px; }
#auth-dialog .auth-shell { padding:clamp(16px, 5vw, 28px); gap:12px; }
#auth-dialog .auth-brand .coapps-logo { width:36px; height:36px; }
#auth-dialog .auth-panel h2:focus { outline:none; }
#auth-dialog .auth-panel, #auth-dialog .auth-form { gap:14px; min-width:0; }
#auth-dialog .auth-form label { gap:6px; font-size:.875rem; line-height:1.5; }
#auth-dialog .auth-hint { margin:0; font-size:.875rem; }
#auth-dialog .auth-switch { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; padding:3px; border:1px solid var(--site-border); border-radius:12px; }
#auth-dialog .auth-switch button { min-height:44px; padding:4px 8px; border:1px solid transparent; border-radius:8px; background:none; color:var(--site-muted); cursor:pointer; }
#auth-dialog .auth-switch button[aria-pressed="true"] { background:var(--site-surface); border-color:var(--site-control); color:var(--site-ink); font-weight:650; cursor:default; }
#auth-dialog .auth-link { min-height:44px; padding:0 4px; border:0; background:transparent; color:var(--site-action); font-size:.875rem; cursor:pointer; }
#auth-dialog .auth-password { display:grid; gap:4px; }
#auth-dialog .auth-password-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; }
#auth-dialog .auth-password-heading .auth-link { min-height:32px; padding-inline:0; }
#auth-dialog .auth-password-field { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; }
#auth-dialog .auth-password-field input { grid-area:1 / 1 / 2 / -1; width:100%; min-width:0; padding-inline-end:64px; }
#auth-dialog .auth-password-field .auth-link { grid-area:1 / 2; z-index:1; margin-inline-end:2px; min-width:54px; }
#auth-dialog .auth-contact-field { display:grid; gap:6px; }
#auth-dialog .otp-field button { background:var(--site-surface); color:var(--site-action); border:1px solid var(--site-control); font-size:.875rem; }
#auth-dialog .otp-field button:disabled { background:var(--site-disabled); color:var(--site-disabled-text); }
#auth-dialog .auth-create { text-align:center; font-size:.875rem; color:var(--site-muted); }
#auth-dialog .auth-help { display:none; min-width:0; }
#auth-dialog [data-auth-panel="login"]:not([hidden]) ~ .auth-footer .auth-help { display:block; }
#auth-dialog .auth-help summary { min-height:44px; display:list-item; align-content:center; width:fit-content; color:var(--site-muted); cursor:pointer; font-size:.875rem; }
#auth-dialog .auth-help-links { display:flex; flex-wrap:wrap; gap:0 14px; }
#auth-dialog .auth-footer { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; border-top:1px solid var(--site-border); }
#auth-dialog .auth-footer a { flex:none; margin-inline-start:auto; min-height:44px; display:inline-flex; align-items:center; color:var(--site-action); font-size:.875rem; text-underline-offset:3px; }
#auth-dialog .auth-feedback:not(:has(> :not(:empty))) { display:none; }
#auth-dialog .auth-feedback { display:grid; gap:4px; overflow-wrap:anywhere; }
#auth-dialog :is(.auth-notice,.auth-error):empty, #auth-dialog [data-otp-status]:empty { display:none; }
#auth-dialog :is(.auth-notice,.auth-error,[data-otp-status]) { margin:0; font-size:.875rem; line-height:1.5; }
#auth-dialog .auth-form input[type="checkbox"] { width:18px; height:18px; min-height:0; padding:0; vertical-align:middle; accent-color:var(--site-action); }
#official-site .fx-hud nav>a { min-width:3rem; }
#official-site[data-film="off"] .fx-panel { min-height:0; padding-block:4rem; }
#official-site[data-film="off"] .fx-intent, #official-site[data-film="off"] .fx-platforms { padding-block:6rem; }
#official-site[data-film="off"] .fx-device-labels { position:static; width:100%; margin-top:2rem; }
#official-site[data-film="off"] .fx-platforms { flex-direction:column; align-items:center; }
#official-site[data-film="off"] .fx-download { padding-bottom:3rem; }
#official-site[data-film="off"] .cx-header { position:relative; }
@media(max-width:780px) {
  #official-site .cx-header { display:flex; flex-wrap:wrap; gap:.5rem 1rem; height:auto; min-height:4.5rem; padding:.75rem 1rem; }
  #official-site .cx-brand strong { font-size:1.25rem; }
  #official-site .cx-header-actions { flex:1; display:flex; flex-wrap:wrap; gap:.5rem; }
  #official-site .cx-header-actions>.cx-login { flex:1 1 auto; white-space:normal; text-align:center; }
  #official-site .cx-header .cx-login { padding:.625rem .75rem; font-size:.875rem!important; }
  #official-site .cx-kicker { font-size:.75rem; letter-spacing:.04em; }
  #official-site .fx-display { font-size:clamp(3rem,13vw,4.25rem); }
  #official-site .cx-actions { flex-wrap:wrap; gap:.75rem; }
  #official-site .fx-panel { padding-inline:1rem; }
  #official-site .cx-demo-tabs { gap:1rem; }
  #official-site .cx-step-nav { gap:1rem; }
  #official-site .fx-download-card { padding:.75rem 1rem; }
  #official-site .fx-download-card p { font-size:.8125rem; }
  #official-site .fx-device-labels span { font-size:.625rem; }
  #official-site[data-film="off"] .cx-scene-stage, #official-site[data-film="off"] .fx-orbit-note { display:none; }
  #official-site[data-film="off"] .fx-panel { height:auto; padding:2.5rem 1rem; }
  #official-site[data-film="off"] .fx-intro-copy { max-width:100%; }
  #official-site[data-film="off"] .fx-collaborate { align-items:stretch; }
  #official-site[data-film="off"] .fx-download-card { grid-template-columns:1.5rem minmax(0,1fr); }
  #official-site[data-film="off"] .fx-download-card>a, #official-site[data-film="off"] .fx-download-card>button { grid-column:1 / -1; grid-row:3; justify-content:flex-start; margin-top:.5rem; min-height:3rem; }
  #official-site .fx-device-labels { grid-template-columns:repeat(auto-fit,minmax(5rem,1fr)); }
  #official-site h1, #official-site h2 { overflow-wrap:anywhere; }
  #official-site .cx-demo-tabs, #official-site .cx-step-nav { flex-wrap:wrap; }
  #official-site .cx-demo-toolbar { flex-wrap:wrap; }
  #official-site .cx-demo-badge { margin-left:0; }
  #official-site .fx-intent-chips>span { min-width:0; max-width:100%; overflow-wrap:anywhere; }
}
@media(max-width:380px) {
  #official-site .cx-header { grid-template-columns:1fr; height:auto; padding-block:.5rem; }
  #official-site .cx-header-actions { justify-content:space-between; }
}

#official-site .fx-stage { background:var(--site-paper); }
#official-site[data-film="on"] .fx-stage { top:var(--site-header-height,88px); height:calc(100svh - var(--site-header-height,88px)); }
#official-site .fx-panel h1, #official-site .fx-panel h2 { font-size:clamp(2rem,calc(3vw + 1rem),4rem); line-height:1.25; }
#official-site .fx-intro-copy .fx-display { font-size:clamp(3rem,calc(5vw + 1rem),6rem); }
