:root{font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--desktop: #f1f7fc;--surface: #ffffff;--chrome: #f6f9fd;--text: #08275f;--muted: #526681;--line: #d6e2ef;--frame: #d6e2ef;--focus: #1568d1;--selected: #eaf4ff;--code: #f1f5fb;--danger: #a83424;--accent: #bf3900;--on-accent: #ffffff;--sky: #e0f6ff;color-scheme:light}:root[data-theme=dark]{color-scheme:dark;--desktop: #111820;--surface: #18222d;--chrome: #1c2936;--text: #e3eaf2;--muted: #b0bfd0;--line: #45566a;--frame: #45566a;--focus: #9bcaff;--selected: #21384c;--code: #111c27;--danger: #ffafa4;--accent: #ffae80;--on-accent: #29190f;--sky: #1c3041}*{box-sizing:border-box}body{margin:0;background:var(--desktop);color:var(--text);font-size:16px}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.48}button,a,input,textarea,summary{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--focus)}a{color:var(--focus);text-underline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:32px;line-height:1.35;letter-spacing:-.6px;font-weight:600;margin-bottom:14px}h2{font-size:17px;font-weight:600;margin:0}h3{font-size:16px;font-weight:600;margin-bottom:12px}p{line-height:1.65}small,.small-note{font-size:13px;color:var(--muted);line-height:1.7}svg{flex:none}button svg{pointer-events:none}.desktop{min-height:100dvh;display:grid;place-items:center;padding:40px 24px}.retro-window{width:min(920px,100%);height:600px;max-height:calc(100dvh - 80px);border:1px solid var(--frame);border-radius:16px;box-shadow:0 0 0 1px #fff8 inset,0 10px 24px #202b3520,0 2px 4px #202b352a;background:var(--surface);padding:3px;display:flex;flex-direction:column;overflow:hidden}.retro-window.chat-window{width:min(1020px,100%);height:min(820px,calc(100dvh - 80px))}.title-bar{min-height:50px;background:var(--surface);color:#fff;display:flex;align-items:center;gap:14px;padding:0 18px;border-bottom:1px solid #436d97;flex-shrink:0;box-shadow:inset 0 1px #ffffff50}.brand{display:flex;align-items:center;gap:12px;font-size:21px;font-weight:500;white-space:nowrap}.brand svg{width:26px;height:26px}.title-tools{margin-left:auto;display:flex;align-items:center;gap:15px}.language-switch{border:0;background:transparent;color:inherit;padding:7px 3px;font-size:14px;display:flex;gap:10px;align-items:center}.language-switch span[aria-hidden]{opacity:.5}.language-switch .inactive{opacity:.72}.title-tools>.icon-button{border-left:1px solid #ffffff35;border-radius:0;padding-left:17px;width:38px}.title-bar .icon-button:hover{background:#ffffff16}.icon-button{display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:inherit;width:34px;height:34px;padding:6px;border-radius:10px}.icon-button:hover{background:var(--selected)}.title-model{display:flex;align-items:center;gap:6px;border:0;background:transparent;color:inherit;padding:5px 7px;font-size:14px;max-width:180px}.title-model svg{width:14px}.title-model:hover{background:#ffffff16}.app-body{flex:1;min-height:0;display:flex;flex-direction:column}.setup{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px 30px;gap:0}.setup h1{max-width:600px}.welcome .subtitle{font-size:19px;color:var(--muted);margin:0 0 44px}.retro-button{display:inline-flex;justify-content:center;align-items:center;gap:12px;min-height:38px;padding:8px 18px;border:1px solid #909da8;border-radius:10px;background:var(--surface);color:var(--text);box-shadow:inset 0 1px 0 var(--inset),0 1px 2px #00000015;font-size:14px;line-height:1.5}.retro-button:hover{filter:brightness(1.035)}.retro-button:active{box-shadow:inset 0 1px 3px #0003;transform:translateY(1px)}.retro-button.primary{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:inset 0 1px #ffffff75,0 1px 2px #0002}.retro-button.start-button{min-width:232px;height:56px;font-size:20px;gap:20px}.start-button svg{width:25px;height:25px}.status-bar{background:var(--chrome);min-height:43px;border-top:1px solid var(--line);display:flex;align-items:center;gap:12px;padding:7px 18px;font-size:13px;color:var(--muted);flex-shrink:0}.status-bar svg{width:20px;height:20px}.status-bar .subtle-settings{margin-left:auto;width:27px;height:27px}.local-dot{width:7px;height:7px;display:inline-block;background:#4d8865;border-radius:50%;margin-right:8px}.status-local{display:flex;align-items:center}.chat-disclaimer{margin-left:auto;font-size:11px;text-align:right}.text-button{border:0;background:transparent;color:var(--focus);padding:6px 0;text-underline-offset:3px;font-size:14px;line-height:1.5}.text-button:hover{text-decoration:underline}.setup>.text-button{margin-top:14px}.setup>small{margin-top:20px}.recommendation h1{margin-bottom:4px}.recommendation-label{color:var(--focus);font-size:13px;margin-bottom:16px}.model-name{color:var(--muted);font-size:14px;margin-bottom:15px}.recommendation p:not(.recommendation-label):not(.model-name){margin-bottom:10px}.download-size{font-size:14px;color:var(--muted)}.recommendation .retro-button{margin-top:15px;min-width:220px}.download-progress{width:min(380px,100%);margin:25px 0 12px}.progress-track{height:24px;border:1px solid #8c9ba7;background:var(--chrome);padding:3px;box-shadow:inset 1px 1px 3px #0002;border-radius:2px}.progress-segments{height:100%;background:repeating-linear-gradient(to right,#5a9566 0,#75b480 10px,transparent 10px,transparent 13px);max-width:100%;transition:width .15s linear}.progress-caption{display:flex;justify-content:space-between;color:var(--muted);font-size:13px;margin-top:12px;gap:10px}.activity{display:block;width:22px;height:22px;border:2px solid var(--line);border-top-color:var(--focus);border-radius:50%;animation:spin 1s linear infinite;margin:14px}.help-text{max-width:480px;color:var(--muted)}.setup>svg{width:34px;height:34px;margin-bottom:25px}.setup:not(.welcome) h1{font-size:25px}.retro-dialog{background:var(--surface);color:var(--text);border:1px solid var(--frame);padding:3px;border-radius:16px;box-shadow:0 15px 60px #0004;width:min(530px,calc(100% - 28px));max-height:calc(100dvh - 50px);overflow:hidden}.retro-dialog::backdrop{background:#202d3d55}.retro-dialog .title-bar{justify-content:space-between;min-height:45px;padding:0 12px}.dialog-content{padding:24px;max-height:calc(100dvh - 110px);overflow:auto;overscroll-behavior:contain}.button-row{display:flex;gap:10px;flex-wrap:wrap}.confirm-body p{margin-bottom:20px}.model-row{padding:20px 0;border-bottom:1px solid var(--line)}.model-row:first-child{padding-top:0}.model-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.model-heading h3{margin:0;font-size:18px}.model-heading span{font-size:12px;color:var(--muted)}.model-row p{font-size:14px;margin:9px 0}.model-row .model-source{color:var(--muted);font-size:12px}.model-controls{display:flex;gap:16px;margin:16px 0}.model-list>.small-note{margin-top:20px;margin-bottom:0}details{font-size:13px;color:var(--muted);margin-top:16px}summary{cursor:pointer;width:fit-content;padding:6px 0}dl{display:grid;grid-template-columns:minmax(100px,1fr) 1.8fr;gap:10px 15px;font-size:12px;line-height:1.7}dt{color:var(--muted)}dd{margin:0;overflow-wrap:anywhere}.history-toolbar{display:flex;justify-content:space-between;align-items:center}.history-group{margin-top:25px}.history-group h3{font-size:12px;color:var(--muted);font-weight:400}.history-row{display:flex;align-items:center;border-radius:10px}.history-row:hover{background:var(--selected)}.history-open{flex:1;border:0;background:transparent;text-align:left;color:var(--text);padding:12px 8px;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-row .icon-button{opacity:0}.history-row:hover .icon-button,.history-row:focus-within .icon-button{opacity:1}.empty-list{margin:40px 0;color:var(--muted);font-size:14px;text-align:center}.settings-content>section,.settings-content>fieldset{margin:0 0 26px}.settings-content fieldset{border:0;padding:0}.settings-content legend{font-size:15px;font-weight:600;margin-bottom:14px;padding:0}.option-row{display:flex;gap:18px;flex-wrap:wrap;font-size:14px}.option-row label{display:flex;align-items:center;gap:6px}.option-row input{accent-color:var(--focus)}.storage-stats{grid-template-columns:1fr auto;font-size:13px}.settings-content .small-note{margin-top:14px}.danger-actions{display:grid;gap:8px;margin-top:25px}.danger-actions button{border:0;background:none;color:var(--danger);width:fit-content;padding:6px 0;font-size:13px}.chat-layout{display:flex;flex-direction:column;flex:1;min-height:0}.conversation{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}.message-list{max-width:760px;margin:auto;padding:30px 35px 14px}.message{position:relative;margin-bottom:27px;line-height:1.75;font-size:16px;overflow-wrap:anywhere}.message p{margin-bottom:12px}.speaker{font-size:12px;color:var(--muted);font-weight:600;margin-bottom:8px}.message.user{background:var(--selected);padding:15px 20px;border:1px solid var(--line);border-radius:10px}.user-content{white-space:pre-wrap;margin:0!important}.message.assistant{padding:2px 20px}.message h1{font-size:24px;letter-spacing:0}.message h2{font-size:21px}.message h3{font-size:18px}.message li{margin:5px 0}.message-actions{display:flex;gap:4px;opacity:0;margin-top:-3px}.message:hover .message-actions,.message:focus-within .message-actions{opacity:1}.message-actions .icon-button{width:28px;height:28px;color:var(--muted)}.message-actions svg{width:16px;height:16px}.chat-empty{min-height:100%;display:flex;align-items:center;justify-content:center;padding:30px;text-align:center}.chat-empty h1{font-size:25px;font-weight:500}.composer{display:flex;gap:12px;border-top:1px solid var(--line);padding:18px 22px;background:var(--surface);align-items:flex-end}.composer textarea{flex:1;min-width:0;max-height:180px;resize:vertical;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:inset 1px 1px 2px #0000000c;color:var(--text);padding:12px 14px;font-size:16px;line-height:1.6}.composer textarea::placeholder{color:var(--muted)}.composer .send-button{width:46px;height:46px;background:var(--accent);color:#fff;border:1px solid var(--accent);box-shadow:inset 0 1px #fff6}.thinking{color:var(--muted)}.code-block{position:relative;background:var(--code);border:1px solid var(--line);border-radius:10px;margin:14px 0}.code-block pre{overflow:auto;margin:0;padding:35px 16px 16px;font-size:13px;line-height:1.65}.code-copy{position:absolute;right:8px;top:5px;border:0;background:var(--code);color:var(--muted);font-size:11px;padding:3px 6px}code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.87em;background:var(--code);padding:2px 4px}pre code{padding:0}.table-scroll{overflow:auto}table{border-collapse:collapse;font-size:14px}td,th{padding:8px 12px;border:1px solid var(--line);text-align:left}blockquote{margin-left:0;border-left:3px solid var(--line);padding-left:16px;color:var(--muted)}.context-note,.chat-error{font-size:12px;margin:0;padding:8px 24px;color:var(--muted);border-top:1px solid var(--line);line-height:1.6}.chat-error{color:var(--danger)}.chat-error .text-button{margin-left:10px}.toast{position:fixed;bottom:20px;left:50%;transform:translate(-50%);background:var(--surface);border:1px solid var(--line);padding:12px 18px;border-radius:10px;box-shadow:0 3px 15px #0002;font-size:14px;display:flex;align-items:center;gap:15px;max-width:90vw}.global-error{padding:8px 16px;background:var(--chrome);color:var(--danger);font-size:13px;margin:0;line-height:1.7}html[lang=km] body{font-size:17px}html[lang=km] h1{line-height:1.75;letter-spacing:0;font-size:28px}html[lang=km] .subtitle,html[lang=km] .message{font-size:18px;line-height:1.9}html[lang=km] .message p{line-height:1.9}html[lang=km] .retro-button,html[lang=km] .text-button{line-height:1.8}html[lang=km] .chat-disclaimer{font-size:12px}.app-menu{display:flex;align-items:center;gap:10px}.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}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(hover:none){.message-actions,.history-row .icon-button{opacity:1}}@media(max-width:640px){.desktop{padding:0;display:block;height:100dvh}.retro-window,.retro-window.chat-window{width:100%;height:100dvh;max-height:none;border-radius:0;border:0;padding:0;box-shadow:none}.title-bar{min-height:54px;padding:0 13px;gap:8px}.brand{font-size:18px;gap:8px}.brand svg{width:22px}.title-tools{gap:8px}.language-switch{font-size:13px;gap:6px}.title-tools>.icon-button{padding-left:8px;width:30px}.title-model{font-size:13px;padding:5px 0;max-width:100px}.title-model svg{width:12px}.chat-window .brand{display:none}.setup{padding:30px 22px}.setup h1{font-size:27px}.welcome .subtitle{font-size:16px;margin-bottom:35px}.status-bar{padding:8px 14px;min-height:42px;font-size:12px}.chat-disclaimer{display:none}.message-list{padding:24px 10px 8px}.message.assistant{padding:0 12px}.message.user{padding:12px}.message{font-size:16px}.composer{padding:12px;gap:8px;padding-bottom:max(12px,env(safe-area-inset-bottom))}.composer textarea{padding:10px;font-size:16px}.retro-dialog{max-height:calc(100dvh - 24px)}.dialog-content{padding:20px;max-height:calc(100dvh - 85px)}html[lang=km] h1{font-size:25px}.chat-empty h1{font-size:24px}.option-row{gap:13px}.retro-button.start-button{min-width:200px;height:50px;font-size:18px}}progress.progress-track{display:block;width:100%;appearance:none}progress::-webkit-progress-bar{background:var(--chrome)}progress::-webkit-progress-value{background:repeating-linear-gradient(to right,#5a9566 0,#75b480 10px,transparent 10px,transparent 13px)}progress::-moz-progress-bar{background:repeating-linear-gradient(to right,#5a9566 0,#75b480 10px,transparent 10px,transparent 13px)}@font-face{font-family:Local Khmer;src:url(/fonts/noto-sans-khmer.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+1780-17FF,U+19E0-19FF,U+200B-200D,U+25CC}:root{font-family:system-ui,-apple-system,Segoe UI,Local Khmer,Tahoma,Arial,sans-serif}html[lang=km] .small-note,html[lang=km] small,html[lang=km] .status-bar,html[lang=km] .recommendation-label{font-size:14px;line-height:1.85}.welcome h1{font-size:40px;font-weight:600;letter-spacing:-1px}.welcome .subtitle{font-size:23px}.brand{font-size:22px}.language-switch{font-size:16px}.status-bar{font-size:14px}@media(max-width:640px){.welcome h1{font-size:27px;letter-spacing:-.5px}.welcome .subtitle{font-size:16px}.brand{font-size:18px}.language-switch{font-size:13px}.status-bar,html[lang=km] .status-bar{font-size:12px}}@font-face{font-family:Jakarta;src:url(/fonts/jakarta-400.woff2) format("woff2");font-weight:400;font-display:swap}@font-face{font-family:Jakarta;src:url(/fonts/jakarta-600.woff2) format("woff2");font-weight:600;font-display:swap}@font-face{font-family:Jakarta;src:url(/fonts/jakarta-800.woff2) format("woff2");font-weight:800;font-display:swap}:root{font-family:Jakarta,Local Khmer,system-ui,sans-serif}.desktop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;padding:32px 24px}.retro-window{width:min(1000px,100%);height:680px;max-height:calc(100dvh - 125px);padding:0;border-radius:20px;box-shadow:0 16px 48px #08275f0a}.retro-window.chat-window{width:min(1060px,100%);height:min(840px,calc(100dvh - 125px))}.title-bar{background:var(--surface);color:var(--text);min-height:76px;padding:0 28px;border-bottom:1px solid var(--line);box-shadow:none}.brand{font-size:23px;font-weight:800;letter-spacing:-.7px}.brand svg{color:var(--focus)}.title-tools{gap:20px}.title-tools>.icon-button{border:1px solid var(--line);border-radius:50%;padding:10px;width:42px;height:42px}.icon-button{width:40px;height:40px;border-radius:10px}.title-bar .icon-button:hover,.title-model:hover{background:var(--selected)}.title-model{min-height:40px;border-radius:9px}.language-switch{font-size:13px;gap:9px;font-weight:600;min-height:44px}.language-switch .inactive{opacity:1;color:var(--muted)}.setup{background:var(--sky);padding:32px}.setup h1{font-weight:800}.welcome h1{font-size:clamp(30px,3.3vw,44px);letter-spacing:-1.6px;margin-bottom:16px}.welcome .subtitle{color:var(--muted);font-size:19px;margin-bottom:32px}.welcome-symbol{width:72px;height:72px;background:var(--text);color:var(--sky);border-radius:24px;display:grid;place-items:center;margin-bottom:28px}.welcome-symbol svg{width:36px;height:36px}.retro-button{border:1px solid var(--line);box-shadow:none;min-height:44px;border-radius:10px;font-weight:600}.retro-button.primary{color:var(--on-accent);box-shadow:none}.retro-button:hover{filter:brightness(.97)}.retro-button:active{box-shadow:none}.retro-button.start-button{min-width:200px;height:54px;font-size:18px}.status-bar{position:relative;min-height:54px;padding:12px 26px;background:var(--surface);font-size:12px;border-top:0}.status-bar:before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(to right,#0879ff 0% 20%,#ff641b 20% 40%,#ffcd36 40% 60%,#00aaa5 60% 80%,#8e43ca 80%)}.local-dot{background:#0ba667}.sponsor{display:flex;align-items:center;justify-content:center;gap:10px;color:var(--muted);text-decoration:none;font-size:12px;min-height:28px;flex-shrink:0}.sponsor img{width:135px;height:27px;object-fit:contain}.sponsor:hover span{text-decoration:underline}.sponsor-dark,[data-theme=dark] .sponsor-light{display:none}[data-theme=dark] .sponsor-dark{display:block}.retro-dialog{padding:0;border-radius:16px;box-shadow:0 24px 80px #08275f30}.retro-dialog::backdrop{background:#081a3b66}.retro-dialog .title-bar{min-height:66px;padding:0 24px}.retro-dialog h2{font-size:20px;font-weight:800}.dialog-content{max-height:calc(100dvh - 140px);padding:26px}.model-heading h3{font-weight:800}.recommendation-label{color:var(--text);background:var(--surface);border:1px solid var(--line);padding:6px 14px;border-radius:20px}.progress-track{height:12px;border:0;padding:0;box-shadow:none;border-radius:10px;overflow:hidden}progress::-webkit-progress-bar{background:var(--line);border-radius:10px}progress::-webkit-progress-value{background:var(--focus);border-radius:10px}progress::-moz-progress-bar{background:var(--focus);border-radius:10px}.chat-empty h1{font-weight:800;font-size:30px;letter-spacing:-1px}.message.user{border:0;border-radius:14px}.message-list{padding-top:40px}.composer{max-width:850px;width:100%;margin:0 auto;border:0;padding:18px 30px 24px}.composer textarea{border-radius:12px;box-shadow:none;background:var(--chrome);padding:14px 16px}.composer .send-button{width:54px;height:54px;border-radius:12px;color:var(--on-accent);box-shadow:none}.code-block{border-radius:12px}html[lang=km] h1{letter-spacing:0}html[lang=km] .welcome h1{font-size:36px}html[lang=km] .sponsor{font-size:13px}@media(max-width:640px){.desktop{height:100dvh;padding:0;gap:0;justify-content:flex-start}.retro-window,.retro-window.chat-window{width:100%;height:auto;max-height:none;flex:1;min-height:0;border-radius:0;border:0;box-shadow:none}.title-bar{min-height:68px;padding:0 18px;gap:8px}.brand{font-size:20px}.title-tools{gap:10px}.title-tools>.icon-button{width:38px;height:38px;padding:8px}.language-switch{font-size:12px;gap:6px}.setup{padding:26px 20px;overflow-y:auto}.welcome h1{font-size:30px;letter-spacing:-1px}html[lang=km] .welcome h1{font-size:27px}.welcome .subtitle{font-size:15px;margin-bottom:28px}.welcome-symbol{width:60px;height:60px;border-radius:20px;margin-bottom:24px}.status-bar{min-height:46px;padding:10px 16px;font-size:11px}.sponsor{width:100%;padding:12px 16px max(12px,env(safe-area-inset-bottom));background:var(--surface);font-size:11px}.sponsor img{width:120px;height:24px}.composer{padding:12px;gap:8px}.composer textarea{padding:12px}.composer .send-button{width:48px;height:50px}.chat-empty h1{font-size:25px}.retro-dialog .title-bar{padding:0 20px}.dialog-content{padding:20px;max-height:calc(100dvh - 100px)}}@media(max-height:620px)and (min-width:641px){.desktop{padding:12px;gap:8px}.retro-window,.retro-window.chat-window{max-height:calc(100dvh - 60px)}.setup{overflow:auto;justify-content:flex-start}.welcome-symbol{display:none}}.workspace.desktop{height:100dvh;min-height:0;padding:0;gap:0;display:flex;flex-direction:row;align-items:stretch;justify-content:flex-start;overflow:hidden;background:var(--surface)}.workspace .retro-window,.workspace .retro-window.chat-window{flex:1;min-width:0;width:auto;height:100%;max-height:none;border:0;padding:0;border-radius:0;box-shadow:none}.workspace .title-bar{min-height:64px;border-bottom:0;padding:0 24px;gap:16px}.workspace .brand{font-size:20px}.workspace .chat-window>.title-bar>.brand{display:none}.workspace .title-tools{gap:14px}.workspace .title-tools>.icon-button{border:0;width:36px;height:36px}.workspace .app-menu{gap:10px}.workspace .title-model{font-size:17px;font-weight:600;padding:6px 10px}.header-local{display:flex;align-items:center;font-size:12px;color:var(--muted);white-space:nowrap}.chat-sidebar{width:256px;flex-shrink:0;background:var(--chrome);display:flex;flex-direction:column;padding:0 14px 18px}.sidebar-brand{height:64px;display:flex;align-items:center;gap:10px;padding:0 10px;font-size:19px;letter-spacing:-.5px}.sidebar-brand svg{color:var(--focus)}.chat-sidebar .history-content{display:flex;flex-direction:column;flex:1;min-height:0;overflow-y:auto;padding-top:12px}.chat-sidebar .history-toolbar{display:contents}.chat-sidebar .history-toolbar>.retro-button{order:-1;justify-content:flex-start;border:0;background:transparent;padding:10px;margin-bottom:10px}.chat-sidebar .history-toolbar>.retro-button:hover{background:var(--selected)}.chat-sidebar .history-toolbar>.history-settings{order:2;margin-top:auto;margin-bottom:12px}.chat-sidebar .history-group{margin-top:18px}.chat-sidebar .history-group h3{padding:0 10px;font-size:12px;margin-bottom:8px}.history-row.selected{background:var(--selected)}.chat-sidebar .history-open{font-size:13px;padding:10px}.chat-sidebar .history-row .icon-button{width:30px;height:32px}.chat-sidebar .empty-list{font-size:12px;text-align:left;padding:0 10px;line-height:1.8}.chat-sidebar .sponsor{border-top:1px solid var(--line);padding:16px 10px 0;align-items:flex-start;flex-direction:column;gap:6px;font-size:10px}.chat-sidebar .sponsor img{width:125px;height:25px}.with-sidebar .header-new-chat{display:none}.workspace .conversation{scrollbar-gutter:stable}.workspace .message-list{max-width:800px;padding:22px 28px 8px}.workspace .message{font-size:16px;line-height:1.7;margin-bottom:24px}.workspace .message.user{width:fit-content;max-width:85%;margin-left:auto;padding:10px 18px;background:var(--selected);border:0;border-radius:20px}.workspace .message.assistant{padding:0}.workspace .message p{line-height:1.7;margin-bottom:12px}.workspace .message p:last-child{margin-bottom:0}.workspace .message ol,.workspace .message ul{padding-left:24px;margin:12px 0}.workspace .message li{margin:8px 0;padding-left:3px}.workspace .message-actions{margin-top:10px;opacity:1}.workspace .message-actions .icon-button{opacity:.65}.workspace .message-actions .icon-button:hover{opacity:1}.workspace .composer{position:relative;flex-shrink:0;align-items:flex-end;width:calc(100% - 48px);max-width:744px;margin:8px auto 0;padding:10px 12px 10px 20px;gap:10px;border:1px solid var(--line);border-radius:26px;background:var(--chrome)}.workspace .composer:focus-within{border-color:var(--focus)}.workspace .composer textarea{min-height:32px;max-height:180px;resize:none;box-shadow:none;padding:4px 0;border:0;border-radius:0;background:transparent;line-height:1.6;outline:none}.workspace .composer .send-button{width:36px;height:36px;border:0;border-radius:50%;box-shadow:none}.workspace .composer .send-button svg{width:20px;height:20px}.workspace .composer .send-button svg:has(path){transform:rotate(-90deg)}.workspace .composer .send-button:disabled{color:var(--muted);background:var(--line);opacity:.7}.workspace .status-bar{min-height:40px;padding:8px 24px 12px;border:0;justify-content:center;flex-wrap:wrap;gap:8px 16px}.workspace .status-bar:before{display:none}.workspace .chat-disclaimer{display:block;margin:0;text-align:center;font-size:10px}.workspace .status-bar>.icon-button{width:28px;height:28px}.workspace .sponsor{min-height:0}.workspace .footer-sponsor .sponsor{font-size:10px;gap:7px;padding:0;background:none}.workspace .footer-sponsor .sponsor img{width:100px;height:20px}.with-sidebar .chat-window .footer-sponsor{display:none}.workspace .chat-empty{min-height:0;padding:0 24px 28px}.workspace .chat-empty h1{font-size:30px;font-weight:600;margin:0;letter-spacing:-1px}.workspace .is-empty{justify-content:center;padding-bottom:12vh}.workspace .is-empty .conversation{flex:0 0 auto;overflow:visible}.workspace .setup{background:var(--surface);padding:30px 24px 12vh}.workspace .welcome-symbol{width:48px;height:48px;border-radius:16px;margin-bottom:22px;background:var(--selected);color:var(--focus)}.workspace .welcome-symbol svg{width:26px;height:26px}.workspace .welcome h1{font-size:32px;font-weight:600;letter-spacing:-1px}.workspace .welcome .subtitle{font-size:16px;margin-bottom:28px}.workspace .retro-button.start-button{min-width:150px;height:46px;font-size:15px}.workspace .setup:not(.welcome) h1{font-size:25px;font-weight:600}.workspace .context-note,.workspace .chat-error{border:0;width:min(800px,100%);margin:0 auto}html[lang=km] .workspace .message,html[lang=km] .workspace .message p{font-size:17px;line-height:1.9}html[lang=km] .workspace h1{letter-spacing:0}@media(max-width:899px){.chat-sidebar{display:none}.with-sidebar .header-new-chat{display:inline-flex}.with-sidebar .chat-window .footer-sponsor{display:block}.workspace .title-bar{padding:0 14px;min-height:58px;gap:6px}.workspace .app-menu{gap:2px}.workspace .title-model{font-size:15px;padding:4px 8px}.header-local{display:none}.workspace .title-tools{gap:6px}.workspace .message-list{padding:18px 20px 6px}.workspace .message.user{max-width:90%}.workspace .composer{width:calc(100% - 28px);padding:9px 10px 9px 16px;border-radius:24px}.workspace .status-bar{padding:8px 14px max(10px,env(safe-area-inset-bottom));gap:6px 12px}.workspace .chat-disclaimer{font-size:9px}.workspace .chat-empty h1{font-size:26px}.workspace .welcome h1,html[lang=km] .workspace .welcome h1{font-size:27px}.workspace .is-empty{padding-bottom:10vh}}@media(max-height:550px){.workspace .setup{padding:16px 24px}.workspace .is-empty{padding-bottom:0}.workspace .chat-empty{padding-bottom:12px}}.history-settings{display:inline-flex;align-items:center;gap:10px;background:transparent;border:0;color:var(--text);font-size:13px;padding:12px 10px;border-radius:8px;cursor:pointer}.history-settings:hover{background:var(--selected)}@media(max-width:899px){.history-drawer.retro-dialog{margin:0;width:min(320px,86vw);height:100dvh;max-height:none;border-radius:0 16px 16px 0;border-left:0}.history-drawer .dialog-content{max-height:calc(100dvh - 66px)}}.model-filters{display:flex;gap:6px;padding-bottom:20px;flex-wrap:wrap}.model-filters button{border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:20px;padding:8px 16px;font-size:13px;min-height:40px}.model-filters button[aria-pressed=true]{background:var(--selected);color:var(--text);border-color:var(--focus)}.model-attribution{font-size:11px;color:var(--muted);line-height:1.6}.model-discovery{padding-bottom:16px}.model-discovery .retro-button{margin:8px 0}:root{--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Local Khmer", monospace}.workspace .title-bar,.chat-sidebar,.chat-toolbar,.composer-tools,.artifact-panel,.file-chip,.retro-dialog h2{font-family:var(--mono)}.workspace .chat-sidebar{width:230px;flex-basis:230px;background:var(--chrome)}.sidebar-brand{font-family:var(--mono);letter-spacing:-.8px;font-size:23px}.history-toolbar>.retro-button{background:var(--accent);color:var(--on-accent);border-color:var(--accent);border-radius:7px;justify-content:center}.history-search{width:100%;min-width:0;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:6px;padding:11px 9px;font:11px var(--mono);margin-bottom:12px}.history-row,.workspace .history-row .history-open{font-size:12px}.workbench{display:flex;flex:1;min-height:0;min-width:0;width:100%}.workbench>.chat-layout{flex:1;min-width:0;width:0}.chat-toolbar{display:flex;align-items:center;gap:4px;padding:6px 24px;border-bottom:1px solid var(--line);min-height:44px}.chat-title{font:12px var(--mono);color:var(--muted);text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;background:none;flex:1;padding:7px 0}.chat-title:hover{color:var(--text)}.workbench .chat-empty h1{font:600 clamp(22px,2.2vw,31px)/1.4 var(--mono);letter-spacing:-1px;margin:10px 0}.workbench .chat-empty p{color:var(--muted);font-size:14px;max-width:430px;line-height:1.7;margin:0 auto}.empty-code{color:var(--accent);font:600 34px var(--mono)}.workbench .message-list{padding:26px 32px 12px;max-width:800px}.workbench .message{font-size:15px;line-height:1.8;margin-bottom:28px}.workbench .code-block pre{max-height:280px;overflow:auto;font:12px/1.8 var(--mono);padding-top:38px}.workbench .work-composer{display:flex;flex-direction:column;align-items:stretch;gap:6px;border-radius:10px;padding:12px 14px 8px;max-width:744px;width:calc(100% - 48px);margin:12px auto}.work-composer textarea{width:100%;min-height:62px;padding:6px 2px;resize:none;font-size:14px;line-height:1.6}.composer-tools{display:flex;align-items:center;gap:8px;width:100%}.composer-hint{font:10px var(--mono);color:var(--muted);flex:1}.mode-switch{display:flex;gap:2px;background:var(--chrome);padding:3px;border-radius:6px}.mode-switch button{font:11px var(--mono);background:none;border:1px solid transparent;color:var(--muted);padding:6px 11px;border-radius:4px}.mode-switch button[aria-pressed=true]{background:var(--surface);border-color:var(--line);color:var(--text);box-shadow:0 1px 2px #08275f0b}.workspace .work-composer .send-button{border-radius:6px;width:36px;height:36px;min-width:36px}.file-chip{display:inline-flex;align-items:center;gap:7px;font-size:11px;line-height:1.6;max-width:100%;overflow-wrap:anywhere;border:1px solid var(--line);border-radius:6px;background:var(--chrome);color:var(--text);padding:8px 10px}.file-chip svg{width:16px;min-width:16px;height:16px}.file-chip>button:not(.icon-button){display:flex;align-items:center;gap:6px;font:inherit;color:inherit;background:none;border:0;min-width:0;overflow-wrap:anywhere;text-align:left}.file-chip .icon-button{height:22px;width:22px;min-width:22px}.message-files,.draft-files{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.message-files:empty{display:none}.file-notice{font-size:11px;line-height:1.7;color:var(--muted);margin:3px 0}.artifact-panel{width:42%;max-width:640px;min-width:320px;background:var(--chrome);border-left:1px solid var(--line);display:flex;flex-direction:column;min-height:0;padding:0 14px 10px}.artifact-header{display:flex;align-items:center;gap:8px;min-height:72px;padding:12px 0}.artifact-header>div{min-width:0;flex:1;overflow-wrap:anywhere;font-size:13px}.artifact-header small{display:block;margin-top:4px;color:var(--muted);font-size:10px}.artifact-tabs{display:flex;align-items:center;gap:4px;border:1px solid var(--line);border-radius:7px 7px 0 0;padding:5px;background:var(--surface)}.artifact-tabs>button{font:11px var(--mono);padding:9px 12px;border:0;background:none;color:var(--muted)}.artifact-tabs>button[aria-pressed=true]{color:var(--text);box-shadow:inset 0 -2px var(--accent)}.artifact-tabs>.retro-button{margin-left:auto;font-size:10px}.source-editor{flex:1;min-height:0;width:100%;resize:none;border:1px solid var(--line);border-top:0;border-radius:0 0 7px 7px;background:var(--surface);color:var(--text);font:12px/1.8 var(--mono);tab-size:2;padding:18px;white-space:pre;overflow:auto}.artifact-panel iframe{flex:1;min-height:0;width:100%;background:#fff;border:1px solid var(--line);border-top:0;border-radius:0 0 7px 7px}.preview-note,.artifact-footnote{font:10px/1.7 var(--mono);color:var(--muted);margin:8px 0}.preview-note{padding:8px;margin:0;border-inline:1px solid var(--line);background:var(--surface)}.workspace .is-empty .conversation{flex:1;display:flex;align-items:center;justify-content:center}.workspace .is-empty .work-composer{margin-bottom:max(30px,14vh)}.workspace .is-empty .chat-empty{padding:32px 20px 10px;margin:0}.workspace .status-bar{font-size:10px;min-height:30px}@media(min-width:1400px){.artifact-panel{width:44%}}@media(max-width:1100px){.has-artifact .composer-hint{display:none}.has-artifact .message-list{padding-inline:20px}.has-artifact .work-composer{width:calc(100% - 28px)}}@media(max-width:899px){.artifact-panel{position:fixed;inset:60px 0 0;width:100%;max-width:none;min-width:0;z-index:20;border-left:0}.artifact-header{min-height:58px}.workbench .message-list{padding:20px 18px}.workbench .work-composer{width:calc(100% - 24px)}.chat-toolbar{padding-inline:14px}.workspace .is-empty .work-composer{margin-bottom:32px}.workbench .chat-empty h1{font-size:24px}.composer-hint{font-size:9px}}@media(max-width:400px){.composer-hint{display:none}.mode-switch{margin-left:auto}}html[lang=km] .workbench{line-height:1.9}html[lang=km] .composer-hint{display:none}.workspace .chat-sidebar .history-toolbar>.retro-button,.workspace .chat-sidebar .history-toolbar>.retro-button:hover{background:var(--accent);color:var(--on-accent);justify-content:center;border-radius:7px}.workspace .work-composer{background:var(--surface)}@media(max-width:899px){.artifact-panel{inset:0;z-index:60}}.artifact-card{display:flex;align-items:center;gap:12px;width:100%;max-width:440px;padding:14px 16px;margin:12px 0;background:var(--chrome);color:var(--text);border:1px solid var(--line);border-radius:7px;text-align:left;font:12px var(--mono)}.artifact-card>span{flex:1;min-width:0;overflow-wrap:anywhere}.artifact-card small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:6px}.artifact-card:hover{border-color:var(--focus);background:var(--selected)}.workbench .code-block pre code{font:inherit}.workspace .title-model span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.workspace .title-model svg{flex-shrink:0}@media(max-width:899px){.workspace .title-model{max-width:145px;font-size:13px;padding-inline:4px}.workspace .title-tools{gap:6px}.workspace .title-tools .language-switch{font-size:12px}.workspace .app-menu{gap:4px}.workspace .title-bar{padding-inline:12px;gap:8px}.composer-tools>.icon-button{min-height:40px;min-width:40px}}.header-context{color:var(--muted);font:10px var(--mono);white-space:nowrap}@media(max-width:1100px){.header-context{display:none}}.model-library{width:min(1060px,calc(100vw - 32px))}.device-summary{padding:12px 16px;border:1px solid var(--line);border-radius:10px;background:var(--chrome)}.device-summary-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.device-summary-heading>strong{font-size:13px}.device-specs{display:grid;grid-template-columns:2fr 1fr 1fr;gap:20px;margin:8px 0}.device-specs div,.model-comparison>div{display:flex;flex-direction:column;gap:5px;min-width:0}.device-specs span,.model-comparison span{color:var(--muted);font-size:11px}.device-specs strong{font-size:13px;overflow-wrap:anywhere}.device-summary .small-note{margin:8px 0 0;font-size:11px}.model-library-intro{margin:16px 0 12px}.model-library-intro h2{margin:0 0 8px;font-size:26px;letter-spacing:-.6px}.model-library-intro p{color:var(--muted);font-size:13px;margin:0}.model-toolbar{display:flex;gap:14px;align-items:center;margin:12px 0}.model-toolbar .model-search{flex:1;margin:0}.model-toolbar select{max-width:45%;min-height:38px;padding:8px;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:6px;font-size:12px}.model-picks-grid,.model-catalog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}.model-library .model-row{padding:20px;border:1px solid var(--line);border-radius:10px;display:flex;flex-direction:column;min-width:0}.model-library .model-filters{padding-bottom:0}.model-library .model-list>.small-note{margin:8px 0;font-size:11px}.model-picks-grid>.model-row:first-child{border-color:var(--accent)}.model-library .model-row .model-heading{display:block}.model-library .model-row .model-heading h3{font-family:inherit;font-size:16px;line-height:1.4}.model-library .model-row .model-heading>span{display:inline-block;margin-top:7px;font-size:10px}.model-library .model-row>p{font-size:12px;line-height:1.7}.model-library .pick-label{color:var(--accent);font-size:10px;font-weight:700;margin:0 0 14px}.model-card-specs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}.model-card-specs>span{font:600 17px var(--mono)}.model-card-specs small{display:block;margin-top:7px;color:var(--muted);font:10px/1.5 var(--mono)}.model-fit{padding:12px;background:var(--chrome);border-left:3px solid var(--focus);border-radius:4px;margin:4px 0 16px}.model-fit>strong{font-size:12px}.model-library .model-fit p{font-size:11px;line-height:1.65;margin:5px 0 0;color:var(--muted)}.model-fit-caution{border-left-color:var(--accent)}.model-fit-blocked{border-left-color:var(--danger)}.model-fit-blocked>strong{color:var(--danger)}.model-row>.retro-button{margin-top:auto;width:100%}.model-review{max-width:740px;margin:24px auto 0}.native-coding-note{margin-top:20px}.model-review h2{font-size:24px;overflow-wrap:anywhere}.model-review>p{font-size:13px;line-height:1.7}.model-review .recommendation-label{margin:24px 0 8px}.model-comparison{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:18px;border:1px solid var(--line);border-radius:8px}.model-comparison strong{font-size:14px;overflow-wrap:anywhere}.model-comparison small{color:var(--muted);font-size:11px}.model-requirements{padding:10px 0}@media(max-width:600px){.model-library .dialog-content{padding:16px}.device-summary{padding:12px}.device-specs{grid-template-columns:1fr 1fr;gap:12px}.device-specs>div:first-child{grid-column:1 / -1}.device-summary-heading{align-items:flex-start}.device-summary-heading .text-button{font-size:11px}.model-toolbar{flex-direction:column;align-items:stretch}.model-toolbar select{max-width:100%}.model-picks-grid,.model-catalog-grid,.model-comparison{grid-template-columns:1fr}.model-library-intro h2{font-size:23px}}.model-search{display:flex;align-items:center;gap:12px;margin-bottom:14px}.model-search input{min-width:0;flex:1;border:1px solid var(--line);border-radius:6px;padding:10px 12px;background:var(--surface);color:var(--text);font:13px var(--mono)}.model-search>span{font:11px var(--mono);color:var(--muted);white-space:nowrap}.model-library .model-heading{gap:12px;align-items:flex-start}.model-library .model-heading h3{font:600 15px/1.5 var(--mono);overflow-wrap:anywhere}.model-library .model-heading>span{font-size:11px;white-space:nowrap}.model-library .model-filters{flex-wrap:wrap}.browse-models{background:none;border:0;color:var(--text);font:12px var(--mono);padding:8px}.workspace .title-model{max-width:330px}.model-library .model-controls .retro-button:disabled{opacity:.65}@media(max-width:899px){.workspace .title-model{max-width:145px}.model-library .model-heading{flex-wrap:wrap}.model-library .model-heading h3{font-size:13px}.model-library .model-heading>span{white-space:normal}.browse-models{font-size:11px;padding-inline:2px}}.model-engine-filter{display:flex;align-items:center;gap:12px;margin:12px 0;font-size:13px}.model-engine-filter select{max-width:100%;min-height:36px;padding:6px 10px;color:inherit;background:var(--surface);border:1px solid var(--line);border-radius:5px;font:inherit}.artifact-runner{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden;border:1px solid var(--line)}.artifact-run-controls{display:flex;gap:8px;padding:8px;background:var(--surface)}.artifact-run-controls select{flex:1;min-width:0}.artifact-run-controls button,.artifact-run-controls select{font:11px var(--mono);padding:8px;color:var(--text);background:var(--chrome);border:1px solid var(--line);border-radius:4px}.artifact-run-controls button:disabled{opacity:.45}.artifact-runner iframe{min-height:140px;border:0;border-radius:0}.artifact-runner iframe[hidden]{display:none}.artifact-output{overflow:auto;max-height:35%;min-height:70px;padding:8px;background:var(--surface)}.artifact-output:only-child,.artifact-run-controls+.artifact-output{max-height:none;flex:1}.artifact-output pre{white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.6 var(--mono);margin:4px 0}.artifact-output .run-error{color:#d24a39}.artifact-card-actions{display:flex;align-items:stretch;gap:5px;margin:10px 0}.artifact-card-actions .artifact-card{flex:1;min-width:0;margin:0}.artifact-play{border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--accent);padding:0 14px;cursor:pointer}.artifact-play:hover{background:var(--chrome)}.artifact-execution{display:flex;flex:1;min-height:0}.artifact-execution[hidden]{display:none}:root{--soft-shadow: 0 16px 60px #08275f09}.workspace .title-bar{min-height:68px;padding-inline:24px}.workspace .setup{padding:64px 24px;background:var(--surface)}.workspace .welcome{background:radial-gradient(ellipse at 50% 30%,var(--selected),transparent 58%)}.eyebrow{font:600 11px/1.6 var(--mono);letter-spacing:.14em;color:var(--muted)}.workspace .welcome h1{font-size:clamp(32px,4vw,52px);letter-spacing:-.045em;max-width:640px}.workspace .welcome-symbol{width:68px;height:68px;border:1px solid var(--line);border-radius:22px;box-shadow:var(--soft-shadow);background:var(--surface)}.workspace .welcome .subtitle{font-size:18px;max-width:450px;line-height:1.7}.welcome-benefits{display:flex;flex-wrap:wrap;justify-content:center;gap:24px;margin-top:48px;color:var(--muted);font-size:12px}.welcome-benefits>span{display:flex;align-items:center;gap:8px}.welcome-benefits svg{width:16px;height:16px}.workspace .retro-button{border-radius:10px;min-height:42px;transition:background .15s,box-shadow .15s}.workspace .retro-button.primary{box-shadow:0 4px 12px #bf390015}.setup-specs{display:grid;grid-template-columns:1fr 1fr;width:min(440px,100%);border:1px solid var(--line);border-radius:14px;margin:20px 0 28px;background:var(--chrome)}.setup-specs>div{padding:18px;display:grid;gap:6px}.setup-specs>div+div{border-left:1px solid var(--line)}.setup-specs strong{font-size:14px}.setup-specs span{font-size:12px;color:var(--muted)}.workspace .loading-screen{padding-block:48px;background:var(--chrome)}.loading-card{width:min(520px,100%);background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:30px;box-shadow:var(--soft-shadow);text-align:left}.loading-topline,.loading-caption{display:flex;justify-content:space-between;align-items:center;gap:12px}.loading-time{color:var(--muted);font:12px var(--mono);font-variant-numeric:tabular-nums}.loading-emblem{width:64px;height:64px;position:relative;display:grid;place-items:center;margin:32px 0 24px;color:var(--focus);background:var(--selected);border-radius:20px}.loading-emblem svg{width:28px;height:28px}.loading-emblem>span{position:absolute;right:-3px;bottom:-3px;width:18px;height:18px;border:3px solid var(--surface);border-top-color:var(--focus);border-right-color:var(--focus);border-radius:50%;animation:loading-turn 1s linear infinite}.workspace .loading-card h1{font-size:26px;margin:0 0 12px;letter-spacing:-.035em}.loading-description{font-size:14px;line-height:1.7;color:var(--muted);margin-bottom:24px}.loading-model{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 0;border-top:1px solid var(--line)}.loading-model strong{font-size:14px}.loading-model>span{font-size:11px;color:var(--muted);text-align:right}.loading-track{height:6px;border-radius:8px;overflow:hidden;background:var(--line);margin-top:8px}.loading-track>span{display:block;height:100%;background:var(--focus);border-radius:inherit;transition:width .25s ease}.loading-track.indeterminate>span{width:35%;animation:loading-sweep 1.6s ease-in-out infinite}.loading-caption{font-size:11px;color:var(--muted);margin:10px 0 28px;font-variant-numeric:tabular-nums}.loading-caption strong{color:var(--text)}.loading-stages{list-style:none;display:flex;justify-content:space-between;gap:8px;margin:0 0 24px;padding:0}.loading-stages li{display:flex;flex:1;align-items:flex-start;gap:7px;color:var(--muted);font-size:11px;line-height:1.6}.loading-stages li>span{flex-shrink:0;display:grid;place-items:center;width:19px;height:19px;border:1px solid var(--line);border-radius:50%;font-size:10px}.loading-stages li[data-state=current]{color:var(--text);font-weight:600}.loading-stages li[data-state=current]>span{background:var(--focus);color:var(--surface);border-color:var(--focus)}.loading-stages li[data-state=done]>span{background:var(--selected);color:var(--focus)}.loading-note{font-size:12px;line-height:1.7;color:var(--muted);padding:14px;background:var(--chrome);border-radius:10px;margin-bottom:20px}.loading-slow{font-size:12px;line-height:1.7;color:var(--muted)}.loading-card>.retro-button{width:100%;justify-content:center}.workspace-loading{min-height:300px;display:flex;flex:1;flex-direction:column;justify-content:center;align-items:center;gap:20px;color:var(--muted)}.model-status-pill{display:inline-flex;align-items:center;gap:7px;background:var(--chrome);color:var(--muted);border:1px solid var(--line);border-radius:30px;padding:7px 11px;font:11px var(--mono)}.model-status-pill>span{width:6px;height:6px;border-radius:50%;background:#298459}.model-status-pill.is-loading>span{background:var(--accent);animation:loading-pulse 1.5s ease-in-out infinite}.model-library.retro-dialog{border-radius:18px;box-shadow:0 24px 100px #081c3333}.model-library .model-list{padding:24px}.model-library .device-summary{border-radius:12px;background:var(--chrome);padding:18px}.model-library .model-filters{gap:6px;padding:5px;background:var(--chrome);border-radius:12px}.model-library .model-filters button{border-radius:8px;padding:9px 14px}.model-library .model-filters button[aria-pressed=true]{background:var(--surface);box-shadow:0 2px 6px #08275f0a;border-color:var(--line)}.model-library .model-row{border:1px solid var(--line);border-radius:14px;padding:22px;background:var(--surface)}.model-library .model-heading{align-items:flex-start;gap:12px}.model-library .model-heading>span{border-radius:20px;background:var(--chrome);padding:4px 8px;font-size:11px;white-space:nowrap}.model-library .model-card-specs{border-radius:10px;background:var(--chrome);padding:14px}.model-library .model-fit{border-radius:10px}.model-library .model-row>.retro-button{margin-top:12px}.model-library .model-row>.text-button{color:var(--danger);margin:12px 0 0 16px}.model-library .model-toolbar input,.model-library .model-toolbar select{border-radius:10px;min-height:42px}.model-discovery{border:1px dashed var(--line);border-radius:12px;padding:18px;margin-top:20px;text-align:left}.model-discovery>p{margin-bottom:0;font-size:12px;line-height:1.7}.model-discovery [role=status]>div{padding:14px;margin-top:10px;border:1px solid var(--line);border-radius:10px}.model-discovery [role=status] a{overflow-wrap:anywhere}.confirm-body{padding:28px}.confirm-body .button-row{justify-content:flex-end;margin-top:24px}.confirm-body .button-row>button:last-child{color:var(--danger);border-color:var(--danger)}@keyframes loading-turn{to{transform:rotate(360deg)}}@keyframes loading-sweep{0%{transform:translate(-100%)}to{transform:translate(390%)}}@keyframes loading-pulse{50%{opacity:.35}}@media(max-width:600px){.workspace .title-bar{padding-inline:12px}.model-status-pill{display:none}.workspace .setup{padding:32px 18px}.loading-card{padding:22px;border-radius:16px}.loading-stages{gap:12px;flex-direction:column}.loading-stages li{align-items:center;font-size:12px}.welcome-benefits{gap:14px;margin-top:32px}.model-library .model-list{padding:14px}.model-library .model-row{padding:16px}.loading-model{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){.loading-emblem>span,.loading-track.indeterminate>span,.model-status-pill.is-loading>span{animation:none}.loading-track.indeterminate>span{width:45%}.loading-track>span,.workspace .retro-button{transition:none}}.workspace.headers-hidden .title-bar,.workspace.headers-hidden .project-heading,.workspace.headers-hidden .project-toolbar{display:none}.headers-restore-bar{display:flex;justify-content:flex-end;flex-shrink:0;min-height:26px;padding:2px 12px;background:var(--surface);border-bottom:1px solid var(--line)}.headers-restore-bar button{border:0;padding:2px 6px;border-radius:4px;background:transparent;color:var(--muted);font:inherit;font-size:11px;cursor:pointer}.headers-restore-bar button:hover{color:var(--text);background:color-mix(in srgb,var(--text) 6%,transparent)}:root[data-theme=paper]{color-scheme:light;--desktop: #e5e5e3;--surface: #fff;--chrome: #f5f5f3;--text: #151515;--muted: #545454;--line: #777;--frame: #171717;--focus: #111;--selected: #e6e6e3;--code: #f1f1ee;--danger: #a32020;--accent: #111;--on-accent: #fff;--sky: #eee;--theme-font: Consolas, "Courier New", "Local Khmer", monospace;--theme-radius: 0px;--theme-terminal: #111;--theme-terminal-ink: #f3f3ef;--soft-shadow: 3px 3px 0 #171717}:root[data-theme=ghost]{color-scheme:dark;--desktop: #010704;--surface: #020b07;--chrome: #06150e;--text: #a4ffd1;--muted: #69bd92;--line: #19583b;--frame: #28734d;--focus: #32ff91;--selected: #0b3623;--code: #031009;--danger: #ff989e;--accent: #32ff91;--on-accent: #001b0b;--sky: #072718;--theme-font: Consolas, "Courier New", "Local Khmer", monospace;--theme-radius: 5px;--theme-terminal: #010905;--theme-terminal-ink: #8effbd;--soft-shadow: 0 0 20px #32ff9110}:root[data-theme=odyssey]{color-scheme:light;--desktop: #82b9f9;--surface: #f8fbff;--chrome: #e0edff;--text: #082773;--muted: #44659c;--line: #abc9f3;--frame: #327bed;--focus: #0054e8;--selected: #b9d7ff;--code: #edf4ff;--danger: #ad2441;--accent: #0865ef;--on-accent: #fff;--sky: #d7ecff;--theme-font: "Trebuchet MS", "Segoe UI", "Local Khmer", sans-serif;--theme-radius: 8px;--theme-terminal: #0d1822;--theme-terminal-ink: #cfecff;--soft-shadow: 0 4px 16px #134d9b20}.theme-picker{max-width:158px;min-height:32px;padding:5px 8px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--text);font:12px var(--mono);cursor:pointer}.theme-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.theme-options label{padding:10px;border:1px solid var(--line);border-radius:6px}.theme-options label:has(input:checked){background:var(--selected);border-color:var(--focus)}:root:is([data-theme=paper],[data-theme=ghost],[data-theme=odyssey]){--mono: Consolas, "Courier New", "Local Khmer", monospace}:root:is([data-theme=paper],[data-theme=ghost],[data-theme=odyssey]) body,:root:is([data-theme=paper],[data-theme=ghost],[data-theme=odyssey]) .workspace :is(.title-bar,.brand,.status-bar,.project-workspace,.agent-panel,.studio-search input,.studio-search kbd,.project-workspace button,.project-workspace select,.project-workspace input,.project-workspace textarea,.retro-dialog h2){font-family:var(--theme-font)}:root:is([data-theme=paper],[data-theme=ghost],[data-theme=odyssey]) .workspace{--focus: inherit;--accent: inherit;--selected: inherit;background:var(--desktop)}:root:is([data-theme=paper],[data-theme=ghost],[data-theme=odyssey]) .project-workspace{--project-editor: var(--surface);--project-panel: var(--chrome);--project-border: var(--line);--project-text: var(--text);--project-muted: var(--muted);--project-accent: var(--focus);--project-hover: var(--code);--project-selection: var(--selected);color-scheme:inherit;padding:8px;gap:6px}:root:is([data-theme=paper],[data-theme=ghost],[data-theme=odyssey]) .agent-panel{--agent-accent: var(--focus);--agent-accent-ink: var(--on-accent);--agent-plan: var(--focus);--agent-ask: var(--text);--agent-auto: var(--focus);--agent-bubble: var(--selected)}:root:is([data-theme=paper],[data-theme=ghost],[data-theme=odyssey]) .workspace :is(.title-bar,.status-bar){background:var(--chrome);color:var(--text);border-color:var(--line)}:root:is([data-theme=paper],[data-theme=ghost],[data-theme=odyssey]) .workspace :is(.studio-tagline,.project-name,.studio-search,.studio-search input,.studio-search kbd){color:var(--muted)}:root:is([data-theme=paper],[data-theme=ghost],[data-theme=odyssey]) .workspace :is(.studio-search,.studio-search kbd){background:var(--surface);border-color:var(--line)}:root:is([data-theme=paper],[data-theme=ghost],[data-theme=odyssey]) .workspace :is(.brand>svg,.agent-empty h3,.agent-empty-mark,.project-folder-icon,.project-file-symbol,.agent-step-glyph){color:var(--focus)}:root:is([data-theme=paper],[data-theme=ghost],[data-theme=odyssey]) .workspace :is(.agent-suggestions button svg,.agent-avatar,.agent-operation){background:var(--selected);color:var(--focus)}:root:is([data-theme=paper],[data-theme=ghost],[data-theme=odyssey]) .workspace :is(.agent-send,.project-runbar .retro-button.primary){background:var(--accent);border-color:var(--accent);color:var(--on-accent)}:root:is([data-theme=paper],[data-theme=ghost],[data-theme=odyssey]) .workspace :is(.project-files,.project-assistant,.project-editor-pane,.project-terminal-panel){border:1px solid var(--line);border-radius:var(--theme-radius)}:root:is([data-theme=paper],[data-theme=ghost],[data-theme=odyssey]) .workspace :is(.project-open-tabs,.project-toolbar,.project-editor-heading,.project-panel-title){background:var(--chrome);color:var(--text);border-color:var(--line)}:root:is([data-theme=paper],[data-theme=ghost],[data-theme=odyssey]) .workspace :is(.retro-button,.retro-dialog,.model-row,.loading-card,.setup-specs,.model-filters,.model-fit,.welcome-symbol,.studio-search,.agent-bubble,.agent-form,.agent-steps,.agent-suggestions button,.studio-file-actions button,.studio-file-actions>span,.project-tree-row,.studio-nav button,.project-open-tab,.theme-picker){border-radius:var(--theme-radius)}:root:is([data-theme=paper],[data-theme=ghost],[data-theme=odyssey]) .workspace .welcome{background:var(--surface)}:root:is([data-theme=paper],[data-theme=ghost],[data-theme=odyssey]) .workspace :is(.project-terminal-panel .execution-terminal,.project-terminal-form,.execution-terminal){background:var(--theme-terminal);color:var(--theme-terminal-ink);border-color:var(--line)}:root:is([data-theme=paper],[data-theme=ghost],[data-theme=odyssey]) .workspace :is(.project-terminal-form input,.project-terminal-prompt,.terminal-output,.project-terminal-form button){color:var(--theme-terminal-ink);caret-color:var(--theme-terminal-ink)}:root:is([data-theme=paper],[data-theme=ghost],[data-theme=odyssey]) .workspace .terminal-titlebar{background:var(--chrome);color:var(--text);border-color:var(--line);font-family:var(--theme-font)}:root:is([data-theme=paper],[data-theme=ghost],[data-theme=odyssey]) .studio-file-actions progress{accent-color:var(--focus)}:root[data-theme=paper] .workspace .title-bar{background:#111;color:#fff;border-bottom:3px double #111}:root[data-theme=paper] .workspace .title-bar :is(button,.brand>svg,.studio-tagline){color:#fff}:root[data-theme=paper] .workspace .title-bar .model-status-pill{background:#222;color:#fff;border-color:#666}:root[data-theme=paper] .workspace :is(.project-tree-row[aria-current=true],.studio-nav button[aria-current],.project-open-tab[aria-selected=true]){background:#151515;color:#fff}:root[data-theme=paper] .workspace .project-tree-row[aria-current=true] *{color:inherit}:root[data-theme=paper] .workspace :is(.agent-steps,.studio-file-actions>span){border-style:dotted}:root[data-theme=paper] .workspace :is(.project-files-heading,.agent-tabs,.project-bottom-tabs){border-bottom:2px solid var(--text)}:root[data-theme=paper] .workspace .retro-button{box-shadow:2px 2px #777}:root[data-theme=ghost] .workspace :is(.brand,.agent-empty h3,.agent-tabs,.project-bottom-tabs){color:var(--focus);text-shadow:0 0 12px #32ff9135}:root[data-theme=ghost] .workspace :is(.agent-tabs,.project-bottom-tabs,.project-files-heading){text-transform:uppercase;letter-spacing:.04em}:root[data-theme=ghost] .workspace :is(.project-tree-row[aria-current=true],.project-open-tab[aria-selected=true]){box-shadow:inset 0 2px var(--focus)}:root[data-theme=ghost] .workspace :is(.retro-button.primary,.agent-send){box-shadow:0 0 14px #32ff9130}:root[data-theme=ghost] .sponsor-light{display:none}:root[data-theme=ghost] .sponsor-dark{display:block}:root[data-theme=odyssey] .workspace.desktop{padding:0}:root[data-theme=odyssey] .workspace .retro-window{border:0;border-radius:0;box-shadow:none}:root[data-theme=odyssey] .workspace .title-bar{background:#0960ec;color:#fff;box-shadow:inset 0 3px 5px #8cceff,inset 0 -3px 5px #0041bd}:root[data-theme=odyssey] .workspace .title-bar :is(button,.brand>svg,.studio-tagline){color:#fff}:root[data-theme=odyssey] .workspace :is(.retro-button,.project-open-tab,.studio-file-actions button){box-shadow:inset 0 2px 2px #fff9,0 2px 3px #1554a51a}:root[data-theme=odyssey] .workspace .agent-header{background:#0865ef;color:#fff;box-shadow:inset 0 2px 4px #91ccff}:root[data-theme=odyssey] .workspace .agent-header button{color:#fff}:root[data-theme=odyssey] .workspace .project-runbar .retro-button.primary{background:#17862c;border-color:#126d23}:root[data-theme=odyssey] .workspace .studio-nav button[aria-current]{background:#b3d2ff}@media(max-width:800px){.workspace .title-tools{gap:7px;flex-wrap:wrap}.theme-picker{max-width:135px}}:root[data-theme=paper] .workspace .project-open-tab.active{background:#111!important;color:#fff}:root[data-theme=paper] .workspace .project-open-tab.active button{background:#111;color:#fff}:root[data-theme=ghost] .workspace .project-open-tab.active{background:var(--selected)!important;box-shadow:inset 0 2px var(--focus)}:root[data-theme=odyssey] .workspace .project-open-tab.active{background:var(--surface)!important;box-shadow:inset 0 3px var(--focus)}:root:is([data-theme=paper],[data-theme=ghost],[data-theme=odyssey]) .workspace :is(.terminal-command,.terminal-command input,.terminal-output .log){color:var(--theme-terminal-ink);caret-color:var(--theme-terminal-ink)}:root:is([data-theme=paper],[data-theme=ghost],[data-theme=odyssey]) .workspace .agent-panel{border:1px solid var(--line);border-radius:var(--theme-radius)}:root:is([data-theme=paper],[data-theme=ghost],[data-theme=odyssey]) .workspace .project-workspace{--project-editor: var(--surface);--project-panel: var(--chrome);--project-border: var(--line);--project-text: var(--text);--project-muted: var(--muted);--project-accent: var(--focus);--project-hover: var(--code);--project-selection: var(--selected);color-scheme:inherit}:root:is([data-theme=paper],[data-theme=ghost],[data-theme=odyssey]) .workspace .agent-panel{--agent-accent: var(--focus);--agent-accent-ink: var(--on-accent);--agent-plan: var(--focus);--agent-ask: var(--text);--agent-auto: var(--focus);--agent-bubble: var(--selected)}:root[data-theme=ghost] .workspace .agent-panel{--agent-add: #09331e;--agent-add-ink: #8effbd;--agent-del: #35151c;--agent-del-ink: #ffadb8}:root[data-theme=paper] .workspace :is(.project-runbar,.project-runbar select,.project-toolbar,.project-tools-button,.project-panes,.project-results,.execution-terminal,.agent-send,.agent-suggestions button svg){border-radius:0}:root[data-theme=paper] .workspace .terminal-lights i{background:#222;box-shadow:none}:root[data-theme=odyssey] .workspace .agent-tabs{background:#0960ec;color:#fff;box-shadow:inset 0 2px 4px #91ccff}:root[data-theme=odyssey] .workspace .agent-tabs button{color:#fff}:root[data-theme=odyssey] .workspace .agent-tabs button[aria-pressed=true]{background:var(--surface);color:var(--focus);border-radius:6px 6px 0 0}
