.memory-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 26px}.memory-intro{font-family:"KaiTi","STKaiti",serif;font-size:18px;margin:0 0 9px;color:#716a6c}#memory-count{font-size:12px;color:var(--muted)}.memory-primary{background:var(--ink);color:white;padding:12px 19px;border-radius:6px;font-size:13px;white-space:nowrap}.memory-primary:hover{background:#3c5069}.memory-primary:disabled{opacity:.55;cursor:wait}.memory-controls{display:flex;align-items:start;gap:14px;flex-wrap:wrap}.memory-controls .search{max-width:none;min-width:200px}.memory-controls>.plain-button{height:42px;white-space:nowrap}.memory-filters{position:relative}.memory-filters summary{cursor:pointer;list-style:none;padding:13px 8px;font-size:12px}.filter-fields{position:absolute;z-index:3;right:0;top:43px;background:#fffdfa;border:1px solid var(--line);border-radius:7px;padding:18px;min-width:240px;box-shadow:0 5px 15px #29374b12}.filter-fields label{display:block;font-size:12px;margin-bottom:12px}.filter-fields input,.filter-fields select{display:block;width:100%;margin-top:6px;padding:8px;border:1px solid #d4cfc9;border-radius:4px;background:#fffdfa;color:var(--ink)}.filter-fields button{background:#eeeae6;padding:8px;border-radius:4px}.memory-status{font-size:12px;color:#6c6269;line-height:1.7;min-height:18px;margin:12px 0 22px}#memory-wall.has-notes{columns:3;column-gap:20px}.memory-note{display:inline-block;vertical-align:top;break-inside:avoid;width:100%;text-align:left;padding:21px;margin:0 0 20px;border-radius:3px;background:#f5f0e6}.note-rose{background:#f4e1e7}.note-blue{background:#e3edf3}.note-yellow{background:#f6edcb}.note-cream{background:#f2eee5}.memory-note:hover{outline:1px solid #b6a9a0;outline-offset:2px}.note-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:#6f6870;margin-bottom:21px}.memory-note h3{font-family:"STSong","SimSun",serif;font-size:20px;line-height:1.6;font-weight:600;margin:0 0 12px;overflow-wrap:anywhere}.memory-note p{font-size:14px;line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 24px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:7;overflow:hidden}.note-bottom{display:flex;justify-content:space-between;font-size:11px;color:#706973}.note-photo{margin:-5px -6px 17px;position:relative}.note-photo img{display:block;width:100%;height:auto;max-height:330px;object-fit:cover;border:5px solid #fffdf7}.note-photo>span{position:absolute;bottom:10px;right:10px;background:#fffdfa;padding:4px 7px;font-size:10px;border-radius:3px}.memory-empty{background:transparent;min-height:330px;padding-top:46px;border:1px dashed #d9d0c6}.memory-empty h3{font-family:"STSong","SimSun",serif;font-size:25px;line-height:1.7;margin:19px 0 10px}.memory-empty p{font-size:13px;line-height:2;margin-bottom:24px}.empty-date{font-size:12px;color:#8a7380}.memory-dialog{color:var(--ink);background:#fcf9f4;border:1px solid #e1d9d1;border-radius:12px;padding:28px;max-width:650px;width:calc(100% - 32px);max-height:90vh;overflow-y:auto}.memory-dialog::backdrop{background:#29374b66}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.dialog-heading h2{font-family:"STSong","SimSun",serif;font-size:25px}.dialog-heading>button,.detail-close{background:none;font-size:27px;line-height:30px;width:36px;height:36px}.memory-dialog label{font-size:13px}.memory-dialog label>span{color:var(--muted);font-size:12px}.memory-dialog input:not([type=radio]):not([type=file]),.memory-dialog textarea,.memory-dialog select{display:block;background:#fffdfa;border:1px solid #d9d1ca;border-radius:5px;width:100%;padding:11px;color:var(--ink);font:inherit;margin:9px 0 21px;min-width:0}.memory-dialog textarea{line-height:1.85;resize:vertical;font-size:14px}.memory-dialog input[type=datetime-local]{font-size:12px!important;min-height:42px}.form-pair{display:grid;grid-template-columns:1fr 1fr;gap:20px}.note-colors{margin:0 0 24px;padding:0;border:none;display:flex;flex-wrap:wrap;gap:10px}.note-colors legend{font-size:13px;margin-bottom:11px}.color-choice{display:flex;align-items:center;gap:6px;padding:9px 11px;border-radius:4px;font-size:12px!important}.color-rose{background:#f4e1e7}.color-blue{background:#e3edf3}.color-yellow{background:#f6edcb}.color-cream{background:#f2eee5}.color-choice input{margin:0;accent-color:#29374b}.upload-heading{display:flex;justify-content:space-between;align-items:center}.upload-button{position:relative;display:inline-block;cursor:pointer;padding:9px 12px;border:1px solid #cfc7bd;border-radius:5px;background:#fffdfa}.upload-button:focus-within{outline:3px solid #6088a4;outline-offset:3px}.upload-button input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.upload-help,#photo-count,.draft-status{font-size:11px;color:var(--muted);line-height:1.8}.draft-status{margin-top:22px}.error{font-size:13px;color:#a93e55;line-height:1.8}.editor-actions{display:flex;justify-content:flex-end;align-items:center;gap:15px;border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.editor-actions>button:not(.memory-primary){background:none;padding:10px;font-size:13px}#chosen-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.chosen-photo img{width:100%;height:115px;object-fit:cover;border-radius:4px}.chosen-photo>div{display:flex;justify-content:space-between;gap:2px;align-items:center;margin-top:5px;font-size:11px}.chosen-photo button{padding:4px;background:#eee9e2;border-radius:3px;font-size:11px}.chosen-photo button:disabled{opacity:.3}.detail-close{float:right}.detail-meta{font-size:12px;color:var(--muted);margin:8px 40px 24px 0}.memory-dialog #detail-title{font-family:"STSong","SimSun",serif;font-size:27px;line-height:1.6;margin:0 0 24px;overflow-wrap:anywhere}.detail-body{line-height:2;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px}.detail-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.detail-photos figure{margin:12px 0}.detail-photos img{width:100%;height:auto;border-radius:3px}.detail-photos figcaption{font-size:11px;color:var(--muted);margin-top:8px}.detail-photos figcaption a{text-decoration:underline}.detail-footnote{font-size:11px;color:var(--muted);margin:28px 0 16px;line-height:1.8}.memory-actions{display:flex;gap:10px;flex-wrap:wrap}.memory-actions button{font-size:12px;padding:10px;background:#eee9e2;border-radius:5px}.memory-actions .danger{color:#a03f51}.history-version{border-top:1px solid var(--line);padding:14px 0}.history-version summary{font-size:12px;cursor:pointer;line-height:1.8}.history-version small{font-size:11px;color:var(--muted)}#history-content>h3{font-size:16px;margin-top:28px}.confirm-dialog{max-width:430px}.confirm-dialog>p{font-size:14px;line-height:2;margin-top:24px}.confirm-dialog h2{line-height:1.6}.nav-button[data-view=memories] span{font-size:20px}.canvas:has(.memory-module){padding-top:28px}.canvas:has(.memory-module)>.intro{display:none}.canvas:has(.memory-module) .section-heading{margin-top:5px;margin-bottom:24px}
#chosen-photos .chosen-photo>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));text-align:center;gap:4px}.chosen-photo button{min-height:36px}.chosen-photo button:last-child{grid-column:1/-1}.memory-filters summary:focus-visible{outline:3px solid #6088a4;outline-offset:3px}
@media(max-width:700px){.memory-controls{position:relative}.memory-controls .memory-filters{position:static}.memory-controls .filter-fields{left:0;right:0;top:100%;min-width:0}}
@media(max-width:1100px){#memory-wall.has-notes{columns:2}.memory-controls{gap:10px}.memory-note{padding:18px}.memory-toolbar{align-items:flex-start}}
@media(max-width:700px){.sidebar nav{flex-wrap:wrap}.nav-button{flex:1 1 40%;justify-content:flex-start;padding-left:14px}.memory-toolbar{gap:10px}.memory-intro{font-size:16px}.memory-primary{font-size:12px;padding:11px 13px}.memory-toolbar .memory-primary{margin-top:0}#memory-wall.has-notes{columns:1}.memory-note{padding:24px}.memory-note h3{font-size:22px}.note-meta{font-size:12px}.note-photo img{max-height:420px}.memory-controls .search{flex:1 0 70%}.memory-filters{order:2}.memory-controls>.plain-button{order:2;height:44px}.memory-filters summary{padding:14px 5px}.filter-fields{right:auto;left:0;top:44px}.memory-dialog{padding:21px 18px;max-height:92dvh}.form-pair{grid-template-columns:1fr;gap:0}.color-choice{padding:12px 8px}.note-colors{gap:6px}.detail-photos{grid-template-columns:1fr}#chosen-photos{grid-template-columns:repeat(2,minmax(0,1fr))}.chosen-photo img{height:110px}.chosen-photo button{padding:5px 3px;min-height:44px}.memory-empty{min-height:340px;padding:45px 16px}.memory-empty h3{font-size:22px}.memory-dialog #detail-title{font-size:24px}.canvas:has(.memory-module){padding-top:24px}.memory-toolbar{flex-wrap:wrap}}
