#assistantMemoryModal{z-index:10030;padding:0;place-items:stretch;background:#111619}
#assistantMemoryModal .memory-card{width:100%;height:100dvh;max-width:none;max-height:none;box-sizing:border-box;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;background:#111619;color:#e4e9e7;border:0;border-radius:0;box-shadow:none;padding:16px 24px;font-size:16px}
.memory-card header{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:1;background:#111619;padding:0 0 8px}
.memory-card h2{margin:0;color:#00a878}
.memory-header-actions{display:flex;align-items:center;gap:8px;flex:none}
.memory-header-actions [data-memory-save]{min-width:96px;min-height:38px;padding:4px 10px;white-space:pre-line;line-height:1.1}
.memory-card p,.memory-card small{line-height:1.5}
.memory-card small{display:block;color:#a4afab;font-size:1em}
.memory-card .memory-help{font-size:1em}
.memory-card select,.memory-card textarea,.memory-card input{display:block;width:100%;box-sizing:border-box;background:#000;color:#edf1ef;border:1px solid #53605b;border-radius:8px;padding:10px;font:inherit}
.memory-profile{margin:12px 0;padding:0;border:0;border-radius:0}
.memory-card .field-label{display:block;margin:14px 0 8px;color:#d1a667;font-size:1em}
.memory-card [data-memory-list]{margin:12px 0;max-height:none;overflow:visible}
.memory-card article{padding:10px 0;border-bottom:1px solid #303a38}
.memory-card article p{margin:0 0 8px;white-space:pre-wrap;overflow-wrap:anywhere}
.memory-card article>div,.memory-editor-actions{display:flex;flex-wrap:wrap;gap:8px}
.memory-card [data-memory-status]{color:#d1a667}
.memory-card button:not(.icon-button){font:600 1em/1.2 'DM Sans',Arial,sans-serif}
.assistant-header>div:first-child{flex:1;min-width:0}
.settings-memory-entry{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:8px 0 14px;padding:10px 0;border-bottom:1px solid #303a38}
.settings-memory-entry button{font:600 14px 'DM Sans',Arial,sans-serif;color:#d1a667}
.settings-memory-entry small{font-size:16px;color:#a4afab}
@media(max-width:480px){#assistantMemoryModal .memory-card{padding:12px 10px}.memory-card header{gap:8px}.memory-card h2{font-size:1.1em}.memory-header-actions{gap:6px}.memory-header-actions [data-memory-save]{min-width:82px;padding:4px 7px}.memory-editor-actions button{flex:1}}
