/* Clear navigation and quiet motion. */
.topbar-title{min-width:0;flex:1}.topbar-title h1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-actions{gap:12px;flex:none}.header-profile{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:9px;padding:5px 12px 5px 6px;min-height:44px;background:var(--panel);font-size:11px;white-space:nowrap}.header-profile:hover{border-color:var(--accent-border);background:var(--hover)}.header-profile .assignee-avatar{width:31px;height:31px}.header-profile:active{transform:scale(.98)}
.primary,.secondary,.icon-btn,.header-profile,.nav-item,.filter,.chat-kind-tabs button{transition:background-color .16s,border-color .16s,color .16s,transform .16s}.primary:active:not(:disabled),.secondary:active:not(:disabled){transform:translateY(1px)}
.message-list{overflow-anchor:none;scrollbar-gutter:stable;overscroll-behavior:contain}.message-bubble{border-radius:16px 16px 16px 5px}.outgoing .message-bubble{border-radius:16px 16px 5px 16px}.message-enter{animation:message-arrive .2s cubic-bezier(.2,.7,.2,1) both}.message-actions,.reaction-picker,.emoji-picker{animation:menu-arrive .14s ease-out}.message-meta button{min-width:30px;min-height:30px;padding:5px;border-radius:6px;font-size:10px}.message-meta button:hover{background:var(--hover)}.message-meta time{font-size:9px}.message-reactions button{min-height:30px;transition:background-color .15s,border-color .15s}.chat-composer textarea{transition:none}.chat-composer:focus-within{border-color:var(--accent-border)}.send-message{transition:background-color .15s,transform .15s,opacity .15s}.send-message:active:not(:disabled){transform:scale(.92)}.chat-conversation{min-height:0}.role-edit{margin-left:8px}
@keyframes message-arrive{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@keyframes menu-arrive{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
.auth-modal{max-width:490px}.auth-modal .modal-body{padding-top:7px}.auth-intro{margin-bottom:24px}.auth-intro p{font-size:13px;color:var(--muted);margin-top:10px;overflow-wrap:anywhere}.auth-form .field{margin-bottom:18px}.auth-form .field>small{font-size:10px;line-height:1.6;margin-top:5px;display:block}.auth-name-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.auth-form input{height:46px;width:100%;font-size:14px}.auth-demo-note{font-size:10px;line-height:1.6;color:var(--subtle);padding-top:14px;border-top:1px solid var(--line)}.auth-modal .modal-foot{justify-content:space-between}.demo-code-note{display:flex;flex-direction:column;gap:8px;padding:14px 17px;border:1px solid var(--line);border-radius:10px;background:var(--raised);margin-bottom:22px}.demo-code-note span{font-size:11px;color:var(--muted)}.demo-code-note strong{letter-spacing:6px;font-size:23px;font-variant-numeric:tabular-nums;color:var(--accent)}.auth-form .verification-code{font-size:26px;letter-spacing:10px;text-align:center;height:58px;font-variant-numeric:tabular-nums}.auth-success{display:grid;justify-items:center;gap:14px;text-align:center;margin:14px 0 28px}.auth-success>.icon{width:44px;height:44px;color:var(--accent);padding:10px;background:var(--accent-soft);border-radius:50%}.auth-success h3{font-size:20px}.auth-success~p{margin-top:12px}.resend-code{font-size:11px}
@media(max-width:760px){.topbar{padding:10px 16px;min-height:64px;height:64px;gap:8px}.topbar-title{gap:8px}.header-actions{gap:7px}.topbar .topbar-create,.topbar .theme-toggle{display:none}.header-profile{width:44px;height:44px;padding:4px;justify-content:center;background:var(--panel)}.header-profile>span:not(.media-avatar){display:none}.header-profile .assignee-avatar{width:32px;height:32px}.topbar-title h1{font-size:14px}.chat-shell{min-height:0;height:var(--chat-available-height,calc(100dvh - 161px - env(safe-area-inset-bottom)))}.keyboard-open .bottom-nav{display:none}.message-meta button{min-width:36px;min-height:34px;font-size:10px;padding:6px}.message-bubble{padding:11px 12px 5px}.message-meta{gap:3px;margin-top:2px}.message-reactions button{min-height:34px}.reaction-picker button,.emoji-picker button{min-height:40px;min-width:34px}.chat-header .icon-btn,.chat-back{min-height:40px;min-width:32px}.chat-header .chat-members{line-height:1.5}.chat-compose-area{padding:8px 10px max(8px,env(safe-area-inset-bottom))}.auth-modal .modal-body{padding:18px}.auth-name-grid{gap:10px}.auth-form input{font-size:16px}.auth-modal .modal-foot{gap:8px}.auth-modal .modal-foot button{min-height:44px}.auth-modal .modal-foot .ghost{font-size:11px;white-space:normal}.auth-form .field>small{font-size:10px}.role-edit{display:block;margin-left:0}}
@media(max-width:360px){.auth-name-grid{grid-template-columns:1fr;gap:0}.topbar-title>.eyebrow,.topbar-divider{display:none}.message-meta{flex-wrap:wrap}.auth-form .verification-code{letter-spacing:6px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:760px){body.chat-active .main{min-height:0;padding-bottom:0}}
