:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:#151515;background:#f8f8f8;--blue:#315eea;--sidebar:clamp(260px,26.6vw,400px);--line:#e9e9e9}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;display:flex;height:100vh;height:100dvh;overflow:hidden}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0;background:none;color:inherit;display:inline-flex;align-items:center;justify-content:center;gap:8px}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--blue);outline-offset:3px}button:hover{filter:brightness(.96)}button:disabled{opacity:.45;cursor:default}svg{width:24px;height:24px;flex:none;vertical-align:middle}aside{width:var(--sidebar);flex:none;background:#fff;border-right:1px solid #e3e3e3;box-shadow:1px 0 3px #0000000a;display:flex;flex-direction:column;padding:clamp(18px,2.6vw,39px);padding-top:clamp(24px,4.5vh,44px);z-index:3;min-width:0}aside header,aside footer,.dialogHead{display:flex;align-items:center;justify-content:space-between;gap:10px}.brand{font-size:22px;letter-spacing:-1px;white-space:nowrap}.brand small{display:block;font-size:9px;letter-spacing:1.5px;color:#929292;margin-top:3px}.round{width:54px;height:54px;background:#fff;border-radius:50%;flex:none;box-shadow:0 5px 36px #00000006}.new{background:var(--blue);color:white;border-radius:40px;height:60px;padding:0 25px;font-weight:650;font-size:18px}aside nav{flex:1;overflow:auto;min-height:0;margin:30px -12px 16px;padding:0 4px;scrollbar-width:thin}aside h3{font-size:15px;margin:22px 10px 12px}.chatrow{display:flex;align-items:center;gap:6px;border-radius:14px;min-height:48px;padding:0 4px}.chatrow.active{background:#f0f2f8}.chatopen{flex:1;min-width:0;justify-content:flex-start;padding:11px 8px;font-size:14px}.chatopen span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chatrow .more{padding:8px}.emptyHistory{color:#999;font-size:13px;padding:8px 10px}#searchBox input{border:1px solid var(--line);border-radius:14px;padding:12px;width:100%;margin-top:18px}main{flex:1;min-width:0;display:flex;flex-direction:column;position:relative;background:#f8f8f8}.top{height:112px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 20px;position:relative}.tabs{display:flex;gap:0;padding:5px;background:#e7e7e7;border-radius:32px;position:absolute;left:50%;transform:translateX(-50%)}.tabs button{height:44px;border-radius:27px;min-width:102px;font-weight:650}.tabs .selected{background:#fff}.version{color:#9a9a9a;font-size:11px}#conversation{flex:1;overflow:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin}#messages{max-width:820px;margin:auto;padding:16px 28px 28px;display:flex;flex-direction:column;gap:24px}.message{max-width:100%;line-height:1.65;font-size:16px;overflow-wrap:anywhere}.message.user{align-self:flex-end;background:#eaeaea;border-radius:22px 22px 5px 22px;padding:12px 18px;max-width:85%}.message.assistant{align-self:stretch;padding:0 4px}.messageText{white-space:pre-wrap}.messageText b{font-weight:680}.messageText pre{white-space:pre-wrap;background:#ededed;padding:12px;border-radius:10px;overflow:auto}.message img{max-width:min(100%,260px);max-height:230px;object-fit:contain;border-radius:14px;display:block;margin:6px 0}.meta{display:flex;gap:10px;align-items:center;color:#8a8a8a;font-size:12px;margin-top:8px}.meta button{padding:5px;color:#777}.meta svg{width:17px;height:17px}.error{color:#a53030}.pending{color:#8a8a8a}#bottom{position:relative;width:min(100% - 48px,765px);margin:0 auto max(25px,env(safe-area-inset-bottom));flex:none}#composer{display:flex;align-items:flex-end;gap:10px;background:#fff;padding:10px 12px;border-radius:35px;box-shadow:0 0 65px 15px #00000008;min-height:60px}#prompt{border:0;outline:none;resize:none;background:transparent;color:#151515;flex:1;min-width:0;max-height:170px;line-height:26px;padding:7px 0;font-size:17px}#prompt::placeholder{color:#8c8c8c;font-weight:550}.plain,.dark{height:40px;width:40px;border-radius:50%;flex:none}.dark{background:#080808;color:#fff}.dark svg{width:21px;height:21px}.plain svg{width:25px;height:25px}#status{margin-bottom:10px;padding:9px 14px;background:#fff;border:1px solid #ededed;border-radius:16px;font-size:13px;color:#606060}progress{display:block;width:100%;height:6px;accent-color:var(--blue);margin-top:8px}#attachments{display:flex;gap:8px;overflow:auto}.chip{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:7px 10px;margin-bottom:8px;font-size:12px;white-space:nowrap}.chip img{width:36px;height:36px;border-radius:6px;object-fit:cover}.chip button{padding:3px}.chip svg{width:16px;height:16px}.popup{position:absolute;bottom:calc(100% + 8px);left:0;background:white;border:1px solid #eee;border-radius:18px;box-shadow:0 10px 40px #0002;padding:6px;z-index:5}.popup button{display:flex;justify-content:flex-start;width:100%;padding:13px 15px;border-radius:12px}.popup button:hover{background:#f0f0f0}dialog{border:0;border-radius:25px;padding:25px;width:min(560px,calc(100% - 28px));max-height:90dvh;overflow:auto;color:#151515;background:#fff;box-shadow:0 20px 100px #0003}dialog::backdrop{background:#0005;backdrop-filter:blur(3px)}h2{font-size:23px;margin:0}dialog h3{font-size:16px;margin:24px 0 4px}dialog p{font-size:14px;line-height:1.5;color:#707070}dialog label{display:block;font-size:13px;font-weight:600;margin:16px 0}dialog input,dialog select{display:block;width:100%;border:1px solid #ddd;border-radius:12px;padding:11px;margin-top:7px;background:#fafafa;color:#151515}dialog .close{background:#f5f5f5;width:40px;height:40px}.actions{display:flex;gap:8px;flex-wrap:wrap}.actions button,.primary{border-radius:13px;padding:12px 16px;background:#eee;font-weight:600}.primary,.actions .primary{background:var(--blue);color:white}.modelrow{display:flex;align-items:center;gap:8px;border-top:1px solid #eee;padding:15px 0}.modelrow div{flex:1}.modelrow b{display:block;font-size:15px}.modelrow small{display:block;color:#777;font-size:12px;margin-top:5px}.modelrow button{border:1px solid #ddd;border-radius:10px;padding:8px 12px;font-size:13px}.muted{color:#888;font-size:12px}.voiceOrb{display:grid;place-items:center;margin:35px auto;width:120px;height:120px;border-radius:50%;background:#111;color:white}.voiceOrb svg{width:50px;height:50px}#voiceDialog{text-align:center}#toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);max-width:90%;z-index:20;background:#171717;color:white;border-radius:14px;padding:12px 18px;font-size:13px;text-align:center}body.collapsed aside{display:none}@media(max-width:700px){aside{position:fixed;inset:0 auto 0 0;width:min(86vw,340px);transform:translateX(-105%);transition:transform .2s ease}body.menuOpen aside{transform:translateX(0)}#shade{position:fixed;inset:0;background:#0005;z-index:2}main{width:100%}.top{height:76px;padding:0 12px}.round{width:44px;height:44px}.tabs button{height:38px;min-width:78px;font-size:14px}#messages{padding:10px 16px 24px}#bottom{width:calc(100% - 20px);margin-bottom:max(12px,env(safe-area-inset-bottom))}#composer{gap:5px;padding:7px 9px}.plain,.dark{width:36px;height:36px}#prompt{font-size:16px}.message{font-size:15px}.new{height:50px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

#setup{max-width:min(560px,94vw);max-height:90dvh;padding:26px}#setup::backdrop{background:#f8f8f8eF} .setup-logo{font-size:20px;font-weight:800;letter-spacing:-1px}#setup h2{font-size:25px;margin:14px 0 8px}#setupOverall{width:100%;height:8px;accent-color:var(--blue);margin:16px 0}#setupRows{max-height:42dvh;overflow:auto}.setuprow{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #eee;font-size:13px}.setuprow span:last-child{text-align:right;overflow-wrap:anywhere}.setuprow[data-state=ready] span:last-child{color:#15803d}.setuprow[data-state=error] span:last-child{color:#b91c1c}#setupDetail{font-size:13px;min-height:42px;overflow-wrap:anywhere}#setup .actions{margin-top:12px}#setup [hidden]{display:none!important}
