/* 问答页（2026-10-07）。配色沿用 style.css 的 :root 变量（照 markdown-reader 的 Apple 系统色）。
   版式参照 iOS「信息」和主流聊天软件：顶栏 + 中间可滚动消息流 + 底部固定输入栏；
   参考范围、口令、删除确认都用从下往上的 sheet。
   移动端硬规则（记忆库 feedback_mobile_first_web §2）：热区 ≥44px、输入框 16px 防 iOS 放大、
   :hover 只在能悬停的设备上、自己声明了 display 的元素补 [hidden]、安全区。 */

body.page-ask {
  height: 100%;
  overflow: hidden;           /* 整页不滚，只有消息流自己滚（app shell） */
  overscroll-behavior: none;
}
html:has(body.page-ask) { height: 100%; }

.ask-app {
  /* --app-h 由 ask.js 按 visualViewport 实时写：iOS Safari 弹键盘时布局视口不变、只有可视视口变小，
     不跟着缩的话输入栏会被键盘盖住。没有 JS 时退回 100dvh。 */
  height: var(--app-h, 100dvh);
  display: flex;
  flex-direction: column;
}

/* ── 顶栏 ── */
.ask-top {
  flex: none;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: env(safe-area-inset-top) max(6px, env(safe-area-inset-right)) 0 max(6px, env(safe-area-inset-left));
  min-height: calc(52px + env(safe-area-inset-top));
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--border);
  position: relative;
  z-index: 20;
}
.ask-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ask-top-actions { display: flex; flex: none; }
/* 左边只有一个返回键、右边两个：给左边补一个等宽占位，标题才能真居中 */
.ask-top > .ask-icon-btn:first-child { margin-right: 44px; }

.ask-icon-btn {
  width: 44px;
  height: 44px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--accent);
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.ask-icon-btn:active { background: var(--tag-bg); }
.ask-icon-btn[hidden] { display: none; }

.ask-text-btn {
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 16px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.ask-text-btn:active { opacity: 0.5; }

/* ── 主体：历史栏 + 对话 ── */
.ask-body {
  flex: 1;
  min-height: 0;
  display: flex;
  position: relative;
}

.ask-history {
  position: fixed;
  z-index: 40;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(84vw, 320px);
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: var(--card-bg);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.18);
  transform: translateX(-105%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  visibility: hidden;
}
.ask-history.is-open { transform: none; visibility: visible; }
.ask-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 6px 4px 16px;
  font-size: 17px;
}
.ask-history-new {
  margin: 4px 12px 8px;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--tag-bg);
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}
.ask-history-new:active { opacity: 0.7; }
.ask-history-list {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 0 8px;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.ask-history-item {
  display: flex;
  align-items: center;
  border-radius: 10px;
}
.ask-history-item.is-current { background: var(--tag-bg); }
.ask-history-open {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: var(--fg);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
.ask-history-open strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ask-history-open span { display: block; font-size: 13px; color: var(--text-secondary); }
.ask-history-del { color: var(--text-secondary); font-size: 15px; }
.ask-history-empty { padding: 12px 8px; color: var(--text-secondary); font-size: 14px; }
.ask-history-note { margin: 4px 16px; font-size: 12px; color: var(--text-secondary); }
.ask-history-foot { padding: 4px 8px 8px; }

.ask-overlay {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.ask-overlay.is-open { opacity: 1; pointer-events: auto; }

@media (min-width: 901px) {
  .ask-history {
    position: static;
    width: 280px;
    flex: none;
    transform: none;
    visibility: visible;
    box-shadow: none;
    padding-top: 8px;
    background: var(--sidebar-bg);
    border-right: 0.5px solid var(--border);
    transition: none;
  }
  .ask-history-close, #ask-history-btn, .ask-overlay { display: none; }
  .ask-top > .ask-icon-btn:first-child { margin-right: 0; }
}

.ask-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* 参考范围摘要条 */
.ask-scope {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc(100% - 24px);
  max-width: 760px;
  min-height: 44px;
  margin: 8px auto 0;
  padding: 0 12px;
  border: 0.5px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--fg);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.ask-scope:active { background: var(--tag-bg); }
.ask-scope > .fa-book-open { color: var(--accent); flex: none; }
.ask-scope-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ask-scope-chev { color: var(--text-secondary); font-size: 12px; flex: none; }

/* ── 消息流 ── */
.ask-thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 12px max(16px, env(safe-area-inset-right)) 24px max(16px, env(safe-area-inset-left));
  outline: none;
}
.ask-messages {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ask-empty { max-width: 560px; margin: 8vh auto 0; text-align: center; }
.ask-empty[hidden] { display: none; }
.ask-empty-title { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.ask-empty-sub { font-size: 15px; color: var(--text-secondary); margin: 0 0 20px; line-height: 1.55; }
.ask-examples { display: flex; flex-direction: column; gap: 8px; }
.ask-example {
  min-height: 44px;
  padding: 10px 14px;
  border: 0.5px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--fg);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
.ask-example:active { background: var(--tag-bg); }

/* 用户消息：右侧蓝色气泡 */
.msg-user-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.msg-user {
  max-width: 85%;
  padding: 9px 14px;
  border-radius: 18px 18px 6px 18px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.msg-user-actions { display: flex; gap: 2px; }
.msg-user-actions[hidden] { display: none; }

/* AI 回答：不用气泡，整宽排版（长回答在气泡里读起来很挤） */
.msg-ai { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.msg-ai-body.markdown-body {
  background: transparent;
  color: var(--fg);
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  min-width: 0;
}
.msg-ai-body.markdown-body > :first-child { margin-top: 0; }
.msg-ai-body.markdown-body > :last-child { margin-bottom: 0; }
.msg-ai-body.markdown-body table { display: block; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
/* 窄屏下表格列被挤成一字一行（320 档实测「说明」两个字竖着排）。给单元格一个能放下 4 个汉字的最小宽度，
   放不下就让表格自己横向滚——表格是少数真不能断行的内容，横滑是可接受的退让（记忆库 feedback_mobile_first_web） */
.msg-ai-body.markdown-body th, .msg-ai-body.markdown-body td { min-width: 5em; }
/* 代码块在窄屏折行，不横向滚（github-markdown-css 给 pre code 设了 white-space:pre，要一起盖掉）；
   右侧留出复制按钮的位置，免得最后几个字被按钮压住 */
.msg-ai-body.markdown-body pre { white-space: pre-wrap; overflow-wrap: anywhere; padding-right: 44px; }
.msg-ai-body.markdown-body pre code { white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }

.msg-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}
.msg-status[hidden] { display: none; }
.msg-dots { display: inline-flex; gap: 3px; }
.msg-dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: 0.35;
  animation: ask-dot 1.2s infinite ease-in-out;
}
.msg-dots i:nth-child(2) { animation-delay: 0.15s; }
.msg-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ask-dot { 0%, 80%, 100% { opacity: 0.25; transform: none; } 40% { opacity: 0.9; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .msg-dots i { animation: none; } }

.msg-note {
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  background: var(--tag-bg);
}
.msg-note[hidden] { display: none; }
.msg-note.is-warn { background: rgba(255, 159, 10, 0.14); }
.msg-note.is-error { background: rgba(255, 59, 48, 0.1); color: var(--danger); }

/* 急救电话条（2026-10-24）：问题像是正在发生的紧急情况时，程序在回答上方固定显示，不等 AI。
   四个号码一行排满（窄屏两两一行），每个点击范围 ≥44px 高（Apple HIG 44pt） */
.msg-emergency {
  margin: 0 0 4px;
  padding: 10px 12px 12px;
  border-radius: 12px;
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.35);
}
.msg-emergency-title { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--danger); line-height: 1.4; }
.msg-emergency-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 360px) { .msg-emergency-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.msg-emergency-call {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--danger);
  text-decoration: none;
  line-height: 1.2;
}
.msg-emergency-call b { font-size: 18px; }
.msg-emergency-call span { font-size: 12px; color: var(--text-secondary); }
.msg-emergency-call:active { opacity: 0.6; }

.msg-sources { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.msg-sources[hidden] { display: none; }
.msg-sources a { color: var(--accent); text-decoration: none; }

.msg-actions { display: flex; flex-wrap: wrap; gap: 2px; margin-left: -10px; }
.msg-actions[hidden] { display: none; }
.msg-act {
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.msg-act i { margin-right: 4px; }
.msg-act:active { background: var(--tag-bg); }
.msg-act.is-accent { color: var(--accent); }

.msg-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.msg-suggest[hidden] { display: none; }
.msg-suggest-btn {
  min-height: 36px;
  padding: 4px 12px;
  border: 1px dashed var(--accent);
  border-radius: 18px;
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  cursor: pointer;
  touch-action: manipulation;
}
.msg-suggest-btn:active { background: var(--tag-bg); }

/* 出处 */
.cite { font-size: 0.92em; }
a.cite { color: var(--accent); text-decoration: none; border-bottom: 1px dashed currentColor; }
a.cite-doc { opacity: 0.85; }
.cite-frame { color: var(--text-secondary); }
.cite-bad { color: var(--danger); }
/* 回答里的原文摘录（2026-10-22）：程序逐字核对过的灰色小字带 ✓，对不上的标红 */
.quote { display: block; margin: 2px 0 6px; padding: 2px 0 2px 10px; border-left: 3px solid var(--border); font-size: 0.88em; color: var(--text-secondary); overflow-wrap: anywhere; }
.quote-bad { border-left-color: var(--danger); color: var(--danger); background: rgba(255, 59, 48, 0.08); }
.cite-note { color: var(--text-secondary); font-size: 0.85em; }

@media (hover: hover) {
  .ask-icon-btn:hover, .msg-act:hover, .ask-example:hover, .ask-scope:hover { background: var(--tag-bg); }
  .ask-history-open:hover { background: var(--tag-bg); border-radius: 10px; }
}

/* 回到最新 */
.ask-jump {
  position: absolute;
  right: 16px;
  bottom: calc(var(--composer-h, 96px) + 12px);
  width: 40px;
  height: 40px;
  border: 0.5px solid var(--border);
  border-radius: 50%;
  background: var(--card-bg);
  color: var(--fg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 5;
}
.ask-jump.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ── 输入栏 ── */
.ask-composer-wrap {
  flex: none;
  padding: 8px max(12px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: var(--bg);
  border-top: 0.5px solid var(--border);
}
.ask-editing {
  max-width: 760px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.ask-editing[hidden] { display: none; }
.ask-editing .ask-text-btn { min-height: 32px; font-size: 14px; }
.ask-composer {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 3px 3px 3px 14px;
  border: 0.5px solid var(--border);
  border-radius: 22px;
  background: var(--card-bg);
}
.ask-composer:focus-within { border-color: var(--accent); }
.ask-attach {
  position: relative;
  width: 36px;
  height: 38px;
  flex: none;
  margin: 1px 0 1px -8px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 17px;
  cursor: pointer;
  touch-action: manipulation;
}
.ask-attach::after { content: ''; position: absolute; inset: -4px; }
.ask-attach:active { color: var(--accent); }
.ask-attach:disabled { opacity: 0.4; }
.ask-image-status { max-width: 760px; margin: 0 auto 6px; font-size: 13px; color: var(--text-secondary); line-height: 1.45; }
.ask-image-status.error { color: var(--danger); }
.ask-image-status[hidden] { display: none; }
.ask-composer textarea {
  flex: 1;
  min-width: 0;
  max-height: 38vh;
  margin: 0;
  padding: 9px 0;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 16px;      /* <16px 会触发 iOS 聚焦时自动放大页面 */
  line-height: 1.45;
}
.ask-send {
  position: relative;
  width: 38px;
  height: 38px;
  flex: none;
  margin: 1px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
}
.ask-send::after { content: ''; position: absolute; inset: -4px; }   /* 热区补到 46px */
.ask-send:active { transform: scale(0.9); }
.ask-send:disabled { background: var(--border); color: var(--text-secondary); cursor: default; }
.ask-send.is-stop { background: var(--fg); color: var(--bg); }
.ask-foot {
  margin: 5px 0 0;
  font-size: 12px;
  text-align: center;
  color: var(--text-secondary);
}

/* ── 底部弹层 ── */
.ask-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.ask-sheet-overlay.is-open { opacity: 1; pointer-events: auto; }
.ask-sheet {
  position: fixed;
  z-index: 60;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 640px;
  max-height: min(86dvh, calc(var(--app-h, 100dvh) - 40px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 0 16px calc(12px + env(safe-area-inset-bottom));
  border-radius: 14px 14px 0 0;
  background: var(--card-bg);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.18);
  transform: translateY(105%);
  transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1);
}
.ask-sheet.is-open { transform: none; }
.ask-sheet[hidden] { display: none; }
.ask-sheet-grip { width: 36px; height: 5px; margin: 6px auto 2px; border-radius: 3px; background: var(--border); flex: none; }
.ask-sheet-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 17px;
}
.ask-sheet-done { font-weight: 600; }
.ask-sheet-hint { margin: 4px 0 8px; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
/* 弹层只许竖着滚（2026-10-07 用户在 iPhone 上看到联网核查弹层能左右拖、左边被切掉一截）：
   overflow-y:auto 会让 overflow-x 也变成 auto，里面任何一个元素宽出 1px 就能横着拖。
   Chrome 和 WebKit 里用同样的数据都没复现出是哪个元素，所以不赌具体元素，从结构上堵：
   横向一律裁掉 + 所有文字允许任意处断行 + 只认竖向拖动。 */
.ask-sheet-scroll { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; margin: 0 -16px; padding: 0 16px; overflow-wrap: anywhere; touch-action: pan-y pinch-zoom; }
.ask-sheet { touch-action: pan-y pinch-zoom; }

.ask-segment {
  flex: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 2px;
  margin: 4px 0;
  border-radius: 9px;
  background: var(--bg);
}
.ask-seg {
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--fg);
  font-size: 14px;
  cursor: pointer;
  touch-action: manipulation;
}
.ask-seg[aria-checked="true"] {
  background: var(--card-bg);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.ask-scope-group { margin: 10px 0 4px; }
.ask-scope-group[hidden] { display: none; }
.ask-group-label { margin: 0 0 4px; font-size: 13px; color: var(--text-secondary); }
.ask-doc-filter {
  width: 100%;
  min-height: 40px;
  margin-bottom: 6px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
}
.ask-doc-list { margin: 0; padding: 0; list-style: none; border-radius: 12px; background: var(--bg); overflow: hidden; }
.ask-doc-list:empty { display: none; }
.ask-doc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 4px 4px 4px 12px;
}
.ask-doc-row + .ask-doc-row { border-top: 0.5px solid var(--border); }
.ask-doc-info { flex: 1; min-width: 0; }
.ask-doc-info strong { display: block; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.ask-doc-info span { display: block; font-size: 12px; color: var(--text-secondary); }
.ask-doc-row .ask-icon-btn.is-remove { color: var(--danger); }
/* 「只问这一篇」里锁定的那一篇：不给移除按钮，换成一个说明它为什么在这里的小标签（2026-10-22） */
.ask-doc-lock { flex-shrink: 0; margin-right: 8px; padding: 2px 8px; border-radius: 6px; font-size: 12px; color: var(--text-secondary); background: var(--tag-bg); }

.ask-passcode-form { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.ask-passcode-form input {
  min-height: 44px;
  padding: 0 12px;
  border: 0.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
}
.ask-primary-btn, .ask-danger-btn, .ask-secondary-btn {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}
.ask-primary-btn { background: var(--accent); color: #fff; }
.ask-danger-btn { background: rgba(255, 59, 48, 0.12); color: var(--danger); }
.ask-secondary-btn { background: var(--bg); color: var(--accent); }
.ask-primary-btn:active, .ask-danger-btn:active, .ask-secondary-btn:active { opacity: 0.7; }
.ask-primary-btn:disabled { opacity: 0.4; cursor: default; }
.ask-error { margin: 0; color: var(--danger); font-size: 14px; }
.ask-error[hidden] { display: none; }
.ask-confirm-text { margin: 12px 0 14px; font-size: 16px; text-align: center; line-height: 1.5; }
.ask-confirm-actions { display: flex; flex-direction: column; gap: 8px; }

.ask-toast {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: calc(var(--composer-h, 96px) + 16px);
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}
.ask-toast[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .ask-history, .ask-sheet, .ask-overlay, .ask-sheet-overlay, .ask-jump, .ask-send { transition: none; }
}
