:root{--bg:#fff;--ink:#202b31;--muted:#80908f;--line:#e6eae7;--green:#19715e;--soft:#f0f5f1}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font:14px 'Segoe UI','Malgun Gothic',sans-serif}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;border-radius:9px;padding:10px 15px;font-weight:550}button:disabled{opacity:.4;cursor:not-allowed}button:hover:not(:disabled){filter:brightness(.96)}a{text-decoration:none;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #94cbbb;outline-offset:2px}.primary{background:var(--green);color:white}.ghost{background:transparent;color:#6b7c78;border:1px solid var(--line)}.icon{background:transparent}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}aside{position:fixed;inset:0 auto 0 0;width:264px;background:#f3f5f2;border-right:1px solid #e9ece7;padding:29px 16px 18px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:11px;align-items:center;color:#1f6f59;font-size:32px;padding:0 10px}.brand span{font-size:19px;letter-spacing:-.6px;font-weight:650;color:#2c3c35}.brand small{display:block;font-size:10px;letter-spacing:.2px;margin-top:5px;font-weight:400;color:#87958b}.new-chat{margin:31px 2px 18px;background:#fff;border:1px solid #dde5db;text-align:left;color:#3a5545;padding:13px 15px;border-radius:10px;font-size:13px;box-shadow:0 2px 3px #29392b03}.search{display:flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid #e4e9e0;border-radius:8px;color:#9ba79c}.search input{width:100%;border:0;outline:0;background:transparent;font-size:12px;color:#526653}.history-title{display:flex;justify-content:space-between;color:#97a195;letter-spacing:.4px;font-size:10px;margin:26px 13px 10px}#history{flex:1;min-height:0;overflow-y:auto;padding-right:3px}.history-group{font-size:10px;color:#95a092;margin:18px 11px 7px}.history-item{display:flex;gap:9px;align-items:flex-start;padding:12px 11px;margin-bottom:3px;border-radius:8px;cursor:pointer;color:#617060;border:1px solid transparent;position:relative}.history-item:hover{background:#eaf0e6}.history-item.selected{background:#e4ece0;border-color:#d9e3d5;color:#294732}.history-item .kind{color:#8c9d8b;font-size:14px;margin-top:1px}.history-item>div{min-width:0;flex:1}.history-item strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:500}.history-item small{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#96a193;margin-top:5px}.history-item .working{height:6px;width:6px;border-radius:50%;background:#3f9d75;position:absolute;right:5px;top:15px}.history-empty{font-size:12px;color:#98a291;padding:16px 12px;line-height:1.8}.sidebar-bottom{border-top:1px solid #e1e6dd;padding:18px 10px 0;margin-top:14px}.saved{font-size:11px;color:#7b8f75}.saved i{display:inline-block;width:6px;height:6px;background:#71976b;border-radius:50%;margin-right:7px}.sidebar-bottom a{display:block;font-size:11px;margin:15px 0 9px;color:#66755f}.sidebar-bottom small{font-size:9px;color:#a1aa9d}main{margin-left:264px;min-height:100vh;display:flex;flex-direction:column}header{height:86px;border-bottom:1px solid #f0f2ef;display:flex;align-items:center;gap:12px;padding:0 36px;position:sticky;top:0;background:#fffffff2;backdrop-filter:blur(10px);z-index:10}.header-title{min-width:0;flex:1}.header-title strong{display:block;max-width:460px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:550}.header-title span{display:block;font-size:9px;color:#99a499;margin-top:6px}.header-actions{display:flex;align-items:center;gap:9px}.header-actions button{font-size:10px;padding:8px 10px;border:0}.admin-link{color:#8c9989;padding:8px;font-size:18px}#sidebar-toggle{display:none}#conversation{width:100%;max-width:990px;padding:20px 46px 36px;margin:0 auto;flex:1}#empty{text-align:center;padding:10vh 0 20px}.welcome-mark{font-size:60px;color:#739d7c;line-height:1;margin-bottom:25px}.eyebrow{color:#8b9c8b;font-size:9px;letter-spacing:2.5px;font-weight:600}h1{font-size:29px;font-weight:550;letter-spacing:-1px;margin:17px 0 15px}#empty>p{color:#929d92;font-size:12px;line-height:1.9}.suggestions{display:grid;grid-template-columns:repeat(3,1fr);gap:11px;max-width:720px;margin:35px auto 0}.suggestions button{border:1px solid #e5eae2;background:#fff;text-align:left;padding:20px 17px;border-radius:12px;min-width:0}.suggestions b{display:block;color:#536e56;font-size:12px;font-weight:550}.suggestions span{display:block;color:#9aa494;font-size:10px;line-height:1.7;margin-top:9px;font-weight:400}.message{margin:22px 0 36px;display:flex;gap:13px;align-items:flex-start}.avatar{flex:0 0 30px;height:30px;display:grid;place-items:center;background:#eaf2e9;border:1px solid #e1eadc;border-radius:9px;color:#6d906d;font-size:18px}.message-main{min-width:0;flex:1}.message-meta{display:flex;gap:9px;align-items:center;margin:4px 0 12px;color:#8e9a8b;font-size:10px}.message-meta strong{color:#52634e;font-weight:600;font-size:11px}.type-badge{border-radius:4px;font-size:9px;padding:3px 5px;background:#f1f5ed;color:#7a9174}.message.user{justify-content:flex-end;margin-top:18px;margin-bottom:28px}.user .message-main{flex:0 1 auto;max-width:88%;background:#f0f4ed;border:1px solid #e7ede2;border-radius:16px 16px 4px 16px;padding:14px 18px}.user .message-meta{margin:0 0 7px}.message-content{line-height:1.9;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.message-content code{font-family:Consolas,monospace;background:#f0f3ed;border:1px solid #e5eadd;padding:2px 5px;border-radius:4px;font-size:12px}.message-content pre{background:#1e3029;color:#d4e3d0;border:1px solid #253b30;border-radius:10px;padding:18px;overflow:auto;white-space:pre;font-size:12px;line-height:1.7}.message-content pre code{color:inherit;background:transparent;border:0;padding:0;font-size:inherit}.message-content strong{font-weight:650}.message-content h3{font-size:15px;line-height:1.6;margin:14px 0 8px}.message-details{color:#8d9e83;line-height:1.7;font-size:11px;margin-top:9px;display:flex;align-items:center;gap:8px}.message-details.running:before{content:'';width:6px;height:6px;flex-shrink:0;border-radius:50%;background:#8bad78;animation:pulse 1.3s infinite}.message-details.failed{color:#af6860}.message-tools{display:flex;gap:5px;margin-top:12px}.message-tools button{font-size:9px;padding:5px 8px;border-radius:5px;background:transparent;color:#92a18a}.message-tools button:hover{background:#eff4eb}.result-asset{margin-top:15px}.result-asset img{max-width:100%;max-height:600px;border-radius:11px;border:1px solid #e5eadf;display:block;object-fit:contain}.result-asset video{display:block;width:100%;max-height:560px;border-radius:11px;background:#18241b}.asset-info{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#98a390;margin-top:9px}.asset-info button{font-size:10px;color:#6e8766;border:1px solid #e2eadd;background:#f9fbf6;padding:7px 10px}.thinking{font-size:11px;color:#87937e;margin:10px 0;white-space:pre-wrap}.thinking summary{cursor:pointer;color:#9ca793;margin-bottom:8px}#composer-area{position:sticky;bottom:0;padding:16px 40px 15px;background:linear-gradient(#ffffff00,#fff 15%);z-index:8}.composer{max-width:900px;margin:auto;border:1px solid #dfe6da;border-radius:17px;background:white;box-shadow:0 7px 35px #3a52380a;overflow:hidden}.composer-toolbar{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:13px 14px 6px}.mode-tabs{display:flex;background:#f4f7f0;padding:3px;border-radius:8px;gap:2px}.mode-tabs button{font-size:11px;font-weight:500;color:#99a28f;background:transparent;padding:7px 10px;white-space:nowrap}.mode-tabs button.active{background:white;color:#55764d;box-shadow:0 1px 4px #35472c12}.model-picker{min-width:0;max-width:48%}.model-picker select{border:0;border-radius:6px;padding:7px;color:#73856a;background:#fafbf7;max-width:100%;font-size:10px;outline-color:#b8cfad}.composer textarea{border:0;outline:0!important;box-shadow:none;resize:none;width:100%;padding:17px 20px 9px;min-height:86px;max-height:230px;color:#3e5137;font-size:13px;line-height:1.75;background:transparent}.composer textarea::placeholder{color:#abb2a2}.composer-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:5px 13px 12px 20px}.composer-bottom span{font-size:9px;color:#a2ac97;line-height:1.6}#send{background:#66895a;color:white;border-radius:10px;height:34px;width:34px;padding:0;font-size:23px;flex-shrink:0}.composer-note{max-width:900px;margin:11px auto 0;display:flex;justify-content:space-between;font-size:9px;color:#b0b8a6;gap:12px}#toast{position:fixed;top:93px;right:25px;max-width:450px;padding:13px 18px;background:#edf4e6;color:#6b865b;border:1px solid #dfe9d4;border-radius:10px;box-shadow:0 5px 20px #40542d10;font-size:12px;z-index:50;line-height:1.7}#toast.error{background:#fff2eb;color:#ac6658;border-color:#eed6ca}dialog{border:1px solid #dce7d3;border-radius:17px;padding:27px;max-width:440px;width:90%;color:#405136;box-shadow:0 20px 80px #22331a26}dialog::backdrop{background:#19251455;backdrop-filter:blur(3px)}dialog h2{font-size:17px;font-weight:600;margin:0 0 18px}dialog p{font-size:12px;color:#8b997d;line-height:1.8;margin:0 0 20px}dialog input{border:1px solid #dce5d4;border-radius:8px;padding:12px;width:100%;margin-bottom:20px;color:#586b49}dialog form>div{display:flex;justify-content:flex-end;gap:8px}#export-dialog>button{display:block;width:100%;margin-top:10px;font-size:12px}.history-item:focus-visible{outline:2px solid #86ae71;outline-offset:0}@keyframes pulse{50%{opacity:.3}}[hidden]{display:none!important}@media(max-width:1100px){aside{width:226px}main{margin-left:226px}header{padding:0 23px}#conversation{padding:18px 27px 30px}#composer-area{padding:14px 23px}.suggestions{grid-template-columns:1fr}.suggestions button{padding:13px 16px}.suggestions span{margin-top:4px}#empty{padding-top:7vh}.welcome-mark{font-size:50px;margin-bottom:19px}h1{font-size:25px}.composer-toolbar{flex-wrap:wrap}.model-picker{max-width:100%}.header-actions button{padding:6px}.header-title strong{max-width:210px}.composer-note span:last-child{display:none}}@media(max-width:650px){aside{transform:translateX(-100%);transition:transform .2s;width:260px}aside.open{transform:translateX(0)}main{margin-left:0}header{height:70px;padding:0 15px;gap:8px}#sidebar-toggle{display:block;padding:7px;color:#819275}.header-actions{gap:2px}.header-actions button{font-size:9px}.admin-link{font-size:16px;padding:5px}.header-title strong{font-size:12px;max-width:150px}.header-title span{font-size:8px}#conversation{padding:15px 20px 25px}#composer-area{padding:10px 12px 13px}.composer-toolbar{padding:11px 10px 0}.mode-tabs button{font-size:10px;padding:6px 9px}.model-picker select{font-size:9px}#empty{padding-top:5vh}h1{font-size:24px;line-height:1.6}.message{gap:9px}.message-content{font-size:13px}.avatar{height:25px;flex-basis:25px;font-size:15px}.message-meta{flex-wrap:wrap}.message-meta strong{font-size:10px}.user .message-main{max-width:94%;padding:12px 15px}.composer textarea{min-height:70px}#shade{position:fixed;inset:0;background:#17231055;z-index:19}#toast{left:14px;right:14px;top:80px}}
.attach-button{background:#f2f6ed;color:#6f8566;border:1px solid #e1e9d9;font-size:11px;padding:7px 10px;white-space:nowrap}.composer-bottom #mode-help{flex:1}.attachment-preview{display:flex;gap:9px;padding:12px 16px 0;overflow-x:auto}.attachment-chip{display:flex;gap:9px;align-items:center;background:#f7faf3;border:1px solid #e0e8d8;border-radius:9px;padding:8px;min-width:190px;max-width:250px;flex-shrink:0}.attachment-chip img{width:42px;height:42px;object-fit:cover;border-radius:5px}.attachment-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:6px;color:#80966d;background:#edf3e5;font-size:23px}.attachment-chip>div{min-width:0;flex:1}.attachment-chip strong{display:block;font-size:10px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-chip small{font-size:9px;color:#9aa88c;display:block;margin-top:5px}.attachment-chip button{background:transparent;color:#8c9e80;padding:3px;font-size:18px}.attachment-chip.error{border-color:#dfb4a4;background:#fff5f0}.attachment-chip.error small{color:#ad7060}.composer.dragging{outline:3px dashed #88ab70;background:#f7fff0}.result-asset audio{width:100%;margin-top:5px}.user .result-asset img{max-height:320px}.user .message-main{max-width:94%}.user .asset-info{gap:12px;flex-wrap:wrap}.asset-info span{overflow-wrap:anywhere}.composer-bottom{gap:9px}
.image-options{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 16px;border-top:1px solid #f0f3ec;background:#fafcf7}.image-options label{font-size:9px;color:#829474;display:flex;align-items:center;gap:5px}.image-options select,.image-options input[type=number]{font:inherit;border:1px solid #e2e9db;background:white;color:#69805c;padding:5px;border-radius:5px;max-width:120px}.image-options input[type=number]{width:83px}.image-options input[type=checkbox]{accent-color:#739460}.image-options p{flex-basis:100%;font-size:9px;margin:0;color:#a1ae94;line-height:1.6}.generation-summary{font-size:10px;color:#73905e;padding:10px 0 5px}.generation-details{font-size:10px;color:#819671;margin:6px 0 15px}.generation-details summary{cursor:pointer}.generation-details>div{margin-top:12px}.generation-details pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f4f7ef;border:1px solid #e5ecdc;border-radius:7px;padding:11px;line-height:1.7;font-family:inherit;color:#6c7f5e}.generation-details strong{display:block;margin-top:15px;font-weight:500}.result-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.result-actions button{font-size:10px;background:#f4f8ee;color:#80956c;border:1px solid #e2ead8;padding:7px 10px}.result-actions .chosen{background:#dfeecd;color:#52783c}.compare-heading{display:flex;justify-content:space-between;gap:15px;align-items:center}.compare-heading h2{font-size:15px}#compare-dialog{max-width:1050px;width:94%}#compare-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}#compare-grid img{width:100%;border-radius:9px}#compare-grid p{font-size:11px;margin:8px 0}#compare-grid button{font-size:11px}@media(max-width:650px){#compare-grid{grid-template-columns:1fr}.image-options{gap:8px;padding:9px 12px}.image-options label{font-size:8px}.image-options select{max-width:105px}.image-options p{font-size:8px}}
.media-size-options{display:flex;align-items:center;flex-wrap:wrap;gap:11px;padding:10px 16px;background:#f7faf3;border-top:1px solid #e9efdf}.media-size-options label{display:flex;align-items:center;gap:6px;color:#81946f;font-size:10px}.media-size-options select,.media-size-options input{font:inherit;color:#637d51;padding:6px;border:1px solid #dfe8d4;background:white;border-radius:6px;max-width:180px}.media-size-options input{width:76px}.media-size-options>span{font-size:9px;color:#96a887;line-height:1.7}.media-size-options .size-error{color:#ad6552}#media-custom-size{display:flex;align-items:center;gap:8px;color:#91a382}@media(max-width:650px){.media-size-options{gap:8px;padding:9px 12px}.media-size-options label{font-size:9px}.media-size-options select{max-width:145px}}
