.memory-workspace { max-width: 1120px; width: 100%; margin: 0 auto; }
.messenger.memory-active .workspace-hero { display: none; }
.memory-workspace h2 { margin: 0; }
.memory-workspace h3 { margin: 8px 0 12px; }
.memory-workspace .memory-toolbar, .memory-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.memory-workspace .memory-heading { justify-content: space-between; margin-bottom: 8px; }
.memory-workspace .memory-scope { color: #56665e; font-size: 14px; line-height: 1.7; margin: 0 0 22px; }
.memory-compose { border: 1px solid #dce4df; border-radius: 14px; padding: 18px; background: #f8faf8; margin-bottom: 24px; }
.memory-compose textarea, .memory-detail textarea { min-height: 112px; width: 100%; resize: vertical; }
.memory-compose input[type=text], .memory-detail input[type=text] { width: 100%; }
.memory-toolbar .memory-search { flex: 1; min-width: 0; }
.memory-toolbar .memory-search input { width: 100%; }
.memory-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 18px; }
.memory-list, .memory-jobs { display: grid; gap: 10px; min-width: 0; }
.memory-row { padding: 14px; border: 1px solid #e0e5e2; border-radius: 10px; background: #fff; min-width: 0; overflow-wrap: anywhere; }
.memory-row .memory-open { text-align: left; font-size: 15px; font-weight: 600; background: transparent; color: #253f32; border: 0; padding: 0; cursor: pointer; }
.memory-row p { margin: 8px 0; white-space: pre-wrap; }
.memory-row .memory-summary { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.memory-meta { color: #65736b; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.memory-detail { border: 1px solid #dce4df; border-radius: 12px; padding: 18px; min-width: 0; align-self: start; }
.memory-detail pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 300px; overflow-y: auto; font: 13px/1.6 ui-monospace, monospace; background: #f6f8f6; padding: 12px; }
.memory-detail blockquote { margin: 10px 0; border-left: 2px solid #aec2b4; padding-left: 12px; overflow-wrap: anywhere; }
.memory-detail details { margin: 14px 0; }
.memory-jobs { margin-top: 20px; }
.memory-job progress { width: 100%; max-width: 220px; }
.memory-notice { padding: 12px; border-radius: 8px; background: #fff6e5; margin: 12px 0; line-height: 1.6; }
.memory-attachments { display: flex; flex-wrap: wrap; gap: 8px; overflow-wrap: anywhere; }
.memory-attachment { display: flex; align-items: center; gap: 6px; border: 1px solid #d9e4dc; border-radius: 7px; padding: 7px; max-width: 100%; font-size: 12px; }
.memory-attachment > span, .memory-attachment > a { min-width: 0; overflow-wrap: anywhere; }
.file-picker { display: inline-flex; align-items: center; max-width: 100%; position: relative; cursor: pointer; overflow: hidden; }
.file-picker input[type=file] { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.file-picker:focus-within { outline: 2px solid #486e54; outline-offset: 2px; }
.memory-workspace .form-error:empty { display: none; }
.memory-workspace input[type=file] { max-width: 100%; }
@media (max-width: 960px) { .memory-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .memory-toolbar .memory-search { flex-basis: 100%; } }
@media (max-width: 400px) { .memory-compose, .memory-detail { padding: 12px; } .memory-toolbar .button { padding: 8px 10px; } .sidebar-nav { gap: 4px; } }
