*{box-sizing:border-box} :root{color-scheme:dark;--bg:#111016;--panel:#211e29;--line:#403748;--text:#f2edf6;--muted:#a99daf;--accent:#a77acb}body{margin:0;background:radial-gradient(ellipse at 50% -10%,#30243a,#111016 65%);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,sans-serif}.shell{width:min(100%,760px);min-height:100dvh;margin:auto;background:#17141d;border-inline:1px solid #292330;display:flex;flex-direction:column}.topbar{height:76px;display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#191620;z-index:2}.avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;object-position:center 25%;border:2px solid #9273aa}.identity{flex:1;min-width:0}.name{font-weight:800;letter-spacing:1.5px}.status{font-size:10px;color:var(--muted);margin-top:4px}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-left:5px}.offline{background:#bd795f}.online{background:#71b68b}.icon{border:0;background:none;color:#dfc9ed;font-size:23px;padding:7px}.tabs{display:flex;padding:8px 8px;gap:4px;background:#191620;border-bottom:1px solid var(--line);position:sticky;top:76px;z-index:2}.tab{flex:1;padding:10px 4px;border:1px solid transparent;border-radius:10px;background:none;color:#a99daf;font-size:12px;font-weight:700}.tab.active{background:#332a3c;border-color:#554363;color:#f2e8f8}.view{display:none;flex:1;padding:15px 13px}.view.active{display:flex;flex-direction:column}.chat-head,.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.chat-head b{display:block}.chat-head small{color:var(--muted);font-size:11px}.chat{flex:1;min-height:280px;display:flex;flex-direction:column;gap:12px;overflow:auto;padding-bottom:18px}.divider{text-align:center;color:#8f8299;font-size:11px;margin:6px}.notice{padding:12px;border:1px solid #51435c;border-radius:12px;background:#282330;color:#c5b7cd;font-size:12px;line-height:1.5}.composer{margin:0 2px 10px;padding:13px;border:1px solid #42384b;border-radius:17px;background:#211e29}.composer label,.modal-card label{display:block;color:#c3a9d8;font-size:10px;letter-spacing:1.2px;font-weight:800;margin:0 0 7px}textarea,input,select{width:100%;border:1px solid #4a4052;background:#302c37;color:#f5eff8;border-radius:11px;padding:12px;font:inherit;outline:none;margin-bottom:10px}textarea{resize:vertical;min-height:66px}textarea:focus,input:focus,select:focus{border-color:var(--accent)}.tools{display:flex;justify-content:space-between;align-items:center;margin-top:8px;gap:8px}.lefttools{display:flex;align-items:center;gap:7px}.lefttools button{background:#30283a;border:1px solid #51445d;color:#ddc8ed;border-radius:9px;padding:8px 12px}.send,.primary{background:#9870b8;color:white;border:0;border-radius:10px;padding:10px 14px;font-weight:700}.privacy{display:block;margin-top:9px;font-size:10px;color:#95899e}h2{font-size:12px;letter-spacing:1.5px;color:#c3a9d8;margin:3px 0 8px}.muted{color:#b4a8bb;font-size:12px;line-height:1.45;margin:4px 0 0}article,.character-card,.person-card{padding:13px;background:#211e29;border:1px solid #403748;border-radius:13px;margin-bottom:10px}article h3{margin:0 0 9px;font-size:14px;color:#e9d9f4}.empty{font-size:12px;color:#95899e;margin-bottom:10px}.outline,.subtle{background:#30283a;border:1px solid #51445d;color:#ddc8ed;border-radius:9px;padding:8px 11px;font-size:12px}.sectionhead .primary{white-space:nowrap}.character-card{display:flex;gap:12px;align-items:center}.character-card img{width:58px;height:72px;object-fit:cover;object-position:center 20%;border-radius:8px}.character-info{flex:1;min-width:0}.character-info b{display:block}.character-info small{color:var(--muted);font-size:11px}.character-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}.character-actions button{font-size:11px;padding:6px 8px}.tag{display:inline-block;font-size:10px;color:#d9c4e7;background:#392f43;border-radius:20px;padding:4px 7px;margin:5px 3px 0 0}.bubble-row{display:flex;max-width:92%;gap:8px;align-items:flex-end}.user-row{align-self:flex-end}.tim-row{align-self:flex-start}.mini{width:26px;height:26px;object-fit:cover;border-radius:50%;border:1px solid #806594}.bubble{padding:11px 13px;border-radius:15px;line-height:1.45;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.tim-bubble{background:#302c37;border:1px solid #403947;border-bottom-left-radius:5px}.user-bubble{background:#49375b;border:1px solid #604b72;border-bottom-right-radius:5px}.speaker{font-size:9px;letter-spacing:1.3px;color:#c9acd9;font-weight:800;margin-bottom:5px}.action{font-style:italic;color:#b8a7c3}.thought{font-style:italic;color:#8f8299}.modal{position:fixed;inset:0;background:#08070bdc;z-index:10;display:flex;align-items:center;justify-content:center;padding:14px}.modal.hidden{display:none}.modal-card{width:min(100%,480px);max-height:90dvh;overflow:auto;background:#282330;border:1px solid #645270;border-radius:17px;padding:17px;box-shadow:0 18px 60px #000b}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.modal-head h2{margin:0}.modal-card label{margin-top:9px}.modal-card textarea{min-height:75px}.full{width:100%;margin:5px 0 10px}.filelabel{display:block;background:#30283a;border:1px solid #51445d;color:#ddc8ed;border-radius:9px;padding:11px;text-align:center;font-size:12px}.filelabel input{display:none}.warning{font-size:11px;color:#d5b9a2;line-height:1.5;margin-top:12px}hr{border:0;border-top:1px solid #51445d;margin:12px 0}footer{text-align:center;color:#82778a;font-size:10px;padding:12px}.hidden-item{opacity:.6}
