:root{--bg:#faf9fc;--panel:#fff;--ink:#312b43;--muted:#938d9f;--line:#ece8f1;--purple:#8a69d3;--purple-deep:#7153b5;--soft:#f0eafb;--apricot:#fff0e5;--height:100dvh}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font:14px/1.65 "Microsoft YaHei",system-ui,sans-serif}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;background:none;border:0;border-radius:12px;padding:10px 14px;display:inline-flex;align-items:center;justify-content:center;gap:8px}button:hover{background:var(--soft)}button:disabled{opacity:.5;cursor:wait}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #bda8e5;outline-offset:3px}button svg,svg.icon{width:19px;height:19px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}button.primary{background:var(--purple);color:white}button.primary:hover{background:var(--purple-deep)}.app{height:var(--height);max-width:1660px;margin:auto;display:grid;grid-template-columns:210px minmax(350px,1fr) 340px;overflow:hidden}.sidebar{padding:27px 18px 18px;border-right:1px solid var(--line);display:flex;flex-direction:column;background:#fcfbfe;min-height:0}.brand{display:flex;align-items:center;gap:8px;font-size:23px;font-weight:700;letter-spacing:2px}.brand img{width:48px;height:48px;object-fit:contain}.sidebar nav{display:grid;gap:9px;margin-top:40px}.sidebar nav button{justify-content:flex-start;padding:13px 14px;font-size:13px}.sidebar nav button.active{background:var(--soft);color:var(--purple-deep);font-weight:600}.count{margin-left:auto;border-radius:9px;padding:0 6px;background:#e5daf7;font-size:11px}.side-note{margin-top:auto;background:#f4effa;border-radius:17px;padding:17px 14px 0;text-align:center;color:#9a87b5;overflow:hidden}.side-note p{font-size:13px;line-height:1.9;margin:0}.side-note img{height:130px;width:150px;object-fit:contain;margin:0 auto -8px;display:block;transform:rotate(-7deg)}.side-footer{font-size:11px;color:var(--muted);margin-top:16px;display:flex;justify-content:space-between;align-items:center}.side-footer button{padding:6px}.workspace{display:flex;flex-direction:column;min-width:0;min-height:0;position:relative}.topbar{height:76px;flex-shrink:0;display:flex;justify-content:space-between;align-items:center;padding:0 30px;border-bottom:1px solid var(--line);gap:10px}.top-title{font-size:14px;font-weight:500}.sync{font-size:11px;display:flex;align-items:center;gap:6px;color:#7e8d84}.sync.error{color:#b56547}.sync.busy{color:var(--purple)}.sync svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.7}.top-right{display:flex;align-items:center;gap:8px}.icon-btn{padding:8px}.avatar{background:#ede6f8;border-radius:50%;width:29px;height:29px;display:grid;place-items:center;font-size:12px;color:var(--purple)}.mobile-brand{display:none}.scroll{overflow:auto;flex:1;min-height:0;padding:24px 30px 16px;scroll-behavior:smooth}.hero{display:flex;align-items:center;justify-content:center;gap:2px;margin:5px auto 25px;max-width:640px}.pet-button{position:relative;flex:0 0 180px;width:180px;height:180px;padding:0;border-radius:50%}.pet-button:hover{background:none}.pet-img{width:100%;height:100%;object-fit:contain;animation:breathe 4.6s ease-in-out infinite;transform-origin:center 80%;filter:drop-shadow(0 10px 12px #9374b014)}.pet-button[data-state=listening] .pet-img{animation:listen 1.4s ease-in-out infinite}.pet-button[data-state=thinking] .pet-img{animation:think 1.5s ease-in-out infinite}.pet-button[data-state=happy] .pet-img{animation:happy .7s ease-in-out 2}.pet-state{position:absolute;bottom:0;left:50%;transform:translateX(-50%);font-size:10px;white-space:nowrap;background:#ffffffd9;padding:2px 9px;border-radius:20px;color:var(--purple-deep)}.greeting{background:#f3eefb;border-radius:7px 23px 23px 23px;padding:20px 24px;max-width:340px}.greeting h1{font-size:21px;margin:0 0 7px;font-weight:600}.greeting p{margin:0;color:#92859f;font-size:12px;line-height:1.9}.date-divider{display:flex;align-items:center;gap:13px;justify-content:center;font-size:10px;color:#b2abbc;margin:25px 0}.date-divider:before,.date-divider:after{content:'';width:40px;height:1px;background:var(--line)}.message{display:flex;gap:10px;align-items:flex-start;margin:19px 0}.message.user{justify-content:flex-end}.message .face{width:34px;height:34px;object-fit:contain;flex-shrink:0}.bubble{padding:12px 16px;border-radius:5px 17px 17px 17px;background:white;border:1px solid var(--line);max-width:90%;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.9}.user .bubble{background:#ede4fb;border:0;border-radius:17px 5px 17px 17px;max-width:85%}.msg-time{font-size:10px;color:#aaa2b4;margin:5px 4px}.message-body{max-width:calc(100% - 44px);min-width:0}.mini-card{margin-top:10px;max-width:390px;border:1px solid var(--line);border-radius:13px;background:white;padding:15px 17px}.mini-head{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:600}.mini-head .kind{background:var(--apricot);color:#d48b52;border-radius:6px;padding:3px 6px;font-weight:400;font-size:11px}.mini-card h3{font-size:13px;line-height:1.7;font-weight:500;margin:10px 0;overflow-wrap:anywhere}.mini-meta{display:flex;gap:10px;font-size:11px;color:var(--muted);margin-bottom:10px;flex-wrap:wrap}.mini-card button{font-size:11px;color:var(--purple);padding:6px 0}.sample-label{font-size:10px;color:#b09261;margin-left:auto}.composer-wrap{flex-shrink:0;padding:14px 30px 20px;background:var(--bg);border-top:1px solid var(--line)}.composer{background:white;border:1px solid #e1d9ee;border-radius:20px;padding:12px 14px;display:flex;gap:9px;align-items:flex-end;box-shadow:0 4px 18px #3e235707}.composer textarea{width:100%;min-height:42px;max-height:130px;resize:none;border:0;outline:none;background:none;font-size:13px;line-height:1.7;padding:9px 4px}.composer textarea::placeholder{color:#aaa1b6}.mic{border-radius:50%;background:#9776db;color:white;width:43px;height:43px;padding:10px;flex-shrink:0}.mic:hover{background:var(--purple-deep)}.mic.active{background:#de9977;animation:pulse 1s infinite}.send{width:43px;height:43px;flex-shrink:0;padding:10px}.composer-help{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#aaa1b6;margin:8px 4px 0;gap:6px}.quick-starts{display:flex;gap:7px;flex-wrap:wrap;justify-content:center;margin:20px 0}.quick-starts button{font-size:11px;background:white;border:1px solid var(--line);padding:7px 10px;color:#9588a9}.review-pane{border-left:1px solid var(--line);background:#fdfcfe;display:flex;flex-direction:column;min-height:0}.review-header{padding:26px 22px 18px;display:flex;align-items:center;justify-content:space-between;gap:8px}.review-header h2{font-size:14px;margin:0}.review-header .badge{background:var(--apricot);color:#ce8e60;font-size:10px;padding:3px 8px;border-radius:12px}.review-body{padding:0 22px 20px;overflow:auto;min-height:0;flex:1}.review-empty{text-align:center;padding:65px 8px 20px;color:var(--muted)}.review-empty img{width:110px;height:110px;object-fit:contain;opacity:.9}.review-empty h3{font-size:14px;color:var(--ink);font-weight:500}.review-empty p{font-size:12px;line-height:1.9}.mode-tip{font-size:10px;color:#a391b4;line-height:1.8;margin:2px 0 16px}.review-list{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:15px}.review-list button{font-size:10px;border:1px solid var(--line);padding:5px 9px}.review-list button.active{background:var(--soft);color:var(--purple-deep)}.original{background:#f5f3f8;border:1px solid var(--line);border-radius:11px;padding:12px;margin:12px 0;font-size:11px}.original summary{cursor:pointer;font-weight:500}.original p{white-space:pre-wrap;line-height:1.8;color:#91869e;overflow-wrap:anywhere}.edit-card{background:white;border:1px solid var(--line);padding:15px;border-radius:13px;margin:12px 0}.edit-card label{font-size:10px;color:var(--muted);display:block;margin:10px 0 4px}.edit-card input,.edit-card select,.edit-card textarea{width:100%;border:1px solid var(--line);border-radius:7px;background:#fdfcfe;padding:8px;font-size:12px}.edit-card textarea{min-height:70px;resize:vertical;line-height:1.7}.review-foot{display:flex;gap:9px;padding:16px 22px;border-top:1px solid var(--line);background:white;flex-shrink:0}.review-foot button{flex:1;font-size:12px}.outline{border:1px solid var(--line);background:white}.review-footnote{font-size:10px;color:var(--muted);text-align:center;margin:12px 0}.empty-small{color:var(--muted);font-size:12px;padding:30px 0;text-align:center}.page-title{font-size:24px;margin:12px 0 4px;font-weight:600}.page-desc{color:var(--muted);font-size:12px;margin:0 0 24px}.filters{display:flex;gap:7px;flex-wrap:wrap;margin:18px 0}.filters button{font-size:11px;border:1px solid var(--line);background:white;padding:6px 12px}.filters button.active{background:var(--purple);color:white;border-color:var(--purple)}.searchbox{width:100%;border:1px solid var(--line);background:white;border-radius:12px;padding:12px 15px;outline:none}.memory-card{border:1px solid var(--line);border-radius:15px;padding:19px;margin:14px 0;background:white}.memory-card h3{font-size:14px;margin:8px 0 10px;font-weight:500}.memory-head{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.memory-head .status{margin-left:auto;color:var(--purple);font-size:10px}.memory-card p{font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.memory-actions{display:flex;gap:4px;justify-content:flex-end}.memory-actions button{font-size:11px;padding:6px 8px;color:var(--muted)}.task-row{display:flex;gap:10px;align-items:flex-start;padding:10px 0}.task-row input{accent-color:var(--purple);width:17px;height:17px;margin-top:4px;flex-shrink:0}.task-title{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.task-title.done{text-decoration:line-through;color:var(--muted)}.task-meta{font-size:10px;color:var(--muted);margin-top:5px}.notice{padding:11px 14px;border-radius:10px;background:var(--apricot);color:#ac805c;font-size:11px;line-height:1.8;margin-bottom:18px}.review-summary{background:white;border:1px solid var(--line);padding:23px;border-radius:15px}.review-summary h3{font-size:14px;margin:20px 0 8px}.review-summary li{font-size:12px;line-height:1.9;margin:7px 0}.review-summary button{padding:0 4px;font-size:10px;color:var(--purple)}.empty-page{text-align:center;padding:40px 10px;color:var(--muted);font-size:13px}.empty-page img{width:150px;height:150px;object-fit:contain;display:block;margin:auto}.empty-page h3{font-weight:500;color:var(--ink)}.wave{display:flex;align-items:center;gap:4px;justify-content:center;height:36px}.wave i{width:3px;height:12px;background:var(--purple);border-radius:6px;animation:bars .6s alternate infinite}.wave i:nth-child(2n){animation-delay:.3s;height:25px}.wave i:nth-child(3n){animation-delay:.15s}.mobile-nav,.mobile-review-btn,.close-review{display:none}.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#433651;color:white;padding:12px 20px;border-radius:13px;z-index:100;font-size:12px;max-width:90vw;text-align:center}.toast button{color:#e7d8ff;padding:0 8px}.dialog-back{position:fixed;inset:0;background:#2d23394d;z-index:90;display:grid;place-items:center;padding:20px}.dialog{background:white;width:min(480px,100%);max-height:90dvh;overflow:auto;padding:26px;border-radius:23px}.dialog h2{font-size:18px;margin:0 0 12px}.dialog p{font-size:12px;line-height:1.9;color:var(--muted)}.dialog footer{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.setting-row{display:flex;align-items:center;justify-content:space-between;font-size:13px;padding:15px 0;border-bottom:1px solid var(--line)}.setting-row input{accent-color:var(--purple)}.dialog .export-btn{width:100%;margin-top:12px}.offline-banner{margin:0 20px;padding:8px 12px;border-radius:8px;font-size:11px;background:var(--apricot);color:#a7714d}.no-motion .pet-img,.no-motion .mic{animation:none!important}@keyframes breathe{0%,100%{transform:translateY(0) rotate(-1deg) scale(1)}50%{transform:translateY(-5px) rotate(1deg) scale(1.025)}}@keyframes listen{0%,100%{transform:rotate(-4deg) translateY(-3px)}50%{transform:rotate(4deg) translateY(-7px)}}@keyframes think{0%,100%{transform:rotate(-6deg)}50%{transform:rotate(5deg) translateY(-4px)}}@keyframes happy{0%,100%{transform:translateY(0) rotate(0)}40%{transform:translateY(-16px) rotate(-7deg)}70%{transform:translateY(-3px) rotate(6deg)}}@keyframes pulse{50%{box-shadow:0 0 0 7px #ddaa8f25}}@keyframes bars{to{transform:scaleY(.35)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important}}@media(max-width:1200px){.app{grid-template-columns:175px minmax(300px,1fr) 300px}.sidebar{padding:24px 12px}.review-body{padding:0 15px 15px}.review-header{padding:24px 15px 15px}.review-foot{padding:15px}.hero{gap:0}.pet-button{flex-basis:140px;width:140px;height:155px}.greeting{padding:17px}.greeting h1{font-size:18px}.scroll{padding:20px}.composer-wrap{padding:12px 20px 17px}}@media(max-width:1000px){.app{grid-template-columns:170px minmax(0,1fr)}.review-pane{display:none}.mobile-review-btn{display:inline-flex}.review-open .review-pane{display:flex;position:fixed;z-index:50;right:0;top:0;bottom:0;width:360px;box-shadow:-15px 0 60px #36234f18}.review-open:before{content:'';position:fixed;inset:0;background:#2d23393d;z-index:40}.close-review{display:inline-flex;padding:4px}.review-header{height:76px;flex-shrink:0}.hero{max-width:580px}.pet-button{flex-basis:170px;width:170px;height:180px}}@media(max-width:640px){.app{display:flex;flex-direction:column}.sidebar{display:none}.workspace{flex:1}.topbar{height:65px;padding:0 17px}.top-title{display:none}.mobile-brand{display:flex;align-items:center;font-size:19px;font-weight:600;gap:6px}.mobile-brand img{width:38px;height:38px;object-fit:contain}.avatar{display:none}.sync{font-size:10px}.top-right{gap:2px}.scroll{padding:10px 18px 14px}.hero{flex-direction:column;gap:0;margin:0 auto 14px}.pet-button{flex-basis:auto;width:160px;height:155px}.pet-state{bottom:1px;font-size:9px}.greeting{background:none;padding:8px 4px;text-align:center;max-width:100%;border-radius:0}.greeting h1{font-size:21px;margin:3px 0 6px}.greeting p{font-size:11px}.quick-starts{margin:13px 0;gap:5px}.quick-starts button{font-size:10px;padding:6px 8px}.date-divider{margin:15px 0}.composer-wrap{padding:10px 14px 7px}.composer{padding:8px 10px;border-radius:17px;gap:5px}.composer textarea{font-size:13px}.composer-help{font-size:9px;margin-top:5px}.composer-help .shortcut{display:none}.mic,.send{width:39px;height:39px}.mobile-nav{display:flex;justify-content:space-around;padding:5px 10px max(7px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fff;flex-shrink:0}.mobile-nav button{display:flex;flex-direction:column;gap:1px;font-size:9px;color:#9b93a7;padding:4px 18px;border-radius:10px}.mobile-nav button.active{color:var(--purple);background:#f7f3fd}.mobile-nav button svg{width:19px;height:19px}.review-open .review-pane{width:100%;height:var(--height);bottom:auto;border:0;box-shadow:none}.review-header{height:65px;padding:15px 20px}.review-body{padding:0 20px 20px}.review-foot{padding:12px 20px max(16px,env(safe-area-inset-bottom))}.page-title{font-size:22px}.mini-card{max-width:100%}.message{gap:6px}.message-body{max-width:calc(100% - 36px)}.bubble{max-width:100%;font-size:12px;padding:11px 13px}.message .face{width:29px;height:29px}.user .bubble{max-width:89%}.toast{bottom:85px}.dialog{padding:23px}.offline-banner{margin:0 14px;font-size:10px}}

.auth-page{min-height:var(--height);display:grid;grid-template-columns:1fr 1fr;background:#fff;overflow:auto}.auth-intro{background:#f3eefb;display:flex;flex-direction:column;padding:35px 45px;position:relative}.auth-hello{margin:auto;text-align:center;padding:20px}.auth-hello>img{width:240px;height:240px;object-fit:contain}.auth-hello h1{font-size:30px;font-weight:600;line-height:1.6;margin:12px 0 16px}.auth-hello p{font-size:13px;color:#9587a5;line-height:2}.auth-caption{font-size:11px;color:#a391b5;text-align:center}.auth-form-wrap{display:flex;align-items:center;justify-content:center;padding:50px 30px}.auth-form{width:min(365px,100%)}.auth-eyebrow{font-size:10px;letter-spacing:2px;color:#b39bcf}.auth-form h2{font-size:23px;font-weight:600;margin:18px 0 5px}.auth-sub{font-size:12px;color:var(--muted);margin-bottom:28px}.auth-form label,.account-form label{display:block;font-size:12px;color:#84778f;margin:17px 0 7px}.auth-form input,.account-form input{width:100%;background:#fdfcfe;border:1px solid #e5ddec;border-radius:11px;padding:12px 14px;font-size:13px}.auth-form input:focus,.account-form input:focus{outline:2px solid #d4c4ef;border-color:#b39bd6}.auth-submit{width:100%;padding:13px;margin-top:9px}.auth-switch{font-size:12px;color:var(--muted);text-align:center;margin:15px 0}.auth-switch button{color:var(--purple);padding:5px}.auth-fine{font-size:10px;color:#aaa0b5;line-height:1.9;border-top:1px solid var(--line);padding-top:18px;margin-top:23px}.form-error{font-size:12px;color:#b76852;min-height:20px;margin:12px 0 3px}.auth-loading{height:var(--height);display:flex;align-items:center;justify-content:center;flex-direction:column;color:var(--muted)}.auth-loading img{width:150px;height:150px;object-fit:contain}.account-form input{padding:10px}
@media(max-width:760px){.auth-page{grid-template-columns:1fr}.auth-intro{padding:18px 24px 10px}.auth-intro>.brand{font-size:20px}.auth-intro>.brand img{width:34px;height:34px}.auth-hello{display:flex;align-items:center;gap:12px;padding:5px 0;margin:0 auto}.auth-hello>img{width:105px;height:115px}.auth-hello h1{font-size:21px;text-align:left;margin:8px 0}.auth-hello p,.auth-caption{display:none}.auth-form-wrap{padding:20px 26px 35px;align-items:flex-start}.auth-form h2{font-size:21px;margin-top:10px}.auth-sub{margin-bottom:18px}.auth-eyebrow{font-size:9px}.auth-fine{margin-top:18px}}

.pet-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;border-radius:50%}.has-3d>.pet-img{visibility:hidden}.has-3d .pet-state{z-index:2}.voice-controls{display:flex;align-items:center;gap:6px;padding:0 0 8px;flex-wrap:wrap}.voice-controls button{font-size:10px;border:1px solid var(--line);padding:4px 9px;background:white;border-radius:20px}.voice-controls button[aria-pressed=true]{background:var(--soft);color:var(--purple-deep);border-color:#dfd2f3}.voice-controls>span{font-size:9px;color:var(--muted);margin-left:auto}.tool-trace{font-size:10px;color:#a18db4;margin-top:9px}.tool-trace summary{cursor:pointer}.tool-trace div{padding:3px 0}.citation-links{display:flex;gap:8px;margin-top:8px}.citation-links button{font-size:11px;color:var(--purple);padding:3px}.today-panel{padding:18px 20px 12px;background:#fffaf4;border-bottom:1px solid #f2e6da;max-height:260px;overflow:auto;flex-shrink:0}.today-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.today-heading h2{font-size:13px;margin:0}.today-heading>span{font-size:10px;color:#c28e59}.today-task{display:flex;gap:9px;align-items:flex-start;padding:7px 0;font-size:11px;line-height:1.8}.today-task input{accent-color:var(--purple);margin-top:4px;flex-shrink:0}.today-task small{display:block;color:#b09a86;font-size:9px}.today-panel>button{padding:4px 0;font-size:10px;color:#b38559}.review-header{padding-top:18px;padding-bottom:14px}.pet-button[data-state=speaking]>.pet-img{animation:listen 1.2s ease-in-out infinite}@media(max-width:640px){.voice-controls{padding-bottom:6px;gap:4px}.voice-controls button{font-size:9px;padding:3px 7px}.voice-controls>span{font-size:8px}.today-panel{max-height:210px;padding:14px 20px}.composer-help{line-height:1.4}.composer-help>span:first-child{max-width:65%}}

@media(max-width:640px){.mobile-brand{white-space:nowrap;flex-shrink:0;gap:3px}.mobile-brand img{width:30px;height:30px}.top-right{min-width:0}.top-right .sync{font-size:0;gap:4px;padding:7px}.top-right .sync:after{content:'已同步';font-size:9px;white-space:nowrap}.top-right .sync.error:after{content:'重试'}.top-right .sync.busy:after{content:'连接中'}.top-right .sync svg{width:15px;height:15px}.mobile-review-btn{padding:7px;gap:4px}}

/* Live2D avatar, full body without cropping. */
.pet-button.has-live2d{width:250px;height:340px;flex:0 0 250px;border-radius:24px;background:radial-gradient(ellipse,#f0e8ff88,transparent 70%)}.live2d-canvas{position:absolute;top:0;left:0;pointer-events:none}.has-live2d>.pet-img{visibility:hidden}.has-live2d .pet-state{z-index:2;bottom:0}.hero:has(.has-live2d){min-height:350px}.has-live2d:hover{background-color:#f5effb}@media(max-width:640px){.pet-button.has-live2d{width:220px;height:290px;flex-basis:auto}.hero:has(.has-live2d){min-height:0}}
/* Scene-first butler home */
.scene-app{position:relative;display:block;max-width:none;height:var(--height);isolation:isolate;--rail:76px;--peach:#f49c85;--glass:rgba(255,251,247,.86)}.room-backdrop{position:absolute;inset:0;z-index:-3;background:#e6d9d0 url('/live2d/room-background.png') center/cover no-repeat}.room-backdrop:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#fff7eb75,transparent 48%,#f2e7ed33)}.sunlight{position:absolute;inset:0;pointer-events:none;z-index:-2;background:linear-gradient(120deg,transparent 30%,#fff7d438 45%,transparent 60%);animation:sun-drift 20s ease-in-out infinite alternate}.scene-app .sidebar{position:absolute;inset:14px auto 14px 14px;width:62px;z-index:25;padding:20px 8px;background:#fffaf0c9;backdrop-filter:blur(20px);border:1px solid #ffffffa8;border-radius:22px;box-shadow:0 8px 30px #5a3a3c12;transition:width .25s}.scene-app.menu-expanded{--rail:220px}.scene-app.menu-expanded .sidebar{width:206px}.scene-app .brand{font-size:20px;letter-spacing:1px;justify-content:center;white-space:nowrap}.scene-app .menu-toggle{margin-top:16px;font-size:20px}.scene-app .sidebar nav{margin-top:24px;gap:16px}.scene-app .sidebar nav button{min-height:46px;padding:12px;justify-content:flex-start;white-space:nowrap;overflow:hidden}.scene-app .sidebar nav button>span,.scene-app .rail-settings>span{display:none}.scene-app.menu-expanded .sidebar nav button>span,.scene-app.menu-expanded .rail-settings>span{display:inline}.scene-app .sidebar nav button.active{background:#ffe6dc;color:#a75d55}.scene-app .rail-settings{margin-top:20px;padding:12px;justify-content:flex-start}.rail-collapse{margin-top:auto;font-size:24px}.scene-app .workspace{margin-left:calc(var(--rail) + 20px);height:100%;position:relative;transition:margin .25s}.scene-app .topbar{height:66px;border:0;padding:0 32px;background:transparent}.scene-app .top-title{color:#6e5b63;letter-spacing:2px;font-size:12px}.scene-app .top-right{margin-left:auto}.scene-app .sync{color:#655f64;background:#fffaf0a6;border-radius:20px;padding:7px 12px}.scene-app .scroll{padding:0;overflow:auto}.scene-app.at-home .scroll{overflow:hidden}.butler-stage{position:relative;height:100%;min-height:460px}.welcome{position:absolute;left:5%;top:7%;z-index:2;max-width:350px}.eyebrow{font-size:9px;letter-spacing:3px;color:#9e7b76}.welcome h1{font-family:Georgia,'Microsoft YaHei',serif;font-size:clamp(27px,3vw,46px);line-height:1.5;font-weight:500;margin:12px 0;color:#443b50;text-shadow:0 2px 15px #fff}.welcome h1 em{font-style:normal;color:#ec9e8d}.welcome>p{font-size:12px;color:#7e6d75}.character-stage{position:absolute;left:30%;bottom:92px;width:37%;height:calc(100% - 100px);display:flex;align-items:flex-end;justify-content:center}.scene-app .pet-button.has-live2d,.scene-app .pet-button{width:100%;height:100%;flex:1;background:none!important;border-radius:0;padding:0}.scene-app .pet-state{bottom:0;background:#fffaf2c9;padding:3px 12px;border-radius:20px;font-size:10px}.scene-app .pet-img{width:100%;height:100%;object-fit:contain}.scene-app .live2d-canvas{border-radius:0}.butler-subtitle{position:absolute;left:61%;top:31%;max-width:300px;max-height:220px;overflow:auto;background:var(--glass);backdrop-filter:blur(18px);border:1px solid #fff;border-radius:22px 22px 22px 5px;padding:18px 22px;box-shadow:0 10px 30px #5d424710;font-size:14px;z-index:3}.subtitle-label{font-size:9px;letter-spacing:1px;color:#af8b84}.butler-subtitle p{margin:8px 0;white-space:pre-wrap;line-height:1.8}.butler-subtitle button{color:#a97569;font-size:11px;padding:5px 0}.scene-tasks{position:absolute;right:3%;top:1%;width:250px;z-index:4;background:var(--glass);border:1px solid #fff;border-radius:22px;backdrop-filter:blur(18px);box-shadow:0 12px 30px #5f434315;padding:10px 16px}.task-peek{width:100%;justify-content:flex-start;font-size:12px;padding:8px 0}.task-peek b{margin-left:auto;color:#d18f7f;font-weight:500}.task-peek svg:last-child{width:13px}.scene-tasks .today-panel{background:none;border:0;padding:0;max-height:140px}.scene-tasks .today-heading,.scene-tasks .today-panel>button{display:none}.scene-tasks .today-task{font-size:11px;border-top:1px solid #e7dcd66b}.scene-tasks .today-task small{font-size:9px}.quiet-day{font-size:10px;color:#9d8987}.pending-peek{font-size:10px;color:#ac7669;border-top:1px solid #e7dcd66b;width:100%;border-radius:0;padding:9px 0}.scene-shortcuts{position:absolute;left:4%;bottom:120px;display:flex;gap:12px;z-index:3}.scene-shortcuts button{background:var(--glass);backdrop-filter:blur(16px);border:1px solid #fff;padding:12px 18px;box-shadow:0 8px 22px #5c424211;text-align:left}.scene-shortcuts button>svg{color:#9e8ad3;width:26px;height:26px}.scene-shortcuts span{font-size:12px}.scene-shortcuts small{display:block;font-size:9px;color:#ac9898}.model-credit{position:absolute;bottom:100px;right:3%;font-size:8px;color:#766777;background:#ffffff80;padding:2px 6px;border-radius:6px}.scene-app .composer-wrap{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);width:min(640px,85%);padding:12px 18px 7px;background:#fff8f1dd;backdrop-filter:blur(24px);border:1px solid #fff;border-radius:28px;box-shadow:0 12px 40px #65423e20;z-index:8}.scene-app .composer{border:0;background:transparent;box-shadow:none;padding:0;align-items:center}.scene-app .composer textarea{background:transparent;font-size:13px;max-height:90px;min-height:42px;padding:10px 8px}.scene-app .voice-controls{padding-bottom:4px}.scene-app .voice-controls button{border:0;background:transparent;font-size:9px;padding:2px 6px}.scene-app .voice-controls button:last-child{margin-left:auto}.scene-app .voice-controls button[aria-pressed=true]{color:#a36c61;background:#ffe8df}.scene-app .mic{background:#f4a28c;width:52px;height:52px;box-shadow:0 0 0 5px #fff2e9}.scene-app .mic.active{animation:mic-ring 1.5s ease-out infinite;background:#ef8b79}.scene-app .send{color:#ad7f70;background:#fff4ea}.scene-app .composer-help{font-size:8px;margin-top:5px;color:#a48b83}.scene-app .mobile-menu{display:none}.scene-app .mobile-nav{display:none}.scene-app .review-pane{display:none}.scene-app.review-open .review-pane{display:flex;position:absolute;inset:80px 24px 28px auto;width:380px;border:1px solid white;border-radius:26px;background:#fffaf6ed;backdrop-filter:blur(25px);box-shadow:0 18px 70px #5d414328;z-index:30;overflow:hidden}.scene-app.review-open:before{display:none}.scene-app .close-review{display:flex;margin-left:auto}.scene-app .review-pane>.today-panel{display:none}.scene-app .review-header{height:auto;padding:20px}.scene-app .review-header h2{font-size:17px}.scene-app .review-body{padding:0 20px 16px}.scene-app .review-foot{background:#fffaf1aa}.scene-app .original{font-size:11px}.scene-app .edit-card{background:#ffffffb5;padding:12px;border:1px solid #eee2dc}.scene-app .edit-card textarea{min-height:50px}.scene-app .function-sheet{max-width:850px;margin:12px auto 28px;background:#fffaf6ed;backdrop-filter:blur(24px);padding:28px 36px;border-radius:26px;box-shadow:0 16px 60px #5a3d3d15}.sheet-top button{font-size:11px;color:#ad7e6e;padding:0 0 15px}.sheet-top svg{transform:rotate(180deg)}.function-sheet .hero,.function-sheet .quick-starts{display:none}.room-motes{position:absolute;inset:0;pointer-events:none;z-index:-1;overflow:hidden}.room-motes i{position:absolute;width:5px;height:5px;border-radius:50%;background:#fff8ca;box-shadow:0 0 14px 4px #fff5c5;left:24%;top:60%;animation:mote 13s ease-in-out infinite alternate}.room-motes i:nth-child(2){left:75%;top:35%;animation-delay:-6s}.room-motes i:nth-child(3){left:51%;top:24%;animation-delay:-10s}.no-motion .room-motes i,.no-motion .sunlight,.no-motion .mic.active{animation:none}@keyframes mote{to{transform:translate(35px,-95px);opacity:.15}}@keyframes sun-drift{to{opacity:.3;transform:translateX(30px)}}@keyframes mic-ring{to{box-shadow:0 0 0 18px #f4a28c00}}@media(prefers-reduced-motion:reduce){.sunlight,.room-motes i,.scene-app .mic.active{animation:none}}
@media(max-width:1100px){.welcome{left:3%;top:3%}.welcome h1{font-size:30px}.scene-tasks{width:210px}.character-stage{left:22%;width:47%}.butler-subtitle{left:64%;top:37%;max-width:220px;padding:14px}.scene-shortcuts{bottom:135px}.scene-shortcuts button{padding:9px 12px}.scene-shortcuts small{display:none}}
@media(max-width:640px){.scene-app{display:block;--rail:0px}.scene-app .workspace{margin-left:0}.scene-app .sidebar{display:none}.scene-app.menu-expanded .sidebar{display:flex;inset:65px auto 110px 12px;width:195px;z-index:40}.scene-app .topbar{height:60px;padding:0 16px;gap:8px}.scene-app .mobile-menu{display:flex;padding:6px;font-size:21px}.scene-app .mobile-brand{display:block;font-size:20px;font-weight:600}.scene-app .top-title{display:none}.scene-app .top-right .sync{display:none}.scene-app .top-right .icon-btn{padding:7px}.scene-app .scroll{padding:0}.butler-stage{min-height:0;height:100%}.welcome{left:7%;top:1%}.welcome .eyebrow{font-size:7px;letter-spacing:2px}.welcome h1{font-size:25px;margin:5px 0;line-height:1.4}.welcome>p{display:none}.character-stage{left:6%;width:88%;height:calc(100% - 190px);bottom:150px}.butler-subtitle{left:auto;right:5%;top:22%;max-width:185px;max-height:145px;padding:10px 13px;font-size:11px}.subtitle-label{font-size:7px}.butler-subtitle p{margin:4px 0}.scene-tasks{right:5%;top:1%;width:auto;max-width:150px;padding:3px 10px;border-radius:20px}.task-peek{font-size:10px;gap:5px}.task-peek svg{width:14px}.scene-tasks .today-panel,.scene-tasks .quiet-day{display:none}.pending-peek{font-size:8px;padding:5px 0}.pending-peek svg{display:none}.scene-shortcuts{display:none}.model-credit{bottom:155px;font-size:6px;right:5%}.scene-app .composer-wrap{bottom:75px;width:92%;padding:9px 12px 5px;border-radius:24px}.scene-app .composer textarea{font-size:12px;min-height:38px}.scene-app .mic{width:46px;height:46px}.scene-app .send{width:34px;height:34px}.scene-app .composer-help{font-size:7px}.scene-app .voice-controls button{font-size:8px}.scene-app .mobile-nav{display:flex;position:absolute;bottom:10px;left:20%;right:20%;background:#fff9f0ba;backdrop-filter:blur(18px);border:1px solid white;border-radius:20px;padding:3px 7px;justify-content:space-around}.scene-app .mobile-nav button{padding:5px 12px;font-size:8px;color:#786679}.scene-app .mobile-nav button:first-child{display:none}.scene-app .mobile-nav button svg{width:17px;height:17px}.scene-app.review-open .review-pane{inset:auto 8px 8px;width:calc(100% - 16px);max-height:82%;height:auto;border-radius:24px;z-index:45}.scene-app .review-body{max-height:55dvh;overflow:auto}.scene-app .review-header{padding:16px}.scene-app .review-header h2{font-size:16px}.scene-app .function-sheet{margin:8px 10px 85px;padding:20px 16px}.scene-app.has-page .scroll{padding-bottom:0}.scene-app .page-title{font-size:21px}.scene-app .review-foot{padding:10px 16px}.scene-app .room-backdrop{background-position:48% center}}
@media(max-height:700px) and (min-width:641px){.character-stage{bottom:105px;height:calc(100% - 110px)}.welcome h1{font-size:28px}.scene-shortcuts{bottom:125px}.scene-tasks .today-panel{max-height:80px}}

.scene-app .welcome{max-width:380px}.scene-app .welcome h1{font-size:clamp(27px,2.7vw,40px)}.scene-app .welcome>p{background:#fffaf175;display:inline-block;padding:3px 8px;border-radius:9px}.scene-app .room-backdrop:after{background:linear-gradient(90deg,#fff7eb9c,transparent 52%,#f2e7ed22)}@media(max-width:640px){.scene-app .welcome h1{font-size:24px}.scene-app .welcome>p{display:none}}
@media(max-width:640px){.scene-app .butler-subtitle{top:auto;bottom:160px;right:5%;left:5%;max-width:none;max-height:108px;padding:9px 13px;border-radius:18px}.scene-app .butler-subtitle p{max-height:44px;overflow:auto;font-size:10px;line-height:1.55}.scene-app .butler-subtitle button{font-size:9px;padding:2px 0}.scene-app .character-stage{bottom:185px;height:calc(100% - 210px)}.scene-app .welcome{z-index:2}.scene-app .model-credit{bottom:145px}}

.subtitle-audio{display:flex;gap:14px;border-top:1px solid #eaded666;margin-top:8px;padding-top:4px}.subtitle-audio button{font-size:10px}.scene-app .voice-controls{row-gap:4px}.scene-app .voice-controls button{white-space:nowrap}@media(max-width:640px){.scene-app .butler-subtitle{max-height:130px}.subtitle-audio{margin-top:3px;padding-top:0}.subtitle-audio button{font-size:8px}}

.speech-status{display:block;font-size:9px;color:#b57c6b;min-height:0}.speech-status:not(:empty){margin-top:6px}.speech-status:not(:empty):before{content:"♫ ";}.scene-app .voice-controls{flex-wrap:wrap}

.voice-controls button[aria-pressed="true"]{background:#f2d6cb;color:#663e34}.mode-hint,.memory-receipt{font-size:11px;color:#865f54}.memory-receipt{display:block;margin-top:6px}

/* Calendar: the same current tasks, grouped by event timestamp in Beijing time. */
.calendar-page{min-width:0}.calendar-toolbar,.calendar-month-nav,.calendar-summary,.calendar-day-head,.calendar-agenda-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.calendar-toolbar{flex-wrap:wrap;margin:16px 0}.calendar-month-nav{justify-content:flex-start;flex-wrap:wrap}.calendar-month-nav input{max-width:160px;border:1px solid #e5d9d3;border-radius:10px;padding:7px;background:#fffaf6}.calendar-completed{display:flex;align-items:center;gap:6px;font-size:12px}.calendar-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(230px,1fr);gap:20px}.calendar-summary{font-size:12px;padding-bottom:10px;color:#876c6e}.calendar-summary button{padding:5px 8px;background:#f3e5da}.calendar-week,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.calendar-week{text-align:center;font-size:12px;color:#8b787d;padding:6px 0}.calendar-grid .calendar-day{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:4px;min-width:0;min-height:94px;border:1px solid #ebdfd8;border-radius:12px;padding:7px 5px;background:#fffaf4;text-align:left}.calendar-grid .calendar-day:hover{background:#f4e5db}.calendar-grid .calendar-day.outside{background:#f6f3f0;color:#998e8d}.calendar-grid .calendar-day.selected{border:2px solid #a96579;padding:6px 4px;background:#f9e9e5}.calendar-day.today .calendar-day-head b{background:#a96579;color:white;border-radius:50%;min-width:24px;text-align:center}.calendar-day-head b{font-size:13px;font-weight:500}.calendar-day-head small{font-size:9px;color:#97706e}.calendar-events{display:flex;flex-direction:column;gap:3px;min-width:0}.calendar-event{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#f0ddd0;color:#76544f;border-radius:5px;padding:1px 3px;font-size:10px}.calendar-event.completed{background:#e7ece3;color:#72806a;text-decoration:line-through}.calendar-more{font-size:9px;color:#9a7e79}.calendar-agenda{min-width:0;border:1px solid #eaded6;border-radius:18px;background:#fffbf5;padding:14px;align-self:start}.calendar-agenda-heading{flex-wrap:wrap}.calendar-agenda h2{font-size:15px;margin:0}.calendar-agenda-heading>button{font-size:12px;padding:5px}.calendar-agenda-item{padding:12px 0;border-bottom:1px solid #eee4de}.calendar-agenda-item .task-row{align-items:flex-start}.calendar-agenda-item strong,.calendar-agenda-item small,.calendar-agenda-item .task-row>span>span{display:block;overflow-wrap:anywhere}.calendar-agenda-item small{font-size:11px;color:#9a796e}.calendar-agenda-item strong{font-size:13px;font-weight:500}.calendar-agenda-item .done{text-decoration:line-through;color:#948c84}.calendar-agenda-item .task-row>span>span{font-size:11px;color:#907b73}.calendar-agenda-item>button{font-size:11px;padding:5px 0}.calendar-empty{padding:25px 0;color:#957d73;font-size:13px}.calendar-empty p,.calendar-note{font-size:11px;color:#9d8c82}.sr-calendar{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:1000px){.calendar-layout{grid-template-columns:minmax(0,1fr)}.calendar-grid .calendar-day{min-height:82px}}@media(max-width:640px){.calendar-toolbar{gap:6px}.calendar-month-nav button{padding:6px 9px}.calendar-grid,.calendar-week{gap:3px}.calendar-grid .calendar-day{min-height:65px;padding:5px 3px;border-radius:8px}.calendar-grid .calendar-day.selected{padding:4px 2px}.calendar-day-head{flex-wrap:wrap;gap:1px}.calendar-day-head b{font-size:12px}.calendar-day-head small{font-size:8px}.calendar-event{font-size:8px}.calendar-events .calendar-event:nth-child(2),.calendar-more{display:none}.calendar-agenda{padding:12px}.scene-app .mobile-nav{left:8%;right:8%}.scene-app .mobile-nav button{padding:5px 9px}.scene-app .scene-shortcuts{gap:5px}}

.report-history{display:flex;gap:5px;flex-wrap:wrap;margin:10px 0 20px}.report-history button{padding:5px 9px;font-size:12px;border:1px solid #eaded8}.report-history .selected{background:#eadbd2}.generated-report h2{font-size:19px;margin-top:26px}.generated-report h3{font-size:14px;margin-top:20px}.report-summary{white-space:pre-wrap;overflow-wrap:anywhere}.report-source-list{padding:0;list-style:none}.report-source-list li{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid #eee4de;padding:8px 0}.report-source-list small{display:block;color:#9b8983;font-size:11px}.report-source-list button{font-size:11px;white-space:nowrap;align-self:start}.project-reflection{border:1px solid #eaded6;background:#fffaf5;border-radius:16px;padding:14px;margin:12px 0}.project-reflection>summary{cursor:pointer;font-weight:600}.project-mindmap{display:flex;align-items:center;gap:24px;padding:20px 4px;overflow:auto}.mindmap-root,.mindmap-topic{border-radius:10px;background:#d9c3dc;padding:10px 14px;flex-shrink:0;max-width:180px;overflow-wrap:anywhere}.mindmap-topic{background:#f0dbcb;font-size:12px}.mindmap-branches{border-left:2px solid #d7bdc9;padding-left:20px;display:grid;gap:18px}.mindmap-branch{display:flex;align-items:center;gap:16px;position:relative}.mindmap-branch:before{content:'';position:absolute;width:20px;height:2px;background:#d7bdc9;left:-20px}.mindmap-branch ul{list-style:none;margin:0;padding-left:12px;border-left:1px solid #dcc8c1;display:grid;gap:5px}.mindmap-branch li button{background:#f7eee5;font-size:12px;text-align:left;justify-content:flex-start;max-width:300px;overflow-wrap:anywhere}.generated-report .mode-tip{overflow-wrap:anywhere}@media(max-width:640px){.project-mindmap,.mindmap-branch{align-items:flex-start;flex-direction:column;gap:10px}.mindmap-root,.mindmap-topic{max-width:100%}.mindmap-branch li button{max-width:100%}.mindmap-branches{padding-left:12px}.report-source-list li{font-size:12px}.report-history button{font-size:10px}}

.report-peek{font-size:11px;color:#9b5771;background:#f5e6df;width:100%;margin-bottom:6px;padding:7px}.report-peek svg{width:15px;height:15px}@media(max-width:640px){.report-peek{font-size:8px;padding:3px;margin-bottom:2px}.report-peek svg{display:none}}

.report-archive{margin-top:18px}.report-year,.report-month{margin:12px 0}.report-year>summary,.report-month>summary{cursor:pointer;padding:9px 0;font-weight:600}.report-year>summary small,.report-month>summary small{font-weight:400;color:#9b8983;margin-left:8px}.report-month{margin-left:14px}.report-card{border:1px solid #eadfd8;border-radius:16px;background:#fffbf6;margin:10px 0;overflow:hidden}.report-card>summary{cursor:pointer;padding:16px;list-style-position:inside}.report-card-heading{display:inline-flex;justify-content:space-between;gap:12px;width:calc(100% - 24px);align-items:center}.report-card-heading strong{font-size:14px}.report-card-heading small{font-size:10px;color:#a18078;white-space:nowrap}.report-card-preview,.project-brief{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;color:#907b75;margin:7px 0 0 18px;line-height:1.65;font-weight:400}.report-card-body{padding:0 16px 14px}.report-card-body>.report-summary{font-size:13px;margin:0 0 12px;line-height:1.8}.report-counts{display:flex;flex-wrap:wrap;gap:8px;font-size:11px;margin:10px 0}.report-counts span{background:#f2e5dc;border-radius:8px;padding:3px 8px}.report-evidence,.project-overview,.mindmap-fold{border-top:1px solid #eee1d9;padding:10px 0;margin-top:6px}.report-evidence>summary,.project-overview>summary,.mindmap-fold>summary{cursor:pointer;font-size:12px;color:#9b6374}.project-reflection summary strong{font-size:13px}.project-brief{font-size:11px;margin-left:0}@media(max-width:640px){.report-card>summary{padding:12px}.report-month{margin-left:8px}.report-card-heading{align-items:flex-start;gap:5px;flex-wrap:wrap}.report-card-heading strong{font-size:12px}.report-card-body{padding:0 12px 12px}.report-card-preview{font-size:11px;margin-left:0}}

.idea-project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:15px 0}.idea-project-tile{display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:8px;padding:20px;border:1px solid #e7d8d3;background:#fffaf6;border-radius:18px;min-width:0}.idea-project-tile:hover{background:#f7eae3;border-color:#c79caa}.idea-project-name{font-size:17px;font-weight:600;overflow-wrap:anywhere}.idea-project-count,.idea-project-updated,.idea-meta{font-size:11px;color:#9a7c74}.idea-tile-preview{display:grid;gap:5px;font-size:12px;color:#806d69;min-width:0}.idea-tile-preview>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.idea-breadcrumb,.idea-project-actions,.idea-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0}.idea-breadcrumb>span{color:#9a7c74;font-size:12px}.idea-project-actions button{background:#eedbd9;font-size:12px}.idea-stream{border:1px solid #eaded8;border-radius:16px;background:#fffcf7;margin:14px 0;padding:15px}.idea-stream>summary{cursor:pointer;font-weight:600}.idea-stream small{font-weight:400;font-size:11px;color:#9a7c74;margin-left:8px}.project-idea-card{border-top:1px solid #eee4de;margin-top:12px;padding-top:12px}.project-idea-card h3{font-size:14px;line-height:1.8;overflow-wrap:anywhere;margin:7px 0}.project-idea-card details{font-size:12px;color:#947c75}.project-idea-card details>summary{cursor:pointer}.project-idea-card details p{white-space:pre-wrap;overflow-wrap:anywhere}.idea-meta{display:flex;gap:9px}.idea-card-actions button{font-size:11px;padding:5px 8px}.idea-card-actions button:last-child{background:#eee1e8}@media(max-width:640px){.idea-project-grid{grid-template-columns:minmax(0,1fr)}.idea-project-tile{padding:15px}.idea-project-name{font-size:15px}.idea-stream{padding:12px}.scene-app .mobile-nav{left:4%;right:4%}.scene-app .mobile-nav button{padding:5px 7px}.idea-breadcrumb>strong{overflow-wrap:anywhere;max-width:100%}}

/* Original companion sprites; Live2D remains available as Mao. */
.companion-dialog{max-width:820px!important;width:min(94vw,820px);max-height:90dvh;overflow:auto}.companion-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.companion-card{display:flex;flex-direction:column;border:1px solid var(--line);background:#faf6f4;padding:10px;gap:4px}.companion-card[aria-pressed="true"]{border:2px solid var(--purple);background:var(--soft)}.companion-card img{height:190px;width:100%;object-fit:contain}.companion-card small{font-size:10px}.companion-options{display:flex;flex-wrap:wrap;gap:14px;margin:18px 0}.companion-options label{display:flex;align-items:center;gap:8px}.companion-options select{padding:7px;border:1px solid var(--line);border-radius:9px;background:white}.companion-dialog footer{display:flex;flex-wrap:wrap;gap:8px}.sprite-companion .pet-img{display:block!important;width:100%!important;height:calc(100% - 28px)!important;object-fit:contain;transform-origin:50% 95%;animation:companion-breathe 4s ease-in-out infinite;filter:drop-shadow(0 9px 12px #66506a22)}.sprite-companion[data-state="happy"] .pet-img{animation:companion-bounce .55s ease-in-out 2}.sprite-companion[data-state="listening"] .pet-img{transform:rotate(-2deg)}.sprite-companion[data-state="speaking"] .pet-img{animation:companion-breathe 1.1s ease-in-out infinite}.no-motion .sprite-companion .pet-img{animation:none!important;transform:none!important}@keyframes companion-breathe{50%{transform:translateY(-5px) rotate(.5deg)}}@keyframes companion-bounce{50%{transform:translateY(-12px) rotate(-2deg)}}@media(prefers-reduced-motion:reduce){.sprite-companion .pet-img{animation:none!important;transform:none!important}}@media(max-width:640px){.companion-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.companion-card img{height:155px}.companion-options{display:grid}.companion-dialog footer button{font-size:12px}}

.companion-dialog h3{font-size:13px;margin:18px 0 8px;color:#715b77}.companion-live2d-preview{width:100%;height:190px;display:flex;align-items:center;justify-content:center;color:#94839b;font-size:11px}.companion-live2d-preview canvas{width:180px!important;height:180px!important;max-width:100%}.companion-note{font-size:11px;color:#786a78;margin-top:15px}.companion-dialog .companion-card{min-height:250px}.companion-dialog .companion-card img{height:190px}.companion-dialog .live2d-choice{background:#f3effd}.companion-dialog .companion-grid{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:640px){.companion-dialog .companion-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.companion-dialog .companion-card img,.companion-live2d-preview{height:145px}.companion-dialog .companion-card{min-height:215px}}

.has-puppet>.pet-img{visibility:hidden}.puppet-canvas{position:absolute;top:0;left:0;pointer-events:none}.has-puppet .pet-state{z-index:2}

/* A quiet, permanent companion switch at the top-left of the home screen. */
.scene-app .home-companion-switch{flex:0 0 auto;margin-left:12px;padding:5px 12px 5px 5px;min-height:42px;border:1px solid #ffffffc9;border-radius:999px;background:#fffaf1d9;backdrop-filter:blur(16px);box-shadow:0 5px 18px #60445517;color:#765986;font-size:12px;font-weight:600;white-space:nowrap}
.scene-app .home-companion-switch:hover{background:#f5eaf9;border-color:#d9c7ec}
.home-companion-avatar{width:30px;height:30px;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:#e9dff3;color:#7557a1;font-size:14px}
.home-companion-avatar img{width:100%;height:100%;object-fit:cover}
.home-companion-chevron{font-size:19px;font-weight:400;line-height:1;color:#a78ab8}
@media(max-width:640px){.scene-app .home-companion-switch{margin-left:0;min-height:38px;padding:4px 9px 4px 4px;font-size:11px;gap:5px}.home-companion-avatar{width:27px;height:27px}.home-companion-chevron{font-size:16px}}

.task-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:14px 0 6px}.task-toolbar>button{border:1px solid #eaded6;background:#fffaf6;font-size:12px;padding:8px 11px}.task-toolbar>button.primary{background:var(--purple);border-color:var(--purple);color:#fff}.task-toolbar .task-date-filter{display:flex;align-items:center;gap:7px;font-size:12px}.task-toolbar input{border:1px solid #e5d9d3;border-radius:9px;padding:6px;background:#fffaf6}.task-group{margin:22px 0}.task-group h2{font-size:15px;margin:0 0 9px}.task-group h2 small{font-size:11px;color:var(--muted);font-weight:400;margin-left:6px}.task-group .memory-card{margin:9px 0}.manual-note-entry{margin:0 0 18px}.manual-note-dialog{width:min(560px,100%)}.manual-note-dialog form{display:grid;gap:13px}.manual-note-dialog form>label,.manual-note-fields label{display:grid;gap:5px;font-size:12px;font-weight:600}.manual-note-dialog input,.manual-note-dialog textarea,.manual-note-dialog select{width:100%;border:1px solid var(--line);border-radius:10px;background:#fdfbf9;padding:9px 11px;font-size:13px;font-weight:400}.manual-note-dialog textarea{min-height:90px;resize:vertical}.manual-note-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.manual-note-dialog footer{margin-top:8px}@media(max-width:640px){.manual-note-fields{grid-template-columns:1fr}.task-toolbar>button{font-size:11px}}
.realtime-voice-dialog{max-width:520px;width:min(94vw,520px)}
.scene-app .voice-controls .realtime-voice-entry{background:#7957c6;color:#fff;border:1px solid #7957c6;font-weight:700;padding:5px 10px;font-size:11px}
.scene-app .voice-controls .realtime-voice-entry:hover{background:#6845b5}
.realtime-voice-dialog .voice-live-status{color:#7957b4;font-weight:600;min-height:1.5em}
.realtime-voice-dialog .voice-live-transcript,.realtime-voice-dialog .voice-live-reply{min-height:3em;padding:14px 16px;border:1px solid #eee4f4;border-radius:16px;background:#fffafc;white-space:pre-wrap;line-height:1.6}
.realtime-voice-dialog .voice-live-reply{background:#f6f1ff}
.realtime-voice-dialog .voice-live-buttons{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:640px){
  .scene-app .voice-controls{flex-wrap:wrap;gap:3px 6px}
  .scene-app .voice-controls .realtime-voice-entry{order:-1;flex:0 0 100%;min-height:32px;padding:5px 10px;font-size:11px;border-radius:12px}
}

/* A familiar chat composer: hold to send a voice message, or start a call. */
.scene-app .voice-controls .voice-call-entry{background:#7957c6;color:white;border:1px solid #7957c6;border-radius:12px;padding:6px 12px;font-size:11px;font-weight:700}
.scene-app #voice-hold{touch-action:none;user-select:none;-webkit-user-select:none}
.scene-app #voice-hold.active{background:#7957c6;transform:scale(1.07)}
.voice-inline{display:flex;align-items:center;gap:12px;margin:0 0 8px;padding:9px 12px;border-radius:16px;background:#f2eaff;color:#5e418b;font-size:12px}
.voice-inline>div{display:grid;gap:2px;flex:1;min-width:0}.voice-inline small{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.voice-inline button{font-size:18px}.voice-pulse{color:#e05f7d;animation:mic-ring 1s infinite}
.chat-feed{display:none}.chat-line{display:flex;padding:4px 0}.chat-line span{max-width:84%;padding:9px 13px;border-radius:16px;background:#fffaf5;box-shadow:0 2px 10px #58405112;white-space:pre-wrap;overflow-wrap:anywhere}.chat-line.user{justify-content:flex-end}.chat-line.user span{background:#e9ddfb}
.voice-call{position:fixed;inset:0;z-index:200;display:flex;flex-direction:column;align-items:center;background:linear-gradient(160deg,#f4e8fa,#f9f0ea);color:#4e3b60;padding:calc(20px + env(safe-area-inset-top)) 24px calc(25px + env(safe-area-inset-bottom));text-align:center}
.voice-call header{width:100%;display:flex;justify-content:space-between;align-items:center;font-size:13px}.voice-call header button{font-size:25px}.call-avatar{display:grid;place-items:center;width:112px;height:112px;margin:8vh auto 16px;border-radius:50%;background:#ddd1f4;color:#805bc2;font-size:60px;box-shadow:0 0 0 13px #ffffffaa,0 16px 45px #8a71ad55}.voice-call h2{margin:12px 0 4px}.voice-call>p{min-height:24px}.call-caption{width:min(520px,100%);flex:1;min-height:0;overflow:auto;margin:20px auto;padding:18px;border-radius:20px;background:#ffffffa8;text-align:left}.call-caption small{color:#967da8}.call-caption p{min-height:30px;white-space:pre-wrap;overflow-wrap:anywhere}.voice-call #call-hangup{background:#df5874;color:white;border-radius:999px;padding:15px 32px;font-size:15px}
.call-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
@media(max-width:640px){
 .scene-app.at-home .welcome,.scene-app.at-home .butler-subtitle,.scene-app.at-home .scene-tasks,.scene-app.at-home .scene-shortcuts,.scene-app.at-home .model-credit{display:none}
 .scene-app.at-home .character-stage{top:5px;bottom:auto;left:50%;width:105px;height:105px;transform:translateX(-50%);opacity:.92;pointer-events:none}
 .scene-app.at-home .chat-feed{position:absolute;display:block;left:12px;right:12px;top:116px;bottom:180px;overflow:auto;padding:10px 5px 18px;font-size:13px}
 .scene-app.at-home .scroll{overflow:auto}
 .scene-app .composer-wrap{bottom:72px;width:calc(100% - 16px);padding:8px 10px 5px}
 .scene-app .voice-controls{display:flex;gap:5px}.scene-app .voice-controls .voice-call-entry{font-size:11px;padding:5px 10px}
 .scene-app .composer-help .shortcut{display:none}
 .voice-call .call-avatar{margin-top:6vh}
}
