:root{color-scheme:dark;font-family:system-ui,"Microsoft YaHei",sans-serif;background:#0c1220;color:#e8edf6}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;border:1px solid #34415b;border-radius:8px;background:#172238;color:inherit;padding:10px}button{cursor:pointer}button:hover{background:#293c60}button:disabled{opacity:.5;cursor:wait}a{color:#90b9ff;text-decoration:none}header{height:64px;display:flex;gap:24px;align-items:center;padding:0 24px;border-bottom:1px solid #29364b}header span{margin-left:auto;color:#9eaec4;font-size:13px}main{display:grid;grid-template-columns:240px 1fr;height:calc(100vh - 64px)}[hidden]{display:none!important}aside{padding:20px;border-right:1px solid #29364b;overflow:auto}aside>button{width:100%;background:#284e87}nav{display:flex;flex-direction:column;gap:8px;margin-top:20px}nav button{text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}nav button.active{border-color:#90b9ff}aside p{font-size:12px;color:#8c9bb2;margin-top:30px}.workspace{display:flex;flex-direction:column;min-width:0;max-height:calc(100vh - 64px);padding:18px 26px;gap:14px}.settings{display:flex;flex-wrap:wrap;gap:10px;align-items:end}.settings label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#a9bad3;flex:1;min-width:140px}.settings input,.settings select{width:100%;font-size:13px}.settings label:nth-child(2){flex:2}.notice{background:#2a2418;border:1px solid #756039;border-radius:10px;padding:12px 16px;font-size:13px;color:#eddbb3}.notice label{font-weight:650;margin-right:20px}.notice p{margin:6px 0 0;color:#c7b892}#agent{vertical-align:middle}#messages{flex:1;min-height:120px;overflow:auto;scroll-behavior:smooth}article{padding:16px 20px;margin-bottom:14px;border-radius:12px;background:#151f31;border:1px solid #26364f;overflow-wrap:anywhere}article.user{background:#1d3451}article strong{color:#9ab9e6;font-size:12px}article pre{white-space:pre-wrap;font:14px/1.7 system-ui;margin:8px 0}article h2{margin-top:0}details{max-height:32vh;overflow:auto;border:1px solid #30415d;border-radius:10px;padding:10px 14px}summary{cursor:pointer;color:#b2c7e5}#events pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#080f1b;padding:12px;font-size:12px}#composer textarea{width:100%;resize:vertical;max-height:200px}#composer>div{display:flex;align-items:center;gap:12px;margin-top:8px}#status{margin-right:auto;font-size:13px;color:#a8b9ce}#send{background:#315f9f;min-width:90px}#stop{border-color:#b36969}#gate{margin:12vh auto;max-width:600px;padding:30px;background:#172238;border-radius:16px}@media(max-width:850px){main{grid-template-columns:1fr}aside{max-height:150px;border-right:0}.workspace{padding:12px;max-height:none}header{padding:12px;gap:12px;font-size:13px}header span{max-width:100px;overflow:hidden}main{height:auto}#messages{min-height:240px;max-height:60vh}}

#model-info{margin:0;font-size:12px;color:#a8bbd7;line-height:1.6}.settings label:has(#model-picker){flex:2;min-width:220px}.settings label:has(#model){min-width:200px}

@media(max-width:600px){header{height:auto;min-height:64px;flex-wrap:wrap;gap:8px 14px}header strong,header a{white-space:nowrap}header span{order:5;flex-basis:100%;max-width:none;margin:0}main{height:auto}aside{padding:12px}.workspace{padding:12px}}
