*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%;font-family:system-ui,-apple-system,sans-serif;color:#292824;background:#faf9f6}button,input,textarea,select{font:inherit}button{cursor:pointer;border:1px solid #dedbd4;background:#fffefa;border-radius:9px;padding:9px 13px;color:inherit}button:hover{background:#f0ede7}button:disabled{opacity:.45;cursor:default}input,select,textarea{border:1px solid #d6d2c9;border-radius:9px;padding:11px;background:#fff;color:inherit;width:100%}input:focus,textarea:focus,button:focus-visible,select:focus{outline:2px solid #a55f45;outline-offset:2px}label{display:grid;gap:7px;font-size:14px}h1{font:normal 32px Georgia,serif;line-height:1.3}h2{font-size:18px}p{line-height:1.6;color:#69665e}.center{min-height:90vh;display:flex;align-items:center;justify-content:center;padding:24px}.login{width:360px;display:grid;gap:18px}.login h1,.login p{margin:0}.login small{color:#777;font-size:12px;line-height:1.5}.mark{font-size:40px;color:#b36d50}.primary{background:#a65e44;color:white;border-color:#a65e44}.primary:hover{background:#8e4c36}.shell{display:flex;min-height:100vh}aside{width:260px;flex-shrink:0;background:#f0eee8;border-right:1px solid #e6e3dc;padding:20px 14px;display:flex;flex-direction:column;gap:14px;position:fixed;inset:0 auto 0 0}.brand{font-weight:650;font-size:21px;margin:8px}nav{overflow:auto;flex:1}nav button{border:0;background:none;width:100%;display:flex;text-align:left;gap:8px;margin-bottom:4px}nav button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}nav button.selected{background:#e3ded4}nav small{color:#777}.account{font-size:13px;color:#777;display:flex;align-items:center;justify-content:space-between;gap:8px}.workspace{margin-left:260px;flex:1;min-width:0;display:flex;flex-direction:column;min-height:100vh}header{padding:16px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #eee9df}header span{flex:1}.menu{display:none}.notice{padding:13px 16px;margin:14px;border:1px solid #d9b9a5;border-radius:9px;color:#753e2b;background:#fff3eb;line-height:1.5;overflow-wrap:anywhere}.notice button{float:right;border:0;padding:0 5px;background:none}.thread{width:100%;max-width:860px;margin:0 auto;padding:30px 28px;flex:1}.welcome{text-align:center;padding-top:12vh}.turn{margin-bottom:35px;overflow-wrap:anywhere}.user-message{background:#eeeae3;border-radius:14px;padding:16px 20px;white-space:pre-wrap}.turn small{display:block;margin:7px 0;color:#777}.answer{white-space:pre-wrap;line-height:1.7;padding:16px 3px}.answer.running,.answer.queued{color:#8e583d}.composer{width:calc(100% - 40px);max-width:800px;position:sticky;bottom:12px;margin:0 auto 18px;border:1px solid #d8d2c7;border-radius:18px;background:#fffefa;padding:12px;box-shadow:0 4px 18px #00000008}.composer textarea{border:0;background:none;min-height:80px;max-height:260px;resize:vertical}.composer-tools{display:flex;align-items:center;gap:9px}.composer-tools .primary{margin-left:auto}.upload{display:inline-block;padding:9px;cursor:pointer}.upload input{display:none}.attachments{display:flex;flex-wrap:wrap;gap:5px;margin:5px}.attachments button{font-size:12px}.file-row{display:flex;align-items:center;gap:10px;margin:12px 0}.file-row span{flex:1;overflow-wrap:anywhere}dialog{max-width:min(95vw,650px);border:1px solid #ccc;border-radius:15px;padding:24px}dialog::backdrop{background:#0005}.proxy{max-width:760px;width:100%;padding:32px;margin:auto}.proxy h1{margin-bottom:10px}.proxy form{display:grid;gap:18px}fieldset{border:0;padding:0;display:grid;gap:18px;min-width:0}.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.check{display:flex;align-items:center;gap:10px;line-height:1.5}.check input{width:auto}.hint{font-size:13px;margin:0}.status{padding:20px;border:1px solid #dedbd4;border-radius:14px;margin:24px 0;background:white}.status p{margin:9px 0}.status small{color:#777;line-height:1.5}.dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#aaa;margin-right:10px}.dot.online{background:#4f8666}.danger{color:#963d30;margin-top:18px}.scrim{display:none}@media(max-width:720px){aside{transform:translateX(-100%);z-index:4;transition:transform .15s}aside.open{transform:none}.workspace{margin-left:0}.menu{display:block}.scrim{display:block;position:fixed;inset:0;background:#0004;border:0;border-radius:0;z-index:3}header{padding:12px}.thread{padding:20px 16px}.composer{width:calc(100% - 20px)}h1{font-size:28px}.proxy{padding:24px 18px}.grid{grid-template-columns:1fr}.composer-tools{gap:2px}.composer-tools button{padding:9px}.account button{font-size:12px}}

.proxy-import { border: 1px solid var(--border, #dedbd2); border-radius: 14px; padding: 20px; margin: 22px 0; }
.proxy-import textarea { width: 100%; resize: vertical; font: inherit; padding: 12px; border: 1px solid #d6d2c9; border-radius: 10px; background: white; box-sizing: border-box; overflow-wrap: anywhere; }
.proxy-import select { width: 100%; }
