/* Ask Stream — the educated bot's door + face (2026-11-28; built to the
 * FACE STANDARD the same day: avatar, mic, labelled Ask, pinned
 * composer, in-area scroll — construction per Ask Music's
 * FACE-NOTE.md).
 * Distinct from Ezra's Support pill (filled cyan, bottom-right)
 * and the ✦ Stream Writer pill (bottom-right, signed-in pages):
 * Ask Stream is a dark pill with a coral hairline and its own little
 * family figure, bottom-left. Ezra’s Support pill (filled cyan,
 * bottom-right, raised on this area) and the ✦ Stream Writer pill
 * (bottom-right, signed-in pages) are untouched.
 *
 * 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. */

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

.asks-pill { position: fixed; left: 18px; bottom: 18px; z-index: 99950;
  display: inline-flex; align-items: center; gap: 9px;
  background: #0A1622; color: #FF6B4A; border: 1px solid #FF6B4A;
  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; }
.asks-pill:hover, .asks-pill:focus-visible { background: #2A130C; outline: none; }
.asks-pill-ava { display: inline-flex; width: 26px; height: 26px; flex: 0 0 auto; }
.asks-pill-ava svg { width: 100%; height: 100%; display: block; }

.asks-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: #140D0B; border: 1px solid rgba(255,107,74,.45);
  border-radius: 16px; padding: 16px; color: #F6ECE8;
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
  font-family: inherit; font-size: .95rem; line-height: 1.45; }
.asks-panel[hidden] { display: none; }

.asks-head { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; margin-bottom: 6px; }
.asks-head-ava { display: inline-flex; width: 42px; height: 42px; flex: 0 0 auto;
  animation: asksBob 3.6s ease-in-out infinite; }
.asks-head-ava svg { width: 100%; height: 100%; display: block; }
@keyframes asksBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.asks-title { color: #FF6B4A; font-size: 1.05rem; flex: 1 1 auto; }
.asks-close { background: transparent; border: 1px solid rgba(255,107,74,.45);
  color: #F6ECE8; border-radius: 8px; min-width: 48px; min-height: 48px;
  font-size: 1rem; cursor: pointer; flex: 0 0 auto; }
.asks-note { color: #C9ADA3; font-size: .82rem; margin: 0 0 10px; flex: 0 0 auto; }

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

.asks-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; }
.asks-chip { background: #170D0A; color: #FFC4B2; border: 1px solid #4A2A1E;
  border-radius: 999px; padding: 10px 13px; min-height: 48px;
  font-size: .83rem; cursor: pointer; text-align: left; }
.asks-chip:hover, .asks-chip:focus-visible { border-color: #FF6B4A; color: #FF6B4A; outline: none; }

.asks-form { display: flex; gap: 8px; flex: 0 0 auto; align-items: stretch; }
.asks-input { flex: 1 1 auto; min-width: 0; background: #0E0806;
  border: 1px solid #4A2A1E; border-radius: 9px; color: #F6ECE8;
  padding: 12px; min-height: 48px; font-size: .95rem; }
.asks-input:focus { border-color: #FF6B4A; outline: none; }
.asks-mic { flex: 0 0 auto; width: 48px; min-height: 48px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: #0E0806; color: #FFC4B2; border: 1px solid #4A2A1E;
  border-radius: 9px; cursor: pointer; }
.asks-mic:hover, .asks-mic:focus-visible { border-color: #FF6B4A; color: #FF6B4A; outline: none; }
.asks-mic[hidden] { display: none; }
.asks-mic.on { background: #3A0D16; border-color: #FF2E40; color: #FF5A6A;
  animation: asksPulse 1.2s ease-in-out infinite; }
@keyframes asksPulse { 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); } }
.asks-send { background: #FF6B4A; color: #2A0E02; 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) {
  .asks-head-ava, .asks-mic.on { animation: none; }
}

@media (max-width: 560px) {
  .asks-pill { left: 12px; bottom: 12px; }
    .asks-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) {
  .asks-note { display: none; }
  .asks-chips { max-height: 56px; }
}

