.agent-chat-panel{border-left:1px solid color-mix(in srgb,var(--border) 85%,transparent);box-shadow:-1px 0 0 color-mix(in srgb,var(--ink) 4%,transparent),-12px 0 40px color-mix(in srgb,var(--ink) 10%,transparent)}.agent-chat-panel .agent-chat-panel-header{gap:10px;padding:10px 10px 10px 16px;border-bottom:1px solid color-mix(in srgb,var(--border) 85%,transparent);background:color-mix(in srgb,var(--white) 92%,transparent);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.agent-chat-panel .agent-chat-panel-header-actions{gap:2px}.agent-chat-avatar--mark{width:30px;height:30px;border-radius:10px;object-fit:cover;flex-shrink:0;box-shadow:0 0 0 1px color-mix(in srgb,var(--ink) 8%,transparent),0 1px 2px color-mix(in srgb,var(--ink) 10%,transparent)}.agent-chat-panel-title{display:flex;flex-direction:column;min-width:0;line-height:1.15}.agent-chat-panel-title-sub{font-size:.72rem;font-weight:400;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.agent-chat-chrome-btn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:none;border-radius:999px;background:transparent;color:var(--ink-3);cursor:pointer;line-height:1;transition:background .12s ease,color .12s ease}.agent-chat-chrome-btn:focus-visible,.agent-chat-chrome-btn:hover{background:var(--surface);color:var(--ink);outline:none}.agent-chat-chrome-btn:disabled{cursor:default;background:transparent}.agent-chat-input-bar .agent-chat-execution-mode{gap:0;padding:10px 16px 0}.agent-chat-input-bar .agent-chat-execution-mode-label{margin-right:10px;color:var(--muted)}.agent-chat-input-bar .agent-chat-execution-mode-btn{position:relative;min-height:28px;padding:4px 14px;border:1px solid transparent;border-radius:999px;background:var(--surface);color:var(--ink-3);font-weight:600;transition:background .12s ease,color .12s ease,box-shadow .12s ease}.agent-chat-input-bar .agent-chat-execution-mode-btn+.agent-chat-execution-mode-btn{margin-left:-1px}.agent-chat-input-bar .agent-chat-execution-mode-btn:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}.agent-chat-input-bar .agent-chat-execution-mode-btn:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}.agent-chat-input-bar .agent-chat-execution-mode-btn:hover:not(:disabled){color:var(--ink)}.agent-chat-input-bar .agent-chat-execution-mode-btn.is-selected{z-index:1;border-color:color-mix(in srgb,var(--accent) 35%,transparent);background:var(--white);color:var(--accent);box-shadow:0 1px 3px color-mix(in srgb,var(--ink) 10%,transparent)}.agent-chat-empty-hint:before{content:"";display:block;width:44px;height:44px;margin:0 auto 14px;border-radius:14px;background:url(/icons/app.svg) 50%/cover no-repeat;box-shadow:0 0 0 1px color-mix(in srgb,var(--ink) 8%,transparent),0 6px 18px color-mix(in srgb,var(--ink) 12%,transparent)}@media (prefers-reduced-motion:reduce){.agent-chat-chrome-btn,.agent-chat-input-bar .agent-chat-execution-mode-btn{transition:none}}.popup-agent-title,.popup-agent-trigger{display:flex;align-items:center;gap:8px;min-width:0;font-family:var(--sans)}.popup-agent-switch{position:relative;min-width:0;flex:0 1 auto}.popup-agent-title{flex:0 1 auto}.popup-agent-avatar{flex-shrink:0;object-fit:cover}.popup-agent-avatar--tab{display:inline-flex;align-items:center;justify-content:center;border-radius:10px;border:1px solid var(--border);background:var(--surface-2);color:var(--ink);font-weight:700;font-family:var(--sans);box-sizing:border-box}.popup-agent-title-name{font-size:14px;font-weight:600;color:var(--ink);text-overflow:ellipsis}.popup-agent-connect,.popup-agent-title-name{white-space:nowrap;overflow:hidden;min-width:0}.popup-agent-connect{font-size:inherit;color:var(--ink-3);text-decoration:underline;text-underline-offset:2px;text-overflow:ellipsis}.popup-agent-connect:hover{color:var(--blue)}.popup-agent-trigger{max-width:100%;min-height:40px;padding:3px 8px 3px 3px;border:1px solid transparent;border-radius:12px;text-align:left;background:transparent;color:var(--ink);cursor:pointer}.popup-agent-trigger:focus-visible,.popup-agent-trigger:hover,.popup-agent-trigger[aria-expanded=true]{background:var(--surface-2);border-color:var(--border);outline:none}.popup-agent-caret{flex-shrink:0;color:var(--ink-2)}.popup-agent-unread-dot{width:8px;height:8px;border-radius:50%;background:var(--red);flex-shrink:0}.popup-agent-spinner{width:12px;height:12px;border-radius:50%;border:2px solid var(--border);border-top-color:var(--blue);flex-shrink:0;animation:popup-agent-spin .8s linear infinite}@keyframes popup-agent-spin{to{transform:rotate(1turn)}}@media (prefers-reduced-motion:reduce){.popup-agent-spinner{animation-duration:2.4s}}.popup-agent-menu{position:absolute;top:calc(100% + 6px);left:0;z-index:20;width:min(300px,calc(100vw - 32px));max-height:min(60vh,420px);overflow-y:auto;padding:4px;border:1px solid var(--border);border-radius:10px;background:var(--white);box-shadow:0 8px 24px rgb(0 0 0/.16)}.popup-agent-item{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:6px 8px;border:0;border-radius:8px;background:transparent;color:var(--ink);text-align:left;cursor:pointer;font-family:var(--sans)}.popup-agent-item:focus-visible,.popup-agent-item:hover{background:var(--surface-2)}.popup-agent-item[aria-checked=true]{background:var(--blue-light)}.popup-agent-item-text{display:flex;flex-direction:column;flex:1;min-width:0}.popup-agent-item-name,.popup-agent-item-sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.popup-agent-item-name{font-size:14px;font-weight:600}.popup-agent-item-sub{font-size:12px;color:var(--ink-3)}.popup-agent-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0}.chat-pane.popup-agent-pane{flex:1;height:auto;min-height:0;overflow:hidden}.agent-chat-fullscreen-header:has(.popup-agent-switch),.agent-chat-panel-header:has(.popup-agent-switch){z-index:30}@media (min-width:641px){.agent-chat-fullscreen-header:has(.popup-agent-switch),.agent-chat-panel-header:has(.popup-agent-switch){position:relative}}.agent-chat-panel-header:has(.popup-agent-switch){flex-wrap:nowrap}.popup-agent-trigger,.popup-agent-trigger .agent-chat-panel-title{min-width:0}.popup-agent-trigger .agent-chat-panel-title-sub{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}