/* Scoped styles for the opt-in legacy assistant overlay. Prefix "la-" only.
   Never touches host layout; fixed-position launcher + modal dialog. */
.la-root { --la-bg:#0b0b0d; --la-fg:#f4f2ee; --la-muted:#a8a49d; --la-accent:#c8a24a; }
/* [hidden] must win over the layout rules below. Host pages that ship a global
   `[hidden]{display:block}`-style reset (or a bare `div{display:block}` author rule)
   otherwise re-show the closed overlay: .la-dialog is display:flex and .la-backdrop
   is display:block, so hidden="true" rendered a full-viewport blank overlay over the
   page and swallowed clicks before the launcher was ever used. Scoped to the three
   overlay surfaces (.la-backdrop, .la-dialog, .la-fresh) so no host content is
   affected. */
.la-root [hidden] { display: none !important; }
.la-root .la-launcher {
  position: fixed; right: 18px; bottom: 18px; z-index: 2147483000;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; cursor: pointer;
  font: 600 14px/1.2 system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #111; background: #f4f2ee; border: 1px solid rgba(0,0,0,.25);
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
.la-root .la-launcher:hover { background: #fff; }
.la-root .la-launcher:focus-visible { outline: 2px solid var(--la-accent); outline-offset: 3px; }
.la-root .la-backdrop {
  position: fixed; inset: 0; z-index: 2147483001; background: rgba(0,0,0,.55);
}
.la-root .la-dialog {
  position: fixed; z-index: 2147483002; inset: 3vh 3vw;
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column;
  background: var(--la-bg); color: var(--la-fg);
  border: 1px solid rgba(255,255,255,.12); border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6); overflow: hidden;
  font: 400 15px/1.5 system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.la-root .la-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.la-root .la-bar strong { font-size: 15px; }
.la-root .la-disclosure { color: var(--la-muted); font-size: 12px; }
.la-root .la-actions { margin-left: auto; display: flex; gap: 8px; }
.la-root .la-actions button {
  padding: 7px 12px; border-radius: 8px; cursor: pointer; font: 600 13px system-ui, sans-serif;
  background: transparent; color: var(--la-fg); border: 1px solid rgba(255,255,255,.22);
}
.la-root .la-actions button:hover { border-color: var(--la-accent); color: var(--la-accent); }
.la-root .la-actions button:focus-visible { outline: 2px solid var(--la-accent); outline-offset: 2px; }
.la-root .la-stage { flex: 1 1 auto; min-height: 0; overflow: auto; }
@media (max-width: 640px) {
  .la-root .la-dialog { inset: 0; border-radius: 0; }
  .la-root .la-launcher { right: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { .la-root * { transition: none !important; } }
