:root{font-family:system-ui,-apple-system,"Microsoft YaHei",sans-serif;color:#42394f;background:#faf8fd;font-synthesis:none;color-scheme:light}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}[hidden]{display:none!important}button:focus-visible,a:focus-visible{outline:3px solid #9b82cd;outline-offset:3px}a{color:#71569b}button{border:0}.layout{display:block;height:100dvh;min-height:0;padding:0;margin:0;max-width:none}.intro{display:none}.phone{position:relative;top:auto;align-self:auto;width:100%;height:100%;min-height:0;max-height:none;border:0;border-radius:0;box-shadow:none;background:radial-gradient(ellipse at 50% 42%,#f1eafa 0%,#faf8fd 65%);overflow:hidden;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}.statusbar,.camera-dot,.home-bar{display:none}.top{display:flex;align-items:center;gap:12px;padding:18px 16px 8px;flex-shrink:0}.top b{font-size:18px;letter-spacing:1px;text-align:center;flex:1;color:#625373}.nav{display:grid;place-items:center;background:transparent;color:#766386;width:44px;height:44px;border-radius:16px;flex-shrink:0}.nav:hover{background:#ece4f4}.nav svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.stage{position:relative;display:flex;flex:1;min-height:0;align-items:center;justify-content:center;flex-direction:column;padding:20px 24px 8px}.orb{position:relative;width:108px;height:108px;background:transparent;border:0;isolation:isolate;flex-shrink:0;transform:scale(var(--scale,1));transition:transform 75ms linear,opacity .3s}.orb img{display:block;width:100%;height:100%;object-fit:contain;animation:companion-breathe 4s ease-in-out infinite}.no-motion .orb img{animation:none}@keyframes companion-breathe{50%{transform:translateY(-4px)}}.orb.off{opacity:.55}@keyframes float-orb{from{transform:rotate(-15deg) translate(-4px,2px)}to{transform:rotate(25deg) translate(5px,-5px)}}.caption-wrap{width:100%;max-width:500px;text-align:center;margin-top:44px;position:relative}.caption-label{font-size:12px;color:#8f809f;margin-bottom:10px;letter-spacing:1px}#caption{font-size:20px;line-height:1.8;max-height:145px;min-height:72px;overflow-y:auto;overflow-wrap:anywhere;white-space:pre-wrap;color:#695776;scrollbar-width:thin}.caption-fragment{animation:caption-arrive .24s ease-out}@keyframes caption-arrive{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.thinking-dots{display:flex;justify-content:center;gap:6px;position:absolute;top:-25px;left:0;right:0;opacity:0}.thinking-dots i{width:6px;height:6px;border-radius:50%;background:#9c83c6}.is-waiting .thinking-dots{opacity:1}.is-waiting .thinking-dots i{animation:pulse 1s infinite alternate}.is-waiting .thinking-dots i:nth-child(2){animation-delay:.2s}.is-waiting .thinking-dots i:nth-child(3){animation-delay:.4s}@keyframes pulse{to{opacity:.25;transform:translateY(-4px)}}.product-status{padding:8px 20px;font-size:12px;color:#8d7c9f;text-align:center;min-height:36px;flex-shrink:0}.product-status.error{color:#a44457}.phone-foot{padding:4px 16px 20px;text-align:center;flex-shrink:0}.view-toggle{background:none;color:#877196;border-radius:22px;padding:12px 20px;font-size:13px}.app-start{position:static;margin:24px auto 0;padding:12px 20px;border-radius:24px;background:#7963aa;color:#fff;font-size:14px;max-width:100%}#transcript{display:none;overflow-y:auto;flex:1;min-height:0;padding:12px 22px;scrollbar-width:thin}.bubble{font-size:16px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;padding:12px 15px;margin:0 0 14px;max-width:95%;border-radius:18px}.bubble.user{margin-left:auto;background:#eee7f6;color:#715788}.bubble.assistant{padding-left:2px;background:transparent;color:#655371}.phone.chat-mode .stage{flex:0;min-height:92px;padding:12px 24px}.phone.chat-mode .orb{width:42px;height:42px}.phone.chat-mode .caption-wrap{display:none}.phone.chat-mode #transcript{display:block}.phone.chat-mode .phone-foot{padding-bottom:12px}#shot{position:absolute;right:20px;top:90px;z-index:6;width:44px;height:54px;object-fit:contain;border:1px solid white;border-radius:8px;display:none;box-shadow:0 3px 12px #38466b17;background:white;pointer-events:none}.phone.photo-preview .orb{opacity:0}#partial{display:none}video{position:fixed;width:1280px;height:720px;left:-2000px;pointer-events:none}.connection-notice{position:absolute;z-index:20;top:76px;left:16px;right:16px;padding:12px 16px;border-radius:16px;background:#fff4dc;color:#775d2d;font-size:14px;line-height:1.6;box-shadow:0 6px 20px #463b2514}.phone-confirm{position:absolute;inset:0;z-index:30;display:grid;place-items:center;padding:24px;background:#30273e55;backdrop-filter:blur(5px)}.phone-confirm>div{width:100%;max-width:400px;padding:24px;background:#fffcff;border-radius:24px;box-shadow:0 20px 60px #28203320}.phone-confirm h2{font-size:20px;margin:0 0 12px}.phone-confirm p{color:#82778e;font-size:14px;line-height:1.7;margin:0 0 24px}.phone-confirm button{display:block;padding:13px;width:76%;max-width:240px;min-height:50px;margin-left:auto;margin-right:auto;border-radius:14px;background:#eee8f5;color:#65547c;margin-top:9px}.phone-confirm button[data-choice=exit]{background:#7963aa;color:white}.ended{display:flex;align-items:center;justify-content:center;flex:1;text-align:center;padding:30px;flex-direction:column}.ended h1{font-size:24px;font-weight:500}.ended p{font-size:15px;color:#8b7c98;line-height:1.8}.ended a{padding:13px 24px;border-radius:24px;text-decoration:none;background:#eee6f5;margin-top:20px}.account-page{min-height:100dvh;background:radial-gradient(ellipse at 50% 15%,#f1e9fa,#faf8fd 70%)}.account-root{width:100%;max-width:480px;margin:0 auto;padding:24px 24px calc(24px + env(safe-area-inset-bottom));min-height:100dvh}.brand{font-size:17px;color:#77608b;letter-spacing:2px;margin:8px 0 46px}.account-root h1{font-size:28px;font-weight:500;line-height:1.4;letter-spacing:1px;margin:0 0 12px}.lead{font-size:14px;line-height:1.8;color:#8b7c98;margin:0 0 30px}.account-root label{display:block;font-size:14px;color:#756382;margin:18px 0 8px}.account-root input:not([type=checkbox]),.account-root select{width:100%;padding:14px 15px;border:1px solid #e3dcea;border-radius:14px;background:#fff;color:#51435f;font-size:16px;min-height:50px}.account-root input:focus,.account-root select:focus{outline:2px solid #b5a0cf;outline-offset:1px}.primary,.secondary,.danger{width:100%;min-height:48px;padding:13px 18px;border-radius:16px;font-size:15px;margin-top:18px}.primary{background:#7963aa;color:white}.secondary{background:#eee7f5;color:#766089}.danger{background:transparent;color:#ab6274}.account-root .confirm{display:flex;align-items:flex-start;gap:10px;line-height:1.7;font-size:13px;margin-top:20px}.confirm input{width:18px;height:18px;flex-shrink:0;margin-top:2px;accent-color:#7963aa}.account-root #status{font-size:14px;line-height:1.7;color:#94556b;min-height:24px;margin:16px 0 0;overflow-wrap:anywhere}.account-nav{display:flex;align-items:center;gap:12px;margin-bottom:30px}.account-nav h1{font-size:22px;margin:0}.account-nav button{background:none;color:#79638c;padding:12px;font-size:20px}.section-note{font-size:12px;color:#91819e;line-height:1.7}.account-root hr{border:0;border-top:1px solid #e8e0ef;margin:26px 0 10px}dialog{border:0;border-radius:24px;padding:24px;max-width:min(400px,calc(100vw - 40px));color:#554560}dialog::backdrop{background:#30273e55}dialog h2{font-size:20px;margin-top:0}dialog p{font-size:14px;line-height:1.8;color:#8b7c98}.development .layout{display:flex;gap:38px;align-items:flex-start;justify-content:center;padding:24px;min-height:100dvh;height:auto;background:#eeeaf3}.development .phone{width:390px;max-width:100%;height:844px;flex-shrink:0}.development .intro{display:block;width:330px;flex-shrink:0;color:#675975;font-size:13px}.intro h1{font-size:24px}.intro .controls{display:flex;gap:6px}.intro button{border-radius:9px;background:#e0d6ee;color:#625271;padding:8px}.intro label{display:block;margin-top:12px}.intro select{max-width:100%;width:100%;padding:9px}.intro .metrics,.intro .debug-transcript{background:#fffa;border-radius:12px;padding:12px;margin:14px 0}.intro #debug-transcript,.intro #tool-log{max-height:190px;overflow:auto;overflow-wrap:anywhere;white-space:pre-wrap}.intro .hint{font-size:12px;color:#8b7c98}.no-motion .orb:before,.no-motion .orb:after{animation:none}@media(max-height:680px){.stage{padding-top:8px}.orb{width:86px;height:86px}.caption-wrap{margin-top:28px}#caption{font-size:18px;max-height:116px;min-height:64px}.top{padding-top:10px}.phone-foot{padding-bottom:12px}.brand{margin-bottom:28px}.account-root{padding-top:18px}}@media(max-width:800px){.development .layout{flex-direction:column;align-items:center;padding:12px}.development .intro{order:2;width:100%;max-width:480px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important}}
.intro .controls button{flex:1;width:auto;min-width:0;margin:0;white-space:nowrap;padding:10px 6px}

.profile-settings{padding:16px 18px;border:1px solid #e8e0ef;border-radius:16px;background:#ffffff80}.profile-settings summary{cursor:pointer;font-size:16px;color:#655371}.profile-settings[open]{padding-bottom:20px}

.settings-screen .brand{margin-bottom:24px}.settings-screen .account-nav{margin-bottom:16px}.settings-screen .lead{margin-bottom:24px}
.product-preview .legacy-sample,.product-preview .legacy-links{display:none}.product-preview .phone{border:8px solid #ded7e7;border-radius:36px;overflow:hidden;box-shadow:0 18px 55px #49355d20}.product-preview .intro{max-height:calc(100dvh - 48px);overflow:auto}

.embedded-preview #app-start,.embedded-preview #product-state,.embedded-preview .ended>a{display:none!important}
.view-toggle{background:#eee7f6;border:1px solid #ded1eb;color:#72568b;border-radius:16px;min-height:46px;min-width:180px;padding:12px 24px;font-size:15px;box-shadow:0 3px 10px #70538d0a}.view-toggle:hover{background:#e5d9f0}.view-toggle:active{transform:translateY(1px)}

/* Shared product touch targets and quiet brand treatment. */
.nav,.account-nav button{width:52px;height:52px;min-width:52px;min-height:52px;border-radius:18px;background:#ffffffb8;border:1px solid #eae1f2;box-shadow:0 4px 14px #5941700c;display:grid;place-items:center;padding:12px;flex-shrink:0}
.nav svg,.account-nav button svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.phone-foot,.phone.chat-mode .phone-foot{padding:10px 24px max(34px,env(safe-area-inset-bottom));}
.view-toggle{min-height:54px;min-width:220px;max-width:100%;padding:14px 28px;font-size:16px;border-radius:18px;background:#eee5f6;box-shadow:0 5px 18px #72548b0c}
.launch-screen{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 24px;background:radial-gradient(ellipse at 50% 38%,#eee4f8,#faf8fd 68%);text-align:center}
.companion-mark{width:132px;height:124px;filter:drop-shadow(0 9px 18px #8f72af18);margin-bottom:24px}
.launch-screen h1{font-size:25px;font-weight:500;letter-spacing:3px;margin:0 0 30px;color:#5d4a70}
.launch-slogan{font-family:"STKaiti","KaiTi","Kaiti SC","Noto Serif CJK SC",serif;font-size:32px;line-height:1.65;letter-spacing:3px;font-weight:500;color:#756083;margin:0}
.launch-slogan em{font-style:normal;color:#9474b1;position:relative}.launch-slogan em:after{content:"";position:absolute;left:8%;right:5%;bottom:-5px;height:7px;border-radius:50%;background:#ccb3dd45;transform:rotate(-3deg)}
.launch-note{font-size:13px;letter-spacing:1px;color:#a091ac;margin-top:28px}
@media(max-height:640px){.companion-mark{width:100px;height:94px;margin-bottom:16px}.launch-screen h1{margin-bottom:20px}.launch-slogan{font-size:28px}.phone-foot,.phone.chat-mode .phone-foot{padding-bottom:22px}}

.companion-mark{object-fit:contain;width:150px;height:150px}.caption-label:empty{display:none}

.launch-screen h1{font-family:"STKaiti","KaiTi","Kaiti SC","Noto Serif CJK SC",serif;font-size:29px;font-weight:500;letter-spacing:5px;color:#705581;text-shadow:0 2px 8px #a48cbd12}.launch-slogan{width:min(270px,100%);text-align:center}.launch-slogan>span{display:block;transform:translateX(-14px)}.launch-slogan>em{display:inline-block;transform:translateX(14px)}.launch-note{font-size:12px;letter-spacing:2px;margin-top:30px}

/* Status stays beside the main caption; footer is reserved for a quiet guide. */
.product-status:not(.error){display:none}
.usage-guide{height:42px;display:flex;align-items:center;justify-content:center;overflow:hidden;margin:0 12px 10px;color:#9380a6;font-size:13px;line-height:1.6;text-align:center}
.usage-guide span{display:block}.chat-mode .usage-guide{display:none}
.caption-label{min-height:20px;font-size:13px}

dialog button.primary,dialog button.secondary{display:block;width:76%;max-width:240px;min-height:50px;margin-left:auto;margin-right:auto}

.orb:before,.orb:after{content:"";position:absolute;inset:0;border-radius:45% 55% 60% 40%;background:radial-gradient(circle at 28% 26%,#f7eafa,#c7b2e4 55%,#abc5ed);animation:float-orb 7s ease-in-out infinite alternate;opacity:.9}.orb:after{inset:10px -10px -7px 12px;background:radial-gradient(circle at 70% 25%,#e3d5ed,#c4bbe7 60%,#b7d3e8);animation-delay:-3s;mix-blend-mode:multiply;opacity:.65}
.top{display:grid;grid-template-columns:48px 1fr 48px;align-items:center;padding:16px 16px 8px;gap:12px}
.top .nav,.account-nav button{width:48px;height:48px;min-width:48px;min-height:48px;padding:10px;border-radius:16px}
.nav svg,.account-nav button svg{width:24px;height:24px;display:block}
.view-toggle{min-width:0;width:58%;max-width:200px;min-height:48px;padding:12px 16px}
dialog button.primary,dialog button.secondary,.phone-confirm [role=alertdialog] button{display:block;width:64%;max-width:200px;min-height:48px;margin-left:auto;margin-right:auto}
