.v2-moments-dialog, .v2-moments-dialog * { box-sizing:border-box; }
.v2-moments-entry { display:flex; align-items:center; gap:12px; width:100%; padding:16px 18px; margin:0 0 12px; border:1px solid var(--v2-line,#e6ded5); background:var(--v2-surface,#fff); color:var(--v2-ink,#372e29); text-align:left; cursor:pointer; border-radius:12px; }
.v2-moments-entry > i { display:grid; place-items:center; width:40px; height:40px; border-radius:12px; background:#fae6d5; color:#9b552f; font-size:22px; font-style:normal; }
.v2-moments-entry > span { flex:1; }
.v2-moments-entry small { display:block; color:var(--v2-ink-soft,#7b7066); margin-top:3px; }
.v2-moments-entry[hidden], [data-moments-badge][hidden] { display:none; }
.v2-staff-detail-media .v2-moments-entry { margin-top:14px; }
.v2-moments-open { overflow:hidden; }
.v2-moments-dialog { padding:0; width:min(680px,calc(100% - 32px)); max-width:100%; height:min(850px,90dvh); max-height:100dvh; border:0; border-radius:18px; color:var(--v2-ink,#372e29); background:#fffaf5; overflow:hidden; }
.v2-moments-dialog[open] { display:flex; flex-direction:column; }
.v2-moments-dialog::backdrop { background:#251a1466; }
.v2-moments-head { display:flex; align-items:center; justify-content:space-between; padding:14px; border-bottom:1px solid #eadfd4; flex:none; }
.v2-moments-head h2 { font-size:18px; margin:0; }
.v2-moments-scroll { overflow:auto; min-height:0; flex:1; overscroll-behavior:contain; padding:0 22px 28px; }
.v2-moments-composer { display:grid; gap:12px; padding:22px 0; border-bottom:1px solid #eadfd4; }
.v2-moments-composer > * { min-width:0; }
.v2-moments-composer > label { font-weight:600; }
.v2-moments-composer small { color:#817367; }
.v2-moments-tools { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.v2-moments-tools label { position:relative; overflow:hidden; }
.v2-moments-tools input { position:absolute; inset:0; opacity:0; width:100%; cursor:pointer; }
.v2-moments-status { color:#7d604b; min-height:1em; font-size:14px; overflow-wrap:anywhere; }
.v2-moment { padding:20px 0; border-bottom:1px solid #eadfd4; }
.v2-moment header { display:flex; gap:12px; align-items:center; }
.v2-moment-avatar { width:42px; height:42px; border-radius:12px; overflow:hidden; display:grid; place-items:center; background:#f0dfce; color:#875338; flex:none; }
.v2-moment-avatar img { width:100%; height:100%; object-fit:cover; }
.v2-moment time { display:block; font-size:12px; color:#89786b; margin:0 auto 0 0; min-width:0; overflow-wrap:anywhere; }
.v2-moment-text { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.8; margin:16px 0; }
.v2-moment-media { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin-top:12px; }
.v2-moment-media:empty { display:none; }
.v2-moment-media > [data-moment-image] { display:block; aspect-ratio:1; padding:0; border:0; background:transparent; border-radius:8px; overflow:hidden; cursor:zoom-in; }
.v2-moment-media img { display:block; width:100%; height:100%; object-fit:cover; border-radius:8px; }
.v2-moment-media video { width:auto; max-width:100%; max-height:450px; border-radius:8px; background:transparent; }
.v2-moment-media > [data-moment-image]:only-child { grid-column:1/-1; max-width:360px; aspect-ratio:auto; }
.v2-moment-media > [data-moment-image]:only-child img { width:auto; max-width:100%; height:auto; max-height:420px; object-fit:contain; }
.v2-moments-preview { display:flex; flex-wrap:wrap; gap:8px; }
.v2-moments-preview > div { position:relative; width:76px; height:76px; }
.v2-moments-preview img { width:100%; height:100%; object-fit:cover; border-radius:8px; }
.v2-moments-preview button { position:absolute; top:0; right:0; border:0; background:#372e29; color:white; width:26px; height:26px; border-radius:50%; }
.v2-moments-more { margin:22px auto 0; }
.v2-chat-fullscreen .v2-moments-entry, .v2-supervision-fullscreen .v2-moments-entry { display:none; }
@media(max-width:760px) { .v2-moments-dialog { width:100%; height:100dvh; margin:0; border-radius:0; } .v2-moments-head { padding-top:max(12px,env(safe-area-inset-top)); } .v2-moments-scroll { padding:0 16px max(24px,env(safe-area-inset-bottom)); } }
/* The dialog lives outside the application root; give its controls the shared button geometry. */
.v2-moments-dialog .v2-btn, .v2-video-lightbox .v2-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 14px; border:1px solid var(--v2-line); border-radius:10px; font:inherit; font-size:14px; background:var(--v2-card,#fff); color:var(--v2-ink); cursor:pointer; }
.v2-moments-dialog .v2-btn-primary { background:var(--v2-jade); color:white; border-color:var(--v2-jade); }
.v2-moments-dialog .v2-btn-ghost { background:transparent; border-color:transparent; }
.v2-moments-dialog .v2-btn-danger { color:var(--v2-red); }
.v2-moments-dialog .v2-btn:disabled { opacity:.5; cursor:wait; }
.v2-moments-dialog [hidden] { display:none!important; }
.v2-moments-dialog textarea { width:100%; box-sizing:border-box; padding:12px; border:1px solid var(--v2-line); border-radius:10px; font:inherit; font-size:16px; resize:vertical; }
.v2-moments-head-spacer { width:76px; }
.v2-moment-author { display:flex; align-items:center; gap:10px; min-width:0; border:0; padding:0; background:none; color:inherit; font:inherit; text-align:left; cursor:pointer; }
.v2-moment-author strong { overflow-wrap:anywhere; }
.v2-moment header { flex-wrap:wrap; }
.v2-moment-avatar { border-radius:50%; }
.v2-moment-actions { display:flex; align-items:center; justify-content:flex-end; gap:4px; margin-top:10px; }
.v2-moment-actions [aria-pressed="true"] { color:var(--v2-red); }
.v2-moments-avatars { display:flex; flex:0 0 auto!important; padding-left:8px; }
.v2-moments-avatars .v2-moment-avatar { width:28px; height:28px; border:2px solid white; margin-left:-8px; font-size:12px; }
.v2-moments-avatars[hidden] { display:none; }
.v2-moment-video { grid-column:1/-1; justify-self:start; max-width:100%; position:relative; padding:0; border:0; border-radius:8px; overflow:hidden; background:transparent; cursor:zoom-in; }
.v2-moment-video video { display:block; }
.v2-moment-video > span { position:absolute; right:10px; bottom:10px; padding:6px 10px; border-radius:20px; background:#0009; color:white; font-size:12px; pointer-events:none; }
.v2-moment-comment { padding:10px; margin-top:8px; border-left:2px solid var(--v2-line); overflow-wrap:anywhere; }
.v2-moment-comment p { white-space:pre-wrap; margin:8px 0; }
.v2-moment-comment.is-reply { margin-left:20px; }
[data-moment-comment-form] { display:grid; gap:8px; margin-top:12px; }
[data-moment-comment-form] label { font-size:13px; color:var(--v2-ink-soft); }
.v2-video-lightbox { box-sizing:border-box; width:min(960px,100%); max-width:100%; height:100dvh; max-height:100dvh; margin:auto; padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom)); border:0; background:var(--v2-bg,#fffaf5); color:var(--v2-ink,#372e29); }
.v2-video-lightbox[open] { display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
.v2-video-lightbox::backdrop { background:var(--v2-bg,#fffaf5); }
.v2-video-lightbox video { align-self:center; width:auto; max-width:100%; max-height:calc(100% - 56px); min-height:0; border-radius:8px; background:transparent; object-fit:contain; }

.v2-moment-actions svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.v2-moment-actions [aria-pressed="true"] svg { fill:currentColor; }
.v2-moment-menu { position:relative; margin-left:auto; flex:none; }
.v2-moment-menu summary { display:grid; place-items:center; width:44px; height:44px; border-radius:10px; cursor:pointer; list-style:none; font-size:26px; }
.v2-moment-menu summary::-webkit-details-marker { display:none; }
.v2-moment-menu[open] summary { background:#f0dfce; }
.v2-moment-menu > div { position:absolute; z-index:3; right:0; top:100%; min-width:100px; padding:4px; border:1px solid var(--v2-line); border-radius:12px; background:var(--v2-card,#fff); box-shadow:0 8px 24px #372e2926; }
.v2-moment-menu button { display:block; width:100%; min-height:44px; border:0; border-radius:8px; background:transparent; color:inherit; font:inherit; cursor:pointer; }
.v2-moment-menu button:hover, .v2-moment-menu button:focus-visible { background:#f0dfce; }
.v2-moment-menu [data-moment-delete] { color:var(--v2-red); }

.v2-moment-actions > button { flex:none; }

/* The customer tab uses the same feed while keeping the main navigation available. */
.v2-moments-dialog.v2-moments-inline { position:static; width:100%; max-width:680px; height:auto; max-height:none; margin:0 auto; border-radius:14px; background:transparent; }
.v2-moments-inline .v2-moments-scroll { overflow:visible; }
.v2-moments-inline .v2-moments-head { justify-content:flex-start; }

/* Keep the entire photo inside the viewport, including portrait and landscape images. */
.v2-moment-image-open { overflow:hidden; }
.v2-moment-image-preview { box-sizing:border-box; width:100%; max-width:100%; height:100dvh; max-height:100dvh; margin:0; padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)); border:0; background:var(--v2-bg,#fffaf5); color:var(--v2-ink,#372e29); overflow:hidden; }
.v2-moment-image-preview[open] { display:flex; flex-direction:column; gap:12px; }
.v2-moment-image-preview::backdrop { background:var(--v2-bg,#fffaf5); }
.v2-moment-image-back { align-self:flex-start; flex:none; min-height:44px; padding:10px 14px; border:1px solid var(--v2-line,#e6ded5); border-radius:10px; background:transparent; color:inherit; font:inherit; cursor:pointer; }
.v2-moment-image-dismiss { display:flex; align-items:center; justify-content:center; flex:1; min-height:0; width:100%; padding:0; border:0; background:transparent; cursor:zoom-out; }
.v2-moment-image-dismiss img { display:block; width:auto; height:auto; max-width:100%; max-height:100%; border-radius:8px; object-fit:contain; }
.v2-moment-image-preview p { flex:none; margin:0; text-align:center; font-size:14px; }
/* Keep text, controls and media hidden together until this card's photos are ready. */
.v2-moment.is-loading { position:relative; min-height:240px; }
.v2-moment.is-loading > :not(.v2-moment-placeholder) { visibility:hidden; }
.v2-moment-placeholder { position:absolute; inset:20px 0; display:grid; place-items:center; margin:0; border-radius:12px; background:#f1eae2; color:#7d604b; }
.v2-moment-media > [data-moment-image].is-failed { min-height:120px; padding:12px; color:#7d604b; background:#f1eae2; cursor:default; }
.v2-moments-tab-dot { display:inline-block; width:8px; height:8px; margin-left:5px; border-radius:50%; background:#cf3d32; vertical-align:super; }
.v2-mobile-bottom-item > .v2-moments-tab-dot { position:absolute; top:6px; left:calc(50% + 12px); margin:0; }
[data-moments-tab-badge][hidden] { display:none; }

.v2-moments-status:empty { display:none; }
.v2-moments-inline [data-moments-list] > .v2-moment:first-child { padding-top:12px; }
