:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#493b32;background:#262420;font-synthesis:none;--cream:#faf4eb;--ink:#493b32;--muted:#7c6b5c;--accent:#d7b38c}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #b8793e;outline-offset:3px}h1,h2,p{margin:0}h1,h2{font-family:Georgia,"Times New Roman",serif;font-weight:400;letter-spacing:-.7px}h1{font-size:36px;line-height:1.1}h2{font-size:28px;line-height:1.15}p{line-height:1.6}button{color:inherit}#app{width:100%;max-width:480px;margin:0 auto;min-height:100svh;height:100dvh;overflow:hidden;position:relative;background:var(--cream);isolation:isolate}.screen{position:absolute;inset:0;display:flex;flex-direction:column}.scene{position:absolute;inset:0;z-index:-2;overflow:hidden;background:#4c3d31}.scene img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:center;transition:opacity .65s ease;animation:ambient 16s ease-in-out infinite alternate}.scene .hidden-art{opacity:0}.scene:after{content:"";position:absolute;inset:0;background:linear-gradient(#241a1650 0%,transparent 23%,transparent 64%,#191416a6 100%)}@keyframes ambient{from{transform:scale(1)}to{transform:scale(1.025)}}.reveal .scene img{animation:arrival 1.6s ease-out forwards}@keyframes arrival{from{transform:scale(1.1);filter:blur(8px);opacity:.2}to{transform:scale(1);filter:none;opacity:1}}.top{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:calc(env(safe-area-inset-top) + 20px) 22px 16px;min-height:88px;z-index:2}.top.light{color:#fff4e5}.top h2{font-family:inherit;font-size:19px;letter-spacing:0;font-weight:500}.top .name{font:28px Georgia,serif}.top p{font-size:12px;opacity:.87;margin-top:3px}.icon{width:44px;height:44px;border:1px solid #ffffff30;background:#ffffff12;border-radius:50%;display:grid;place-items:center;flex-shrink:0;color:inherit;backdrop-filter:blur(14px)}.top:not(.light) .icon{background:#ede2d5;border-color:transparent}.icon svg,.btn svg,.home-nav svg{height:22px;width:22px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.spacer{width:44px}.tag{font-size:10px;letter-spacing:1.8px;text-transform:uppercase;color:#8d7159}.pilot{font-size:10px;letter-spacing:1px;color:#fae8d1;align-self:center;border:1px solid #e9d6bf55;border-radius:20px;padding:6px 12px;background:#33261e50;backdrop-filter:blur(8px)}.bottom{margin-top:auto;padding:24px 22px calc(26px + env(safe-area-inset-bottom))}.greeting{color:#fff3e2;text-shadow:0 2px 15px #0004;margin-bottom:22px;max-width:315px}.greeting h1{font-size:30px;margin-bottom:10px}.greeting p{font-size:14px}.invitation{width:100%;background:#e9caa632;color:#fff4e6;border:1px solid #e6ccb15c;border-radius:19px;padding:15px 17px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;min-height:54px;backdrop-filter:blur(15px);margin-bottom:13px}.invitation svg{height:20px;width:20px;fill:none;stroke:currentColor;stroke-width:1.5}.home-nav{display:flex;gap:8px}.home-nav button{min-height:65px;border:1px solid #d4b89870;background:#332b29cc;backdrop-filter:blur(18px);border-radius:22px;color:#fff4e5;display:flex;align-items:center;justify-content:center;gap:9px}.home-nav .primary{flex:1;font-size:16px}.home-nav .small{width:65px;flex-direction:column;font-size:10px;gap:6px}.sheet{margin-top:auto;max-height:80%;overflow:auto;background:#fbf5edf7;border-radius:30px 30px 0 0;padding:27px 24px calc(28px + env(safe-area-inset-bottom));backdrop-filter:blur(18px)}.sheet h1{margin:12px 0 15px}.sheet p{font-size:14px;color:var(--muted);margin:13px 0 20px}.sheet .fine,.fine{font-size:11px;line-height:1.6;color:#806d5c}.btn{width:100%;min-height:50px;background:#48382d;color:#fff4e6;border:1px solid transparent;border-radius:16px;padding:13px 16px;display:flex;align-items:center;justify-content:center;gap:10px;font-size:14px;text-decoration:none}.btn+.btn{margin-top:9px}.btn.secondary{background:#ecdfce;color:#614a37}.btn.tertiary{background:transparent;color:#7f6754}.btn.danger{background:#925039;color:white}.content{padding:15px 24px calc(28px + env(safe-area-inset-bottom));overflow:auto;flex:1}.content>p{font-size:14px;color:var(--muted);margin:14px 0 23px}.progress{display:flex;gap:6px;margin:4px 0 29px}.progress i{height:3px;flex:1;background:#e3d6c7;border-radius:4px}.progress i.done{background:#b38b60}.form label{display:block;font-size:12px;color:#806c5b;margin:22px 0 9px}.field{display:block;width:100%;min-height:52px;border:1px solid #d6c4af;border-radius:14px;background:#fffaf3;padding:14px;color:#4c3a2c;font-size:16px;resize:vertical}.field:focus{border-color:#a27547}.form .btn{margin-top:20px}.check{display:flex!important;align-items:flex-start;gap:10px;line-height:1.5!important;font-size:12px!important}.check input{margin:3px 0;width:19px;height:19px;accent-color:#876444;flex-shrink:0}.option{display:block;width:100%;text-align:left;min-height:54px;padding:15px 17px;margin:10px 0;border:1px solid #dac9b6;background:#fffbf5;border-radius:15px;font-size:14px}.option.selected{border:2px solid #a7805a;background:#efe0cc;padding:14px 16px}.onboard-art{height:160px;border-radius:22px;overflow:hidden;margin:20px 0}.onboard-art img{width:100%;height:500px;object-fit:cover;object-position:center;transform:translateY(-145px)}.chat-panel{flex:1;min-height:0;background:#fbf5edf7;border-radius:28px 28px 0 0;display:flex;flex-direction:column;margin-top:20vh;backdrop-filter:blur(20px)}.chat-top{display:flex;justify-content:space-between;align-items:center;padding:14px 18px 8px;font-size:10px;color:#90755b;letter-spacing:.5px}.link{border:0;background:transparent;color:#8e6240;min-height:40px;padding:6px 3px;font-size:12px}.messages{flex:1;overflow:auto;padding:6px 18px 14px;display:flex;flex-direction:column;gap:13px;scroll-behavior:smooth}.message{max-width:92%;align-self:flex-start}.message.me{align-self:flex-end}.bubble{background:#ecdfcf;padding:13px 15px;border-radius:18px 18px 18px 4px;font-size:14px;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}.me .bubble{background:#d4b899;color:#443427;border-radius:18px 18px 4px 18px}.message .link{font-size:11px;color:#846241}.compose{display:flex;gap:8px;align-items:flex-end;padding:12px 16px calc(18px + env(safe-area-inset-bottom));border-top:1px solid #e0d3c5}.compose textarea{flex:1;min-width:0;max-height:110px;resize:none;min-height:48px;font-size:16px;border-radius:15px;line-height:1.3}.compose .icon{border:0;background:#49382c;color:white;border-radius:15px;width:48px;height:48px}.error{font-size:13px;line-height:1.5;background:#f5dfd5;color:#82402d;padding:12px 15px;border-radius:13px;margin:10px 0;overflow-wrap:anywhere}.inline-error{margin:5px 18px}.dots{padding:15px;color:#ab805a;letter-spacing:7px;animation:pulse 1s infinite alternate}@keyframes pulse{to{opacity:.4}}.fact{padding:19px 0;border-bottom:1px solid #ddcebd}.fact p{font-size:15px;line-height:1.6;margin:8px 0;overflow-wrap:anywhere}.fact small{font-size:10px;letter-spacing:1px;color:#a1815f}.empty{text-align:center;border:1px dashed #d6bfa3;border-radius:20px;padding:29px 20px;margin:20px 0}.empty .spark{font:40px Georgia;color:#ba966e}.empty p{font-size:14px;color:#8f7862;margin-top:10px}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:19px 0;border-bottom:1px solid #e1d2c1;font-size:14px}.settings-row small{font-size:12px;color:#8b7560;display:block;margin-top:6px;line-height:1.6}.switch{width:45px;height:28px;accent-color:#937049;flex-shrink:0}.settings-actions{margin-top:30px}.choice-row{display:flex;gap:10px;margin:22px 0}.choice{flex:1;border:1px solid #d9c2a5;border-radius:17px;background:#fff9ef;padding:16px 8px;display:grid;justify-items:center;gap:12px;font-size:12px}.choice.selected{border:2px solid #967148;padding:15px 7px;background:#efe2cf}.swatch{width:26px;height:26px;border-radius:50%;background:#eabb72;box-shadow:0 0 0 5px #f7e7cf}.moon .swatch{background:#aad1e5;box-shadow:0 0 0 5px #e3edf5}.off .swatch{background:#968271;box-shadow:0 0 0 5px #e9e0d5}.voice-panel{margin-top:auto;color:#fff4e8;text-align:center;padding:25px 26px calc(34px + env(safe-area-inset-bottom));background:linear-gradient(transparent,#211b20cf)}.voice-panel h1{font-size:30px;margin:22px 0 14px}.voice-panel p{font-size:14px;margin:0 0 22px}.voice-panel .btn{background:#30282bd9;border:1px solid #e6cdb477;backdrop-filter:blur(16px)}.voice-panel .btn.secondary{background:#f4e3ceeb;color:#503b2d}.wave{height:42px;display:flex;gap:6px;justify-content:center;align-items:center}.wave i{width:6px;height:9px;background:#eac49b;border-radius:8px}.wave.active i{animation:wave .7s infinite alternate}.wave i:nth-child(2){animation-delay:.2s}.wave i:nth-child(3){animation-delay:.4s}.wave i:nth-child(4){animation-delay:.1s}.wave i:nth-child(5){animation-delay:.3s}@keyframes wave{to{height:38px}}.voice-caption{color:#fff1dc;text-align:center;font-size:12px;padding:12px 25px}.voice-transcript{max-height:140px;overflow:auto;padding:13px 15px;background:#211b2070;border-radius:16px;font-size:14px;line-height:1.6;margin-bottom:18px;text-align:left;white-space:pre-wrap}.loading{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:30px;text-align:center;gap:18px}.loading .spark{font:55px Georgia;color:#ba966e}.loading p{font-size:14px;color:#8d7967}.loading .btn{max-width:260px}dialog{width:calc(100% - 36px);max-width:395px;background:#fff8ef;color:var(--ink);border:0;border-radius:26px;padding:27px;box-shadow:0 20px 70px #0004}dialog::backdrop{background:#251b206e;backdrop-filter:blur(4px)}dialog p{font-size:14px;color:#826b57;margin:15px 0 20px}dialog textarea{margin:16px 0}#toast{position:fixed;left:50%;bottom:calc(25px + env(safe-area-inset-bottom));transform:translateX(-50%);max-width:calc(100% - 40px);width:max-content;z-index:20;padding:13px 19px;border-radius:15px;color:#fff4e4;background:#49362eef;box-shadow:0 4px 25px #0002;font-size:13px;line-height:1.5;pointer-events:none;opacity:0;transition:opacity .2s}#toast.show{opacity:1}.offline{position:absolute;top:0;left:0;right:0;z-index:10;background:#6c422c;color:#fff4e7;font-size:12px;text-align:center;padding:5px}.reduced *, .reduced *:before,.reduced *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(min-width:600px){body{display:grid;place-items:center;min-height:100vh;background:radial-gradient(ellipse at top,#4b4237,#22231f 75%)}#app{height:min(900px,96dvh);min-height:0;border-radius:30px;box-shadow:0 35px 100px #0006;border:1px solid #c2aa8850;margin:2dvh auto}.top{padding-top:25px}}@media(max-height:650px){.chat-panel{margin-top:2vh}.onboard-art{height:80px}.sheet{max-height:90%}.greeting h1{font-size:25px}.bottom{padding-top:10px}.voice-panel h1{margin:10px 0;font-size:25px}.voice-panel p{margin-bottom:12px}}@media(min-width:600px) and (max-height:650px){#app{height:96dvh}}
/* Layered illustration: no 3D rig or lip-sync claims. */
.scene-plane{position:absolute;width:var(--scene-width,100%);height:var(--scene-height,100%);left:50%;top:50%;transform:translate(-50%,-50%)}.layered .backdrop{animation:none;object-fit:fill}.layered .character{position:absolute;left:24%;top:32%;width:54%;height:41%;transform-origin:50% 94%;animation:character-breathe 5.8s ease-in-out infinite}.layered .character img{position:relative;width:100%;height:100%;object-fit:contain;animation:none}.character-shadow{position:absolute;left:33%;top:69%;width:36%;height:2.5%;border-radius:50%;background:#30221752;filter:blur(9px)}.layered.off .character{filter:brightness(.89) saturate(.8)}.layered.moon .character{filter:brightness(.88) saturate(.66)}@keyframes character-breathe{0%,100%{transform:scale(1) rotate(-.35deg)}50%{transform:scale(1.008,1.014) rotate(.35deg)}}.layered.recording .character{animation:character-listen 3s ease-in-out infinite}.layered.speaking .character{animation:character-breathe 2.4s ease-in-out infinite}@keyframes character-listen{0%,100%{transform:rotate(-1deg)}50%{transform:rotate(1deg)}}.reveal .layered .backdrop{animation:none}.reveal .character{animation:character-arrive 1.5s ease-out both}@keyframes character-arrive{from{opacity:0;transform:translateY(20px) scale(.94)}to{opacity:1;transform:translateY(0) scale(1)}}
.layered .character .blink{position:absolute;inset:0;opacity:0;animation:character-blink 6.2s infinite;clip-path:inset(22% 13% 51% 14%)}@keyframes character-blink{0%,94%,98%,100%{opacity:0}95%,97%{opacity:1}}
h1,.top p{overflow-wrap:anywhere}.top>div{min-width:0}dialog{max-height:calc(100dvh - 36px);overflow:auto}
