#atlas-assistant-shell,.aa-running-pill{--aa-bg:rgba(250,250,250,.9);--aa-fg:#17191c;--aa-muted:#72777d;--aa-line:rgba(20,24,30,.1);--aa-subtle:rgba(20,24,30,.045);--aa-solid:#181b1f;--aa-on-solid:#fff;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:13px;line-height:1.55;color:var(--aa-fg);box-sizing:border-box;color-scheme:light}
[data-theme=dark] #atlas-assistant-shell,[data-theme=dark] .aa-running-pill{--aa-bg:rgba(29,31,35,.91);--aa-fg:#f1f2f3;--aa-muted:#a3a7ad;--aa-line:rgba(255,255,255,.12);--aa-subtle:rgba(255,255,255,.05);--aa-solid:#f0f1f3;--aa-on-solid:#17191d;color-scheme:dark}
#atlas-assistant-shell *,.aa-running-pill *{box-sizing:border-box}#atlas-assistant-shell[hidden],#atlas-assistant-shell [hidden],.aa-running-pill[hidden]{display:none!important}
#atlas-assistant-shell{position:fixed;z-index:2147483001;display:flex;flex-direction:column;gap:9px;width:440px;max-width:calc(100vw - 24px);pointer-events:auto;isolation:isolate}
#atlas-assistant-shell button,#atlas-assistant-shell textarea,#atlas-assistant-shell input,.aa-running-pill button{font:inherit;color:inherit}#atlas-assistant-shell button,.aa-running-pill button{cursor:pointer;border:0;background:none;-webkit-tap-highlight-color:transparent}#atlas-assistant-shell button:disabled{opacity:.4;cursor:default}#atlas-assistant-shell button:focus-visible,#atlas-assistant-shell textarea:focus-visible,.aa-running-pill button:focus-visible{outline:2px solid var(--aa-fg);outline-offset:3px}#atlas-assistant-shell a{color:inherit;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}#atlas-assistant-shell svg,.aa-running-pill svg{display:block;width:17px;height:17px;flex-shrink:0}
.aa-composer,.aa-card,.aa-menu,.aa-notice,.aa-running-pill{background:var(--aa-bg);border:1px solid var(--aa-line);box-shadow:0 12px 38px rgba(0,0,0,.1),0 2px 8px rgba(0,0,0,.035);backdrop-filter:blur(26px) saturate(110%);-webkit-backdrop-filter:blur(26px) saturate(110%)}
.aa-composer{padding:12px 12px 8px;border-radius:22px;flex:none}.aa-input-line{display:flex;align-items:flex-end;gap:8px}.aa-input{display:block;resize:none;min-height:29px;width:100%;max-height:104px;overflow-y:auto;background:transparent;border:0;border-radius:3px;outline:none!important;padding:3px 3px 5px;color:var(--aa-fg);font-size:14px;line-height:1.6;box-shadow:none!important}.aa-input::placeholder{color:var(--aa-muted);opacity:.9}.aa-send{width:31px!important;height:31px!important;background:var(--aa-solid)!important;color:var(--aa-on-solid)!important;border-radius:50%!important;flex:none;margin-bottom:2px}.aa-send svg{width:17px;height:17px}.aa-send.is-stop svg{width:15px;height:15px;fill:currentColor;stroke-width:0}
.aa-controls{display:flex;align-items:center;gap:2px;padding-top:6px}.aa-controls-left{display:flex;align-items:center;gap:2px;flex:1;min-width:0}.aa-icon{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:9px;color:var(--aa-muted)!important;flex:none;transition:background .15s,color .15s}.aa-icon:hover{background:var(--aa-subtle);color:var(--aa-fg)!important}.aa-mode{display:inline-flex;align-items:center;gap:4px;font-size:11px!important;font-weight:550;padding:4px 5px!important;white-space:nowrap}.aa-mode svg{width:12px;height:12px;color:var(--aa-muted)}.aa-context{color:var(--aa-muted)!important;font-size:10px!important;border:1px solid var(--aa-line)!important;border-radius:99px;padding:1px 6px!important;margin-left:3px;white-space:nowrap}.aa-context.is-off{opacity:.5;text-decoration:line-through}
.aa-card{border-radius:20px;overflow:hidden;max-height:360px;min-height:88px;display:flex;flex-direction:column}.aa-head{display:flex;align-items:center;gap:8px;min-height:42px;padding:9px 11px 6px 16px;flex:none}.aa-brand{font-size:10px;letter-spacing:.16em;font-weight:650}.aa-status{font-size:10px;color:var(--aa-muted);flex:1}.aa-head>.aa-icon{width:24px;height:24px}.aa-head svg{width:14px;height:14px}.aa-body{padding:5px 17px 17px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;flex:1;min-height:0}.aa-prose{white-space:pre-wrap;font-size:13px;line-height:1.75;overflow-wrap:anywhere}.aa-empty{color:var(--aa-muted);font-size:12px;margin:4px 0}.aa-tool{display:flex;align-items:center;gap:9px;flex:none;margin:0 12px 12px;padding:9px 11px;border:1px solid var(--aa-line);border-radius:11px;font-size:11px;color:var(--aa-muted);background:var(--aa-subtle)}.aa-tool-indicator{display:block;width:6px;height:6px;background:var(--aa-fg);border-radius:50%;animation:aa-pulse 1.4s ease-in-out infinite}.aa-card-actions{padding:0 14px 12px;flex:none}.aa-text-button{font-size:11px!important;padding:4px 6px!important;text-align:left;border-radius:6px}.aa-text-button:hover{background:var(--aa-subtle)}
.aa-notice{border-radius:12px;padding:8px 12px;font-size:11px;color:var(--aa-muted);display:flex;gap:7px;align-items:center;justify-content:space-between;flex:none}.aa-notice .aa-login{font-size:11px;white-space:nowrap}.aa-menu{align-self:flex-end;width:156px;padding:5px;border-radius:13px;display:flex;flex-direction:column;flex:none}.aa-menu button{display:block;text-align:left;font-size:12px!important;padding:8px 10px!important;border-radius:8px}.aa-menu button:hover{background:var(--aa-subtle)}
.aa-images{display:flex;gap:8px;overflow-x:auto;margin:0 0 9px;padding:2px}.aa-image{position:relative;width:57px;height:57px;flex:none;border-radius:10px;border:1px solid var(--aa-line)}.aa-image img{display:block;width:100%;height:100%;object-fit:cover;border-radius:9px}.aa-image .aa-icon{position:absolute;width:18px;height:18px;right:-4px;top:-4px;background:var(--aa-solid)!important;color:var(--aa-on-solid)!important;border-radius:50%}.aa-image .aa-icon svg{width:11px;height:11px}
.aa-record-label{font-size:11px;letter-spacing:.08em;color:var(--aa-fg)}.aa-icon.is-recording{background:var(--aa-solid);color:var(--aa-on-solid)!important;animation:aa-pulse 1.4s ease-in-out infinite}.aa-running-pill{position:fixed;z-index:2147483001;display:flex;align-items:center;gap:3px;max-width:220px;padding:4px 5px 4px 11px;border-radius:99px}.aa-pill-open{font-size:11px!important;padding:3px 5px 3px 0!important}.aa-running-pill .aa-icon{width:24px;height:24px;border-radius:50%}.aa-running-pill .aa-icon svg{width:12px;height:12px;fill:currentColor;stroke:0}
.aa-history-turn{padding:10px 0;border-bottom:1px solid var(--aa-line)}.aa-history-turn:last-child{border-bottom:0}.aa-turn-label{display:block;font-size:9px;letter-spacing:.1em;color:var(--aa-muted);margin-bottom:4px}.aa-history-turn.is-user .aa-prose{font-size:12px;color:var(--aa-muted)}.aa-preference{padding:10px 0;border-bottom:1px solid var(--aa-line)}.aa-preference p{margin:0}.aa-preference-actions{display:flex;gap:4px;margin-top:4px;color:var(--aa-muted)}.aa-preference-input{width:100%;resize:vertical;border:1px solid var(--aa-line);padding:9px;background:var(--aa-subtle);border-radius:8px;margin:5px 0;font-size:13px}.aa-paused *{animation-play-state:paused!important}
.aa-server-history{padding-bottom:9px;margin-bottom:8px;border-bottom:1px solid var(--aa-line)}.aa-history-entry{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;padding:7px 0!important;text-align:left;font-size:12px!important}.aa-history-status{flex:none;color:var(--aa-muted);font-size:10px}.aa-history-entry:hover{opacity:.65}
@keyframes aa-pulse{0%,100%{opacity:1}50%{opacity:.35}}
@media(max-width:520px){.aa-input{font-size:16px}.aa-composer{padding:11px 10px 7px;border-radius:19px}.aa-card{max-height:min(360px,48dvh);border-radius:18px}.aa-context{font-size:9px!important}.aa-icon{width:30px;height:30px}.aa-controls{padding-top:4px}.aa-body{padding:4px 14px 14px}.aa-head{padding-left:14px}.aa-mode{font-size:11px!important}}
@media(prefers-reduced-motion:reduce){#atlas-assistant-shell *,.aa-running-pill *{animation:none!important;transition:none!important}}

/* Keep embedded site-wide heading, paragraph and form styles outside the assistant. */
#atlas-assistant-shell .aa-head{background:transparent!important;border:0!important;box-shadow:none!important;position:static!important;color:var(--aa-fg)!important}
#atlas-assistant-shell .aa-empty{padding:0!important;margin:4px 0!important;text-align:left!important;line-height:1.55!important;color:var(--aa-muted)!important;min-height:0!important;background:transparent!important;border:0!important}
#atlas-assistant-shell textarea.aa-input{background:transparent!important;color:var(--aa-fg)!important;border:0!important;outline:none!important;box-shadow:none!important;font-size:14px!important;line-height:1.6!important;margin:0!important}
#atlas-assistant-shell .aa-composer:focus-within{border-color:rgba(90,96,104,.32)}
#atlas-assistant-shell .aa-preference p{padding:0!important;margin:0!important;text-align:left!important;color:var(--aa-fg)!important}
#atlas-assistant-shell button.aa-send,#atlas-assistant-shell button.aa-send svg{color:var(--aa-on-solid)!important}
@media(max-width:520px){#atlas-assistant-shell textarea.aa-input{font-size:16px!important}}

/* Standalone registered feature pages keep an assistant entry after navigation. */
.atlas-assistant-page-launcher{position:fixed;right:22px;bottom:24px;z-index:950;width:44px;height:44px;border:1px solid #64748b;border-radius:50%;background:#111827;color:#fff;font:600 14px/1 system-ui,sans-serif;box-shadow:0 4px 18px #0f172a30;cursor:pointer}
.atlas-assistant-page-launcher:focus-visible{outline:3px solid #60a5fa;outline-offset:3px}

.aa-native-data{max-width:100%;min-width:0}.aa-data-table{overflow:auto;max-height:26rem}.aa-data-table table{border-collapse:collapse;font-size:.8rem;min-width:100%}.aa-data-table th,.aa-data-table td{padding:.4rem .6rem;text-align:left;vertical-align:top;border-bottom:1px solid var(--aa-line,#ddd);max-width:30rem;overflow-wrap:anywhere}.aa-native-data dl{font-size:.8rem}.aa-native-data dd{margin:.2rem 0 .7rem;overflow-wrap:anywhere}

/* CHAT-01: keep the assistant launcher in the header, clear of the composer. */
.bench-header > .atlas-assistant-page-launcher{position:static!important;inset:auto!important;flex:0 0 36px;width:36px;height:36px;min-width:36px;margin:0;border-radius:10px;z-index:auto;box-shadow:none;font-size:12px;font-weight:600;line-height:1;transform:none!important}
.bench-header:has(> .atlas-assistant-page-launcher) .task-heading{min-width:0}
@media(max-width:480px){.bench-header:has(> .atlas-assistant-page-launcher) #state-label{display:none}}

/* CHAT-02: one interactive composer at a time on compact native Chat. */
.chat-assistant-backdrop{position:fixed;inset:0;z-index:2147483000;background:rgba(12,16,22,.38);backdrop-filter:blur(2px)}
.chat-assistant-backdrop[hidden]{display:none!important}
body.chat-assistant-modal-open{overflow:hidden}
#atlas-assistant-shell.chat-assistant-modal{inset:auto 12px max(12px,env(safe-area-inset-bottom)) 12px!important;width:auto!important;max-width:none!important;max-height:calc(100dvh - 24px - env(safe-area-inset-bottom))!important;overflow-y:auto;overscroll-behavior:contain;border-radius:22px}
#atlas-assistant-shell.chat-assistant-modal:before,#atlas-assistant-shell.chat-assistant-modal:after{display:none!important}

/* RERUN-202: wrap the assistant tool group inside its allocated width. */
#atlas-assistant-shell .aa-controls{align-items:flex-end}
#atlas-assistant-shell .aa-controls-left{flex-wrap:wrap;row-gap:4px}
#atlas-assistant-shell .aa-controls-left>button{flex-shrink:0}

/* RERUN-203: readable assistant labels and usable toolbar targets. */
#atlas-assistant-shell .aa-input-line>.aa-send,#atlas-assistant-shell .aa-controls button{min-width:44px;min-height:44px}
#atlas-assistant-shell .aa-mode,#atlas-assistant-shell .aa-context{font-size:13px!important;line-height:1.4}
@media(max-width:359px){#atlas-assistant-shell .aa-controls{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:4px;align-items:center}#atlas-assistant-shell .aa-controls-left{display:contents}#atlas-assistant-shell .aa-mode,#atlas-assistant-shell .aa-context{justify-content:center;margin-left:0;max-width:100%;white-space:normal}}

/* RERUN-204: keep wrapped empty prompts visible on narrow screens. */
@media(max-width:359px){#atlas-assistant-shell textarea.aa-input{min-height:calc(3.2em + 8px)}}

/* RERUN-207: readable assistant menus with full-size touch targets. */
#atlas-assistant-shell .aa-menu{width:192px;max-width:100%}
#atlas-assistant-shell .aa-menu button{min-height:44px;font-size:13px!important;line-height:1.5;white-space:normal;overflow-wrap:anywhere}

/* RERUN-209: readable assistant history rows and usable card controls. */
#atlas-assistant-shell .aa-history-entry{min-height:44px;font-size:13px!important;line-height:1.5;gap:8px;overflow-wrap:anywhere}
#atlas-assistant-shell .aa-history-status{font-size:12px;max-width:40%;white-space:normal}
#atlas-assistant-shell .aa-server-history>.aa-empty{font-size:13px}
#atlas-assistant-shell .aa-card .aa-icon{min-width:44px;min-height:44px}

/* RERUN-210: short-screen menus overlay the card, preserving the composer. */
@media(max-height:600px){#atlas-assistant-shell.chat-assistant-modal:has(.aa-menu:not([hidden])){overflow:visible}#atlas-assistant-shell.chat-assistant-modal .aa-menu{position:absolute;right:0;bottom:calc(var(--aa-composer-height,118px) + 10px);max-height:calc(100dvh - var(--aa-composer-height,118px) - 34px - env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;z-index:2}}

/* RERUN-215: readable assistant status feedback. */
#atlas-assistant-shell .aa-notice{font-size:13px;line-height:1.6;overflow-wrap:anywhere}
