:root{font-family:Inter,ui-sans-serif,system-ui,Segoe UI,sans-serif;color:#111e35;background:#f6f9fd;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,input:focus-visible{outline:3px solid #9dc1ff;outline-offset:2px}.hidden{display:none!important}.shell{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100dvh}.side{background:#fff;border-right:1px solid #e8eef6;padding:28px 16px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;padding:0 8px 35px}.brand-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:14px;color:#fff;background:linear-gradient(135deg,#1266ec,#38bdff);font-size:26px;font-weight:850}.brand strong,.brand small{display:block}.brand strong{font-size:16px}.brand small{font-size:11px;color:#7c8ba5;margin-top:3px}.side nav{display:grid;gap:6px}.side nav button{height:46px;border:0;background:transparent;color:#65738a;border-radius:10px;text-align:left;padding:0 14px;font-weight:650}.side nav .active{background:#eaf2ff;color:#1769ff}.side-bottom{margin-top:auto;border-top:1px solid #e8eef6;padding:18px 8px 0;font-size:12px}.side-bottom button{border:0;background:transparent;color:#60718b;margin-top:10px;padding:10px 0}main{min-width:0}.auth{max-width:930px;margin:0 auto;padding:clamp(45px,9vw,110px) 28px}.eyebrow{font-size:11px;color:#1769ff;font-weight:800;letter-spacing:.17em}.auth h1{font-size:clamp(34px,4.6vw,57px);letter-spacing:-.055em;max-width:650px;line-height:1.1;margin:18px 0}.auth>p{font-size:17px;color:#62748e;max-width:680px;line-height:1.7}.auth-card{margin-top:34px;background:#fff;padding:26px;border:1px solid #e6ebf3;box-shadow:0 20px 70px #1f355218;max-width:490px;border-radius:20px}.tabs{display:flex;gap:8px;background:#f2f6fc;padding:5px;border-radius:12px;margin-bottom:22px}.tabs button{flex:1;padding:11px;border:0;background:transparent;color:#63748f;border-radius:9px;font-size:13px;font-weight:700}.tabs .chosen{background:#fff;color:#0c1c36;box-shadow:0 2px 8px #09234716}.auth label{display:block;margin-bottom:16px;font-size:13px;font-weight:650}.auth input,.chat-list input,.conversation input,dialog input{display:block;width:100%;margin-top:7px;border:1px solid #dfe7f1;background:#fcfdff;border-radius:11px;padding:13px 14px;color:#10203e;font-size:14px;min-width:0}.primary{border:0;border-radius:11px;padding:13px 17px;background:#1769ff;color:#fff;font-weight:750;box-shadow:0 7px 20px #1769ff26}.primary:hover{background:#0f5add}.wide{width:100%;margin-top:6px}.error{font-size:13px;color:#c23046;min-height:18px}.workspace{padding:32px;max-width:1580px;margin:auto}.workspace>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px;gap:16px}.workspace h1{font-size:32px;letter-spacing:-.04em;margin:5px 0}.workspace-columns{display:grid;grid-template-columns:minmax(255px,360px) minmax(0,1fr);background:#fff;border:1px solid #e4eaf3;border-radius:18px;overflow:hidden;min-height:calc(100dvh - 155px);box-shadow:0 18px 50px #1631540a}.chat-list{border-right:1px solid #e4eaf3;padding:17px 0}.chat-list>input{width:calc(100% - 30px);margin:0 15px 15px}.chat-row{width:100%;border:0;border-bottom:1px solid #f1f4f8;background:white;display:flex;gap:12px;align-items:center;padding:16px;text-align:left;color:inherit}.chat-row:hover,.chat-row.selected{background:#f0f6ff}.avatar{flex:0 0 43px;width:43px;height:43px;border-radius:50%;display:grid;place-items:center;background:#e8f2ff;color:#1769ff;font-weight:800}.chat-row b,.chat-row small{display:block}.chat-row small{color:#8190a4;max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:4px}.conversation{min-width:0;display:flex;flex-direction:column;height:calc(100dvh - 155px)}.conversation-head{min-height:72px;padding:24px;border-bottom:1px solid #e6edf5;font-weight:750}.messages{flex:1;min-height:200px;overflow-y:auto;padding:24px;display:flex;flex-direction:column;gap:10px;background:linear-gradient(#fff,#fbfdff)}.empty{margin:auto;color:#96a2b4}.bubble{align-self:flex-start;max-width:min(78%,530px);padding:12px 15px;background:#f0f3f8;border-radius:15px 15px 15px 4px;font-size:14px;line-height:1.55;overflow-wrap:anywhere;white-space:pre-wrap}.bubble.mine{align-self:flex-end;background:#1769ff;color:white;border-radius:15px 15px 4px 15px}.bubble small{display:block;margin-top:7px;font-size:10px;opacity:.65}#sendForm{border-top:1px solid #e6edf5;padding:13px;display:flex;align-items:center;gap:10px}#sendForm input{margin:0;flex:1}dialog{border:1px solid #dfe7f1;border-radius:18px;padding:25px;max-width:430px;width:calc(100% - 35px);box-shadow:0 30px 90px #0d1a3360}dialog::backdrop{background:#07112665;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head button{background:transparent;border:0;font-size:22px}dialog p{font-size:13px;color:#65748b;line-height:1.6}#newForm{display:flex;gap:8px;flex-wrap:wrap}#newForm input{flex:1;min-width:140px;margin:0}#newForm button{white-space:nowrap}@media(max-width:850px){.shell{grid-template-columns:1fr}.side{padding:12px 18px;flex-direction:row;align-items:center;gap:10px}.brand{padding:0}.brand small,.side nav,.side-bottom{display:none}.workspace{padding:16px}.workspace-columns{grid-template-columns:1fr}.conversation{height:64dvh}.chat-list{max-height:230px;overflow:auto;border-right:0;border-bottom:1px solid #e4eaf3}.workspace>header{align-items:flex-start}.workspace h1{font-size:26px}.workspace>header button{font-size:12px}.auth{padding:40px 18px}.bubble{max-width:90%}}
