#memoryList.memory-library { display:block; color:#223d35; --ml-line:#dce8e2; }
.memory-library * { box-sizing:border-box; }
.memory-library [hidden] { display:none !important; }
.memory-library h2 { font-size:20px; margin:12px 0; }
.memory-library h3 { font-size:15px; margin:24px 0 12px; }
.ml-heading { display:flex; align-items:center; gap:14px; }
.ml-types { display:grid; grid-template-columns:repeat(auto-fit,minmax(135px,1fr)); gap:12px; }
.memory-library button { font:inherit; color:inherit; cursor:pointer; }
.memory-library button:focus-visible { outline:3px solid #478a73; outline-offset:3px; }
.memory-library button:disabled { opacity:.5; cursor:wait; }
.ml-tile { display:flex; flex-direction:column; text-align:left; gap:6px; padding:14px; border:1px solid var(--ml-line); border-radius:16px; background:#f4f9f6; }
.ml-tile strong { font-size:26px; line-height:1.2; font-weight:500; }
.ml-tile small,.ml-muted { color:#64766e; font-size:12px; line-height:1.7; }
.ml-organize { width:100%; margin:20px 0 8px; padding:18px 20px; display:flex; justify-content:space-between; gap:12px; text-align:left; background:#e6f1eb; border:0; border-radius:14px; }
.ml-organize span { font-size:12px; }
.ml-tags,.ml-actions { display:flex; flex-wrap:wrap; gap:8px; }
.ml-tag,.ml-button { padding:9px 14px; border:1px solid var(--ml-line); border-radius:10px; background:#f9fcfa; }
.ml-tag { border-radius:20px; font-size:13px !important; }
.ml-row { display:flex; width:100%; flex-direction:column; align-items:flex-start; text-align:left; gap:7px; padding:18px 8px; border:0; border-bottom:1px solid var(--ml-line); background:transparent; overflow-wrap:anywhere; }
.ml-row:hover,.ml-tile:hover { background:#eaf3ee; }
.ml-row strong { font-size:14px; font-weight:500; }
.ml-detail { padding:22px; background:#f9fcfa; border:1px solid var(--ml-line); border-radius:16px; min-width:0; }
.ml-detail h2 { line-height:1.5; overflow-wrap:anywhere; }
.ml-body { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.85; font-size:14px; margin:22px 0; }
.ml-source { overflow-wrap:anywhere; font-size:11px; color:#64766e; }
.ml-actions { border-top:1px solid var(--ml-line); padding-top:20px; margin-top:24px; }
.ml-danger { color:#9f423c !important; }
.ml-suggestion { border:1px solid var(--ml-line); border-radius:14px; padding:4px 18px 18px; margin-top:16px; }
.ml-comparison { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:16px; margin:16px 0; }
.ml-comparison section { min-width:0; padding:12px; border:1px solid var(--ml-line); border-radius:10px; }
.ml-keep { color:#367a58; display:block; margin-top:6px; }
.ml-confirm { background:#fff4e8; padding:16px; border-radius:12px; margin-top:12px; font-size:13px; }
.ml-confirm button { margin-right:8px; }
.ml-notice:empty { display:none; }
.ml-notice { line-height:1.6; font-size:13px; grid-column:1/-1; }
@media(min-width:900px) {
  #memoryList.memory-library.ml-reading { display:grid; grid-template-columns:minmax(0,1fr) minmax(300px,1fr); gap:24px; align-items:start; }
  .ml-detail { position:sticky; top:12px; max-height:75vh; overflow:auto; }
}
@media(max-width:899px) {
  .ml-reading .ml-content { display:none; }
  .ml-types { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ml-organize { flex-direction:column; }
  .ml-detail { padding:18px; }
}
