/* 本条回复的参考内容 (memory-trace.js): a full page over the chat, in the memory app's colours (.mm-page-full tokens). */
.mm-trace{animation:mm-trace-in .28s cubic-bezier(.2,.8,.2,1)}
.mm-trace.leave{animation:mm-trace-out .22s ease-in forwards}
@keyframes mm-trace-in{from{transform:translateX(100%)}}
@keyframes mm-trace-out{to{transform:translateX(100%)}}
.mm-trace .mm-scroll{padding-bottom:calc(28px + var(--sab,0px))}
.mm-trace-q{position:relative;margin:16px 6px 4px;padding:16px 16px 14px;background:var(--mm-card);border-radius:4px;box-shadow:0 8px 18px rgba(60,40,90,.16);transform:rotate(-.6deg)}
.mm-trace-q .tape{position:absolute;top:-10px;left:50%;width:72px;height:18px;margin-left:-36px;transform:rotate(-2deg);background:repeating-linear-gradient(45deg,rgba(255,255,255,.3) 0 5px,transparent 5px 10px),#f1c56b;box-shadow:0 1px 2px rgba(40,30,60,.2)}
.mm-trace-q .lab{font-size:12px;color:var(--mm-ink2);margin-bottom:4px}
.mm-trace-q p{margin:0;font-family:var(--font-display);font-size:14px;line-height:1.75;color:var(--mm-ink);white-space:pre-wrap;overflow-wrap:anywhere}
.mm-trace-note{margin:10px 6px;padding:10px 12px;border-radius:14px;background:var(--mm-ap);font-size:12px;line-height:1.6;color:var(--mm-ink2)}
.mm-trace-foot{margin:22px 6px 0;font-size:11.5px;line-height:1.6;color:var(--mm-ink2)}
.mm-slip2{position:relative;display:flex;align-items:center;gap:12px;width:calc(100% - 12px);margin:24px 6px 0;padding:18px 14px 12px;border:0;text-align:left;font:inherit;color:var(--mm-ink);background:var(--mm-card);border-radius:3px 14px 14px 14px;box-shadow:0 6px 14px rgba(60,40,90,.14);transform:rotate(var(--r,0deg));cursor:pointer;animation:mm-deal .45s cubic-bezier(.3,1.3,.5,1) both;animation-delay:calc(var(--k,0) * 80ms + 220ms)}
@keyframes mm-deal{from{opacity:0;transform:translateY(-22px) rotate(calc(var(--r,0deg) - 5deg))}}
.mm-slip2 .tab{position:absolute;top:-16px;left:16px;height:17px;padding:0 13px;border-radius:7px 7px 0 0;font:500 11px/17px var(--font-display);color:#fff;text-shadow:0 1px 1px rgba(40,30,70,.3);background:#7d6aa6}
.mm-slip2.pin .tab{background:#c9952f}
.mm-slip2.search .tab{background:#6d84ab}
.mm-slip2 .mm-av{width:30px;height:30px;font-size:13px;flex:none}
.mm-slip2 .t{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px;align-items:flex-start}
.mm-slip2 .t b{font-family:var(--font-display);font-size:15px;font-weight:600;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mm-slip2 .scope{font-style:normal;font-size:10.5px;line-height:16px;padding:0 8px;border-radius:8px;background:var(--mm-ap);color:var(--mm-ad)}
.mm-slip2>svg{width:15px;height:15px;color:var(--mm-ink2);flex:none}
.mm-slip2.gone{border:1.5px dashed var(--mm-line);background:transparent;box-shadow:none;opacity:.75;cursor:default}
.mm-slip2.gone .tab{background:#a8a1b4}
.mm-av-gone{display:grid;place-items:center;border-radius:30%;background:var(--mm-ap);color:var(--mm-ink2)}
.mm-slip2.btw .tab{background:#b0768f}
.mm-slip2.mile .tab{background:#5f9488}
/* 参考记录 v2：本轮另外读取（非记忆的块，只有字数与类别）、每轮固定读取（折叠）、去本子 */
.mm-trace-also{margin:0 6px;padding:4px 14px;border-radius:16px;background:var(--mm-card);box-shadow:0 4px 12px rgba(60,40,90,.08)}
.mm-trace-also div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:10px 0;font-size:13px;color:var(--mm-ink2)}
.mm-trace-also div+div{border-top:1px dashed var(--mm-line)}
.mm-trace-also b{font-weight:500;color:var(--mm-ink);text-align:right;overflow-wrap:anywhere}
.mm-trace-fx{margin:22px 6px 0}
.mm-trace-fx>summary{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:16px;background:var(--mm-card);box-shadow:0 4px 12px rgba(60,40,90,.08);list-style:none;cursor:pointer}
.mm-trace-fx>summary::-webkit-details-marker{display:none}
.mm-trace-fx>summary>span:first-child{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.mm-trace-fx>summary b{font-family:var(--font-display);font-size:14px;font-weight:600;color:var(--mm-ink)}
.mm-trace-fx>summary small{font-size:11.5px;color:var(--mm-ink2)}
.mm-trace-fx>summary em{font-style:normal;font-size:12px;color:var(--mm-ad)}
.mm-trace-fx>summary [data-icon]{width:15px;height:15px;color:var(--mm-ink2);transition:transform .2s}
.mm-trace-fx>summary svg{width:15px;height:15px}
.mm-trace-fx[open]>summary [data-icon]{transform:rotate(90deg)}
.mm-trace-fx .mm-slip2{margin-left:0;margin-right:0;width:100%}
.mm-trace-nb{display:flex;align-items:center;gap:10px;width:calc(100% - 12px);margin:18px 6px 0;padding:12px 14px;border:1px solid var(--mm-line);border-radius:16px;background:transparent;font:inherit;text-align:left;color:var(--mm-ink);cursor:pointer}
.mm-trace-nb>span:first-child{flex:1;display:flex;flex-direction:column;gap:3px}
.mm-trace-nb b{font-size:13.5px;font-weight:600}
.mm-trace-nb small{font-size:11.5px;color:var(--mm-ink2)}
.mm-trace-nb [data-icon],.mm-trace-nb svg{width:15px;height:15px;color:var(--mm-ink2)}
@media(prefers-reduced-motion:reduce){.mm-trace,.mm-trace.leave,.mm-slip2{animation:none}}
