#atom-agent-panel, #atom-agent-launcher { box-sizing: border-box; font-family: Inter, Arial, sans-serif; }
#atom-agent-panel[hidden], #atom-agent-launcher[hidden], #atom-agent-panel [hidden] { display: none !important; }
#atom-agent-panel { position: fixed; inset: 0 0 0 auto; height: 100vh; height: 100dvh; z-index: 1002; display: flex; flex-direction: column; min-width: 0; background: #fff; border-left: 1px solid #dce3ea; box-shadow: -2px 0 12px #001d2b0c; }
#atom-agent-launcher { position: fixed; right: 0; top: 45%; z-index: 1002; width: 38px; height: 64px; padding: 0; border: 1px solid #dce3ea; border-right: 0; border-radius: 10px 0 0 10px; background: white; color: #006cb7; box-shadow: -2px 0 8px #001d2b20; font-size: 23px; cursor: pointer; }
#atom-agent-panel button, #atom-agent-panel a { cursor: pointer; }
#atom-agent-panel button:focus-visible, #atom-agent-panel a:focus-visible, .atom-agent-resize:focus-visible, #atom-agent-launcher:focus-visible { outline: 2px solid #006cb7; outline-offset: -2px; }
.atom-agent-fallback-bar { display: flex; align-items: center; gap: 8px; height: 52px; flex-shrink: 0; padding: 0 12px 0 18px; border-bottom: 1px solid #e6ebef; color: #001d2b; }
.atom-agent-fallback-bar span { flex: 1; }
.atom-agent-fallback-bar button { width: 32px; height: 32px; border: 0; border-radius: 6px; background: transparent; color: #53677d; font-size: 23px; }
.atom-agent-fallback-bar button:hover, #atom-agent-launcher:hover { background: #eef6fb; }
.atom-agent-frame { display: block; width: 100%; min-height: 0; flex: 1 1 0; border: 0; background: white; }
.atom-agent-status { margin: auto; padding: 28px; color: #405469; line-height: 1.6; max-width: 440px; }
.atom-agent-status p { margin: 0 0 18px; }
.atom-agent-status button { padding: 9px 15px; border-radius: 7px; border: 1px solid #006cb7; background: #006cb7; color: white; }
.atom-agent-status a { display: block; margin-top: 14px; color: #006cb7; text-decoration: underline; }
.atom-agent-resize { position: absolute; top: 0; bottom: 0; left: -4px; width: 8px; z-index: 2; cursor: ew-resize; touch-action: none; }
.atom-agent-resize:hover, .atom-agent-resize:focus-visible { background: #006cb733; }
.atom-agent-resizing .atom-agent-frame { pointer-events: none; }
body.atom-agent-docked > app-root { width: calc(100% - var(--atom-agent-width)); max-width: calc(100% - var(--atom-agent-width)); min-width: 0; }
/* Keep estimate/part dialogs usable next to chat. Connected menus still use their
   trigger positions; only dialog panes get a maximum content-area width. */
body.atom-agent-docked .cdk-overlay-container { width: auto; right: var(--atom-agent-width); }
body.atom-agent-docked .cdk-overlay-pane:has(> mat-dialog-container) { max-width: calc(100vw - var(--atom-agent-width) - 24px) !important; min-width: 0 !important; }
@media print { #atom-agent-panel, #atom-agent-launcher { display: none !important; } body.atom-agent-docked > app-root { width: 100%; max-width: 100%; } }
