.memory-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:28px 30px;background:linear-gradient(120deg,#0b3b46,#145768);color:#fff;border-radius:18px;margin-bottom:18px}.memory-hero small{display:block;letter-spacing:.16em;color:#c9e970;font-weight:800;margin-bottom:8px}.memory-hero h2{font-size:30px;margin:0 0 8px}.memory-hero p{margin:0;max-width:760px;color:#d9e7ea;line-height:1.6}.memory-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px}.memory-stats>div{background:#fff;border:1px solid #d7e3e6;border-radius:14px;padding:18px 20px}.memory-stats span{display:block;color:#6d8790;font-size:14px}.memory-stats strong{display:block;font-size:28px;margin-top:5px;color:#0a3945}.memory-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) 220px 180px;gap:12px;background:#fff;border:1px solid #d7e3e6;border-radius:14px;padding:14px;margin-bottom:16px}.memory-toolbar input,.memory-toolbar select,.memory-form input,.memory-form select,.memory-form textarea{width:100%;border:1px solid #cbdde1;border-radius:10px;background:#fff;color:#143d48;font:inherit;padding:12px 14px}.memory-list{display:grid;gap:14px}.memory-card{background:#fff;border:1px solid #d7e3e6;border-radius:15px;padding:20px}.memory-card-head{display:flex;justify-content:space-between;align-items:center}.memory-category,.memory-status{display:inline-flex;border-radius:99px;padding:5px 10px;font-size:13px;font-weight:750;margin-right:7px;background:#edf4f5;color:#315e68}.memory-status.active{background:#edf8ce;color:#456d08}.memory-status.archived{background:#f1f1f1;color:#747474}.memory-card h3{font-size:21px;margin:15px 0 8px}.memory-card>p{white-space:pre-wrap;line-height:1.65;color:#365c65;max-height:8em;overflow:hidden}.memory-tags{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.memory-tags span{background:#f3f7f8;border-radius:7px;padding:4px 8px;color:#58757c;font-size:13px}.memory-card footer{display:flex;flex-wrap:wrap;gap:10px 24px;border-top:1px solid #edf2f3;padding-top:13px;color:#70878d;font-size:13px}.memory-empty{text-align:center;background:#fff;border:1px dashed #b9ccd1;border-radius:15px;padding:60px 20px}.memory-empty strong{font-size:22px}.memory-empty p{color:#6d8790}.memory-dialog{width:min(820px,calc(100vw - 30px));border:0;border-radius:18px;padding:0;color:#123944;box-shadow:0 24px 80px #082c3866}.memory-dialog::backdrop{background:#092f3a99}.memory-dialog form>header,.memory-dialog form>footer{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #e1eaec}.memory-dialog form>footer{border:0;border-top:1px solid #e1eaec;justify-content:flex-end;gap:10px}.memory-dialog header small{color:#78920d;font-weight:800;letter-spacing:.12em}.memory-dialog h3{margin:4px 0 0;font-size:24px}.memory-dialog header button{border:0;background:#eef4f5;border-radius:10px;font-size:26px;width:44px;height:44px}.memory-form{display:grid;grid-template-columns:1fr 1fr;gap:15px;padding:22px 24px;max-height:68vh;overflow:auto}.memory-form label>span{display:block;font-weight:700;margin-bottom:7px}.memory-content{grid-column:1/-1}.memory-form textarea{resize:vertical;line-height:1.55}.memory-check{display:flex;align-items:center;gap:9px;grid-column:1/-1}.memory-check input{width:20px;height:20px}.memory-check span{margin:0!important}.button.primary{background:#c7e661;color:#143d48;border-color:#a7cb35;font-weight:800}
@media(max-width:760px){.memory-hero{padding:22px;flex-direction:column}.memory-hero .button{width:100%}.memory-stats{grid-template-columns:1fr}.memory-toolbar{grid-template-columns:1fr}.memory-form{grid-template-columns:1fr}.memory-content,.memory-check{grid-column:auto}.memory-card footer{display:grid}.memory-dialog{width:calc(100vw - 16px)}}
