html,body{touch-action:pan-y pinch-zoom}
.small,.time,#feedStatus,#moduleSaveStatus,.module-note,.module-description{font-size:12px;line-height:1.75}
.brand-lockup .small{font-size:11px;letter-spacing:.8px}
.topbar{gap:12px}.composer,.post{border-color:#eae0d9;background:#fffefd}
.content{font-size:16px;line-height:1.95}.post-head{align-items:flex-start}.post-tools{display:flex;gap:2px;flex-wrap:wrap;justify-content:flex-end;max-width:150px}.post-tools .ghost{font-size:12px;padding:6px;border:0;background:none;font-weight:400}
.draft-status{min-height:20px;font-size:12px;color:var(--muted);margin-top:10px;line-height:1.7}
.draft-status:empty{display:none;min-height:0}.feed-actions{display:flex;gap:8px;align-items:center}.feed-actions [data-memories]{font-size:12px;padding:8px 10px;color:var(--accent);background:transparent;font-weight:500}
.archive-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:0 0 22px;padding:15px 0 17px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.archive-filters label{font-size:12px;color:var(--muted);display:grid;gap:5px}.archive-filters input[type=month]{font-size:13px;padding:7px 9px;min-height:36px;width:150px;background:transparent}.archive-filters input[type=checkbox]{width:16px;height:16px;accent-color:var(--accent);padding:0;margin:0}.archive-filters label.photo-filter{display:flex;align-items:center;gap:6px;min-height:36px;color:var(--text)}.archive-filters .ghost{font-size:12px;padding:8px 9px;min-height:36px;background:transparent}.archive-filters [data-memories]{margin-left:auto;color:var(--accent)}
.settings-tools{display:grid;gap:10px;margin-top:24px;padding-top:22px;border-top:1px solid var(--line)}.settings-tools button{justify-content:space-between;font-size:14px;background:var(--card);padding:14px 15px}
.record-modal{position:fixed;inset:0;z-index:1100;display:flex;align-items:center;justify-content:center;padding:20px 14px;background:#302a2759}.record-panel{width:min(560px,100%);max-height:calc(100dvh - 40px);overflow:auto;background:var(--bg);border:1px solid var(--line);border-radius:24px;box-shadow:0 20px 80px #47302628}.record-panel-head{padding:24px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--accent);margin:0 0 6px}.record-panel h2{font-size:23px;margin:0}.record-form{padding:20px 24px}.record-form label{display:grid;gap:8px;font-size:13px;color:var(--muted);margin-top:18px}.record-form textarea{font-size:16px;line-height:1.85;min-height:100px}.record-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px}
.preview.photo-selection,#wishPhotoPreview.photo-selection{display:block;grid-template-columns:none}.photo-selection-count{font-size:12px;color:var(--muted);margin:9px 0 10px;line-height:1.7}.photo-selection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.photo-selection-tile{position:relative;min-width:0;padding-bottom:34px;background:#f5eeea;border-radius:12px;overflow:hidden}.photo-selection-tile img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:0}.photo-selection-number{position:absolute;left:7px;top:7px;display:grid;place-items:center;background:#302a2788;color:white;width:22px;height:22px;border-radius:50%;font-size:11px}.photo-selection-tools{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:space-evenly;align-items:center;height:34px}.photo-selection-tools button{min-width:28px;min-height:30px;padding:3px 5px;border:0;background:none;color:var(--text);font-size:16px}.photo-selection-tools button:disabled{opacity:.25;cursor:default}
.photo-viewer-pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin:4px 0 6px;font-size:13px;color:#d1c8c0}.photo-viewer-pagination button{min-width:78px;height:36px;padding:6px 10px;border:1px solid #ffffff26;border-radius:9px;background:#ffffff0c;color:#fff;font-size:13px}.photo-viewer-status{font-size:12px}
.update-notice{position:fixed;left:16px;right:16px;bottom:calc(20px + env(safe-area-inset-bottom));margin:auto;z-index:2000;max-width:470px;display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--line,#eee5de);border-radius:17px;background:#fffaf7;box-shadow:0 12px 40px #47302622;padding:15px 17px;font:13px/1.7 -apple-system,BlinkMacSystemFont,sans-serif;color:#392e2b}.update-notice button,.update-notice a{flex:none;border:0;background:none;color:#98605c;font-size:13px;font-weight:600;padding:6px;cursor:pointer}
@media(max-width:500px){.archive-filters{gap:10px}.archive-filters input[type=month]{width:147px}.archive-filters [data-memories]{margin-left:0}.post-tools{max-width:135px}.post-tools .ghost{font-size:11px}.brand-lockup .small{font-size:10px}.record-form{padding:18px}.record-panel-head{padding:21px 18px}.photo-selection-grid{gap:7px}.photo-viewer-bar{flex-wrap:wrap}.photo-viewer-bar>div{gap:5px}.photo-viewer-bar button,.photo-viewer-bar .photo-download{font-size:12px;padding:7px 8px}.module-description{font-size:12px}.photo-viewer-title{font-size:12px}}
@media print{.record-modal,.update-notice,.settings-modal{display:none!important}}
.session-notice{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 8px;padding:7px 11px;border-radius:10px;background:#f6eee8;color:var(--muted);font-size:12px;line-height:1.65}
.wish-query-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px;padding:7px 10px;background:#f6eee8;border-radius:10px;color:var(--muted);font-size:12px}
.wish-query-summary span{overflow-wrap:anywhere}
.wish-query-summary .ghost{flex:none;padding:5px 7px;font-size:12px;background:transparent}
.session-notice .ghost{flex:none;min-height:28px;padding:4px 8px;font-size:12px;background:transparent}
.feed-actions .filter-toggle{min-height:34px;padding:7px 10px;font-size:13px;background:transparent}
.feed-actions .filter-toggle.filter-active{color:var(--accent);background:#f5e9e3;border-color:#ebd7cc}
.photos a.preview-unavailable{pointer-events:auto}
.photos a.preview-unavailable .photo-note{color:var(--accent);padding:0 8px;text-decoration:underline;text-underline-offset:3px}
@media(max-width:500px){
  .composer{padding:16px}
  .composer #postContent{min-height:76px}
  .feed-actions{gap:4px}
  .feed-actions .filter-toggle,.feed-actions [data-memories]{padding-inline:7px}
}
