#workspace-memory .memory-toolbar{display:flex;align-items:center;gap:18px;margin-bottom:18px;max-width:580px}
#workspace-memory .memory-toolbar label{flex:1;margin:0}
#workspace-memory .memory-toolbar>.btn{margin-top:20px}
#workspace-memory .memory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#workspace-memory .memory-card{display:flex;flex-direction:column}
#workspace-memory .memory-card header,#workspace-memory .memory-history header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;font-size:10px}
#workspace-memory .memory-card h2{font-size:18px;line-height:1.4}
#workspace-memory .memory-content{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink)}
#workspace-memory .memory-source,#workspace-memory .memory-reason{font-size:11px;line-height:1.7;color:var(--muted);overflow-wrap:anywhere}
#workspace-memory .memory-card .actions{margin-top:auto;padding-top:18px}
#workspace-memory .memory-card details{border:1px solid var(--line);border-radius:8px;padding:12px;margin-bottom:18px}
#workspace-memory summary{cursor:pointer;font-size:12px;color:var(--muted)}
#workspace-memory details .memory-content{margin-top:15px}
#workspace-memory .memory-empty{grid-column:1/-1;padding:35px}
#workspace-memory .memory-form,#workspace-memory .memory-history{margin-bottom:24px}
#workspace-memory .memory-form>p{font-size:12px}
#workspace-memory .memory-history article{border-top:1px solid var(--line);padding:20px 0 4px}
#workspace-memory #memory-status:empty{display:none}
#workspace-memory .memory-form input,#workspace-memory .memory-form textarea{font-size:13px}
@media(max-width:1000px){#workspace-memory .memory-grid{grid-template-columns:1fr}}
@media(max-width:650px){#workspace-memory .form-row{grid-template-columns:1fr}#workspace-memory .memory-history header{align-items:flex-start}#workspace-memory .memory-card .actions{gap:8px}}
