:root{--ink:#152743;--muted:#5c6b82;--blue:#326aff;--line:#dde6f2;--canvas:#f5f8ff}*{box-sizing:border-box}body{margin:0;background:var(--canvas);color:var(--ink);font:14px/1.65 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}a{color:inherit;text-decoration:none}button,textarea{font:inherit}button,a,input{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}:focus-visible{outline:3px solid #326aff;outline-offset:3px}.status{height:54px;position:sticky;top:0;z-index:10;background:#f5f8fff2;display:flex;align-items:center;justify-content:space-between;padding:0 27px;font-weight:650;font-size:13px}.island{position:absolute;top:12px;left:50%;transform:translateX(-50%);width:126px;height:32px;border-radius:30px;background:#10131b}.signals{display:flex;gap:5px;align-items:center}.signals svg{width:16px;height:15px}.signals .battery{width:23px}header{padding:14px 22px 10px;display:flex;align-items:center;justify-content:space-between}.brand{font-size:17px;font-weight:750;letter-spacing:-.5px}.brandmark{background:var(--blue);color:white;display:inline-flex;width:29px;height:29px;align-items:center;justify-content:center;border-radius:10px;margin-right:7px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--blue);font-weight:750;text-transform:uppercase}.pill{font-size:10px;padding:5px 10px;border-radius:20px;background:#e8eeff;color:#326aff}.main{padding:17px 22px 118px}.main h1{font-size:28px;line-height:1.35;letter-spacing:-1.1px;margin:8px 0 14px}.main h2{font-size:18px;line-height:1.45;margin:0 0 10px}.muted{color:var(--muted)}p{margin:0 0 14px}.serif{font-family:Georgia,"Songti SC",serif;font-weight:500;color:var(--blue)}.card{background:white;border:1px solid var(--line);border-radius:24px;padding:20px;margin:16px 0}.primary,.secondary{border:0;border-radius:14px;min-height:48px;padding:12px 16px;display:flex;align-items:center;justify-content:center;gap:12px;font-weight:650;width:100%;color:white;background:var(--ink)}.secondary{background:#e8eeff;color:var(--blue);margin-top:10px}.small-link{color:var(--blue);font-size:12px}.tabbar{height:62px;position:fixed;bottom:22px;left:0;right:0;border-top:1px solid var(--line);background:#ffffffef;backdrop-filter:blur(12px);z-index:20;display:flex;align-items:center;justify-content:space-around}.tabbar a{font-size:10px;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:70px;color:#7c889b}.tabbar a.active{color:var(--blue)}.tabbar svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6}.home-indicator{height:22px;position:fixed;bottom:0;background:white;left:0;right:0;z-index:20}.home-indicator:after{content:"";display:block;width:126px;height:5px;background:#17263c;border-radius:10px;margin:8px auto}.hero-picture{position:relative;border-radius:24px;overflow:hidden;background:#dce7ff;height:226px;margin:22px 0}.hero-picture>img{width:100%;height:100%;object-fit:cover;filter:brightness(.86)}.picture-title{position:absolute;left:17px;top:16px;color:white;font-size:11px;letter-spacing:1px}.mini-chat{position:absolute;bottom:18px;left:15px;right:15px;padding:15px;border-radius:17px;background:#fffefc;box-shadow:0 12px 35px #10203d25}.mini-top{display:flex;align-items:center;gap:9px;font-size:12px}.avatar{width:35px;height:35px;object-fit:cover;border-radius:50%}.bubble{padding:12px 14px;background:#edf2fc;border-radius:4px 16px 16px;max-width:88%;margin-top:10px;font-size:13px}.bubble.me{margin-left:auto;background:var(--blue);color:white;border-radius:16px 4px 16px 16px}.statline{display:flex;justify-content:space-between;text-align:center;margin:18px 0}.statline strong{display:block;font-size:19px}.statline span{font-size:10px;color:var(--muted)}.section-label{display:flex;align-items:center;justify-content:space-between;margin:25px 0 12px}.scene-card{display:flex;gap:13px;padding:16px;border:1px solid var(--line);border-radius:18px;background:white;margin:10px 0;transition:transform .2s}.scene-card:hover{transform:translateY(-2px)}.scene-card .emoji{flex:none;display:flex;align-items:center;justify-content:center;width:43px;height:43px;background:#edf2ff;border-radius:14px;font-size:21px}.scene-card h2{font-size:14px;margin:0 0 3px}.scene-card p{font-size:11px;line-height:1.6;margin:0;color:var(--muted)}.arrow{margin-left:auto;color:#72809b;font-size:20px}.scene-card.custom{background:#eaf0ff;border-style:dashed;border-color:#a9bef9}.field{width:100%;resize:vertical;min-height:150px;background:white;color:var(--ink);border:1px solid var(--line);border-radius:16px;padding:16px;line-height:1.8}.field-footer{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin:8px 0 24px}.callout{background:#e8eeff;padding:14px;border-radius:14px;font-size:12px;color:#3b568c;margin:16px 0}.back{width:34px;height:34px;display:flex;align-items:center;justify-content:center;background:white;border:1px solid var(--line);border-radius:50%;font-size:19px}.chat-page{height:100dvh;overflow:hidden}.chat-header{gap:10px;padding-top:6px}.chat-header .identity{flex:1}.chat-header strong{font-size:14px}.chat-header small{display:block;color:var(--muted);font-size:10px}.chat-score{padding:5px 22px 12px}.score-label{display:flex;justify-content:space-between;font-size:11px}.score-label strong{color:var(--blue)}.progress{height:5px;background:#dde6f7;border-radius:20px;margin:7px 0}.progress span{display:block;width:20%;height:100%;background:var(--blue);border-radius:20px;transition:width .3s}.demo-note{font-size:10px;color:#7a88a2;display:flex;align-items:center;justify-content:space-between;gap:6px}.demo-note button{border:0;background:transparent;padding:4px;color:#506ba7;font-size:10px;text-decoration:underline}.messages{overflow:auto;height:calc(100dvh - 385px);padding:8px 22px 20px;scroll-behavior:smooth}.timestamp{font-size:10px;text-align:center;color:#8290a6;margin-bottom:12px}.message-row{margin-bottom:16px}.message-row .bubble{max-width:91%;line-height:1.7}.message-name{font-size:10px;color:#697b95}.feedback{font-size:10px;color:#3e6686;border-left:2px solid #b9cef8;padding-left:8px;margin-top:9px;max-width:90%}.composer{position:fixed;bottom:84px;background:var(--canvas);left:0;right:0;padding:10px 16px 12px;border-top:1px solid var(--line)}.composer-wrap{display:flex;gap:8px;padding:7px;background:white;border:1px solid var(--line);border-radius:18px;align-items:flex-end}.composer textarea{width:100%;min-width:0;height:45px;resize:none;border:0;background:transparent;outline:0;padding:9px 6px;font-size:12px}.send{border:0;border-radius:12px;background:var(--blue);color:white;min-width:41px;height:41px;font-size:20px}.composer-help{font-size:9px;color:#8290a6;margin:5px 3px 0}.error{color:#b93553;background:#fff0f4;border-radius:12px;padding:10px;font-size:11px;margin:8px 0}.error button{background:none;border:0;color:#b93553;text-decoration:underline}.result-icon{width:85px;height:85px;display:flex;align-items:center;justify-content:center;margin:25px auto 21px;background:#e1ebff;color:var(--blue);border-radius:26px;font-size:40px;transform:rotate(-6deg)}.result-head{text-align:center}.result-head h1{font-size:27px}.result-score{font-size:52px;letter-spacing:-3px;color:var(--blue);line-height:1.2}.result-score small{font-size:16px;letter-spacing:0;color:var(--muted)}.divider{height:1px;background:var(--line);margin:17px 0}.setting-row{display:flex;align-items:center;justify-content:space-between;padding:16px 0;gap:15px}.setting-row+.setting-row{border-top:1px solid var(--line)}.setting-row strong{font-size:13px}.setting-row small{font-size:10px;display:block;color:var(--muted)}.toggle{position:relative;width:45px;height:26px;background:#c9d3e4;border:0;border-radius:30px;flex:none}.toggle[aria-checked=true]{background:var(--blue)}.toggle:after{position:absolute;content:"";width:20px;height:20px;background:white;border-radius:50%;top:3px;left:3px;transition:left .2s}.toggle[aria-checked=true]:after{left:22px}.legal h2{font-size:17px;margin-top:24px}.legal p{font-size:12px;line-height:1.9;color:var(--muted);overflow-wrap:anywhere}.legal .callout{font-size:11px}.reduced-motion *{animation:none!important;transition:none!important;scroll-behavior:auto!important}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(max-height:760px){.messages{height:calc(100dvh - 385px)}.hero-picture{height:190px}} 
/* A flex column keeps the chat composer visible at both requested phone sizes. */
.chat-page{display:flex;flex-direction:column;padding-bottom:84px}.chat-page .status,.chat-page header,.chat-page .chat-score{flex:none}.chat-page .messages{height:auto;flex:1;min-height:0}.chat-page .composer{position:static;flex:none}.bubble{white-space:pre-wrap;overflow-wrap:anywhere}.back{width:44px;height:44px;flex:none}.tabbar a{min-height:44px;justify-content:center}.demo-note button{min-height:44px;min-width:54px}.demo-note{line-height:1.4}.error button{min-height:44px;min-width:44px}
body[data-page="result"] .main{padding-top:10px}body[data-page="result"] .result-icon{width:64px;height:64px;font-size:32px;margin:8px auto 14px}body[data-page="result"] .result-head h1{font-size:24px;margin-bottom:10px}body[data-page="result"] .result-head>p{font-size:12px}body[data-page="result"] .card{margin:12px 0;padding:17px}body[data-page="result"] .result-score{font-size:47px}body[data-page="result"] .divider{margin:12px 0}body[data-page="result"] .result-head .pill{display:inline-block;margin-bottom:7px}
.brandmark{background:linear-gradient(145deg,#8ebdff,#326aff);font-size:23px;font-weight:400;box-shadow:inset 0 1px 1px #ffffffb0}
