@import url('/ask-disco-rich-v346/katex.min.css');
@import url('/ask-disco-rich-v346/texmath.css');

.question-card.focused-question img.question-image,
.modal.ask-disco-question-modal > img.ask-disco-lightbox-image {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.modal.ask-disco-question-modal > img.ask-disco-lightbox-image {
  -webkit-user-drag: none;
}
.ask-disco-hold-menu {
  position: fixed; z-index: 100099; min-width: 190px;
  padding: 5px; border: 1px solid #d5d9df; border-radius: 13px;
  background: #fff; box-shadow: 0 10px 32px rgb(0 0 0 / 24%);
}
.ask-disco-hold-menu button {
  display: block; width: 100%; min-height: 46px; padding: 10px 14px;
  border: 0; border-radius: 9px; background: #fff; color: #111827;
  text-align: left; font: 700 1rem/1.2 system-ui, sans-serif;
  touch-action: manipulation; cursor: pointer;
}
.ask-disco-hold-menu button:hover, .ask-disco-hold-menu button:focus-visible {
  background: #f1f3f5;
}
.ask-disco-action-row { padding: 8px 12px; background: #fff; }
.ask-disco-action {
  display: block; width: 100%; min-height: 48px; border: 2px solid #111827;
  border-radius: 10px; background: #fff; color: #111827;
  font: 700 1rem/1.2 system-ui, sans-serif; cursor: pointer;
}
.ask-disco-action:focus-visible, .ask-disco-back:focus-visible,
.ask-disco-menu-toggle:focus-visible,
.ask-disco-compose button:focus-visible, .ask-disco-compose textarea:focus-visible {
  outline: 3px solid #53b6ff; outline-offset: 2px;
}
.ask-disco-backdrop {
  position: fixed; inset: 0; z-index: 100100; display: flex; align-items: center;
  justify-content: center; padding: 14px; background: rgb(0 0 0 / 75%);
}
.ask-disco-chat {
  display: flex; flex-direction: column; width: min(100%, 760px);
  height: min(94dvh, 900px); overflow: hidden; border-radius: 18px;
  background: #0b0c10; color: #f7f7f8;
  font: 1rem/1.45 system-ui, sans-serif;
}
.ask-disco-header {
  position: relative; display: flex; align-items: center; gap: 12px; flex: 0 0 auto;
  padding: 12px 16px; border-bottom: 1px solid #2d3038;
}
.ask-disco-menu-toggle {
  display: flex; flex: 0 0 44px; flex-direction: column; align-items: center;
  justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 0; background: transparent; color: #fff; cursor: pointer;
}
.ask-disco-menu-toggle span {
  display: block; width: 23px; height: 2px; border-radius: 0; background: currentColor;
}
.ask-disco-nav {
  position: absolute; z-index: 1; top: calc(100% - 1px); left: 16px;
  min-width: 190px; padding: 5px; border: 1px solid #454a55;
  background: #1a1d24; box-shadow: 0 12px 28px rgb(0 0 0 / 35%);
}
.ask-disco-nav[hidden] { display: none; }
.ask-disco-back {
  display: block; width: 100%; min-height: 44px; padding: 10px 12px;
  border: 0; border-radius: 0; background: transparent; color: #fff;
  text-align: left; font: 600 1rem/1.2 system-ui, sans-serif; cursor: pointer;
}
.ask-disco-back:hover { background: #2a2f39; }
.ask-disco-header h2 { margin: 0; font: 750 1.15rem/1.25 system-ui, sans-serif; }
.ask-disco-header span { color: #aeb3bf; font-size: .82rem; }
.ask-disco-messages {
  display: flex; flex-direction: column; align-items: stretch; gap: 14px;
  flex: 1 1 auto; min-height: 0; padding: 18px 16px;
  overflow-y: auto; overscroll-behavior: contain;
}
.ask-disco-question {
  flex: 0 0 auto; max-width: min(440px, 100%); padding: 12px;
  border: 1px solid #333842; border-radius: 14px; background: #1a1d24;
}
.ask-disco-question > strong { display: block; margin-bottom: 9px; font-size: .9rem; }
.ask-disco-question > p { margin: 0; white-space: pre-wrap; font-size: .88rem; }
.ask-disco-question-pages {
  display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
}
.ask-disco-question-pages img {
  display: block; flex: 0 0 min(72%, 220px); width: min(72%, 220px);
  max-height: 220px; object-fit: contain; object-position: top;
  border-radius: 6px; background: white; scroll-snap-align: start;
}
.ask-disco-intro { align-self: center; max-width: 370px; color: #b8bdc7; text-align: center; }
.ask-disco-intro small { display: block; margin-top: 10px; color: #a5aab5; font-size: .76rem; }
.ask-disco-message { max-width: min(86%, 590px); padding: 11px 14px; border-radius: 16px; }
.ask-disco-message strong { display: block; margin-bottom: 4px; font-size: .8rem; }
.ask-disco-message p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ask-disco-message-user { align-self: flex-end; background: #263c58; }
.ask-disco-message-assistant { align-self: flex-start; background: #24272e; }
.ask-disco-message-assistant {
  align-self: stretch; max-width: 100%; padding: 0 2px;
  border-radius: 0; background: transparent;
}
.ask-disco-message-assistant > strong { display: none; }
.ask-disco-answer {
  min-width: 0; color: #f5f5f7; font-size: 1rem;
  line-height: 1.65; overflow-wrap: anywhere;
}
.ask-disco-answer > :first-child { margin-top: 0; }
.ask-disco-answer > :last-child { margin-bottom: 0; }
.ask-disco-answer h1, .ask-disco-answer h2, .ask-disco-answer h3,
.ask-disco-answer h4 { margin: 1.1em 0 .45em; color: #fff; line-height: 1.3; }
.ask-disco-answer h1 { font-size: 1.22rem; }
.ask-disco-answer h2 { font-size: 1.14rem; }
.ask-disco-answer h3, .ask-disco-answer h4 { font-size: 1.05rem; }
.ask-disco-answer p, .ask-disco-answer ul, .ask-disco-answer ol,
.ask-disco-answer blockquote, .ask-disco-answer pre { margin: .8em 0; }
.ask-disco-answer ul, .ask-disco-answer ol { padding-left: 1.35em; }
.ask-disco-answer li + li { margin-top: .35em; }
.ask-disco-answer strong { color: #fff; }
.ask-disco-answer hr { border: 0; border-top: 1px solid #363b45; margin: 1.25em 0; }
.ask-disco-answer code { padding: .05em .25em; border-radius: 3px; background: #232832; }
.ask-disco-answer pre { max-width: 100%; padding: 12px; overflow-x: auto; background: #1b2029; }
.ask-disco-answer pre code { padding: 0; background: none; }
.ask-disco-answer blockquote { padding-left: 12px; border-left: 3px solid #7f9ac8; color: #cbd2de; }
.ask-disco-answer eq, .ask-disco-answer eqn,
.ask-disco-answer .katex-display { max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.ask-disco-answer eqn { padding: .25em 0 .45em; }
.ask-disco-answer .katex-display { margin: .8em 0; }
.ask-disco-answer .katex-display .katex { font-size: 1.12em !important; }
.ask-disco-status { flex: 0 0 auto; min-height: 0; padding: 0 16px; color: #b8bdc7; font-size: .85rem; }
.ask-disco-status:not(:empty) { padding-top: 8px; padding-bottom: 8px; }
.ask-disco-status.is-error { color: #ffb7b7; }
.ask-disco-compose {
  display: flex; align-items: end; gap: 10px; flex: 0 0 auto;
  margin: 0 16px max(12px, env(safe-area-inset-bottom)); padding: 6px 8px;
  border: 1px solid #424752; border-radius: 0; background: #21242b;
}
.ask-disco-compose label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ask-disco-compose textarea {
  display: block; flex: 1 1 auto; min-width: 0; min-height: 44px; max-height: 140px;
  padding: 10px 13px; resize: vertical; border: 0;
  border-radius: 0; background: transparent; color: #fff;
  font: 1rem/1.35 system-ui, sans-serif;
}
.ask-disco-compose textarea::placeholder { color: #b0b4bf; }
.ask-disco-compose textarea:disabled { opacity: .6; }
.ask-disco-compose button {
  flex: 0 0 auto; min-width: 62px; height: 44px; padding: 0 12px;
  border: 0; border-radius: 0; background: #fff; color: #111;
  font: 700 .95rem system-ui, sans-serif; cursor: pointer;
}
.ask-disco-compose button:disabled { opacity: .55; cursor: wait; }
@media (max-width: 640px) {
  .ask-disco-backdrop { padding: 0; }
  .ask-disco-chat { width: 100%; height: 100dvh; border-radius: 0; }
  .ask-disco-header { padding-top: max(12px, env(safe-area-inset-top)); }
}
