/* Messages: a full-height workspace with a quiet rail and clear conversation. */
.t-workspace{
  grid-template-columns:320px minmax(0,1fr);
  width:100%;height:100%;min-height:0;
  border:0;border-radius:0;background:var(--surface);box-shadow:none;
  font-family:var(--body);color:var(--ink);
}
.t-workspace button{font-family:var(--body)}
.t-icon{width:38px;height:38px;flex-basis:38px;border-radius:50%;color:var(--muted);transition:background .16s,color .16s}
.t-icon:hover{background:var(--surface-subtle);color:var(--ink)}
.t-icon:focus-visible,.t-conversation:focus-visible,.t-text-button:focus-visible,.t-send:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.t-text-button{min-height:34px;gap:8px;padding:7px 0;font-size:12px;font-weight:550;line-height:1.45;color:var(--accent)}
.t-rail{background:var(--paper);border-right:1px solid var(--line);min-width:0;overscroll-behavior:contain}
.t-rail-heading{gap:4px;padding:28px 20px 20px;min-height:94px;flex-shrink:0}
.t-kicker{display:none}
.t-rail h2{font:720 27px/1.2 var(--display);letter-spacing:-.9px;margin:0;gap:9px;color:var(--ink)}
.t-rail h2>span{font:550 11px/1.2 var(--body);letter-spacing:0;background:var(--surface-raised);color:var(--muted);padding:4px 7px;border-radius:999px}
.t-rail-heading>.t-icon{color:var(--accent);background:transparent}
.t-rail-heading>.t-icon:hover{background:var(--surface-raised)}
.t-search{height:42px;margin:0 20px;padding:0 12px;gap:8px;border:1px solid transparent;border-radius:12px;background:var(--surface-raised);color:var(--muted);flex-shrink:0}
.t-search input{font-size:13px;line-height:1.5;color:var(--ink);padding:0;border-radius:0;min-height:0}
.t-search input::placeholder{color:var(--muted);opacity:1}
.t-search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.t-filters{gap:2px;margin:15px 19px 17px;padding:3px;border:0;border-radius:999px;background:var(--surface-raised);flex-shrink:0}
.t-filters button{min-height:32px;min-width:0;padding:5px 1px;border-radius:999px;font-size:11px;line-height:1.3;font-weight:550;gap:3px;white-space:nowrap;color:var(--muted)}
.t-filters button.active{color:var(--ink);background:var(--surface);font-weight:600;box-shadow:var(--shadow)}
.t-filters button:hover:not(.active){color:var(--ink)}
.t-rail-label{padding:0 24px 10px;min-height:26px;flex-shrink:0}
.t-rail-label>span{font-size:11px;letter-spacing:0;font-weight:600;color:var(--muted)}
.t-rail-label .t-icon{height:28px;min-height:28px}
.t-conversations{padding:0 10px 15px;scrollbar-width:thin;scrollbar-color:var(--line) transparent;overscroll-behavior:contain}
.t-conversation{min-height:82px;margin-bottom:3px;padding:13px 12px;gap:12px;border-radius:15px;transition:background .15s}
.t-conversation:hover{background:var(--surface-subtle)}
.t-conversation.active{background:var(--accent-soft)}
.t-conversation.active:before{display:none}
.t-conversation .avatar{width:44px!important;height:44px!important;border:0;font-size:13px!important}
.t-group-tile{width:44px;height:44px;flex-basis:44px;border:0;border-radius:14px;box-shadow:none}
.t-group-tile.large{width:64px;height:64px;flex-basis:64px;border-radius:20px}
.t-conversation-copy>span:first-child{margin-bottom:5px;gap:7px}
.t-conversation-copy strong{font-size:13px;line-height:1.3;font-weight:600;letter-spacing:-.15px}
.t-conversation-copy small{font-size:12px;line-height:1.5;color:var(--muted)}
.t-conversation-copy time{font-size:11px;letter-spacing:0;color:var(--muted)}
.t-conversation.unread strong{font-weight:700}
.t-conversation.unread time{color:var(--accent)}
.t-unread-count{min-width:20px;height:20px;font-size:10px;line-height:1;padding:0 5px;border-radius:999px;background:var(--accent);color:var(--on-accent)}
.t-client-tag{border:0;border-radius:5px;background:var(--surface);color:var(--muted);padding:2px 5px;font-size:11px;line-height:1.3}
.t-rail-bottom{gap:5px;padding:14px 24px 19px;background:var(--paper);border-top:1px solid var(--line);flex-shrink:0}
.t-rail-bottom .t-text-button{min-height:33px;padding:0;font-size:12px}
.t-rail-bottom>span{font-size:11px;line-height:1.5;gap:6px;color:var(--muted)}
.t-chat{background:var(--surface);overscroll-behavior:contain}
.t-chat-header{min-height:84px;padding:17px 26px;gap:13px;background:var(--surface);border-bottom:1px solid var(--line);flex-shrink:0}
.t-chat-identity{gap:12px;min-height:44px;min-width:0;color:var(--ink)}
.t-chat-identity .avatar{width:42px!important;height:42px!important;font-size:12px!important;border:0}
.t-chat-identity .t-group-tile{width:42px;height:42px;flex-basis:42px;border-radius:13px}
.t-chat-identity h2{font:650 16px/1.35 var(--display);letter-spacing:-.35px;margin:0 0 3px}
.t-chat-identity small{font-size:11px;line-height:1.4;color:var(--muted)}
.t-chat-header-actions{gap:5px;flex-shrink:0}
.t-chat-header-actions .t-icon{width:38px;height:38px;flex-basis:38px;color:var(--accent)}
.t-chat-header-actions .t-icon:hover{background:var(--accent-soft)}
.t-client-notice{gap:8px;min-height:38px;padding:9px 27px;font-size:11px;line-height:1.5;color:var(--muted);background:var(--surface-subtle);border-bottom:1px solid var(--line);flex-shrink:0}
.t-client-notice>svg{color:var(--accent);flex-shrink:0}
.t-pinned-bar{gap:11px;min-height:49px;padding:12px 27px;background:var(--surface);color:var(--muted);border-bottom:1px solid var(--line);flex-shrink:0}
.t-pinned-bar>svg:first-child{color:var(--accent)}
.t-pinned-bar>span{font-size:11px;gap:11px;line-height:1.5}
.t-pinned-bar strong{font-size:11px;font-weight:600;color:var(--ink)}
.t-pinned-bar small{font-size:11px}
.t-chat-search{padding:10px 25px;gap:10px;background:var(--surface);border-bottom:1px solid var(--line);flex-shrink:0}
.t-chat-search label{min-height:38px;padding:0 13px;gap:8px;border-radius:12px;background:var(--surface-subtle)}
.t-chat-search input{min-height:38px;font-size:13px;color:var(--ink)}
.t-messages{padding:8px 32px 24px;scrollbar-color:var(--line) transparent;overscroll-behavior:contain}
.t-day{justify-content:center;gap:0;margin:23px 0 21px;font-size:11px;line-height:1.5;font-weight:600;color:var(--muted);letter-spacing:0}
.t-day:before,.t-day:after{display:none}
.t-day>span{padding:5px 10px;border-radius:999px;background:var(--paper)}
.t-new-divider{font-size:11px;line-height:1.5;margin:20px 0;gap:13px;color:var(--accent)}
.t-message{gap:10px;margin-top:20px;border-radius:16px}
.t-message.compact{margin-top:5px}
.t-message-avatar{width:30px;flex-basis:30px;padding-top:2px}
.t-message-avatar .avatar{border:0;font-size:10px!important}
.t-message-main{max-width:min(80%,680px)}
.t-message-byline{gap:8px;margin:0 0 6px 3px}
.t-message-byline strong{font-size:11px;font-weight:600;line-height:1.5;color:var(--muted)}
.t-message-byline>span{font-size:11px;line-height:1.4;padding:2px 5px;border-radius:5px;background:var(--surface-subtle);color:var(--muted)}
.t-bubble{min-width:108px;padding:12px 15px 9px;border:0;border-radius:20px 20px 20px 7px;background:var(--surface-subtle);box-shadow:none;color:var(--ink)}
.t-message.mine .t-bubble{background:var(--accent);border:0;border-radius:20px 20px 7px 20px;color:var(--on-accent)}
.t-message.compact .t-bubble{border-top-left-radius:20px}
.t-message.mine.compact .t-bubble{border-top-right-radius:20px}
.t-message-text{font-size:14px;line-height:1.65;letter-spacing:-.1px}
.t-message-text a{color:var(--accent);text-underline-offset:2px}
.t-message-text code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:1.5;border:0;border-radius:5px;padding:2px 5px;background:var(--surface-raised)}
.t-message.mine .t-message-text a{color:inherit}
.t-message.mine .t-message-text code{background:transparent;color:inherit;border:1px solid currentColor}
.t-message-meta{gap:5px;margin-top:6px;font-size:11px;line-height:1.4;color:var(--muted)}
.t-message-meta>svg{color:var(--muted)}
.t-message.mine .t-message-meta{color:inherit;opacity:.75}
.t-message.mine .t-message-meta>svg{color:inherit}
.t-removed-text{font-size:13px;line-height:1.7;color:var(--muted)}
.t-message.removed .t-bubble,.t-message.mine.removed .t-bubble{border:1px solid var(--line);background:transparent;color:var(--muted);box-shadow:none}
.t-reply-quote{margin:0 0 10px;padding:9px 11px;border:0;border-left:3px solid var(--accent);border-radius:9px;background:var(--surface);color:var(--muted)}
.t-reply-quote strong{font-size:11px;font-weight:600;line-height:1.5;margin-bottom:3px;color:var(--ink)}
.t-reply-quote span{font-size:11px;line-height:1.6;max-height:36px}
.t-message.mine .t-reply-quote{background:transparent;border:1px solid currentColor;border-left-width:3px;color:inherit}
.t-message.mine .t-reply-quote strong{color:inherit}
.t-reactions{gap:5px;margin-top:6px;flex-wrap:wrap}
.t-reactions button{gap:5px;min-height:28px;border:1px solid var(--line);border-radius:999px;background:var(--surface);padding:3px 9px;font-size:13px;line-height:1.4}
.t-reactions button span{font-size:10px;color:var(--muted)}
.t-reactions button.mine{background:var(--accent-soft);border-color:var(--accent)}
.t-seen{font-size:11px;line-height:1.5;margin-top:5px;color:var(--muted)}
.t-message-actions{top:-18px;right:5px;gap:1px;border:1px solid var(--line);border-radius:999px;padding:3px;background:var(--surface);box-shadow:var(--shadow)}
.t-message.mine .t-message-actions{left:5px;right:auto}
.t-message-actions .t-icon{width:31px;height:31px;flex-basis:31px;border-radius:50%}
.t-message-actions .t-icon svg{width:15px;height:15px}
.t-emoji-picker{top:-56px;gap:3px;padding:6px;border-radius:999px;border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow)}
.t-emoji-picker>button{width:35px;height:35px;border-radius:50%;font-size:20px}
.t-emoji-picker>button:last-child{width:30px;height:35px;font-size:14px}
.t-composer{padding:15px 27px 18px;border-top:1px solid var(--line);background:var(--surface)}
.t-compose-box{padding:12px 13px 10px;border:1px solid var(--line);border-radius:22px;background:var(--paper)}
.t-compose-box:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.t-compose-box textarea{min-height:38px;max-height:160px;padding:0 3px;border-radius:0;color:var(--ink);font-size:14px;line-height:1.6;background:transparent}
.t-compose-box textarea::placeholder{color:var(--muted);opacity:1}
.t-compose-tools{gap:12px;margin-top:6px}
.t-compose-tools>span{gap:6px;font-size:11px;line-height:1.4;color:var(--muted)}
.t-send{width:38px;height:38px;min-width:38px;border-radius:50%;background:var(--accent);color:var(--on-accent)}
.t-send:hover{background:var(--accent-hover,var(--accent))}
.t-composer-note{gap:10px;margin-top:8px;padding:0 4px;font-size:11px;line-height:1.5;color:var(--muted)}
.t-compose-context{padding:1px 2px 12px;gap:12px}
.t-compose-context>span{gap:9px;color:var(--accent)}
.t-compose-context strong{font-size:11px;line-height:1.5;font-weight:600}
.t-compose-context small{font-size:11px;line-height:1.5;color:var(--muted);margin-top:2px}
.t-chat-empty{padding:42px 30px;color:var(--muted)}
.t-chat-empty>svg{color:var(--accent)}
.t-empty-mark{width:84px;height:84px;border-radius:25px;background:var(--surface-subtle);color:var(--accent)}
.t-chat-empty h3{font:650 26px/1.25 var(--display);letter-spacing:-.7px;color:var(--ink);margin:23px 0 12px}
.t-chat-empty p{max-width:370px;font-size:14px;line-height:1.75;margin-bottom:24px}
.t-chat-empty>div{gap:11px}
.t-empty-privacy{font-size:11px;line-height:1.5;margin-top:28px;gap:7px}
.t-rail-empty{padding:42px 23px}
.t-rail-empty>svg{color:var(--accent)}
.t-rail-empty strong{font-size:13px;line-height:1.5;font-weight:600}
.t-rail-empty p{font-size:12px;line-height:1.7;margin-top:8px}
.t-details{width:304px;background:var(--surface);border-left:1px solid var(--line);box-shadow:var(--shadow);scrollbar-color:var(--line) transparent;overscroll-behavior:contain}
.t-details-heading{padding:20px 21px;min-height:83px;gap:10px;border-bottom:1px solid var(--line)}
.t-details-heading h3{font:600 14px/1.4 var(--display);letter-spacing:-.15px}
.t-details-heading .t-icon{background:var(--surface-subtle)}
.t-details-identity{padding:27px 23px 24px;border-bottom:1px solid var(--line)}
.t-details-identity h3{font:650 21px/1.3 var(--display);letter-spacing:-.55px;margin:16px 0 11px}
.t-access-label{gap:5px;padding:5px 9px;border:0;border-radius:999px;background:var(--surface-subtle);font-size:11px;line-height:1.4;color:var(--muted)}
.t-details-identity p{font-size:12px;line-height:1.75;margin:17px 0 8px;color:var(--muted)}
.t-details-identity .t-text-button{font-size:12px}
.t-detail-section{padding:22px 23px;border-bottom:1px solid var(--line)}
.t-detail-section h4{font-size:11px;line-height:1.5;letter-spacing:0;font-weight:600;margin-bottom:16px;color:var(--muted)}
.t-detail-section h4 span{font-size:10px;line-height:1.4;padding:2px 6px;border-radius:999px;background:var(--surface-subtle);color:var(--muted)}
.t-detail-section-heading{margin-bottom:16px}
.t-detail-section-heading h4{margin:0}
.t-detail-section-heading .t-icon{width:32px;height:32px;flex-basis:32px;color:var(--accent)}
.t-member-list{gap:17px}
.t-member-row{gap:11px}
.t-member-row>.avatar{width:36px!important;height:36px!important;font-size:11px!important;border:0}
.t-member-row strong{font-size:12px;line-height:1.4;font-weight:550}
.t-member-row strong>small{font-size:11px;display:inline;font-weight:400}
.t-member-row small{font-size:11px;line-height:1.5;margin-top:3px;color:var(--muted)}
.t-owner-label{font-size:11px;line-height:1.4;padding:3px 6px;border:0;border-radius:6px;color:var(--muted);background:var(--surface-subtle)}
.t-client-context{gap:11px;color:var(--accent)}
.t-client-context strong{font-size:13px;line-height:1.5;font-weight:550;color:var(--ink)}
.t-client-context small{font-size:11px;line-height:1.6;margin-top:4px;color:var(--muted)}
.t-pin-item{padding:13px 14px;margin-bottom:9px;border:0;border-radius:14px;background:var(--surface-subtle)}
.t-pin-item strong{font-size:11px;line-height:1.4;font-weight:600;margin-bottom:6px}
.t-pin-item>span{font-size:12px;line-height:1.7;max-height:62px;color:var(--muted)}
.t-pin-item small{font-size:11px;line-height:1.4;margin-top:8px;color:var(--muted)}
.t-detail-note{font-size:12px;line-height:1.75;color:var(--muted)}
.t-details-footer{padding:17px 23px;gap:4px}
.t-danger{color:var(--danger)}
.t-status{padding:10px 24px;gap:12px;font-size:12px;line-height:1.5;color:var(--muted);background:var(--surface-subtle);border-bottom:1px solid var(--line)}
.t-status.t-error{color:var(--danger);background:var(--danger-soft);border-color:var(--danger-line)}
.t-status .t-text-button{font-size:12px;min-height:30px;white-space:nowrap}
.t-highlight{outline:2px solid var(--accent);outline-offset:6px;background:var(--accent-soft)}
.t-older-wrap{margin:10px 0 2px}
.t-older-wrap .t-text-button{font-size:11px}
.t-archived-notice{gap:13px;padding:20px 27px;background:var(--paper);border-top:1px solid var(--line)}
.t-archived-notice strong{font-size:13px;line-height:1.5;font-weight:600;color:var(--ink)}
.t-archived-notice small{font-size:11px;line-height:1.7;margin-top:4px;color:var(--muted)}
.t-archived-notice .btn{font-size:12px}

/* Group and private-message sheets retain the shared modal structure. */
.t-form-note{font-size:13px;line-height:1.75;color:var(--muted);margin-bottom:18px}
.t-group-form{gap:18px}
.t-group-form .t-form-note{font-size:12px;line-height:1.7;margin:8px 0 13px}
.t-check-row{gap:11px;padding:15px 16px;border:0;border-radius:16px;background:var(--surface-subtle)}
.t-check-row input{width:18px;height:18px;min-height:18px;margin-top:3px;accent-color:var(--accent)}
.t-check-row strong{font-size:13px;line-height:1.5;font-weight:600}
.t-check-row small{font-size:12px;line-height:1.7;margin-top:5px;color:var(--muted)}
.t-member-picker{max-height:285px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.t-member-picker label{gap:11px;padding:13px 14px;min-height:64px;border-bottom:1px solid var(--line)}
.t-member-picker label:hover{background:var(--surface-subtle)}
.t-member-picker input{width:17px!important;height:17px!important;min-height:17px;accent-color:var(--accent)}
.t-member-picker strong{font-size:13px;line-height:1.5;font-weight:550}
.t-member-picker small{font-size:11px;line-height:1.5;margin-top:3px;color:var(--muted)}
.t-direct-picker{max-height:390px;margin-top:15px;gap:2px}
.t-direct-picker>button{padding:14px 12px;min-height:70px;gap:12px;border:0;border-radius:14px}
.t-direct-picker>button:hover{background:var(--surface-subtle)}
.t-direct-picker strong{font-size:14px;line-height:1.5;font-weight:550}
.t-direct-picker small{font-size:12px;line-height:1.5;margin-top:3px;color:var(--muted)}
.t-modal-search{height:46px;margin:0;border-radius:13px;background:var(--surface-subtle)}
.t-delete-preview{margin:18px 0 0;padding:15px 17px;border:0;border-radius:15px;background:var(--surface-subtle);color:var(--muted);font-size:13px;line-height:1.75}
.t-owner-tools{padding-top:19px;margin-top:22px;border-top:1px solid var(--line)}
.t-owner-tools h4{font-size:14px;line-height:1.5;font-weight:600;margin-bottom:7px}
.t-owner-tools>.t-form-note{font-size:12px;line-height:1.7;margin-bottom:12px}
.t-owner-tools>div{gap:11px;padding:11px 0}
.t-owner-tools>div>span:nth-child(2){font-size:13px;line-height:1.5}
.t-owner-tools .t-text-button{font-size:12px}

/* Compact call surfaces match the same neutral, rounded interface. */
.team-call-incoming{gap:12px;max-width:460px;padding:18px;border:1px solid var(--line);border-radius:24px;background:var(--surface);box-shadow:var(--shadow);color:var(--ink);font-family:var(--body)}
.team-call-avatar{width:46px;height:46px;flex-shrink:0;border:0;background:var(--accent-soft);color:var(--accent);font-size:14px;font-weight:650}
.team-call-who{min-width:0}
.team-call-who strong{font-size:14px;line-height:1.45;font-weight:600;letter-spacing:-.2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.team-call-who span{font-size:12px;line-height:1.5;margin-top:3px;color:var(--muted)}
.team-call-round{width:44px;height:44px}
.team-call-round.accept{background:var(--accent);color:var(--on-accent)}
.team-call-round.decline{background:var(--danger);color:var(--surface)}
.team-call-panel{width:430px;border:1px solid var(--line);border-radius:28px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow);font-family:var(--body)}
.team-call-panel.has-video{width:min(680px,calc(100vw - 32px))}
.team-call-panel>header{min-height:66px;padding:17px 21px;gap:14px;border-bottom:1px solid var(--line);font-size:13px;font-weight:600;letter-spacing:-.1px}
.team-call-panel>header>span:first-child{gap:9px}
.team-call-private{font-size:11px;font-weight:400;color:var(--muted)}
.team-call-close{width:34px;height:34px;min-width:34px;border-radius:50%;background:var(--surface-subtle);color:var(--muted)}
.team-call-stage{min-height:230px}
.team-call-person{padding:34px 22px 22px}
.team-call-avatar.large{width:90px;height:90px;font-size:29px;font-weight:600}
.team-call-person h2{font:650 23px/1.3 var(--display);letter-spacing:-.6px;margin:19px 0 5px}
.team-call-remote{background:var(--paper)}
.team-call-panel.has-video .team-call-stage{height:370px;background:var(--paper)}
.team-call-self{width:134px;height:94px;bottom:17px;right:17px;border:1px solid var(--line);border-radius:17px;background:var(--surface-raised);box-shadow:var(--shadow)}
.team-call-status{padding:5px 26px 23px;font-size:13px;line-height:1.65;color:var(--muted)}
.team-call-panel.has-video .team-call-status{padding-top:18px}
.team-call-note{font-size:12px;line-height:1.65;color:var(--muted);padding:0 26px;margin-bottom:17px}
.team-call-controls{gap:24px;padding:0 28px 29px}
.team-call-control{gap:8px;min-width:64px;font-size:11px;line-height:1.4;color:var(--muted)}
.team-call-control svg{padding:15px;border:0;border-radius:50%;background:var(--surface-subtle);color:var(--ink)}
.team-call-control.toggled svg{background:var(--accent-soft);color:var(--accent)}
.team-call-control.hangup svg{background:var(--danger);border:0;color:var(--surface)}
.team-call-audio-play{min-height:40px;padding:9px 15px;margin-bottom:18px;border:0;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:12px;line-height:1.5;gap:8px}

@media(min-width:1440px){
  .t-workspace.t-details-open{grid-template-columns:320px minmax(0,1fr) 304px}
  .t-details{position:relative;grid-column:3;grid-row:1;width:auto;box-shadow:none}
  .t-workspace:has(>.t-status) .t-details{grid-row:2}
}
@media(min-width:761px) and (max-width:1100px){
  .t-workspace{grid-template-columns:264px minmax(0,1fr)}
  .t-rail-heading{padding:25px 15px 19px;gap:1px}
  .t-rail h2{font-size:23px;letter-spacing:-.65px;gap:6px}
  .t-rail-heading>.t-icon{width:35px;height:38px;flex-basis:35px}
  .t-search{margin-left:16px;margin-right:16px}
  .t-filters{margin-left:15px;margin-right:15px}
  .t-conversation{padding:12px 10px;gap:10px}
  .t-conversation-copy strong{font-size:12px}
  .t-conversation-copy small{font-size:11px}
  .t-conversation-copy time{font-size:11px}
  .t-chat-header{padding:16px;gap:9px}
  .t-chat-identity{gap:9px}
  .t-chat-header-actions{gap:1px}
  .t-chat-header-actions .t-icon{width:33px;height:36px;flex-basis:33px}
  .t-chat-identity h2{font-size:14px}
  .t-chat-identity small{font-size:11px}
  .t-messages{padding-left:20px;padding-right:20px}
  .t-message-main{max-width:86%}
  .t-message-text{font-size:13px}
  .t-composer{padding-left:18px;padding-right:18px}
  .t-compose-tools>span{font-size:11px}
}
@media(max-width:760px){
  .t-workspace{grid-template-columns:1fr;width:100%;height:100%;min-height:0;border:0;border-radius:0;box-shadow:none}
  .t-rail{grid-column:1;grid-row:1;border:0}
  .t-chat{display:none;grid-column:1;grid-row:1}
  .t-chat-open .t-rail{display:none}
  .t-chat-open .t-chat{display:flex}
  .t-rail-heading{min-height:93px;padding:23px 18px 17px;gap:5px}
  .t-rail h2{font-size:29px;letter-spacing:-1px;gap:10px}
  .t-rail-heading>.t-icon{width:44px;height:44px;flex-basis:44px}
  .t-rail-heading .t-mobile-nav{width:38px;flex-basis:38px;margin-right:1px;color:var(--ink)}
  .t-search{height:44px;margin-left:20px;margin-right:20px}
  .t-search input{font-size:16px}
  .t-filters{margin:16px 19px 19px}
  .t-filters button{min-height:36px;padding:6px 2px;font-size:11px}
  .t-rail-label{padding:0 25px 11px}
  .t-conversations{padding:0 10px 14px}
  .t-conversation{min-height:87px;padding:14px;gap:13px;border-radius:17px}
  .t-conversation .avatar{width:47px!important;height:47px!important;font-size:14px!important}
  .t-conversation .t-group-tile{width:47px;height:47px;flex-basis:47px;border-radius:15px}
  .t-conversation-copy strong{font-size:14px;line-height:1.35}
  .t-conversation-copy small{font-size:13px}
  .t-conversation-copy time{font-size:11px}
  .t-unread-count{min-width:21px;height:21px;font-size:10px}
  .t-rail-bottom{padding:16px 25px 20px}
  .t-rail-bottom .t-text-button{font-size:13px;min-height:35px}
  .t-rail-bottom>span{font-size:11px}
  .t-mobile-back{display:inline-flex;width:36px;height:44px;flex-basis:36px;margin-left:-5px;margin-right:0;color:var(--accent)}
  .t-chat-header{min-height:76px;padding:12px 12px;gap:7px}
  .t-chat-identity{gap:9px}
  .t-chat-identity .t-group-tile{width:36px;height:36px;flex-basis:36px;border-radius:12px}
  .t-chat-identity .avatar{width:36px!important;height:36px!important;font-size:11px!important}
  .t-chat-identity h2{font-size:14px;margin-bottom:3px;max-width:170px}
  .t-chat-identity small{font-size:11px;line-height:1.4}
  .t-chat-header-actions{gap:1px}
  .t-chat-header-actions .t-icon{width:35px;height:42px;flex-basis:35px}
  .t-chat-header-actions .t-icon svg{width:18px;height:18px}
  .t-client-notice{font-size:11px;padding:9px 16px;gap:7px}
  .t-pinned-bar{padding:11px 16px;min-height:45px;gap:9px}
  .t-pinned-bar>span{font-size:11px}
  .t-pinned-bar strong{display:none}
  .t-chat-search{padding:10px 14px}
  .t-chat-search input{font-size:16px}
  .t-messages{padding:4px 15px 18px}
  .t-day{font-size:11px;margin:20px 0 18px}
  .t-message{display:grid;grid-template-columns:27px minmax(0,1fr);column-gap:8px;row-gap:3px;margin-top:18px;align-items:start}
  .t-message.compact{margin-top:8px}
  .t-message-avatar{width:27px;grid-column:1;grid-row:1;padding-top:3px}
  .t-message-avatar .avatar{width:27px!important;height:27px!important;font-size:9px!important}
  .t-message-main{grid-column:2;grid-row:1;max-width:100%;min-width:0;justify-self:start}
  .t-message.mine{grid-template-columns:minmax(0,1fr)}
  .t-message.mine .t-message-main{grid-column:1;max-width:92%;justify-self:end}
  .t-message-byline strong{font-size:11px}
  .t-message-text{font-size:14px;line-height:1.65}
  .t-bubble{padding:11px 13px 8px;border-radius:19px 19px 19px 7px}
  .t-message.mine .t-bubble{border-radius:19px 19px 7px 19px}
  .t-message-meta{font-size:11px}
  .t-message-actions{position:static;grid-column:2;grid-row:2;justify-self:start;align-self:auto;display:flex;flex-direction:row;gap:1px;padding:0;margin:0;border:0;border-radius:999px;background:transparent;box-shadow:none;opacity:1;pointer-events:auto;transform:none}
  .t-message.mine .t-message-actions{grid-column:1;justify-self:end;flex-direction:row;left:auto;right:auto}
  .t-message-actions .t-icon{width:36px;height:36px;flex-basis:36px;border-radius:50%}
  .t-message-actions .t-icon svg{width:14px;height:14px}
  .t-emoji-picker{top:-49px;right:0;padding:5px;gap:1px}
  .t-message.mine .t-emoji-picker{left:auto;right:0}
  .t-emoji-picker>button{height:33px;width:31px;font-size:19px}
  .t-emoji-picker>button:last-child{height:33px;width:25px}
  .t-composer{padding:12px 13px 13px}
  .t-compose-box{padding:12px 12px 10px;border-radius:22px}
  .t-compose-box textarea{font-size:16px;line-height:1.5;min-height:40px}
  .t-compose-tools>span{font-size:11px}
  .t-send{width:44px;height:44px;min-width:44px}
  .t-composer-note{font-size:11px;margin-top:7px}
  .t-composer-note>span:last-child{display:none}
  .t-compose-context{padding-bottom:11px}
  .t-compose-context strong,.t-compose-context small{font-size:11px}
  .t-details{width:min(330px,100%);z-index:6;grid-row:auto}
  .t-details-heading{padding:16px 20px;min-height:75px}
  .t-details-heading .t-icon{width:38px;height:38px}
  .t-details-identity{padding:25px 22px}
  .t-detail-section{padding:21px 22px}
  .t-chat-empty{padding:35px 23px}
  .t-chat-empty h3{font-size:24px;letter-spacing:-.6px}
  .t-chat-empty p{font-size:13px;line-height:1.75}
  .t-chat-empty .btn{font-size:12px}
  .t-empty-privacy{font-size:11px;line-height:1.6}
  .t-status{padding:9px 15px;font-size:11px}
  .t-archived-notice{padding:17px 16px;gap:10px}
  .t-archived-notice strong{font-size:12px}
  .t-archived-notice small{font-size:11px}
  .t-archived-notice .btn{font-size:11px}
  .t-member-picker{max-height:260px}
}
@media(max-width:600px){
  .team-call-incoming{gap:10px;width:100%;max-width:none;padding:16px;border-radius:23px}
  .team-call-incoming .team-call-avatar{width:42px;height:42px;font-size:13px}
  .team-call-incoming .team-call-round{width:44px;height:44px}
  .team-call-who strong{font-size:13px}
  .team-call-who span{font-size:11px}
  .team-call-panel,.team-call-panel.has-video{width:100%;max-width:none;border-radius:26px}
  .team-call-panel>header{padding:16px 19px;min-height:63px}
  .team-call-stage{min-height:220px}
  .team-call-panel.has-video .team-call-stage{height:min(48dvh,360px)}
  .team-call-self{width:104px;height:76px;right:14px;bottom:14px;border-radius:14px}
  .team-call-private{display:none}
  .team-call-controls{gap:21px;padding-bottom:25px}
  .team-call-person h2{font-size:22px}
}
@media(max-width:360px){
  .t-rail-heading{padding-left:13px;padding-right:13px;gap:1px}
  .t-rail h2{font-size:25px}
  .t-rail-heading>.t-icon{width:40px;flex-basis:40px}
  .t-chat-header{padding-left:8px;padding-right:8px;gap:5px}
  .t-chat-identity h2{max-width:110px;font-size:13px}
  .t-chat-identity small{font-size:11px}
  .t-chat-header-actions .t-icon{width:31px;flex-basis:31px}
  .t-compose-tools>span{font-size:11px}
}
@media(prefers-reduced-motion:reduce){
  .t-icon,.t-conversation,.t-message,.t-message-actions{transition:none}
  .t-messages{scroll-behavior:auto}
  .team-call-incoming,.team-call-panel{animation:none}
}
