/* Shared compact workspace controls. Chat is a floating conversation window. */
.ui-modern .topbar .breadcrumb{flex:1 1 auto}.topbar .breadcrumb>span:last-child{overflow:hidden;text-overflow:ellipsis}.topbar .breadcrumb>a,.topbar .breadcrumb>span{flex-shrink:0}.topbar .breadcrumb>span:last-child{flex-shrink:1}
.workspace-tools{display:flex;align-items:center;gap:5px;margin-left:auto;flex:0 0 auto}.quick-search-trigger,.toolbar-icon{font:inherit;font-size:12px;color:var(--ink);cursor:pointer;border:1px solid transparent;background:transparent;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:34px;height:34px;padding:6px;position:relative;flex:0 0 auto}.quick-search-trigger{border-color:var(--line);background:#f8fafc;width:clamp(180px,20vw,310px);justify-content:flex-start;color:var(--muted);padding:6px 10px}.quick-search-trigger kbd{font:inherit;font-size:11px;margin-left:auto;border:1px solid var(--line);padding:0 3px;border-radius:3px}.quick-search-trigger .ui-icon,.toolbar-icon .ui-icon{width:18px;height:18px}.toolbar-icon:hover,.quick-search-trigger:hover{background:var(--info)}.toolbar-icon[aria-expanded=true]{background:var(--info);color:var(--blue)}.unread-count{position:absolute;right:-2px;top:-2px;min-width:16px;line-height:16px;font-size:10px;font-weight:650;text-align:center;padding:0 3px;border-radius:8px;background:var(--blue);color:white}.unread-count[hidden]{display:none}
.ui-modern .topbar .user-menu{position:relative;flex:0 0 auto;margin-left:4px}.ui-modern .topbar .user-menu>summary{display:flex;gap:7px;align-items:center;padding:2px 5px;min-height:34px;cursor:pointer;border-radius:5px}.ui-modern .topbar .user-menu>summary:hover{background:var(--info)}.ui-modern .topbar .user-avatar{width:28px;height:28px;font-size:11px}.topbar .user-identity{min-width:0}.topbar .user-identity strong{display:block;font-size:12px;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar .user-identity small{display:none}.topbar .user-menu-caret{font-size:10px}.ui-modern .topbar .user-menu-popover{position:fixed;top:46px;bottom:auto;right:12px;z-index:120;max-height:calc(100dvh - 64px);overflow:auto;background:#fff;box-shadow:0 6px 22px #17243b22;color:var(--ink)}.ui-modern .topbar .user-menu-popover a,.ui-modern .topbar .user-menu-popover button{display:block;width:100%;height:auto;color:var(--ink);text-align:left;padding:8px 10px;font-size:13px;border-radius:4px}.ui-modern .topbar .user-menu-popover a:hover,.ui-modern .topbar .user-menu-popover button:hover{background:var(--info)}.ui-modern .topbar .user-menu-popover form{margin:0}.ui-modern .sidebar-toggle{min-height:34px;height:34px;padding:5px 8px}
.workspace-search{width:min(620px,calc(100vw - 24px));max-height:min(640px,calc(100dvh - 40px));margin:70px auto auto;padding:16px;border:1px solid #c4cfdd;border-radius:6px;color:var(--ink);background:#fff;box-shadow:0 10px 32px #17243b26;overflow:auto}.workspace-search::backdrop{background:#17243b44}.workspace-search>header,.workspace-panel>header{display:flex;align-items:center;gap:6px;min-height:38px}.workspace-search h2,.workspace-panel h2{font-size:14px;margin:0;min-width:0;flex:1;line-height:1.4}.workspace-search input{width:100%;margin-top:8px}.workspace-status,.workspace-note{font-size:12px;color:var(--muted);line-height:1.4;margin:8px 0;overflow-wrap:anywhere}.workspace-note:empty{display:none}.search-group-label{margin:10px 4px 3px;font-size:11px;color:var(--muted);font-weight:650}.search-result{display:flex;gap:8px;align-items:center;padding:7px 8px;border-radius:4px;cursor:pointer;text-decoration:none;color:var(--ink);font-size:13px}.search-result>span:last-child{min-width:0}.search-result strong,.search-result small{display:block;overflow-wrap:anywhere}.search-result small{font-size:11px;color:var(--muted)}.search-result[aria-selected=true],.search-result:hover{background:var(--info);outline:1px solid #c5d8ee}.search-result-icon{font-size:14px;flex:0 0 22px;color:var(--blue);text-align:center}
.workspace-panel{position:fixed;z-index:105;right:16px;bottom:16px;width:360px;height:480px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 70px);display:flex;flex-direction:column;border:1px solid #bfcbdc;border-radius:6px;background:white;box-shadow:0 6px 24px #17243b26;overflow:hidden;color:var(--ink)}.workspace-panel[hidden]{display:none}.workspace-panel>header{flex-shrink:0;padding:4px 8px;border-bottom:1px solid var(--line);background:#f5f8fc}.workspace-panel>header h2{font-size:13px;font-weight:650;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.workspace-panel>header .unread-count{position:static;flex:0 0 auto}.workspace-panel>header .toolbar-icon{min-width:28px;width:28px;height:28px;font-size:20px;padding:2px}.workspace-panel.is-minimized{height:40px;width:260px}.workspace-panel.is-minimized>:not(header){display:none}.workspace-panel.is-minimized>header{border:0;height:38px}
.chat-conversations{padding:6px 10px;border-bottom:1px solid var(--line);flex-shrink:0}.ui-modern .chat-conversations select{width:100%;height:32px;min-height:32px;padding:4px 7px;font-size:12px}.chat-private-picker{margin-top:3px;font-size:11px}.chat-private-picker summary{color:var(--blue);width:max-content;padding:3px 0}.chat-start{display:flex;gap:5px;margin:4px 0}.ui-modern .chat-start .button{font-size:11px;min-height:32px;padding:4px 6px}.chat-start select{flex:1;min-width:0}.chat-messages{flex:1 1 auto;min-height:40px;overflow:auto;overscroll-behavior:contain;padding:8px 10px;background:#fafbfd;scrollbar-width:thin}.chat-message{max-width:90%;width:max-content;padding:6px 9px;margin:0 0 8px;border:1px solid var(--line);border-radius:6px;background:white;overflow-wrap:anywhere;font-size:13px;white-space:pre-wrap}.chat-message.is-own{margin-left:auto;background:#eaf2ff;border-color:#d5e3f7}.chat-message .message-meta{display:block;font-size:10px;color:var(--muted);margin-bottom:3px;white-space:normal}.chat-message time{font-size:10px}.chat-empty{font-size:12px;color:var(--muted);text-align:center;margin:22px 4px}.chat-older{flex-shrink:0;border:0;border-bottom:1px solid var(--line);background:white;font-size:11px;color:var(--blue);cursor:pointer;padding:5px}.chat-older[hidden]{display:none}.workspace-panel>.workspace-status{margin:0;padding:4px 10px;flex-shrink:0;min-height:0}.workspace-panel>.workspace-status:empty{display:none}.chat-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 6px;align-items:center;margin:0;padding:8px 10px;border-top:1px solid var(--line);flex-shrink:0}.ui-modern .chat-compose textarea{height:44px;min-height:34px;max-height:90px;resize:none;font-size:13px;padding:6px 8px}.ui-modern .chat-compose button{min-height:34px;padding:6px 10px;font-size:12px}.chat-compose small{grid-column:1/-1;font-size:10px;color:var(--muted)}.notification-panel{top:52px;bottom:auto;height:auto;max-height:min(480px,calc(100dvh - 70px));width:350px;padding-bottom:8px}.notification-panel>[data-notification-read-all],.notification-panel>[data-notification-more]{margin:8px 10px;min-height:30px;font-size:11px}.notification-panel>[data-notification-list]{overflow:auto;min-height:0;scrollbar-width:thin}.notification-item{border-bottom:1px solid var(--line);padding:8px 10px;font-size:12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;background:#f1f6fe}.notification-item.is-read{background:white}.notification-item button{font:inherit;text-align:left;cursor:pointer;border:0;background:transparent;color:var(--ink);padding:0}.notification-item time{display:block;font-size:11px;color:var(--muted)}.notification-item .notification-read{font-size:11px;color:var(--blue)}.notification-panel [hidden]{display:none}
.ui-modern .topbar .user-menu>summary strong{color:var(--ink)}.ui-modern .topbar .user-menu[open]>summary,.ui-modern .topbar .user-menu.has-active>summary{background:var(--info)}.chat-message .message-meta,.chat-message time,.chat-compose small{font-size:11px}
@media(max-width:1200px){.topbar .user-identity{display:none}.quick-search-trigger{width:220px}.topbar .breadcrumb>a:first-child{display:none}.topbar .breadcrumb>a:first-child+span{display:none}}
@media(max-width:850px){.quick-search-trigger{width:34px;padding:6px;border:0;background:transparent}.quick-search-trigger>span,.quick-search-trigger>kbd{display:none}.workspace-tools{gap:3px}.ui-modern .topbar .user-menu{margin-left:0}.workspace-search{margin:54px auto auto;max-height:calc(100dvh - 66px)}}
@media(max-width:480px){.ui-modern .topbar .breadcrumb{font-size:11px;gap:4px}.workspace-panel{right:12px;bottom:12px;width:360px;height:min(480px,calc(100dvh - 70px))}.workspace-panel.is-minimized{height:40px;width:250px}.notification-panel{bottom:auto;height:auto}.workspace-search{padding:12px}.ui-modern .topbar .user-menu>summary{padding:2px}.topbar .user-menu-caret{display:none}.toolbar-icon{min-width:32px;width:32px}.ui-modern .page-heading h1{font-size:23px}}
