.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.ah-assist-fab {
  position: fixed;
  z-index: 80;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #03162d;
  background: #e4a500;
  box-shadow: 0 12px 28px rgba(228, 165, 0, 0.35);
  cursor: pointer;
}
.ah-assist-fab:hover { background: #ffc21a; }
.ah-assist-fab:focus-visible { outline: 2px solid #062347; outline-offset: 3px; }

.ah-assist-sheet {
  position: fixed;
  z-index: 90;
  right: 1rem;
  bottom: 1rem;
  width: min(400px, calc(100vw - 1.5rem));
  max-height: min(72vh, 640px);
  display: flex;
  flex-direction: column;
  background: #eef4fb;
  color: #07162b;
  border: 1px solid rgba(6, 35, 71, 0.12);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(3, 22, 45, 0.22);
  overflow: hidden;
}
.ah-assist-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(6, 35, 71, 0.08);
  background: #fff;
}
.ah-assist-kicker {
  margin: 0;
  color: #0069aa;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 650;
}
.ah-assist-sheet-head h2 {
  margin: 4px 0 0;
  font-size: 1.15rem;
  color: #03162d;
}
.ah-assist-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ah-assist-bubble {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.45;
}
.ah-assist-bubble-assistant {
  align-self: flex-start;
  background: #fff;
  border: 1px solid rgba(6, 35, 71, 0.1);
}
.ah-assist-bubble-user {
  align-self: flex-end;
  background: #062347;
  color: #fff;
}
.ah-assist-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 10px;
}
.ah-assist-chip,
.ah-assist-btn,
.ah-assist-icon-btn,
.ah-assist-header-btn {
  cursor: pointer;
  border: 0;
  font-family: inherit;
}
.ah-assist-chip {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  color: #062347;
  border: 1px solid rgba(6, 35, 71, 0.14);
  font-size: 13px;
  font-weight: 600;
}
.ah-assist-composer {
  display: flex;
  gap: 8px;
  padding: 12px 16px 16px;
  background: #fff;
  border-top: 1px solid rgba(6, 35, 71, 0.08);
}
.ah-assist-composer input {
  flex: 1;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(6, 35, 71, 0.16);
  font-size: 16px;
  background: #eef4fb;
  color: #07162b;
}
.ah-assist-btn {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: #e4a500;
  color: #03162d;
  font-weight: 700;
}
.ah-assist-icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: transparent;
  color: #062347;
}
.ah-assist-compact {
  position: fixed;
  z-index: 92;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(6, 35, 71, 0.12);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(3, 22, 45, 0.18);
}
.ah-assist-compact-kicker { margin: 0; color: #0069aa; font-size: 11px; font-weight: 650; }
.ah-assist-compact-title { margin: 4px 0 0; font-weight: 700; color: #03162d; }
.ah-assist-compact-body { margin: 4px 0 0; color: #475569; font-size: 14px; }
.ah-assist-compact-actions { display: flex; align-items: center; gap: 6px; }
.ah-assist-overlay { position: fixed; inset: 0; z-index: 85; pointer-events: none; }
.ah-assist-spotlight {
  position: fixed;
  border: 2px solid #e4a500;
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(3, 22, 45, 0.45);
  pointer-events: none;
}
.ah-assist-overlay-next {
  pointer-events: auto;
  position: fixed;
  right: 1rem;
  bottom: 6.5rem;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: #e4a500;
  color: #03162d;
  font-weight: 700;
  cursor: pointer;
}
.ah-assist-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(228, 165, 0, 0.15);
  color: #e4a500;
}

@media (max-width: 767px) {
  .ah-assist-fab {
    right: max(0.85rem, env(safe-area-inset-right));
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
  }
  .ah-assist-sheet {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-height: min(78dvh, 78vh);
    border-radius: 20px 20px 0 0;
  }
  .ah-assist-chip { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .ah-assist-fab { box-shadow: none; }
}
