body>main:has(>.workspace){max-width:none;padding:0}
.workspace{color-scheme:dark;--nav:#111722;--canvas:#0d1421;--panel:#172131;--line:#253146;--ink:#edf3ff;--muted:#a0aec4;--blue:#8bd5ff;--chosen:#1b3045;--out:#1c3650;color:var(--ink);background:var(--canvas);font:400 14px Onest,system-ui,sans-serif;min-height:100dvh;display:grid;grid-template-columns:306px minmax(0,1fr)}
.workspace :is(button,input,textarea){font:inherit;color:inherit}.workspace button{cursor:pointer}.workspace a{color:inherit}.workspace :focus-visible{outline:2px solid var(--blue);outline-offset:3px}.workspace svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
.workspace .sidebar{background:var(--nav);border-right:1px solid var(--line);display:flex;flex-direction:column;min-width:0}.workspace .brand{display:flex;gap:12px;align-items:center;padding:24px}.workspace .brandmark{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--blue);color:#0d2438}.workspace .brandmark svg{width:26px;height:26px}.workspace .brand b{font:700 19px Unbounded,Onest,sans-serif;letter-spacing:-.06em}.workspace .brand small,.workspace .profile small{display:block;color:var(--muted);margin-top:3px}
.workspace .list-title{display:flex;align-items:center;justify-content:space-between;margin:0 18px 10px}.workspace .list-title h2{margin:0;font:600 16px Onest,sans-serif}.workspace .rooms{padding:0 10px 20px;display:grid;gap:4px}.workspace .room{position:relative;text-decoration:none;width:100%;display:flex;align-items:center;gap:11px;border-radius:9px;padding:12px 10px}.workspace .room:hover,.workspace .room[aria-current]{background:var(--chosen)}.workspace .room[aria-current]:before{content:'';position:absolute;left:0;top:11px;bottom:11px;width:3px;border-radius:3px;background:var(--blue)}.workspace .avatar{width:40px;height:40px;flex:none;display:grid;place-items:center;border-radius:12px;background:#24374a;color:#a6d9fc}.workspace .room-copy{flex:1;min-width:0}.workspace .room-copy :is(b,small){display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace .room-copy small{color:var(--muted);margin-top:4px;font-size:12px}.workspace .profile{margin-top:auto;display:flex;gap:10px;align-items:center;padding:16px 18px;border-top:1px solid var(--line);overflow-wrap:anywhere}
.workspace .chat{min-width:0;display:grid;grid-template-rows:auto 1fr auto;min-height:100dvh}.workspace .chat-head{display:flex;align-items:center;gap:12px;padding:18px 28px;border-bottom:1px solid var(--line);background:#101927}.workspace .chat-head h1{font:700 18px Unbounded,Onest,sans-serif;margin:0 0 4px;letter-spacing:-.045em;overflow-wrap:anywhere}.workspace .group-label{margin-left:auto;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:6px 12px;font-size:12px}.workspace .thread{width:100%;padding:0 32px 22px;max-width:1050px;margin:auto auto 0}.workspace .message{display:flex;gap:10px;align-items:flex-end;margin-bottom:19px}.workspace .message:last-child{margin-bottom:0}.workspace .message .avatar{width:32px;height:32px;border-radius:10px}.workspace .message-body{min-width:0;max-width:min(580px,85%)}.workspace .sender{margin:0 0 6px;font-size:12px;font-weight:600;color:#bfd0e7}.workspace .bubble{padding:12px 15px;border:1px solid var(--line);border-radius:14px 14px 14px 4px;background:var(--panel);line-height:1.55;overflow-wrap:anywhere;white-space:pre-wrap}.workspace .meta{display:block;font-size:11px;margin-top:5px;color:var(--muted)}.workspace .mine{justify-content:flex-end}.workspace .mine .bubble{background:var(--out);border-color:#2a4a65;border-radius:14px 14px 4px 14px}.workspace .mine .meta{text-align:right}
.workspace .compose{padding:0 32px 19px;width:100%;max-width:1050px;margin:0 auto}.workspace .compose-box{display:flex;align-items:center;gap:10px;padding:9px;border:1px solid #34455d;border-radius:13px;background:#131d2b}.workspace .compose textarea{width:100%;min-width:0;height:37px;resize:none;padding:9px 2px;background:transparent;border:0}.workspace .compose textarea::placeholder{color:var(--muted)}.workspace .send{border:0;border-radius:9px;background:var(--blue);color:#0b2235;padding:9px 13px;font-weight:600;display:flex;align-items:center;gap:8px}.workspace .send:hover{background:#b4e6ff}.workspace .hint{color:var(--muted);font-size:11px;margin:8px 0 0;text-align:right}
.workspace .icon{width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--line);background:var(--panel);border-radius:9px;color:var(--blue)}.workspace .icon:hover{background:#263c52}
.workspace .new-chat{width:min(calc(100% - 32px),440px);padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--panel);color:var(--ink)}.workspace .new-chat::backdrop{background:#0d1421cc}.workspace .new-chat form{display:grid;gap:14px}.workspace .new-chat h2{margin:0;font:700 18px Unbounded,Onest,sans-serif}.workspace .new-chat label{display:grid;gap:6px}.workspace .new-chat :is(input,select){font:inherit;padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--canvas);color:var(--ink)}.workspace .new-chat footer{display:flex;align-items:center;justify-content:space-between}.workspace .new-chat .cancel{color:var(--blue);background:none;border:0;text-decoration:underline;padding:0}.workspace .new-chat p{margin:0;color:var(--muted)}.workspace .new-chat [role=alert]:empty{display:none}
@media(max-width:720px){.workspace{display:block}.workspace .sidebar{border-right:0;border-bottom:1px solid var(--line)}.workspace .brand{padding:13px 15px}.workspace .list-title{margin:0 15px 4px}.workspace .rooms{display:flex;overflow:auto;padding:0 12px 9px}.workspace .room{width:auto;flex:none;padding:8px}.workspace .room .avatar{width:28px;height:28px}.workspace .room-copy small,.workspace .profile,.workspace .group-label,.workspace .hint,.workspace .send span{display:none}.workspace .chat{min-height:calc(100dvh - 211px)}.workspace .chat-head{padding:12px 15px}.workspace .chat-head h1{font-size:14px}.workspace .thread{padding:0 14px 16px}.workspace .message{margin-bottom:13px}.workspace .compose{padding:0 12px 10px}.workspace .send{padding:9px}.workspace .bubble{padding:9px 11px}}
