:root{color-scheme:light;--paper:#f8f6f2;--ink:#302c39;--muted:#77717d;--violet:#7660a9;--lavender:#ece6f5;--line:#e8e3eb;--app-height:100dvh;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Noto Sans CJK SC",sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-size:15px;-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.42}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #b3a0d5;outline-offset:3px}button{border:0;background:none}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:27px;line-height:1.45;font-weight:600;letter-spacing:.02em}h2{font-size:21px;line-height:1.5;font-weight:600}h3{font-size:16px;font-weight:600;line-height:1.6}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}[hidden]{display:none!important}.app-shell{height:var(--app-height);max-width:520px;margin:auto;display:flex;flex-direction:column;overflow:hidden;padding-top:env(safe-area-inset-top);background:radial-gradient(ellipse at 100% 5%,#f1edf6 0,transparent 42%),var(--paper)}.topbar{display:flex;align-items:center;justify-content:space-between;padding:15px 20px 14px;flex-shrink:0;gap:10px}.identity{display:flex;align-items:center;gap:12px;text-align:left;padding:0;min-width:0}.identity strong{font-size:18px;font-weight:650;letter-spacing:.04em}.live-status{display:block;font-size:11px;color:var(--muted);margin-top:4px;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-right{display:flex;align-items:center;gap:8px}.demo-label{font-size:10px;letter-spacing:.06em;color:#807887;border:1px solid #e6dfe9;border-radius:20px;padding:5px 8px;white-space:nowrap}.icon-button{width:44px;height:44px;display:inline-flex;justify-content:center;align-items:center;border-radius:50%;flex-shrink:0}.icon-button:hover{background:#eae5ef}.orb{position:relative;isolation:isolate;display:block;border-radius:43% 52% 47% 49%;background:radial-gradient(ellipse at 25% 23%,#fff5e8 0,transparent 42%),radial-gradient(ellipse at 80% 73%,#a998db 0,transparent 65%),linear-gradient(130deg,#e8dce9,#e6d1ed 45%,#cfc3ed);box-shadow:inset 3px 3px 12px #fff9,inset -3px -5px 13px #a197c540,0 7px 18px #a79bc51a}.orb-small{width:43px;height:43px}.orb-hero{width:100px;height:106px;margin:0 auto 30px;transform:rotate(-6deg);animation:breathe 7s ease-in-out infinite}.orb-hero:after{content:"";position:absolute;inset:-22px;z-index:-1;background:radial-gradient(ellipse,#e1d7ee66,transparent 70%)}.orb-eyes{position:absolute;left:35%;top:49%;width:5%;height:8%;background:#70627e;border-radius:50%;box-shadow:24px 2px 0 #70627e;opacity:.8;transform:rotate(6deg)}.orb-small .orb-eyes{box-shadow:10px 1px 0 #70627e}.orb-glint{position:absolute;left:19%;top:19%;width:20%;height:9%;border-radius:50%;background:#fff8;filter:blur(4px);transform:rotate(-38deg)}@keyframes breathe{50%{transform:translateY(-5px) rotate(3deg);border-radius:50% 44% 52% 43%}}.conversation{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-behavior:smooth;padding:6px 20px 20px;scrollbar-width:thin}.welcome{padding:clamp(25px,6vh,62px) 0 25px;text-align:center}.eyebrow{font-size:11px;color:#918695;letter-spacing:.12em;margin-bottom:10px}.welcome-note{font-size:13px;line-height:1.95;color:var(--muted);margin-top:13px}.suggestions{display:grid;gap:10px;text-align:left;margin-top:30px}.suggestions button{display:flex;align-items:center;gap:12px;border:1px solid #eee8ed;border-radius:19px;padding:14px;background:#fffc;min-height:75px;text-align:left;font-size:13px;box-shadow:0 3px 10px #30233802}.suggestions button>svg{width:15px;height:15px;color:#aaa1b3;margin-left:auto}.suggestions small{display:block;font-size:11px;color:var(--muted);margin-top:6px}.suggestion-mark{display:grid;place-items:center;width:39px;height:39px;border-radius:13px;background:#f0eaf8;color:#9b83b7;font-size:25px;flex-shrink:0}.suggestion-mark.peach{color:#bd927a;background:#f9eee5}.messages{display:flex;flex-direction:column;gap:23px;padding-top:15px}.message{max-width:91%;align-self:flex-start;min-width:0;overflow-wrap:anywhere}.message.user{align-self:flex-end;max-width:86%}.message-author{font-size:10px;color:#93869e;margin:0 0 8px 6px;letter-spacing:.05em}.bubble{background:#fff;border:1px solid #eee9ef;border-radius:6px 22px 22px 22px;padding:15px 17px;line-height:1.85;font-size:14px;white-space:pre-wrap;box-shadow:0 3px 10px #30233802}.user .bubble{background:#eae3f4;border-color:transparent;border-radius:22px 6px 22px 22px;color:#453751}.message.superseded .bubble{opacity:.6}.message-note{font-size:10px;color:var(--muted);margin:7px 5px}.choices{display:flex;gap:8px;flex-wrap:wrap;margin:11px 0 0 3px}.choice{border:1px solid #dcd1e9;border-radius:22px;padding:9px 17px;min-height:42px;background:#f5f0fa;color:#796293;font-size:13px}.result-card{background:linear-gradient(130deg,#fff,#f9f7fc);padding:16px 17px;border:1px solid #e4ddea;border-radius:18px}.result-label{display:flex;align-items:center;gap:7px;color:#8a759f;font-size:10px;letter-spacing:.05em;margin-bottom:9px}.result-label svg{width:16px;height:16px}.result-card .bubble{padding:0;background:none;border:0;box-shadow:none;border-radius:0}.card-link{font-size:12px;color:var(--violet);padding:10px 0 0;min-height:40px}.composer-area{padding:10px 15px max(8px,env(safe-area-inset-bottom));flex-shrink:0;background:linear-gradient(0deg,var(--paper) 85%,#f8f6f2ee);border-top:1px solid #eee9ed66}.composer{display:flex;align-items:flex-end;padding:8px;gap:3px;border:1px solid #e3dce8;border-radius:27px;background:#fff;box-shadow:0 5px 22px #57476d08}.composer textarea{min-width:0;width:100%;resize:none;border:0;outline:none;background:none;line-height:1.65;padding:10px 6px 8px 11px;max-height:128px;font-size:16px;color:var(--ink)}.composer textarea::placeholder{color:#aaa2ad;font-size:14px}.composer textarea:focus-visible{outline:none}.composer:focus-within{border-color:#bcaad1}.voice-button{color:#8b7a99;width:40px;height:42px}.send-button{background:var(--violet);color:#fff;border-radius:50%;width:42px;height:42px;display:grid;place-items:center;flex-shrink:0}.send-button:disabled{background:#e6e0ec;color:#a294b1;opacity:1}.pair-hint{display:flex;align-items:center;justify-content:center;gap:6px;color:#9a909f;font-size:10px;padding:12px 0 3px;width:100%;min-height:32px}.pair-hint svg{width:11px;height:11px}.tiny-dot{width:4px;height:4px;background:#b4a4c3;border-radius:50%}.inline-error{padding:8px 10px;color:#a14a57;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.connection-banner{display:flex;gap:8px;align-items:center;justify-content:space-between;background:#f6eede;padding:8px 15px;color:#8a6d3f;font-size:11px}.connection-banner button{min-height:36px;color:#735329;white-space:nowrap}.voice-strip,.reply-context{display:flex;align-items:center;gap:9px;margin:0 6px 9px;color:var(--violet);font-size:12px}.voice-strip button,.reply-context button{margin-left:auto;min-width:40px;min-height:32px}.voice-wave{display:flex;align-items:center;gap:3px;height:20px}.voice-wave i{height:8px;width:3px;background:#a28bbe;border-radius:3px;animation:wave 1s ease-in-out infinite}.voice-wave i:nth-child(2){height:17px;animation-delay:.2s}.voice-wave i:nth-child(3){height:13px;animation-delay:.4s}.voice-wave i:nth-child(4){animation-delay:.6s}@keyframes wave{50%{transform:scaleY(.4)}}.reply-context span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sheet{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,520px);max-width:100%;max-height:min(88dvh,850px);border:0;border-radius:28px 28px 0 0;padding:10px 0 max(18px,env(safe-area-inset-bottom));background:var(--paper);color:var(--ink);box-shadow:0 -12px 70px #2c203521;overflow:hidden}.sheet[open]{display:flex;flex-direction:column}.sheet::backdrop{background:#30253655;backdrop-filter:blur(4px)}.sheet-handle{width:32px;height:4px;border-radius:5px;background:#ddd4e2;margin:0 auto 20px;flex-shrink:0}.sheet-header{display:flex;align-items:center;justify-content:space-between;padding:0 22px 19px;gap:10px;flex-shrink:0}.sheet-header .eyebrow{margin-bottom:5px}.sheet-header h2{font-size:19px}.tabs{display:flex;gap:7px;padding:0 22px 20px;flex-shrink:0}.tabs button{flex:1;border-radius:15px;min-height:43px;font-size:13px;color:var(--muted)}.tabs button[aria-selected=true]{background:#e9e1f2;color:#72598e;font-weight:600}.sheet-body{padding:0 22px 15px;overflow-y:auto;min-height:220px}.section-note{color:var(--muted);font-size:12px;line-height:1.8}.empty-card{padding:35px 15px;text-align:center;color:var(--muted);font-size:13px;line-height:1.8}.activity-card,.plan-card,.device-card{padding:17px;background:#fff;border:1px solid #eae4eb;border-radius:19px;margin-bottom:12px;overflow-wrap:anywhere}.activity-card h3,.plan-card h3{font-size:14px;margin-bottom:10px}.status-pill{display:inline-block;font-size:10px;padding:4px 8px;color:#88719e;background:#f1ebf7;border-radius:8px;white-space:nowrap}.status-pill.terminal{color:#7a8479;background:#edf2eb}.activity-card p,.plan-card p{font-size:12px;color:var(--muted);line-height:1.8;margin-top:9px;white-space:pre-wrap}.card-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.card-actions button,.new-plan{font-size:12px;padding:10px 13px;background:#f3eef8;color:#806494;border-radius:12px;min-height:40px}.card-actions .danger{color:#aa6170;background:#faf0f1}.new-plan{width:100%;margin:15px 0}.plan-scope{border-top:1px solid var(--line);margin-top:13px;padding-top:5px}.connection-card{text-align:center;padding:17px 5px 27px}.connection-card>svg{width:40px;height:40px;color:#a18ab7;margin-bottom:16px}.connection-card p,.pair-form>p{font-size:13px;color:var(--muted);line-height:1.9;margin:12px 0 23px}.primary-button{display:block;border-radius:17px;background:var(--violet);color:white;min-height:48px;width:100%;font-size:14px;padding:12px 18px}.device-card{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}.desktop-link{display:block;text-align:center;color:#9b8ca5;font-size:12px;text-decoration:none;padding:18px 0}.pair-form{padding:0 24px;overflow-y:auto}.pair-form label{display:block;font-size:12px;color:var(--muted);margin:10px 0}.pair-form input{width:100%;min-width:0;font-size:20px;letter-spacing:.09em;text-align:center;padding:17px 5px;border:1px solid #dfd5e8;border-radius:17px;background:#fff;color:var(--ink);text-transform:uppercase;margin-bottom:18px}.pair-form .section-note{text-align:center;font-size:11px;margin-bottom:0}.text-button{display:block;margin:7px auto;min-height:44px;color:var(--muted);font-size:13px}.toast{position:fixed;z-index:20;left:50%;bottom:calc(116px + env(safe-area-inset-bottom));transform:translateX(-50%);max-width:calc(100% - 40px);width:max-content;border-radius:16px;background:#44384eed;color:#fff;padding:12px 18px;font-size:12px;line-height:1.6;box-shadow:0 5px 25px #35244220}.connection-banner~.conversation .welcome{padding-top:20px}@media(min-width:600px){body{background:#eeebf1}.app-shell{box-shadow:0 0 70px #67517810;border-inline:1px solid #e7e0ec}}@media(max-width:350px){.topbar{padding-inline:14px}.conversation{padding-inline:14px}.identity{gap:9px}.demo-label{font-size:9px;padding:4px 6px}.header-right{gap:0}.welcome{padding-top:22px}.orb-hero{width:80px;height:85px;margin-bottom:22px}h1{font-size:23px}.welcome-note{font-size:12px}.suggestions{margin-top:22px}.composer-area{padding-inline:10px}.sheet-header,.sheet-body{padding-inline:17px}}@media(max-height:600px){.welcome{padding-top:15px}.orb-hero{width:65px;height:70px;margin-bottom:17px}.welcome-note{margin-top:8px}.suggestions{margin-top:18px}.pair-hint{padding-top:7px}.topbar{padding-block:9px}.sheet{max-height:94dvh}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}
.history-button{display:block;margin:4px auto 12px;padding:10px 16px;min-height:40px;color:#93829f;font-size:11px;background:#f0ebf4;border-radius:18px}
