:root{color-scheme:dark;--bg:#2b1b13;--bg2:#3a2419;--panel:#4c3021;--panel2:#62402a;--ink:#fff6ec;--muted:#d2b99e;--soft:#f0dfca;--line:#7b573d;--green:#e0a15b;--green2:#f3d4ae;--gold:#f0bd72;--coral:#e99b7e;--shadow:0 18px 55px #0005;--radius:22px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 80% 0%,#684936 0,transparent 34%),linear-gradient(160deg,#2d1b12,#422a1e 58%,#1b110d);color:var(--ink);font-family:'DM Sans',system-ui,sans-serif;min-height:100vh}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}.app-shell{max-width:760px;min-height:100dvh;margin:auto;padding:0 18px calc(94px + env(safe-area-inset-bottom));position:relative;overflow:hidden}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:20;background:#2d1b12eF;border-bottom:1px solid #ffffff13;backdrop-filter:blur(18px);margin:0 -18px;padding:0 18px}.brand{display:flex;align-items:center;gap:9px;color:var(--ink);font:800 20px Manrope;text-decoration:none;white-space:nowrap}.brand b{color:var(--green);font-size:15px}.brand-mark{width:32px;height:32px;border-radius:12px;background:linear-gradient(145deg,#ffd6a2,#c47c42);color:#482a1d;display:grid;place-items:center;font:800 21px Manrope;box-shadow:0 6px 16px #d98b4a33}.icon-btn{border:1px solid #ffffff16;background:#ffffff08;color:var(--ink);border-radius:13px;width:40px;height:40px;font-size:19px}.top-actions{display:flex;align-items:center;gap:9px}.connection{font-size:10px;color:var(--green);white-space:nowrap;display:flex;align-items:center;gap:6px}.connection i{width:7px;height:7px;border-radius:50%;background:#e8a95d;box-shadow:0 0 10px #e8a95d88}.connection.offline i{background:#e5b878;box-shadow:none}.page{display:none;padding:20px 0 26px;animation:page-in .22s ease}.page.active{display:block}@keyframes page-in{from{opacity:.25;transform:translateY(5px)}to{opacity:1;transform:none}}.home-grid{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap}.eyebrow{font-size:9px;font-weight:800;letter-spacing:.18em;color:var(--green);margin:0 0 7px}.greeting-block h1{font:800 clamp(24px,6vw,34px) Manrope;margin:0;letter-spacing:-.04em}.subhead,.page-sub{color:var(--muted);font-size:13px;margin:5px 0 0;line-height:1.55}.date-weather-row{display:flex;gap:8px;width:100%;margin:17px 0 4px}.date-card,.weather-card{flex:1;min-width:0;background:linear-gradient(135deg,#68472f,#3e2a20);border:1px solid #edb87828;border-radius:15px;padding:10px 12px;box-shadow:inset 0 1px #ffffff0a}.card-kicker{display:block;color:#e4b887;font-size:8px;letter-spacing:.15em;font-weight:800;margin-bottom:5px}.date-card strong,.weather-card strong{display:block;font-size:12px}.date-card small,.weather-card small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.weather-card{display:flex;align-items:center;gap:8px}.weather-card>div{min-width:0;flex:1}.weather-icon{font-size:23px}.tiny-btn{border:0;border-radius:10px;background:#ffffff12;color:var(--green);padding:5px 8px}.mascot-room{margin:18px 0 25px;position:relative;border-radius:27px;background:radial-gradient(ellipse at 50% 45%,#856047 0%,#69452f 43%,#3c271d 74%);border:1px solid #b6dfbd24;min-height:340px;overflow:hidden;box-shadow:var(--shadow);padding:15px 12px 12px}.mascot-room:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#ffffff08,transparent 40%,#080f0c55);pointer-events:none}.room-glow{position:absolute;width:270px;height:210px;background:#efc58a18;filter:blur(45px);left:50%;top:38px;transform:translateX(-50%)}.speech-card{position:relative;z-index:4;display:flex;align-items:center;gap:8px;width:max-content;max-width:90%;margin:0 auto 0;background:#f6f1e8;color:#4a2d1c;padding:10px 14px;border-radius:17px 17px 17px 5px;box-shadow:0 9px 24px #0003;font-size:12px;font-weight:600;line-height:1.4}.speech-dot{width:7px;height:7px;flex:0 0 7px;background:#d58a48;border-radius:50%}.mascot-stage{height:250px;max-width:440px;margin:0 auto;position:relative;perspective:900px;display:flex;align-items:flex-end;justify-content:center}#mascot3d{position:absolute;inset:0;width:100%;height:100%;z-index:3;display:block;touch-action:pan-y}.mascot-backdrop{position:absolute;bottom:5px;width:76%;height:70%;border-radius:50% 50% 10% 10%;background:radial-gradient(ellipse at center,#e6ba8035,transparent 72%);filter:blur(8px)}.mascot{display:none;position:relative;z-index:3;height:250px;width:auto;max-width:86%;object-fit:contain;object-position:bottom center;filter:drop-shadow(0 16px 17px #0005);transform-origin:50% 95%;animation:mascot-idle 3.8s ease-in-out infinite;user-select:none;-webkit-user-drag:none}.mascot-shadow{position:absolute;z-index:1;bottom:4px;width:145px;height:18px;border-radius:50%;background:#09130e88;filter:blur(9px);animation:shadow-pulse 3.8s ease-in-out infinite}.sofa{position:absolute;z-index:2;bottom:8px;width:240px;height:75px;opacity:0;transform:translateY(25px) scale(.9);transition:.3s}.sofa:before{content:"";position:absolute;left:12px;right:12px;bottom:0;height:52px;border-radius:20px;background:linear-gradient(180deg,#b47d50,#71472f);box-shadow:inset 0 8px #d49a65}.sofa-cushion{position:absolute;left:34px;right:34px;bottom:34px;height:25px;border-radius:15px;background:#c28e5d;z-index:1}.sofa-arm{position:absolute;left:0;bottom:0;width:36px;height:65px;border-radius:17px;background:#91603d;box-shadow:204px 0 #91603d}.mascot-room.mode-sit .sofa{opacity:1;transform:none}.mascot-room.mode-sit .mascot{height:205px;transform:translateY(13px) scale(.94);filter:drop-shadow(0 10px 13px #0006)}.mascot-room.mode-work .mascot{height:225px;transform:translateY(10px) scale(.91)}.mascot-prop{position:absolute;z-index:5;opacity:0;pointer-events:none;transition:.25s}.laptop-prop{bottom:0;left:50%;transform:translateX(-50%) translateY(20px);width:168px;height:112px}.laptop-screen{position:absolute;left:40px;top:0;width:88px;height:61px;border:5px solid #42584f;border-bottom-width:8px;border-radius:9px;background:linear-gradient(140deg,#c3ecd4,#6eac8d);box-shadow:0 5px 14px #0004}.laptop-screen span{position:absolute;left:35px;top:13px;color:#a46132;font-size:20px}.laptop-base{position:absolute;left:22px;top:60px;width:125px;height:10px;background:linear-gradient(#9ab9a5,#50695b);border-radius:2px 2px 8px 8px;transform:perspective(40px) rotateX(8deg)}.desk-top{position:absolute;bottom:4px;left:0;width:168px;height:9px;border-radius:5px;background:#986c49}.desk-leg{position:absolute;bottom:-17px;left:17px;width:6px;height:22px;background:#76533b;box-shadow:128px 0 #76533b}.mascot-room.mode-work .laptop-prop{opacity:1;transform:translateX(-50%) translateY(0)}.weather-prop{position:absolute;z-index:7;left:50%;top:82px;transform:translateX(-50%);font-size:27px;opacity:0;transition:.2s;filter:drop-shadow(0 3px 4px #0008)}.weather-prop.warm,.weather-prop.cold{opacity:1}.weather-prop.cold{top:156px;font-size:31px}.sleep-z{position:absolute;z-index:6;right:19%;top:56px;font:800 21px Manrope;color:#e8d4ba;opacity:0;animation:zzz-float 1.8s ease-in-out infinite}.mascot-room.mode-sleep .sleep-z{opacity:1}.mascot-room.mode-sleep .mascot{animation:mascot-sleep 3.8s ease-in-out infinite;filter:drop-shadow(0 10px 15px #0005)}.mascot-room.mode-wave .mascot{animation:mascot-wave 1.4s ease-in-out 1}.mascot-room.mode-walk .mascot{animation:mascot-walk 1.2s ease-in-out 2}.mascot-room.mode-run .mascot{animation:mascot-run .72s ease-in-out 3}.mascot-room.mode-dance .mascot{animation:mascot-dance .65s ease-in-out 5}.sparkle{position:absolute;color:#e5c28c;font-size:22px;z-index:2;opacity:.65}.sparkle-one{top:60px;left:15%}.sparkle-two{right:13%;bottom:80px;font-size:30px}@keyframes mascot-idle{0%,100%{transform:translateY(0) rotateY(-2deg)}50%{transform:translateY(-7px) rotateY(2deg)}}@keyframes shadow-pulse{0%,100%{transform:scaleX(1);opacity:.8}50%{transform:scaleX(.82);opacity:.5}}@keyframes mascot-sleep{0%,100%{transform:translateY(3px) rotateZ(1deg) scale(.97)}50%{transform:translateY(7px) rotateZ(-1deg) scale(.97)}}@keyframes mascot-wave{0%,100%{transform:rotateZ(0) translateY(0)}25%{transform:rotateZ(-3deg) translateY(-7px)}50%{transform:rotateZ(3deg) translateY(-3px)}75%{transform:rotateZ(-2deg) translateY(-6px)}}@keyframes mascot-walk{0%,100%{transform:translateX(0) translateY(0) rotateZ(0)}25%{transform:translateX(-26px) translateY(-6px) rotateZ(-3deg)}50%{transform:translateX(5px) translateY(0) rotateZ(2deg)}75%{transform:translateX(27px) translateY(-5px) rotateZ(-2deg)}}@keyframes mascot-run{0%,100%{transform:translateX(-40px) translateY(0) rotateZ(-4deg)}50%{transform:translateX(40px) translateY(-15px) rotateZ(5deg)}}@keyframes mascot-dance{0%,100%{transform:rotateZ(0) translateY(0)}25%{transform:rotateZ(-8deg) translateY(-10px)}50%{transform:rotateZ(8deg) translateY(-4px)}75%{transform:rotateZ(-6deg) translateY(-8px)}}@keyframes zzz-float{0%{transform:translateY(0) scale(.8);opacity:0}25%{opacity:1}100%{transform:translateY(-28px) scale(1.1);opacity:0}}.mascot-caption{display:flex;align-items:center;justify-content:center;gap:7px;color:#d5b998;font-size:10px;margin:4px 0 11px}.mood-dot{width:6px;height:6px;border-radius:50%;background:var(--green);box-shadow:0 0 9px #edb878}.caption-sep{color:#b79879}.action-row{display:flex;gap:7px;overflow-x:auto;padding:2px 0 3px;scrollbar-width:none}.action-row::-webkit-scrollbar{display:none}.action-pill{flex:0 0 auto;border:1px solid #ffffff23;background:#ffffff0d;color:#fff2e1;border-radius:999px;padding:8px 11px;font-size:10px;font-weight:700}.action-pill span{margin-right:3px}.action-pill.selected{background:#f4dfc8;color:#4a2d1c;border-color:#f4dfc8}.section-heading{display:flex;align-items:end;justify-content:space-between;margin:20px 0 11px}.section-heading h2,.page-heading h1{font:800 22px Manrope;margin:0;letter-spacing:-.035em}.text-btn{border:0;background:none;color:var(--green);font-size:11px;font-weight:700;padding:5px}.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.quick-card{position:relative;min-height:106px;padding:13px;border-radius:18px;text-align:left;border:1px solid #ffffff15;background:linear-gradient(145deg,#67442d,#3e281c);color:var(--ink);box-shadow:0 8px 20px #0002;display:flex;flex-direction:column;gap:5px}.quick-card b{font:700 13px Manrope}.quick-card small{font-size:10px;color:var(--muted);max-width:85%;line-height:1.35}.quick-icon{width:29px;height:29px;border-radius:10px;display:grid;place-items:center;background:#edb8781c;color:var(--green);font-size:18px}.card-arrow{position:absolute;right:12px;top:12px;color:#d7a36b}.privacy-strip{margin-top:13px;padding:12px;border:1px solid #edb87821;background:#4b2e1f;border-radius:15px;display:flex;align-items:center;gap:10px}.privacy-strip b{display:block;font-size:11px}.privacy-strip small{display:block;color:var(--muted);font-size:9px;line-height:1.45;margin-top:3px}.privacy-strip>div{flex:1}.privacy-lock{font-size:20px;color:var(--green)}.privacy-check{color:var(--green);font-size:17px}.bottom-nav{position:fixed;z-index:30;left:50%;bottom:0;transform:translateX(-50%);width:min(760px,100%);height:76px;padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:#2e1c13f0;backdrop-filter:blur(18px);border-top:1px solid #ffffff17;display:flex;justify-content:space-around}.nav-item{flex:1;border:0;background:transparent;color:#b69a7e;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.nav-item span{font-size:20px;line-height:1.2}.nav-item small{font-size:9px}.nav-item.active{color:var(--green2)}.nav-item.active span{background:#edb8781b;border-radius:11px;padding:4px 13px}.page-heading{display:flex;align-items:center;gap:11px;margin:0 0 18px}.back-btn{border:1px solid #ffffff15;background:#ffffff09;color:var(--ink);border-radius:12px;width:37px;height:37px;font-size:20px;flex:0 0 auto}.page-heading .eyebrow{margin:0 0 2px}.page-heading h1{font-size:24px}.page-sub{font-size:11px}.model-card{border:1px solid #edb8782d;background:linear-gradient(120deg,#5b3a26,#3b261a);border-radius:18px;padding:13px;display:flex;gap:10px;align-items:center}.model-info{flex:1;min-width:0}.model-chip{display:inline-block;font-size:8px;letter-spacing:.1em;font-weight:800;color:#dfc18b;background:#d9b5791c;border:1px solid #d9b57935;border-radius:999px;padding:4px 7px;margin-bottom:6px}.model-chip.ready{color:var(--green);background:#edb8781b;border-color:#edb8784d}.model-info b{display:block;font:700 12px Manrope}.model-info small{display:block;color:var(--muted);font-size:9px;line-height:1.4;margin-top:4px}.primary-btn,.secondary-btn,.danger-btn{border:0;border-radius:12px;padding:10px 13px;font-size:10px;font-weight:800}.primary-btn{background:linear-gradient(135deg,#f3c78f,#d18a4b);color:#51301d;box-shadow:0 6px 14px #d18a4b30}.secondary-btn{background:#ffffff0d;border:1px solid #ffffff1c;color:var(--ink)}.danger-btn{background:#a64d4320;border:1px solid #de8b7a4d;color:#e9a16f}.full-btn{width:100%;margin-top:10px}.model-progress{margin:10px 2px 0}.hidden{display:none!important}.progress-head{display:flex;justify-content:space-between;color:var(--muted);font-size:9px;margin-bottom:5px}.progress-head b{color:var(--green)}.progress-track{height:6px;background:#ffffff18;border-radius:999px;overflow:hidden}.progress-track i{display:block;width:0;height:100%;background:linear-gradient(90deg,#efc58f,#e7c58b);border-radius:999px;transition:width .2s}.chat-tools{display:flex;gap:6px;overflow-x:auto;padding:12px 0 8px;scrollbar-width:none}.suggestion{white-space:nowrap;background:#ffffff0b;border:1px solid #ffffff18;color:#d4b99b;border-radius:999px;padding:7px 10px;font-size:9px}.chat-log{height:calc(100dvh - 330px);min-height:310px;max-height:570px;overflow:auto;padding:6px 0 12px;display:flex;flex-direction:column;gap:10px}.message{display:flex;align-items:flex-start;gap:8px;max-width:95%}.message.user-message{align-self:flex-end;flex-direction:row-reverse}.mini-avatar{width:26px;height:26px;flex:0 0 26px;border-radius:9px;background:linear-gradient(145deg,#f3c78f,#bd7b43);color:#4b2d20;display:grid;place-items:center;font:800 14px Manrope}.user-message .mini-avatar{background:#d1b285;color:#51321f}.message-body{background:#60402d;border:1px solid #ffffff12;border-radius:4px 15px 15px 15px;padding:9px 11px;min-width:0}.user-message .message-body{background:#f1d6b8;color:#4a2d1c;border:0;border-radius:15px 4px 15px 15px}.message-author{font-size:8px;color:#edb878;font-weight:800;display:block;margin-bottom:3px}.user-message .message-author{color:#784a2b}.message-body p{font-size:11px;line-height:1.55;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.message-body small{display:block;color:#b99c82;font-size:8px;margin-top:5px}.chat-composer{position:sticky;bottom:84px;display:flex;align-items:center;gap:6px;padding:7px;background:#f7eddf;color:#4b2d20;border-radius:17px;box-shadow:0 9px 25px #0003}.chat-composer textarea{flex:1;min-width:0;resize:none;border:0;outline:0;background:transparent;color:#4b2d20;padding:7px;font-size:12px;max-height:100px}.chat-composer textarea::placeholder{color:#809187}.send-btn,.voice-btn{border:0;width:35px;height:35px;border-radius:12px;background:#9b5e34;color:white;font-weight:800}.voice-btn{background:#eee0cf;color:#6d4429}.fineprint{font-size:8px;color:#a68b73;line-height:1.45;margin:9px 2px}.privacy-note{display:flex;gap:9px;align-items:center;border:1px solid #a6dabb26;background:#5d3b29;padding:11px;border-radius:15px;margin-bottom:12px}.privacy-note>span{font-size:20px}.privacy-note b{display:block;font-size:10px}.privacy-note small{display:block;color:var(--muted);font-size:9px;line-height:1.45;margin-top:3px}.file-picker-row{display:flex;align-items:center;gap:10px;margin:13px 0}.file-picker-row span{color:var(--muted);font-size:9px}.search-wrap{display:flex;align-items:center;gap:8px;background:#f7eddf;border-radius:14px;padding:0 12px;color:#8b572f}.search-wrap>span{font-size:19px}.search-wrap input{height:42px;min-width:0;flex:1;border:0;outline:0;background:transparent;color:#4b2e1f;font-size:12px}.search-wrap button{border:0;background:transparent;color:#9b8068;font-size:19px}.search-mode{display:flex;align-items:center;gap:6px;color:#ab8d73;font-size:8px;padding:9px 2px}.search-mode b{color:#f0cc9e;background:#edb87816;padding:5px 7px;border-radius:999px}.file-results{display:flex;flex-direction:column;gap:7px}.file-result{display:flex;align-items:center;gap:9px;padding:11px;background:#503322;border:1px solid #ffffff12;border-radius:14px}.file-type{width:34px;height:38px;display:grid;place-items:center;border-radius:8px;background:#e9ded0;color:#6e4833;font:800 8px Manrope;flex:0 0 auto}.file-result-main{flex:1;min-width:0}.file-result-main b{display:block;font-size:10px;overflow-wrap:anywhere}.file-result-main small{display:block;color:var(--muted);font-size:8px;margin-top:3px}.match-tag{font-size:7px;color:#edb878;border:1px solid #edb87835;border-radius:999px;padding:4px 6px;white-space:nowrap}.empty-state{border:1px dashed #ffffff24;border-radius:17px;text-align:center;padding:24px 14px;color:var(--muted)}.empty-state>span{font-size:27px;color:#f1c58f;display:block;margin-bottom:8px}.empty-state b{display:block;color:#fff1df;font-size:12px}.empty-state p{font-size:9px;line-height:1.5;margin:5px auto 0;max-width:250px}.storage-row{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:8px;padding:13px 2px}.storage-row b{color:#f4e4cf}.storage-row .text-btn{margin-left:auto}.danger-text{color:#e99b7e}.qr-tabs{display:flex;gap:6px;border:1px solid #ffffff15;background:#ffffff08;border-radius:14px;padding:4px;margin-bottom:12px}.tab{flex:1;border:0;background:transparent;color:var(--muted);border-radius:10px;padding:9px;font-size:10px;font-weight:700}.tab.active{background:#f5dfc7;color:#4b2d20}.qr-pane{display:none}.qr-pane.active{display:block}.camera-box{position:relative;height:280px;border-radius:20px;overflow:hidden;background:radial-gradient(circle at center,#765037,#29180f);border:1px solid #ffffff18}.camera-box video{width:100%;height:100%;object-fit:cover;display:none}.camera-box.scanning video{display:block}.camera-overlay{position:absolute;display:none;inset:50% auto auto 50%;width:190px;height:190px;transform:translate(-50%,-50%);pointer-events:none}.camera-box.scanning .camera-overlay{display:block}.camera-overlay span{position:absolute;width:30px;height:30px;border-color:#f1c58f;border-style:solid}.camera-overlay span:nth-child(1){left:0;top:0;border-width:3px 0 0 3px}.camera-overlay span:nth-child(2){right:0;top:0;border-width:3px 3px 0 0}.camera-overlay span:nth-child(3){left:0;bottom:0;border-width:0 0 3px 3px}.camera-overlay span:nth-child(4){right:0;bottom:0;border-width:0 3px 3px 0}.camera-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;text-align:center;color:var(--muted)}.camera-icon{font-size:38px;color:#f1c58f}.camera-empty b{font-size:12px;color:var(--ink)}.camera-empty small{font-size:9px;max-width:250px;line-height:1.5}.camera-box.scanning .camera-empty{display:none}.qr-actions{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.file-image-label{display:inline-grid;place-items:center}.qr-result{padding:13px;background:#5d3b29;border:1px solid #e5b27655;border-radius:15px}.qr-result strong{display:block;font-size:11px;overflow-wrap:anywhere}.result-actions{display:flex;gap:7px;margin-top:10px}.result-actions button{flex:1}.qr-result>small{display:block;color:#a4b2a8;font-size:8px;margin-top:8px}.panel-card,.tool-panel,.settings-card{padding:14px;background:#503322;border:1px solid #ffffff14;border-radius:18px;margin:9px 0}.panel-card label,.settings-card label{display:block;font-size:10px;color:#d8bd9e;margin-bottom:7px}.panel-card textarea,.tool-panel textarea{width:100%;border:1px solid #ffffff1b;background:#38241a;color:var(--ink);border-radius:12px;padding:10px;font-size:11px;resize:vertical}.qr-output{display:grid;place-items:center;min-height:150px;margin-top:10px;background:#f5f1e8;border-radius:13px;color:#866c54}.qr-output canvas,.qr-output img{max-width:100%}.tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.tool-card{background:linear-gradient(145deg,#51392b,#38271f);border:1px solid #ffffff15;border-radius:16px;padding:13px;display:flex;flex-direction:column;align-items:flex-start;gap:6px;color:var(--ink);min-height:100px}.tool-card span{color:var(--green);font-size:23px}.tool-card b{font:700 12px Manrope}.tool-card small{color:var(--muted);font-size:9px}.tool-panel-head{display:flex;justify-content:space-between;align-items:center}.tool-panel-head h2,.settings-card h2{font:700 14px Manrope;margin:0 0 11px}.close-tool{border:0;background:#ffffff10;color:var(--ink);border-radius:9px;width:28px;height:28px;font-size:17px}.calc-display{width:100%;height:60px;border:0;border-radius:12px;background:#38241a;color:var(--green2);font:700 28px Manrope;text-align:right;padding:10px;margin:8px 0}.calc-keys{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.calc-keys button{height:43px;border-radius:11px;border:1px solid #ffffff14;background:#67442e;color:var(--ink);font-weight:700}.calc-keys button.operator{color:#f6d3a7;background:#80502e}.convert-row{display:flex;gap:7px;align-items:center;margin-top:8px;flex-wrap:wrap}.convert-row input,.convert-row select,.wide-select{min-width:0;flex:1;height:39px;padding:8px;background:#38241a;color:var(--ink);border:1px solid #ffffff20;border-radius:10px;font-size:10px}.convert-result{padding:11px;background:#60402b;border:1px solid #edb8782b;border-radius:12px;color:var(--green2);font-size:12px;margin-top:10px;overflow-wrap:anywhere}.translate-row{display:flex;gap:7px;margin-top:8px}.timer-display{text-align:center;font:800 44px Manrope;color:var(--green2);padding:14px}.settings-card p{font-size:9px;color:var(--muted);line-height:1.5}.settings-card button{margin:5px 5px 0 0}.wide-select{width:100%;display:block;margin:8px 0}.privacy-list{color:var(--muted);font-size:9px;line-height:1.8;padding-left:17px}.build-note{text-align:center;font-size:8px;color:#9a7b60;margin:20px 0}.toast{position:fixed;left:50%;bottom:95px;transform:translate(-50%,15px);z-index:50;max-width:90%;padding:10px 15px;border-radius:12px;background:#f2eee4;color:#1e3027;font-size:10px;font-weight:700;box-shadow:var(--shadow);opacity:0;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}.page-loading{opacity:.6;pointer-events:none}@media(min-width:620px){.app-shell{padding-left:28px;padding-right:28px}.topbar{margin-left:-28px;margin-right:-28px;padding:0 28px}.mascot-room{padding:18px 24px 14px}.mascot-stage{height:300px}.mascot{height:300px}.mascot-room.mode-sit .mascot{height:245px}.mascot-room.mode-work .mascot{height:270px}.quick-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.quick-card{min-height:122px}.home-grid{align-items:center}.date-weather-row{width:auto;min-width:320px;margin-top:0}.greeting-block{flex:1}}@media(max-width:380px){.app-shell{padding-left:13px;padding-right:13px}.topbar{margin-left:-13px;margin-right:-13px;padding:0 13px}.connection{font-size:8px}.brand{font-size:18px}.mascot-room{min-height:315px;padding:12px 9px}.mascot-stage{height:225px}.mascot{height:225px}.action-pill{font-size:9px;padding:7px 9px}.quick-card{min-height:95px;padding:10px}}

/* Novi 2.0 warm theme v0.1.2: deliberate warm palette across every app surface. */
body{background:radial-gradient(circle at 78% 0%,#855b3e 0,transparent 36%),linear-gradient(160deg,#2b1b13,#422a1d 58%,#1b110c);}
.topbar{background:#2b1b13ed;border-bottom-color:#e8b87a26}
.brand-mark{background:linear-gradient(145deg,#ffe0b2,#d98b4a);color:#482719;box-shadow:0 6px 16px #ca864733}
.connection{color:#f0c58f}.connection i{background:#e6a65d;box-shadow:0 0 10px #e6a65d88}
.date-card,.weather-card{background:linear-gradient(135deg,#67452e,#3e291d);border-color:#e6b47b45}
.card-kicker{color:#e9c49a}.weather-card .tiny-btn{color:#f0bf7d;background:#ffffff13}
.mascot-room{background:radial-gradient(ellipse at 50% 45%,#946a49 0%,#65432d 44%,#3b2519 78%);border-color:#e8bb842c}
.room-glow{background:#f7c78e27}
.speech-card{background:#fff5e8;color:#4a2d1c}.speech-dot{background:#d58a48}
.mascot-backdrop{background:radial-gradient(ellipse at center,#f2c18a40,transparent 72%)}
.mascot-caption{color:#e1c8aa}.mood-dot{background:#e4a45f;box-shadow:0 0 9px #e4a45f88}
.action-pill{color:#f4e6d3;border-color:#ffffff28;background:#ffffff0b}
.action-pill.selected{background:#f5d8b5;color:#57351f;border-color:#f5d8b5}
.quick-card,.tool-card{background:linear-gradient(145deg,#67452f,#4b3020);border-color:#e5b67b35;color:#fff3e4}
.quick-icon{background:#e6b47b1c;color:#f0bd7c}
.page-heading .eyebrow,.eyebrow,.section-heading .eyebrow{color:#e4ae72}
.message-body{background:#5b3b28}.message-author{color:#f0c18a}
.user-message .message-body{background:#f1d8bd;color:#4b2d20}
.user-message .message-author{color:#80502e}
.chat-composer,.search-wrap{background:#fff3e2;color:#4a2d20}
.chat-composer textarea,.search-wrap input{color:#4a2d20}
.send-btn,.primary-btn{background:linear-gradient(140deg,#d58a48,#a95f31);color:#fff8ef}
.voice-btn,.secondary-btn{background:#f0dfca;color:#704526}
.file-result,.panel-card,.tool-panel,.settings-card,.privacy-note,.qr-result{background:linear-gradient(145deg,#62412c,#4b3020);border-color:#e5b77b32}
.file-type{background:#f3e0c9;color:#75492c}
.search-mode b,.match-tag{color:#f2c38e;border-color:#f2c38e55;background:#edb87816}
.qr-tabs{background:#ffffff0c;border-color:#ffffff20}
.tab.active{background:#f4d9b8;color:#4b2d20}
.camera-box{background:radial-gradient(circle at center,#76533a,#2b1a11)}
.camera-overlay span{border-color:#f3c88f}
.calc-keys button{background:#64422c;color:#fff3e2}.calc-keys button.operator{background:#825331;color:#ffdfb2}
.convert-result{background:#60402b;border-color:#edb87844;color:#f3d4ae}
.bottom-nav{background:#2c1b13ed;border-top:1px solid #e6b47b27}
.nav-item.active{color:#f4c789}.nav-item.active span{background:#71472b;color:#ffe0b7}

.sofa,.laptop-prop{display:none!important}

/* Novi 2.0 v0.1.3 — complete rendered 3D mascot poses, replacing the broken mannequin. */
#mascot3d { display: none !important; }
.mascot-stage {
  height: clamp(300px, 86vw, 360px);
  min-height: 300px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  isolation: isolate;
}
.mascot-stage .mascot-backdrop {
  z-index: 0;
  width: 82%;
  height: 75%;
  bottom: 7px;
  background: radial-gradient(ellipse at 50% 60%, #d99c604a 0%, #b9793b24 45%, transparent 76%);
  filter: blur(12px);
}
.mascot-stage #mascot {
  display: block !important;
  position: relative;
  z-index: 4;
  width: 100%;
  height: calc(100% - 9px) !important;
  max-width: 100% !important;
  object-fit: contain;
  object-position: center bottom;
  transform-origin: 50% 92%;
  filter: drop-shadow(0 15px 18px #170b0750);
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}
.mascot-stage .mascot-shadow {
  z-index: 1;
  bottom: 5px;
  width: 160px;
  height: 17px;
  background: #190e0b66;
}
.mascot-stage .sofa,
.mascot-stage .laptop-prop,
.mascot-stage .sleep-z {
  display: none !important;
}
.mascot-stage .weather-prop { z-index: 5; }

/* Gentle movement is layered on top of complete rendered character frames. */
.mascot-stage #mascot[data-state="idle"] {
  animation: novi-breathe 3.4s ease-in-out infinite !important;
}
.mascot-stage #mascot[data-state="wave"] {
  animation: novi-wave-body 1.8s ease-in-out infinite !important;
}
.mascot-stage #mascot[data-state="walk"] {
  animation: novi-walk-bob 1.08s ease-in-out infinite !important;
}
.mascot-stage #mascot[data-state="run"] {
  animation: novi-run-bob .68s ease-in-out infinite !important;
}
.mascot-stage #mascot[data-state="sit"],
.mascot-stage #mascot[data-state="relax"] {
  animation: novi-relax-breathe 3.8s ease-in-out infinite !important;
}
.mascot-stage #mascot[data-state="work"] {
  animation: novi-work-type 1.1s ease-in-out infinite !important;
}
.mascot-stage #mascot[data-state="sleep"] {
  animation: novi-sleep-breathe 4.2s ease-in-out infinite !important;
}
.mascot-stage #mascot[data-state="dance"] {
  animation: novi-dance-bounce .72s ease-in-out infinite !important;
}
.mascot-stage.mascot-enter #mascot { animation-fill-mode: both; }
@keyframes novi-breathe {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.012, .994); }
}
@keyframes novi-wave-body {
  0%,100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(-1deg); }
  75% { transform: translateY(-2px) rotate(1deg); }
}
@keyframes novi-walk-bob {
  0%,100% { transform: translateY(0) rotate(-.5deg); }
  50% { transform: translateY(-5px) rotate(.5deg); }
}
@keyframes novi-run-bob {
  0%,100% { transform: translateY(1px) rotate(-1deg) scale(1); }
  50% { transform: translateY(-9px) rotate(1deg) scale(1.015, .99); }
}
@keyframes novi-relax-breathe {
  0%,100% { transform: translateY(1px) scale(1); }
  50% { transform: translateY(-2px) scale(1.008, .995); }
}
@keyframes novi-work-type {
  0%,100% { transform: translateY(1px) rotate(0deg); }
  50% { transform: translateY(-2px) rotate(.35deg); }
}
@keyframes novi-sleep-breathe {
  0%,100% { transform: translateY(2px) scale(1); }
  50% { transform: translateY(-2px) scale(1.012, .99); }
}
@keyframes novi-dance-bounce {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-13px) rotate(1.8deg); }
}
@media (max-width: 380px) {
  .mascot-stage { height: 310px; min-height: 310px; }
}
@media (prefers-reduced-motion: reduce) {
  .mascot-stage #mascot { animation: none !important; }
}


/* Novi 2.0 v0.1.4 — action and environment polish */
.mascot-turntable {
  position:relative; z-index:4; height:100%; width:100%; max-width:100%;
  display:flex; align-items:flex-end; justify-content:center;
  transform:perspective(900px) rotateY(var(--turn-angle, 0deg));
  transform-style:preserve-3d; will-change:transform; touch-action:pan-y;
  cursor:grab; transition:transform 80ms linear;
}
.mascot-turntable.is-rotating { cursor:grabbing; transition:none; }
.mascot-stage #mascot { pointer-events:auto; cursor:grab; }
.mascot-stage #mascot[data-state="wave"] { animation:novi-wave-body 850ms ease-out 1 !important; }
.mascot-stage #mascot[data-state="run"] { animation:novi-run-travel .68s ease-in-out infinite !important; }
.mascot-stage #mascot[data-state="work"] { animation:novi-work-type .42s ease-in-out infinite !important; }
.mascot-stage #mascot[data-state="sit"] { animation:novi-relax-breathe 4s ease-in-out infinite !important; }
.mascot-stage .sleep-z { display:block !important; }
.mascot-room.mode-sleep .sleep-z { opacity:1; animation:novi-zzz-paced 4.2s ease-in-out infinite; }
.mascot-room:not(.mode-sleep) .sleep-z { opacity:0; }
@keyframes novi-run-travel {
  0%,100% { transform:translate(-3px,1px) rotate(-2deg) scale(1.01,.99); }
  25% { transform:translate(3px,-7px) rotate(2deg) scale(1.02,.98); }
  50% { transform:translate(1px,-2px) rotate(-1deg) scale(1,.99); }
  75% { transform:translate(-2px,-8px) rotate(2deg) scale(1.02,.98); }
}
@keyframes novi-work-type {
  0%,100% { transform:translateY(0) rotate(-.25deg); }
  25% { transform:translateY(-1.5px) rotate(.2deg); }
  50% { transform:translateY(.7px) rotate(-.2deg); }
  75% { transform:translateY(-1px) rotate(.25deg); }
}
@keyframes novi-zzz-paced {
  0% { opacity:0; transform:translate(0,12px) scale(.76); }
  18% { opacity:1; }
  72% { opacity:.88; }
  100% { opacity:0; transform:translate(18px,-36px) scale(1.14); }
}
.typing-hands { display:none; position:absolute; z-index:8; left:50%; bottom:29%; width:76px; height:20px; transform:translateX(-50%); pointer-events:none; }
.typing-hands i { position:absolute; top:4px; width:18px; height:11px; border-radius:60% 55% 45% 50%; background:linear-gradient(150deg,#f4bd8c,#d98758); box-shadow:0 2px 3px #2b120b66; animation:typing-tap .22s ease-in-out infinite alternate; }
.typing-hands i:first-child { left:12px; }
.typing-hands i:last-child { right:12px; animation-delay:.11s; }
.mascot-room.mode-work .typing-hands { display:block; }
@keyframes typing-tap { from { transform:translateY(0) rotate(-5deg); } to { transform:translateY(4px) rotate(5deg); } }
.ambient-toggle { border:1px solid #edc18d44; background:#ffffff10; color:#f4d2a7; border-radius:999px; padding:4px 8px; font-size:9px; font-weight:700; white-space:nowrap; }
.ambient-toggle[aria-pressed="true"] { background:#f3d2a8; color:#4c2c1b; }
.turn-hint { text-align:center; margin:0 0 7px; color:#d7b795; font-size:9px; opacity:.78; }
/* Sunrise, sunset and night-sky visuals are local CSS; no background images are fetched. */
.mascot-room::after { content:""; position:absolute; z-index:0; width:64px; height:64px; right:12%; top:78px; border-radius:50%; opacity:0; pointer-events:none; transition:opacity .45s, transform .45s; }
.mascot-room.scene-morning::after,.mascot-room.scene-afternoon::after { opacity:.76; background:radial-gradient(circle at 35% 35%,#fff4c2,#ffc76f 62%,#ed9b4f); box-shadow:0 0 42px #ffbe6a88; }
.mascot-room.scene-evening::after { opacity:.9; transform:translateY(35px); background:radial-gradient(circle at 35% 35%,#fff0c0,#f4a456 63%,#d86f42); box-shadow:0 0 56px #f09b5e99; }
.mascot-room.scene-night { background:radial-gradient(ellipse at 50% 42%,#51405a 0%,#33273e 46%,#1b1724 82%) !important; }
.mascot-room.scene-night::after { opacity:.85; width:48px; height:48px; right:14%; top:62px; background:radial-gradient(circle at 35% 35%,#fff7d7,#d6c9a0 68%,#a7a0a4); box-shadow:0 0 35px #c9c3df55; }
.mascot-room.scene-evening .room-glow { background:#f5a05c3d; }
.mascot-room.scene-night .room-glow { background:#b4a8e51c; }
.mascot-room.scene-night .sparkle { color:#e6e3ff; }
/* Seasonal clothing overlays: lightweight scarf/beanie for winter, sleep cap and pajama panel at night. */
.season-outfit { position:absolute; z-index:7; inset:0; pointer-events:none; display:none; }
.mascot-room.season-winter:not(.scene-night) .season-outfit { display:block; }
.winter-beanie { position:absolute; left:50%; top:8%; width:56px; height:25px; transform:translateX(-50%) rotate(-5deg); border-radius:26px 26px 8px 8px; background:linear-gradient(140deg,#c57a4f,#80442f); box-shadow:inset 0 5px #e9b080,0 3px 8px #0005; }
.winter-beanie::after { content:""; position:absolute; left:-3px; right:-3px; bottom:-4px; height:6px; border-radius:6px; background:#f0d0ad; }
.winter-scarf { position:absolute; left:50%; top:57%; width:70px; height:15px; transform:translateX(-50%) rotate(2deg); border-radius:9px; background:linear-gradient(90deg,#a84636,#d66f52,#a84636); box-shadow:0 3px 5px #0004; }
.mascot-room.scene-night .season-outfit { display:block; }
.night-cap { position:absolute; left:50%; top:7%; width:42px; height:32px; transform:translateX(-50%) rotate(-12deg); border-radius:24px 24px 5px 5px; background:linear-gradient(140deg,#7f86b7,#444a80); box-shadow:inset 0 4px #b2b7da; }
.night-cap::after { content:""; position:absolute; width:9px; height:9px; right:-5px; top:-4px; border-radius:50%; background:#eee8d6; }
.night-pajama { position:absolute; left:50%; top:51%; width:82px; height:52px; transform:translateX(-50%); border-radius:20px 20px 15px 15px; background:linear-gradient(135deg,#6878a4,#36456e); box-shadow:inset 0 4px #a6b6d4,0 3px 5px #0004; opacity:.0; }
.mascot-room.scene-night .night-pajama { opacity:.92; }
.mascot-room.scene-night.mode-sleep .night-pajama { top:63%; width:68px; height:30px; transform:translateX(-50%) rotate(-8deg); }
.mascot-room.scene-night .winter-beanie,.mascot-room.scene-night .winter-scarf { display:none; }
.mascot-room.scene-night .night-cap { display:block; }
.mascot-room.scene-night .winter-beanie,.mascot-room.scene-night .winter-scarf { display:none; }
/* Tap reactions affect the current pose and do not reset the selected action. */
.mascot-stage.tap-smile #mascot { animation:tap-smile .55s ease-out 1 !important; }
.mascot-stage.tap-laugh #mascot { animation:tap-laugh .55s ease-in-out 2 !important; }
.mascot-stage.tap-angry #mascot { filter:drop-shadow(0 0 15px #f0443866) sepia(.2) saturate(1.6) hue-rotate(-18deg) !important; animation:tap-angry .28s ease-in-out 8 !important; }
.mascot-stage.tap-angry::after { content:"! !"; position:absolute; z-index:9; top:16%; left:54%; color:#ed6452; font:900 22px Manrope; animation:anger-pop .5s ease-in-out infinite alternate; }
@keyframes tap-smile { 0%,100%{transform:translateY(0) scale(1)} 45%{transform:translateY(-8px) scale(1.04)} }
@keyframes tap-laugh { 0%,100%{transform:translateY(0) rotate(0)} 50%{transform:translateY(-12px) rotate(2deg) scale(1.03)} }
@keyframes tap-angry { 0%,100%{transform:translateX(0) rotate(0)} 25%{transform:translateX(-5px) rotate(-1.5deg)} 75%{transform:translateX(5px) rotate(1.5deg)} }
@keyframes anger-pop { from{transform:translateY(0) scale(.9)} to{transform:translateY(-7px) scale(1.1)} }
@media (prefers-reduced-motion: reduce) { .mascot-turntable,.typing-hands,.sleep-z,.mascot-stage #mascot { animation:none !important; transition:none !important; } }


/* Novi 2.0 v0.1.5 — visual cleanup, true multi-angle turntable and night scene */
.mascot-room::after { display:none !important; content:none !important; }
.mascot-stage { height:300px !important; min-height:300px; overflow:hidden; }
.mascot-stage .relax-scene {
  display:none; position:absolute; inset:0; z-index:2; width:100%; height:100%;
  object-fit:cover; object-position:center 46%; border-radius:18px;
  opacity:0; transition:opacity .28s ease, filter .35s ease;
}
.mascot-room.mode-sit .mascot-stage .relax-scene,
.mascot-room.mode-relax .mascot-stage .relax-scene { display:block; opacity:1; }
.mascot-room.mode-sit .mascot-stage #mascot,
.mascot-room.mode-relax .mascot-stage #mascot { opacity:0; }
.mascot-room.mode-sit .mascot-shadow,
.mascot-room.mode-relax .mascot-shadow,
.mascot-room.mode-sit .sofa,
.mascot-room.mode-relax .sofa,
.mascot-room.mode-sit .laptop-prop,
.mascot-room.mode-relax .laptop-prop { opacity:0 !important; }
.mascot-room.mode-sit .mascot-stage .relax-scene,
.mascot-room.mode-relax .mascot-stage .relax-scene { filter:brightness(1) saturate(1); }
.mascot-room.scene-night {
  background:linear-gradient(160deg,#111827 0%,#172033 48%,#090f1a 100%) !important;
  border-color:#8794bd3b !important;
}
.mascot-room.scene-night:before {
  background:linear-gradient(180deg,#0b132455,#101a35aa 56%,#080f1cbb) !important;
}
.mascot-room.scene-night .mascot-stage .relax-scene {
  filter:brightness(.42) saturate(.68) hue-rotate(10deg) contrast(1.06) !important;
}
.mascot-room.scene-night .room-glow { opacity:.32; background:#7b8fcf22 !important; }
.mascot-room.scene-night .sparkle { color:#d7d8ef; }
.mascot-room.scene-evening {
  background:radial-gradient(ellipse at 50% 38%,#845339 0%,#513323 60%,#291911 100%);
}
.mascot-room.scene-evening .mascot-stage .relax-scene { filter:brightness(.92) saturate(1.04); }
body.night-mode {
  background:radial-gradient(circle at 78% 0%,#28334a 0,transparent 34%),linear-gradient(160deg,#111827,#171923 58%,#0b101b) !important;
}
body.night-mode .topbar { background:#111927ef !important; border-bottom-color:#8d9ab333; }
body.night-mode .bottom-nav { background:#101827f5 !important; border-top-color:#8993b333; }
body.night-mode .mascot-room { border-color:#7d8fb344 !important; }
.mascot-turntable {
  position:absolute !important; inset:0 !important; z-index:5 !important;
  height:100% !important; width:100% !important; max-width:100% !important;
  display:flex !important; align-items:flex-end !important; justify-content:center !important;
  transform:none !important; transform-style:flat !important; perspective:none !important;
  will-change:auto !important; touch-action:pan-y; cursor:grab; transition:none !important;
}
.mascot-turntable.is-rotating { cursor:grabbing; }
.mascot-stage .mascot {
  height:285px !important; width:auto !important; max-width:88% !important;
  object-fit:contain; object-position:bottom center; opacity:1;
  transform:none; transition:opacity .15s ease;
}
.mascot-room.mode-sit:not(.turned):not(.reaction-visible) .mascot-stage .mascot,
.mascot-room.mode-relax:not(.turned):not(.reaction-visible) .mascot-stage .mascot { opacity:0 !important; }
.mascot-room.turned .mascot-stage .relax-scene { opacity:0 !important; }
.mascot-room.turned .mascot-stage .mascot { opacity:1 !important; }
.mascot-room.reaction-visible .mascot-stage .relax-scene { opacity:.10 !important; }
.mascot-room.reaction-visible .mascot-stage .mascot { opacity:1 !important; }
.mascot-room:not(.mode-sleep) .sleep-z { display:none !important; opacity:0 !important; animation:none !important; }
.mascot-room.mode-sleep .sleep-z { display:block !important; opacity:1; animation:novi-zzz-paced 4.2s ease-in-out infinite; }
.mascot-room.mode-sleep .mascot-stage .relax-scene { display:none !important; }
.mascot-room.mode-sleep .mascot-stage .mascot { opacity:1 !important; }
.mascot-stage.tap-smile #mascot { animation:tap-smile .62s ease-out 1 !important; }
.mascot-stage.tap-laugh #mascot { animation:tap-laugh .54s ease-in-out 2 !important; }
.mascot-stage.tap-angry #mascot {
  animation:tap-angry .28s ease-in-out 8 !important;
  filter:drop-shadow(0 0 16px #f04438a8) saturate(1.18) !important;
}
.mascot-room[data-reaction="angry"] {
  box-shadow:inset 0 0 0 2px #d85345,0 0 28px #c7473d35,var(--shadow) !important;
}
.mascot-room[data-reaction="angry"] .room-glow { background:#df54432b !important; }
.mascot-room.mode-work .typing-hands {
  left:51%; bottom:24%; width:86px; z-index:8; transform:translateX(-50%);
}
.mascot-room.mode-work .typing-hands i { animation-duration:.18s; }
.mascot-room.mode-sit .ambient-toggle,
.mascot-room.mode-sleep .ambient-toggle { display:inline-flex; }
.turn-hint { margin-top:2px; color:#e0c2a2; }
@keyframes novi-zzz-paced {
  0% { opacity:0; transform:translate(0,8px) scale(.82); }
  18% { opacity:1; }
  72% { opacity:.92; }
  100% { opacity:0; transform:translate(18px,-32px) scale(1.12); }
}
@keyframes tap-smile { 0%,100%{transform:translateY(0) scale(1)} 45%{transform:translateY(-8px) scale(1.04)} }
@keyframes tap-laugh { 0%,100%{transform:translateY(0) rotate(0)} 50%{transform:translateY(-12px) rotate(2deg) scale(1.04)} }
@keyframes tap-angry { 0%,100%{transform:translateX(0) rotate(0)} 25%{transform:translateX(-5px) rotate(-1.5deg)} 75%{transform:translateX(5px) rotate(1.5deg)} }
@media (min-width:620px) {
  .mascot-stage { height:360px !important; }
  .mascot-stage .mascot { height:335px !important; }
}
@media (max-width:380px) {
  .mascot-stage { height:280px !important; min-height:280px; }
  .mascot-stage .mascot { height:260px !important; }
}

/* RC1 follow-up: renderer ownership is exclusive. */
#novi3dCanvas { position:absolute; inset:0; width:100%; height:100%; z-index:6; touch-action:pan-y; cursor:grab; }
#mascotStage[data-renderer="3d"] #mascotTurntable,
#mascotStage[data-renderer="3d"] #mascot,
#mascotStage[data-renderer="3d"] .relax-scene,
#mascotStage[data-renderer="3d"] .season-outfit,
#mascotStage[data-renderer="3d"] .typing-hands { display:none !important; }
#mascotStage:not([data-renderer="3d"]) #novi3dCanvas { display:none !important; }
.mascot-room:is(.mode-sit,.mode-relax):not(.turned):not(.reaction-visible) #mascotStage:not([data-renderer="3d"]) #mascot { display:none !important; }
.mascot-room:is(.turned,.reaction-visible) #mascotStage .relax-scene { display:none !important; }
.mascot-room:is(.mode-sit,.mode-relax) #mascotStage .season-outfit { display:none !important; }
.action-row { flex-wrap:wrap; overflow:visible; }
.mascot-caption { flex-wrap:wrap; }

/* RC4: remove decorative layers that duplicate the baked character and props. */
#mascotStage .typing-hands,#mascotStage .laptop-prop,#mascotStage .sofa,#mascotStage .season-outfit,#mascotStage .relax-scene,#mascotStage .sparkle {display:none!important;}
#mascotStage:not([data-renderer="3d"]) #mascot {display:block!important;opacity:1!important;filter:none!important;max-height:90%;max-width:90%;object-fit:contain;}
#mascotStage[data-renderer="3d"] #mascotTurntable {display:none!important;}
#mascotStage[data-renderer="3d"] #novi3dCanvas {display:block!important;}
#mascotStage {height:clamp(240px,76vw,330px)!important;min-height:0!important;}
.mascot-room:before {pointer-events:none;z-index:0;}
.mascot-caption,.action-row,.turn-hint {position:relative;z-index:10;opacity:1;color:#e9cbae;}
body.night-mode .action-pill {color:#f4e4cf;opacity:1;}
body.night-mode .action-pill.selected {color:#432c20;background:#f4dfc8;}

/* RC5 exclusive stage: no legacy mascot classes, overlays or duplicated props. */
#mascotStage{position:relative;display:grid;place-items:center;isolation:isolate;overflow:hidden;margin:8px auto;max-width:440px;height:clamp(240px,76vw,330px)!important;min-height:0!important;}
#mascotStage>.novi-pose,#mascotStage>#novi3dCanvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;max-width:100%;max-height:100%;padding:8px;filter:none;animation:none;transform:none;opacity:1;}
#mascotStage>#novi3dCanvas{padding:0;z-index:1;touch-action:pan-y;}
#mascotStage[data-renderer="3d"]>.novi-pose,#mascotStage:not([data-renderer="3d"])>#novi3dCanvas,#mascotStage>[hidden]{display:none!important;}
#mascotStage[data-renderer="sprite"]>.novi-pose{display:block!important;}
.mascot-room:before{display:none!important;}
.mascot-room .mascot-caption,.mascot-room .action-row,.mascot-room .turn-hint{opacity:1!important;filter:none!important;}

.more-animations { margin: .65rem 0; color: #e9cbae; }
.more-animations summary { padding: .65rem; cursor: pointer; }
.more-animations .action-row { margin-top: .35rem; }
body[data-environment="morning"] { background: radial-gradient(ellipse at top, #75513e, #2d1b12 75%); }
body[data-environment="afternoon"] { background: radial-gradient(ellipse at top, #715741, #39241a 75%); }
body[data-environment="evening"] { background: radial-gradient(ellipse at top, #613b40, #291922 75%); }
body[data-environment="night"] { background: radial-gradient(ellipse at top, #30354f, #171724 75%); }

/* Concept B dashboard and time-of-day room. */
#homePage {
  --panel: #382b32;
  --panel-border: #f4cea13b;
  --gold: #ffc777;
}
#homePage .home-grid, #homePage .mascot-room, #homePage .quick-grid { margin-block-end: 1rem; }
#homePage .greeting-block { padding: .35rem 0 .7rem; }
#homePage .greeting-block h1 { font-size: clamp(1.9rem, 7vw, 3rem); }
#homePage :is(.date-card,.weather-card,.quick-card) {
  background: var(--panel);
  border: 1px solid var(--panel-border);
}
#homePage .date-weather-row { grid-template-columns: 1fr 1fr; gap: .55rem; }
#homePage .mascot-room {
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(165deg, var(--room-light), #302025 82%);
  border: 1px solid var(--panel-border);
  --room-light: #75553f;
}
#homePage .mascot-room::after { display: none; }
#homePage .scene-morning { --room-light:#93684c; }
#homePage .scene-afternoon { --room-light:#775740; }
#homePage .scene-evening { --room-light:#864d39; }
#homePage .scene-night { --room-light:#3b405d; }
#homePage { font-family: system-ui, sans-serif; }
#homePage .greeting-block h1, #homePage .dashboard-heading h2 { font-family: inherit; letter-spacing: -.025em; }
.scene-room-art {
  position: absolute;
  inset: 0 0 auto;
  height: min(22rem, 85vw);
  background: linear-gradient(transparent 58%, #302025 100%), var(--room-image) center 57% / cover no-repeat;
  pointer-events: none;
}
.scene-morning { --room-image: url('./assets/rooms/morning.webp'); }
.scene-afternoon { --room-image: url('./assets/rooms/afternoon.webp'); }
.scene-evening { --room-image: url('./assets/rooms/evening.webp'); }
.scene-night { --room-image: url('./assets/rooms/night.webp'); }
.app-shell :is(button, a, select, summary, canvas):focus-visible {
  outline: 2px solid #ffe1a4;
  outline-offset: 3px;
}
.topbar .icon-btn { min-width: 44px; min-height: 44px; }
.bottom-nav .nav-item { min-height: 48px; }
#homePage .more-animations .action-pill { min-height: 44px; }
#homePage .speech-card { position:relative; z-index:2; background:#f6e4cd; color:#3d2924; }
#homePage .mascot-caption { justify-content:center; }
#homePage #actionRow { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.45rem; }
#homePage #actionRow .action-pill { min-height:44px; margin:0; }
#homePage .action-pill.selected { background:var(--gold); color:#33231c; }
#homePage .outfit-control { display:flex; align-items:center; justify-content:space-between; gap:.75rem; margin-top:.8rem; }
#homePage .outfit-control select { min-height:44px; color:#f8e7d3; background:#332831; border:1px solid var(--panel-border); border-radius:.6rem; padding:0 .65rem; }
#homePage .more-animations { margin-bottom:0; border-top:1px solid var(--panel-border); }
#homePage .more-animations summary { min-height:44px; }
#homePage .dashboard-heading { margin-bottom:.55rem; }
#homePage .quick-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:.45rem; }
#homePage .quick-card { display:grid; justify-items:center; align-content:center; text-align:center; padding:.55rem .15rem; min-height:76px; }
#homePage .quick-card b { font-size:clamp(.67rem,2.7vw,.95rem); }
#homePage .quick-card small, #homePage .quick-card .card-arrow { display:none; }
#homePage .quick-card .quick-icon { color:var(--gold); }
#homePage .quick-card.chat-card { background:var(--gold); color:#33231c; }
#homePage .quick-card.chat-card .quick-icon { color:inherit; }
.scene-zzz { display:none; position:absolute; z-index:3; top:24%; left:65%; color:#fff1d9; pointer-events:none; font-weight:800; }
#mascotStage[data-mascot-action="sleep"] .scene-zzz { display:block; animation:novi-zzz-paced 2.8s ease-in-out infinite; }
@media(prefers-reduced-motion:reduce) { #mascotStage .scene-zzz { animation:none!important; } }
#homePage .date-weather-row { display:grid; width:100%; min-width:0; margin:0; }
#homePage .weather-card { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:.35rem; }
#homePage .weather-card :is(strong,small) { overflow-wrap:anywhere; }
#homePage .weather-card .weather-icon { font-size:1.05rem; }
#homePage .weather-card .tiny-btn { padding:.35rem; }
@media(max-width:480px) {
  #homePage .home-grid { gap:.35rem; }
  #homePage .mascot-room { margin-top:.65rem; }
  #homePage #mascotStage { height:clamp(205px,58vw,250px)!important; }
}
/* Concept B hierarchy and warm, high-contrast surfaces. */
#homePage { --panel:#372b29; }
.topbar, .bottom-nav { background:#241e21; }
#homePage .quick-grid { gap:.55rem; }
#homePage .quick-card { min-height:80px; }
#homePage .quick-card b { color:#fff1da; }
#homePage .quick-card.chat-card b { color:#2d1c16; }
#homePage #actionRow .action-pill { background:#4e3730; color:#fff2dd; border-color:#cea57470; }
#homePage #actionRow .action-pill.selected { background:#ffc777; color:#302019; border-color:#ffe3a9; }
#morePage .outfit-control { display:block; }
#morePage .outfit-control .wide-select { min-height:44px; }

#homePage #actionRow .action-pill,
#homePage .more-animations .action-pill,
#homePage .more-animations summary {
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.25;
}
@font-face {
  font-family: Nunito;
  src: url('./assets/fonts/nunito-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
body, #homePage, .brand {
  font-family: Nunito, system-ui, sans-serif;
}
button, input, select, textarea {
  font-family: inherit;
}

#mascotStage[data-outfit="classic"][data-renderer="3d"] .scene-zzz {
  display: none;
}

/* Little World */
body {
  --sky-top:#b0dafa; --sky-bottom:#faedf2;
  --ink:#203451; --muted:#485b75; --green:#3b5877;
  --paper:#ffffffb8; --line:#42608a24; --primary:#2e5485;
  color:var(--ink);
  background:linear-gradient(175deg,var(--sky-top) 0%,var(--sky-bottom) 78%) fixed;
}
body[data-environment="morning"] { --sky-top:#a9d9fc; --sky-bottom:#fff3df; }
body[data-environment="afternoon"] { --sky-top:#9fcef7; --sky-bottom:#e6edf9; }
body[data-environment="evening"] { --sky-top:#aca3dd; --sky-bottom:#ffe6d3; }
body[data-environment="night"] {
  --sky-top:#202c56; --sky-bottom:#51507b;
  --ink:#fff5ed; --muted:#e1d9ee; --green:#ffdeae;
  --paper:#263453e8; --line:#f3eaff2c; --primary:#f8d39e;
}
body:is([data-environment],.night-mode) {
  background:radial-gradient(ellipse at 20% 20%,#ffffff25,transparent 50%),
    linear-gradient(175deg,var(--sky-top),var(--sky-bottom) 78%) fixed;
}
body[data-season="monsoon"]:not([data-environment="night"]) { --sky-top:#a6bed8; }
.app-shell { max-width:760px; }
.topbar, .bottom-nav, body.night-mode :is(.topbar,.bottom-nav) {
  background:var(--paper); color:var(--ink); border-color:var(--line);
  backdrop-filter:blur(18px);
}
.topbar { height:60px; }
.brand { color:var(--ink); }
.brand-mark { background:linear-gradient(155deg,#ffeccb,#f6b18e); color:#433851; box-shadow:0 3px 10px #51476224; }
.icon-btn { color:var(--ink); border-color:var(--line); background:var(--paper); }
.connection { color:var(--ink); }
.connection i { background:#398762; box-shadow:none; }
.connection.offline i { background:#bd723b; }
#homePage { --panel:var(--paper); --panel-border:var(--line); --gold:#ffd59f; }
#homePage .greeting-block { padding:0 0 .45rem; }
#homePage .greeting-block h1 { color:var(--ink); font-size:clamp(1.65rem,6.5vw,2.65rem); }
#homePage .date-weather-row { gap:.55rem; }
#homePage :is(.date-card,.weather-card,.quick-card), .settings-card, .panel-card {
  color:var(--ink); background:var(--paper); border:1px solid var(--line);
  box-shadow:0 5px 16px #27456912;
}
#homePage .card-kicker, #homePage :is(.date-card,.weather-card) small { color:var(--muted); }
#homePage .weather-card .tiny-btn { min-height:40px; min-width:40px; color:var(--ink); background:var(--line); }
#homePage #mascotRoom {
  background:transparent; border:0; box-shadow:none; padding:0; margin:.25rem -5px 1rem;
  min-height:0; border-radius:0; overflow:visible;
}
#mascotRoom::before, #mascotRoom::after, #mascotStage .scene-zzz { display:none!important; }
#homePage #mascotStage {
  height:clamp(290px,88vw,488px)!important; margin:0 auto; max-width:680px; overflow:visible;
}
#homePage .speech-card {
  z-index:2; margin:0 auto -13px; width:max-content; max-width:90%; background:var(--paper);
  color:var(--ink); border:1px solid var(--line); box-shadow:0 5px 15px #27456918;
}
#homePage .mascot-caption { color:var(--muted); margin:0 0 .55rem; }
.world-stars { display:none; pointer-events:none; position:absolute; inset:0 0 30%; z-index:-1; }
body[data-environment="night"] .world-stars {
  display:block;
  background:radial-gradient(circle at 82% 18%,#fff5ce 0 11px,transparent 13px),
    radial-gradient(circle at 12% 17%,#f9f4ec 0 1px,transparent 2px),
    radial-gradient(circle at 31% 9%,#f9f4ec 0 1px,transparent 2px),
    radial-gradient(circle at 64% 25%,#f9f4ec 0 1px,transparent 2px),
    radial-gradient(circle at 22% 53%,#f9f4ec 0 1px,transparent 2px),
    radial-gradient(circle at 89% 43%,#f9f4ec 0 1px,transparent 2px);
}
#homePage #actionRow .action-pill, #homePage .more-animations .action-pill {
  min-height:45px; color:var(--ink); background:var(--paper); border:1px solid var(--line);
  box-shadow:0 3px 9px #30447716;
}
#homePage #actionRow .action-pill.selected, #homePage .more-animations .action-pill.selected {
  color:#293c58; background:#ffd59f; border-color:#e2a575;
}
#homePage .more-animations { color:var(--ink); border-color:var(--line); }
#homePage .quick-card b, #homePage .quick-card .quick-icon { color:var(--ink); }
#homePage .quick-card.chat-card, #homePage .quick-card.chat-card b, #homePage .quick-card.chat-card .quick-icon {
  background:#ffd59f; color:#293c58;
}
.nav-item, .nav-item.active { color:var(--muted); }
.nav-item.active span { color:#293c58; background:#ffd59f; }
.privacy-strip { color:var(--ink); background:var(--paper); border-color:var(--line); }
.privacy-strip :is(b,small) { color:var(--ink); }
.world-settings { display:grid; gap:.65rem; margin-bottom:1rem; }
.world-settings label { display:flex; justify-content:space-between; align-items:center; gap:.55rem; }
.world-settings select { min-height:44px; color:var(--ink); background:var(--paper); border:1px solid var(--line); border-radius:.6rem; padding:0 .4rem; }
.world-music:not([hidden]) { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.5rem; padding-top:.4rem; color:var(--ink); }
.world-music label { display:flex; align-items:center; gap:.25rem; font-size:.8rem; min-height:40px; }
.world-music input[type=range] { width:65px; }
.world-music button { min-height:42px; background:var(--paper); color:var(--ink); border:1px solid var(--line); border-radius:1rem; padding:0 .65rem; }
.mileage-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; margin-block:.7rem; }
.mileage-grid label { font-size:.86rem; display:grid; gap:.25rem; }
.mileage-grid input { width:100%; min-height:44px; }
#mileageResult { display:block; white-space:pre-line; margin-top:.6rem; }

.world-link { min-height:36px; padding:0 .6rem; border-radius:1rem; background:var(--paper); color:var(--ink); border:1px solid var(--line); }
.file-entry { display:flex; align-items:stretch; gap:.4rem; }
.file-entry .file-result { flex:1; min-width:0; }
.file-remove { align-self:center; min-height:44px; }

.ai-badge { font-size:10px; padding:.2rem .42rem; border:1px solid var(--line); border-radius:2rem; white-space:nowrap; }
@media(max-width:365px) { .topbar { gap:5px; } .top-actions { gap:5px; } .brand {gap:5px;font-size:16px;} }
#mainContent :is(.model-card,.model-progress,.message-body,.chat-composer,.file-result,.tool-card,.tool-panel,.privacy-note,.qr-result,.camera-box,.toast,.settings-card) {
  color:var(--ink); background:var(--paper); border-color:var(--line);
}
#mainContent :is(.section-heading,.page-heading,.tool-panel-head) :is(h1,h2) { color:var(--ink); }
#mainContent :is(.tool-card,.file-result,.settings-card) :is(span,small,p) { color:var(--muted); }
#mainContent .primary-btn { background:#375b86; color:white; border-color:#375b86; }
#mainContent .secondary-btn { color:var(--ink); background:var(--paper); border-color:var(--line); }
#mainContent :is(input:not([type=checkbox]):not([type=range]), textarea, select) { color:var(--ink); background:var(--paper); border-color:var(--line); }
#mainContent .chat-composer textarea { border-color:transparent; background:transparent; }
#homePage .eyebrow { color:var(--primary); }
html { scroll-padding-top:70px; scroll-padding-bottom:100px; }
#worldMusic { scroll-margin-block:12px 98px; margin-bottom:.42rem; }

/* Keep settings readable against every world backdrop. */
#mainContent #morePage {
  --paper: #fbfcff;
  --ink: #192d49;
  --muted: #3b4e66;
  --line: #75859a;
  color-scheme: light;
}
body[data-environment="night"] #mainContent #morePage {
  --paper: #1c2a42;
  --ink: #f5f8ff;
  --muted: #d2deee;
  --line: #8194ae;
  color-scheme: dark;
}
#morePage .page-heading {
  background: var(--paper);
  border-radius: 18px;
  padding: 14px;
}
#morePage .page-heading h1 { font-family: inherit; font-size: 1.75rem; line-height: 1.2; }
#morePage .eyebrow { color: var(--muted); font-size: .8125rem; }
#morePage .back-btn { width: 44px; height: 44px; border-color: var(--line); }
#morePage .settings-card { padding: 1rem; margin-block: .75rem; }
#morePage .settings-card h2 { font: 800 1.25rem/1.25 Nunito, system-ui, sans-serif; }
#morePage :is(.page-sub, .settings-card p, .privacy-list, .settings-card label) {
  font-size: 1rem;
  line-height: 1.5;
}
#morePage .settings-card label { color: var(--ink); font-weight: 700; }
#morePage .world-settings label:has(select) {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.3fr);
}
#morePage label:has(input[type="checkbox"]) {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: .7rem;
  min-height: 48px;
}
#morePage input[type="checkbox"] {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  margin: 0;
  accent-color: #375b86;
}
#morePage :is(select, .settings-card button, .apk-download) {
  min-height: 48px;
  font-size: 1rem;
}
#morePage select { max-width: 100%; padding-inline: .65rem; }
#morePage :is(select, button, a, input):focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
#morePage .danger-btn { color: #8b2828; background: #fff0ef; border-color: #ae6969; }
#morePage .apk-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
#morePage .build-note { font-size: .875rem; color: var(--ink); }
#mainContent .chat-planner { font-size: 1rem; }
.chat-planner summary { cursor: pointer; font-weight: 800; min-height: 40px; }
#mainContent .chat-planner p { font-size: .95rem; }
.chat-planner :is(ul,li) { padding-inline-start: 1rem; }
#plannerList button { margin-inline-start: .5rem; min-height: 44px; font-size: .9rem; }
