/* Ask Store — the educated bot's door + face (2026-11-28; built to the
 * FACE STANDARD set by Ask Music's face rebuild — see
 * ~/workspace/music-ask-bot/FACE-NOTE.md: family figure avatar, mic,
 * pinned composer, in-area scroll).
 * Distinct from Ezra's Support pill (filled cyan, bottom-right):
 * Ask Store is a dark pill with a hairline in this area's accent and
 * its own little family figure, bottom-left. Nothing here touches
 * Ezra's pill.
 *
 * COSMETICS LAW, built in: the panel is a fixed-height box that fits
 * the viewport; the conversation scrolls INSIDE it (the log carries
 * min-height:0 so flex can actually shrink it); the composer is
 * pinned at the panel's foot. Nothing spills, nothing overlaps. */

.ask-pill, .ask-pill *, .ask-panel, .ask-panel * { box-sizing: border-box; }

.ask-pill { position: fixed; left: 18px; bottom: 18px; z-index: 99950;
  display: inline-flex; align-items: center; gap: 9px;
  background: #0A1A26; color: #00B8D9; border: 1px solid #00B8D9;
  border-radius: 999px; padding: 10px 20px 10px 13px; font-weight: 800;
  font-size: .95rem; cursor: pointer; min-height: 48px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45); letter-spacing: .02em; }
.ask-pill:hover, .ask-pill:focus-visible { background: #0D2B3A; outline: none; }
.ask-pill-ava { display: inline-flex; width: 26px; height: 26px; flex: 0 0 auto; }
.ask-pill-ava svg { width: 100%; height: 100%; display: block; }

.ask-panel { position: fixed; left: 18px; bottom: 76px; z-index: 99951;
  width: min(400px, calc(100vw - 24px));
  height: min(620px, calc(100vh - 96px));
  height: min(620px, calc(100dvh - 96px));
  display: flex; flex-direction: column; overflow: hidden;
  background: #0A1A26; border: 1px solid rgba(0,184,217,.4);
  border-radius: 16px; padding: 16px; color: #E8EEF4;
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
  font-family: inherit; font-size: .95rem; line-height: 1.45; }
.ask-panel[hidden] { display: none; }

.ask-head { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; margin-bottom: 6px; }
.ask-head-ava { display: inline-flex; width: 42px; height: 42px; flex: 0 0 auto;
  animation: askBob 3.6s ease-in-out infinite; }
.ask-head-ava svg { width: 100%; height: 100%; display: block; }
@keyframes askBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.ask-title { color: #00B8D9; font-size: 1.05rem; flex: 1 1 auto; }
.ask-close { background: transparent; border: 1px solid rgba(0,184,217,.4);
  color: #E8EEF4; border-radius: 8px; min-width: 48px; min-height: 48px;
  font-size: 1rem; cursor: pointer; flex: 0 0 auto; }
.ask-note { color: #9FB3C8; font-size: .82rem; margin: 0 0 10px; flex: 0 0 auto; }

.ask-log { overflow-y: auto; flex: 1 1 auto; min-height: 0;
  padding-right: 2px; overscroll-behavior: contain; }
.ask-msg { background: rgba(255,255,255,.05); border: 1px solid rgba(28,43,58,.9);
  border-radius: 10px; padding: 9px 11px; margin: 0 0 8px; }
.ask-msg.bot { display: flex; gap: 9px; }
.ask-ava { display: inline-flex; width: 30px; height: 30px; flex: 0 0 auto; margin-top: 1px; }
.ask-ava svg { width: 100%; height: 100%; display: block; }
.ask-body { flex: 1 1 auto; min-width: 0; }
.ask-msg.me { background: rgba(126,188,226,.10); }
.ask-who { display: block; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 3px; opacity: .75; }
.ask-msg p { margin: 0 0 6px; }

.ask-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px;
  flex: 0 1 auto; min-height: 0; max-height: 118px; overflow-y: auto; overscroll-behavior: contain; }
.ask-chip { background: #0D1420; color: #7EBCE2; border: 1px solid #233C51;
  border-radius: 999px; padding: 10px 13px; min-height: 48px;
  font-size: .83rem; cursor: pointer; text-align: left; }
.ask-chip:hover, .ask-chip:focus-visible { border-color: #00B8D9; color: #00B8D9; outline: none; }

.ask-form { display: flex; gap: 8px; flex: 0 0 auto; align-items: stretch; }
.ask-input { flex: 1 1 auto; min-width: 0; background: #0D141C;
  border: 1px solid #233C51; border-radius: 9px; color: #E8EEF4;
  padding: 12px; min-height: 48px; font-size: .95rem; }
.ask-input:focus { border-color: #00B8D9; outline: none; }
.ask-mic { flex: 0 0 auto; width: 48px; min-height: 48px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: #0D141C; color: #7EBCE2; border: 1px solid #233C51;
  border-radius: 9px; cursor: pointer; }
.ask-mic:hover, .ask-mic:focus-visible { border-color: #00B8D9; color: #00B8D9; outline: none; }
.ask-mic[hidden] { display: none; }
.ask-mic.on { background: #3A0D16; border-color: #FF2E40; color: #FF5A6A;
  animation: askPulse 1.2s ease-in-out infinite; }
@keyframes askPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,46,64,.45); } 50% { box-shadow: 0 0 0 7px rgba(255,46,64,0); } }
.ask-send { background: #00B8D9; color: #04222A; border: 0; border-radius: 9px;
  padding: 12px 18px; min-width: 64px; min-height: 48px; font-weight: 800; cursor: pointer; flex: 0 0 auto; }

@media (prefers-reduced-motion: reduce) {
  .ask-head-ava, .ask-mic.on { animation: none; }
}

@media (max-width: 560px) {
  .ask-pill { left: 12px; bottom: 12px; }
  .ask-panel { left: 12px; right: 12px; width: auto; bottom: 70px;
    height: min(620px, calc(100vh - 90px));
    height: min(620px, calc(100dvh - 90px)); }
}

/* Short viewports (landscape phones, small windows): the note and the
   chip shelf give their room to the conversation. */
@media (max-height: 520px) {
  .ask-note { display: none; }
  .ask-chips { max-height: 56px; }
}
