.memory-dialog{width:min(42rem,calc(100vw - 1.5rem));max-height:calc(100dvh - 1.5rem)}
.memory-content{display:flex;flex-direction:column;max-height:calc(100dvh - 2rem)}
.memory-content .dialog-scroll{overflow:auto;min-height:0;padding:0 1.5rem 1.5rem}
.memory-actions,.memory-evidence{display:flex;gap:.7rem;flex-wrap:wrap;margin:.7rem 0}
.memory-record{border-block-start:1px solid var(--line,#d9ddd5);padding:1rem 0;overflow-wrap:anywhere}
.memory-text{white-space:pre-wrap;unicode-bidi:plaintext}
#memory-form{display:grid;gap:.6rem;padding:1rem 0;border-block:1px solid var(--line,#d9ddd5)}
#memory-form select,#memory-form textarea{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:.7rem;border:1px solid #abb8ad;border-radius:.5rem;font:inherit;background:#fff;color:#244a39}
.memory-checkbox,#memory-enable-label{display:flex;gap:.7rem;align-items:flex-start;margin-block:.7rem}
.memory-checkbox input,#memory-enable-label input{flex:0 0 auto;width:1.2rem;height:1.2rem;margin-top:.1rem}
#memory-error{color:#963e2b;overflow-wrap:anywhere}
@media(max-width:600px){.memory-content .dialog-scroll{padding:0 1rem 1rem}.memory-actions button{flex:1 1 auto}}

.memory-content .dialog-header h2{flex:1}
.memory-content p{line-height:1.55}
#memory-form select,#memory-form textarea{font-size:16px}
