@font-face{font-family:"Noto Sans Mongolian";src:url("/assets/fonts/NotoSansMongolian-Regular.ttf") format("truetype"),url("fonts/NotoSansMongolian-Regular.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+1800-18AF,U+200C-200D,U+202F,U+11660-1167F}
:root{color-scheme:dark;font-family:Inter,"Segoe UI","Microsoft YaHei UI","Noto Sans Mongolian","Mongolian Baiti",sans-serif;font-synthesis:none;color:#eef3ed;background:#090b0b;--accent:#c9f77d;--accent-dim:#c9f77d8f;--ink:#eef3ed;--muted:#8b9790;--quiet:#68736c;--line:#ffffff12;--panel:#121716;--viewport-height:100dvh;--viewport-top:0px}
*{box-sizing:border-box}html,body{margin:0;min-width:0;min-height:100%;background:#090b0b}body{overflow:hidden;overscroll-behavior:none}button,input,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{color:inherit;border:0;background:none;cursor:pointer;touch-action:manipulation}button:disabled{opacity:.5;cursor:wait}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button{transition:background .2s ease,border-color .2s ease,color .2s ease,transform .2s ease}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#app{position:fixed;inset:var(--viewport-top) 0 auto;height:var(--viewport-height);display:flex;flex-direction:column;min-width:0;overflow:hidden;background:radial-gradient(ellipse 70% 64% at 52% 3%,#c9f77d0c,transparent 63%),#090b0b}#app::before{content:"";position:absolute;top:0;left:50%;width:360px;height:250px;transform:translateX(-50%);background:#c9f77d08;filter:blur(90px);pointer-events:none}
.topbar{position:relative;z-index:3;flex:none;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;justify-items:center;padding:calc(12px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));border-bottom:1px solid #ffffff09}.brand{display:inline-flex;align-items:baseline;gap:5px;white-space:nowrap;letter-spacing:3px;font-size:15px;font-weight:700}.brand-name{color:#eff3ee}.brand-ai{font-size:9px;letter-spacing:1px;color:var(--accent);font-weight:700}.icon-button{width:44px;height:44px;display:grid;place-items:center;border:1px solid #ffffff16;border-radius:15px;color:#a5b0a8;font-size:26px;line-height:1}.icon-button:hover{border-color:#ffffff2d;color:#eef3ed;background:#ffffff08}.icon-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#welcome{position:relative;z-index:1;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:28px 21px 20px}.welcome-inner{width:100%;max-width:680px;margin:0 auto;text-align:left}.hero-kicker{display:flex;align-items:center;gap:10px;color:#87938b;font-size:9px;letter-spacing:1.8px}.kicker-line{width:28px;height:1px;background:var(--accent-dim)}.kicker-index{margin-left:auto;color:var(--accent);font-variant-numeric:tabular-nums}
.brand-mark{position:relative;width:58px;height:58px;display:grid;place-items:center;margin:31px 0 15px;border:1px solid #c9f77d45;border-radius:20px;color:#dceaca;font-size:30px;font-weight:300;font-style:italic;background:linear-gradient(140deg,#c9f77d18,#c9f77d03);box-shadow:0 0 65px #c9f77d10}.brand-mark::after{content:"";position:absolute;inset:6px;border:1px solid #ffffff0c;border-radius:15px}.brand-mark span{position:relative;z-index:1;transform:translate(-1px,-1px)}.brand-mark i{position:absolute;right:10px;top:10px;width:5px;height:5px;border-radius:50%;background:var(--accent);box-shadow:0 0 14px var(--accent)}
.hero-brand{display:flex;align-items:center;gap:8px;margin:0 0 15px;color:#aebaa9;font-size:10px;line-height:1;letter-spacing:4px}.hero-brand em{color:var(--accent);font-style:normal;letter-spacing:1px}.hero-brand span{padding-left:8px;border-left:1px solid #ffffff1c;color:#647068;font-size:9px;letter-spacing:1.5px}
h1{max-width:640px;margin:0;color:#eff3ed;font-size:38px;line-height:1.23;font-weight:480;letter-spacing:-.8px}h1 em{color:var(--accent);font-style:normal}.mobile-break{display:block}.welcome-copy{margin:12px 0 30px;color:var(--muted);font-size:13px;line-height:1.8;letter-spacing:.15px}.suggestion-heading{display:flex;align-items:center;justify-content:space-between;margin:0 1px 10px;color:#809087;font-size:10px;letter-spacing:1.4px}.suggestion-heading span:last-child{color:#68766d;font-variant-numeric:tabular-nums}
.suggestions{display:grid;gap:8px;max-width:620px}.suggestions button{position:relative;display:grid;grid-template-columns:31px minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;min-width:0;min-height:65px;padding:11px 13px;border:1px solid #ffffff13;border-radius:17px;background:linear-gradient(105deg,#121817,#0e1211);box-shadow:inset 0 1px #ffffff06}.suggestions button::before{content:"";position:absolute;left:-1px;top:16px;bottom:16px;width:2px;border-radius:2px;background:#566154}.suggestions button:hover{border-color:#c9f77d50;background:#172016;transform:translateX(2px)}.suggestions button:hover::before{background:var(--accent)}.suggestion-index{color:#81907f;font-size:10px;letter-spacing:1px;font-variant-numeric:tabular-nums}.suggestion-copy{min-width:0}.suggestions b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:520;line-height:1.5}.suggestions small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:11px;margin-top:3px;line-height:1.5}.arrow{color:#809080;font-size:18px;line-height:1}
.composer-area{position:relative;z-index:4;flex:none;width:100%;max-width:820px;margin:0 auto;padding:0 max(16px,env(safe-area-inset-right)) calc(13px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:linear-gradient(180deg,transparent,#090b0bf2 17px,#090b0b 44px)}#notice{max-height:58px;overflow:auto;margin:0 4px 8px;color:#d1dfc1;font-size:12px;line-height:1.5;overflow-wrap:anywhere}#notice:empty{display:none}#composer{padding:12px 12px 10px;border:1px solid #ffffff20;border-radius:20px;background:#151b18ed;box-shadow:0 15px 45px #0009,0 1px #ffffff08;backdrop-filter:blur(18px)}#composer:focus-within{border-color:#c9f77d70;box-shadow:0 15px 45px #000b,0 0 0 3px #c9f77d0b}
textarea{display:block;width:100%;min-height:29px;max-height:120px;padding:0 3px;border:0;outline:0;resize:none;overflow-y:auto;border-radius:0;background:none;color:var(--ink);font-size:16px;line-height:1.65;letter-spacing:normal}textarea::placeholder{color:#7d8982}.composer-tools{display:flex;align-items:center;gap:9px;margin-top:8px;min-width:0}.composer-signature{flex:none;color:#8f9b91;font-size:10px;letter-spacing:1px}.composer-signature i,.connection i{display:inline-block;width:5px;height:5px;margin:0 6px 1px 1px;border-radius:50%;background:#71806f}.composer-signature i{background:var(--accent);box-shadow:0 0 10px var(--accent)}.composer-hint{flex:1;min-width:0;overflow:hidden;color:#69766d;font-size:10px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}.composer-actions{flex:none}.send-button,.stop-button{display:grid;place-items:center;height:43px;min-width:43px;border-radius:14px}.send-button{background:var(--accent);color:#1b2a0d}.send-button:hover{background:#d9ff9e;transform:translateY(-1px)}.send-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.stop-button{grid-auto-flow:column;gap:7px;padding:0 12px;background:#e6ecdf;color:#1a2516;font-size:12px;font-weight:600}.stop-button:hover{background:#fff}.stop-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}.disclaimer{margin:9px 0 0;color:#6e7a72;font-size:10px;line-height:1.5;text-align:center}.disclaimer span{color:#5e6962}
#messages{position:relative;z-index:1;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-behavior:smooth;padding:24px max(18px,calc((100% - 760px)/2)) 20px;scroll-padding-bottom:20px}#messages:empty{display:none}.message{max-width:100%;min-width:0;margin-bottom:24px;animation:message-in .24s ease both}.message:last-child{margin-bottom:6px}.author{margin:0 0 8px;color:#a8b59e;font-size:10px;letter-spacing:1.6px}.message.user .author{color:#a1b496}.text{min-width:0;color:#edf3ed;font-size:15px;line-height:1.9;letter-spacing:normal;white-space:pre-wrap;overflow-wrap:anywhere}.message.user{width:fit-content;max-width:90%;margin-left:auto;padding:12px 15px 11px;border:1px solid #c9f77d24;border-radius:19px 19px 5px 19px;background:#202d22;box-shadow:inset 0 1px #ffffff0a}.message.user .author{margin-bottom:5px}.message.assistant{padding:2px 0 4px 15px;border-left:2px solid #c9f77d70;border-radius:0;background:linear-gradient(90deg,#c9f77d08,transparent 75%)}.copy{min-height:38px;padding:8px 0 0;color:#819087;font-size:11px;text-align:left}.copy:hover{color:var(--accent);background:none}.mongolian{writing-mode:vertical-lr;text-orientation:mixed;white-space:pre-wrap;max-width:100%;max-height:340px;overflow:auto;font-family:"Noto Sans Mongolian","Mongolian Baiti",sans-serif;font-size:21px;line-height:1.85;word-break:normal;overflow-wrap:normal;letter-spacing:normal}
dialog{color:inherit;background:var(--panel);border:1px solid #ffffff1c;border-radius:24px;width:min(440px,calc(100% - 28px));max-height:calc(var(--viewport-height) - 28px);padding:23px;overflow:auto;box-shadow:0 24px 80px #000b}dialog::backdrop{background:#000b;backdrop-filter:blur(10px)}.dialog-heading,.drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.dialog-heading h2{margin:0;font-size:20px;font-weight:500}dialog p,dialog small{color:var(--muted);font-size:12px;line-height:1.8}dialog label{display:block;margin:19px 0 9px;font-size:12px}dialog input{width:100%;min-width:0;padding:14px;border:1px solid #ffffff20;border-radius:13px;background:#0b0e0d;color:inherit;font-size:16px}dialog input:focus{border-color:#c9f77d65;outline:0}dialog small{display:block;margin:9px 0 19px;font-size:11px}.primary,.new-chat{width:100%;min-height:48px;border-radius:14px;background:var(--accent);color:#1f3010}.primary:hover,.new-chat:hover{background:#d9ff9e}
#drawer{position:fixed;top:var(--viewport-top);left:0;margin:0;width:min(342px,calc(100% - 24px));height:var(--viewport-height);max-height:var(--viewport-height);padding:0;border-radius:0 25px 25px 0}.sidebar{display:flex;flex-direction:column;height:100%;min-height:0;padding:calc(17px + env(safe-area-inset-top)) 21px calc(17px + env(safe-area-inset-bottom))}.drawer-heading .icon-button{font-size:25px}.new-chat{margin-top:27px;padding:0 15px;text-align:left;font-size:13px;font-weight:520}.new-chat>span{font-size:19px;vertical-align:-1px}.new-chat kbd{float:right;color:#49602c;font-size:10px;line-height:20px;opacity:.75}.search{display:block;margin-top:18px}.search input{width:100%;min-height:45px;padding:0 13px;border:1px solid #ffffff12;border-radius:13px;background:#0e1211;color:inherit;font-size:14px;outline:0}.search input:focus{border-color:#c9f77d55}.search input::placeholder{color:#68736d}.overline{margin:23px 0 10px;color:#748077;font-size:10px;letter-spacing:2px}#history{flex:1;min-height:0;overflow:auto}#history button{display:block;width:100%;min-height:45px;padding:11px 12px;overflow:hidden;border-radius:12px;color:#aeb8b0;font-size:13px;text-align:left;text-overflow:ellipsis;white-space:nowrap}#history button:hover{background:#ffffff08}#history button.active{color:#e8f2df;background:#c9f77d0d}.empty-history{padding:12px 0;color:var(--muted);font-size:12px}.sidebar-footer{margin-top:14px;padding-top:15px;border-top:1px solid var(--line)}.connection{display:flex;align-items:center;gap:8px;overflow-wrap:anywhere;color:#98a49b;font-size:11px}.connection i{flex:none;background:#77847c}body[data-connected="true"] .connection i{background:var(--accent);box-shadow:0 0 10px var(--accent)}#settings-button{width:100%;min-height:48px;padding:0;text-align:left;font-size:13px}#settings-button span{float:right;color:var(--muted)}.history-actions{display:flex;justify-content:space-between;gap:8px}.history-actions button{min-height:40px;padding:0;color:#8f9b92;font-size:11px}.history-actions button:hover{color:var(--accent);background:none}.sidebar-footer small{display:block;margin-top:7px;color:#69746d;font-size:10px}
@keyframes message-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:700px){.topbar{padding:21px 36px}.brand{font-size:16px}#welcome{display:flex;align-items:center;padding:32px 40px}.welcome-inner{width:100%;max-width:900px}.brand-mark{width:72px;height:72px;margin:38px 0 19px;font-size:39px}.hero-brand{margin-bottom:20px}h1{font-size:58px;letter-spacing:-1.8px}.mobile-break{display:none}.welcome-copy{font-size:14px;margin-bottom:42px}.suggestions{grid-template-columns:repeat(3,1fr);max-width:900px;gap:11px}.suggestions button{grid-template-columns:24px minmax(0,1fr) auto;align-items:start;min-height:153px;padding:17px 16px}.suggestions button::before{top:17px;bottom:17px}.suggestion-copy{margin-top:29px}.suggestions small{white-space:normal}.arrow{margin-top:28px}.composer-area{padding-bottom:23px}}
@media(max-width:370px){#welcome{padding-left:16px;padding-right:16px}.composer-area{padding-left:12px;padding-right:12px}.composer-hint{display:none}h1{font-size:35px}.suggestions button{padding-left:11px;padding-right:11px;gap:9px}}
@media(max-height:720px) and (max-width:699px){#welcome{padding-top:18px}.brand-mark{width:46px;height:46px;margin:17px 0 11px;border-radius:16px;font-size:25px}.brand-mark::after{inset:5px;border-radius:12px}.brand-mark i{right:7px;top:7px;width:4px;height:4px}.hero-brand{margin-bottom:11px}h1{font-size:31px}.welcome-copy{margin:8px 0 17px}.suggestions{gap:7px}.suggestions button{min-height:57px;padding-top:9px;padding-bottom:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
#settings{position:fixed;top:calc(var(--viewport-top) + var(--viewport-height)/2);bottom:auto;margin:0 auto;transform:translateY(-50%)}
.suggestions button{text-align:left}
.mode-switch{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;margin-top:3px;padding:0 12px;border-radius:12px;color:#a7b2aa;font-size:12px;text-align:left}.mode-switch>span{margin-right:7px;color:var(--accent);font-size:18px}.mode-switch small{margin-left:auto;color:#66756a;font-size:9px;letter-spacing:1.5px}.mode-switch:hover{color:#edf3ec;background:#ffffff08}.voice-note.error{color:#e6b6a7}.voice-note.ok{color:#c9f77d}
#app.voice-mode #welcome,#app.voice-mode #messages,#app.voice-mode .composer-area{display:none!important}
#voice-screen{position:relative;z-index:1;flex:1;min-height:0;display:flex;flex-direction:column;overflow:auto;padding:28px 21px calc(20px + env(safe-area-inset-bottom));}.voice-kicker{display:flex;align-items:center;gap:10px;color:#87938b;font-size:9px;letter-spacing:1.8px}.voice-kicker .kicker-index{margin-left:auto}.voice-kicker>span:last-child{margin-left:auto;color:var(--accent);font-variant-numeric:tabular-nums}.voice-stage{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;min-height:430px;text-align:center}.voice-orb{position:relative;width:174px;height:174px;margin:5px 0 24px;border:1px solid #c9f77d30;border-radius:50%;background:radial-gradient(circle at 38% 30%,#dfff9d55 0 5%,#a9d56824 16%,#c9f77d08 46%,transparent 70%);box-shadow:0 0 0 16px #c9f77d05,0 0 0 32px #c9f77d03,0 0 75px #c9f77d15;animation:orb-breathe 4s ease-in-out infinite}.voice-orb::before,.voice-orb::after{content:"";position:absolute;inset:17px;border:1px solid #c9f77d1d;border-radius:50%}.voice-orb::after{inset:36px;border-color:#ffffff0b}.voice-orb span{position:absolute;left:50%;top:50%;width:28px;height:28px;transform:translate(-50%,-50%);border-radius:50%;background:#d3ff8b;box-shadow:0 0 24px #c9f77d,0 0 70px #c9f77d66}.voice-orb i{position:absolute;right:28px;top:34px;width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 16px var(--accent)}.voice-brand{margin:0 0 12px;color:#aebaa9;font-size:10px;letter-spacing:3px}.voice-brand em{color:var(--accent);font-style:normal;letter-spacing:1px}.voice-stage h1{font-size:30px;letter-spacing:-.5px}.voice-copy{margin:11px 0 14px;color:var(--muted);font-size:12px;line-height:1.9}.voice-bars{display:flex;align-items:center;justify-content:center;gap:4px;height:25px;margin-bottom:22px}.voice-bars i{display:block;width:2px;height:8px;border-radius:3px;background:#8ea97a;opacity:.6}.voice-bars i:nth-child(2),.voice-bars i:nth-child(8){height:14px}.voice-bars i:nth-child(3),.voice-bars i:nth-child(7){height:20px}.voice-bars i:nth-child(4),.voice-bars i:nth-child(6){height:12px}.voice-bars i:nth-child(5){height:24px;background:var(--accent)}.voice-press{display:flex;flex-direction:column;align-items:center;justify-content:center;width:158px;height:158px;border:1px solid #c9f77d55;border-radius:50%;background:#172015;box-shadow:0 0 0 8px #c9f77d06,0 13px 35px #0008}.voice-press:hover{border-color:var(--accent);background:#1c2b19;transform:translateY(-2px)}.voice-press:active,.voice-press.recording{border-color:var(--accent);background:#24391c;box-shadow:0 0 0 14px #c9f77d0b,0 0 55px #c9f77d1c}.mic-icon{display:grid;place-items:center;width:43px;height:43px;margin-bottom:9px;border:1px solid #c9f77d55;border-radius:15px;color:var(--accent)}.mic-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.voice-press strong{font-size:14px;font-weight:520}.voice-press small{margin-top:4px;color:#809080;font-size:10px}.voice-cancel{margin:13px auto 0;color:#8c9890;font-size:11px}.voice-cancel:hover{color:var(--accent);background:none}.voice-foot{display:flex;justify-content:space-between;color:#67746b;font-size:10px;letter-spacing:.6px}.voice-foot i{display:inline-block;width:5px;height:5px;margin-right:6px;border-radius:50%;background:var(--accent);box-shadow:0 0 10px var(--accent)}.voice-foot span:last-child{color:#526056}@keyframes orb-breathe{0%,100%{transform:scale(.98);opacity:.88}50%{transform:scale(1.02);opacity:1}}@keyframes voice-listen{0%,100%{transform:scale(1)}50%{transform:scale(1.04)}}#voice-screen.recording .voice-orb{animation:voice-listen 1.2s ease-in-out infinite}.voice-kicker .kicker-line{width:28px;height:1px;background:var(--accent-dim)}
@media(min-width:700px){#voice-screen{padding:32px 40px 28px}.voice-stage{min-height:520px}.voice-orb{width:210px;height:210px}.voice-stage h1{font-size:42px}.voice-foot{max-width:900px;width:100%;margin:0 auto}}
@media(max-height:700px) and (max-width:699px){#voice-screen{padding-top:18px}.voice-stage{min-height:0}.voice-orb{width:126px;height:126px;margin:2px 0 14px}.voice-orb::before{inset:12px}.voice-orb::after{inset:25px}.voice-orb span{width:21px;height:21px}.voice-orb i{right:21px;top:25px;width:5px;height:5px}.voice-brand{margin-bottom:7px}.voice-stage h1{font-size:25px}.voice-copy{margin:7px 0 10px}.voice-bars{margin-bottom:13px}.voice-press{width:126px;height:126px}.mic-icon{width:35px;height:35px;margin-bottom:5px}.voice-press strong{font-size:12px}.voice-press small{font-size:9px}}
@media(prefers-reduced-motion:reduce){.voice-orb{animation:none!important}}
