.paste-preview {
  margin: 4px 2px 0; max-width: 52ch;
  color: var(--on-dark, #F4EFE6); font: 500 1rem/1.5 var(--body, system-ui, sans-serif);
}
/* Ask panel. Hidden until #faq has entered the viewport above the bottom row.
   On a narrow screen that row is this button on the left and the existing
   Free redesign pill on the right. */
.ask-launcher {
  position: fixed; z-index: 36;
  right: max(16px, env(safe-area-inset-right));
  left: auto;
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; min-width: 48px; max-width: calc(100vw - 32px);
  padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--navy, #0B1E27); color: var(--cream, #F4EFE6);
  font: 600 .95rem/1.2 var(--body, system-ui, sans-serif);
  white-space: nowrap;
  box-shadow: 0 12px 28px -16px rgba(11, 30, 39, .65);
}
.ask-short { display: none; }
@media (max-width: 1024px) {
  html.ask-faq.fab-on .ask-launcher {
    left: max(12px, env(safe-area-inset-left));
    right: auto;
  }
  html.ask-faq.fab-on:not(.menu-open) .fab {
    left: auto;
    right: max(12px, env(safe-area-inset-right));
    translate: 0 0;
    transition: none;
    white-space: nowrap;
  }
}
@media (max-width: 360px) {
  html.ask-faq.fab-on .ask-long { display: none; }
  html.ask-faq.fab-on .ask-short { display: inline; }
  html.ask-faq.fab-on:not(.menu-open) .fab { padding-left: 12px; gap: 8px; }
}
.ask-launcher:focus-visible, .ask-close:focus-visible, .ask-chip:focus-visible, .ask-form button:focus-visible, .ask-form input:focus-visible {
  outline: 2px solid var(--orange, #FF6A38); outline-offset: 3px;
}
.ask-open .ask-launcher, .menu-open .ask-launcher, .ask-launcher.is-blocked { visibility: hidden; pointer-events: none; }
html.ask-open, body.ask-open { overflow: hidden; }
.ask-panel {
  position: fixed; z-index: 45;
  left: 12px; right: 12px; top: 12px; bottom: 12px;
  display: flex; flex-direction: column; gap: 10px;
  width: auto; max-height: none; min-height: 0; overflow: hidden;
  padding: 16px; border-radius: 20px;
  background: var(--cream, #F4EFE6); color: var(--navy, #0B1E27);
  box-shadow: 0 24px 60px -24px rgba(11, 30, 39, .55);
  font: 400 clamp(1rem, .4vw + .9rem, 1.0625rem)/1.5 var(--body, system-ui, sans-serif);
}
.ask-panel[hidden] { display: none; }
@media (min-width: 760px) {
  .ask-panel {
    top: auto; left: auto; right: 20px; bottom: 20px;
    width: min(420px, calc(100vw - 40px));
    height: min(78vh, 720px);
  }
}
.ask-head, .ask-form { flex: 0 0 auto; }
.ask-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ask-head h2 { margin: 0; font: 700 clamp(1.2rem, 1vw + 1rem, 1.45rem)/1.2 var(--display, system-ui, sans-serif); letter-spacing: -.02em; }
.ask-mode { margin: 4px 0 0; color: var(--ink-2, #33464e); font-size: 1rem; }
.ask-close {
  min-height: 48px; min-width: 48px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(11, 30, 39, .16); background: transparent; color: inherit;
  font: 600 1rem/1 var(--body, system-ui, sans-serif);
}
.ask-log {
  flex: 1 1 auto; min-height: 11rem;
  overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}
.ask-turn { display: grid; gap: 4px; margin: 0 0 14px; }
.ask-turn h3 { margin: 0; font: 700 1.05rem/1.3 var(--display, system-ui, sans-serif); }
.ask-turn p { margin: 0; }
.ask-qtext { color: var(--ink-3, #5d6f76); }
.ask-turn a { color: var(--orange-ink, #E5521E); }
.ask-chips {
  flex: 0 0 auto; display: flex; flex-wrap: nowrap; gap: 8px;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain;
  max-height: 56px;
}
.ask-chip { flex: 0 0 auto; }
.ask-chip, .ask-form button {
  min-height: 48px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(11, 30, 39, .16); background: #fff; color: inherit;
  font: 600 .95rem/1.2 var(--body, system-ui, sans-serif);
}
.ask-form { display: flex; gap: 8px; }
.ask-form input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: 14px;
  border: 1px solid rgba(11, 30, 39, .2); background: #fff; color: inherit;
  font: 400 1rem/1.4 var(--body, system-ui, sans-serif);
}
.ask-form button { background: var(--navy, #0B1E27); color: var(--cream, #F4EFE6); border: 0; }
@media (prefers-reduced-motion: reduce) {
  .ask-panel, .ask-launcher, .fab { transition: none; animation: none; }
}
