.story-memory{min-width:0;display:grid;gap:16px}
.story-memory p{overflow-wrap:anywhere}
.story-memory .tabs{margin-bottom:0}
.story-memory .toolbar{flex-wrap:wrap}
.story-memory>[data-sm-overview]{padding:14px 16px;border-left:2px solid var(--line);background:var(--surface-2)}
.story-memory>[data-sm-overview] p{margin:0}
.story-memory>[data-sm-overview] p:first-child{font-size:15px;font-weight:600;line-height:1.65;color:var(--text)}
.story-memory>[data-sm-overview] p+p{margin-top:6px;font-size:12px;line-height:1.75}
.story-memory .sm-context{margin-top:12px;padding-top:11px;border-top:1px dashed color-mix(in srgb,var(--line) 70%,transparent)}
.story-memory .sm-context strong{display:block;margin-bottom:6px;font-size:12px;font-weight:600}
.story-memory .sm-context ul{margin:0;padding-left:16px;display:grid;gap:4px;font-size:12px;line-height:1.9;color:var(--text)}
.story-memory .sm-context li{margin:0}
.story-memory .sm-context p{margin-top:7px;font-size:11.5px;color:var(--muted);line-height:1.75}
.story-memory>[data-sm-content]{min-width:0}
.sm-search{display:flex;align-items:end;gap:10px}
.sm-search[hidden],.sm-manual [hidden]{display:none}
.sm-search .field{flex:1;min-width:0}
.sm-record{padding:16px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.sm-record>summary{cursor:pointer;font-size:15px;font-weight:600;line-height:1.7;padding:6px 0}
.sm-record p{font-size:14px;line-height:1.85;margin:10px 0;white-space:pre-wrap}
.sm-record blockquote{font-size:13px;line-height:1.85;margin:10px 0;padding:8px 0 8px 14px;border-left:2px solid var(--line);color:var(--muted);white-space:pre-wrap;max-height:220px;overflow:auto;overscroll-behavior:contain}
.sm-record .button{margin:6px 8px 0 0;max-width:100%;white-space:normal;text-align:left}
.sm-record .row{gap:10px;justify-content:flex-start;flex-wrap:wrap}
.sm-record .row strong{font-size:13px;font-weight:600}
.sm-record>.sm-record{padding:12px 0 12px 14px;border-bottom:0;border-left:1px solid var(--line);margin-top:12px}
.sm-record>.sm-record:last-of-type{margin-bottom:10px}
.sm-evidence-label{display:block;color:var(--muted);font-size:11px;margin-top:12px}
.sm-current{border-top:1px solid var(--line);padding-top:18px;display:grid;gap:14px}
.sm-current h3{font-size:16px;line-height:1.7;overflow-wrap:anywhere;margin:0}
.sm-current p{margin:0}
.sm-manual{border-top:1px solid var(--line);padding-top:8px}
.sm-manual>summary{cursor:pointer;padding:10px 0}
.sm-manual>.stack{padding-top:14px}
.sm-manual .textarea{min-height:76px}
.sm-candidate{max-height:260px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;overscroll-behavior:contain}
.sm-empty{padding:22px 0;color:var(--muted);font-size:14px;line-height:1.85}
.sm-empty p{margin:0}
.story-memory [data-sm-error]:empty{display:none}
.story-memory summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
@media(max-width:600px){.sm-search{align-items:stretch;flex-direction:column}.story-memory .tabs .button{padding:9px 10px}.sm-current .toolbar .button{width:100%}}
@media(max-width:650px){.story-memory>[data-sm-overview]{padding:12px 14px}.story-memory .sm-record{padding:16px 0}.story-memory .sm-record .button{font-size:13px;line-height:1.65;min-height:44px}.story-memory .sm-record>.sm-record{padding-left:11px}.story-memory :is(.input,.select,.textarea){font-size:16px}.story-memory summary{min-height:44px;padding:10px 0}}
