/* Conversation first; every existing control remains in the disclosure panels. */
.chat-clean.chat-clean{position:relative;width:100%;max-width:1200px;display:flex;flex:1;min-height:0;flex-direction:column}
.chat-clean.chat-clean .page-heading{display:flex;flex:none;align-items:center;gap:12px;margin:6px 0;flex-wrap:nowrap}
.chat-clean.chat-clean .page-heading>div:first-child{flex:1;min-width:0}.chat-clean.chat-clean .page-heading h1{font-size:22px;margin:0}.chat-clean.chat-clean .page-heading .eyebrow,.chat-clean.chat-clean .page-heading p{display:none}
.chat-clean.chat-clean .page-heading>.chat-clean-menus{flex:none;display:flex;gap:8px;align-items:center}
.chat-clean-menu{position:static;border:0;margin:0;padding:0;background:transparent}
.chat-clean-menu>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:center;min-height:44px;padding:9px 14px;border:1px solid var(--line);border-radius:12px;background:var(--panel);font-weight:600;font-size:14px;white-space:nowrap}
.chat-clean-menu>summary::-webkit-details-marker{display:none}.chat-clean-menu[open]>summary{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,var(--panel))}
.chat-clean-menu:not([open])>.chat-clean-panel{display:none!important}
.chat-clean-panel{position:absolute;z-index:20;right:0;top:60px;width:min(460px,100%);max-height:calc(100dvh - 150px);overflow:auto;overscroll-behavior:contain;padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--panel);color:var(--ink);box-shadow:0 16px 50px #0003;display:flex;flex-direction:column;gap:14px}
.chat-clean.chat-clean .chat-app{flex:1;min-height:0;display:flex;flex-direction:column;margin:0;gap:0;width:100%}
.chat-clean.chat-clean .chat-room{flex:1;min-height:0;height:auto;width:100%;padding:0;margin:0;display:flex;flex-direction:column;overflow:hidden;border-radius:20px}
.chat-clean.chat-clean .chat-room-heading{padding:12px 16px;min-height:52px;flex:none}.chat-clean.chat-clean .chat-room-heading>div{max-width:100%;min-width:0}.chat-clean.chat-clean .chat-room-heading h2{font-size:18px;margin:0}
.chat-clean.chat-clean #chat-delete{flex:1;min-height:0;margin:0;display:flex;flex-direction:column}
.chat-clean.chat-clean #chat-messages{flex:1;min-height:0;height:auto;padding:18px;overflow-y:auto;margin:0}
.chat-clean.chat-clean .chat-composer{display:flex;align-items:flex-end;flex:none;padding:12px;gap:10px;margin:0;background:var(--panel);border-top:1px solid var(--line);border-radius:0}
.chat-clean.chat-clean .chat-composer>label:not(.check){flex:1;min-width:0;margin:0}.chat-clean.chat-clean .chat-composer textarea{width:100%;margin:0;padding:12px 14px;border-radius:14px;font-size:18px;line-height:1.5;font-weight:400}
.chat-clean.chat-clean .composer-bottom{flex:none;display:flex;gap:6px;margin:0;align-items:flex-end}.chat-clean.chat-clean #chat-counter{display:none}.chat-clean.chat-clean .composer-bottom>button{min-height:48px;padding:10px 14px;font-size:16px;margin:0}.chat-clean.chat-clean .admin-attach-button{height:48px;min-width:44px;margin:0}
.chat-clean.chat-clean .message-select,.chat-clean.chat-clean .original-message,.chat-clean.chat-clean .message-quick-actions{display:none!important}
.chat-clean.chat-clean.chat-show-actions .message-select,.chat-clean.chat-clean.chat-show-actions .original-message{display:block!important}.chat-clean.chat-clean.chat-show-actions .message-quick-actions{display:flex!important}
.chat-clean.chat-clean .chat-clean-panel .chat-sidebar{display:block!important;width:100%;max-height:none;overflow:visible;margin:0;padding:0;border:0;background:transparent}
.chat-clean.chat-clean .chat-clean-panel .chat-sidebar h2{display:block;font-size:18px;margin:0 0 12px}
.chat-clean.chat-clean .chat-clean-panel .conversation-list{display:flex;flex-direction:column;overflow:auto;max-height:45dvh;touch-action:pan-y;gap:8px;cursor:auto}
.chat-clean.chat-clean .chat-clean-panel .conversation{flex:none;min-width:0;max-width:none;width:100%;padding:10px}.chat-clean.chat-clean .chat-clean-panel .conversation small{display:block}
.chat-clean.chat-clean .chat-clean-panel .chat-clean-actions{position:static;width:100%;max-height:none;overflow:visible;padding:0;border:0;box-shadow:none;background:transparent}.chat-clean-actions>summary{display:none!important}
.chat-clean.chat-clean .chat-clean-panel .chat-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.chat-clean.chat-clean .chat-clean-panel .chat-progress-prompt,.chat-clean.chat-clean .chat-clean-panel .chat-bottom{display:block;max-height:none;margin:0;padding:0}.chat-clean.chat-clean .chat-clean-panel .chat-progress-prompt>span,.chat-clean.chat-clean .chat-clean-panel .chat-bottom>.fine{display:block}
.chat-clean.chat-clean .chat-clean-panel .chat-upload-panel{position:static;display:block;width:100%;max-height:none;margin:0;padding:0;border:0;box-shadow:none;overflow:visible}
.chat-clean.chat-clean .chat-clean-panel .emoji-tools{display:flex;flex-wrap:wrap}
.chat-clean.chat-clean .chat-clean-panel .conversation-tools{border:0;padding:0;gap:8px;display:flex;flex-wrap:wrap}.chat-clean.chat-clean .chat-clean-panel .conversation-search{padding:0}
.chat-clean-site-controls{display:flex;flex-direction:column;gap:12px;border-top:1px solid var(--line);padding-top:14px}.chat-clean-site-controls nav{position:static!important;transform:none!important;width:100%!important;display:flex!important;flex-wrap:wrap!important;gap:8px;overflow:visible!important;margin:0!important;border:0!important;padding:0!important}.chat-clean-site-controls nav a{font-size:14px;min-height:40px;padding:8px}.chat-clean-site-controls>span{font-size:12px;color:var(--muted)}
.chat-clean-site-controls .display-settings{position:relative}.chat-clean-site-controls .display-panel{position:static;max-width:100%;width:100%}.chat-clean-site-controls .language-switch{display:block}.chat-clean-site-controls .language-switch label{font-size:14px}
.chat-clean .sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
body.chat-screen:has(.chat-clean) .top{min-height:46px!important;padding:6px 10px!important;margin:0!important;flex:none!important;flex-wrap:nowrap!important}body.chat-screen:has(.chat-clean) .top .brand{width:auto!important;max-width:none!important;overflow:visible!important}body.chat-screen:has(.chat-clean) .top .brand-mark{width:32px;height:32px}body.chat-screen:has(.chat-clean) .top .brand small{display:none}
body.chat-screen:has(.chat-clean) .app>footer[hidden]{display:none!important}body.chat-screen:has(.chat-clean) main{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}body.chat-screen:has(.chat-clean) main>.app-promotion,body.chat-screen:has(.chat-clean) main>.device-notification-prompt{display:none}
.app-chat .message-quick-actions{display:none!important}.app-chat.chat-show-actions .message-quick-actions{display:flex!important}.chat-clean-app-focus .app-header-actions,.chat-clean-app-focus .app-nav{display:none!important}.chat-clean-app-focus .app-main{padding-bottom:0}.chat-clean-app-details{font-size:14px!important;width:auto!important;min-width:80px;padding:10px!important;font-weight:600}.chat-clean-app-links{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.chat-clean-app-links label{width:100%}#chat-actions{max-height:85dvh;overflow:auto}#chat-actions .display-panel{position:static;width:100%}#chat-actions .conversation-tools{padding:10px 0;border:0}
@media(max-width:520px){.chat-clean.chat-clean .page-heading h1{font-size:17px}.chat-clean-menu>summary{padding:8px 10px;font-size:12px}.chat-clean.chat-clean .page-heading{gap:6px}.chat-clean.chat-clean .page-heading>.chat-clean-menus{gap:5px}.chat-clean-panel{top:56px;max-height:calc(100dvh - 125px);padding:14px}.chat-clean.chat-clean #chat-messages{padding:12px}.chat-clean.chat-clean .chat-composer{gap:6px}.chat-clean.chat-clean .composer-bottom>button{font-size:14px;padding:8px 10px}.chat-clean.chat-clean .chat-message p{font-size:18px}}

.chat-clean.chat-clean .chat-clean-panel .search{display:flex;gap:8px;margin:0 0 14px}.chat-clean.chat-clean .chat-clean-panel .search input{flex:1;min-width:0}.chat-clean.chat-clean .chat-clean-panel .search button{flex:none}
.chat-clean.chat-clean .chat-messages{border:0;border-radius:0;background:var(--bg)}
.chat-clean.chat-clean .chat-message{max-width:88%;flex-shrink:0}.chat-clean.chat-clean .chat-message>div:not(.message-quick-actions){border:1px solid var(--line);border-radius:18px 18px 18px 5px;background:var(--panel);padding:12px 16px;box-shadow:0 3px 12px #00000006}.chat-clean.chat-clean .chat-message.own>div:not(.message-quick-actions){border-radius:18px 18px 5px 18px;background:color-mix(in srgb,var(--green) 12%,var(--panel))}.chat-clean.chat-clean .chat-message p{font-size:18px;line-height:1.6}.chat-clean.chat-clean .chat-message small{font-size:12px}
.chat-clean.chat-clean .chat-clean-panel .admin-translation-control{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.chat-clean.chat-clean .chat-clean-panel .admin-translation-control button{display:block!important}

@media(max-width:350px){.chat-clean.chat-clean .page-heading h1{font-size:15px}.chat-clean-menu>summary{font-size:11px;padding:8px 7px}}

body.chat-clean-app-focus{height:var(--app-height,100dvh);min-height:0;overflow:hidden}body.chat-clean-app-focus .app-shell{height:100%;min-height:0;display:flex;flex-direction:column;padding-bottom:0}body.chat-clean-app-focus .app-header{flex:none}body.chat-clean-app-focus .app-main{flex:1;min-height:0;display:flex;flex-direction:column;padding:0;overflow:hidden}body.chat-clean-app-focus .app-chat:not([hidden]){height:auto;flex:1;min-height:0;display:flex;flex-direction:column}body.chat-clean-app-focus .app-messages{flex:1;min-height:0;height:auto;overflow:auto}body.chat-clean-app-focus .app-composer,body.chat-clean-app-focus .conversation-heading,body.chat-clean-app-focus .composer-status{flex:none}body.chat-clean-app-focus .composer-status:empty{display:none}body.chat-clean-app-focus .skip-link{position:absolute;top:-100px}body.chat-clean-app-focus .skip-link:focus{top:0;z-index:100}

/* Keep the conversation usable with a mobile keyboard. */
body.chat-screen:has(.chat-clean){height:var(--chat-viewport,100dvh)!important;min-height:0!important;overflow:hidden}body.chat-clean-app-focus{height:var(--chat-viewport,var(--app-height,100dvh))!important}
.chat-screen .skip-link{position:absolute!important;left:12px;top:-100px;z-index:100}.chat-screen .skip-link:focus{top:0}
.chat-clean.chat-clean .chat-room-heading{padding:8px 12px;min-height:44px;max-height:76px;overflow:hidden;gap:6px}.chat-clean.chat-clean .chat-room-heading .presence-time,.chat-clean.chat-clean .chat-room-heading .presence-platform{display:none}.chat-clean.chat-clean .chat-room-heading .customer-presence{display:inline-flex;gap:6px;flex-wrap:nowrap}.chat-clean.chat-clean .chat-room-heading h2{font-size:17px;line-height:1.3}.chat-clean.chat-clean .chat-room-heading .presence-state{font-size:12px}
.chat-clean.chat-clean .chat-composer textarea{min-height:52px!important}.chat-clean.chat-clean .chat-user-switch{flex:none;width:160px;max-width:35vw;min-height:40px;margin:0;padding:8px 28px 8px 10px;font-size:14px;font-weight:500;border-radius:12px;background-color:var(--panel)}
body.chat-typing.chat-screen:has(.chat-clean) .top,body.chat-typing.chat-clean-app-focus .app-header{display:none!important}body.chat-typing .chat-clean .page-heading{margin:4px 0}body.chat-typing .chat-clean .page-heading h1{font-size:15px}body.chat-typing .chat-clean .chat-room-heading{padding:6px 10px;max-height:60px}body.chat-typing .app-chat .conversation-heading{padding:6px 10px!important;min-height:44px}body.chat-typing .app-chat .conversation-heading h1{font-size:17px}body.chat-typing .app-chat .conversation-heading .team-presence{display:none}
.chat-clean.chat-clean #chat-messages,.chat-clean-app-focus .app-messages{overflow-y:auto!important;touch-action:pan-y;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}.chat-clean.chat-clean .chat-composer{padding:8px}.chat-clean.chat-clean .chat-composer textarea,.app-chat #app-message{overscroll-behavior-y:contain}
@media(max-width:520px){.chat-clean.chat-clean .chat-user-switch{width:130px;font-size:12px;max-width:34vw}.chat-clean.chat-clean .page-heading h1{font-size:15px}.chat-clean.chat-clean .chat-room-heading h2{font-size:16px}.chat-clean.chat-clean .chat-message p{font-size:17px;line-height:1.5}.chat-clean.chat-clean .chat-message>div:not(.message-quick-actions){padding:10px 12px}.chat-clean.chat-clean #chat-messages{padding:10px}.chat-clean.chat-clean .chat-clean-panel{max-height:calc(var(--chat-viewport,100dvh) - 110px)}}

body.chat-clean-app-focus .app-header>.express-refresh-icon{display:none!important}.app-chat .conversation-heading>.express-refresh-icon{margin-left:6px!important}.chat-clean.chat-clean .chat-clean-menus>.express-refresh-icon{width:34px!important;min-width:34px!important;height:36px!important}
@media(max-width:520px){.admin-chat-workspace.chat-clean .page-heading>div:first-child{display:none}.admin-chat-workspace.chat-clean .page-heading{justify-content:flex-end}.admin-chat-workspace.chat-clean .page-heading>.chat-clean-menus{width:100%;justify-content:space-between}.chat-clean.chat-clean .chat-clean-panel{top:50px}}

.chat-clean.chat-clean .chat-room-heading .presence-time,.chat-clean.chat-clean .chat-room-heading .presence-platform{display:none!important}

body.chat-clean-app-focus .conversation-heading>div:first-child{flex:1;min-width:0}

/* Reuse the existing brand row so the conversation keeps its dimensions. */
.chat-top-navigation{display:flex!important;align-items:center;gap:6px;flex:none;margin-left:auto}.chat-top-navigation[hidden]{display:none!important}.chat-top-navigation .chat-top-link{display:inline-flex;align-items:center;justify-content:center;min-height:34px;height:34px;padding:4px 9px;margin:0;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--ink);font-size:12px;line-height:1.2;white-space:nowrap;text-decoration:none;cursor:pointer}.chat-top-language,.chat-top-language label{margin:0!important;display:block!important}.chat-top-language select{width:61px;min-height:34px;height:34px;padding:4px 19px 4px 7px;margin:0!important;font-size:12px;border-radius:9px}.chat-overlay-close{position:absolute!important;right:8px;top:8px;width:36px;min-width:36px;height:36px;min-height:36px;padding:0!important;margin:0!important;display:flex;align-items:center;justify-content:center;font-size:27px!important;line-height:1;border:1px solid var(--line);border-radius:50%;background:var(--panel);color:var(--ink);cursor:pointer;z-index:2}#attachment-actions,#chat-actions,.chat-upload-panel{position:relative}#attachment-actions h2,#chat-actions h2,.chat-upload-panel h2{padding-right:40px}.chat-upload-panel>.chat-overlay-close{display:none}.chat-upload-panel[open]>.chat-overlay-close,.chat-clean-panel .chat-upload-panel>.chat-overlay-close{display:flex}
@media(max-width:520px){.chat-top-navigation{gap:4px}.chat-top-navigation .chat-top-link{font-size:11px;padding:4px 6px}.chat-screen:has(.chat-clean) .top .brand>span:last-child,.chat-clean-app-focus .app-brand>span{display:none}.chat-clean-app-focus .app-header{gap:6px}.chat-top-navigation .chat-top-language select{width:56px}}

.express-update-menu[hidden]{display:none!important}.express-update-hint{font-size:13px;color:var(--muted);line-height:1.5}

body.chat-screen:has(.chat-clean) .top .chat-top-link,body.chat-screen:has(.chat-clean) .top .chat-top-language select{height:32px;min-height:32px}.chat-top-navigation .chat-top-language select{padding-right:16px!important;padding-left:7px!important;width:62px!important}



@media(max-width:520px){.app-header:has(.express-update-menu:not([hidden])) .app-brand>span{display:none}.app-header:has(.express-update-menu:not([hidden])){gap:6px}.app-header:has(.express-update-menu:not([hidden])) .display-settings summary small{display:none}.app-header:has(.express-update-menu:not([hidden])) .display-settings summary{min-height:36px;padding:6px;font-size:12px}.app-header:has(.express-update-menu:not([hidden])) .express-update-menu{padding:6px 9px!important;font-size:12px}}

.new-message-notice{animation:none!important;box-shadow:0 3px 12px #0002}.new-message-notice a{font-weight:500}


.admin-phone-alerts{max-width:min(92vw,460px);border:1px solid var(--line);border-radius:18px;background:var(--panel);color:var(--ink);padding:24px}.admin-phone-alerts h2{padding-right:34px}.admin-phone-alerts::backdrop{background:#07172566}

.chat-top-navigation .chat-top-link[hidden]{display:none!important}.top>.language-switch{display:block!important}.top>.language-switch select{display:inline-block!important}
@media(max-width:520px){.app-header:has(.express-update-menu:not([hidden])) .display-settings summary span{display:none}.app-header:has(.express-update-menu:not([hidden])) .display-settings summary{width:34px;min-width:34px;justify-content:center}.app-header:has(.express-update-menu:not([hidden])) .app-header-actions{gap:4px}.app-header:has(.express-update-menu:not([hidden])) .express-refresh-icon{width:32px!important;min-width:32px!important}.app-header:has(.express-update-menu:not([hidden])) .app-brand img{width:32px;height:32px}}

.admin-phone-trigger{display:inline-flex;align-items:center;gap:6px}.admin-phone-trigger>span:first-child{font-size:20px}.admin-phone-trigger>span:first-child:before{content:'♧';display:none}@media(max-width:520px){.admin-app:not(.chat-screen) .top .brand>span:last-child,.admin-app:not(.chat-screen) .top .display-settings summary span,.admin-app:not(.chat-screen) .top>.admin-phone-trigger>span:last-child{display:none}.admin-app:not(.chat-screen) .top>.admin-phone-trigger{width:34px;min-width:34px;padding:4px}.admin-app:not(.chat-screen) .top .display-settings summary{min-width:34px;width:34px;padding:6px}}


.express-back-button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:28px;min-width:28px;height:32px;min-height:32px!important;font-size:24px!important;line-height:1;padding:0!important;margin:0!important;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--ink);cursor:pointer}.express-back-floating{position:fixed;bottom:calc(14px + env(safe-area-inset-bottom));left:12px;z-index:35}.app-shell~.express-back-floating{bottom:calc(84px + env(safe-area-inset-bottom))}.chat-clean.chat-clean .composer-bottom>.express-back-button{min-height:32px;padding:0;font-size:24px}

.chat-composer,.app-composer{position:relative}.express-back-button:not(.express-back-floating){position:absolute;right:10px;bottom:calc(100% + 6px);z-index:5;border-radius:50%;box-shadow:0 2px 8px #0002}

.express-back-button:not(.express-back-floating){position:static;right:auto;bottom:auto;align-self:center;box-shadow:none;border-radius:9px}

.chat-clean-app-focus .app-chat .conversation-heading{padding:8px 12px;min-height:56px;max-height:76px;align-items:center;gap:6px}.chat-clean-app-focus .app-chat .conversation-heading h1{font-size:18px;line-height:1.25;margin:0}.chat-clean-app-focus .app-chat .conversation-heading .team-presence{font-size:12px;line-height:1.3;margin:3px 0 0;display:flex;gap:5px;flex-wrap:nowrap}.chat-clean-app-focus .app-chat .conversation-heading .presence-time,.chat-clean-app-focus .app-chat .conversation-heading .presence-platform{display:none!important}.chat-clean-app-focus .conversation-heading .presence-state{font-size:12px}.chat-clean-app-focus .conversation-heading .presence-dot{width:8px;height:8px}.chat-clean-app-focus .app-chat .chat-clean-app-details{padding:6px 8px!important;min-width:58px;min-height:34px;font-size:12px!important}


.chat-clean-app-focus .app-chat .conversation-heading .team-presence time{display:none!important}


.chat-team-location{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.conversation-heading .presence-state{flex:none}.chat-clean-app-focus .conversation-heading .team-presence{min-width:0;max-width:100%;overflow:hidden}

.display-settings .display-panel{position:fixed!important;top:64px!important;right:12px!important;left:auto!important;width:min(340px,calc(100vw - 24px))!important;max-height:calc(var(--chat-viewport,100dvh) - 90px)!important;overflow:auto!important;transform:none!important;padding-top:44px!important;margin:0!important;z-index:100!important;box-shadow:0 12px 36px #0003}.express-user-notifications-trigger{display:inline-flex;align-items:center;justify-content:center;width:30px;min-width:30px;height:32px;min-height:32px;padding:5px;margin:0;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--ink);flex:none;position:relative}.express-user-notifications-trigger[data-connected=true]:after{content:'';position:absolute;right:3px;top:3px;width:5px;height:5px;border-radius:50%;background:#2c9a7e}.notification-gentle-hint{position:fixed;top:70px;right:12px;z-index:45;max-width:min(280px,calc(100vw - 24px));font-size:12px!important;font-weight:400!important;line-height:1.4;padding:9px 12px!important;min-height:0!important;border-radius:10px!important;background:var(--panel);border:1px solid var(--line);box-shadow:0 3px 12px #0002}.notification-setup-dialog{padding:24px;max-width:min(92vw,420px)}.notification-setup-dialog strong{display:block;padding-right:35px}

.skip-link{display:none!important}.express-page-history{display:inline-flex;gap:3px;align-items:center;flex:none}.express-page-history[hidden]{display:none!important}.express-page-history>.express-back-button{position:static;align-self:center;width:25px;min-width:25px;height:32px;min-height:32px}.express-forward-button{margin:0!important}@media(max-width:520px){.app-header:has(.express-page-history:not([hidden])){padding:6px 8px;gap:3px;min-height:53px;flex-wrap:nowrap}.app-header:has(.express-page-history:not([hidden])) .app-header-actions{gap:3px}.app-header:has(.express-page-history:not([hidden])) .icon-button{width:30px;min-width:30px;padding:4px}.app-header:has(.express-page-history:not([hidden])) .display-settings summary{width:30px;min-width:30px;padding:4px}.app-header:has(.express-page-history:not([hidden])) .express-refresh-icon{width:28px!important;min-width:28px!important;padding:4px!important}.app-header:has(.express-page-history:not([hidden])) .express-update-menu{padding:5px 8px!important;font-size:11px}.app-header:has(.express-page-history:not([hidden])) .chat-top-language select{width:53px!important;padding-right:13px!important;font-size:11px}.app-header:has(.express-page-history:not([hidden])) .express-user-notifications-trigger{width:28px;min-width:28px}.app-header:has(.express-page-history:not([hidden])) .app-brand img{width:28px;height:28px}.top:has(.express-page-history:not([hidden])){flex-wrap:nowrap;gap:4px;padding:6px 8px;min-height:46px}.top:has(.express-page-history:not([hidden])) .brand>span:last-child{display:none}.top:has(.express-page-history:not([hidden])) .brand-mark{width:28px;height:28px}.top:has(.express-page-history:not([hidden]))>nav{flex:1;min-width:0;overflow-x:auto;flex-wrap:nowrap;white-space:nowrap}.top:has(.express-page-history:not([hidden])) .display-settings summary span{display:none}.top:has(.express-page-history:not([hidden])) .display-settings summary{min-width:30px;width:30px;padding:4px}.top:has(.express-page-history:not([hidden])) .express-update-menu{padding:5px 8px!important;font-size:11px}.top:has(.express-page-history:not([hidden])) .express-refresh-icon{width:28px!important;min-width:28px!important}.top:has(.express-page-history:not([hidden])) .chat-top-language select{width:53px!important;padding-right:13px!important;font-size:11px}}
@media(max-width:520px){.app-header:has(.express-page-history:not([hidden])) .notification-toggle{min-height:34px;height:34px}.app-header:has(.express-page-history:not([hidden])) .app-header-actions{height:40px;align-items:center}}
.chat-live-retry{min-height:28px!important;padding:3px 8px!important;font-size:12px!important;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink)}.chat-live-pending .message-state{font-size:12px;opacity:.7}.chat-live-failed .message-state{opacity:1}.chat-composer button[type=submit] svg{display:block;flex:none}.chat-composer button[type=submit]{overflow:hidden}.chat-composer button[type=submit][aria-busy=true]{animation:none!important}
.chat-user-deleted{display:block;font-size:11px;color:var(--muted);margin:6px 0}.chat-selection-bar{position:absolute;left:12px;right:12px;bottom:85px;z-index:25;display:flex;align-items:center;gap:7px;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--panel);box-shadow:0 3px 15px #0002;font-size:12px}.chat-selection-bar[hidden]{display:none}.chat-selection-bar button{min-height:32px!important;padding:5px 9px!important;font-size:12px!important}.chat-selection-bar label{display:flex;gap:5px;align-items:center}.chat-delete-status{position:absolute;left:12px;right:12px;bottom:80px;z-index:26;font-size:12px;pointer-events:none;background:var(--panel);border-radius:8px}.chat-delete-status:empty{display:none}.chat-clean{position:relative}#screen-messages{position:relative}.top>.display-settings{flex:none}.top>.display-settings summary{font-size:16px;min-width:30px;padding:4px}.top>.display-settings summary>span{display:none}
@media(max-width:520px){.app-header .display-settings summary>span{display:none!important}.app-header .display-settings summary{width:30px;min-width:30px;padding:4px;display:flex;justify-content:center;align-items:center}.app-header:has(.express-page-history:not([hidden])) .app-brand>span{display:none}.app-header:has(.express-page-history:not([hidden])) .app-brand{min-width:28px;flex:none}.app-header:has(.express-page-history:not([hidden])) .app-header-actions{flex:none}}

.chat-selection-toggle{flex:none;min-height:28px!important;height:28px;font-size:11px!important;padding:3px 8px!important;border:1px solid var(--green,var(--line));border-radius:8px;background:var(--panel2,var(--panel));color:var(--ink);cursor:pointer}.chat-selection-toggle[aria-pressed=true]{outline:2px solid var(--green);outline-offset:1px}.chat-selection-bar{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:6px!important}.chat-selection-bar[hidden]{display:none!important}.chat-selection-bar label{display:flex;align-items:center;gap:5px;min-width:0;margin:0;font-size:12px}.chat-selection-bar button{min-height:32px!important;font-size:12px!important;padding:5px 8px!important;margin:0}.chat-selection-bar input{width:20px!important;min-width:20px!important;height:20px!important;min-height:20px!important;margin:0!important}.chat-show-actions .chat-messages,.chat-show-actions #app-messages{padding-bottom:95px}.chat-show-actions .message-select{min-width:24px}.chat-show-actions .message-select input{width:22px;height:22px;min-height:22px;cursor:pointer}.chat-delete-status:empty{display:none}
