.memory-shell .topbar .brand span{max-width:940px}.memory-hero{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.memory-hero-copy{max-width:780px}.memory-badges{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.memory-badges span,.memory-pill{border:1px solid rgba(80,160,220,.28);background:rgba(40,100,180,.08);border-radius:999px;padding:7px 10px;font-size:12px;color:#c7e7ff}.memory-pill.active{border-color:rgba(55,224,138,.45);color:#37e08a}.memory-pill.suggested{border-color:rgba(255,181,61,.45);color:#ffb53d}.memory-pill.disabled,.memory-pill.archived{border-color:rgba(255,82,82,.38);color:#ff8888}.memory-toolbar{display:grid;grid-template-columns:1fr 220px 220px auto;gap:10px;align-items:end}.memory-toolbar label,.memory-editor label{display:flex;flex-direction:column;gap:6px;font-size:12px;letter-spacing:.8px;text-transform:uppercase;color:#7da9c9}.memory-toolbar input,.memory-toolbar select,.memory-editor input,.memory-editor select,.memory-editor textarea{background:rgba(4,10,20,.6);border:1px solid rgba(80,160,220,.26);color:#eaf6ff;border-radius:10px;padding:10px 12px;font:inherit;text-transform:none;letter-spacing:0}.memory-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.memory-card{border:1px solid rgba(80,160,220,.22);background:rgba(6,15,30,.54);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:10px;min-height:220px}.memory-card.selected{box-shadow:0 0 0 2px rgba(55,224,138,.35)}.memory-card h3{margin:0;color:#eaf6ff;font-size:18px}.memory-card p{margin:0;color:#a9c9e4;line-height:1.5}.memory-card small{color:#6d8dad}.memory-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}.memory-meta{display:flex;gap:6px;flex-wrap:wrap}.memory-tag{font-size:11px;border:1px solid rgba(80,160,220,.18);border-radius:999px;padding:4px 8px;color:#9ac7e7}.memory-editor{display:grid;grid-template-columns:1fr 1fr;gap:12px}.memory-editor .wide{grid-column:1/-1}.memory-editor textarea{min-height:130px;resize:vertical}.memory-preview{white-space:pre-wrap;overflow:auto;max-height:360px}.memory-empty{border:1px dashed rgba(80,160,220,.28);border-radius:16px;padding:20px;color:#9dbbd8;text-align:center}.danger-zone{border-color:rgba(255,82,82,.3)}@media(max-width:980px){.memory-hero{display:block}.memory-toolbar{grid-template-columns:1fr}.memory-list{grid-template-columns:1fr}.memory-editor{grid-template-columns:1fr}.memory-badges{justify-content:flex-start;margin-top:12px}}

/* LIFE.SAVER v0.8.3 — Mobile memory cards and touch controls */
.memory-shell{overflow-x:hidden}.memory-list{min-width:0}.memory-card{overflow-wrap:anywhere}.memory-card-actions .btn{min-height:44px;flex:1 1 120px;text-align:center}.memory-editor input,.memory-editor select,.memory-editor textarea,.memory-toolbar input,.memory-toolbar select{min-height:44px;box-sizing:border-box;max-width:100%}.memory-preview{max-width:100%;overflow-x:auto}.memory-mobile-helper{display:none}.memory-card small{line-height:1.45}.memory-card-actions{align-items:stretch}
@media(max-width:980px){.memory-shell .grid.two{grid-template-columns:1fr}.memory-toolbar .footer-actions{display:grid;grid-template-columns:1fr;gap:8px}.memory-toolbar .footer-actions .btn{width:100%;min-height:46px}.memory-mobile-helper{display:block;border:1px solid rgba(80,160,220,.22);background:rgba(40,100,180,.07);border-radius:14px;padding:12px;margin-top:12px;color:#b9dcf7}.memory-card-actions{display:grid;grid-template-columns:1fr 1fr}.memory-card-actions .btn{width:100%;min-height:48px}.memory-editor{gap:10px}.memory-editor label{min-width:0}.memory-badges span{min-height:36px;display:inline-flex;align-items:center}}
@media(max-width:520px){.memory-card-actions{grid-template-columns:1fr}.memory-card{padding:13px;min-height:0}.memory-meta{gap:5px}.memory-pill,.memory-tag{font-size:10px}.memory-hero h2{font-size:24px;line-height:1.15}.memory-toolbar{gap:12px}.memory-editor textarea{min-height:150px}}
