/* Original supplied lettering and transparent marks, with no redrawing. */
.brand-yaitahe{gap:18px;letter-spacing:0;min-width:0}
.brand-plaque{display:flex;align-items:center;justify-content:center;flex:none;width:164px;height:64px;border-radius:2px;background:#f5edd9}
.brand-plaque img{display:block;width:154px;height:62px;object-fit:contain}
body:is([data-scheme=b],[data-scheme=c]) .brand-plaque{background:transparent}
.brand-service{font:500 24px/1.3 var(--serif);letter-spacing:2px;white-space:nowrap}
.brand-service small{font:11px/1.8 "PingFang SC",sans-serif;letter-spacing:1px;color:var(--muted);margin-top:4px}
body:not([data-page=welcome]) .brand-service{display:none}
/* Brand pigments: paper and cinnabar, red lacquer and gold, pale jade and ink. */
body[data-scheme=a][data-page],body[data-scheme=a][data-page][data-assessment-mode]{--bg:#f5efe2;--paper:#fffbf2;--ink:#382f29;--muted:#766c5c;--line:#a88a573d;--accent:#963d32;--accent-soft:#963d3210;--button-ink:#fff5df;--red:#a13c30;--panel:#fffbf2c9;--gold:#b18c4e;--cloud-fill:#fffcf4;--cloud-edge:#c3a575;--cloud-selected:#963d32;--cloud-selected-ink:#fff5df;background:var(--bg)}
body[data-scheme=b][data-page],body[data-scheme=b][data-page][data-assessment-mode]{--bg:#6a2d29;--paper:#7b3a32;--ink:#fff2d9;--muted:#dcc09c;--line:#dcbb823f;--accent:#e5c78d;--accent-soft:#e5c78d13;--button-ink:#6a2d29;--red:#f2b8a0;--panel:#803f35b3;--gold:#dfbd7a;--cloud-fill:#814338;--cloud-edge:#bc935b;--cloud-selected:#f4e5c7;--cloud-selected-ink:#6a2d29;background:var(--bg)}
body[data-scheme=c][data-page],body[data-scheme=c][data-page][data-assessment-mode]{--bg:#e9eee3;--paper:#f8faef;--ink:#2d4135;--muted:#667464;--line:#87956a40;--accent:#3b624e;--accent-soft:#3b624e10;--button-ink:#fff8e6;--red:#a64336;--panel:#f8faefbf;--gold:#a48b51;--cloud-fill:#f8faef;--cloud-edge:#a4ad8d;--cloud-selected:#3b624e;--cloud-selected-ink:#fff8e6;background:var(--bg)}
body[data-scheme][data-page]:before{background:repeating-linear-gradient(5deg,transparent 0 5px,#a28b6110 6px,transparent 7px),radial-gradient(ellipse at 25% 30%,#fffdf833,transparent 60%);opacity:.35}
body[data-page=welcome] .flow-steps{display:none}
body[data-scheme=b][data-page=welcome] .app-shell{grid-template-columns:1fr}
body[data-scheme=b][data-page=welcome] .main-view{grid-column:1}
body[data-scheme=c][data-page=welcome] .app-shell{grid-template-rows:76px minmax(0,1fr) 88px}
body[data-scheme=c][data-page=welcome] .main-view{grid-row:2;grid-column:1}
.brand-welcome{position:relative;isolation:isolate}
.brand-landscape{position:absolute;inset:auto -32px 0;height:58%;pointer-events:none;z-index:-1;background:url('/assets/brand/heritage-landscape.svg') no-repeat center bottom / cover;opacity:.28;mask-image:linear-gradient(transparent,#000 45%)}
.brand-history{font:16px/1.9 "PingFang SC",sans-serif;color:var(--muted);max-width:31em;letter-spacing:.5px;margin-top:3px}
body[data-scheme=a] .welcome-copy{gap:24px;padding-right:15px}
body[data-scheme=a] .welcome-copy h1{font-size:clamp(62px,5.3vw,88px);line-height:1.35;letter-spacing:10px}
.brand-welcome .lead{font-size:23px;line-height:1.8;max-width:23em}
.heritage-origin{gap:22px}
.brand-credentials{display:flex;align-items:center;gap:26px;max-width:100%}
.heritage-mark{display:block;flex:none;background:#92651e;mask-position:center;mask-size:contain;mask-repeat:no-repeat}
.time-honored{width:168px;height:43px;mask-image:url('/assets/brand/time-honored.png')}
.intangible-heritage{width:210px;height:45px;mask-image:url('/assets/brand/intangible-heritage.png')}
.heritage-origin .brand-credentials{width:100%;flex-direction:column;gap:52px}
.heritage-origin .heritage-mark{width:100%;max-width:190px;height:50px;background:#e4cd98}
.heritage-origin .heritage-date{font:44px/1.1 Georgia,serif;letter-spacing:2px;color:var(--accent)}
.heritage-origin .heritage-caption{font:19px/1.8 var(--serif);letter-spacing:5px;color:var(--muted)}
.heritage-origin .heritage-rule{width:1px;height:66px;background:linear-gradient(transparent,var(--accent),transparent);opacity:.65}
.heritage-origin .heritage-seal{display:grid;place-items:center;width:60px;min-height:75px;padding:8px;border:1px solid #bf8065;border-radius:4px;color:#d89c7d;font:20px/1.4 var(--serif);letter-spacing:3px;writing-mode:vertical-rl}
body[data-scheme=b] .brand-landscape{opacity:.22}
body[data-scheme=b] .book-opening{gap:23px}
body[data-scheme=b] .book-opening h1{font-size:76px;line-height:1.35;letter-spacing:8px}
body[data-scheme=b] .book-portrait .red-stamp{height:98px;width:42px;font-size:20px;background:#faf6e9a8}
body[data-scheme=c] .workbench-intro{gap:24px}
body[data-scheme=c] .brand-landscape{opacity:.16}
body[data-scheme=c] .brand-history{max-width:32em}
@media(max-width:1400px){
 .brand-landscape{left:-24px;right:-24px}
 .brand-plaque{width:148px;height:56px}
 .brand-plaque img{width:140px;height:54px}
 .brand-service{font-size:22px}
 .brand-service small{font-size:10px}
 .brand-welcome .lead{font-size:21px}
 .brand-history{font-size:15px;line-height:1.85;letter-spacing:0}
 body[data-scheme=a] .welcome-copy{gap:22px}
 body[data-scheme=a] .welcome-copy h1{font-size:66px}
 body[data-scheme=b] .book-opening h1{font-size:66px}
 .heritage-origin .heritage-date{font-size:36px}
 .heritage-origin .heritage-caption{font-size:17px;letter-spacing:3px}
}

/* One set of controls and surfaces across the complete registration flow. */
body[data-scheme] .primary,body[data-scheme] .secondary{border-radius:4px;font-family:var(--serif);letter-spacing:1.5px;box-shadow:none}
body[data-scheme=a] .primary{background:linear-gradient(110deg,#e6d1a2,#cfb27b);border-color:#ddc38c;color:#173d30}
body[data-scheme=b] .primary{background:#8d4032;border-color:#8d4032;color:#fff8ec}
body[data-scheme=c] .primary{background:#34573f;border-color:#34573f;color:#fff9e9}
body[data-scheme] .secondary{background:transparent;color:var(--muted);border-color:var(--line)}
body[data-scheme] .site-header,body[data-scheme] .site-footer{border-color:var(--line)}
body[data-scheme] .site-footer{background:color-mix(in srgb,var(--bg) 94%,transparent)}
body[data-scheme] .profile-form{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto auto;gap:20px 26px;align-content:center}
body[data-scheme] .profile-form .entry-field{display:block;padding:0;border:0;background:transparent;min-width:0}
body[data-scheme] .profile-form .age-entry{grid-column:1}
body[data-scheme] .profile-form .entry-field label{font:20px/1.5 var(--serif);margin-bottom:12px}
body[data-scheme] .profile-form input[data-profile]{height:62px;border:1px solid var(--line);border-radius:4px;background:var(--panel);padding:12px 14px;color:var(--ink);font-size:23px}
body[data-scheme] .profile-form input[data-profile]:focus{background:var(--paper);border-color:var(--accent)}
body[data-scheme] .profile-form input[aria-invalid=true]{border-color:var(--red)}
body[data-scheme] .profile-form .age-input-wrap{width:100%;max-width:100%}
body[data-scheme] .profile-form .age-input-wrap input{padding-right:48px}
body[data-scheme] .profile-form .source-profile-extra{display:block;grid-column:2;border:0;padding:0;margin:0;min-width:0}
body[data-scheme] .source-gender{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px;margin:0;min-height:0}
body[data-scheme] .source-gender>span:first-child{grid-column:1/-1;font:20px/1.5 var(--serif);margin-bottom:12px}
body[data-scheme] .source-gender button{min-height:62px;border:1px solid var(--line);border-radius:4px;font:22px/1.4 var(--serif);background:var(--panel);color:var(--ink)}
body[data-scheme] .source-gender button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--button-ink)}
body[data-scheme] .source-profile-extra .gender-error{display:block;grid-column:1/-1;min-height:24px;margin:5px 0 0;font-size:13px;line-height:1.6;color:var(--red)}
body[data-scheme] .neutral-health .source-health-list>button{border-radius:3px;border-bottom-color:var(--line)}
body[data-scheme] .neutral-health .source-health-list>button[aria-pressed=true]{color:var(--ink);background:var(--accent-soft);box-shadow:inset 2px 0 var(--accent)}
body[data-scheme] .neutral-health [aria-pressed=true] .source-item-number{opacity:1;color:var(--accent)}
body[data-scheme] .qi-overview{--qi-red:var(--red)}
.qi-human .qi-human-map{position:absolute;inset:0;height:100%;width:100%;max-height:none}
.qi-human-portrait{position:absolute;left:-24px;top:0;width:calc(100% + 48px);height:100%;object-fit:contain;filter:drop-shadow(0 8px 18px #0002);z-index:1}
body[data-scheme] .qi-overview .bubble>.bubble-face{background:radial-gradient(ellipse at 32% 20%,var(--panel),transparent 75%);border-color:color-mix(in srgb,var(--accent) 35%,transparent);box-shadow:inset 0 1px 2px #ffffff0b,0 7px 20px #00000005}
body[data-scheme] .qi-overview .bubble[aria-pressed=true]>.bubble-face{background:linear-gradient(150deg,color-mix(in srgb,var(--accent) 18%,var(--paper)),var(--paper));border-color:var(--accent);box-shadow:inset 0 0 12px var(--accent-soft),0 0 15px var(--accent-soft)}
body[data-scheme] .degree-dialog{background:var(--paper);border-color:var(--line);border-radius:8px;box-shadow:0 25px 80px #0004}
body[data-scheme] .degree-options>button{border-radius:6px 18px 6px 6px;background:var(--panel);font-family:var(--serif)}
body[data-scheme] .degree-options [aria-pressed=true]{background:var(--accent);color:var(--button-ink);border-color:var(--accent)}
body[data-scheme] .degree-options [aria-pressed=true] i{background:var(--button-ink)}
body[data-scheme] .balance-options button{border-radius:4px;background:var(--panel);font-family:var(--serif)}
body[data-scheme] .balance-options [aria-pressed=true]{background:var(--accent);color:var(--button-ink);border-color:var(--accent)}
body[data-scheme] .care-page .care-card{border-radius:4px;border:1px solid var(--line);background:var(--panel)}
body[data-scheme] .source-report-types button{border-radius:3px}
body[data-scheme] .source-report-types button[aria-pressed=true]{background:var(--accent-soft)}
body[data-scheme] .source-report-tabs button{font-family:var(--serif)}
body[data-scheme] .staff-profile,body[data-scheme] .staff-attention,body[data-scheme] .staff-constitution{border-radius:4px;border-color:var(--line);background:var(--panel)}
body[data-scheme] .staff-observation-grid>div{border-radius:3px;background:var(--panel)}
body[data-scheme] .staff-result-status{color:var(--red);border-color:color-mix(in srgb,var(--red) 30%,transparent);border-radius:3px}
@media(max-height:790px){
 body[data-scheme] .profile-form{gap:16px 24px}
 body[data-scheme] .profile-form .entry-field label,body[data-scheme] .source-gender>span:first-child{font-size:19px;margin-bottom:10px}
 body[data-scheme] .profile-form input[data-profile],body[data-scheme] .source-gender button{height:56px;min-height:56px;font-size:21px}
}
@media(max-height:790px){
 .brand-plaque{width:148px;height:56px}
 .brand-plaque img{width:140px;height:54px}
 .brand-service{font-size:22px}
 body[data-scheme=c][data-page=welcome] .app-shell{grid-template-rows:70px minmax(0,1fr) 80px}
 body[data-scheme=a] .welcome-copy,body[data-scheme=b] .book-opening,body[data-scheme=c] .workbench-intro{gap:20px}
 body[data-scheme=a] .welcome-copy h1,body[data-scheme=b] .book-opening h1{font-size:62px}
 .brand-welcome .lead{font-size:21px}
 .brand-history{font-size:14px;line-height:1.85}
}

/* The same cloud language runs from the brand opening through the final record. */
body[data-scheme] .app-shell{isolation:isolate}
body[data-scheme] .app-shell:before{content:"";position:absolute;inset:76px 0 88px;z-index:-1;pointer-events:none;background:url('/assets/brand/cloud-landscape.svg') center / 100% 100% no-repeat;opacity:.28}
body[data-scheme=b] .app-shell:before{opacity:.2;filter:brightness(1.7)}
body[data-scheme] .brand-yaitahe{gap:17px}
body[data-scheme] .brand-plaque{background:#fbf4e5;border:1px solid #c3a67142;border-radius:2px}
body[data-scheme] .brand-service{display:block;font-size:22px;color:var(--ink);letter-spacing:2px;padding-left:17px;border-left:1px solid var(--line)}
body:not([data-page=welcome]) .brand-service{font-size:19px}
body:not([data-page=welcome]) .brand-service small{display:none}
body[data-scheme=a] .flow-steps{left:auto;right:150px;transform:none;gap:18px}
body[data-scheme] .flow-steps i{border-radius:3px;font-family:Georgia,serif}
body[data-scheme] .flow-steps .active i{box-shadow:inset 0 0 0 2px var(--bg),inset 0 0 0 3px var(--accent);border-color:var(--accent)}
body[data-scheme=b] .flow-steps:after{content:none}
body[data-scheme] .site-header{background:color-mix(in srgb,var(--bg) 94%,transparent)}
body[data-scheme] .site-footer{background:color-mix(in srgb,var(--bg) 96%,transparent)}
body[data-scheme] .primary{position:relative;border-radius:4px 12px 4px 4px;box-shadow:inset 0 0 0 3px var(--bg),inset 0 0 0 4px color-mix(in srgb,var(--button-ink) 35%,transparent);background:var(--accent);color:var(--button-ink);border-color:var(--accent)}
body[data-scheme] .secondary{border-radius:4px;background:transparent;color:var(--muted)}
body[data-scheme=b] .primary{background:#eedcba;border-color:#eedcba;color:#6a2d29}
body[data-scheme] .brand-landscape{opacity:.17;background-size:cover}
body[data-scheme=b] .brand-landscape{opacity:.14;filter:brightness(1.8)}
body[data-scheme] .welcome-copy h1,body[data-scheme] .book-opening h1,body[data-scheme] .workbench-intro h1{font-family:"STKaiti","Kaiti SC",var(--serif);font-weight:500;letter-spacing:10px}
body[data-scheme=a] .welcome-person{padding:15px 0}
body[data-scheme] .brand-welcome .lead{color:var(--ink);font-size:22px;line-height:1.85}
body[data-scheme] .brand-history{color:var(--muted)}
body[data-scheme] .heritage-mark{background:var(--gold)}
body[data-scheme] .heritage-origin .brand-credentials{gap:45px}
body[data-scheme] .heritage-origin .heritage-mark{background:var(--gold);max-width:178px}
body[data-scheme] .brand-cloud-halo{position:absolute;inset:0;width:100%;height:100%;color:var(--gold);pointer-events:none;z-index:0;overflow:visible}
.brand-cloud-halo .halo-disc{fill:color-mix(in srgb,var(--accent) 6%,transparent);stroke:color-mix(in srgb,var(--gold) 45%,transparent);stroke-width:1}
.brand-cloud-halo .halo-rule{stroke:currentColor;stroke-width:.8;opacity:.35;stroke-dasharray:1 8}
.brand-cloud-halo .halo-arc{stroke:currentColor;stroke-width:1.2;opacity:.65}
.brand-cloud-halo .halo-cloud{fill:var(--paper);stroke:currentColor;stroke-width:1.4;opacity:.9}
.brand-cloud-halo .halo-nodes{fill:currentColor;opacity:.75}
.brand-cloud-halo .halo-flow{stroke:currentColor;stroke-width:2;stroke-linecap:round;opacity:.6;stroke-dasharray:24 130}
body[data-scheme] .person-stage .person-glow{background:radial-gradient(ellipse,color-mix(in srgb,var(--gold) 14%,transparent),transparent 67%)}
body[data-scheme] .person-stage img{filter:drop-shadow(0 12px 16px #55463315)}
body[data-scheme=a] .profile-intro{overflow:visible}
body[data-scheme=a] .profile-intro h1{position:absolute;top:3%;left:0;font-size:36px;letter-spacing:4px}
body[data-scheme=a] .profile-person{right:-12px;bottom:0;height:90%;width:100%;opacity:1;mask-image:none}
body[data-scheme=a] .profile-person img{height:94%;max-width:100%}
body[data-scheme] .profile-form input[data-profile]{border-color:var(--line);border-bottom-color:var(--gold);background:var(--panel);border-radius:3px 12px 3px 3px}
body[data-scheme] .source-gender button{border-radius:3px 12px 3px 3px}
body[data-scheme] .source-gender button[aria-pressed=true]{box-shadow:inset 0 0 0 3px var(--bg),inset 0 0 0 4px color-mix(in srgb,var(--button-ink) 25%,transparent)}
body[data-scheme] .neutral-health .source-health-list>button{border-radius:0;border-bottom-color:var(--line)}
body[data-scheme] .neutral-health .source-health-list>button[aria-pressed=true]{box-shadow:inset 2px 0 var(--accent);background:var(--accent-soft)}
body[data-scheme] .neutral-health .source-health-list>button i{border:1px solid var(--line);border-radius:3px;min-width:26px;height:26px;display:grid;place-items:center;font-size:18px;line-height:1}
body[data-scheme] .neutral-health .source-health-list>button[aria-pressed=true] i{background:var(--accent);color:var(--button-ink);border-color:var(--accent)}
body[data-scheme] .page-title h1,body[data-scheme] .qi-heading h1{letter-spacing:3px}
body[data-scheme] .qi-heading{padding-left:8px;padding-right:8px}
body[data-scheme] .qi-vermillion{color:var(--red);border-color:var(--red);font-weight:600;transform:none}
body[data-scheme] .qi-human:before{inset:10% -28%;background:radial-gradient(ellipse,color-mix(in srgb,var(--gold) 15%,transparent),transparent 70%);animation:none}
body[data-scheme] .qi-human .brand-cloud-halo{inset:-1% -23%;width:146%;height:103%;opacity:.9}
body[data-scheme] .qi-human-portrait{left:-20px;width:calc(100% + 40px);height:100%;filter:drop-shadow(0 12px 15px #55463315)}
body[data-scheme] .qi-hub-count{color:var(--muted);font-size:10px;letter-spacing:2px;z-index:3}
body[data-scheme] .qi-hub-count:before{content:"已选 ";font-size:10px}
body[data-scheme] .qi-web{color:var(--gold)}
body[data-scheme] .qi-link{stroke-dasharray:1 9;opacity:.13}
body[data-scheme] .qi-link[data-lit=true]{opacity:.55;stroke-width:.8}
/* Jade surfaces float gently; outer buttons stay still for accurate touch. */
body[data-scheme] .qi-overview .bubble{border-radius:10px;font-size:20px;--pearl-width:112px;--pearl-height:100px}
body[data-scheme] .qi-overview .bubble[data-size="1"]{--pearl-width:102px;--pearl-height:90px}
body[data-scheme] .qi-overview .bubble[data-size="2"]{--pearl-width:108px;--pearl-height:96px}
body[data-scheme] .qi-overview .bubble[data-size="3"]{--pearl-width:116px;--pearl-height:98px}
body[data-scheme] .qi-overview .bubble>.bubble-face,body[data-scheme] .qi-overview .bubble[data-size]>.bubble-face{width:min(calc(100% - 12px),var(--pearl-width));height:min(calc(100% - 10px),var(--pearl-height));max-width:none;padding:12px 7px;gap:0;border:1px solid #fdfcf1d9;border-radius:48% 52% 51% 49% / 49% 47% 53% 51%;background:radial-gradient(ellipse at 29% 14%,#fffffff2,transparent 48%),linear-gradient(140deg,#f5f7ec,#e1e7d4 65%,#d2ddc5);box-shadow:inset 0 1px 2px #fffdf5,inset -4px -7px 14px #8b9b7620,0 7px 17px #69785314;transform:none;color:var(--ink);transition:background .35s,box-shadow .35s,color .35s}
body[data-scheme] .qi-overview .bubble>.bubble-face:before{display:block;content:"";position:absolute;inset:4px;border:.7px solid #a8946633;border-radius:inherit;opacity:.65;animation:none;pointer-events:none}
body[data-scheme] .qi-overview .bubble .bubble-word{font:19px/1.4 var(--serif);transform:none;letter-spacing:1px;color:var(--ink);z-index:2}
body[data-scheme] .qi-overview .bubble .bubble-glint{display:block;inset:1px;border-radius:inherit;z-index:0;opacity:.7}
body[data-scheme] .qi-overview .bubble .bubble-glint:before{content:"";position:absolute;left:-90%;top:-50%;width:50%;height:200%;background:linear-gradient(90deg,transparent,#fffef680,transparent);transform:rotate(30deg);opacity:0}
body[data-scheme] .qi-overview .bubble[aria-pressed=true]>.bubble-face{border-color:#ddba80;background:radial-gradient(ellipse at 30% 15%,#fffdf0,transparent 49%),linear-gradient(145deg,#f6ecd6,#ecdbb9 68%,#dfc798);box-shadow:inset 0 1px 3px #fffdf2,inset -4px -6px 13px #b4904722,0 5px 18px #a17c3f20;color:#753f2d}
body[data-scheme] .qi-overview .bubble[aria-pressed=true] .bubble-word{font-size:18px;line-height:1.25;color:#753f2d}
body[data-scheme] .qi-overview .bubble[aria-pressed=true]>.bubble-face:before{opacity:.9;border-color:#b58a4d40}
body[data-scheme] .qi-overview .bubble-degree{color:#974e37;font:10px/1.4 "PingFang SC",sans-serif;letter-spacing:1px;margin-top:4px}
body[data-scheme] .qi-overview .bubble .bubble-mark{top:4px;right:10px;width:16px;height:16px;border-radius:3px 1px 3px 1px;background:#9d4434;color:#fff5df;font:10px/1 sans-serif;border:1px solid #f4dfbe80;box-shadow:0 0 0 2px var(--bg)}
body[data-scheme] .qi-overview .bubble:hover>.bubble-face{box-shadow:inset 0 1px 3px #fffdf5,inset -4px -6px 14px #8b9b7620,0 7px 24px #69785328}
body[data-scheme] .qi-overview .bubble:focus-visible{outline:2px solid var(--accent);background:none;outline-offset:-2px}
body[data-scheme=b] .qi-overview .bubble[data-size]>.bubble-face{border-color:#e2c18a4d;background:radial-gradient(ellipse at 25% 13%,#f9ebcf29,transparent 55%),linear-gradient(140deg,#b5856533,#783c3029);box-shadow:inset 0 1px 1px #f6e4bb20,inset -4px -6px 15px #36170e15,0 6px 20px #36170e13}
body[data-scheme=b] .qi-overview .bubble[data-size][aria-pressed=true]>.bubble-face{border-color:#efcc91;background:radial-gradient(ellipse at 30% 15%,#fffdf0,transparent 49%),linear-gradient(145deg,#f6ecd6,#ecdbb9 68%,#dfc798);box-shadow:inset 0 1px 3px #fffdf2,0 6px 22px #2f100e20}
body[data-scheme=c] .qi-overview .bubble[aria-pressed=true] .bubble-word{color:#3b5742}
body[data-scheme] .qi-overview .qi-supplement{height:58px;border:0;gap:18px;padding-top:0}
body[data-scheme] .qi-overview .qi-female{width:150px;flex-basis:150px;height:52px;font-size:16px}
body[data-scheme] .qi-overview .qi-female>.bubble-face,body[data-scheme] .qi-overview .qi-female[data-size]>.bubble-face{height:46px;max-width:none;width:100%;padding:5px 9px;border-radius:48% 52% 48% 52% / 52% 45% 55% 48%}
body[data-scheme] .qi-overview .qi-female .bubble-word{font-size:15px;line-height:1.3;letter-spacing:0;white-space:nowrap}
body[data-scheme] .qi-overview .qi-female[aria-pressed=true] .bubble-word{font-size:14px}
body[data-scheme] .qi-overview .qi-female .bubble-mark{top:-2px;right:6px;width:13px;height:13px;font-size:8px}
body[data-scheme] .qi-overview .qi-selection-wave{display:block;inset:9px 12px;border:1px solid var(--gold);border-radius:50%;filter:blur(.4px);pointer-events:none}
body[data-scheme] .brand-cloud-halo .halo-cloud{display:none}
body[data-page=welcome] .brand-cloud-halo .halo-cloud{display:block;opacity:.65}
body[data-scheme] .app-shell:before{opacity:.13}
body[data-scheme=b] .app-shell:before{opacity:.1}
.qi-breath-light{position:absolute;z-index:2;left:20%;right:20%;top:15%;height:5px;background:linear-gradient(90deg,transparent,#ead28a80,transparent);box-shadow:0 0 18px 8px #dec78112;opacity:0;pointer-events:none;border-radius:100%}
body[data-scheme] .qi-route .qi-link{opacity:.06;stroke-dasharray:1 9}
.qi-route .qi-pulse{fill:none;stroke:var(--gold);stroke-width:1;stroke-dasharray:8 180;stroke-linecap:round;opacity:0}
.qi-route .qi-traveler{fill:#e6c577;opacity:0;filter:drop-shadow(0 0 4px #d6b56b)}
body[data-scheme] .qi-route[data-lit=true] .qi-link{opacity:.25;stroke-width:.65}
.qi-route[data-lit=true] .qi-pulse{opacity:.55}
.qi-route[data-lit=true] .qi-traveler{opacity:.85}
body[data-scheme] .degree-dialog{background:var(--paper);border-radius:5px 24px 5px 5px;border:1px solid var(--gold);box-shadow:0 20px 80px #392d2638,inset 0 0 0 5px var(--paper),inset 0 0 0 6px var(--line)}
body[data-scheme] .degree-dialog::backdrop{background:#302c255e;backdrop-filter:blur(4px)}
body[data-scheme] .degree-options>button,body[data-scheme] .balance-options button{border-radius:4px 14px 4px 4px;border-color:var(--line);background:var(--panel)}
body[data-scheme] .degree-options [aria-pressed=true],body[data-scheme] .balance-options [aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--button-ink);box-shadow:inset 0 0 0 3px var(--paper),inset 0 0 0 4px color-mix(in srgb,var(--button-ink) 35%,transparent)}
body[data-scheme] .answer-options>button{border-radius:4px 18px 4px 4px;border-color:var(--line);background:var(--panel)}
body[data-scheme] .answer-options>button[aria-pressed=true]{background:var(--accent);color:var(--button-ink)}
body[data-scheme] .answer-options [aria-pressed=true] .answer-tick{color:var(--button-ink)}
body[data-scheme] .care-page .care-card{position:relative;overflow:hidden;border-radius:4px 20px 4px 4px;border-color:var(--line);background:var(--panel);border-top-color:var(--gold)}
body[data-scheme] .care-symbol{font-size:30px;border:1px solid var(--line);align-self:flex-start;width:46px;height:46px;display:grid;place-items:center;border-radius:3px;color:var(--accent)}
body[data-scheme] .source-report-types button[aria-pressed=true]{background:var(--accent);color:var(--button-ink);border-color:var(--accent)}
body[data-scheme] .source-report-tabs button[aria-pressed=true]{border-bottom-color:var(--accent)}
body[data-scheme] .staff-profile,body[data-scheme] .staff-attention,body[data-scheme] .staff-constitution{border-radius:3px 16px 3px 3px;border-color:var(--line);background:var(--panel)}
body[data-scheme] .all-terms li>span{color:var(--accent);opacity:.7}
@media(max-width:1400px){
 body[data-scheme] .brand-yaitahe{gap:12px}
 body[data-scheme] .brand-service{font-size:20px;padding-left:12px}
 body:not([data-page=welcome]) .brand-service{font-size:17px;letter-spacing:1px}
 body[data-scheme=a] .flow-steps{right:130px;gap:12px;font-size:13px}
 body[data-scheme] .qi-overview .bubble-word{font-size:18px;letter-spacing:.5px}
 body[data-scheme] .qi-overview .bubble[aria-pressed=true] .bubble-word{font-size:17px}
 body[data-scheme] .brand-welcome .lead{font-size:21px}
 body[data-scheme] .heritage-origin .heritage-mark{max-width:155px}
 body[data-scheme=a] .profile-intro h1{font-size:32px}
}
@media(max-height:860px){
 body[data-scheme] .qi-overview .bubble>.bubble-face,body[data-scheme] .qi-overview .bubble[data-size]>.bubble-face{height:min(calc(100% - 8px),var(--pearl-height));padding:9px 6px}
 body[data-scheme] .qi-overview .qi-supplement{height:50px}
 body[data-scheme] .qi-overview .qi-female{height:50px}
 body[data-scheme] .qi-overview .qi-female>.bubble-face,body[data-scheme] .qi-overview .qi-female[data-size]>.bubble-face{height:44px;padding:4px 8px}
 body[data-scheme] .qi-overview .qi-female .bubble-word{font-size:14px}
 body[data-scheme] .qi-overview .qi-female[aria-pressed=true] .bubble-word{font-size:13px}
 body[data-scheme] .care-symbol{width:34px;height:34px;font-size:23px}
}
@media(prefers-reduced-motion:no-preference){
 body[data-scheme] .qi-overview .bubble:not(.qi-female)>.bubble-face{animation:jade-breathe calc(5s + var(--seed)*.18s) ease-in-out calc(var(--seed)*-.73s) infinite alternate}
 .brand-cloud-halo .halo-flow{animation:cloud-current 12s linear infinite}
 body[data-scheme] .qi-overview .bubble .bubble-glint:before{animation:jade-gleam calc(12s + var(--seed)*.4s) ease-in-out calc(var(--seed)*-.6s) infinite}
 .qi-route[data-lit=true] .qi-pulse{animation:meridian-flow 6s linear infinite}
 .qi-breath-light{animation:meridian-scan 8s ease-in-out infinite}
 .qi-human:before{animation:human-breathe 5s ease-in-out infinite!important}
 .degree-dialog[open]{animation:degree-open .22s ease-out}
 .brand-cloud-halo .halo-nodes{animation:node-breathe 4s ease-in-out infinite}
}
@media(prefers-reduced-motion:reduce){
 body[data-scheme] .qi-overview .bubble>.bubble-face,body[data-scheme] .qi-overview .bubble .bubble-glint:before,.brand-cloud-halo .halo-flow,.brand-cloud-halo .halo-nodes,body[data-scheme] .qi-link,.qi-pulse,.qi-human:before{animation:none!important;transition:none}
 .qi-breath-light,.qi-traveler{display:none}
}
@keyframes jade-breathe{from{transform:translateY(-2.5px) rotate(-.6deg)}to{transform:translateY(2.5px) rotate(.6deg)}}
@keyframes jade-gleam{0%,65%,100%{left:-90%;opacity:0}72%{opacity:.55}88%{left:140%;opacity:0}}
@keyframes meridian-flow{to{stroke-dashoffset:-376}}
@keyframes meridian-scan{0%,100%{top:15%;opacity:0}18%{opacity:.45}75%{opacity:.4}90%{top:88%;opacity:0}}
@keyframes human-breathe{50%{opacity:.5;transform:scale(.94)}}
@keyframes node-breathe{50%{opacity:.25}}
@keyframes degree-open{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes cloud-current{to{stroke-dashoffset:-308}}
