@import url('tokens.css');
*{box-sizing:border-box}body{margin:0;font:var(--body);color:var(--text);background:var(--bg);overflow:hidden}button,input,textarea,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:not-allowed;opacity:.45}button,input,textarea{transition:background .15s,border-color .15s}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid var(--focus);outline-offset:3px}button{border:0}svg{flex-shrink:0;vertical-align:middle}h1,h2,h3,p{margin:0}button svg{pointer-events:none}a{color:var(--link)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;top:-100px;z-index:100;background:white;padding:12px}.skip-link:focus{top:8px}.topbar{height:72px;background:var(--navy);color:white;display:flex;align-items:center;gap:24px;padding:0 24px;position:relative;z-index:20}.brand{display:flex;align-items:center;gap:11px;font-size:27px;font-weight:650;letter-spacing:-1.2px;width:220px;flex-shrink:0}.brand-dot{color:var(--gold)}.brand-mark{width:38px;height:38px;border-radius:11px;overflow:hidden;background:var(--ice);position:relative;flex-shrink:0}.brand-mark img{position:absolute;width:44px;height:auto;max-width:none;left:-3px;top:-1px}.workspace-switch{background:none;color:var(--nav-text);font-size:13px;display:flex;gap:12px;align-items:center;white-space:nowrap}.workspace-label{font-size:9px;letter-spacing:1px;color:var(--nav-muted);border:1px solid var(--nav-border);padding:3px 6px;border-radius:4px}.global-search{height:38px;display:flex;gap:12px;align-items:center;max-width:560px;flex:1;margin:auto;background:var(--nav-light);border:1px solid var(--nav-border);border-radius:8px;color:var(--nav-text);font-size:12px;text-align:left;padding:0 12px}.global-search kbd{margin-left:auto;color:var(--nav-muted);font:10px inherit;border:1px solid var(--nav-border);border-radius:4px;padding:2px 5px;white-space:nowrap}.top-profile{position:relative;background:none;padding:0}.status-dot{position:absolute;bottom:1px;right:0;width:9px;height:9px;border:2px solid var(--navy);border-radius:50%;background:var(--green)}.app-layout{height:calc(100dvh - 72px);display:grid;grid-template-columns:76px 248px minmax(0,1fr) 280px}.rail{background:var(--navy);display:flex;align-items:center;flex-direction:column;gap:14px;padding:22px 8px 18px;color:var(--nav-muted)}.rail-button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;border-radius:9px;width:56px;min-height:54px;background:none;color:var(--nav-muted);font-size:10px}.rail-button svg{width:21px;height:21px}.rail-button:hover{background:var(--nav-light);color:white}.rail-button.active{background:var(--nav-light);color:var(--gold)}.rail-spacer{flex:1}.sidebar{background:var(--sidebar);border-right:1px solid var(--border);padding:25px 14px 16px;display:flex;flex-direction:column;min-height:0;overflow:auto}.sidebar-title{padding:0 10px;display:flex;align-items:center;justify-content:space-between}.sidebar-title h1{font-size:17px;letter-spacing:-.5px;font-weight:650}.subtle{font-size:10px;color:var(--muted)}.new-conversation{display:flex;align-items:center;gap:10px;border:1px solid var(--border-strong);border-radius:7px;background:var(--white);padding:10px;margin:20px 8px 23px;font-size:12px;box-shadow:var(--shadow-small)}.section-label{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:10px;font-weight:700;letter-spacing:1.1px;padding:0 8px 6px}.section-label .icon-btn{width:24px;height:24px}.section-label svg{width:15px;height:15px}.channel-link,.dm-link{width:100%;display:flex;align-items:center;gap:10px;background:none;padding:10px 13px;border-radius:7px;font-size:13px;text-align:left;margin-bottom:3px}.channel-link svg{width:17px;height:17px;color:var(--muted)}.channel-link:hover,.dm-link:hover{background:var(--hover)}.channel-link.selected,.dm-link.selected{background:var(--gold-soft);color:var(--text);font-weight:650}.channel-link.selected svg{color:var(--gold-dark)}.channel-link.selected{box-shadow:inset 3px 0 var(--gold)}.channel-link .channel-name,.dm-link .person-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.browse-button{display:flex;align-items:center;gap:10px;background:none;color:var(--muted);font-size:12px;padding:9px 13px;text-align:left}.browse-button svg{width:16px;height:16px}.people-label{margin-top:26px}.dm-link{font-size:12px;padding:7px 10px}.avatar{width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:11px;font-size:12px;font-weight:700;flex-shrink:0;position:relative;letter-spacing:-.5px}.avatar.small{width:31px;height:31px;font-size:10px;border-radius:9px}.avatar.tiny{width:25px;height:25px;font-size:8px;border-radius:8px}.gold{background:var(--gold-soft);color:var(--gold-dark)}.rose{background:var(--rose-soft);color:var(--rose-text)}.blue{background:var(--blue-soft);color:var(--blue-text)}.green{background:var(--green-soft);color:var(--green-text)}.purple{background:var(--purple-soft);color:var(--purple-text)}.sidebar-bottom{margin-top:auto;padding:30px 10px 2px}.prototype-badge{font-size:11px;display:flex;align-items:center;gap:7px;color:var(--muted)}.prototype-badge span{height:6px;width:6px;border-radius:50%;background:var(--gold-dark)}.sidebar-bottom p{font-size:10px;color:var(--muted);margin:6px 0}.sidebar-bottom button{padding:0;background:none;font-size:10px;color:var(--link);display:flex;gap:6px;align-items:center}.sidebar-bottom svg{width:12px;height:12px}.main{background:var(--white);display:flex;flex-direction:column;min-width:0;min-height:0}.conversation-header{display:flex;align-items:center;gap:10px;padding:20px 28px 17px;min-height:86px;border-bottom:1px solid var(--border)}.conversation-heading{min-width:0;flex:1}.heading-line{display:flex;align-items:center;gap:9px}.heading-line h2{font-size:20px;font-weight:650;letter-spacing:-.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.heading-line>span:first-child{color:var(--muted)}.conversation-heading p{color:var(--muted);font-size:11px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:490px}.channel-badge{font-size:8px;font-weight:650;color:var(--muted);letter-spacing:.8px;border:1px solid var(--border);padding:2px 5px;border-radius:4px;white-space:nowrap}.header-actions{display:flex;gap:4px;align-items:center}.icon-btn{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;background:none;color:var(--muted);flex-shrink:0}.icon-btn:hover{background:var(--hover);color:var(--text)}.topbar .icon-btn{color:var(--nav-text)}.topbar .icon-btn:hover{background:var(--nav-light);color:white}.action-divider{height:23px;width:1px;background:var(--border);margin:0 6px}.member-stack{display:flex;align-items:center;background:none;padding:0 4px;gap:0}.member-stack .avatar{margin-left:-8px;border:2px solid white}.member-stack .avatar:first-child{margin-left:0}.member-stack small{margin-left:5px;font-size:10px;color:var(--muted)}.tabs{height:48px;min-height:48px;padding:0 28px;display:flex;align-items:stretch;gap:24px;border-bottom:1px solid var(--border)}.tabs button{display:flex;align-items:center;gap:7px;background:none;font-size:12px;color:var(--muted);position:relative;padding:0}.tabs button svg{width:15px;height:15px}.tabs button.active{color:var(--text);font-weight:650}.tabs button.active:after{content:'';position:absolute;bottom:0;left:0;right:0;height:3px;border-radius:2px;background:var(--gold)}.count{padding:0 5px;border-radius:4px;background:var(--hover);font-size:9px}.tabs-tail{margin-left:auto;display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted);white-space:nowrap}.tiny-dot{width:5px;height:5px;border-radius:50%;background:var(--green)}.message-area{flex:1;overflow:auto;min-height:0;scroll-behavior:smooth}.welcome-card{margin:25px 28px 20px;border:1px solid var(--gold-line);border-radius:12px;background:var(--cream);padding:22px 24px;display:flex;align-items:center;gap:20px;overflow:hidden;position:relative}.welcome-card .eyebrow{font-size:9px;letter-spacing:1.5px;color:var(--gold-dark);font-weight:700;margin-bottom:7px}.welcome-card h3{font:500 25px/1.3 Georgia,serif;color:var(--text);letter-spacing:-.3px}.welcome-card p{color:var(--muted);font-size:11px;line-height:1.8;margin-top:8px;max-width:370px}.welcome-art{margin-left:auto;width:105px;height:90px;flex-shrink:0;position:relative}.welcome-art .bubble{position:absolute;width:70px;height:49px;border-radius:14px;background:var(--gold);transform:rotate(-12deg);top:4px;left:2px;box-shadow:0 8px 20px #be8b2420}.welcome-art .bubble:after{content:'';position:absolute;left:13px;bottom:-8px;border-top:12px solid var(--gold);border-right:12px solid transparent}.welcome-art .bubble.second{background:var(--navy);transform:rotate(10deg);left:36px;top:40px;width:62px;height:42px}.welcome-art .bubble.second:after{border-top-color:var(--navy);left:auto;right:12px}.bubble i{position:absolute;top:18px;left:15px;width:5px;height:5px;border-radius:50%;background:var(--white);box-shadow:12px 0 var(--white),24px 0 var(--white)}.day-separator{display:flex;align-items:center;gap:14px;margin:20px 28px;color:var(--muted);font-size:10px}.day-separator:before,.day-separator:after{content:'';height:1px;background:var(--border);flex:1}.message{padding:12px 28px;display:flex;gap:12px;position:relative;scroll-margin:20px}.message:hover{background:var(--message-hover)}.message.highlight{background:var(--gold-soft)}.message-body{min-width:0;flex:1}.message-meta{display:flex;align-items:baseline;gap:8px;margin-bottom:4px}.message-name{font-weight:650;font-size:12px;background:none;padding:0}.message-time{font-size:10px;color:var(--muted)}.message-role{font-size:9px;background:var(--hover);color:var(--muted);padding:1px 5px;border-radius:3px}.message-text{font-size:12px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--body-text)}.message-text mark{background:var(--blue-soft);color:var(--blue-text);border-radius:3px;padding:1px 3px}.message-actions{display:flex;position:absolute;top:-9px;right:22px;border:1px solid var(--border);background:white;border-radius:7px;box-shadow:var(--shadow-small);opacity:0;transition:opacity .15s;z-index:1}.message:hover>.message-actions,.message:focus-within>.message-actions{opacity:1}.message-actions .icon-btn{width:29px;height:28px}.message-actions svg{width:15px;height:15px}.reactions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.reaction{border:1px solid var(--border);background:var(--bg);border-radius:6px;padding:2px 7px;font-size:11px;display:flex;gap:5px;align-items:center}.reaction.mine{background:var(--gold-soft);border-color:var(--gold-line)}.reply-link{display:flex;align-items:center;gap:7px;color:var(--link);font-size:11px;background:none;padding:8px 0 0}.reply-link svg{width:13px;height:13px}.pin-label{font-size:9px;display:flex;align-items:center;gap:5px;color:var(--gold-dark);margin-bottom:5px}.pin-label svg{width:11px;height:11px}.composer-wrap{padding:17px 28px 13px;background:white}.composer{border:1px solid var(--border-strong);border-radius:10px;box-shadow:var(--shadow-small);overflow:hidden}.composer:focus-within{border-color:var(--focus)}.composer textarea{padding:14px 15px 4px;border:0;resize:vertical;min-height:65px;max-height:200px;width:100%;outline:none;color:var(--text);font-size:12px;background:none;display:block}.composer textarea:focus-visible{outline:none}.composer textarea::placeholder{color:var(--muted)}.composer-tools{display:flex;align-items:center;justify-content:space-between;padding:6px 10px 9px}.composer-tools>div{display:flex;align-items:center;gap:2px}.composer-tools .icon-btn{width:28px;height:28px}.composer-tools svg{width:17px;height:17px}.mention-button{font-size:18px}.compose-hint{font-size:10px;color:var(--muted);margin-left:8px}.send-button{display:flex;align-items:center;gap:11px;background:var(--navy);color:white;border-radius:6px;font-size:11px;padding:8px 13px}.send-button:hover:not(:disabled){background:var(--nav-light)}.composer-footnote{font-size:9px;color:var(--muted);display:flex;justify-content:space-between;padding-top:7px}.composer-footnote b{font-weight:600}.detail-panel{background:var(--panel);border-left:1px solid var(--border);display:flex;flex-direction:column;min-height:0;overflow:auto}.panel-title{height:86px;min-height:86px;display:flex;align-items:center;justify-content:space-between;padding:20px 22px;border-bottom:1px solid var(--border)}.panel-title h3{font-size:13px;font-weight:650}.panel-content{padding:26px 22px}.channel-symbol{display:flex;align-items:center;justify-content:center;background:var(--gold-soft);color:var(--gold-dark);width:48px;height:48px;border-radius:14px;margin-bottom:15px}.panel-content h3{font-size:17px;margin-bottom:8px;overflow-wrap:anywhere}.panel-content>p{font-size:11px;line-height:1.9;color:var(--muted)}.panel-rule{height:1px;background:var(--border);margin:24px 0}.mini-heading{font-size:9px;letter-spacing:1.2px;color:var(--muted);font-weight:700;display:flex;justify-content:space-between;margin-bottom:13px}.member-row{display:flex;gap:10px;align-items:center;margin:14px 0;background:none;width:100%;text-align:left;padding:0}.member-row strong{font-size:11px;display:block;font-weight:600}.member-row small{font-size:10px;color:var(--muted)}.guideline{padding:14px;background:var(--white);border:1px solid var(--border);border-radius:9px;font-size:11px;color:var(--muted);line-height:1.8}.guideline strong{font-weight:600;display:block;color:var(--text);margin-bottom:4px}.panel-footer{margin-top:auto;padding:22px;font-size:10px;color:var(--muted);line-height:1.8}.panel-footer strong{color:var(--text);font-weight:600}.thread-scroll{flex:1;min-height:0;overflow:auto;padding:10px 0}.detail-panel .message{padding:14px 18px;gap:9px}.detail-panel .message .avatar{width:28px;height:28px;font-size:9px;border-radius:8px}.detail-panel .message-text{font-size:11px}.detail-panel .message-meta{flex-wrap:wrap;gap:5px}.detail-panel .message-actions{right:8px}.thread-composer{padding:14px}.thread-composer textarea{min-height:85px;font-size:11px}.thread-divider{border-top:1px solid var(--border);font-size:10px;color:var(--muted);margin:12px 18px;padding-top:12px}.empty-state{padding:70px 30px;text-align:center;color:var(--muted)}.empty-state .empty-icon{width:56px;height:56px;border-radius:16px;background:var(--gold-soft);color:var(--gold-dark);display:grid;place-items:center;margin:0 auto 18px}.empty-state h3{font-size:18px;color:var(--text);margin-bottom:8px;font-weight:600}.empty-state p{font-size:12px;max-width:340px;margin:auto;line-height:1.8}.collection-heading{padding:30px 28px 15px}.collection-heading h3{font-size:24px;letter-spacing:-.7px;margin-bottom:8px}.collection-heading p{font-size:12px;color:var(--muted)}.collection-card{margin:14px 28px;border:1px solid var(--border);border-radius:10px;overflow:hidden}.collection-context{display:flex;align-items:center;justify-content:space-between;background:var(--panel);padding:9px 14px;font-size:11px;color:var(--muted);border-bottom:1px solid var(--border)}.collection-context button{background:none;padding:0;color:var(--link);font-size:11px}.collection-card .message{padding:16px}.people-grid{padding:20px 28px;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.person-card{border:1px solid var(--border);border-radius:12px;padding:22px;background:var(--panel)}.person-card h3{font-size:14px;margin:14px 0 3px}.person-card p{font-size:11px;color:var(--muted);margin-bottom:16px}.primary,.secondary,.danger-button{border-radius:7px;padding:10px 16px;font-size:12px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px}.primary{background:var(--navy);color:white}.primary:hover{background:var(--nav-light)}.secondary{background:var(--white);border:1px solid var(--border-strong);color:var(--text)}.danger-button{background:var(--danger);color:white}.attachment{display:flex;align-items:center;gap:10px;border:1px solid var(--border);background:var(--panel);border-radius:8px;padding:12px;margin-top:10px;max-width:310px;width:100%;text-align:left}.attachment strong{display:block;font-size:11px;font-weight:600;overflow-wrap:anywhere}.attachment small{font-size:9px;color:var(--muted)}.attachment .file-icon{color:var(--link);background:var(--blue-soft);border-radius:6px;padding:7px}.attachment-preview{padding:10px 12px;background:var(--panel);display:flex;align-items:center;gap:8px;font-size:11px}.attachment-preview .icon-btn{margin-left:auto}.search-row{display:flex;gap:10px;margin:20px 0}.search-row input{flex:1;min-width:0}.search-results{max-height:52vh;overflow:auto;margin:0 -8px}.search-result{width:100%;display:block;text-align:left;padding:14px 10px;background:none;border-top:1px solid var(--border)}.search-result:hover{background:var(--hover)}.search-result small{font-size:10px;color:var(--muted);display:block;margin-bottom:5px}.search-result p{font-size:12px;overflow-wrap:anywhere;white-space:pre-wrap}.search-result strong{font-weight:600}.search-empty{padding:25px 10px;color:var(--muted);font-size:12px}.emoji-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-top:20px}.emoji-grid button{font-size:24px;border-radius:9px;background:var(--panel);padding:10px}.emoji-grid button:hover{background:var(--gold-soft)}dialog{border:1px solid var(--border);border-radius:16px;padding:28px;width:min(540px,calc(100vw - 32px));max-height:90dvh;color:var(--text);box-shadow:var(--shadow);background:white}dialog::backdrop{background:#0a203576;backdrop-filter:blur(3px)}.modal-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:8px}.modal-top h2{font-size:21px;letter-spacing:-.5px}.modal-description{font-size:12px;color:var(--muted);line-height:1.8}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.form-field{margin-top:18px}.form-field label{display:block;font-size:12px;font-weight:600;margin-bottom:7px}.form-field input,.form-field textarea,.form-field select,.search-row input{border:1px solid var(--border-strong);border-radius:7px;padding:11px 12px;background:white;color:var(--text);width:100%;font-size:13px}.form-field textarea{min-height:100px;resize:vertical}.form-field small{font-size:10px;color:var(--muted);display:block;margin-top:5px}.form-error{color:var(--danger);font-size:12px;margin-top:12px}.about-logo{width:80px;height:auto;float:right;margin:10px 0 15px 20px}.about-list{font-size:12px;color:var(--muted);line-height:1.9;padding-left:20px}.about-note{background:var(--cream);border:1px solid var(--gold-line);border-radius:8px;padding:12px;font-size:11px;color:var(--gold-dark);margin-top:20px}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,12px);opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;background:var(--navy);color:white;padding:12px 20px;border-radius:9px;font-size:12px;box-shadow:var(--shadow);z-index:100;max-width:90vw}.toast.show{opacity:1;transform:translate(-50%,0)}.mobile-only{display:none}.call-modal{width:min(880px,calc(100vw - 32px));background:var(--navy);color:white;border-color:var(--nav-border)}.call-modal .icon-btn{color:var(--nav-text)}.call-modal .modal-description{color:var(--nav-muted)}.call-modal .modal-top{margin-bottom:18px}.call-stage{height:390px;border:1px solid var(--nav-border);border-radius:12px;position:relative;background:#0b2034;overflow:hidden}.call-stage>video{width:100%;height:100%;object-fit:contain}.call-waiting{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;text-align:center;padding:30px;background:#0b2034}.call-waiting .call-orb{width:85px;height:85px;border-radius:50%;display:grid;place-items:center;color:var(--gold);background:var(--nav-light);border:1px solid var(--nav-border)}.call-waiting h3{font-size:20px}.call-waiting p{font-size:12px;color:var(--nav-muted);max-width:400px}.call-local{position:absolute;right:14px;bottom:14px;width:170px;height:115px;border-radius:9px;object-fit:cover;background:var(--nav-light);border:1px solid var(--nav-border);transform:scaleX(-1)}.call-state{font-size:11px;color:var(--nav-muted);margin-top:10px}.call-controls{display:flex;gap:12px;align-items:center;justify-content:center;padding-top:22px}.call-control{background:var(--nav-light);border:1px solid var(--nav-border);border-radius:10px;width:50px;height:46px;color:white}.call-control.off{background:var(--danger)}.call-control.end{background:var(--danger);width:65px}.call-invite{display:flex;gap:8px;margin-top:16px;align-items:center}.call-invite input{flex:1;min-width:0;background:var(--nav-light);border:1px solid var(--nav-border);border-radius:7px;color:var(--nav-text);padding:10px;font-size:11px}.call-invite button{white-space:nowrap}.call-error{font-size:12px;color:#ffbec6;margin-top:14px}.call-lobby{padding:30px 0;text-align:center}.call-lobby .brand-mark{margin:0 auto 22px;width:62px;height:62px}.call-lobby .brand-mark img{width:71px;left:-5px}.call-lobby h3{font-size:24px}.call-lobby p{font-size:12px;color:var(--nav-muted);margin:16px 0}.call-lobby .primary{background:var(--gold);color:var(--navy)}.call-privacy{font-size:10px;color:var(--nav-muted);margin-top:18px;text-align:center}.call-lobby input{max-width:320px;display:block;margin:18px auto;background:var(--nav-light);border:1px solid var(--nav-border);padding:12px;border-radius:7px;color:white;width:100%}.call-modal .secondary{background:var(--nav-light);color:white;border-color:var(--nav-border)}.file-list{padding:0 28px 25px}.file-list .attachment{max-width:100%;margin-top:14px}.no-panel .app-layout{grid-template-columns:76px 248px minmax(0,1fr)}.no-panel .detail-panel{display:none}
@media(min-width:1600px){.app-layout{grid-template-columns:80px 270px minmax(0,1fr) 310px}.message-text{font-size:14px}.message-name{font-size:14px}.message{padding-top:15px;padding-bottom:15px}.welcome-card{padding:30px}.welcome-card h3{font-size:30px}.welcome-card p{font-size:13px}.composer textarea{font-size:14px}.channel-link{font-size:14px}.dm-link{font-size:13px}}
@media(max-width:1250px){.app-layout{grid-template-columns:68px 220px minmax(0,1fr)}.detail-panel{display:none}.thread-open .detail-panel{display:flex;position:fixed;right:0;top:72px;bottom:0;width:340px;z-index:15;box-shadow:var(--shadow)}.no-panel .app-layout{grid-template-columns:68px 220px minmax(0,1fr)}.workspace-switch{display:none}.brand{width:240px}.header-actions .member-stack{display:none}.header-actions .action-divider{display:none}.tabs-tail{display:none}.conversation-header{padding:18px 22px}.channel-badge{display:none}.compose-hint{display:none}}
@media(max-width:760px){.topbar{height:60px;padding:0 16px;gap:12px}.brand{width:auto;font-size:23px;gap:8px}.brand-mark{width:32px;height:32px}.brand-mark img{width:37px;left:-2px}.global-search{margin-left:auto;flex:0 0 34px;width:34px;padding:7px;border:0;background:none}.global-search>span:nth-child(2),.global-search kbd,.top-help{display:none}.app-layout,.no-panel .app-layout{height:calc(100dvh - 60px);grid-template-columns:minmax(0,1fr)}.rail{display:none}.sidebar{position:fixed;top:60px;bottom:0;left:0;width:285px;z-index:30;transform:translateX(-100%);transition:transform .2s}.nav-open .sidebar{transform:translateX(0)}.nav-scrim{position:fixed;inset:60px 0 0;z-index:25;background:#102c4666}.mobile-only{display:inline-flex}.conversation-header{min-height:76px;padding:14px 12px;gap:4px}.conversation-heading p{max-width:160px;font-size:10px}.heading-line{gap:5px}.heading-line h2{font-size:18px}.header-actions{gap:0}.header-actions .icon-btn{width:30px}.header-actions #infoButton{display:none}.tabs{padding:0 20px;height:45px;min-height:45px}.welcome-card{margin:18px 16px;padding:18px}.welcome-card h3{font-size:23px}.welcome-card p{font-size:11px}.welcome-art{display:none}.message{padding:13px 16px;gap:10px}.message-text{font-size:13px}.message-name{font-size:12px}.message-actions{position:static;opacity:1;box-shadow:none;border:0;align-self:start;background:none;flex-direction:column;gap:2px}.message-actions .icon-btn{width:24px;height:24px}.message-actions .optional{display:none}.message .avatar{width:32px;height:32px;border-radius:9px;font-size:10px}.message-meta{flex-wrap:wrap;gap:5px}.message-time{font-size:9px}.message-role{display:none}.composer-wrap{padding:10px 12px}.composer-footnote{font-size:8px}.composer textarea{font-size:14px}.detail-panel{display:none}.thread-open .detail-panel{top:60px;width:100%;z-index:35}.thread-open .detail-panel .message-actions{flex-direction:row;position:static}.thread-open .detail-panel .message-text{font-size:13px}.collection-heading{padding:24px 20px 10px}.collection-card{margin:12px 16px}.collection-card .message{padding:12px}.people-grid{padding:16px;grid-template-columns:1fr}.call-stage{height:320px}.call-local{width:105px;height:78px}.call-modal{padding:18px}.call-invite{flex-wrap:wrap}.call-invite input{flex-basis:100%}.call-controls{gap:8px}.call-control{width:44px}.call-controls .end{width:52px}.call-invite button{width:100%}.call-modal .modal-top h2{font-size:18px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}

.mobile-nav{display:none}@media(max-width:760px){.mobile-nav{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:16px 8px 0}.mobile-nav button{padding:8px;border:1px solid var(--border);border-radius:6px;background:var(--white);font-size:12px}}

.call-stage>video.call-local{width:170px;height:115px;object-fit:cover}@media(max-width:760px){.call-stage>video.call-local{width:105px;height:78px}}

.unauthenticated .topbar,.unauthenticated .app-layout,.unauthenticated .skip-link{display:none}.auth-screen{min-height:100dvh;display:grid;grid-template-columns:1fr 480px;gap:8vw;align-items:center;max-width:1180px;margin:auto;padding:60px 35px}.auth-screen[hidden]{display:none}.auth-story img{width:120px;border-radius:24px;margin-bottom:45px}.auth-story h1{font-size:56px;letter-spacing:-2px;line-height:1.1;margin:22px 0}.auth-story p{font-size:18px;line-height:1.7;max-width:440px;color:var(--muted)}.auth-card{background:white;border:1px solid var(--line);border-radius:24px;padding:40px;box-shadow:0 20px 70px #122b460a}.auth-card h2{font-size:28px;margin:20px 0 10px}.auth-card p{line-height:1.5;color:var(--muted)}.auth-card label{display:block;margin-top:20px;font-weight:600;font-size:13px}.auth-card input{display:block;width:100%;padding:13px;margin-top:8px;border:1px solid #c6cfd9;border-radius:8px;background:#fff}.auth-card .primary{width:100%;justify-content:center;margin-top:15px}.auth-link{display:block;margin:20px auto;color:#245f89;background:none;border:0}.auth-card small{display:block;text-align:center;color:var(--muted)}.auth-card .form-error{color:#ab3333}.connection-error{color:#a23d21!important}@media(max-width:800px){.auth-screen{display:block;padding:25px}.auth-story{display:none}.auth-card{max-width:470px;margin:40px auto;padding:25px}}

.call-modal{width:min(1200px,96vw);max-width:1200px;background:#112b44;color:#fff;padding:28px}.call-modal p{color:#c7d3df}.call-heading{display:flex;justify-content:space-between;align-items:start;margin-bottom:20px}.call-heading h2{font-size:26px;margin:8px 0}.participant-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.participant-tile{background:#203c55;border:1px solid #425b72;border-radius:14px;min-height:170px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}.participant-tile video{width:100%;height:230px;object-fit:cover}.participant-tile span{position:absolute;bottom:12px;left:12px;background:#102a43e8;padding:5px 10px;border-radius:6px;font-size:13px}.screen-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px;margin-bottom:15px}.screen-tile{background:#091d2d;border-radius:10px;overflow:hidden}.screen-tile video{width:100%;max-height:52vh;object-fit:contain}.screen-tile span{display:block;padding:8px}.group-controls{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:22px}.return-call{position:fixed;bottom:25px;right:25px;z-index:99;box-shadow:0 8px 30px #0003}.call-modal .secondary{background:#fff;color:#17334d}.call-modal .eyebrow{color:#ffd16d}@media(max-width:600px){.participant-grid{grid-template-columns:1fr 1fr}.participant-tile{min-height:140px}.participant-tile video{height:160px}.call-modal{padding:15px}}

.active-call-banner{display:flex;align-items:center;justify-content:space-between;padding:15px 20px;background:#fff3d0;border:1px solid #f0cd77;border-radius:12px;margin:15px 28px}
.auth-card .workspace-label{color:#536679;border-color:#bdc8d2;font-size:10px}

/* Transparent, icon-only Quetzal identity. */
.brand-mark{background:transparent;border-radius:0;overflow:visible}.brand-mark img{position:static;width:100%;height:100%;object-fit:contain;max-width:100%}.auth-story img{border-radius:0;object-fit:contain}
/* Apple Design refinement: quiet hierarchy, immediate feedback, accessible materials. */
:root{--bg:#f3f5f8;--sidebar:#edf1f6;--text:#172c43;--muted:#526278;--shadow:0 24px 80px #102b4630}
body{font-optical-sizing:auto;-webkit-font-smoothing:antialiased}button{touch-action:manipulation}button:active:not(:disabled){transform:scale(.97)}
.topbar{height:68px;background:#122b46f5;gap:18px;box-shadow:0 1px 0 #ffffff14}.brand{width:40px}.workspace-switch{margin-right:auto;font-size:14px}.global-search{max-width:580px;background:#ffffff0c;border-color:#ffffff26;border-radius:12px;height:40px}.global-search:hover{background:#ffffff17}.top-profile{margin-left:auto}
.app-layout,.no-panel .app-layout{height:calc(100dvh - 68px)}.rail{background:#122b46;padding-top:14px}.rail-button{border-radius:14px;min-height:52px}.rail-button.active{background:#ffffff15;color:#ffcf48;box-shadow:inset 0 0 0 1px #ffffff12}.sidebar{background:linear-gradient(160deg,#f1f4f8,#eaf0f5);border-right:1px solid #dfe5ed}.sidebar-title{padding-top:24px}.sidebar-title h1{font-size:16px;letter-spacing:-.025em}.sidebar-title .subtle{font-size:12px}.new-conversation{border:1px solid #d4dce6;border-radius:12px;box-shadow:0 2px 4px #122b4605;min-height:44px}.channel-link,.dm-link{min-height:42px;border-radius:10px}.channel-link.selected{background:#fff3ce;box-shadow:0 1px 3px #122b4608;border-left:0;color:#604710}.section-label{font-size:11px;letter-spacing:.08em;color:#53647a}.sidebar-bottom p{font-size:11px}
.main{background:#fff}.conversation-header{min-height:84px;padding:18px 28px;background:#ffffffeb;backdrop-filter:blur(20px);border-bottom:0}.heading-line h2{font-size:21px;letter-spacing:-.035em}.conversation-heading p{font-size:13px;margin-top:4px}.channel-badge{border-radius:6px;font-size:9px}.header-actions{gap:6px}.header-actions>.icon-btn{width:40px;height:40px;border:1px solid #e3e8ee;border-radius:12px}.header-actions>.icon-btn:hover{background:#eef3f8}.header-actions>.icon-btn[aria-expanded=true]{background:#eaf1f8;color:#21577c}
.tabs{height:52px;min-height:52px;gap:6px;padding:6px 28px;border-bottom:1px solid #e8edf2}.tabs>button{height:34px;border-radius:9px;border:0!important;padding:0 13px;font-weight:600;font-size:12px}.tabs>button.active{background:#edf2f7;color:#172c43}.tabs>button:after{display:none}.tabs-tail{display:none}.message-area{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b9c6d5 transparent}.message{padding:14px 28px}.message-name{font-size:14px;font-weight:650}.message-text{font-size:15px;line-height:1.65}.message-time{font-size:11px}.message-actions{border-radius:12px;padding:4px;box-shadow:0 4px 18px #142d4614}.message:focus-within .message-actions{opacity:1}.message-actions .icon-btn{width:34px;height:34px}.day-separator{font-size:11px;font-weight:600}.avatar{border-radius:12px}
.conversation-start{max-width:540px;margin:clamp(32px,8vh,100px) auto;padding:24px;text-align:center}.conversation-start .empty-icon{width:64px;height:64px;display:grid;place-items:center;margin:0 auto 22px;background:#fff2ca;border-radius:20px;color:#805a00;box-shadow:0 8px 24px #e7b94216}.conversation-start .eyebrow{font-size:10px;color:#826220;letter-spacing:.13em}.conversation-start h3{font-size:clamp(25px,3vw,34px);font-weight:650;letter-spacing:-.045em;line-height:1.15;margin:12px 0}.conversation-start p{color:var(--muted);line-height:1.65;font-size:15px;margin:0 auto 24px;max-width:380px}.conversation-start .primary{margin:auto;gap:8px}.conversation-start small{display:block;margin-top:16px;color:var(--muted);font-size:12px}
.composer-wrap{padding:16px 28px 18px;background:linear-gradient(#ffffff00,#fff 18%)}.composer{border:1px solid #cbd5e1;border-radius:16px;box-shadow:0 3px 14px #122b4607;transition:border-color .15s,box-shadow .15s}.composer:focus-within{border-color:#3e759e;box-shadow:0 0 0 3px #2b689416}.composer textarea{font-size:15px;line-height:1.6;padding:16px 18px;min-height:70px}.composer-tools{padding:0 10px 10px}.composer-tools .icon-btn{width:38px;height:38px;border-radius:10px}.send-button{min-height:36px;border-radius:10px;background:#173b59;color:white}.send-button:disabled{background:#e7ecf2;color:#68798b;opacity:1}.composer-footnote{font-size:10px;margin-top:9px}.primary,.secondary{border-radius:10px;min-height:42px;padding:10px 16px}.primary{background:#173b59;color:white}.primary:hover{background:#24577b}.secondary{background:#f0f3f7;border-color:#dae2eb}
.detail-panel{background:#f7f9fc;border-left:1px solid #e3e9f0}.panel-title{min-height:70px}.panel-title h3{font-size:14px}.panel-title>.icon-btn{margin-left:auto}.panel-footer,.guideline{display:none}.collection-heading h3{font-family:inherit;font-size:26px;letter-spacing:-.035em}.person-card{border-radius:18px;box-shadow:0 4px 18px #122b4606}.search-result{border-radius:12px}.search-result:focus-visible{outline-offset:-3px}
dialog{border:1px solid #ffffffb3;border-radius:24px;background:#fbfcfef5;backdrop-filter:blur(24px);box-shadow:0 32px 100px #102b4640}dialog::backdrop{background:#10283d66;backdrop-filter:blur(5px)}.modal-top h2{font-size:24px;letter-spacing:-.035em}.form-field input,.form-field textarea,.search-row input{border-radius:12px;min-height:44px}.toast{border-radius:14px;box-shadow:0 8px 32px #102b4625}.auth-screen{gap:6vw}.auth-story h1{font-size:clamp(36px,4vw,54px);font-weight:650;letter-spacing:-.045em}.auth-story img{width:104px;margin-bottom:28px}.auth-card{border-radius:24px;box-shadow:0 20px 70px #122b4610}.auth-card h2{letter-spacing:-.035em}.auth-card input{min-height:48px;border-radius:12px}.auth-card small{line-height:1.8}
@media(max-width:1100px){.workspace-switch .workspace-label{display:none}.conversation-header{padding:16px 20px}.composer-wrap{padding:14px 20px}.tabs{padding-left:20px}}
@media(max-width:700px){.topbar{height:60px;padding:0 14px;gap:12px}.workspace-switch{font-size:13px;display:flex}.brand{width:32px}.global-search{max-width:40px;height:40px}.app-layout,.no-panel .app-layout{height:calc(100dvh - 60px)}.sidebar{top:60px;width:min(320px,88vw)}.mobile-nav button{min-height:44px}.conversation-header{padding:12px;gap:6px;min-height:80px}.heading-line h2{font-size:18px}.conversation-heading{min-width:0}.conversation-heading p{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.header-actions{gap:3px}.header-actions>.icon-btn{width:40px;height:44px}.member-stack,.action-divider{display:none}.conversation-header>.icon-btn{width:44px;height:44px}.tabs{padding:6px 12px}.tabs>button{min-height:40px}.tabs{height:54px;min-height:54px}.conversation-start{margin:28px auto;padding:16px 24px}.conversation-start small{font-size:11px}.composer-wrap{padding:10px 12px max(12px,env(safe-area-inset-bottom))}.composer-tools .icon-btn{width:44px;height:44px}.send-button{min-height:44px}.composer-footnote{font-size:10px}.composer-footnote>span:last-child{display:none}.message{padding:14px 16px}.message-actions .icon-btn{width:44px;height:44px}.message-text{font-size:15px}.thread-open .detail-panel{top:60px}dialog{width:calc(100% - 24px);max-height:calc(100dvh - 32px);padding:22px}.modal-top .icon-btn{width:44px;height:44px}.auth-story{display:block;text-align:center}.auth-story img{width:64px;margin:0}.auth-story .eyebrow,.auth-story h1,.auth-story p{display:none}.auth-card{margin:24px auto}.auth-screen{padding:28px 16px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}button:active:not(:disabled){transform:none}}
@media(prefers-reduced-transparency:reduce){.topbar{background:#122b46}.conversation-header,dialog{background:#fff;backdrop-filter:none}dialog::backdrop{backdrop-filter:none}}
@media(prefers-contrast:more){button,input,textarea,dialog,.composer,.sidebar{border-color:#586c81}.message-time,.subtle,.section-label{color:#34495f}.conversation-header,dialog{background:#fff}}
/* Keep the first action visible on short laptop displays. */
.conversation-start{margin:16px auto;padding:16px 24px}.conversation-start .empty-icon{width:52px;height:52px;margin-bottom:14px;border-radius:17px}.conversation-start h3{font-size:clamp(25px,2.5vw,32px);margin:9px 0}.conversation-start p{margin-bottom:16px}.conversation-start small{margin-top:10px}@media(max-height:760px){.conversation-start .eyebrow,.conversation-start small{display:none}.conversation-start{margin:8px auto}.conversation-start .empty-icon{width:44px;height:44px;margin-bottom:10px}.conversation-start h3{font-size:26px}.composer textarea{min-height:60px}.composer-wrap{padding-top:10px}}
/* Settings: grouped tasks, predictable spacing, clearly separated account removal. */
dialog:has(.settings-layout){width:min(600px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:0;overflow:auto;background:#f7f9fc}dialog:has(.settings-layout) .modal-top{position:sticky;top:0;z-index:2;padding:24px 28px 18px;margin:0;background:#f7f9fcf5;backdrop-filter:blur(20px);border-bottom:1px solid #e0e6ee}dialog:has(.settings-layout) .modal-top h2{font-size:23px}dialog:has(.settings-layout) .modal-top .icon-btn{width:40px;height:40px;border-radius:50%;background:#eaf0f5}.settings-layout{padding:24px 28px 28px;display:grid;gap:22px}.settings-section{background:#fff;border:1px solid #dfe6ef;border-radius:16px;padding:20px}.settings-heading{margin-bottom:16px}.settings-heading h3,.settings-danger h3{font-size:15px;line-height:1.4;letter-spacing:-.015em;margin:0;font-weight:650}.settings-heading p,.settings-danger p{font-size:13px;line-height:1.55;color:#526278;margin:5px 0 0;overflow-wrap:anywhere}.settings-actions{display:flex;flex-wrap:wrap;gap:8px}.settings-actions .secondary{font-size:12px;padding:10px 14px;min-height:42px}.settings-text-button{flex-basis:100%;text-align:left;padding:10px 0 0;background:none;color:#24577b;font-size:12px;min-height:36px}.invite-form{display:grid;gap:16px}.settings-field{display:grid;gap:7px}.settings-field label{font-size:12px;font-weight:600;color:#34495f}.settings-field input,.settings-field select{width:100%;min-width:0;min-height:46px;border:1px solid #bcc9d8;border-radius:10px;background:#fff;padding:11px 13px;color:#172c43;font:inherit;font-size:14px}.settings-field input::placeholder{color:#63758b}.settings-help{font-size:12px;line-height:1.5;color:#526278;margin:0}.settings-form-footer{display:flex;justify-content:flex-end;padding-top:2px}.settings-form-footer .primary{min-height:44px;font-size:13px}.invite-result:empty{display:none}.invite-result{margin-top:16px;background:#eef5f0;padding:12px;border-radius:10px;font-size:13px;overflow-wrap:anywhere}.invite-result input{width:100%;margin-top:8px;min-height:42px;padding:8px;border:1px solid #b8cdbf;border-radius:8px}.settings-employees .member-row{padding:12px 0;gap:12px;border-bottom:1px solid #e8edf3;min-width:0}.settings-employees .member-row:last-child{border-bottom:0;padding-bottom:0}.settings-employees .member-row:first-child{padding-top:0}.settings-employees .member-row>span{min-width:0;flex:1}.settings-employees strong{font-size:13px}.settings-employees small{font-size:12px;overflow-wrap:anywhere;white-space:normal}.settings-employees .secondary{font-size:12px;min-height:40px}.settings-danger{border-top:1px solid #dfe6ef;padding-top:20px;display:grid;gap:12px}.settings-danger h3{font-size:13px}.settings-danger p{font-size:12px}.settings-delete{justify-self:start;min-height:40px;background:transparent;color:#a22e3a;border:1px solid #e4bbc0;border-radius:10px;padding:9px 13px;font-size:12px;font-weight:600}.settings-delete:hover{background:#fbecef}@media(max-width:600px){dialog:has(.settings-layout){width:calc(100vw - 20px);max-height:calc(100dvh - 24px)}dialog:has(.settings-layout) .modal-top{padding:16px 18px}.settings-layout{padding:18px;gap:16px}.settings-section{padding:16px}.settings-form-footer .primary{width:100%;justify-content:center}.settings-employees .member-row{flex-wrap:wrap}.settings-actions button,.settings-delete{min-height:44px}}@media(prefers-reduced-transparency:reduce){dialog:has(.settings-layout) .modal-top{background:#f7f9fc;backdrop-filter:none}}
