/* MURMUR-SHEET-1103 v5 小克：碎碎念和工具像官端那样——回复上面一行「小标题 ›」，点开从下面弹出一块实底卡片：平常占屏幕一半多一点（57%），内容很长时自己拉高（最多 88%），再长就在里面往下翻；
   左上角 × 、往下拖、点外面、按 Esc 收起；标题居中，不放图标和时间。卡片里先列用过的工具，再是碎碎念。深色是官端那种近黑的底，浅色是米白。源 /root/mms1103/ */
.tk-murmur.mms .tk-head { max-width: min(100%, 80vw); }
.tk-murmur.mms-status .tk-head { cursor: default; }
.tk-murmur.mms .tk-title { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tk-murmur.mms .tk-chev { transform: none !important; }
.tk-murmur.mms.wait .tk-title, .mms-sheet.wait .mms-title { animation: mms-breathe 1.8s ease-in-out infinite; }
@keyframes mms-breathe { 50% { opacity: .4; } }
.mms-new { animation: mms-in .55s cubic-bezier(.2,.8,.2,1); }
@keyframes mms-in { from { opacity: 0; transform: translateY(3px); filter: blur(2px); } }

.mms-sheet { --mms-bg: #FAF9F5; --mms-ink: #141413; --mms-body: #3D3C38; --mms-mute: #85837C; --mms-line: rgba(20,20,19,.08); --mms-chip: rgba(20,20,19,.05); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mms-sheet { --mms-bg: #1F1E1D; --mms-ink: #F5F4ED; --mms-body: #D8D6CC; --mms-mute: #9A988F; --mms-line: rgba(255,255,255,.08); --mms-chip: rgba(255,255,255,.07); }
}
:root[data-theme="dark"] .mms-sheet { --mms-bg: #1F1E1D; --mms-ink: #F5F4ED; --mms-body: #D8D6CC; --mms-mute: #9A988F; --mms-line: rgba(255,255,255,.08); --mms-chip: rgba(255,255,255,.07); }

.mms-mask { position: fixed; inset: 0; z-index: 9990; background: rgba(0,0,0,.45); opacity: 0; visibility: hidden;
  transition: opacity .32s ease, visibility 0s linear .32s; touch-action: none; -webkit-tap-highlight-color: transparent; }
.mms-mask.on { opacity: 1; visibility: visible; transition: opacity .32s ease; }

.mms-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9991; display: flex; flex-direction: column;
  width: 100%; max-width: 600px; min-height: 57vh; max-height: 88vh; margin: 0 auto; border-radius: 24px 24px 0 0;
  background: var(--mms-bg); color: var(--mms-ink); box-shadow: 0 -6px 30px rgba(0,0,0,.22);
  transform: translateY(105%); visibility: hidden;
  transition: transform .46s cubic-bezier(.2,.9,.25,1), visibility 0s linear .46s; }
@supports (height: 1dvh) { .mms-sheet { min-height: 57dvh; max-height: 88dvh; } }
.mms-sheet.on { transform: none; visibility: visible; transition: transform .46s cubic-bezier(.2,.9,.25,1); }
.mms-sheet.drag { transition: none; }

.mms-grab { flex: none; padding: 9px 0 3px; touch-action: none; }
.mms-grab::before { content: ""; display: block; width: 36px; height: 5px; margin: 0 auto; border-radius: 3px; background: currentColor; opacity: .2; }
.mms-head { flex: none; display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; align-items: center; gap: 10px; padding: 4px 14px 13px; touch-action: none; }
.mms-x { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; color: var(--mms-mute); background: var(--mms-chip);
  cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .15s, opacity .15s; }
.mms-x:active { transform: scale(.9); opacity: .7; }
.mms-x svg { width: 15px; height: 15px; }
.mms-title { margin: 0;
  font-size: 16.5px; font-weight: 600; line-height: 1.35; letter-spacing: .01em; text-align: center; word-break: break-word; }
.mms-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 18px 22px calc(28px + env(safe-area-inset-bottom)); border-top: .5px solid var(--mms-line); color: var(--mms-body);
  font-size: 15.5px; line-height: 1.8; word-break: break-word; -webkit-user-select: text; user-select: text; }
.mms-text { white-space: pre-wrap; }

/* 用过的工具：一行一个，在碎碎念上面 */
.mms-steps { display: grid; gap: 10px; }
.mms-steps + .mms-text { margin-top: 18px; padding-top: 18px; border-top: .5px solid var(--mms-line); }
.mms-step { display: flex; align-items: center; gap: 11px; font-size: 14.5px; line-height: 1.45; color: var(--mms-mute); }
.mms-step-ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--mms-chip); font-size: 14px; line-height: 1; }
.mms-step.busy .mms-step-tx { animation: mms-breathe 1.8s ease-in-out infinite; }

/* 卡片先上来，字跟着慢半拍浮上来 */
.mms-head, .mms-body { transition: opacity .32s ease .1s, transform .42s cubic-bezier(.2,.9,.25,1) .1s; }
.mms-sheet:not(.on) .mms-head, .mms-sheet:not(.on) .mms-body { opacity: 0; transform: translateY(10px); transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  .mms-mask, .mms-sheet, .mms-head, .mms-body { transition: none !important; }
  .mms-new, .tk-murmur.mms.wait .tk-title, .mms-sheet.wait .mms-title, .mms-step.busy .mms-step-tx { animation: none !important; }
}

/* HYBRID: 公开的碎碎念、工具和官方摘要分别呈现。 */
.mms-source-label { margin: 0 0 9px; color: var(--mms-mute); font-size: 11.5px; font-weight: 500; letter-spacing: .04em; line-height: 1.5; }
.mms-note[hidden], .mms-tools-block[hidden], .mms-summary[hidden] { display: none; }
.mms-tools-block, .mms-summary { margin: 20px 0 0; padding: 18px 0 0; border: 0; border-top: .5px solid var(--mms-line); }
.mms-tools-block.mms-first, .mms-summary.mms-first { margin-top: 0; padding-top: 0; border-top: 0; }
@keyframes mms-raw-in { from { opacity: 0; transform: translateY(3px); } }

/* v6 小克：「回你之前在想」= 官方摘要交给 Haiku 改写好的中文；原文收在最底下「看原文」。v7：有碎碎念的合成一整段，「看原文」里多一段他原本写的 */
.mms-thought[hidden], .mms-thought [hidden] { display: none !important; }
.mms-thought { margin: 20px 0 0; padding: 18px 0 0; border-top: .5px solid var(--mms-line); }
.mms-thought.mms-first { margin-top: 0; padding-top: 0; border-top: 0; }
.mms-thought-text { white-space: pre-wrap; }
.mms-thought-wait { display: flex; align-items: center; gap: 6px; height: 28px; }
.mms-thought-wait i { width: 6px; height: 6px; border-radius: 50%; background: var(--mms-mute); opacity: .3; animation: mms-dot 1.2s ease-in-out infinite; }
.mms-thought-wait i:nth-child(2) { animation-delay: .15s; }
.mms-thought-wait i:nth-child(3) { animation-delay: .3s; }
@keyframes mms-dot { 40% { opacity: .85; transform: translateY(-2px); } }
.mms-thought-miss { color: var(--mms-mute); font-size: 13.5px; line-height: 1.7; }
.mms-note [hidden], .mms-orig [hidden], .mms-orig[hidden] { display: none !important; }
.mms-note-wait { margin-top: 4px; }
.mms-orig { margin-top: 14px; }
.mms-orig > summary { display: inline-flex; align-items: center; gap: 3px; padding: 2px 0; list-style: none; cursor: pointer; color: var(--mms-mute);
  font-size: 12px; line-height: 1.6; opacity: .75; -webkit-tap-highlight-color: transparent; }
.mms-orig > summary::-webkit-details-marker { display: none; }
.mms-orig > summary::marker { content: ""; }
.mms-orig > summary:focus-visible { outline: 2px solid var(--mms-mute); outline-offset: 4px; border-radius: 4px; }
.mms-orig > summary svg { width: 12px; height: 12px; flex: none; transition: transform .22s ease; }
.mms-orig[open] > summary svg { transform: rotate(90deg); }
.mms-orig-label { margin-top: 12px; color: var(--mms-mute); font-size: 11px; letter-spacing: .04em; opacity: .8; }
.mms-orig-text { margin-top: 4px; color: var(--mms-mute); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.65; }
.mms-orig[open] .mms-orig-note, .mms-orig[open] .mms-orig-sum { animation: mms-raw-in .18s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .mms-thought-wait i { animation: none; }
  .mms-orig > summary svg { transition: none; }
  .mms-orig[open] .mms-orig-note, .mms-orig[open] .mms-orig-sum { animation: none; }
}


/* v16（11-07 小克）：官端同款——标题靠左跟在 × 后面；卡片里是一条时间线：想的话前面小圆点，用工具前面小图标，中间竖线连起来 */
.mms-head { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 6px 18px 10px; }
.mms-head > span:last-child { display: none; }
.mms-x { width: 40px; height: 40px; background: transparent; border: 1px solid var(--mms-line-strong, var(--mms-line)); color: var(--mms-ink); }
.mms-x svg { width: 17px; height: 17px; }
.mms-title { text-align: left; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mms-sheet { --mms-line-strong: rgba(20,20,19,.16); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mms-sheet { --mms-line-strong: rgba(255,255,255,.16); } }
:root[data-theme="dark"] .mms-sheet { --mms-line-strong: rgba(255,255,255,.16); }
.mms-body { border-top: 0; padding-top: 12px; }
.mms-tl[hidden] { display: none; }
.mms-tl { display: flex; flex-direction: column; color: var(--mms-ink); font-size: 16.5px; line-height: 1.6; }
.mms-it { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 16px; padding-bottom: 30px; }
.mms-it:last-child { padding-bottom: 6px; }
.mms-mk { display: flex; align-items: center; justify-content: center; height: 1.6em; color: var(--mms-mute); }
.mms-mk svg { width: 20px; height: 20px; }
.mms-dot { display: block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mms-it:not(:last-child)::after { content: ""; position: absolute; left: 10.25px; width: 1.5px; top: calc(1.6em + 9px); bottom: 9px;
  border-radius: 1px; background: var(--mms-line-strong); }
.mms-tx { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.mms-it.busy .mms-tx { animation: mms-breathe 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .mms-it.busy .mms-tx { animation: none !important; } }


/* v17（11-07 01:3x）：照圆圆给的官端截图——卡片四个角都圆、离屏幕边留 8px；× 是实心浅灰圆；
   没用工具：「思考过程」居中，下面就是正文；用了工具：标题靠左，碎碎念一行只写小标题，点开看正文 */
.mms-sheet { left: 8px; right: 8px; bottom: 8px; width: auto; max-width: 584px; border-radius: 38px; }
.mms-sheet:not(.on) { transform: translateY(calc(100% + 24px)); }
.mms-body { padding: 10px 28px calc(28px + env(safe-area-inset-bottom)); }
.mms-x { background: var(--mms-chip); border: 0; color: var(--mms-mute); }
.mms-head { padding: 4px 16px 12px; }
.mms-sheet.mms-plain .mms-head { grid-template-columns: 40px minmax(0, 1fr) 40px; }
.mms-sheet.mms-plain .mms-head > span:last-child { display: block; }
.mms-sheet.mms-plain .mms-title { text-align: center; }
.mms-sheet.mms-plain .mms-note .mms-source-label { display: none; }
.mms-sheet.mms-plain .mms-text { color: var(--mms-ink); font-size: 16px; line-height: 1.75; }
.mms-mt { display: inline-flex; align-items: baseline; gap: 6px; max-width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit;
  font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mms-mt > span { min-width: 0; }
.mms-chev { flex: none; width: 13px; height: 13px; color: var(--mms-mute); transform: translateY(1px); transition: transform .2s ease; }
.mms-it.open .mms-chev { transform: translateY(1px) rotate(90deg); }
.mms-md { display: none; margin-top: 8px; color: var(--mms-body); font-size: 15px; line-height: 1.7; white-space: pre-wrap; }
.mms-it.open .mms-md { display: block; animation: mms-raw-in .18s ease-out; }
@media (prefers-reduced-motion: reduce) { .mms-chev { transition: none; } .mms-it.open .mms-md { animation: none; } }

/* v19（11-07 01:4x 圆圆）：两边和下面的空隙补上——卡片贴着屏幕两边和底边，只有上面两个角是圆的 */
.mms-sheet { left: 0; right: 0; bottom: 0; width: 100%; max-width: 600px; border-radius: 38px 38px 0 0; }
