.ask-pill {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  font: 600 14px var(--ll-font, "Segoe UI", system-ui, sans-serif); color: #fff;
  background: var(--ll-accent, #1c335f); border: 0; border-radius: 999px; padding: 11px 18px;
  box-shadow: 0 6px 20px rgba(15, 27, 42, .22); cursor: pointer;
}
.ask-pill:hover { filter: brightness(1.12); }
.ask-pill:focus-visible { outline: 3px solid #9ec3ff; outline-offset: 2px; }
html.ask-open .ask-pill { display: none; }
.ask-drawer {
  display: inline-block; margin-top: 8px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 600 13px var(--ll-font, "Segoe UI", system-ui, sans-serif); color: #9ec3ff; text-decoration: underline; text-underline-offset: 3px;
}
.ask-foot {
  display: block; margin-top: 10px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 14px; color: inherit; text-decoration: underline; text-underline-offset: 3px; opacity: .85;
}
.ask-foot:hover, .ask-drawer:hover { opacity: 1; }
.ask-panel { position: fixed; inset: 0; z-index: 1000; font-family: var(--ll-font, "Segoe UI", system-ui, sans-serif); }
.ask-panel[hidden] { display: none; }
.ask-scrim { position: absolute; inset: 0; background: rgba(15, 27, 42, .32); opacity: 0; transition: opacity .18s; }
.ask-sheet {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%);
  display: flex; flex-direction: column; background: var(--ll-canvas, #fbfbfa); color: var(--ll-ink, #0f1b2a);
  box-shadow: -12px 0 40px rgba(15, 27, 42, .18); transform: translateX(24px); opacity: 0; transition: transform .18s, opacity .18s;
}
.ask-panel.on .ask-scrim { opacity: 1; }
.ask-panel.on .ask-sheet { transform: none; opacity: 1; }
.ask-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 24px 14px; border-bottom: 1px solid var(--ll-line, #e4e7ec); }
.ask-head h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.ask-head p { margin: 4px 0 0; font-size: 13.5px; color: var(--ll-ink-3, #5d6b7a); }
.ask-x {
  flex: none; border: 1px solid var(--ll-line-strong, #cfd5dd); background: var(--ll-surface, #fff); color: var(--ll-ink-2, #2e3f52);
  border-radius: 8px; padding: 6px 11px; font: 600 13px inherit; font-family: inherit; cursor: pointer;
}
.ask-x:hover { background: var(--ll-accent-soft, rgba(28, 51, 95, .08)); }
.ask-log { flex: 1; overflow-y: auto; padding: 18px 24px 8px; display: grid; gap: 18px; align-content: start; }
.ask-try { margin: 0 0 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ll-ink-4, #8794a2); }
.ask-ex { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-ex button {
  border: 1px solid var(--ll-line-strong, #cfd5dd); background: var(--ll-surface, #fff); color: var(--ll-ink-2, #2e3f52);
  border-radius: 999px; padding: 6px 12px; font: 13px inherit; font-family: inherit; cursor: pointer;
}
.ask-ex button:hover { border-color: var(--ll-accent, #1c335f); color: var(--ll-accent, #1c335f); }
.ask-turn { display: grid; gap: 10px; }
.ask-q {
  justify-self: end; max-width: 85%; margin: 0; padding: 9px 14px; border-radius: 14px 14px 4px 14px;
  background: var(--ll-accent, #1c335f); color: #fff; font-size: 14.5px; line-height: 1.4;
}
.ask-a { display: grid; gap: 10px; }
.ask-wait { margin: 0; font-size: 13.5px; color: var(--ll-ink-3, #5d6b7a); }
.ask-wait::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: ask-dots 1.2s steps(4) infinite; }
@keyframes ask-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
@media (prefers-reduced-motion: reduce) { .ask-wait::after { animation: none; content: "..."; } .ask-sheet, .ask-scrim { transition: none; } }
.ask-res { background: var(--ll-surface, #fff); border: 1px solid var(--ll-line, #e4e7ec); border-radius: 12px; padding: 12px 14px; }
.ask-res-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: inherit; text-decoration: none; }
.ask-res-h b { display: block; font-size: 15px; }
.ask-res-h small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ll-ink-3, #5d6b7a); }
.ask-res-h em { flex: none; font-style: normal; font-weight: 700; font-size: 18px; color: var(--ll-accent, #1c335f); font-variant-numeric: tabular-nums; }
.ask-res-h:hover b { text-decoration: underline; text-underline-offset: 3px; }
.ask-res ul { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--ll-line, #e4e7ec); display: grid; gap: 7px; }
.ask-res li { display: grid; gap: 1px; font-size: 13.5px; line-height: 1.35; }
.ask-res li a { color: var(--ll-ink, #0f1b2a); text-decoration: none; }
.ask-res li a:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--ll-accent, #1c335f); }
.ask-res li span { font-size: 12px; color: var(--ll-ink-4, #8794a2); }
.ask-more { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--ll-accent, #1c335f); }
.ask-all { font-size: 13px; color: var(--ll-ink-3, #5d6b7a); }
.ask-none { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ll-ink-2, #2e3f52); }
.ask-form { display: flex; gap: 8px; padding: 12px 24px 6px; border-top: 1px solid var(--ll-line, #e4e7ec); background: var(--ll-surface, #fff); }
.ask-form input {
  flex: 1; min-width: 0; border: 1px solid var(--ll-line-strong, #cfd5dd); border-radius: 10px; padding: 11px 13px;
  font: 15px inherit; font-family: inherit; color: inherit; background: #fff;
}
.ask-form input:focus { outline: 2px solid var(--ll-accent, #1c335f); outline-offset: 0; border-color: transparent; }
.ask-form button {
  flex: none; border: 0; border-radius: 10px; padding: 0 18px; background: var(--ll-accent, #1c335f); color: #fff;
  font: 600 14px inherit; font-family: inherit; cursor: pointer;
}
.ask-fine { margin: 0; padding: 4px 24px 16px; background: var(--ll-surface, #fff); font-size: 11.5px; line-height: 1.45; color: var(--ll-ink-4, #8794a2); }
@media (max-width: 640px) {
  .ask-pill { right: 14px; bottom: 14px; padding: 10px 15px; font-size: 13.5px; }
  .ask-sheet { top: auto; height: 88vh; width: 100%; border-radius: 18px 18px 0 0; transform: translateY(24px); }
  .ask-head, .ask-log, .ask-form { padding-left: 16px; padding-right: 16px; }
  .ask-fine { padding-left: 16px; padding-right: 16px; }
}
.ask-ts { display: flex; justify-content: center; padding: 8px 24px 0; background: var(--ll-surface, #fff); }
.ask-ts:empty { display: none; }
