:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#263e40;background:#f8f9f5;font-synthesis:none}*{box-sizing:border-box}body{margin:0;display:flex;min-height:100vh}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button,a,input,textarea,summary{outline-offset:5px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #348274}button{transition:background .15s,transform .15s}button:hover:not(:disabled){filter:brightness(.97)}[hidden]{display:none!important}.sidebar{width:248px;background:#101f25;color:#b5c6c7;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:34px 22px}.brand{display:flex;gap:12px;align-items:center;color:#f0f6ef;text-decoration:none;font-size:23px;font-weight:650;letter-spacing:3px}.brand small{display:block;font-size:8px;letter-spacing:2px;margin-top:5px;color:#8fa9a9}.new-chat{margin:40px 0 35px;border:1px solid #496260;background:#233b3e;color:#e6f2e9;border-radius:9px;padding:13px;text-align:left;display:flex;gap:12px}.nav-label{font-size:9px;letter-spacing:1.8px;color:#738d90;margin:0 12px 15px}.nav-active{display:flex;align-items:center;gap:12px;padding:13px;background:#1c3339;border-radius:8px;font-size:13px;color:#e0ece8}.pill{font-size:9px;letter-spacing:1px;margin-left:auto;background:#2d4748;padding:3px 6px;border-radius:4px;color:#a9d6c0}.sidebar-note{margin-top:auto;border-top:1px solid #2a3b40;padding:24px 10px}.tiny-star{font-size:27px;color:#c0dab0}.sidebar-note h3{font-size:13px;color:#dbe7dc;font-weight:500}.sidebar-note p{font-size:12px;line-height:1.8;color:#8da5a8}.sidebar-bottom{padding:22px 10px 0;border-top:1px solid #2a3b40;font-size:11px}.sidebar-bottom small{display:block;font-size:10px;margin-top:8px;color:#6d898d}.status-dot{display:inline-block;width:6px;height:6px;background:#b6d4ae;border-radius:50%;margin-right:6px}main{margin-left:248px;flex:1;min-width:0}header{height:84px;display:flex;justify-content:space-between;align-items:center;padding:0 42px;border-bottom:1px solid #e5e9df;font-size:12px}.breadcrumb{color:#8b9790}.slash{margin:0 14px;color:#c4cec2}header strong{font-weight:500}.header-actions{display:flex;align-items:center;gap:14px}.connection{font-size:11px;color:#667e71;border:1px solid #dfe6d9;border-radius:25px;padding:7px 11px}.quiet{border:1px solid #d9e2d5;background:transparent;padding:8px 12px;border-radius:7px;color:inherit}.workspace{width:min(820px,calc(100% - 80px));margin:0 auto}.welcome{text-align:center;padding-top:46px}.eyebrow{font-size:9px;letter-spacing:2px;color:#7a8e80;font-weight:600}.eyebrow span{display:inline-block;width:5px;height:5px;background:#7a9b7e;border-radius:50%;margin-right:6px}.orbit{width:80px;height:80px;margin:30px auto 18px;border:1px solid #dbe5d5;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle,#e2ebd9,transparent 70%)}.orbit span{font-size:57px;font-weight:200;color:#467366}h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:44px;letter-spacing:-1.5px;line-height:1.2;margin:0}h1 span{color:#809082}.intro{font-size:13px;line-height:1.8;color:#7c8980;margin:18px 0 27px}.suggestions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;text-align:left}.suggestions button{background:#fff;border:1px solid #e1e6dc;border-radius:12px;padding:18px;position:relative;text-align:left;color:#385044;min-height:120px}.suggestions button:hover{border-color:#87a692;transform:translateY(-2px)}.card-icon{display:block;color:#64866f;font-size:23px;margin-bottom:12px}.suggestions strong{display:block;font-size:12px;font-weight:600}.suggestions small{display:block;color:#919b91;font-size:10px;margin-top:7px}.arrow{position:absolute;right:17px;top:19px;color:#a2b39e}.composer-area{margin-top:25px}.composer{padding:16px 18px 12px;border:1px solid #ccd9c5;border-radius:15px;background:white;box-shadow:0 5px 26px #243b2410}.composer:focus-within{border-color:#70957c}.composer textarea{resize:vertical;min-height:76px;max-height:220px;width:100%;border:0;outline:none;color:#294338;font-size:13px;background:transparent;line-height:1.6}.composer textarea::placeholder{color:#a1aaa0}.composer-toolbar,.send-group,.voice-controls{display:flex;align-items:center;gap:10px}.composer-toolbar{justify-content:space-between;gap:8px}.tool{border:0;background:#f1f5ed;color:#668069;padding:8px 10px;border-radius:7px;font-size:11px}.tool[aria-pressed="true"]{background:#f9e1dd;color:#a03232}.model-label{font-size:10px;color:#83917f}.send{background:#264f40;color:#f2f7e9;border:0;width:36px;height:36px;border-radius:9px;font-size:22px}.privacy{font-size:10px;text-align:center;line-height:1.8;color:#859181;margin:12px 0}.privacy span{color:#99a293}.notice{font-size:12px;color:#7c5b35;line-height:1.6;min-height:20px;margin:0 4px 5px}.details{font-size:11px;color:#7c8d7c;line-height:1.8;padding:10px 0 30px}.details summary{cursor:pointer;text-align:center}.details p{max-width:650px;margin:10px auto}footer{display:flex;justify-content:space-between;padding:22px 42px;color:#8b9b8e;font-size:9px;letter-spacing:1.6px}.messages:empty{display:none}.messages{padding-top:26px}.message{padding:20px 22px;margin:14px 0;border-radius:12px;border:1px solid #e1e8dc;background:#fff;overflow-wrap:anywhere}.message.user{background:#eaf0e5;margin-left:45px}.message h3{font-size:10px;letter-spacing:1.5px;color:#71846e;margin:0 0 12px}.message .text{white-space:pre-wrap;font-size:14px;line-height:1.8}.message .tool{margin-top:12px}dialog{border:1px solid #d5e1cd;border-radius:20px;padding:36px;width:min(430px,calc(100% - 32px));color:#2e4b3c;box-shadow:0 20px 80px #10262130;background:#fafcf7}dialog::backdrop{background:#10202670;backdrop-filter:blur(6px)}dialog h2{font:30px Georgia,serif;letter-spacing:-.8px}dialog p{font-size:13px;line-height:1.7;color:#788878}dialog label{display:block;font-size:12px;margin:22px 0 8px}dialog input{width:100%;padding:12px;border:1px solid #b8ccb3;background:white;border-radius:8px}.primary{background:#28573f;color:#fff;border:0;border-radius:8px;padding:13px 18px}#loginButton{width:100%;margin-top:16px}dialog small{font-size:10px;color:#8b9986}.login-logo{font-size:42px;margin-bottom:18px}#loginError{color:#a14b3c}.dialog-actions{display:flex;justify-content:flex-end;gap:12px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(min-width:1500px){.welcome{padding-top:70px}.workspace{width:850px}.suggestions button{min-height:140px}.composer-area{margin-top:35px}}
@media(max-width:1000px){.sidebar{width:205px;padding:28px 16px}main{margin-left:205px}.workspace{width:calc(100% - 44px)}header{padding:0 24px}h1{font-size:36px}.model-label{display:none}.suggestions button{padding:14px}.suggestions small{font-size:9px}}
@media(max-width:650px){body{display:block}.sidebar{position:static;width:100%;height:68px;flex-direction:row;padding:12px 18px;align-items:center;justify-content:space-between}.brand{font-size:19px}.brand img{width:33px;height:33px}.brand small{font-size:7px}.new-chat{margin:0;padding:8px 12px;font-size:12px}.nav-label,.nav-active,.sidebar-note,.sidebar-bottom{display:none}main{margin:0}header{height:58px;padding:0 18px;font-size:10px}.connection{font-size:9px;padding:6px}.breadcrumb,.slash{display:none}.workspace{width:calc(100% - 32px)}.welcome{padding-top:30px}.eyebrow{font-size:7px;letter-spacing:1.3px}.orbit{width:60px;height:60px;margin:24px auto 18px}.orbit span{font-size:45px}h1{font-size:31px;letter-spacing:-1px}.intro{font-size:12px}.suggestions{gap:7px}.suggestions button{padding:12px 9px;min-height:110px;border-radius:10px}.suggestions strong{font-size:10px}.suggestions small{font-size:9px;line-height:1.5}.arrow{right:9px;top:12px;font-size:12px}.card-icon{font-size:20px}.composer{padding:14px}.tool{font-size:10px;padding:8px}.privacy{font-size:9px}.message.user{margin-left:20px}footer{padding:20px 18px;font-size:8px;letter-spacing:1px}.header-actions{gap:7px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.demo-banner{padding:10px 16px;background:#e7eecf;text-align:center;font-size:11px;color:#4a613f;line-height:1.6}
/* Voice-first home: RGB light moves with interaction state, not microphone amplitude. */
.sidebar{display:none}main{margin-left:0}.welcome{display:none}.workspace{padding-top:20px}.voice-stage{position:fixed;inset:0;z-index:10;overflow-y:auto;background:radial-gradient(ellipse at 50% 48%,#10202f 0%,#080e17 40%,#05090f 78%);color:#dce9f4;display:flex;flex-direction:column;font-family:Inter,"Segoe UI",sans-serif}.voice-stage-top{display:flex;align-items:center;justify-content:space-between;padding:30px 42px}.voice-wordmark{font-weight:600;letter-spacing:5px;font-size:19px;color:#d8f6fc}.voice-wordmark small{display:block;font-size:7px;font-weight:400;letter-spacing:2px;margin-top:8px;color:#5f788e}.voice-top-actions{display:flex;gap:10px}.voice-end{border:1px solid #263442;border-radius:30px;background:#101a25;color:#afc1d1;font-size:12px;padding:11px 17px}.voice-core{flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:30px 20px}.voice-kicker{font-size:9px;letter-spacing:4px;color:#516c81}.reactor{position:relative;width:min(700px,90vw);height:260px;margin:18px auto 0;display:flex;align-items:center;justify-content:center}.reactor-ring{display:none}.reactor-halo{position:absolute;inset:22% 8%;background:linear-gradient(100deg,#00d5ff60,#6159f960,#ff3a9b60);filter:blur(55px);opacity:.32;border-radius:50%;transition:opacity 1s}.voice-wave{display:flex;gap:9px;align-items:center;justify-content:center;width:100%;height:190px;position:relative}.voice-wave i{display:block;width:5px;height:18px;border-radius:10px;background:#5ba5d1;box-shadow:0 0 14px currentColor;transform:scaleY(.7);transition:height .5s}.voice-wave i:nth-child(3n){background:#b87afb;color:#9a5aff}.voice-wave i:nth-child(3n+1){background:#45dcfa;color:#00c8fa}.voice-wave i:nth-child(3n+2){background:#ed67cb;color:#f347c0}.voice-wave i:nth-child(2n){height:30px}.voice-wave i:nth-child(5n){height:50px}.voice-wave i:nth-child(7n){height:70px}.voice-stage[data-state="listening"] .voice-wave i,.voice-stage[data-state="speaking"] .voice-wave i{animation:voicePulse 1.1s ease-in-out infinite alternate;height:70px}.voice-stage[data-state="listening"] .voice-wave i:nth-child(3n),.voice-stage[data-state="speaking"] .voice-wave i:nth-child(3n){animation-delay:-.6s;height:115px}.voice-stage[data-state="listening"] .voice-wave i:nth-child(4n),.voice-stage[data-state="speaking"] .voice-wave i:nth-child(4n){animation-delay:-.3s;height:160px}.voice-stage[data-state="listening"] .voice-wave i:nth-child(5n),.voice-stage[data-state="speaking"] .voice-wave i:nth-child(5n){animation-delay:-.9s;height:90px}.voice-stage[data-state="speaking"] .voice-wave i{animation-duration:.65s}.voice-stage[data-state="thinking"] .voice-wave i{animation:voiceThink 1.6s ease-in-out infinite alternate}.voice-stage[data-state="thinking"] .voice-wave i:nth-child(2n){animation-delay:-.8s}.voice-stage[data-state="listening"] .reactor-halo,.voice-stage[data-state="speaking"] .reactor-halo{opacity:.75}.voice-core h2{font-size:29px;font-weight:400;letter-spacing:-.7px;margin:0 0 8px;color:#dcecf4}.voice-core>p:not(.voice-kicker){font-size:12px;line-height:1.8;color:#71899e;max-width:500px;min-height:24px}.voice-start{margin-top:22px;padding:15px 25px;border-radius:30px;border:1px solid #568fa1;background:linear-gradient(110deg,#183c4b,#252140);color:#d6f8ff;font-size:13px;box-shadow:0 0 25px #298ab220}.stop-session{margin-top:22px;border-color:#75465e;color:#e7b2c5}.voice-transcript{max-width:630px;width:100%;margin-top:32px;min-height:65px;color:#8fa4b7;font-size:12px;line-height:1.8}.voice-transcript>span{font-size:8px;color:#40596d;letter-spacing:2px}.voice-transcript p{max-height:100px;overflow:auto;white-space:pre-wrap}.voice-stage[data-state="idle"] .voice-transcript{visibility:hidden}.voice-stage-bottom{display:flex;justify-content:space-between;gap:20px;padding:24px 42px;font-size:8px;letter-spacing:1px;color:#476075}.voice-stage-bottom b{display:inline-block;width:5px;height:5px;border-radius:50%;background:#3c6982;margin-right:7px}.voice-stage[data-state="listening"] .voice-stage-bottom b{background:#55c8d9;box-shadow:0 0 8px #55c8d9}.voice-launch{border:1px solid #b4caba}.voice-stage~dialog{z-index:11}
@keyframes voicePulse{from{transform:scaleY(.2);opacity:.5}to{transform:scaleY(1);opacity:1}}@keyframes voiceThink{from{opacity:.25;transform:scaleY(.5)}to{opacity:.85;transform:scaleY(1.5)}}
@media(max-width:650px){.voice-stage-top{padding:22px 18px}.voice-wordmark{font-size:16px;letter-spacing:3px}.voice-wordmark small{font-size:6px}.voice-end{font-size:10px;padding:9px 11px}.voice-top-actions{gap:6px}.voice-core{padding:20px 16px}.voice-kicker{font-size:8px;letter-spacing:2.5px}.reactor{height:220px;width:100%}.voice-wave{gap:7px}.voice-wave i{width:4px}.voice-core h2{font-size:25px}.voice-stage-bottom{padding:20px 18px;font-size:7px;line-height:1.8;flex-direction:column;text-align:center;gap:4px}.voice-transcript{margin-top:24px}.composer-toolbar{flex-wrap:wrap}.send-group{margin-left:auto}.voice-controls{gap:6px}.workspace{padding-top:10px}.sidebar{display:none}}
@media(prefers-reduced-motion:reduce){.voice-wave i{animation:none!important}.voice-stage[data-state="listening"] .voice-wave i,.voice-stage[data-state="speaking"] .voice-wave i{transform:scaleY(.5)}}

.wake-start{background:transparent;border:0;color:#6e8a9f;font-size:11px;padding:14px;cursor:pointer}.wake-option{display:flex;gap:10px;align-items:center;font-size:12px}.wake-option input{width:auto}.voice-stage[data-state="waiting"] .voice-wave i{opacity:.55;animation:voiceThink 3s ease-in-out infinite alternate}
/* Circular RGB voice visual: animation reflects conversation state. */
.reactor{--orbit-speed:14s;--breath-speed:4s;--glow:.55;width:min(440px,78vw);height:auto;aspect-ratio:1;margin:20px auto 32px;flex-shrink:0;isolation:isolate}
.reactor-halo{inset:6%;background:conic-gradient(from 30deg,#00dfff,#505bff,#eb38b8,#ff9457,#00dfff);filter:blur(42px);opacity:var(--glow);animation:atlasHalo var(--breath-speed) ease-in-out infinite alternate}
.reactor-ring{display:block;position:absolute;border-radius:50%;pointer-events:none}
.ring-one{inset:8%;background:conic-gradient(from 0deg,#35efff,#547dff 24%,#ad53ff 45%,#ff59b0 64%,#ffad76 78%,#35efff);mask:radial-gradient(circle,transparent 64%,#000 66%,#000 69%,transparent 71%);filter:drop-shadow(0 0 9px #56caff);animation:atlasOrbit var(--orbit-speed) linear infinite}
.ring-two{inset:2%;border:1px solid #83dfff38;box-shadow:0 0 24px #408bff18,inset 0 0 22px #518cff12;animation:atlasHalo var(--breath-speed) ease-in-out infinite alternate-reverse}
.ring-two:before,.ring-two:after{content:'';position:absolute;inset:5%;border-radius:50%;border:1px dashed #9faeff42;animation:atlasOrbit 45s linear infinite reverse}
.ring-two:after{inset:16%;border:1px solid #5ce9ff25;animation:none}
.voice-wave{position:absolute;inset:15%;width:auto;height:auto;border-radius:50%;background:radial-gradient(circle at 40% 30%,#1a496e55,transparent 55%),radial-gradient(circle at 65% 75%,#6c298b35,transparent 65%),#080f1ae6;border:1px solid #7acbff45;box-shadow:inset 0 0 45px #338bdd22,0 0 22px #62c5ff32;animation:atlasCore var(--breath-speed) ease-in-out infinite alternate}
.voice-wave i{display:none!important}
.voice-wave:before,.voice-wave:after{content:'';position:absolute;inset:-8%;border-radius:46% 54% 49% 51% / 52% 45% 55% 48%;border:2px solid #6beaffaa;border-right-color:#d86bffc9;border-bottom-color:#ff71c4b0;box-shadow:0 0 13px #68caff55,inset 0 0 12px #ad57ff35;animation:atlasOrbit calc(var(--orbit-speed)*.7) linear infinite}
.voice-wave:after{inset:-4%;border-radius:53% 47% 54% 46% / 45% 54% 46% 55%;border-color:#d57dff88 #ff81b988 #75f5ffbb #678bff88;animation-direction:reverse;animation-duration:var(--orbit-speed)}
.voice-stage[data-state="waiting"] .reactor{--orbit-speed:10s;--breath-speed:3s;--glow:.6}
.voice-stage[data-state="listening"] .reactor{--orbit-speed:6s;--breath-speed:1.5s;--glow:.8}
.voice-stage[data-state="listening"] .voice-wave{box-shadow:inset 0 0 55px #16d9eb35,0 0 35px #42eaff55}
.voice-stage[data-state="thinking"] .reactor{--orbit-speed:3s;--breath-speed:2s;--glow:.65}
.voice-stage[data-state="thinking"] .ring-one{filter:hue-rotate(35deg)}
.voice-stage[data-state="speaking"] .reactor{--orbit-speed:4s;--breath-speed:.65s;--glow:.9}
.voice-stage[data-state="speaking"] .voice-wave{box-shadow:inset 0 0 60px #9a4aff40,0 0 40px #e057ff55}
.voice-stage[data-state="idle"] .voice-transcript{display:none}
@keyframes atlasOrbit{to{transform:rotate(360deg)}}
@keyframes atlasHalo{from{transform:scale(.94);opacity:calc(var(--glow)*.65)}to{transform:scale(1.06);opacity:var(--glow)}}
@keyframes atlasCore{from{transform:scale(.97)}to{transform:scale(1.035)}}
@media(max-width:650px){.reactor{width:min(350px,80vw);height:auto;margin:16px auto 28px}.voice-core{padding-top:8px}.voice-core h2{font-size:24px}}
@media(max-height:760px) and (min-width:651px){.reactor{width:min(340px,55vh);margin:10px auto 22px}.voice-stage-top{padding-top:20px;padding-bottom:12px}.voice-core{padding-top:10px;padding-bottom:10px}}
@media(prefers-reduced-motion:reduce){.reactor *,.reactor *:before,.reactor *:after{animation:none!important;transition:none!important}.reactor-halo{opacity:.4}.voice-stage[data-state="speaking"] .ring-one{filter:hue-rotate(35deg)}}
#memoryDialog{width:min(560px,calc(100% - 24px));max-height:85dvh;overflow:auto}#memoryItems{display:grid;gap:12px;margin:18px 0}.memory-item{border:1px solid #cddbcc;border-radius:10px;padding:12px}.memory-item p,#memoryDraftText{white-space:pre-wrap;overflow-wrap:anywhere}#memoryDraftText{margin:20px 0;padding:16px;background:#eaf0e5;border-radius:10px;color:#203a30}#memoryStatus,#memorySaveStatus{color:#775127}#memoryDialog .dialog-actions{position:sticky;bottom:-20px;background:#fafcf7;padding:12px 0}@media(max-width:650px){.voice-stage-top{flex-wrap:wrap;gap:16px}.voice-top-actions{flex-wrap:wrap;justify-content:flex-end}.header-actions{flex-wrap:wrap}}

#tasksDialog{width:min(640px,92vw);max-height:85vh;overflow:auto}#taskItems{display:grid;gap:12px;margin:16px 0}#taskForm{display:grid;gap:10px}#taskInput{width:100%;box-sizing:border-box}#tasksDialog small{display:block;margin-top:14px;color:var(--muted)}
