/* xag-assist 0.1.0 widget styles (vendored from xag-shared; do not edit a copy). No inline styles are used, so a strict CSP (style-src 'self') is fine. */
.xag-as-btn { position: fixed; right: 1rem; bottom: 1rem; z-index: 2147483000; min-height: 44px; min-width: 44px; padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid #3b5bdb; background: #3b5bdb; color: #fff; font: 600 0.95rem/1.2 var(--xag-font-stack, Calibri, Carlito, "Segoe UI", Arial, sans-serif); cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
.xag-as-btn:focus-visible, .xag-as-send:focus-visible, .xag-as-in:focus-visible, .xag-as-x:focus-visible { outline: 3px solid #ffd43b; outline-offset: 2px; }
.xag-as-panel { position: fixed; right: 1rem; bottom: 1rem; z-index: 2147483001; width: min(24rem, calc(100vw - 2rem)); max-height: min(34rem, calc(100vh - 2rem)); display: flex; flex-direction: column; border-radius: 14px; border: 1px solid #adb5bd; background: #fff; color: #1b1f24; font: 0.95rem/1.45 var(--xag-font-stack, Calibri, Carlito, "Segoe UI", Arial, sans-serif); box-shadow: 0 10px 34px rgba(0, 0, 0, 0.3); overflow: hidden; }
.xag-as-panel[hidden], .xag-as-btn[hidden] { display: none; }
.xag-as-head { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.8rem; background: #3b5bdb; color: #fff; }
.xag-as-head strong { flex: 1; }
.xag-as-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 4px; padding: 0.05rem 0.35rem; }
.xag-as-x { min-height: 44px; min-width: 44px; margin: -0.4rem -0.5rem -0.4rem 0; border: 0; background: transparent; color: #fff; font-size: 1.4rem; cursor: pointer; }
.xag-as-note { margin: 0; padding: 0.5rem 0.8rem; font-size: 0.8rem; color: #495057; background: #f1f3f5; }
.xag-as-log { flex: 1; overflow-y: auto; padding: 0.7rem 0.8rem; display: flex; flex-direction: column; gap: 0.55rem; min-height: 6rem; }
.xag-as-m { margin: 0; padding: 0.45rem 0.7rem; border-radius: 10px; max-width: 92%; white-space: pre-wrap; overflow-wrap: anywhere; }
.xag-as-u { align-self: flex-end; background: #dbe4ff; }
.xag-as-a { align-self: flex-start; background: #f1f3f5; }
.xag-as-a a, .xag-as-note a { color: #1c3faa; }
.xag-as-form { display: flex; gap: 0.4rem; padding: 0.6rem 0.8rem; border-top: 1px solid #dee2e6; }
.xag-as-in { flex: 1; min-width: 0; min-height: 44px; padding: 0.4rem 0.6rem; border: 1px solid #868e96; border-radius: 8px; font: inherit; background: #fff; color: inherit; }
.xag-as-send { min-height: 44px; padding: 0 0.9rem; border: 0; border-radius: 8px; background: #3b5bdb; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.xag-as-send:disabled { opacity: 0.6; cursor: wait; }
@media (prefers-color-scheme: dark) {
  .xag-as-panel { background: #1b1f24; color: #f1f3f5; border-color: #495057; }
  .xag-as-note { background: #25292f; color: #ced4da; }
  .xag-as-u { background: #364fc7; color: #fff; }
  .xag-as-a { background: #25292f; }
  .xag-as-a a, .xag-as-note a { color: #91a7ff; }
  .xag-as-form { border-color: #343a40; }
  .xag-as-in { background: #25292f; border-color: #6c757d; }
}
@media (max-width: 480px) { .xag-as-panel { right: 0.5rem; left: 0.5rem; bottom: 0.5rem; width: auto; } }
