/* The native select remains fully functional when the enhancement is unavailable. */
.ai-pill.chat-mode-enhanced { padding:0;border:0;background:none; }
.chat-mode-enhanced>#quick-mode,.chat-mode-enhanced>span { display:none; }
.chat-mode-trigger { display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 12px;border:1px solid var(--line,#344956);border-radius:20px;background:var(--surface-2,#243744);color:var(--text,#eef5fa);font:inherit;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap; }
.chat-mode-icon { color:var(--accent,#48a8ef); }
.chat-mode-trigger[data-mode="off"] .chat-mode-icon { color:var(--muted,#a1adb6); }
.chat-mode-trigger:hover { border-color:var(--accent,#48a8ef);background:var(--surface,#1b2b36); }
.chat-mode-arrow { font-size:14px;color:var(--muted,#a1adb6); }
.chat-mode-trigger:disabled { cursor:wait;opacity:.65; }
.chat-mode-popup { position:fixed;z-index:1510;width:264px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow-y:auto;padding:6px;border:1px solid var(--line,#344956);border-radius:15px;background:var(--surface,#1b2b36);color:var(--text,#eef5fa);box-shadow:0 14px 42px #0005;font-family:inherit;box-sizing:border-box; }
.chat-mode-popup button { display:flex;align-items:center;gap:11px;width:100%;min-height:54px;padding:10px;border:0;border-radius:10px;background:transparent;color:inherit;text-align:start;font:inherit;cursor:pointer; }
.chat-mode-popup button>span:last-child { display:flex;flex-direction:column;gap:5px; }
.chat-mode-popup b { font-size:13px;font-weight:600; }.chat-mode-popup small { font-size:11px;line-height:1.45;color:var(--muted,#a1adb6); }
.chat-mode-check { display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;border:1px solid var(--line,#344956);border-radius:50%;color:var(--accent,#48a8ef);font-weight:bold; }
.chat-mode-popup button[aria-checked="true"] { background:color-mix(in srgb,var(--accent,#48a8ef) 12%,var(--surface,#1b2b36)); }
.chat-mode-popup button[aria-checked="true"] .chat-mode-check { border-color:var(--accent,#48a8ef); }
.chat-mode-popup button:hover { background:var(--surface-2,#243744); }
.chat-mode-popup button:disabled { opacity:.5;cursor:default; }
.chat-mode-trigger:focus-visible,.chat-mode-popup button:focus-visible { outline:2px solid var(--accent,#48a8ef);outline-offset:-2px; }
@media(prefers-reduced-motion:no-preference) { .chat-mode-trigger,.chat-mode-popup button { transition:background-color 180ms ease,border-color 180ms ease; } }
@media(forced-colors:active) { .chat-mode-trigger,.chat-mode-popup,.chat-mode-check { border-color:ButtonText; }.chat-mode-popup button[aria-checked="true"] { outline:1px solid Highlight; }.chat-mode-popup small,.chat-mode-icon { color:ButtonText; } }
