/* Floating command surface and the shared inbox. */
.quick-tools{display:flex;align-items:center;gap:4px;min-width:0}.sidebar>.quick-tools{margin-top:-10px;margin-bottom:-12px}.quick-tools .quick-search{flex:1;min-width:0;justify-content:flex-start;color:var(--muted);padding:8px}.quick-search kbd{font-size:9px;margin-left:auto;white-space:nowrap;opacity:.65}.quick-tools .icon{position:relative;flex-shrink:0;color:var(--muted);min-width:34px;width:34px;padding:8px}.notification-button .notice-dot{position:absolute;top:5px;right:5px;width:5px;height:5px;border-radius:50%;background:#dedede}.notice-dot[hidden]{display:none}.rail-collapsed .quick-search span,.rail-collapsed .quick-search kbd{display:none}.rail-collapsed .sidebar>.quick-tools{flex-direction:column}.rail-collapsed .quick-search{width:36px;flex:initial}.topbar .quick-tools{margin-right:6px}.command-dialog{width:min(680px,calc(100vw - 32px));max-width:none;max-height:min(660px,calc(100dvh - 80px));padding:0;margin:clamp(24px,18vh,160px) auto auto;border:1px solid #3b3b3b;border-radius:18px;background:#171717;color:#e6e6e6;box-shadow:0 28px 100px #000b,0 0 0 1px #ffffff04;overflow:hidden}.command-dialog::backdrop{background:#0008;backdrop-filter:blur(8px)}.command-dialog[open]{display:flex;flex-direction:column;animation:command-in .14s ease-out}.command-input-row{display:flex;align-items:center;gap:14px;padding:21px 22px 15px}.command-input-row>.ico{width:21px;height:21px;color:#a4a4a4}.command-input-row input{min-width:0;flex:1;height:38px;padding:0;border:0;box-shadow:none!important;background:transparent;border-radius:0;font-size:20px;font-weight:400;letter-spacing:-.4px}.command-input-row input::placeholder{color:#777}.command-input-row button{font-size:10px;min-height:28px;padding:4px 6px;color:#999}.command-filters{display:flex;gap:3px;padding:0 18px 15px;overflow-x:auto;flex-shrink:0;border-bottom:1px solid #292929;scrollbar-width:none}.command-filters button{font-size:11px;border-radius:7px;min-height:29px;padding:5px 10px;color:#929292;white-space:nowrap}.command-filters [aria-pressed="true"]{background:#303030;color:#eee}.command-results{padding:8px;min-height:85px;max-height:420px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#444 transparent}.command-result{display:flex;align-items:center;gap:12px;border-radius:10px;padding:12px 14px;min-height:65px;cursor:pointer}.command-result[aria-selected="true"],.command-result:hover{background:#292929}.command-result-icon{display:grid;place-items:center;flex-shrink:0;width:33px;height:33px;border:1px solid #373737;border-radius:9px;background:#202020;color:#aaa}.command-result-icon .ico{width:16px;height:16px}.command-result-copy{display:grid;min-width:0;flex:1;gap:5px}.command-result-copy strong{font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.command-result-copy small{font-size:11px;color:#929292;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.command-result-kind{font-size:10px;color:#848484;white-space:nowrap}.command-result>.ico{width:14px;color:#888;opacity:0}.command-result[aria-selected="true"]>.ico{opacity:1}.command-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 20px;border-top:1px solid #292929;font-size:10px;color:#828282;min-height:42px}.command-footer kbd{display:inline-block;font-family:inherit;padding:1px 4px;background:#242424;border:1px solid #333;border-radius:3px;margin-inline:2px}.command-empty{padding:35px 20px;text-align:center;font-size:13px;color:var(--muted)}.notification-dialog{width:min(470px,calc(100vw - 32px))}.notice-header{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--line)}.notice-header h2{font-size:16px;margin:0}.notice-header .small{color:var(--muted);font-size:11px}.notice-list{overflow-y:auto;max-height:440px;min-height:100px;padding:8px;scrollbar-width:thin}.notice-item{display:flex;align-items:center;width:100%;text-align:left;border:0;background:transparent;border-radius:10px;padding:14px 12px;gap:12px}.notice-item>span:nth-child(2){flex:1;min-width:0;display:grid;gap:6px}.notice-item strong{font-size:13px;font-weight:450;overflow-wrap:anywhere}.notice-item small{font-size:11px;color:var(--muted)}.notice-icon{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;border-radius:9px;background:#242424;color:#888}.notice-item.unread .notice-icon{color:#ddd}.notice-item i{width:5px;height:5px;border-radius:50%;background:#ddd;flex-shrink:0}.notice-item:not(.unread) strong{color:#999}.notice-footer{border-top:1px solid var(--line);display:flex;flex-direction:column;align-items:flex-start;padding:9px 14px;gap:5px;font-size:11px;color:var(--muted)}.notice-footer>span:empty{display:none}.notice-footer button{font-size:11px;color:var(--muted)}.chat-action-menu{position:fixed;inset:auto;margin:0;padding:6px;width:216px;border:1px solid #3b3b3b;border-radius:12px;background:#1c1c1c;box-shadow:0 10px 40px #0008}.chat-action-menu::backdrop{background:transparent}.chat-action-menu button{display:flex;justify-content:flex-start;gap:11px;width:100%;min-height:40px;padding:9px 12px;font-size:12px;border-radius:6px}.chat-action-menu button .ico{width:16px;height:16px}.chat-action-menu button.danger{border-top:1px solid var(--line);margin-top:4px;border-radius:0 0 6px 6px}.archived-chat{display:flex;align-items:center;border-bottom:1px solid var(--line);gap:8px}.archived-chat .grow{justify-content:flex-start;text-align:left;overflow-wrap:anywhere}.archive-entry{border-top:1px solid var(--line);margin:6px 10px;padding-top:6px}.archive-entry>button{width:100%;justify-content:flex-start;font-size:12px;color:var(--muted)}
@keyframes command-in{from{opacity:0;transform:translateY(-8px) scale(.985)}to{opacity:1;transform:none}}
@media(max-width:760px){.sidebar>.quick-tools{margin:0}.quick-search kbd{display:none}.command-dialog{width:calc(100vw - 24px);margin:12vh auto auto;max-height:calc(100dvh - 100px);border-radius:15px}.command-input-row{padding:16px 16px 12px;gap:11px}.command-input-row input{font-size:18px}.command-filters{padding:0 10px 12px;gap:0}.command-filters button{padding:5px 8px}.command-result{padding:11px 9px;gap:10px}.command-result-kind{display:none}.command-results{max-height:50dvh}.command-footer{padding:10px 14px}.command-footer>span:last-child{display:none}.notice-header{padding:12px 14px}.collection-tools>.quick-tools{justify-content:flex-end;margin-top:4px}.notification-dialog{max-height:calc(100dvh - 80px)}.chat-action-menu button{min-height:44px}}
@media(prefers-reduced-motion:reduce){.command-dialog[open]{animation:none}}

.command-input-row input:focus-visible{outline:none}.command-dialog:has(#command-input:focus-visible){border-color:#575757}.command-input-row input::selection{background:#474747;color:#fff}

.push-options{display:grid;gap:16px;margin-bottom:18px}.push-options>label{display:flex;align-items:center;gap:10px}.push-options input[type=checkbox]{width:18px;height:18px;min-height:18px;accent-color:#aaa}.push-options .push-time{padding-left:28px;justify-content:space-between;color:var(--muted);font-size:12px}.push-time input{width:150px}.push-options label{font-weight:400}

.agent-history .collection-tools>.quick-tools{display:none}
@media(max-width:760px){.agent-history .collection-tools>.quick-tools{display:flex;justify-content:flex-end}.agent-history .quick-tools .icon{width:44px;min-width:44px;min-height:44px}}
