/* Ask BOS top-bar button + side panel (shell). docs/2026-10-06_ask-bos-ai-assistant.md */
.abp { position: relative; display: inline-flex; align-items: center; }

.abp-button {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px 0 11px; border: 0; border-radius: 17px;
  background: var(--bos-blue-dark); color: #fff;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.abp-button:hover { background: var(--sidebar); }
.abp-button:focus-visible { outline: 2px solid var(--bos-blue); outline-offset: 2px; }
.abp-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.abp-button[aria-expanded="true"] { background: var(--sidebar); }

.abp-panel {
  position: fixed; top: var(--topbar-height); right: 0; bottom: 0; z-index: 1200;
  width: min(500px, 100vw);
  background: var(--surface); border-left: 1px solid var(--border);
  box-shadow: -10px 0 30px rgba(26, 54, 75, .14);
  display: flex;
}
.abp-panel[hidden] { display: none; }
.abp-frame { flex: 1 1 auto; width: 100%; height: 100%; border: 0; background: var(--surface); }

@media (max-width: 720px) {
  .abp-button span { display: none; }
  .abp-button { padding: 0 9px; }
}

/* While the panel is open, the due-reminders cards move to its left so they never cover the question box. */
body.abp-open .bra-stack { right: calc(min(500px, 100vw) + 16px); }
@media (max-width: 1000px) { body.abp-open .bra-stack { display: none; } }
