/* Moments follows the existing home cards without expanding the bottom tabs. */
html body:not([data-home-view=calendar]) #homePage .mo-home-cards{grid-template-rows:repeat(4,minmax(0,1fr))}
html body #homePage #homeOverview[hidden],html body #momentsView[hidden]{display:none!important}
html body[data-home-view=moments] #homePage{overflow-y:auto!important;padding-top:calc(16px + var(--mo-safe-top));padding-bottom:calc(108px + var(--mo-safe-bottom))}
#momentsView{max-width:680px;margin:0 auto;color:var(--mo-ink)}
.moments-head{display:flex;align-items:center;gap:14px;margin:8px 0 20px}
.moments-head h2{margin:0;flex:1;font-family:Georgia,serif;font-size:36px;font-weight:400}
.moments-head button,.moments-sub button{border:1px solid var(--mo-line);border-radius:50%;background:var(--mo-pane);color:var(--mo-ink);width:42px;height:42px;font-size:22px}
.moments-sub{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;color:var(--mo-muted);font-size:12px}
.moments-sub button{border-radius:20px;width:auto;padding:0 15px;height:35px;font-size:12px}
#momentsStatus{min-height:20px;color:var(--mo-accent,#98605f);font-size:13px;line-height:1.7}
.moment-card{margin:0 0 16px;padding:20px;border:1px solid var(--mo-line);border-radius:25px;background:var(--mo-pane);text-align:left}
.moment-card-head{display:flex;align-items:center;gap:11px;margin-bottom:16px}
.moment-avatar{width:42px;height:42px;flex:none;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:var(--mo-line);font-size:18px}
.moment-avatar img{width:100%;height:100%;object-fit:cover}
.moment-who{display:grid;gap:5px;flex:1}.moment-who strong{font-weight:500;font-size:15px}.moment-who time{font-size:11px;color:var(--mo-muted)}
.moment-card button{font-family:inherit;color:inherit;cursor:pointer}.moment-remove{border:0;background:none;color:var(--mo-muted)!important;font-size:11px;padding:8px}
.moment-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.85;margin:0 0 15px}
.moment-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:12px 0}.moment-images[data-count="1"]{grid-template-columns:1fr}
.moment-images img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:15px;background:var(--mo-line);font-size:12px;color:var(--mo-muted)}
.moment-images[data-count="1"] img{aspect-ratio:auto;max-height:420px;object-fit:contain}.moment-images img.image-error{min-height:120px;cursor:pointer}
.moment-actions{display:flex;align-items:center;gap:12px;margin-top:10px}.moment-like{border:1px solid var(--mo-line);border-radius:18px;background:transparent;padding:8px 13px;font-size:13px}.moment-like.is-liked{color:var(--mo-accent,#98605f)}.moment-likes{font-size:11px;color:var(--mo-muted)}
.moment-comments{margin:14px 0 0;padding:13px 14px;border-radius:16px;background:var(--mo-line);font-size:13px;line-height:1.8}
.moment-comment{overflow-wrap:anywhere;white-space:pre-wrap}.moment-comment+.moment-comment{margin-top:8px}.moment-comment strong{font-weight:500;margin-right:7px;color:var(--mo-accent,#98605f)}
.moment-reply-state{display:block;color:var(--mo-muted);margin-top:7px;font-size:11px}.moment-retry{background:none;border:0;font-size:12px;padding:4px 0}
.moment-comment-form{display:flex;gap:10px;margin-top:16px;align-items:center}#homePage .moment-comment-form input{min-width:0;margin:0;background:transparent;border:0;border-bottom:1px solid var(--mo-line);border-radius:0;padding:9px 0;font-size:14px}.moment-comment-form button{flex:none;border:0;background:none;font-size:12px;padding:9px 0}
#momentsEmpty{padding:55px 22px;text-align:center;color:var(--mo-muted);font-size:14px;line-height:2}#momentsMore{display:block;margin:15px auto;padding:10px 20px;border:1px solid var(--mo-line);border-radius:22px;background:var(--mo-pane);color:var(--mo-ink)}
#momentComposer{padding:24px;width:min(92vw,560px);border:1px solid var(--mo-line);border-radius:28px;background:var(--mo-pane);color:var(--mo-ink);max-height:85dvh;overflow-y:auto}
#momentComposer::backdrop{background:rgba(0,0,0,.25)}.moment-compose-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.moment-compose-head h2{font-size:22px;font-weight:500;margin:0}.moment-compose-head button{border:1px solid var(--mo-line);border-radius:22px;padding:9px 15px;background:transparent;color:inherit}
#momentComposer textarea{width:100%;min-height:150px;border:1px solid var(--mo-line);background:transparent;color:inherit;font:inherit;font-size:16px;line-height:1.8;border-radius:15px;padding:13px;resize:vertical}
.moment-compose-foot{display:flex;justify-content:space-between;gap:15px;margin-top:17px}.moment-compose-foot button{padding:11px 19px;border:1px solid var(--mo-line);border-radius:23px;background:transparent;color:inherit;font-size:14px}.moment-compose-foot #momentPublish{background:var(--mo-ink);color:var(--mo-bg,#fff)}
#momentDraftStatus{font-size:12px;color:var(--mo-accent,#98605f);min-height:18px;margin:10px 0 0}#momentPreviews{display:flex;gap:9px;overflow-x:auto;margin-top:14px}.moment-preview{position:relative;flex:none}.moment-preview img{width:85px;height:85px;border-radius:12px;object-fit:cover}.moment-preview button{position:absolute;right:3px;top:3px;background:#fff;color:#333;width:23px;height:23px;border:0;border-radius:50%}
#momentsView button:disabled,#momentComposer button:disabled{opacity:.45;cursor:wait}
.moment-remove-dialog{width:min(90vw,390px);padding:24px;border:1px solid var(--mo-line);border-radius:25px;background:var(--mo-pane);color:var(--mo-ink)}.moment-remove-dialog h2{font-size:20px;margin-top:0}.moment-remove-dialog p{font-size:13px;color:var(--mo-muted)}.moment-remove-dialog::backdrop{background:rgba(0,0,0,.25)}
@container home-fit (max-height:680px){#homePage #homeOverview .mo-feature-title{font-size:22px;margin:6px 0 3px}#homePage #homeOverview .mo-feature-foot{display:none}#homePage #homeOverview .mo-home-cards{gap:8px!important}#homePage #homeOverview .mo-feature{padding:12px 15px}}
@container home-fit (max-height:480px){#homePage #homeOverview .mo-feature-title{font-size:19px;margin:3px 0}#homePage #homeOverview .mo-feature-cn{font-size:10px}#homePage #homeOverview .mo-feature-top{font-size:8px}#homePage #homeOverview .mo-feature{padding:7px 12px}}
