/* Keep all video entry points on the same five-action rail. */
body #page-home .home-example-primary-actions>.home-action-share,
body #page-home .home-example-primary-actions>.home-action-comment,
body #result-video-lightbox .result-video-lightbox-actions>.home-action-share,
body #result-video-lightbox .result-video-lightbox-actions>.home-action-comment{
  width:48px!important;height:44px!important;min-height:44px!important;flex:0 0 44px;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  gap:2px!important;padding:0!important;border:0!important;background:transparent!important;color:#fff!important;
  filter:drop-shadow(0 1px 3px rgba(0,0,0,.7));cursor:pointer;
}
body .home-action-share .home-xhs-icon,body .home-action-comment .home-xhs-icon{width:30px!important;height:30px!important}
body .home-action-share .home-xhs-icon svg,body .home-action-comment .home-xhs-icon svg{width:27px!important;height:27px!important;fill:#fff!important;stroke:#fff!important;stroke-width:1.5!important;stroke-linejoin:round}
body .home-action-comment .home-xhs-icon svg circle{fill:#393939!important;stroke:#393939!important}
body #page-home .home-example-primary-actions>.home-action-share small,
body #page-home .home-example-primary-actions>.home-action-comment small,
body #result-video-lightbox .result-video-lightbox-actions>.home-action-share small,
body #result-video-lightbox .result-video-lightbox-actions>.home-action-comment small{display:block!important;color:#fff;font-size:10px;line-height:12px;text-shadow:0 1px 3px #000}
body #result-video-lightbox .result-video-lightbox-actions{top:auto!important;bottom:clamp(140px,30dvh,240px)!important;gap:8px!important;transform:none!important}
body .home-action-share:active,body .home-action-comment:active{opacity:.7;transform:scale(.93)}
body .home-action-share:focus-visible,body .home-action-comment:focus-visible{outline:2px solid #fff;outline-offset:3px}
body.video-comments-open{overflow:hidden!important;overscroll-behavior:none}
/* The video remains visible above the comment sheet. */
body.video-comments-open #page-home :is(.home-example-video,.home-example-image){
  position:absolute!important;top:0!important;left:0!important;width:100%!important;
  height:var(--vc-preview-height,32dvh)!important;max-height:none!important;object-fit:contain!important;transform:none!important;background:#000!important;
}
body.video-comments-open #result-video-lightbox #result-video-lightbox-inner{top:0!important;bottom:auto!important;height:var(--vc-preview-height,32dvh)!important;background:#000!important}
body.video-comments-open #result-video-lightbox #result-video-lightbox-video,
body.video-comments-open #result-video-lightbox #result-video-lightbox-image{width:100%!important;height:100%!important;object-fit:contain!important}
body.video-comments-open #page-home :is(.home-video-copy,.home-example-primary-actions,.home-example-ai-reason,.home-example-summary,.home-creator-bar,.home-video-offer,.home-agent-panel,.home-floating-ai,.home-dining-credits,.home-video-scrim),
body.video-comments-open #result-video-lightbox :is(.result-video-lightbox-top,.result-video-lightbox-footer,.result-video-lightbox-actions,.result-video-lightbox-creator,.result-video-lightbox-bito,.result-video-profile-tabbar),
body.video-comments-open .app-tabbar,body.video-comments-open #home-floating-ai{visibility:hidden!important;pointer-events:none!important}
/* Feed descendants can set visibility explicitly; keep them out of the sheet preview. */
body.video-comments-open #page-home :is(.home-example-primary-actions,.home-example-ai-reason,.home-example-summary,.home-creator-bar,.home-video-offer) *,
body.video-comments-open .bw-shared-entry,body.video-comments-open .bw-shared-entry *{visibility:hidden!important;pointer-events:none!important}
body #video-comments-dialog{
  --vc-height:100dvh;--vc-keyboard:0px;--vc-top:32dvh;--vc-on-accent:#fff;
  position:fixed;inset:auto 0 var(--vc-keyboard);margin:0 auto;width:min(100%,480px);max-width:100%;
  height:calc(var(--vc-height) - var(--vc-top));max-height:calc(var(--vc-height) - var(--vc-top));
  padding:0;border:0;border-radius:14px 14px 0 0;overflow:hidden;overflow:clip;background:var(--bw-surface)!important;color:var(--bw-ink)!important;
  box-shadow:0 -6px 28px rgba(0,0,0,.12);font-family:inherit;
}
/* Only the list/form bodies scroll; focus must not scroll the whole sheet. */
:root[data-theme="dark"] #video-comments-dialog{--vc-on-accent:#21160f}
#video-comments-dialog:not([open]){display:none!important}
#video-comments-dialog[open]{display:flex;flex-direction:column;animation:vc-slide-in 220ms ease-out}
#video-comments-dialog::backdrop{background:rgba(0,0,0,.06)}
#video-comments-dialog.is-editing::backdrop{background:rgba(0,0,0,.22)}
#video-comments-header{position:relative;flex:0 0 62px;display:flex;align-items:center;justify-content:center;padding:12px 60px;touch-action:none;user-select:none}
#video-comments-title{margin:0;font-size:15px;font-weight:650;line-height:22px;text-align:center;position:absolute;left:50%;transform:translateX(-50%);white-space:nowrap}
.vc-header-actions{position:absolute;right:6px;top:9px;display:flex;align-items:center;gap:2px}
#video-comments-close{position:relative;isolation:isolate;width:44px;height:44px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:transparent;color:var(--bw-ink)}
#video-comments-close:before{content:"";position:absolute;z-index:-1;width:28px;height:28px;border-radius:50%;background:var(--bw-tag-fill)}
#video-comments-close svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
#video-comments-close:active{opacity:.7}
#video-comments-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 16px 24px;scroll-padding:12px;-webkit-overflow-scrolling:touch}
#video-comments-dialog.is-editing #video-comments-list{opacity:.5;padding-bottom:0}
.vc-comment{position:relative;display:flex;gap:12px;padding:14px 0 10px;align-items:flex-start}
.vc-avatar{display:grid;place-items:center;flex:0 0 36px;height:36px;border-radius:50%;background:var(--bw-accent-soft);color:var(--bw-accent);font-size:16px;font-weight:650}
.vc-comment:nth-child(3n) .vc-avatar{background:var(--bw-tag-fill);color:var(--bw-copy)}
.vc-comment-copy{flex:1;min-width:0}
.vc-name{margin:0 36px 4px 0;min-height:20px;color:var(--bw-copy);font-size:13px;font-weight:500;line-height:20px;overflow-wrap:anywhere}
.vc-name small{display:inline-block;margin-left:6px;padding:0 4px;border-radius:3px;background:var(--bw-tag-fill);color:var(--bw-copy);font-size:11px;font-weight:400;line-height:16px}
.vc-text{margin:0;color:var(--bw-ink);font-size:16px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}
.vc-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-height:20px;margin-top:4px;color:var(--bw-muted);font-size:12px;line-height:20px}
.vc-meta button{border:0;background:transparent;color:var(--bw-copy);min-height:36px;padding:4px 0;font-size:12px}
.vc-empty{padding:60px 24px;text-align:center;color:var(--bw-muted);font-size:14px;line-height:1.7}
#video-comments-form{flex-shrink:0;min-height:0;max-height:calc(100% - var(--vc-header-height,62px));overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;margin:0;padding:8px 12px calc(10px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--bw-line);background:var(--bw-surface)!important}
.vc-composer-surface{display:flex;align-items:center;gap:0;min-height:46px;border-radius:26px;background:var(--bw-canvas);padding:0 6px 0 2px}
.vc-input-wrap{position:relative;display:flex;flex-direction:column;flex:1;min-width:0;align-self:stretch}
.vc-composer-leading{display:grid;place-items:center;flex:0 0 20px;width:20px;height:24px;margin-left:10px;color:var(--bw-copy)}
.vc-composer-leading svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#video-comments-dialog:not(.is-editing):not(.has-attachment) #video-comments-send{display:none}
#video-comments-dialog:is(.is-editing,.has-attachment) .vc-composer-leading{display:none}
body #video-comments-input{display:block;width:100%;min-height:46px;height:46px;max-height:120px;flex:1;min-width:0;resize:none;padding:12px 10px;border:0!important;border-radius:24px;background:transparent!important;color:var(--bw-ink)!important;line-height:22px;font-family:inherit;font-size:16px;box-sizing:border-box}
#video-comments-dialog #video-comments-input:focus,#video-comments-dialog #video-comments-input:focus-visible{outline:none!important;box-shadow:none!important;border:0!important}
#video-comments-input::placeholder{color:var(--bw-muted)}
#video-comments-form button{cursor:pointer;font-family:inherit}
.vc-composer-tools,.vc-tools-left{display:flex;align-items:center;gap:0;flex-shrink:0}
#video-comments-emoji-toggle{width:44px;height:44px;display:grid;place-items:center;padding:10px;border:0;border-radius:50%;background:transparent;color:var(--bw-ink)}
#video-comments-emoji-toggle svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
#video-comments-send{position:relative;display:none;min-width:58px;min-height:36px;padding:6px 13px;border:1px solid transparent;border-radius:22px;background:var(--bw-accent);color:var(--vc-on-accent);font-size:14px;line-height:20px}
#video-comments-send:after{content:"";position:absolute;inset:-4px 0}
#video-comments-send:disabled{border-color:var(--bw-line);background:transparent;color:var(--bw-muted);cursor:default}
#video-comments-dialog:is(.is-editing,.has-attachment) .vc-composer-surface{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;border-radius:0;background:transparent}
#video-comments-dialog:is(.is-editing,.has-attachment) .vc-input-wrap{flex:none;width:100%;padding-bottom:24px;border:1px solid var(--bw-line-strong);border-radius:14px;background:var(--bw-canvas)}
#video-comments-dialog:is(.is-editing,.has-attachment) .vc-input-wrap:focus-within{border-color:var(--bw-accent)}
#video-comments-dialog:is(.is-editing,.has-attachment) .vc-input-wrap:has([aria-invalid="true"]){border-color:var(--bw-danger)}
#video-comments-dialog:is(.is-editing,.has-attachment) #video-comments-input{--vc-input-room:calc(var(--vc-height) - var(--vc-top) - var(--vc-header-height,62px) - 120px);flex:none;min-height:clamp(44px,var(--vc-input-room),72px);max-height:clamp(44px,var(--vc-input-room),120px);padding:12px 14px 8px;border-radius:13px;background:transparent!important}
#video-comments-dialog:is(.is-editing,.has-attachment) .vc-composer-tools{justify-content:space-between;padding:4px 0 0;min-height:48px}
#video-comments-dialog:is(.is-editing,.has-attachment) #video-comments-send{display:block}
#video-comments-dialog:is(.is-editing,.has-attachment) .vc-tools-left{gap:12px}
#video-comments-dialog:is(.is-editing,.has-attachment) #video-comments-emoji-toggle{width:44px;height:44px}
#video-comments-status{margin:0;font-size:12px;color:var(--bw-danger);line-height:20px}
#video-comments-dialog [hidden]{display:none!important}
#video-comments-dialog button:focus-visible{outline:2px solid var(--bw-accent);outline-offset:2px}
@keyframes vc-slide-in{from{translate:0 40px;opacity:.6}to{translate:0 0;opacity:1}}
@media(prefers-reduced-motion:reduce){#video-comments-dialog[open]{animation:none}}
@media(max-width:360px){.vc-tools-left{gap:0}#video-comments-input{font-size:16px!important}}

/* Public counts, moderation and explicit comment actions. */
body #page-home .home-action-comment small[hidden],body #result-video-lightbox .home-action-comment small[hidden]{display:none!important}
#video-comments-header:before{content:"";position:absolute;top:6px;left:calc(50% - 16px);width:32px;height:4px;background:var(--bw-line-strong);border-radius:4px}
.vc-avatar{position:relative;overflow:hidden}
.vc-avatar>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}
.vc-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;line-height:1.5}
.vc-text.is-expanded{display:block;overflow:visible}
.vc-text-expand{display:block;min-height:36px;padding:4px 0;border:0;background:transparent;color:var(--bw-copy);font-size:12px}
.vc-text-expand[hidden]{display:none!important}
.vc-more{position:absolute;top:8px;right:-6px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--bw-copy);font-size:22px;line-height:1;cursor:pointer}
.vc-more:before{content:"";position:absolute;inset:0}
.vc-more:active{background:var(--bw-tag-fill)}
.vc-translation{display:flex;flex-wrap:wrap;align-items:center;gap:0 6px;min-height:24px;margin-top:4px;color:var(--bw-copy);font-size:12px;line-height:20px}
.vc-translation button{position:relative;min-height:32px;padding:6px 0;border:0;background:transparent;color:var(--bw-copy);font-size:12px;line-height:20px}
.vc-translation button:after{content:"";position:absolute;inset:-6px 0}
.vc-review{display:inline-block;padding:2px 6px;border-radius:4px;background:var(--bw-accent-soft);color:var(--bw-accent);font-size:11px}
.vc-review.is-rejected{background:var(--bw-danger-soft);color:var(--bw-danger)}
.vc-comment.is-rejected .vc-name{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;margin-bottom:4px;color:var(--bw-copy);font-size:13px;line-height:20px}
.vc-review-reason{display:flex;align-items:flex-start;gap:8px;margin:8px 0 0;color:var(--bw-copy);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.vc-review-reason>svg{flex:0 0 16px;width:16px;height:16px;margin-top:2px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.vc-page-state{text-align:center;color:var(--bw-muted);font-size:13px;padding:12px 0 4px}
.vc-page-state button{min-height:44px;padding:8px 18px;border:0;border-radius:20px;background:var(--bw-tag-fill);color:var(--bw-copy);font:inherit}
#video-comments-send{display:block;flex-shrink:0;margin-left:4px}
#video-comments-access{margin:0 0 8px;color:var(--bw-copy);font-size:12px;line-height:1.5}
#video-comments-length{position:absolute;right:12px;bottom:6px;display:none;margin:0;max-width:calc(100% - 24px);color:var(--bw-copy);text-align:right;font-size:12px;line-height:16px;font-variant-numeric:tabular-nums;pointer-events:none}
#video-comments-dialog.is-editing #video-comments-length{display:block}
#video-comments-length.is-invalid,#video-comments-input-error{color:var(--bw-danger)}
#video-comments-input-error{margin:0;font-size:12px;line-height:18px}
#video-comments-input:disabled{opacity:.6}
#video-comments-overlay{position:absolute;inset:0;z-index:5;display:flex;align-items:flex-end;justify-content:center}
#video-comments-overlay[hidden]{display:none!important}
.vc-overlay-scrim{position:absolute;inset:0;background:var(--bw-overlay)}
.vc-action-panel{position:relative;width:100%;max-height:calc(100% - 14px);overflow:auto;overscroll-behavior:contain;border-radius:16px 16px 0 0;padding:18px 16px calc(16px + env(safe-area-inset-bottom,0px));background:var(--bw-surface);color:var(--bw-ink);outline:none}
.vc-action-panel h3{margin:0 0 10px;text-align:center;font-size:16px;font-weight:650}
.vc-action-panel>p,.vc-action-panel fieldset>p{margin:6px 0 10px;font-size:13px;line-height:1.6;color:var(--bw-copy)}
.vc-action-panel>button,.vc-report-submit{display:block;width:100%;min-height:46px;padding:12px;border:0;border-radius:8px;background:transparent;color:var(--bw-ink);font:inherit;text-align:center;cursor:pointer}
.vc-action-panel>button:active{background:var(--bw-tag-fill)}
.vc-action-panel>button.is-danger{color:var(--bw-danger)}
.vc-action-panel>button:last-child{margin-top:8px;background:var(--bw-tag-fill);color:var(--bw-copy)}
.vc-action-panel button:disabled{opacity:.5;cursor:default}
.vc-action-panel fieldset{margin:0;padding:0;border:0;min-width:0}
.vc-report-choice{display:flex;align-items:center;gap:10px;min-height:42px;color:var(--bw-ink);font-size:14px;cursor:pointer}
.vc-report-choice input{width:18px;height:18px;accent-color:var(--bw-accent)}
.vc-report-details-label{display:block;margin:12px 0 6px;color:var(--bw-copy);font-size:12px}
body #vc-report-details{display:block;width:100%;min-height:85px;padding:10px 12px;resize:vertical;border:1px solid var(--bw-line)!important;border-radius:10px;background:var(--bw-canvas)!important;color:var(--bw-ink)!important;font:inherit;font-size:16px;line-height:1.5;box-sizing:border-box}
body #video-comments-dialog #vc-report-details:focus{outline:2px solid var(--bw-accent)!important;outline-offset:2px;box-shadow:none!important;border-color:transparent!important}
.vc-report-submit{margin-top:10px;background:var(--bw-accent);color:var(--vc-on-accent)}
.vc-report-limit{display:block;text-align:right;color:var(--bw-muted);font-size:11px;line-height:20px}
#vc-report-error,#vc-action-error{color:var(--bw-danger);font-size:12px;line-height:1.6}
/* Report sheet: fixed header/footer with a separately scrollable reason list. */
.vc-action-panel.vc-report-panel{height:100%;max-height:100%;min-height:0;padding:0;display:flex;flex-direction:column;overflow:hidden;overflow:clip}
.vc-report-panel:before{content:"";position:absolute;top:10px;left:calc(50% - 18px);width:36px;height:4px;border-radius:4px;background:var(--bw-line-strong)}
.vc-report-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-shrink:0;padding:28px 16px 8px}
.vc-report-header h3{margin:0;font-size:18px;line-height:26px;font-weight:650;text-align:left}
.vc-report-header p{margin:8px 0 0;color:var(--bw-copy);font-size:13px;line-height:20px}
.vc-report-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;margin:-7px -10px 0 0;padding:0;border:0;background:transparent;color:var(--bw-copy);border-radius:50%}
.vc-report-close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
#vc-report-form{display:flex;flex-direction:column;flex:1;min-height:0;margin:0}
.vc-report-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:4px 16px 12px;scroll-padding:12px;-webkit-overflow-scrolling:touch}
.vc-report-panel .vc-report-choice{justify-content:space-between;gap:16px;min-height:44px;padding:10px 4px;border-bottom:1px solid var(--bw-line);border-radius:6px;font-size:14px;line-height:20px}
.vc-report-panel .vc-report-choice.is-selected{background:var(--bw-accent-soft);color:var(--bw-accent)}
body #video-comments-dialog .vc-report-choice input{appearance:none;-webkit-appearance:none;flex:0 0 20px;width:20px;height:20px;margin:0;padding:0;border:1.5px solid var(--bw-muted)!important;border-radius:50%;background:transparent!important;cursor:pointer;box-shadow:none!important}
body #video-comments-dialog .vc-report-choice input:checked{border-color:var(--bw-accent)!important;background:radial-gradient(circle,var(--bw-accent) 0 4px,transparent 5px)!important}
.vc-report-panel .vc-report-choice:active{background:var(--bw-tag-fill)}
.vc-report-details-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:10px 2px;border:0;background:transparent;color:var(--bw-copy);font:inherit;font-size:13px;text-align:left;cursor:pointer}
.vc-report-details-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.vc-report-details-toggle[aria-expanded="true"] svg{transform:rotate(180deg)}
.vc-report-body #vc-report-error:empty,.vc-report-body #vc-action-error:empty{display:none}
.vc-report-footer{flex-shrink:0;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--bw-line);background:var(--bw-surface)}
.vc-report-footer .vc-report-submit{margin:0;min-height:44px;border-radius:10px;font-size:14px;font-weight:600}
.vc-report-footer .vc-report-submit:disabled{opacity:1;background:var(--bw-tag-fill);color:var(--bw-muted)}
@media(max-height:500px){.vc-report-header{padding-top:24px;padding-bottom:8px}.vc-report-header p{margin-top:5px}.vc-report-panel .vc-report-choice{min-height:46px}}
.vc-sr-only,.vc-clipboard{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.vc-login-cancel{position:relative;z-index:5;display:block;min-height:44px;padding:10px 20px;margin-top:env(safe-area-inset-top,0px);border:0;background:transparent;color:var(--bw-accent);font:inherit;font-size:14px}

/* Comment photos use the same controls, surface colors and moderation as text. */
#video-comments-image-button{width:44px;height:44px;display:grid;place-items:center;padding:10px;border:0;border-radius:50%;background:transparent;color:var(--bw-ink)}
#video-comments-image-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#video-comments-image-button:disabled{opacity:.5}
#video-comments-attachment{--vc-attachment-size:72px;position:relative;display:flex;align-items:flex-start;flex-wrap:wrap;gap:10px;margin:0;padding:4px 14px 10px;min-height:0;box-sizing:border-box}
.vc-attachment-item{position:relative;flex:0 0 var(--vc-attachment-size);width:var(--vc-attachment-size);height:var(--vc-attachment-size)}
.vc-attachment-preview,.vc-attachment-add{display:grid;place-items:center;flex:0 0 var(--vc-attachment-size);width:var(--vc-attachment-size);height:var(--vc-attachment-size);padding:0;border:1px solid var(--bw-line);border-radius:8px;overflow:hidden;background:var(--bw-surface);color:var(--bw-ink)}
.vc-attachment-preview img{display:block;width:100%;height:100%;object-fit:contain}
.vc-attachment-add svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.vc-attachment-add:disabled,.vc-attachment-remove:disabled{opacity:.5;cursor:default}
.vc-attachment-remove{position:absolute;top:-5px;right:-5px;display:grid;place-items:center;width:28px;height:28px;padding:0;border:1px solid var(--bw-line);border-radius:50%;background:var(--bw-surface);color:var(--bw-ink);font-size:22px;line-height:1}
.vc-attachment-remove:after{content:"";position:absolute;inset:-8px}
.vc-attachment-processing{align-self:center;flex-basis:100%;color:var(--bw-copy);font-size:12px;line-height:1.5}
.vc-comment-photo{display:block;width:220px;max-width:100%;margin:8px 0;padding:0;border:1px solid var(--bw-line);border-radius:10px;overflow:hidden;background:var(--bw-canvas);cursor:zoom-in}
.vc-comment-photo img{display:block;width:100%;height:auto;max-height:220px;object-fit:contain}
body #video-comments-photo-dialog{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#000!important;color:#fff!important;overflow:hidden;overscroll-behavior:none}
#video-comments-photo-dialog:not([open]){display:none!important}
#video-comments-photo-dialog::backdrop{background:#000}
#video-comments-photo-stage{display:grid;place-items:center;width:100%;height:100%;padding:calc(60px + env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) calc(24px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));box-sizing:border-box}
#video-comments-photo-image{display:block;width:100%;height:100%;min-height:0;object-fit:contain;object-position:center;user-select:none;-webkit-user-select:none}
#video-comments-photo-close{position:absolute;top:calc(10px + env(safe-area-inset-top,0px));left:max(12px,env(safe-area-inset-left,0px));z-index:2;isolation:isolate;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:#fff;cursor:pointer}
#video-comments-photo-close:before{content:"";position:absolute;z-index:-1;width:32px;height:32px;border-radius:50%;background:rgba(32,32,32,.8)}
#video-comments-photo-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
#video-comments-photo-close:focus-visible{outline:2px solid #fff;outline-offset:3px}
#video-comments-photo-error{position:absolute;left:24px;right:24px;top:50%;margin:0;text-align:center;color:#ddd;font-size:14px;line-height:1.6}
#video-comments-photo-dialog [hidden]{display:none!important}
#video-comments-dialog.is-keyboard-open{--vc-header-height:clamp(44px,calc(var(--vc-height) - 240px),62px);--vc-attachment-size:clamp(48px,calc(var(--vc-height) - 280px),72px)}
#video-comments-dialog.is-keyboard-open #video-comments-header{flex-basis:var(--vc-header-height)}
#video-comments-dialog.is-keyboard-open .vc-header-actions{top:calc((var(--vc-header-height) - 44px)/2)}
#video-comments-dialog.is-keyboard-open.is-editing #video-comments-input{min-height:44px;max-height:clamp(44px,var(--vc-input-room),120px)}
#video-comments-dialog.is-keyboard-open #video-comments-attachment{--vc-attachment-size:clamp(48px,calc(var(--vc-height) - 280px),72px)}
#video-comments-dialog.is-keyboard-open .vc-attachment-preview{flex-basis:var(--vc-attachment-size);width:var(--vc-attachment-size);height:var(--vc-attachment-size)}
#video-comments-dialog.is-keyboard-open #video-comments-form{max-height:calc(100% - var(--vc-header-height,62px));overflow-y:auto;overscroll-behavior:contain}
#video-comments-dialog>.app-toast{position:absolute}

/* Same inline cancel / waveform / finish interaction as the conversation composer. */
#video-comments-mic{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:10px;border:0;border-radius:50%;background:transparent;color:var(--bw-ink)}
#video-comments-mic svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
#video-comments-mic:disabled{opacity:.5}
#video-comments-dialog #video-comments-form.is-voice-active .vc-composer-surface{display:flex;flex-direction:row;align-items:center;min-height:52px;padding:4px 6px;border-radius:26px;background:var(--bw-canvas)}
#video-comments-form.is-voice-active :is(#video-comments-mic,.vc-input-wrap,.vc-composer-tools){display:none!important}
.vc-voice-controls{display:flex;align-items:center;gap:12px;width:100%;min-width:0}
.vc-voice-controls>button{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--bw-ink)}
.vc-voice-controls>button:active{background:var(--bw-tag-fill)}
.vc-voice-controls>button:disabled{opacity:.5;cursor:default}
#video-comments-voice-cancel svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}
#video-comments-voice-stop>span{width:14px;height:14px;border-radius:3px;background:currentColor}
.vc-voice-wave{display:flex;align-items:center;justify-content:center;flex:1;min-width:0;height:28px;gap:3px;overflow:hidden}
.vc-voice-wave i{flex:0 0 3px;width:3px;height:5px;border-radius:3px;background:var(--bw-copy);animation:vc-voice-wave .95s ease-in-out infinite alternate}
.vc-voice-wave i:nth-child(3n+1){animation-delay:-.15s}.vc-voice-wave i:nth-child(3n+2){animation-delay:-.4s}.vc-voice-wave i:nth-child(4n){animation-delay:-.65s}
.is-voice-starting .vc-voice-wave,.is-voice-stopping .vc-voice-wave{opacity:.55}
@keyframes vc-voice-wave{from{height:4px;opacity:.48}to{height:20px;opacity:1}}
@media(prefers-reduced-motion:reduce){.vc-voice-wave i{animation:none;height:12px}}
