.aa-launcher,.aa-panel{font:14px/1.5 system-ui,sans-serif;position:fixed;z-index:1200;right:18px;bottom:18px;color:#182535;box-sizing:border-box}.aa-launcher{border:0;border-radius:28px;padding:13px 19px;background:#203c62;color:white;font-weight:700;box-shadow:0 4px 18px #0003;cursor:pointer}.aa-panel{width:min(390px,calc(100vw - 24px));bottom:76px;background:#fff;border:1px solid #c9d3e0;border-radius:16px;box-shadow:0 10px 38px #0003;max-height:calc(100dvh - 96px);display:flex;flex-direction:column;overflow:hidden}.aa-panel[hidden],.aa-panel [hidden]{display:none!important}.aa-head{display:flex;align-items:center;gap:8px;background:#203c62;color:#fff;padding:12px}.aa-head strong{margin-right:auto}.aa-btn,.aa-chip{border:1px solid #c9d3e0;background:#fff;color:#203c62;border-radius:8px;padding:6px 9px;cursor:pointer;font:inherit}.aa-btn:disabled{opacity:.5;cursor:wait}.aa-log{min-height:90px;max-height:260px;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:10px}.aa-message{white-space:pre-wrap;overflow-wrap:anywhere;border-radius:10px;padding:10px;background:#eef3f8;max-width:94%;align-self:flex-start}.aa-message.user{background:#203c62;color:white;align-self:flex-end}.aa-ai-note{display:block;color:#556575;margin-top:8px;font-size:11px}.aa-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}.aa-actions .aa-btn{font-size:11px}.aa-suggestions{display:flex;gap:5px;flex-wrap:wrap;padding:0 12px 8px}.aa-chip{font-size:12px}.aa-form{padding:8px 12px;display:flex;gap:6px}.aa-form input{min-width:0;flex:1;padding:9px;border:1px solid #c9d3e0;border-radius:8px;color:#182535;background:#fff}.aa-consent,.aa-status{padding:0 12px 6px;font-size:11px;color:#556575}.aa-admin{padding:12px;overflow:auto;max-height:360px;border-top:1px solid #c9d3e0}.aa-label{display:block;margin:8px 0;font-size:12px}.aa-label input:not([type=checkbox]),.aa-label textarea,.aa-admin select{display:block;width:100%;box-sizing:border-box;color:#182535;background:#fff;border:1px solid #c9d3e0;border-radius:6px;padding:6px}.aa-label textarea{min-height:75px}.aa-panel :focus-visible,.aa-launcher:focus-visible{outline:2px solid #2979ff;outline-offset:2px}@media(max-width:600px){.aa-launcher{right:12px;bottom:max(12px,env(safe-area-inset-bottom))}.aa-panel{right:8px;bottom:max(65px,calc(env(safe-area-inset-bottom) + 54px));width:calc(100vw - 16px);max-height:calc(100dvh - 80px)}.aa-log{max-height:33dvh}.aa-admin{max-height:35dvh}}

/* V1.2: resilient sizing and independent feedback/copy controls */
.aa-panel *{box-sizing:border-box}.aa-head,.aa-form,.aa-consent,.aa-status,.aa-suggestions{flex-shrink:0}.aa-log{flex:1 1 auto;min-height:0;max-height:min(48dvh,360px);overscroll-behavior:contain;scrollbar-gutter:stable}.aa-message{flex-shrink:0}.aa-actions{align-items:center}.aa-actions .aa-btn{min-height:30px;line-height:1.25}.aa-btn.aa-voted{color:#14532d;background:#e6f4eb;border-color:#80bd98;opacity:1}.aa-actions .aa-btn:disabled{cursor:default}.aa-feedback-note{display:block;width:100%;color:#556575;font-size:11px}.aa-nav{display:block;margin-top:9px}.aa-admin{flex:1 1 auto;min-height:0;max-height:min(65dvh,560px);overscroll-behavior:contain}.aa-admin h3{margin:0 0 8px}.aa-panel .aa-status:empty{display:none}.aa-consent{display:flex;align-items:flex-start;gap:5px}.aa-consent input{flex-shrink:0;margin-top:3px}.aa-suggestions{max-height:105px;overflow-y:auto}.aa-form input{font-size:16px}.aa-chip{min-height:30px}@media(max-width:600px){.aa-log{max-height:38dvh}.aa-admin{max-height:65dvh}.aa-panel{bottom:max(65px,calc(env(safe-area-inset-bottom) + 54px));max-height:calc(100dvh - 85px)}.aa-suggestions{max-height:76px}}@media(max-height:480px){.aa-panel{bottom:8px;max-height:calc(100dvh - 16px)}.aa-suggestions{max-height:50px}.aa-log{max-height:38dvh}.aa-launcher{bottom:8px}}

/* V1.3: reserve client feedback corner; one chat scrollbar only. */
.aa-panel{height:min(620px,calc(100dvh - 96px));max-height:calc(100dvh - 96px)}
.aa-log{flex:1 1 0;min-height:0;max-height:none;overflow-y:auto}
.aa-suggestions{max-height:none;overflow:hidden;flex-wrap:wrap;gap:4px;padding-bottom:5px}
.aa-chip{min-height:26px;padding:4px 7px;line-height:1.25}
.aa-heading{flex:1;min-width:0}.aa-heading strong{display:block}.aa-health{display:block;font-size:10px;font-weight:400;color:#e0ecff;line-height:1.3}.aa-health[data-state=ready]{color:#b5f4cb}
.aa-message{line-height:1.55}.aa-candidates{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0}.aa-candidates p{width:100%;margin:0;font-size:12px}
body:has(#dashboard-shell:not([hidden]).dash-client-layout #v320-private-ticket:not([hidden])) .aa-launcher,
body:has(#dashboard-shell:not([hidden]).dash-client-layout #v320-private-ticket:not([hidden])) .aa-panel{right:auto;left:18px}
/* Native ATP dialogs and known full-screen overlays take precedence over assistance. */
body:has(dialog[open]) .aa-launcher,body:has(dialog[open]) .aa-panel,
body:has(.atp55-wheel-popup-overlay:not([hidden]):not(.hidden)) .aa-launcher,body:has(.atp55-wheel-popup-overlay:not([hidden]):not(.hidden)) .aa-panel,
body:has(.atp56-preview-overlay:not([hidden]):not(.hidden)) .aa-launcher,body:has(.atp56-preview-overlay:not([hidden]):not(.hidden)) .aa-panel{display:none!important}
@media(max-width:600px){.aa-panel{height:min(620px,calc(100dvh - 85px));max-height:calc(100dvh - 85px)}.aa-log{max-height:none}.aa-suggestions{max-height:none}.aa-chip{font-size:11px}.aa-launcher{max-width:calc(100vw - 105px)}
body:has(#dashboard-shell:not([hidden]).dash-client-layout #v320-private-ticket:not([hidden])) .aa-launcher{left:12px}
body:has(#dashboard-shell:not([hidden]).dash-client-layout #v320-private-ticket:not([hidden])) .aa-panel{left:8px;bottom:calc(94px + env(safe-area-inset-bottom,0px));max-height:calc(100dvh - 108px - env(safe-area-inset-bottom,0px));height:min(620px,calc(100dvh - 108px - env(safe-area-inset-bottom,0px)))}
body:has(#dashboard-shell:not([hidden]).dash-nav-open) .aa-launcher,body:has(#dashboard-shell:not([hidden]).dash-nav-open) .aa-panel{display:none!important}}
@media(max-height:480px){.aa-panel{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);bottom:8px}.aa-log{max-height:none}.aa-suggestions{max-height:52px;overflow:hidden}.aa-head{padding:7px 10px}.aa-consent{padding-bottom:2px}.aa-form{padding:4px 10px}}
@media(max-width:600px) and (max-height:480px){body:has(#dashboard-shell:not([hidden]).dash-client-layout #v320-private-ticket:not([hidden])) .aa-panel{bottom:calc(88px + env(safe-area-inset-bottom,0px));height:calc(100dvh - 100px - env(safe-area-inset-bottom,0px));max-height:calc(100dvh - 100px - env(safe-area-inset-bottom,0px))}}
