:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172b4d;background:#f3f5f8;font-synthesis:none;--ink:#172b4d;--accent:#0068ff;--muted:#778581;--line:#e4e8ee;--paper:#fff;--mint:#e5efff}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #0068ff;outline-offset:3px}input:focus,textarea:focus,select:focus{outline:2px solid #80b6ff;outline-offset:1px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}h1,h2,p{margin:0}button{border:0;background:none}.muted{color:var(--muted);line-height:1.6}.brand-mark{display:grid;place-items:center;width:44px;height:44px;background:var(--accent);color:#fff;border-radius:12px;font-size:28px;font-weight:800;font-style:italic;flex-shrink:0}.loading{height:100dvh;display:flex;gap:20px;align-items:center;justify-content:center}.primary{background:var(--accent);border:1px solid var(--accent);color:white;border-radius:10px;padding:14px 20px;font-weight:650;display:flex;gap:28px;align-items:center;justify-content:space-between;min-height:48px}.primary:hover{background:#0054d6}.secondary{padding:12px 16px;border:1px solid var(--line);border-radius:10px;min-height:44px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700}.pill{display:inline-block;font-size:10px;letter-spacing:1.8px;font-weight:700;background:#ecede6;padding:9px 12px;border-radius:6px}label{display:block;font-size:13px;font-weight:600}input,select{display:block;width:100%;border:1px solid #dce1da;border-radius:9px;background:#fff;padding:13px 14px;color:var(--ink);margin-top:8px;min-height:46px}input::placeholder,textarea::placeholder{color:#97a09a}form label+label{margin-top:20px}.form-error{color:#af4229;font-size:13px;line-height:1.5;min-height:20px;margin:12px 0}.auth-note{font-size:12px;color:var(--muted);line-height:1.7;margin-top:18px}.brand{display:flex;align-items:center;gap:14px;font-size:20px;letter-spacing:-.5px}.brand b{font-weight:400;opacity:.7}#auth{display:grid;grid-template-columns:1.06fr 1fr;min-height:100dvh}.auth-story{background:var(--ink);color:#f4f4e9;padding:38px 48px;display:flex;flex-direction:column;position:relative;overflow:hidden}.story-body{padding:65px 0 0;max-width:570px;margin:auto 0}.story-body .eyebrow{color:#aab8a9;font-size:10px}.story-body h1{font-size:clamp(40px,4.5vw,70px);letter-spacing:-3px;line-height:1.09;margin:24px 0}.story-body h1 em{font-family:Georgia,serif;font-weight:400;color:#dda47f}.story-body p{font-size:15px;line-height:1.8;color:#b3c1b6}.blueprint{height:175px;position:relative;margin:32px 0;background-image:linear-gradient(#ffffff06 1px,transparent 1px),linear-gradient(90deg,#ffffff06 1px,transparent 1px);background-size:22px 22px;border-top:1px solid #ffffff12}.plan-box{position:absolute;border:1px solid #7e968073;transform:skewY(-12deg)}.plan-box.a{width:160px;height:90px;left:30px;top:40px}.plan-box.b{width:115px;height:65px;left:191px;top:35px}.plan-box.c{width:78px;height:55px;left:111px;top:91px}.blueprint span{position:absolute;bottom:0;right:0;color:#778f7e;letter-spacing:2px;font-size:9px}.story-footer{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1.8px;color:#90a194;padding-top:28px;border-top:1px solid #ffffff15}.auth-panel{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:42px;background:#f7f7f2}.auth-card{width:100%;max-width:370px;margin:auto}.auth-card h2{font-size:30px;letter-spacing:-1px;margin:26px 0 10px}.auth-card form{margin-top:30px}.auth-card .primary{width:100%}.device-note{border-top:1px solid var(--line);margin-top:35px;padding-top:25px;font-size:12px;color:#6d8074;display:flex;align-items:center;gap:12px}.device-note span{font-size:24px}.auth-panel>small{font-size:10px;letter-spacing:1px;color:#98a098;margin-top:40px}
#workspace{display:grid;grid-template-columns:82px 326px minmax(0,1fr);height:100dvh;overflow:hidden;background:#ffffff}.rail{background:var(--ink);padding:26px 0 22px;display:flex;align-items:center;flex-direction:column;gap:35px}.rail .brand-mark{width:42px;height:42px}.rail-items{display:flex;flex-direction:column;gap:15px;width:100%;align-items:center}.rail-button{width:60px;height:65px;color:#90a5a0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border-radius:10px}.rail-button>span{font-size:24px;line-height:26px}.rail-button small{font-size:10px}.rail-button.active{background:#2f4647;color:#f5f4e9}.rail-button:hover{background:#263e40}.profile-avatar{margin-top:auto;background:#c8d7b5;color:#344338;width:38px;height:38px;border-radius:50%;font-size:12px;font-weight:700}.sidebar{background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.workspace-brand{height:93px;display:flex;align-items:center;justify-content:space-between;margin:0 23px;border-bottom:1px solid var(--line)}.workspace-brand b{display:block;font-size:17px;letter-spacing:-.5px}.workspace-brand div>span{display:block;font-size:8px;letter-spacing:1.5px;color:var(--muted);margin-top:7px}.small-logo{font-size:25px;color:#8da090}.sidebar-title{display:flex;align-items:center;justify-content:space-between;padding:26px 22px 18px}.sidebar-title h1{font-size:24px;letter-spacing:-.8px;display:flex;align-items:center;gap:10px}.sidebar-title h1>span{font-size:11px;font-weight:500;letter-spacing:0;background:#eff2ea;padding:4px 7px;border-radius:5px;color:#71806c}.square{min-width:38px;min-height:38px;display:inline-grid;place-items:center;font-size:23px;border-radius:9px}.square:hover{background:#eef1eb}.square.accent{background:#f9e8df;color:var(--accent)}.search-box{display:flex;align-items:center;gap:9px;background:#f5f6f2;border-radius:8px;padding:0 11px;margin:0 22px;font-weight:400}.search-box span{font-size:23px;color:#859284}.search-box input{padding:10px 0;background:none;border:0;min-height:40px;font-size:12px;margin:0}.search-box input:focus{outline:0}.search-box:focus-within{outline:2px solid #80b6ff}.filters{display:flex;padding:18px 22px 21px;gap:6px;border-bottom:1px solid var(--line)}.filters button{font-size:11px;padding:8px 11px;border-radius:6px;color:#7d887f;white-space:nowrap;min-height:34px}.filters button.selected{background:var(--ink);color:#fff}.list-label{font-size:9px;letter-spacing:1.3px;font-weight:600;color:#879087;padding:22px 23px 11px;display:flex;justify-content:space-between}.rooms{overflow:auto;padding:0 10px;flex:1}.room{display:flex;width:100%;text-align:left;gap:11px;padding:15px 12px;border-radius:9px;margin:3px 0}.room:hover{background:#f6f6f0}.room.active{background:#ecf1e8}.room-avatar{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#e6ece1;color:#668167;font-size:22px;flex-shrink:0}.room-avatar.direct{background:#ede7de;color:#986e54;font-size:13px;font-weight:650}.room-copy{flex:1;min-width:0}.room-top{display:flex;align-items:center;gap:5px;justify-content:space-between;margin-bottom:7px}.room-name{font-size:13px;font-weight:650;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.room-time{font-size:9px;color:#899187;white-space:nowrap}.room-preview{font-size:11px;color:#8a9288;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.room-bottom{display:flex;gap:6px;align-items:center}.unread{border-radius:9px;min-width:17px;padding:3px;background:var(--accent);color:#fff;font-size:9px;text-align:center;margin-left:auto}.project-tag{display:inline-block;font-size:9px;margin-top:8px;color:#648167}.sidebar-bottom{display:flex;align-items:center;gap:8px;border-top:1px solid var(--line);margin:15px 22px 0;padding:16px 0;color:#8a9688;font-size:10px}.sidebar-bottom button{margin-left:auto;font-size:22px;min-width:32px;min-height:32px}.connection-dot{width:6px;height:6px;background:#d6a062;border-radius:50%}.connected .connection-dot{background:#7d9d73}.disconnected .connection-dot{background:#cd765b}.chat-main{min-width:0;min-height:0;position:relative}.chat-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px}.empty-orbit{width:130px;height:130px;border:1px solid #e3e7dc;border-radius:50%;display:grid;place-items:center;outline:1px dashed #e4e7df;outline-offset:20px;margin-bottom:52px;background:radial-gradient(#eef1e4,transparent)}.empty-orbit .brand-mark{width:55px;height:55px;transform:rotate(-8deg);box-shadow:0 12px 30px #182a2914}.chat-empty .eyebrow{font-size:9px;color:#879780}.chat-empty h2{font-size:29px;line-height:1.3;letter-spacing:-1px;margin:17px 0}.chat-empty p{color:#939c8c;font-size:13px;line-height:1.8}.chat-empty .primary{font-size:12px;margin-top:26px}.empty-bottom{position:absolute;bottom:34px;font-size:8px;letter-spacing:2px;color:#9fa797}.empty-bottom span{margin:0 15px}#chat{height:100%;display:flex;flex-direction:column}.chat-header{height:93px;min-height:93px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:14px;padding:0 30px}.chat-heading{flex:1;min-width:0}.chat-heading h2{font-size:17px;letter-spacing:-.4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-heading>span{font-size:10px;color:#879685;display:block;margin-top:6px}.chat-header .square{color:#84907f;font-size:24px}.back{display:none}.context-bar{display:flex;align-items:center;gap:9px;padding:11px 30px;background:#f1f4eb;border-bottom:1px solid #e6ebdd;font-size:11px;color:#6d8265}.context-bar small{margin-left:auto;font-size:8px;letter-spacing:1px;color:#97a18d}.message-search{padding:10px 24px;display:flex;gap:10px;background:#fff;border-bottom:1px solid var(--line)}.message-search input{margin:0;min-height:38px;padding:9px;font-size:13px}.message-search button{font-size:12px}.messages{flex:1;overflow:auto;padding:25px 32px 12px;overscroll-behavior:contain;scroll-behavior:smooth}.messages .empty{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:100%;text-align:center;padding:30px;color:#87917e}.messages .empty>span{font-size:36px;color:#a8b59a;margin-bottom:14px}.messages .empty h3{margin:0 0 8px;font-size:17px;color:#586f54}.messages .empty p{font-size:12px;line-height:1.7;max-width:330px}.date-separator{display:flex;align-items:center;gap:14px;font-size:9px;letter-spacing:.5px;color:#99a08f;margin:4px 0 24px;justify-content:center}.date-separator:before,.date-separator:after{content:'';height:1px;background:#e8ebdf;flex:1}.message{display:flex;gap:10px;margin:0 0 19px;align-items:flex-end}.message.mine{flex-direction:row-reverse}.message .avatar{width:28px;height:28px;border-radius:50%;background:#e5e9da;color:#768563;display:grid;place-items:center;font-size:9px;font-weight:650;flex-shrink:0;margin-bottom:20px}.message.mine .avatar{display:none}.message-content{max-width:min(78%,660px);min-width:70px}.message-author{font-size:10px;color:#88967b;margin-bottom:6px}.message.mine .message-author{text-align:right}.bubble{font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #e5e9dd;background:#fff;border-radius:12px 12px 12px 3px;padding:12px 15px;color:#172b4d}.mine .bubble{background:#dcecff;border-color:#c9def5;border-radius:12px 12px 3px 12px;color:#172b4d}.message-meta{font-size:9px;color:#a0a895;margin:6px 2px}.mine .message-meta{text-align:right}.composer{padding:15px 30px 20px;background:linear-gradient(transparent,#ffffff 10%)}.composer-box{border:1px solid #dce2d3;border-radius:12px;background:#fff;box-shadow:0 3px 12px #24392804}.composer textarea{resize:none;width:100%;border:0;outline:0;background:none;padding:15px 16px 5px;font-size:13px;line-height:1.6;min-height:48px;max-height:160px}.composer textarea:focus{outline:none}.composer-box:focus-within{border-color:#aabb97}.composer-actions{display:flex;align-items:center;justify-content:space-between;padding:6px 10px 9px 16px}.composer-actions>span{color:#a2ab96;font-size:9px}.send-button{width:36px;height:36px;display:grid;place-items:center;background:var(--accent);color:#fff;border-radius:9px;font-size:24px}.composer-hint{display:flex;justify-content:space-between;margin:9px 3px 0;color:#a3ab99;font-size:8px}.send-error{margin:8px 30px 0;background:#fff0e7;color:#ad4f30;font-size:12px;padding:10px;border-radius:7px}.load-more{display:block;margin:0 auto 20px;font-size:11px;color:#6b8160;border:1px solid #dbe3d3;padding:8px 14px;border-radius:15px}dialog{border:1px solid var(--line);border-radius:18px;max-width:500px;width:calc(100% - 32px);padding:25px;color:var(--ink);box-shadow:0 24px 80px #172b4d33;background:#ffffff;max-height:85dvh}dialog::backdrop{background:#132a3055;backdrop-filter:blur(3px)}.modal-header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:20px}.modal-header h2{font-size:21px;letter-spacing:-.6px}.modal-header .square{font-size:26px}.modal-copy{font-size:13px;line-height:1.8;color:#7a8875}.modal-actions{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}.modal-actions button{flex:1}.member-list{max-height:220px;overflow:auto;margin:10px 0;border:1px solid var(--line);border-radius:9px;background:#fff}.member-option{display:flex;align-items:center;gap:12px;padding:12px;border-bottom:1px solid var(--line);font-weight:400;font-size:13px}.member-option:last-child{border:0}.member-option input{width:18px;min-height:18px;margin:0;accent-color:var(--accent)}.member-option small{display:block;font-size:10px;color:#929d88;margin-top:3px}.modal-form>label{margin-top:15px}.modal-form .primary{width:100%;margin-top:18px}.roadmap{list-style:none;padding:0;margin:20px 0}.roadmap li{display:flex;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line);font-size:13px}.roadmap li>span{font-size:10px;color:#96a18c}.roadmap small{margin-left:auto;font-size:10px;color:#8b967f}.roadmap li:first-child{color:var(--accent)}.no-rooms{padding:25px 12px;font-size:12px;color:#8a9581;line-height:1.8}.project-row{padding:14px 0;border-bottom:1px solid var(--line);font-size:14px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;padding:13px 22px;border-radius:10px;font-size:13px;z-index:20;max-width:90%;box-shadow:0 4px 24px #0002}
@media(min-width:1500px){#workspace{grid-template-columns:90px 365px minmax(0,1fr)}.messages{padding:30px 7%}.composer{padding:16px 7% 24px}.auth-story{padding:50px 70px}}@media(max-width:1050px){#workspace{grid-template-columns:70px 280px minmax(0,1fr)}.workspace-brand{margin:0 18px}.sidebar-title{padding-left:18px;padding-right:18px}.sidebar-title h1{font-size:22px}.filters{padding:16px 14px}.search-box{margin:0 18px}.chat-header{padding:0 20px}.messages{padding:24px 20px 10px}.composer{padding:12px 20px 18px}.auth-story{padding:30px}.story-body h1{font-size:48px}}@media(max-width:720px){#auth{display:block}.auth-story{padding:24px;min-height:240px}.story-body{padding:27px 0 0}.story-body h1{font-size:37px;letter-spacing:-1.7px;margin:16px 0}.story-body h1 br:nth-child(2){display:none}.story-body p,.blueprint,.story-footer{display:none}.auth-story .brand{font-size:17px}.auth-story .brand-mark{width:35px;height:35px;font-size:24px}.auth-panel{padding:32px 25px}.auth-card{max-width:410px}.auth-card h2{font-size:27px}.auth-card form{margin-top:23px}.auth-panel>small{margin-top:25px}#workspace{grid-template-columns:60px minmax(0,1fr);height:100dvh;padding-top:env(safe-area-inset-top)}.rail{padding:20px 0 calc(20px + env(safe-area-inset-bottom));gap:28px}.rail .brand-mark{width:36px;height:36px;font-size:24px}.rail-button{width:49px;height:58px}.sidebar{border:0}.workspace-brand{height:82px}.sidebar-title h1{font-size:26px}.sidebar-title{padding:24px 20px 18px}.sidebar-title .square{width:40px;height:40px}.filters{padding:18px 20px}.filters button{font-size:12px}.rooms{padding:0 12px}.room{padding:17px 12px}.room-name{font-size:14px}.room-preview{font-size:12px}.room-avatar{width:44px;height:44px}.sidebar-bottom{padding-bottom:calc(15px + env(safe-area-inset-bottom))}.chat-main{display:none}.mobile-chat .rail,.mobile-chat .sidebar{display:none}.mobile-chat#workspace{display:block}.mobile-chat .chat-main{display:block;height:100%}.chat-header{height:75px;min-height:75px;gap:9px;padding:0 12px}.chat-header .room-avatar{width:37px;height:37px;border-radius:10px}.chat-heading h2{font-size:15px}.chat-heading>span{font-size:10px}.chat-header .square{min-width:34px;min-height:40px}.back{display:inline-grid}.messages{padding:22px 15px 10px}.message-content{max-width:83%}.bubble{font-size:14px}.composer{padding:10px 12px calc(10px + env(safe-area-inset-bottom))}.composer textarea{font-size:16px;padding:12px 12px 5px}.composer-hint{display:none}.composer-actions{padding-left:12px}.composer-actions>span{font-size:8px}.send-button{width:40px;height:40px}.send-error{margin:6px 12px}.context-bar{padding:10px 16px}.context-bar small{display:none}.modal-header h2{font-size:20px}input,select{font-size:16px}.message-search input{font-size:16px}.search-box input{font-size:16px}.search-box input::placeholder{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Chat attachments, quotes and notification controls */
.message-actions{display:flex;gap:5px;flex-wrap:wrap;margin:5px 0}.message-actions button{font:inherit;font-size:12px;border:1px solid var(--line,#dededb);border-radius:12px;background:var(--paper,#fff);padding:4px 8px;cursor:pointer;color:inherit}.message-actions .mine-reaction{background:#d6e9ff;border-color:#0068ff}.quoted-message{border-left:3px solid #0068ff;background:#00000008;border-radius:5px;padding:8px;margin-bottom:8px;font-size:12px;white-space:pre-wrap;max-height:100px;overflow:auto}.attachment{display:flex;flex-direction:column;gap:6px;padding:9px;margin-top:8px;background:#00000006;border-radius:10px;color:inherit;text-decoration:none;overflow-wrap:anywhere}.attachment img{max-width:280px;max-height:230px;width:100%;object-fit:contain;border-radius:8px}.attachment small{color:#777}.attachment-drafts{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:6px}.attachment-drafts>span{font-size:12px;background:#e5efff;border-radius:10px;padding:6px 10px}.attachment-drafts button,.reply-draft button{border:0;background:none;cursor:pointer;font-size:20px}.reply-draft{display:flex;justify-content:space-between;border-left:3px solid #0068ff;padding:8px;background:#edf4ff;font-size:12px;margin-bottom:8px}.reply-draft span{max-height:65px;overflow:auto}.attach-actions{display:flex;gap:8px}.attach-actions button{border:0;background:none;padding:8px;cursor:pointer;color:#005dcc}.emoji-picker{display:flex;gap:8px;flex-wrap:wrap}.emoji-picker button{font-size:26px;padding:10px;background:#f0f4fa;border:0;border-radius:12px;cursor:pointer}#upload-status{font-size:12px;padding:6px;color:#52657a}.message-content{min-width:0}.bubble{overflow-wrap:anywhere}

/* Nexus chat: blue navigation, neutral surfaces and clear conversation hierarchy. */
:root{--muted:#6b778c;--line:#e4e8ee;--paper:#fff;--mint:#e5efff}
.rail{background:#0068ff}.rail .brand-mark{background:#fff;color:#0068ff}.rail-button{color:#e6f0ff}.rail-button.active{background:#0054cf;color:#fff}.rail-button:hover{background:#005add}.profile-avatar{background:#dcecff;color:#0054cf}
.workspace-brand{height:72px}.sidebar-title{padding-top:18px}.sidebar-title h1{font-size:22px}.sidebar-title h1>span{background:#edf3fc;color:#52657a}
.room{border-radius:0;margin:0;padding:16px 12px}.rooms{padding:0}.room:hover{background:#f3f6fa}.room.active{background:#e5efff}.room-avatar,.room-avatar.direct{border-radius:50%;background:#dcecff;color:#0060df}.room-name{font-size:15px;color:#172b4d}.room-preview{font-size:13px;color:#6b778c}.room-time{font-size:11px;color:#7a8699}
#chat,.chat-empty{background:#e9eef5}.chat-header{height:72px;min-height:72px}.chat-header .room-avatar{border-radius:50%}.chat-heading>span,.chat-header .square{color:#6b778c}.context-bar{background:#f4f8ff;border-color:#dce7f5;color:#52657a}
.message .avatar{background:#dcecff;color:#0060df}.message-author{color:#52657a}.bubble{font-size:15px;border-color:#dce3ec;border-radius:10px;color:#172b4d;box-shadow:0 1px 2px #172b4d08}.mine .bubble{border-radius:10px;background:#dcecff;border-color:#c9def5;color:#172b4d}.message-meta{font-size:11px;color:#68788c}.date-separator{font-size:11px;color:#65758b}.date-separator:before,.date-separator:after{background:#d7e0eb}
.composer{background:#fff;border-top:1px solid #e4e8ee;padding-top:10px}.composer-box{border-color:#e4e8ee;border-radius:10px;box-shadow:none}.composer-box:focus-within{border-color:#6aa7ff}.composer textarea{font-size:15px}.send-button{border-radius:50%;background:#0068ff}.composer-hint{color:#6b778c}.attach-actions button{color:#0060df}.chat-empty h2{color:#172b4d}.chat-empty p,.chat-empty .eyebrow,.empty-bottom{color:#6b778c}.empty-orbit{background:#dcecff}.search-box{background:#f0f3f7}.filters button.selected{background:#e5efff;color:#0060df}.square.accent{background:#e5efff;color:#0060df}.square:hover{background:#edf3fc}dialog{background:#fff}
@media(max-width:720px){.chat-header{background:#0068ff;color:#fff}.chat-heading>span,.chat-header .square{color:#e5efff}.composer{padding:10px 12px calc(10px + env(safe-area-inset-bottom))}.message-content{max-width:85%}}
.project-list{display:grid;gap:8px;margin:14px 0}.project-card{display:flex;flex-direction:column;gap:7px;text-align:left;border:1px solid var(--line);border-radius:12px;padding:14px;background:#f3f7ff;width:100%}.project-card span,.project-card small{font-size:12px;color:var(--muted)}.modal-form textarea{display:block;width:100%;padding:12px;border:1px solid var(--line);border-radius:9px;resize:vertical}.member-option{flex-wrap:wrap}.member-option>span{flex:1;min-width:120px}#modal-body h3{margin-top:22px}
