:root{font:15px/1.45 system-ui,-apple-system,sans-serif;color:#26242b;background:#f6f5fa;--line:#e5e1ec;--muted:#666174;--accent:#9f392b;--white:#fff}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,select,textarea{font:inherit}button,input,select,textarea{border:1px solid #d9d4e2;border-radius:9px;padding:8px 11px;background:#fff;color:inherit}button{cursor:pointer;font-weight:600}button:hover:not(:disabled){background:#f5f0f8}button:disabled{cursor:default;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.primary{background:var(--accent);border-color:var(--accent);color:#fff}.primary:hover:not(:disabled){background:#812e22}a{color:var(--accent)}label{display:grid;gap:5px;font-weight:600}.muted,.hint{color:var(--muted);font-size:13px}.error{color:#932d28;margin:0;overflow-wrap:anywhere}.error:empty{display:none}h1,h2,p{margin:0}.signin{min-height:100dvh;display:grid;place-items:center;padding:20px;background:radial-gradient(at 15% 20%,#f5ddd6,transparent 50%),radial-gradient(at 80% 60%,#e9e2f5,transparent 55%),#f6f5fa}.login-card{width:min(420px,100%);background:#fff;border:1px solid var(--line);border-radius:22px;padding:32px;display:grid;gap:15px;box-shadow:0 18px 55px #31284016}.login-card h1{font-size:32px;letter-spacing:-.04em}.login-card p:not(.error){color:var(--muted)}.eyebrow{font-size:11px;font-weight:750;letter-spacing:.12em;color:var(--accent)}.workspace{height:100dvh;display:flex;flex-direction:column}.topbar{min-height:68px;padding:10px clamp(12px,3vw,34px);display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--white);border-bottom:1px solid var(--line)}.brand,.top-actions,.list-heading,.compose-tools,.attachment,.dialog-head{display:flex;align-items:center;gap:9px}.brand>div{display:grid;overflow-wrap:anywhere}.brand-icon{display:grid;place-items:center;background:#f7ddd6;color:var(--accent);width:38px;height:38px;border-radius:11px;font-weight:800;flex:none}.top-actions button{white-space:nowrap}.layout{min-height:0;flex:1;display:grid;grid-template-columns:minmax(280px,350px) minmax(0,1fr)}.sidebar{min-height:0;display:flex;flex-direction:column;background:var(--white);border-right:1px solid var(--line)}.sidebar-tools{padding:15px;display:grid;gap:9px;border-bottom:1px solid var(--line)}.list-heading{justify-content:space-between;margin-top:4px}.list-heading button{font-size:13px}.check{display:flex;align-items:center;font-size:13px;color:var(--muted)}.check input{accent-color:var(--accent)}.chat-list{overflow:auto;flex:1}.chat{width:100%;border:0;border-bottom:1px solid #f0edf4;border-radius:0;background:#fff;text-align:left;display:grid;gap:3px;padding:11px 15px;min-height:66px}.chat.active{background:#faeae6;border-left:3px solid var(--accent);padding-left:12px}.chat-head{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%}.chat small{font-weight:400;color:var(--muted);flex:none}.ellipsis{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thread{min-height:0;min-width:0;display:flex;flex-direction:column}.empty{color:var(--muted);text-align:center;padding:24px;margin:auto}.thread-view{height:100%;min-height:0;display:flex;flex-direction:column}.thread-head{min-height:65px;display:flex;align-items:center;gap:12px;padding:10px 18px;border-bottom:1px solid var(--line);background:var(--white);overflow-wrap:anywhere}.back{display:none}.thread-error{padding:8px 15px;background:#faeae6}.timeline{flex:1;min-height:0;overflow:auto;overflow-anchor:none;padding:15px clamp(12px,3vw,34px)}#messages{display:flex;flex-direction:column;gap:8px}.bubble{align-self:flex-start;max-width:min(77%,620px);padding:9px 12px;border:1px solid var(--line);background:#fff;border-radius:13px;overflow-wrap:anywhere;white-space:pre-wrap}.bubble.out{align-self:flex-end;background:#faeae6;border-color:#efdbd5}.bubble.system{align-self:center;background:transparent;color:var(--muted);font-size:13px}.bubble time{display:block;text-align:right;font-size:11px;color:var(--muted);margin-top:4px}.bubble img{display:block;width:auto;max-width:100%;max-height:290px;object-fit:contain;border-radius:7px}.more{display:block;margin:7px auto 10px}.composer{padding:10px clamp(12px,3vw,34px);background:var(--white);border-top:1px solid var(--line);display:grid;gap:7px}.compose-tools{flex-wrap:wrap}.send-form{display:flex;gap:8px;align-items:end}.send-form textarea{flex:1;min-width:0;resize:vertical;max-height:150px}.attachment{flex-wrap:wrap}.attachment img{width:54px;height:44px;object-fit:cover;border-radius:5px}.attachment span{overflow-wrap:anywhere}.dialog-head{justify-content:space-between}.reply-list{margin:12px 0;max-height:28vh;overflow:auto;display:grid;gap:6px}.reply{background:#f6f4fa;padding:8px;border-radius:8px;overflow-wrap:anywhere}.reply p{white-space:pre-wrap;margin:4px 0}dialog{width:min(550px,calc(100% - 24px));max-height:calc(100dvh - 24px);border:1px solid var(--line);border-radius:16px;padding:18px;color:inherit}dialog::backdrop{background:#17102177}#replyForm{display:grid;gap:8px}
@media(max-width:680px){.layout{display:block}.sidebar,.thread{height:100%}.thread,.layout.open .sidebar{display:none}.layout.open .thread{display:flex}.back{display:inline-block}.topbar{padding:8px 10px;min-height:58px}.top-actions button{padding:6px;font-size:12px}.brand-icon{display:none}.bubble{max-width:88%}.compose-tools button,.compose-tools select{font-size:13px;max-width:100%}.hint{display:none}}
