@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700&display=swap');

:root{--ink:#17191c;--muted:#737981;--line:#e6e8eb;--soft:#f5f6f7;--paper:#fff;--accent:#dfff45;--danger:#d94b4b;--shadow:0 20px 60px rgba(22,25,28,.12);--app-height:100dvh;--viewport-top:0px}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#f7f8f9;color:var(--ink);font-family:"DM Sans",Arial,sans-serif;letter-spacing:0}button,input,textarea{font:inherit;color:inherit}button{cursor:pointer}.hidden{display:none!important}
.entry-shell{min-height:100vh;display:grid;grid-template-columns:minmax(420px,1.1fr) minmax(360px,.9fr);background:var(--paper)}
.entry-panel{display:flex;flex-direction:column;justify-content:center;padding:clamp(40px,8vw,120px);max-width:760px}.brand-mark{display:flex;gap:5px;height:42px;align-items:flex-end;margin-bottom:52px}.brand-mark span{display:block;width:9px;background:var(--ink)}.brand-mark span:nth-child(1){height:20px}.brand-mark span:nth-child(2){height:36px}.brand-mark span:nth-child(3){height:27px}.eyebrow{font:700 11px "Manrope",sans-serif;letter-spacing:2px;margin:0 0 12px;color:#777d84}.entry-panel h1{font:600 clamp(38px,5vw,68px)/1.05 "Manrope",sans-serif;margin:0;max-width:600px}.entry-copy{font-size:17px;line-height:1.7;color:var(--muted);max-width:570px;margin:26px 0 46px}.entry-form{max-width:580px}.entry-form label,.dialog label{display:block;font-weight:600;margin-bottom:10px}.entry-input-row{display:grid;grid-template-columns:1fr auto;gap:10px}.entry-form input,.dialog input{width:100%;height:54px;border:1px solid #dadddf;background:#fff;padding:0 17px;outline:none;border-radius:3px;transition:.2s}.entry-form input:focus,.dialog input:focus{border-color:var(--ink);box-shadow:0 0 0 3px rgba(23,25,28,.06)}.primary-button{height:54px;border:0;background:var(--ink);color:#fff;padding:0 27px;border-radius:3px;font-weight:600}.primary-button:hover{background:#000}.field-note{font-size:12px;color:#8b9096;margin:9px 0 0}.entry-aside{position:relative;overflow:hidden;background:#181b1e;color:#fff}.signal-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(to bottom,transparent 5%,black 40%,black 85%,transparent)}.signal-grid:after{content:"";position:absolute;width:240px;height:240px;border:1px solid rgba(223,255,69,.45);border-radius:50%;left:50%;top:43%;transform:translate(-50%,-50%);box-shadow:0 0 0 60px rgba(223,255,69,.035),0 0 0 120px rgba(223,255,69,.02)}.aside-content{position:absolute;left:clamp(36px,6vw,90px);right:40px;bottom:clamp(45px,9vh,100px)}.aside-content>p{color:var(--accent);font-size:12px;text-transform:uppercase;letter-spacing:2px}.aside-content strong{display:block;font:600 clamp(28px,3.5vw,48px)/1.2 "Manrope",sans-serif;max-width:460px}.status-line{margin-top:42px;font-size:13px;color:#aeb3b8;display:flex;align-items:center;gap:9px}.status-line i{width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px rgba(223,255,69,.12)}
.app-shell{height:100vh;display:grid;grid-template-columns:350px minmax(0,1fr);background:#fff}.sidebar{height:100vh;border-right:1px solid var(--line);display:flex;flex-direction:column;background:#fafbfb;min-width:0}.sidebar-header{height:82px;padding:0 24px;display:flex;align-items:center;justify-content:space-between}.brand-lockup{display:flex;align-items:center;gap:10px;font:700 15px "Manrope",sans-serif;letter-spacing:1.5px}.brand-dot{width:18px;height:18px;background:var(--ink);position:relative}.brand-dot:after{content:"";position:absolute;width:5px;height:5px;background:var(--accent);right:3px;top:3px}.profile-button{border:0;background:transparent;padding:0}.profile-button span,.chat-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#e3e6e8;font-weight:700;font-size:13px}.sidebar-tools{display:grid;grid-template-columns:1fr 42px;gap:8px;padding:0 18px 22px}.search-box{height:42px;display:flex;align-items:center;border:1px solid var(--line);background:#fff;padding:0 12px;gap:8px}.search-box svg{width:17px;fill:none;stroke:#92979c;stroke-width:1.8}.search-box input{border:0;outline:0;width:100%;background:transparent;font-size:13px}.icon-button{width:40px;height:40px;border:1px solid var(--line);background:#fff;display:grid;place-items:center;border-radius:3px}.icon-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.icon-button.dark{background:var(--ink);color:#fff;border-color:var(--ink)}.sidebar-label{padding:0 22px 12px;display:flex;justify-content:space-between;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1.3px;color:#969ba0}.room-list{overflow-y:auto;padding:0 10px}.room-item{width:100%;border:0;background:transparent;display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;text-align:left;padding:11px 12px;margin-bottom:3px;border-radius:4px}.room-item:hover{background:#f0f2f3}.room-item.active{background:#e9ecee}.room-avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#dfe3e5;font-size:12px;font-weight:700}.room-item.direct .room-avatar{background:#222;color:#fff}.room-content{min-width:0}.room-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.room-name{font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.room-time{font-size:10px;color:#92979c;flex:none}.room-preview{font-size:12px;color:#858a90;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.empty-rooms{margin:auto 32px;text-align:center;color:#898e94}.empty-rooms strong{display:block;color:#53585d;font-size:14px;margin:16px 0 5px}.empty-rooms p{font-size:12px;line-height:1.6;margin:0}.empty-icon{height:40px;display:flex;justify-content:center;align-items:end;gap:5px}.empty-icon span{width:9px;background:#cfd3d6}.empty-icon span:first-child{height:24px}.empty-icon span:last-child{height:38px}.sidebar-footer{height:62px;border-top:1px solid var(--line);display:flex;align-items:center;padding:0 22px;gap:8px;font-size:12px;margin-top:auto}.sidebar-footer small{color:#969ba0;margin-left:auto}.online-dot{width:7px;height:7px;background:#8bbd28;border-radius:50%}
.chat-panel{min-width:0;height:100vh;background:#fff}.blank-chat{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.blank-symbol{display:flex;align-items:flex-end;gap:6px;height:58px;margin-bottom:24px}.blank-symbol i{display:block;width:13px;background:#d6dade}.blank-symbol i:nth-child(1){height:29px}.blank-symbol i:nth-child(2){height:52px;background:var(--ink)}.blank-symbol i:nth-child(3){height:40px}.blank-chat h2{font:600 25px "Manrope",sans-serif;margin:0 0 10px}.blank-chat p{color:var(--muted);margin:0 0 28px}.text-button{border:0;background:transparent;font-weight:600;border-bottom:1px solid #b9bdc1;padding:0 0 6px}.text-button span{margin-left:10px}.active-chat{height:100%;display:grid;grid-template-rows:78px minmax(0,1fr) auto auto}.chat-header{border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 28px;gap:13px}.chat-avatar{width:40px;height:40px;background:#202326;color:#fff}.chat-heading{min-width:0}.chat-heading h2{font:600 15px "Manrope",sans-serif;margin:0 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-heading p{font-size:11px;color:#8a8f95;margin:0}.chat-actions{margin-left:auto;display:flex;gap:7px}.icon-button.notification-active{background:var(--ink);color:#fff;border-color:var(--ink)}.message-list{overflow-y:auto;padding:32px max(28px,8vw);scroll-behavior:smooth}.message-row{display:flex;margin-bottom:20px;gap:10px;align-items:flex-end}.message-row.mine{justify-content:flex-end}.message-bubble-wrap{max-width:min(68%,680px)}.message-author{font-size:10px;color:#8d9297;margin:0 0 6px 3px}.message-bubble{background:#f0f2f3;padding:11px 14px;border-radius:4px 4px 4px 0;font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.message-row.mine .message-bubble{background:#202326;color:#fff;border-radius:4px 4px 0 4px}.message-time{font-size:9px;color:#9ba0a5;margin-top:5px}.message-row.mine .message-time{text-align:right}.day-divider{text-align:center;font-size:10px;color:#9da2a7;margin:12px 0 26px}.composer{margin:0 max(28px,8vw) 26px;border:1px solid #dfe2e4;display:grid;grid-template-columns:42px minmax(0,1fr) 44px;align-items:end;padding:8px;background:#fff;box-shadow:0 8px 28px rgba(26,28,31,.06)}.composer-tool{width:40px;height:40px;border:0;background:transparent;display:grid;place-items:center;color:#737980;border-radius:3px}.composer-tool:hover{background:#f0f2f3}.composer-tool.recording{background:#ffe8e8;color:#c73535}.composer-tool svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.composer textarea{resize:none;border:0;outline:0;min-height:40px;max-height:140px;padding:10px 0;line-height:20px}.send-button{width:40px;height:40px;border:0;background:var(--ink);color:#fff;display:grid;place-items:center;border-radius:3px}.send-button svg{width:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.recording-bar{margin:0 max(28px,8vw) 8px;min-height:42px;background:#fff1f1;color:#a72f2f;display:flex;align-items:center;gap:9px;padding:0 14px;font-size:12px;border:1px solid #ffd5d5}.recording-bar strong{margin-left:2px}.recording-bar button{border:0;background:transparent;color:#8c3030;margin-left:auto;font-weight:600}.recording-pulse{width:8px;height:8px;border-radius:50%;background:#d83f3f;animation:recordPulse 1s infinite}.voice-player{display:flex;align-items:center;gap:10px;min-width:180px}.voice-play{width:34px;height:34px;border-radius:50%;border:0;background:#fff;color:#202326;display:grid;place-items:center;flex:none}.message-row.mine .voice-play{background:#fff;color:#202326}.voice-play svg{width:15px;height:15px;fill:currentColor}.voice-duration{font-size:12px;font-weight:600}.room-item{position:relative}.unread-badge{position:absolute;right:11px;bottom:8px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#1f2225;color:#fff;font-size:10px;display:grid;place-items:center}.mobile-only{display:none}@keyframes recordPulse{50%{opacity:.3;transform:scale(.8)}}
.dialog-backdrop{position:fixed;inset:0;background:rgba(20,22,24,.45);display:grid;place-items:center;padding:20px;z-index:20}.dialog{width:min(520px,100%);background:#fff;padding:30px;box-shadow:var(--shadow)}.dialog header{display:flex;justify-content:space-between;align-items:flex-start}.dialog h2{font:600 24px "Manrope",sans-serif;margin:0}.segmented{display:grid;grid-template-columns:repeat(3,1fr);background:#f0f2f3;padding:3px;margin:28px 0 24px}.segment{min-height:38px;border:0;background:transparent;font-size:12px;color:#747a80}.segment.active{background:#fff;color:var(--ink);font-weight:600;box-shadow:0 1px 4px rgba(0,0,0,.08)}.dialog .full{width:100%;margin-top:24px}.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);background:#1e2124;color:#fff;padding:11px 17px;font-size:12px;border-radius:3px;opacity:0;pointer-events:none;transition:.25s;z-index:30}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:760px){html,body{height:100%;overflow:hidden}.entry-shell{display:block;min-height:100svh}.entry-panel{min-height:100svh;padding:36px 24px;justify-content:center}.entry-aside{display:none}.brand-mark{margin-bottom:42px}.entry-panel h1{font-size:40px}.entry-copy{font-size:15px;margin:20px 0 36px}.entry-input-row{grid-template-columns:1fr}.primary-button{width:100%}.app-shell{display:block;height:var(--app-height);min-height:0}.sidebar{width:100%;height:var(--app-height);min-height:0;border:0}.sidebar-header{height:72px}.room-item{padding:13px 12px}.chat-panel{position:fixed;top:var(--viewport-top);right:0;bottom:auto;left:0;height:var(--app-height);min-height:0;overflow:hidden;transform:translateX(100%);transition:transform .23s ease;z-index:10}.app-shell.chat-open .chat-panel{transform:translateX(0)}.blank-chat{display:none}.active-chat{height:100%;min-height:0;grid-template-rows:68px minmax(0,1fr) auto auto}.chat-header{padding:0 14px;gap:10px}.mobile-only{display:grid}.message-list{min-height:0;padding:24px 16px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.message-bubble-wrap{max-width:84%}.composer{margin:0;padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:#fff}.recording-bar{margin:0 12px 8px}.composer textarea{font-size:16px}.dialog{padding:24px 20px}.segmented{overflow-x:auto}.segment{font-size:11px}.toast{bottom:calc(18px + env(safe-area-inset-bottom));max-width:88%;text-align:center}}
@media(min-width:761px) and (max-width:1024px){.app-shell{grid-template-columns:300px}.message-list,.composer{margin-left:36px;margin-right:36px}.message-list{padding-left:36px;padding-right:36px}}
