/* The introduction has its own controls; it never covers the core or opens a dialog. */
.cst-audio {
  position: relative; flex: 0 0 auto;
  width: 100%; max-height: 35vh; overflow-y: auto;
  padding: 14px 16px; border: 1px solid var(--hud); border-radius: 10px;
  background: rgba(5, 17, 20, .97); color: var(--fg, #eef8f7);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .22); font-size: 12px; line-height: 1.5;
  text-align: start;
}
.cst-audio[hidden], .cst-audio [hidden] { display: none !important; }
.cst-audio-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cst-audio-head strong { font-size: 12px; color: var(--acc, #5eead4); }
.cst-audio p { margin: 8px 0; }
#cst-audio-note { font-size: 11px; color: var(--fg2, #bdcecc); }
.cst-audio-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.cst-audio button {
  cursor: pointer; font: inherit; color: inherit; min-height: 32px;
  padding: 5px 9px; border: 1px solid var(--hud); border-radius: 5px;
  background: rgba(94, 234, 212, .05);
}
.cst-audio button:hover { border-color: var(--acc, #5eead4); }
.cst-audio button:focus-visible, .av-output-mute:focus-visible {
  outline: 2px solid var(--acc, #5eead4); outline-offset: 3px;
}
.cst-audio button:disabled { opacity: .45; cursor: default; }
/* The mute is a glyph, so it is square and keeps a real target rather than
   shrinking to the size of the icon. */
.cst-audio .cst-audio-icon {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; min-height: 36px; padding: 0;
}
.cst-audio .cst-audio-icon .av-ctl-icon { opacity: .8; }
.cst-audio .cst-audio-icon:hover .av-ctl-icon { opacity: 1; }
.cst-audio [aria-pressed="true"] { color: #f2c76a; border-color: #a5894a; }
.cst-audio .cst-audio-dismiss { margin-top: 7px; font-size: 11px; background: none; border-color: transparent; padding-inline: 0; }
#cst-audio-close { font-size: 20px; min-width: 32px; padding: 0; }
.av-output-mute {
  position: absolute; top: 22px; inset-inline-start: 22px; z-index: 5;
  color: #dcecea; background: rgba(5, 17, 20, .9); border: 1px solid #52716b;
  border-radius: 6px; padding: 9px 12px; cursor: pointer; font-size: 12px;
}
.av-overlay.is-inplace .av-output-mute { display: none; }
@media (max-width: 1080px) {
  .cst-audio { width: min(560px, 92vw); margin: 14px auto; max-height: none; }
  .cst-audio button { min-height: 44px; }
  #cst-audio-close { min-width: 44px; }
}

/* Division pages have no hub panel to sit in, so the introduction floats above
   the assistant button instead — the same control, a different home. It clears
   the FAB's height so the two never overlap, and stays inside the safe area on
   a notched phone. On iOS the audio cannot start by itself, so this card is the
   only way the introduction is ever heard: it must be visible, not decorative. */
.cst-audio--floating {
  position: fixed;
  z-index: 60;
  inset-inline-end: max(20px, env(safe-area-inset-right));
  bottom: calc(max(22px, env(safe-area-inset-bottom)) + 68px);
  width: min(330px, calc(100vw - 40px));
  max-height: min(60dvh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 18px 60px rgb(0 0 0 / 0.45);
}
@media (max-width: 1080px) {
  .cst-audio--floating {
    inset-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
    width: auto;
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + 62px);
  }
}
