.hh-moments-page,.hh-moments-editor-page,.hh-moments-trim-page{position:relative;min-height:calc(100vh - 100px);background:radial-gradient(circle at top center, rgba(14,45,100,.34), transparent 34%), linear-gradient(180deg, #09111f 0%, #03070c 50%, #010204 100%);overflow:hidden}.hh-moments-page::before,.hh-moments-editor-page::before,.hh-moments-trim-page::before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg, rgba(255,255,255,.015) 0, rgba(255,255,255,0) 50%, rgba(255,255,255,.015) 100%), repeating-linear-gradient(180deg, rgba(255,255,255,.016) 0 1px, transparent 1px 5px);opacity:.45}.hh-moments-stage,.hh-moments-editor-shell,.hh-moments-trim-shell{position:relative;z-index:1;max-width:1600px;margin:0 auto;padding:28px 24px 40px}.hh-moments-modal-shell,.hh-moments-editor-copy,.hh-moments-trim-shell{background:linear-gradient(180deg, rgba(8,12,18,.88), rgba(4,7,11,.94));border:1px solid rgba(255,255,255,.08);border-radius:28px;box-shadow:0 24px 80px rgba(0,0,0,.46);backdrop-filter:blur(12px)}.hh-moments-modal-head,.hh-moments-trim-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 30px 0}.hh-moments-modal-body,.hh-moments-upload-grid,.hh-moments-trim-layout{display:grid;grid-template-columns:minmax(0,760px) 320px;gap:28px;padding:24px 30px 30px}.hh-moments-editor-copy{padding:30px}.hh-moments-editor-footer{display:flex;justify-content:flex-end;gap:14px;margin-top:24px}.hh-moments-eyebrow,.hh-moments-side-eyebrow{margin:0 0 8px;color:rgba(255,255,255,.58);text-transform:uppercase;letter-spacing:.16em;font-size:12px}.hh-moments-modal-head h1,.hh-moments-editor-copy h1,.hh-moments-trim-header h1{margin:0;color:#fff;font-size:clamp(28px,4vw,56px);line-height:1.02}.hh-moments-modal-head p,.hh-moments-editor-copy>p,.hh-moments-trim-header p,.hh-moments-sidepanel p{color:rgba(255,255,255,.72)}.hh-moments-primary-link,.hh-moments-secondary-link,.hh-moments-primary-button,.hh-moments-secondary-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 18px;border-radius:999px;text-decoration:none;cursor:pointer;transition:transform .2s ease,opacity .2s ease,border-color .2s ease}.hh-moments-primary-link,.hh-moments-primary-button{border:1px solid rgba(232,62,62,.3);background:linear-gradient(180deg,#ff4f4f,#d92b2b);color:#fff}.hh-moments-secondary-link,.hh-moments-secondary-button{border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.06);color:#fff}.hh-moments-secondary-link.is-disabled{opacity:.4;pointer-events:none}.hh-moments-feed-rail{display:flex;align-items:center;justify-content:center;min-height:72vh}.hh-moments-feed{width:min(100%,760px);max-height:78vh;overflow-y:auto;scroll-snap-type:y mandatory;padding:12px 0;scrollbar-width:none}.hh-moments-feed::-webkit-scrollbar{width:0;height:0}.hh-moment-card{display:flex;align-items:center;justify-content:center;min-height:calc(78vh - 24px);scroll-snap-align:center;opacity:.42;transform:scale(.94);transition:opacity .28s ease,transform .28s ease}.hh-moment-card.is-active{opacity:1;transform:scale(1)}.hh-moment-phone{position:relative;width:min(100%,400px);aspect-ratio:9/16;border-radius:34px;padding:10px;background:linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.03)), rgba(0,0,0,.34);box-shadow:0 20px 60px rgba(0,0,0,.45)}.hh-moment-phone.is-editor{width:min(100%,360px)}.hh-moment-video-wrap{position:relative;width:100%;height:100%;border-radius:26px;overflow:hidden;background:#030508}.hh-moment-video{width:100%;height:100%;object-fit:cover;background:#030508}.hh-moment-overlay-gradient{position:absolute;inset:0;background:linear-gradient(180deg, rgba(0,0,0,.14) 0%, transparent 22%, transparent 58%, rgba(0,0,0,.76) 100%);pointer-events:none}.hh-moment-topbar{position:absolute;top:18px;left:16px;right:16px;display:flex;justify-content:space-between;gap:10px;z-index:3}.hh-moment-chip{padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.12);color:#fff;font-size:12px;letter-spacing:.08em;text-transform:uppercase}.hh-moment-chip--ghost{background:rgba(0,0,0,.25)}.hh-moment-meta{position:absolute;left:18px;right:74px;bottom:18px;z-index:3;color:#fff}.hh-moment-author{display:flex;align-items:center;gap:12px}.hh-moment-avatar{width:44px;height:44px;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.12);display:inline-flex;align-items:center;justify-content:center;font-weight:700;color:#fff}.hh-moment-avatar img{width:100%;height:100%;object-fit:cover}.hh-moment-author-copy strong,.hh-moment-author-copy span{display:block}.hh-moment-author-copy strong{font-size:16px;color:#fff}.hh-moment-author-copy span{color:rgba(255,255,255,.72);font-size:13px}.hh-moment-description{margin:14px 0 0;font-size:14px;line-height:1.55;color:rgba(255,255,255,.92);white-space:pre-line;text-shadow:0 2px 10px rgba(0,0,0,.46)}.hh-moment-actions{position:absolute;right:16px;bottom:18px;z-index:3;display:flex;flex-direction:column;gap:12px}.hh-moment-action-form{margin:0}.hh-moment-action-btn{width:50px;min-height:50px;border:0;border-radius:999px;background:rgba(0,0,0,.34);color:#fff;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer;box-shadow:0 12px 24px rgba(0,0,0,.28)}.hh-moment-action-btn em{font-style:normal;font-size:10px;opacity:.88}.hh-moment-action-btn.is-confirmed{background:rgba(217,43,43,.92)}.hh-moment-action-btn.is-static{pointer-events:none}.hh-moments-sidecopy{display:flex;flex-direction:column;justify-content:space-between;gap:24px}.hh-moments-sidepanel,.hh-moments-scrollhint,.hh-moments-empty-card,.hh-moments-trim-card,.hh-moments-trim-stats,.hh-moments-alert,.hh-moments-fieldset{border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.045);border-radius:24px;color:#fff}.hh-moments-sidepanel,.hh-moments-scrollhint,.hh-moments-empty-card,.hh-moments-trim-card,.hh-moments-alert,.hh-moments-fieldset{padding:20px}.hh-moments-empty{padding:24px 30px 30px}.hh-moments-empty-card{max-width:520px}.hh-moments-empty-kicker{display:inline-block;margin-bottom:12px;color:rgba(255,255,255,.56);letter-spacing:.16em;text-transform:uppercase;font-size:12px}.hh-moment-card__placeholder{display:flex;align-items:center;justify-content:center;height:100%;color:rgba(255,255,255,.7)}.hh-moments-upload-form{margin-top:22px}.hh-moments-upload-main{display:flex;flex-direction:column;gap:18px}.hh-moments-label{display:block;margin-bottom:8px;color:rgba(255,255,255,.86);font-weight:600}.hh-moments-textarea{width:100%;min-height:160px;border-radius:22px;border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.26);color:#fff;padding:16px 18px;resize:vertical}.hh-moments-upload-drop{position:relative;border:1px dashed rgba(255,255,255,.22);border-radius:22px;padding:26px 22px;background:rgba(255,255,255,.03);overflow:hidden}.hh-moments-upload-drop input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer}.hh-moments-upload-drop-copy{display:flex;flex-direction:column;gap:6px;color:#fff}.hh-moments-upload-drop-copy span,.hh-moments-upload-meta span{color:rgba(255,255,255,.72)}.hh-moments-upload-progress{position:relative;height:10px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden;margin-top:16px}.hh-moments-upload-progress-bar{height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#ff4f4f,#d92b2b);transition:width .18s ease}.hh-moments-upload-meta{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}.hh-moments-inline-actions{margin-top:18px}.hh-moments-trim-controls{display:flex;flex-direction:column;gap:16px}.hh-moments-trim-card-head,.hh-moments-trim-stats{display:flex;align-items:center;justify-content:space-between;gap:16px}.hh-moments-trim-stats{padding:18px 20px}.hh-moments-trim-stats span{display:block;color:rgba(255,255,255,.56);font-size:12px;text-transform:uppercase;letter-spacing:.08em}.hh-moments-range{width:100%;accent-color:#d92b2b}.hh-moments-alert.is-error{border-color:rgba(255,91,91,.35);background:rgba(140,28,28,.28)}.hh-moments-alert.is-success{border-color:rgba(91,255,170,.2);background:rgba(20,96,63,.24)}@media (max-width:1180px){.hh-moments-modal-body,.hh-moments-upload-grid,.hh-moments-trim-layout{grid-template-columns:1fr}.hh-moments-sidecopy{order:-1}.hh-moments-feed{width:100%}}@media (max-width:991px){.hh-moments-stage,.hh-moments-editor-shell,.hh-moments-trim-shell{padding:0}.hh-moments-modal-shell,.hh-moments-editor-copy,.hh-moments-trim-shell{border-radius:0;border-left:0;border-right:0}.hh-moments-modal-head,.hh-moments-trim-header,.hh-moments-empty,.hh-moments-modal-body,.hh-moments-editor-copy{padding-left:18px;padding-right:18px}.hh-moments-modal-body,.hh-moments-upload-grid,.hh-moments-trim-layout{padding-left:18px;padding-right:18px;gap:18px}.hh-moments-feed-rail{min-height:auto}.hh-moments-feed{width:100%;max-height:none;overflow:visible;padding:0}.hh-moment-card{min-height:auto;opacity:1;transform:none;margin-bottom:18px}.hh-moment-phone,.hh-moment-phone.is-editor{width:100%;max-width:none;aspect-ratio:9/16;border-radius:24px;padding:0;background:transparent;box-shadow:none}.hh-moment-video-wrap{border-radius:24px}.hh-moments-editor-footer{flex-direction:column}.hh-moments-primary-button,.hh-moments-secondary-button,.hh-moments-primary-link,.hh-moments-secondary-link{width:100%}}
html.hh-moments-root-lock,body.hh-moments-root-lock{overflow:hidden !important}.hh-moments-page--overlay{position:fixed;inset:0;z-index:9999;min-height:100vh}.hh-moments-stage--fullscreen{max-width:none;height:100vh;padding:16px}.hh-moments-modal-shell--fullscreen{width:100%;height:calc(100vh - 32px);border-radius:32px;overflow:hidden}.hh-moments-modal-head--compact{padding:16px 20px;border-bottom:1px solid rgba(255,255,255,.08)}.hh-moments-modal-titlebar{display:flex;align-items:center;gap:14px}.hh-moments-modal-head--compact h1{font-size:24px}.hh-moments-modal-actions{display:flex;align-items:center;gap:12px}.hh-moments-icon-btn{width:42px;height:42px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);border-radius:999px;color:#fff;font-size:22px;line-height:1;cursor:pointer}.hh-moments-modal-body--viewer{height:calc(100% - 75px);grid-template-columns:300px minmax(0,1fr);align-items:center;padding:18px 24px 22px}.hh-moments-sidecopy--compact{justify-content:center}.hh-moments-side-note{margin-top:14px;font-size:13px;color:rgba(255,255,255,.62)}.hh-moments-feed-rail--fullscreen{min-height:100%;height:100%}.hh-moments-feed-rail--fullscreen .hh-moments-feed{height:100%;max-height:100%;padding:0 0}.hh-moment-phone--fullscreen{width:min(100%,430px)}.hh-moments-empty--centered{display:flex;align-items:center;justify-content:center;height:calc(100% - 75px)}.hh-moments-upload-grid--modal,.hh-moments-trim-layout--modal{height:calc(100% - 110px);align-items:center}.hh-moments-upload-preview--modal{display:flex;align-items:center;justify-content:center}.hh-moments-editor-copy.hh-moments-modal-shell--fullscreen,.hh-moments-trim-shell.hh-moments-modal-shell--fullscreen{padding:0}.hh-moments-editor-copy.hh-moments-modal-shell--fullscreen .hh-moments-upload-form,.hh-moments-trim-shell.hh-moments-modal-shell--fullscreen form{padding:18px 24px 24px}.hh-moments-editor-copy.hh-moments-modal-shell--fullscreen .hh-moments-alert,.hh-moments-trim-shell.hh-moments-modal-shell--fullscreen .hh-moments-alert{margin:18px 24px 0}.hh-moments-editor-copy.hh-moments-modal-shell--fullscreen .hh-moments-editor-footer,.hh-moments-trim-shell.hh-moments-modal-shell--fullscreen .hh-moments-editor-footer{margin-top:18px}.hh-moments-upload-main,.hh-moments-trim-controls{max-width:640px}.hh-moment-video{object-position:center center}@media (max-width:1180px){.hh-moments-modal-body--viewer{grid-template-columns:1fr;padding:16px 16px 20px}.hh-moments-sidecopy--compact{order:-1}.hh-moments-sidepanel{display:none}.hh-moments-scrollhint{display:none}.hh-moments-upload-grid--modal,.hh-moments-trim-layout--modal{height:auto}}@media (max-width:991px){.hh-moments-page--overlay{position:fixed;inset:0}.hh-moments-stage--fullscreen{padding:0}.hh-moments-modal-shell--fullscreen{height:100vh;border-radius:0}.hh-moments-modal-head--compact{padding:12px 14px}.hh-moments-modal-head--compact h1{font-size:20px}.hh-moments-modal-body--viewer{height:calc(100% - 66px);padding:0}.hh-moments-feed-rail--fullscreen .hh-moments-feed{height:100%;overflow-y:auto;scroll-snap-type:y mandatory}.hh-moment-phone--fullscreen{width:100%;max-width:none;height:100%;aspect-ratio:auto;border-radius:0;padding:0;background:transparent;box-shadow:none}.hh-moment-video-wrap{border-radius:0}.hh-moment-card{height:calc(100vh - 66px);min-height:calc(100vh - 66px);margin-bottom:0}.hh-moments-upload-grid--modal,.hh-moments-trim-layout--modal{padding:14px;gap:14px}.hh-moments-editor-copy.hh-moments-modal-shell--fullscreen .hh-moments-upload-form,.hh-moments-trim-shell.hh-moments-modal-shell--fullscreen form{padding:14px}.hh-moments-upload-preview--modal{order:-1}}

.hh-moments-modal-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.hh-moments-close-btn{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:999px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);color:#fff;font-size:28px;line-height:1;cursor:pointer;transition:transform .2s ease,background .2s ease,border-color .2s ease}
.hh-moments-close-btn:hover{transform:translateY(-1px);background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.24)}
.hh-moments-close-btn:focus-visible{outline:2px solid rgba(255,255,255,.7);outline-offset:2px}
@media (max-width:991px){.hh-moments-modal-actions{width:100%}.hh-moments-close-btn{width:100%;border-radius:999px;font-size:20px}}

.hh-moments-home-pill{display:inline-flex;align-items:center;gap:12px;padding:8px 10px 8px 14px;border-radius:999px;background:#fff;color:#121212;text-decoration:none;box-shadow:0 10px 28px rgba(0,0,0,.18);min-height:52px}
.hh-moments-home-pill:hover{color:#121212;transform:translateY(-1px)}
.hh-moments-home-pill__icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;color:#5a5a5a;flex:0 0 auto}
.hh-moments-home-pill__icon svg{width:18px;height:18px;display:block}
.hh-moments-home-pill__label{font-size:14px;font-weight:600;white-space:nowrap}
.hh-moments-home-pill__avatar{width:30px;height:30px;border-radius:999px;overflow:hidden;background:#171717;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;flex:0 0 auto}
.hh-moments-home-pill__avatar img{width:100%;height:100%;object-fit:cover}
.hh-moments-sidepanel-link{margin-top:18px}
@media (max-width:991px){.hh-moments-home-pill{width:100%;justify-content:space-between;padding-right:8px}.hh-moments-home-pill__label{font-size:13px}}


/* Phase 3d – closer to desktop reference */
.hh-moments-page--overlay{background:#e7e7e7}
.hh-moments-stage--fullscreen{padding:18px 24px;background:transparent}
.hh-moments-modal-shell--fullscreen{height:calc(100vh - 36px);border-radius:0;background:transparent;border:0;box-shadow:none;position:relative}
.hh-moments-floating-header{position:absolute;top:12px;right:12px;z-index:8;display:flex;justify-content:flex-end}
.hh-moments-home-pill{gap:10px;padding:7px 9px 7px 12px;min-height:36px;border:1px solid rgba(0,0,0,.08);box-shadow:0 2px 12px rgba(0,0,0,.08);font-weight:500}
.hh-moments-home-pill__icon{width:14px;height:14px;color:#4e4e4e}
.hh-moments-home-pill__icon svg{width:14px;height:14px}
.hh-moments-home-pill__label{font-size:12px;font-weight:500;color:#2c2c2c}
.hh-moments-home-pill__avatar{width:24px;height:24px;font-size:10px;border:1px solid rgba(0,0,0,.06)}
.hh-moments-modal-body--reference{height:100%;padding:0;display:flex;align-items:center;justify-content:center}
.hh-moments-feed-rail--reference{width:100%;height:100%;display:flex;align-items:center;justify-content:center;min-height:0}
.hh-moments-feed-rail--reference .hh-moments-feed{width:100%;max-width:none;height:100%;display:flex;align-items:center;justify-content:center;overflow-y:auto;scroll-snap-type:y mandatory;padding:0}
.hh-moments-feed-rail--reference .hh-moment-card{width:100%;display:flex;align-items:center;justify-content:center;min-height:100%;padding:30px 140px 30px 30px;opacity:1;transform:none;scroll-snap-align:center}
.hh-moments-feed-rail--reference .hh-moment-phone--fullscreen{width:min(100%,520px);padding:0;background:transparent;box-shadow:none;border-radius:18px}
.hh-moments-feed-rail--reference .hh-moment-video-wrap{border-radius:18px;overflow:hidden;box-shadow:none;background:#111}
.hh-moments-frame-close{position:absolute;top:10px;left:10px;z-index:4;width:22px;height:22px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:rgba(0,0,0,.28);color:#fff;text-decoration:none;font-size:17px;line-height:1}
.hh-moments-frame-close:hover{color:#fff;background:rgba(0,0,0,.44)}
.hh-moment-topbar,.hh-moments-sidecopy--compact,.hh-moments-icon-btn,.hh-moments-modal-titlebar,.hh-moments-close-btn,.hh-moments-sidepanel,.hh-moments-scrollhint{display:none !important}
.hh-moment-meta{left:14px;right:88px;bottom:10px;z-index:3}
.hh-moment-author{gap:8px;margin-bottom:8px}
.hh-moment-avatar{width:0;height:0;overflow:hidden;opacity:0;pointer-events:none}
.hh-moment-author-copy strong{font-size:13px;font-weight:700}
.hh-moment-author-copy span{font-size:0;line-height:0}
.hh-moment-description{font-size:13px;line-height:1.35;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.45);max-width:100%}
.hh-moment-actions{right:-58px;bottom:8px;gap:10px}
.hh-moment-action-profile{position:relative;display:flex;align-items:center;justify-content:center;width:42px;height:52px}
.hh-moment-action-profile__avatar{width:32px;height:32px;border-radius:999px;overflow:hidden;background:#222;display:flex;align-items:center;justify-content:center;color:#fff;font-size:10px;font-weight:700;box-shadow:0 3px 10px rgba(0,0,0,.18)}
.hh-moment-action-profile__avatar img{width:100%;height:100%;object-fit:cover}
.hh-moment-action-profile__plus{position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:18px;height:18px;border-radius:999px;background:#d92b2b;color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;line-height:1;font-weight:700;border:2px solid #e7e7e7}
.hh-moment-action-btn{width:40px;min-height:40px;background:#efefef;color:#1f1f1f;box-shadow:none;gap:6px;padding:0 0 4px;border-radius:999px}
.hh-moment-action-btn span{font-size:18px;line-height:1;margin-top:8px}
.hh-moment-action-btn em{display:block;font-size:11px;color:#1f1f1f;opacity:1;background:transparent;line-height:1;padding:0;margin-top:2px}
.hh-moment-action-btn.is-confirmed{background:#efefef;color:#d92b2b}
.hh-moment-action-btn.is-confirmed em{color:#1f1f1f}
.hh-moment-overlay-gradient{background:linear-gradient(to top,rgba(0,0,0,.52) 0%,rgba(0,0,0,.12) 34%,rgba(0,0,0,0) 58%)}
.hh-moments-empty--centered{height:100%}
@media (max-width:991px){
  .hh-moments-page--overlay{background:#000}
  .hh-moments-stage--fullscreen{padding:0}
  .hh-moments-modal-shell--fullscreen{height:100vh}
  .hh-moments-floating-header{top:12px;right:12px}
  .hh-moments-feed-rail--reference .hh-moment-card{padding:0;align-items:stretch}
  .hh-moments-feed-rail--reference .hh-moment-phone--fullscreen{width:100%;height:100%;border-radius:0}
  .hh-moments-feed-rail--reference .hh-moment-video-wrap{border-radius:0}
  .hh-moment-actions{right:14px;bottom:64px}
  .hh-moment-meta{left:12px;right:72px;bottom:14px}
}


/* Phase 3e – fix single centered desktop viewer */
.hh-moments-feed-rail--reference .hh-moments-feed{
  display:block !important;
  overflow-y:auto;
  overflow-x:hidden;
  scroll-snap-type:y mandatory;
  scroll-behavior:smooth;
}
.hh-moments-feed-rail--reference .hh-moment-card{
  display:flex;
  width:100%;
  min-height:100%;
  box-sizing:border-box;
}
.hh-moments-feed-rail--reference .hh-moment-card + .hh-moment-card{
  margin-top:0;
}
@media (min-width:992px){
  .hh-moments-feed-rail--reference .hh-moments-feed{
    max-width:100%;
  }
  .hh-moments-feed-rail--reference .hh-moment-card{
    min-height:calc(100vh - 36px);
  }
}


/* Phase 3f – right actions closer to reference + upload pill */
.hh-moments-floating-header{gap:10px;align-items:center}
.hh-moments-upload-pill{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:999px;min-height:36px;border:1px solid rgba(217,43,43,.18);background:linear-gradient(180deg,#ff5c5c,#d92b2b);color:#fff;text-decoration:none;box-shadow:0 2px 12px rgba(0,0,0,.12);font-weight:600}
.hh-moments-upload-pill:hover{color:#fff;transform:translateY(-1px)}
.hh-moments-upload-pill__icon{width:14px;height:14px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.hh-moments-upload-pill__icon svg{width:14px;height:14px;display:block}
.hh-moments-upload-pill__label{font-size:12px;white-space:nowrap}
.hh-moment-actions{right:-56px;bottom:16px;gap:8px}
.hh-moment-action-btn--icon{padding:0;border:0}
.hh-moment-action-btn--icon span{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;margin-top:7px}
.hh-moment-action-btn--icon span svg{width:20px;height:20px;display:block}
.hh-moment-action-btn--icon em{min-height:12px;font-size:10px;font-weight:600;margin-top:0}
.hh-moment-action-btn--icon.is-static{pointer-events:none}
@media (max-width:991px){
  .hh-moments-floating-header{left:12px;right:12px;justify-content:space-between;gap:8px}
  .hh-moments-upload-pill{padding:7px 11px;min-height:34px}
  .hh-moments-upload-pill__label{font-size:11px}
  .hh-moment-actions{right:10px;bottom:76px}
}


/* Phase 3g – actions visible outside clipped video area */
.hh-moment-phone--fullscreen{overflow:visible}
.hh-moment-actions{z-index:6}
@media (min-width:992px){
  .hh-moment-actions{right:-72px;bottom:14px}
}
@media (max-width:991px){
  .hh-moment-actions{right:12px;bottom:76px}
}


/* Phase 7 – real comments sheet */
.hh-moment-comments-sheet{position:fixed;inset:0;z-index:10030;display:flex;align-items:flex-end;justify-content:center}
.hh-moment-comments-sheet__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.42);backdrop-filter:blur(2px)}
.hh-moment-comments-sheet__panel{position:relative;z-index:1;width:min(100%,620px);max-height:min(78vh,780px);background:linear-gradient(180deg,#12161e,#0c1017);border:1px solid rgba(255,255,255,.08);border-radius:24px 24px 0 0;box-shadow:0 -12px 40px rgba(0,0,0,.35);display:flex;flex-direction:column;overflow:hidden}
.hh-moment-comments-sheet__handle{width:56px;height:5px;border-radius:999px;background:rgba(255,255,255,.18);margin:10px auto 0}
.hh-moment-comments-sheet__head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid rgba(255,255,255,.08);color:#fff}
.hh-moment-comments-sheet__close{width:36px;height:36px;border:0;border-radius:999px;background:rgba(255,255,255,.06);color:#fff;font-size:24px;line-height:1;cursor:pointer}
.hh-moment-comments-sheet__body{padding:14px 16px;overflow:auto;min-height:180px}
.hh-moment-comments-sheet__loading,.hh-moment-comments-empty,.hh-moment-comments-login-hint{color:rgba(255,255,255,.72);padding:12px 4px}
.hh-moment-comments-list{display:flex;flex-direction:column;gap:12px}
.hh-moment-comment{display:flex;gap:10px;color:#fff}
.hh-moment-comment__avatar{width:36px;height:36px;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;flex:0 0 auto}
.hh-moment-comment__avatar img{width:100%;height:100%;object-fit:cover}
.hh-moment-comment__body{min-width:0;flex:1;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);border-radius:16px;padding:10px 12px}
.hh-moment-comment__meta strong{font-size:13px;color:#fff}
.hh-moment-comment__text{margin-top:4px;font-size:13px;line-height:1.45;color:rgba(255,255,255,.88)}
.hh-moment-comments-form{border-top:1px solid rgba(255,255,255,.08);padding:14px 16px;background:rgba(0,0,0,.14)}
.hh-moment-comments-form__textarea{width:100%;min-height:84px;border-radius:14px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.04);color:#fff;padding:12px 13px;resize:vertical}
.hh-moment-comments-form__footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}
.hh-moment-comments-form__status{font-size:12px;color:rgba(255,255,255,.72)}
.hh-moment-comments-form__submit{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 16px;border-radius:999px;border:1px solid rgba(217,43,43,.18);background:linear-gradient(180deg,#ff5c5c,#d92b2b);color:#fff;cursor:pointer}
@media (max-width:991px){.hh-moment-comments-sheet__panel{width:100%;max-height:82vh;border-radius:18px 18px 0 0}}


/* Phase 8 – real save/bookmark state for Moments */
.hh-moment-action-btn.is-saved{
    background:#efefef;
    color:#d92b2b;
}
.hh-moment-action-btn.is-saved em{
    color:#d92b2b;
}


/* Phase 9 – bring upload/edit visually closer to feed viewer */
.hh-moments-editor-shell--visual{
  background:transparent;
  border:0;
  box-shadow:none;
  padding:0;
  position:relative;
}
.hh-moments-floating-header--editor{
  position:absolute;
  top:12px;
  right:12px;
  z-index:8;
  display:flex;
  align-items:center;
  gap:10px;
}
.hh-moments-secondary-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  min-height:36px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.92);
  color:#2c2c2c;
  text-decoration:none;
  box-shadow:0 2px 12px rgba(0,0,0,.10);
}
.hh-moments-secondary-pill:hover{color:#1c1c1c;transform:translateY(-1px)}
.hh-moments-secondary-pill__icon,
.hh-moments-secondary-pill__icon svg{width:14px;height:14px;display:block}
.hh-moments-secondary-pill__label{font-size:12px;font-weight:500;white-space:nowrap}
.hh-moments-editor-title{
  position:absolute;
  top:18px;
  left:18px;
  z-index:7;
  max-width:420px;
  color:#fff;
}
.hh-moments-editor-title h1{
  margin:0;
  font-size:clamp(24px,3.2vw,44px);
  line-height:1.03;
  color:#fff;
}
.hh-moments-editor-title p{
  margin:10px 0 0;
  color:rgba(255,255,255,.72);
  line-height:1.6;
  font-size:14px;
}
.hh-moments-upload-grid--modal,
.hh-moments-trim-layout--modal{
  height:100%;
  min-height:100%;
  display:grid;
  grid-template-columns:minmax(0,520px) minmax(0,1fr);
  align-items:center;
  gap:32px;
  padding:100px 24px 24px;
}
.hh-moments-upload-main,
.hh-moments-trim-controls{
  max-width:520px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(13,16,22,.88);
  border-radius:28px;
  padding:22px;
  box-shadow:0 18px 50px rgba(0,0,0,.26);
}
.hh-moments-upload-main .hh-moments-fieldset,
.hh-moments-trim-controls .hh-moments-trim-card,
.hh-moments-trim-controls .hh-moments-trim-stats{
  background:rgba(255,255,255,.04);
}
.hh-moments-upload-preview--modal,
.hh-moments-trim-preview{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100%;
}
.hh-moments-upload-preview--modal .hh-moment-phone--fullscreen,
.hh-moments-trim-preview .hh-moment-phone--fullscreen{
  width:min(100%,430px);
  max-width:430px;
}
.hh-moment-actions--preview{
  right:-56px;
  bottom:18px;
}
.hh-moment-actions--preview .hh-moment-action-btn{
  background:#efefef;
  color:#1f1f1f;
  box-shadow:none;
}
.hh-moment-actions--preview .hh-moment-action-btn em{
  opacity:1;
  color:#1f1f1f;
}
.hh-moment-actions--preview .hh-moment-action-btn.is-static{
  pointer-events:auto;
}
.hh-moment-actions--preview .hh-moment-action-btn span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  margin-top:7px;
  font-size:18px;
  line-height:1;
}
.hh-moments-editor-footer{
  margin-top:18px;
}
@media (max-width:1180px){
  .hh-moments-editor-title{
    position:static;
    max-width:none;
    padding:76px 18px 0;
  }
  .hh-moments-upload-grid--modal,
  .hh-moments-trim-layout--modal{
    grid-template-columns:1fr;
    padding:18px;
    gap:18px;
    height:auto;
    min-height:0;
  }
  .hh-moments-upload-main,
  .hh-moments-trim-controls{
    max-width:none;
  }
}
@media (max-width:991px){
  .hh-moments-floating-header--editor{
    left:12px;
    right:12px;
    justify-content:space-between;
    gap:8px;
  }
  .hh-moments-secondary-pill{
    padding:7px 11px;
    min-height:34px;
  }
  .hh-moments-secondary-pill__label{
    font-size:11px;
  }
  .hh-moments-editor-title{
    padding:70px 14px 0;
  }
  .hh-moments-editor-title h1{
    font-size:28px;
  }
  .hh-moments-upload-grid--modal,
  .hh-moments-trim-layout--modal{
    padding:14px;
  }
  .hh-moments-upload-preview--modal .hh-moment-phone--fullscreen,
  .hh-moments-trim-preview .hh-moment-phone--fullscreen{
    width:100%;
    max-width:none;
  }
  .hh-moment-actions--preview{
    right:12px;
    bottom:76px;
  }
}


/* Phase 9a – keep save/apply controls visible in upload/edit */
.hh-moments-upload-form,
.hh-moments-trim-layout--modal{
  height:100%;
}
.hh-moments-upload-main,
.hh-moments-trim-controls{
  display:flex;
  flex-direction:column;
}
.hh-moments-upload-main{
  min-height:0;
}
.hh-moments-editor-footer--panel{
  margin-top:auto;
  position:sticky;
  bottom:0;
  z-index:5;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(13,16,22,0), rgba(13,16,22,.96) 22%, rgba(13,16,22,.98) 100%);
}
.hh-moments-editor-footer--panel .hh-moments-secondary-button,
.hh-moments-editor-footer--panel .hh-moments-primary-button{
  min-width:180px;
}
@media (max-width:1180px){
  .hh-moments-editor-footer--panel{
    position:static;
    background:transparent;
    border-top:0;
    padding-top:18px;
  }
}
@media (max-width:991px){
  .hh-moments-editor-footer--panel .hh-moments-secondary-button,
  .hh-moments-editor-footer--panel .hh-moments-primary-button{
    min-width:0;
  }
}


/* Phase 10 – feed viewer refinement */
.hh-moments-top-switcher{
  position:absolute;
  top:14px;
  left:50%;
  transform:translateX(-50%);
  z-index:8;
  display:inline-flex;
  align-items:center;
  gap:18px;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(10,10,15,.18);
  backdrop-filter:blur(10px);
}
.hh-moments-top-switcher__item{
  font-size:12px;
  font-weight:600;
  color:rgba(255,255,255,.62);
  letter-spacing:.01em;
}
.hh-moments-top-switcher__item.is-active{
  color:#fff;
}
.hh-moment-sound-toggle{
  position:absolute;
  right:12px;
  top:12px;
  z-index:5;
  width:50px;
  height:50px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.26);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.hh-moment-sound-toggle svg{
  width:15px;
  height:15px;
  display:block;
}
.hh-moment-sound-toggle.is-unmuted{
  background:rgba(230,57,47,.92);
  border-color:rgba(255,255,255,.18);
}
.hh-moment-play-toggle{
  position:absolute;
  inset:50% auto auto 50%;
  transform:translate(-50%,-50%);
  z-index:5;
  width:72px;
  height:72px;
  border-radius:999px;
  border:0;
  background:rgba(0,0,0,.22);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  opacity:0;
  transition:opacity .18s ease, transform .18s ease;
  pointer-events:none;
  backdrop-filter:blur(8px);
}
.hh-moment-card.is-active .hh-moment-play-toggle.is-paused,
.hh-moment-video-wrap:hover .hh-moment-play-toggle{
  opacity:1;
  pointer-events:auto;
}
.hh-moment-play-toggle__icon{
  font-size:26px;
  line-height:1;
}
.hh-moment-progress{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:3px;
  background:rgba(255,255,255,.14);
  z-index:4;
  overflow:hidden;
}
.hh-moment-progress span{
  display:block;
  width:0;
  height:100%;
  background:#fff;
}
.hh-moment-meta{
  left:16px;
  right:86px;
  bottom:14px;
}
.hh-moment-author-copy strong{
  font-size:14px;
}
.hh-moment-description{
  margin-top:10px;
  font-size:13px;
}
.hh-moment-actions{
  right:-62px;
  bottom:16px;
}
.hh-moment-action-profile__plus{
  border-color:#e7e7e7;
}
.hh-moments-feed-rail--reference .hh-moment-phone--fullscreen{
  width:min(100%,460px);
}
.hh-moments-home-pill,
.hh-moments-upload-pill{
  min-height:38px;
}
@media (max-width:991px){
  .hh-moments-top-switcher{
    top:14px;
    padding:6px 10px;
    gap:14px;
  }
  .hh-moments-top-switcher__item{
    font-size:11px;
  }
  .hh-moment-play-toggle{
    width:66px;
    height:66px;
  }
  .hh-moment-actions{
    right:10px;
    bottom:88px;
  }
  .hh-moment-meta{
    left:12px;
    right:72px;
    bottom:16px;
  }
}


/* Phase 11 – functional viewer controls + desktop comments drawer */
.hh-moment-card.is-active .hh-moment-play-toggle.is-paused{
  opacity:1;
  pointer-events:auto;
}
.hh-moment-play-toggle.is-paused{
  opacity:1;
  pointer-events:auto;
}
.hh-moment-comments-open,
.hh-moment-comments-open body{
  overflow:hidden;
}
.hh-moment-comments-sheet__panel{
  transition:transform .22s ease, opacity .22s ease;
}
.hh-moment-comments-sheet[hidden]{
  display:none !important;
}
.hh-moment-comment__meta{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.hh-moment-comment__time{
  font-size:11px;
  color:rgba(255,255,255,.46);
}
.hh-moment-comments-form__textarea:focus{
  outline:none;
  border-color:rgba(230,57,47,.42);
  box-shadow:0 0 0 3px rgba(230,57,47,.12);
}
.hh-moment-comments-form__submit:hover{
  transform:translateY(-1px);
}
@media (min-width:992px){
  .hh-moment-comments-sheet{
    align-items:center;
    justify-content:flex-end;
    padding:18px;
  }
  .hh-moment-comments-sheet__backdrop{
    background:rgba(0,0,0,.28);
    backdrop-filter:blur(3px);
  }
  .hh-moment-comments-sheet__panel{
    width:min(430px, calc(100vw - 32px));
    height:calc(100vh - 36px);
    max-height:none;
    border-radius:28px;
    box-shadow:0 20px 70px rgba(0,0,0,.38);
  }
  .hh-moment-comments-sheet__handle{
    display:none;
  }
  .hh-moment-comments-sheet__head{
    padding:18px 20px;
  }
  .hh-moment-comments-sheet__body{
    padding:18px;
  }
  .hh-moment-comments-form{
    padding:16px 18px 18px;
  }
}


/* Phase 12 – interaction polish */
.hh-moment-like-burst{
  position:absolute;
  inset:50% auto auto 50%;
  transform:translate(-50%,-50%) scale(.5);
  z-index:6;
  font-size:86px;
  line-height:1;
  color:#fff;
  text-shadow:0 12px 32px rgba(0,0,0,.26);
  opacity:0;
  pointer-events:auto;
}
.hh-moment-like-burst.is-visible{
  animation:hhMomentLikeBurst .72s ease forwards;
}
@keyframes hhMomentLikeBurst{
  0%{opacity:0;transform:translate(-50%,-50%) scale(.45)}
  18%{opacity:1;transform:translate(-50%,-50%) scale(1.08)}
  65%{opacity:1;transform:translate(-50%,-50%) scale(1)}
  100%{opacity:0;transform:translate(-50%,-54%) scale(1.12)}
}
.hh-moment-sound-toggle:hover,
.hh-moment-play-toggle:hover{
  transform:translate(-50%,-50%) scale(1.03);
}
.hh-moment-sound-toggle:hover{
  transform:none;
  background:rgba(0,0,0,.38);
}
.hh-moment-comments-sheet__panel{
  overflow:hidden;
}
.hh-moment-comments-sheet__body{
  overscroll-behavior:contain;
}
.hh-moment-action-btn.is-confirmed{
  transform:scale(1.02);
}


/* Phase 13 – chrome auto-hide + toast polish */
.hh-moments-top-switcher{
  border:1px solid rgba(255,255,255,.08);
}
.hh-moments-top-switcher__item{
  position:relative;
}
.hh-moments-top-switcher__item.is-active::after{
  content:'';
  position:absolute;
  left:0;
  right:0;
  bottom:-8px;
  height:2px;
  border-radius:999px;
  background:#fff;
}
.hh-moments-toast{
  position:fixed;
  left:50%;
  bottom:28px;
  transform:translateX(-50%) translateY(10px);
  z-index:1300;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(10,10,15,.88);
  color:#fff;
  font-size:13px;
  font-weight:700;
  line-height:1.2;
  box-shadow:0 18px 40px rgba(0,0,0,.28);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
}
.hh-moments-toast.is-visible{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}
.hh-moment-card .hh-moments-frame-close,
.hh-moment-card .hh-moment-sound-toggle,
.hh-moment-card .hh-moment-play-toggle,
.hh-moment-card .hh-moment-meta,
.hh-moment-card .hh-moment-actions{
  transition:opacity .18s ease, transform .18s ease;
}
.hh-moment-card.is-chrome-hidden .hh-moments-frame-close,
.hh-moment-card.is-chrome-hidden .hh-moment-sound-toggle,
.hh-moment-card.is-chrome-hidden .hh-moment-meta,
.hh-moment-card.is-chrome-hidden .hh-moment-actions{
  opacity:0;
  pointer-events:auto;
}
.hh-moment-card.is-chrome-hidden .hh-moment-meta{
  transform:translateY(8px);
}
.hh-moment-card.is-chrome-hidden .hh-moment-actions{
  transform:translateX(8px);
}
.hh-moment-card.is-chrome-hidden .hh-moment-play-toggle{
  opacity:0;
}
@media (max-width:991px){
  .hh-moments-toast{
    bottom:18px;
    font-size:12px;
    padding:9px 12px;
  }
  .hh-moments-top-switcher__item.is-active::after{
    bottom:-6px;
  }
}


/* Phase 14 – idle top chrome + seek + comment context */
.hh-moment-progress{
  cursor:pointer;
}
.hh-moment-comments-context{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 18px 14px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.hh-moment-comments-context__avatar{
  width:42px;
  height:42px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(255,255,255,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:13px;
  font-weight:700;
  flex:0 0 auto;
}
.hh-moment-comments-context__avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.hh-moment-comments-context__copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.hh-moment-comments-context__copy strong{
  color:#fff;
  font-size:14px;
  line-height:1.2;
}
.hh-moment-comments-context__copy span{
  color:rgba(255,255,255,.58);
  font-size:12px;
  line-height:1.4;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.hh-moments-floating-header,
.hh-moments-top-switcher{
  transition:opacity .18s ease, transform .18s ease;
}
body.hh-moments-ui-idle .hh-moments-floating-header,
body.hh-moments-ui-idle .hh-moments-top-switcher{
  opacity:0;
  transform:translateY(-8px);
  pointer-events:auto;
}
@media (max-width:991px){
  .hh-moment-comments-context{
    padding:10px 14px 12px;
  }
}


/* Phase 15 – desktop nav + loading */
.hh-moments-viewer-counter{
  position:absolute;
  left:18px;
  top:18px;
  z-index:9;
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  background:rgba(10,10,15,.36);
  backdrop-filter:blur(10px);
  color:#fff;
  font-size:12px;
  font-weight:700;
}
.hh-moments-desktop-nav{
  position:absolute;
  left:calc(50% - 330px);
  top:50%;
  transform:translateY(-50%);
  z-index:9;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.hh-moments-desktop-nav__btn{
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(10,10,15,.36);
  color:#fff;
  font-size:18px;
  line-height:1;
  backdrop-filter:blur(10px);
  cursor:pointer;
  transition:opacity .18s ease, transform .18s ease, border-color .18s ease;
}
.hh-moments-desktop-nav__btn:hover:not(:disabled){
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.22);
}
.hh-moments-desktop-nav__btn:disabled{
  opacity:.34;
  cursor:default;
}
.hh-moment-loading{
  position:absolute;
  inset:0;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.12);
  pointer-events:auto;
}
.hh-moment-loading__spinner{
  width:38px;
  height:38px;
  border-radius:999px;
  border:3px solid rgba(255,255,255,.22);
  border-top-color:#fff;
  animation:hhMomentSpin .7s linear infinite;
}
@keyframes hhMomentSpin{
  to{transform:rotate(360deg)}
}
body.hh-moments-ui-idle .hh-moments-viewer-counter,
body.hh-moments-ui-idle .hh-moments-desktop-nav{
  opacity:0;
  transform:translateY(-8px);
  pointer-events:auto;
}
@media (max-width:991px){
  .hh-moments-viewer-counter{
    left:12px;
    top:60px;
    min-height:32px;
    padding:0 10px;
    font-size:11px;
  }
  .hh-moments-desktop-nav{
    display:none;
  }
}


/* Phase 16 – infinite feed loading */
.hh-moments-feed-loader{
  min-height:120px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  color:rgba(255,255,255,.56);
  font-size:12px;
  scroll-snap-align:end;
}
.hh-moments-feed-loader__spinner{
  width:30px;
  height:30px;
  border-radius:999px;
  border:3px solid rgba(255,255,255,.18);
  border-top-color:#fff;
  animation:hhMomentSpin .7s linear infinite;
}


/* Phase 17 – Following / For you feed */
.hh-moments-top-switcher__item{
  text-decoration:none;
}
.hh-moments-top-switcher__item:hover{
  color:#fff;
}
.hh-moments-empty-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
  margin-top:18px;
}
@media (max-width:991px){
  .hh-moments-empty-actions{
    flex-direction:column;
    align-items:center;
  }
}


/* Phase 17b – direct follow/unfollow from feed on top of stable phase17 */
.hh-moment-follow-form{
  display:block;
}
.hh-moment-follow-form .hh-moment-action-profile{
  cursor:pointer;
  border:0;
  background:transparent;
  padding:0;
}
.hh-moment-action-profile.is-following .hh-moment-action-profile__plus{
  background:#fff;
  color:#121212;
}


/* Phase 19 – cover / poster selection for upload + edit */
.hh-moments-cover-card{
  margin-top:18px;
  display:grid;
  grid-template-columns:96px minmax(0,1fr);
  gap:14px;
  align-items:center;
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
}
.hh-moments-cover-thumb{
  width:96px;
  aspect-ratio:9/16;
  border-radius:14px;
  overflow:hidden;
  background:rgba(0,0,0,.28);
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(255,255,255,.56);
  font-size:12px;
  text-align:center;
  padding:10px;
}
.hh-moments-cover-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.hh-moments-cover-copy{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.hh-moments-cover-copy strong{
  color:#fff;
  font-size:15px;
}
.hh-moments-cover-copy span{
  color:rgba(255,255,255,.7);
  line-height:1.55;
  font-size:13px;
}
.hh-moments-cover-editor{
  display:grid;
  grid-template-columns:110px minmax(0,1fr);
  gap:14px;
  align-items:center;
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
}
.hh-moments-cover-editor__thumb{
  width:110px;
  aspect-ratio:9/16;
  border-radius:14px;
  overflow:hidden;
  background:rgba(0,0,0,.28);
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(255,255,255,.56);
  font-size:12px;
  text-align:center;
  padding:10px;
}
.hh-moments-cover-editor__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.hh-moments-cover-editor__copy{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.hh-moments-cover-editor__copy strong{
  color:#fff;
  font-size:15px;
}
.hh-moments-cover-editor__copy span{
  color:rgba(255,255,255,.72);
  line-height:1.55;
  font-size:13px;
}
@media (max-width: 900px){
  .hh-moments-cover-card,
  .hh-moments-cover-editor{
    grid-template-columns:1fr;
  }
  .hh-moments-cover-thumb,
  .hh-moments-cover-editor__thumb{
    width:100%;
    max-width:170px;
  }
}

/* Phase 20 – upload workspace closer to reference while keeping real flow */
.hh-moments-upload-workspace{
  background:#efefef;
  min-height:calc(100vh - 100px);
  padding:28px 24px 40px;
}
.hh-moments-upload-workspace::before,
.hh-moments-upload-workspace::after{
  display:none;
}
.hh-moments-upload-ref-shell{
  max-width:1340px;
  margin:0 auto;
}
.hh-moments-upload-ref-shell .hh-moments-alert{
  margin-bottom:18px;
}
.hh-moments-upload-file-input{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:auto;
}
.hh-moments-upload-topcard,
.hh-moments-upload-panel-ref,
.hh-moments-upload-check-card,
.hh-moments-upload-preview-ref,
.hh-moments-preview-tools{
  border:1px solid rgba(17,24,39,.08);
  background:#fff;
  box-shadow:0 10px 30px rgba(15,23,42,.05);
}
.hh-moments-upload-topcard{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  border-radius:18px;
  padding:22px 22px 18px;
  margin-bottom:28px;
  position:relative;
  overflow:hidden;
}
.hh-moments-upload-topcard::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:4px;
  background:#16d1a4;
}
.hh-moments-upload-topcard__copy{
  min-width:0;
}
.hh-moments-upload-topcard__title{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.hh-moments-upload-topcard__title strong{
  font-size:18px;
  line-height:1.4;
  color:#161616;
  word-break:break-word;
}
.hh-moments-upload-quality{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:20px;
  padding:0 6px;
  border-radius:6px;
  background:#f1f1f1;
  color:#333;
  font-size:11px;
  font-weight:700;
}
.hh-moments-upload-topcard__status{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:8px;
  color:#08a37d;
  font-size:14px;
}
.hh-moments-upload-status-dot{
  width:12px;
  height:12px;
  border-radius:999px;
  background:#08a37d;
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.75);
}
.hh-moments-upload-topcard.is-empty .hh-moments-upload-topcard__status{
  color:#666;
}
.hh-moments-upload-topcard.is-empty .hh-moments-upload-status-dot{
  background:#c9c9c9;
}
.hh-moments-upload-replace{
  flex:0 0 auto;
  min-height:44px;
  padding:0 18px;
  border:1px solid rgba(17,24,39,.08);
  border-radius:12px;
  background:#f5f5f5;
  color:#222;
  cursor:pointer;
}
.hh-moments-upload-layout-ref{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:22px;
  align-items:start;
}
.hh-moments-upload-main-ref{
  min-width:0;
}
.hh-moments-upload-section-label{
  margin:0 0 12px;
  font-size:16px;
  font-weight:700;
  color:#171717;
}
.hh-moments-upload-panel-ref{
  border-radius:18px;
  padding:18px;
}
.hh-moments-textarea--ref{
  min-height:188px;
  resize:vertical;
  border-radius:12px;
  border:1px solid #e8e8e8;
  background:#f8f8f8;
  color:#171717;
}
.hh-moments-textarea--ref::placeholder{
  color:#8a8a8a;
}
.hh-moments-upload-helperbar{
  display:flex;
  align-items:center;
  gap:16px;
  padding:14px 0 10px;
  color:#737373;
  font-size:13px;
}
.hh-moments-upload-helperbar__count{
  margin-left:auto;
}
.hh-moments-upload-suggestions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  padding-top:10px;
  border-top:1px solid #ececec;
}
.hh-moments-upload-suggestions__label{
  color:#6e6e6e;
  font-size:13px;
  margin-right:2px;
}
.hh-moments-upload-chip{
  min-height:28px;
  padding:0 10px;
  border:1px solid #ebebeb;
  border-radius:8px;
  background:#fafafa;
  color:#333;
  font-size:13px;
  cursor:pointer;
}
.hh-moments-upload-cover-block{
  margin-top:22px;
}
.hh-moments-upload-cover-head{
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:12px;
  color:#191919;
}
.hh-moments-upload-cover-info{
  color:#8c8c8c;
  font-size:13px;
}
.hh-moments-upload-cover-row{
  display:flex;
  align-items:flex-end;
  gap:16px;
}
.hh-moments-upload-cover-row .hh-moments-cover-thumb{
  width:116px;
  min-width:116px;
  height:156px;
  border-radius:12px;
  overflow:hidden;
  background:#f1f1f1;
  border:1px solid #ececec;
}
.hh-moments-upload-cover-row .hh-moments-cover-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.hh-moments-upload-cover-edit{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 14px;
  border-radius:10px;
  background:rgba(17,17,17,.82);
  color:#fff;
  text-decoration:none;
}
.hh-moments-upload-cover-edit.is-disabled{
  opacity:.45;
  pointer-events:auto;
}
.hh-moments-upload-check-card{
  border-radius:18px;
  padding:18px;
  margin-top:0;
}
.hh-moments-upload-check-card__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:10px;
  color:#191919;
}
.hh-moments-upload-check-card p{
  margin:0;
  color:#169a78;
  font-size:14px;
  line-height:1.6;
}
.hh-moments-upload-check-ok{
  display:inline-block;
  margin-right:8px;
}
.hh-moments-upload-toggle{
  width:38px;
  height:22px;
  border:0;
  border-radius:999px;
  padding:2px;
  background:#24d0eb;
}
.hh-moments-upload-toggle span{
  display:block;
  width:18px;
  height:18px;
  margin-left:auto;
  border-radius:999px;
  background:#fff;
  box-shadow:0 1px 4px rgba(0,0,0,.12);
}
.hh-moments-upload-preview-ref{
  border-radius:18px;
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
}
.hh-moments-preview-modes{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  margin-bottom:14px;
}
.hh-moments-preview-mode{
  min-height:32px;
  padding:0 14px;
  border:1px solid #ececec;
  border-radius:8px;
  background:#f6f6f6;
  color:#4a4a4a;
  font-size:13px;
}
.hh-moments-preview-mode.is-active{
  background:#fff;
  color:#141414;
  box-shadow:0 4px 10px rgba(0,0,0,.04);
}
.hh-moments-preview-mode--icon{
  width:32px;
  padding:0;
}
.hh-moments-upload-preview-phone{
  width:270px;
  max-width:270px;
  margin:0 auto;
  padding:8px;
  border-radius:28px;
  background:#000;
  box-shadow:0 10px 30px rgba(0,0,0,.12);
}
.hh-moments-preview-phone__top{
  position:absolute;
  top:34px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:12px;
  z-index:4;
  color:#fff;
  font-size:13px;
}
.hh-moments-preview-phone__top strong{
  position:relative;
}
.hh-moments-preview-phone__top strong::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-5px;
  height:2px;
  border-radius:999px;
  background:#fff;
}
.hh-moments-preview-phone__actions{
  position:absolute;
  right:10px;
  bottom:118px;
  z-index:4;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}
.hh-moments-preview-action{
  width:36px;
  height:36px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.96);
  color:#141414;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
  box-shadow:0 4px 10px rgba(0,0,0,.12);
}
.hh-moments-preview-action--avatar{
  width:42px;
  height:56px;
  border-radius:22px;
  background:transparent;
  box-shadow:none;
  flex-direction:column;
  gap:0;
}
.hh-moment-avatar--preview{
  width:38px;
  height:38px;
  border:2px solid #fff;
}
.hh-moments-preview-action--avatar em{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  margin-top:-6px;
  border-radius:999px;
  background:#ff2f55;
  color:#fff;
  font-style:normal;
  font-size:15px;
  line-height:1;
}
.hh-moment-meta--preview-ref{
  right:62px;
  bottom:58px;
}
.hh-moments-preview-sound{
  margin:8px 0 0;
  font-size:12px;
  color:rgba(255,255,255,.86);
}
.hh-moment-meta--preview-minimal{
  left:16px;
  right:16px;
  bottom:22px;
  max-width:none;
}
.hh-moment-author-copy--preview-minimal strong{
  display:block;
  margin:0 0 8px;
  color:#fff;
  font-size:15px;
  line-height:1.2;
}
.hh-moment-author-copy--preview-minimal span{
  display:none;
}
.hh-moment-meta--preview-minimal .hh-moment-description{
  margin:0;
  color:#fff;
}
.hh-moments-preview-bottomnav{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:4;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  align-items:center;
  gap:4px;
  padding:10px 12px 14px;
  background:linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.65) 38%, rgba(0,0,0,.86) 100%);
  color:#fff;
  font-size:10px;
  text-align:center;
}
.hh-moments-preview-bottomnav .is-plus{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:22px;
  margin:0 auto;
  border-radius:8px;
  background:#fff;
  color:#000;
  font-size:20px;
  line-height:1;
}
.hh-moments-preview-tools{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-top:14px;
  border-radius:16px;
  padding:0;
  box-shadow:none;
  background:transparent;
}
.hh-moments-preview-tool{
  min-height:76px;
  padding:10px 8px;
  border:1px solid #ececec;
  border-radius:12px;
  background:#fff;
  color:#222;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  text-decoration:none;
}
.hh-moments-preview-tool em{
  font-style:normal;
  font-size:13px;
}
.hh-moments-preview-tool.is-disabled{
  opacity:.5;
  pointer-events:auto;
}
.hh-moments-upload-actionsbar{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:24px;
}
.hh-moments-upload-actionsbar .hh-moments-primary-button,
.hh-moments-upload-actionsbar .hh-moments-secondary-button{
  min-height:46px;
  min-width:184px;
  border-radius:12px;
}
.hh-moments-upload-actionsbar .hh-moments-primary-button{
  background:#ff2f55;
  border-color:#ff2f55;
}
.hh-moments-upload-actionsbar .hh-moments-secondary-button{
  background:#f6f6f6;
  border-color:#ececec;
  color:#171717;
}
.hh-moments-upload-workspace .hh-moments-alert.is-error{
  background:#fff3f3;
  border-color:#f1c8c8;
  color:#8d2020;
}
.hh-moments-upload-workspace .hh-moments-alert.is-success{
  background:#effcf7;
  border-color:#ccefe3;
  color:#13684f;
}
@media (max-width:1180px){
  .hh-moments-upload-layout-ref{
    grid-template-columns:1fr;
  }
  .hh-moments-upload-preview-ref{
    order:-1;
  }
  .hh-moments-upload-preview-phone{
    width:300px;
    max-width:300px;
  }
}
@media (max-width:767px){
  .hh-moments-upload-workspace{
    padding:18px 12px 28px;
  }
  .hh-moments-upload-topcard{
    flex-direction:column;
    align-items:stretch;
  }
  .hh-moments-upload-replace{
    width:100%;
  }
  .hh-moments-upload-cover-row{
    flex-direction:column;
    align-items:flex-start;
  }
  .hh-moments-upload-preview-phone{
    width:100%;
    max-width:none;
  }
  .hh-moments-upload-actionsbar{
    flex-direction:column;
    align-items:stretch;
  }
  .hh-moments-upload-actionsbar .hh-moments-primary-button,
  .hh-moments-upload-actionsbar .hh-moments-secondary-button{
    width:100%;
    min-width:0;
  }
}
.hh-moments-upload-progress--workspace{
  margin:-10px 0 18px;
  background:#e8e8e8;
}
.hh-moments-upload-progress--workspace .hh-moments-upload-progress-bar{
  background:linear-gradient(90deg,#16d1a4,#08a37d);
}


/* Phase 20b – immersive moments screens + preserved avatar fix */
body.hh-moments-immersive #page{padding-top:0 !important}
body.hh-moments-immersive #wrapper,
body.hh-moments-immersive #page{min-height:100vh}
body.hh-moments-immersive .hh-moments-page--overlay{margin-top:0}
.hh-moments-upload-workspace.hh-moments-page--overlay{position:fixed;inset:0;z-index:9999;min-height:100vh;overflow:auto}
.hh-moments-upload-workspace .hh-moments-upload-ref-shell{min-height:100vh}
.hh-moment-follow-form .hh-moment-action-profile,
button.hh-moment-action-profile{cursor:pointer;border:0;background:transparent;padding:0;margin:0;width:42px;height:52px;overflow:visible;appearance:none;-webkit-appearance:none;border-radius:0;box-shadow:none;display:flex;align-items:center;justify-content:center;line-height:0}
.hh-moment-follow-form .hh-moment-action-profile::-webkit-scrollbar,
button.hh-moment-action-profile::-webkit-scrollbar{width:0;height:0}
.hh-moment-follow-form .hh-moment-action-profile__avatar,
button.hh-moment-action-profile .hh-moment-action-profile__avatar{width:32px;height:32px;flex:0 0 32px;border-radius:999px;overflow:hidden}
.hh-moment-follow-form .hh-moment-action-profile__avatar img,
.hh-moment-follow-form .hh-moment-action-profile__avatar span,
button.hh-moment-action-profile .hh-moment-action-profile__avatar img,
button.hh-moment-action-profile .hh-moment-action-profile__avatar span{display:block;width:100%;height:100%}
.hh-moment-follow-form .hh-moment-action-profile__avatar img,
button.hh-moment-action-profile .hh-moment-action-profile__avatar img{object-fit:cover}
.hh-moment-action-profile.is-following .hh-moment-action-profile__plus{background:#fff;color:#121212}
@media (max-width:991px){
  .hh-moments-upload-workspace.hh-moments-page--overlay{position:fixed;inset:0;overflow:auto}
}

/* Phase 20d – fullscreen trim workspace with reference-style timeline */
.hh-moments-trim-ref-page{
  background:#fff;
  min-height:100vh;
  height:100vh;
  padding:0;
  overflow:hidden;
}
.hh-moments-trim-ref-page::before,
.hh-moments-trim-ref-page::after{
  display:none;
}
.hh-moments-trim-ref-shell{
  width:100%;
  height:100vh;
  min-height:100vh;
}
.hh-moments-trim-ref-form{
  display:flex;
  flex-direction:column;
  height:100%;
  min-height:100vh;
  background:#fff;
  border:0;
  border-radius:0;
  overflow:hidden;
}
.hh-moments-trim-ref-shell .hh-moments-alert{
  margin-bottom:12px;
}
.hh-moments-trim-ref-topbar{
  display:grid;
  grid-template-columns:minmax(220px,1fr) auto minmax(220px,1fr);
  align-items:center;
  gap:18px;
  padding:12px 18px;
  border-bottom:1px solid #ececec;
  background:#fff;
}
.hh-moments-trim-ref-topbar__left,
.hh-moments-trim-ref-topbar__center,
.hh-moments-trim-ref-topbar__right{
  display:flex;
  align-items:center;
}
.hh-moments-trim-ref-topbar__center{
  justify-content:center;
  gap:8px;
}
.hh-moments-trim-ref-topbar__right{
  justify-content:flex-end;
  gap:12px;
}
.hh-moments-trim-backlink{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#18181b;
  text-decoration:none;
  min-height:40px;
}
.hh-moments-trim-backlink__icon{
  width:32px;
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #e5e7eb;
  border-radius:10px;
  background:#fafafa;
  font-size:24px;
  line-height:1;
}
.hh-moments-trim-backlink__text{
  font-weight:700;
  font-size:14px;
}
.hh-moments-trim-toolbtn,
.hh-moments-trim-zoom,
.hh-moments-trim-ghostbtn,
.hh-moments-trim-savebtn,
.hh-moments-trim-zoomtool,
.hh-moments-trim-playtoggle,
.hh-moments-trim-laneicon,
.hh-moments-trim-reset,
.hh-moments-trim-panelclose{
  border:1px solid #e5e7eb;
  background:#fff;
  color:#161616;
  border-radius:10px;
}
.hh-moments-trim-toolbtn,
.hh-moments-trim-zoomtool,
.hh-moments-trim-playtoggle,
.hh-moments-trim-laneicon,
.hh-moments-trim-panelclose{
  width:36px;
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  padding:0;
  line-height:1;
  overflow:hidden;
  appearance:none;
  -webkit-appearance:none;
  scrollbar-width:none;
}
.hh-moments-trim-toolbtn::-webkit-scrollbar,
.hh-moments-trim-zoomtool::-webkit-scrollbar,
.hh-moments-trim-playtoggle::-webkit-scrollbar,
.hh-moments-trim-laneicon::-webkit-scrollbar,
.hh-moments-trim-panelclose::-webkit-scrollbar,
.hh-moments-trim-reset::-webkit-scrollbar,
.hh-moments-trim-expand::-webkit-scrollbar,
.hh-moments-trim-sidebutton::-webkit-scrollbar,
.hh-moments-trim-sidebutton--dock::-webkit-scrollbar,
.hh-moments-trim-ghostbtn::-webkit-scrollbar,
.hh-moments-trim-savebtn::-webkit-scrollbar{
  width:0;
  height:0;
}
.hh-moments-trim-toolbtn.is-active{
  border-color:#c7d2fe;
  background:#eef2ff;
}
.hh-moments-trim-zoom{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:70px;
  height:36px;
  padding:0 12px;
  font-weight:700;
  font-size:14px;
}
.hh-moments-trim-ghostbtn,
.hh-moments-trim-savebtn{
  min-height:40px;
  padding:0 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight:700;
  cursor:pointer;
  line-height:1;
  overflow:hidden;
  appearance:none;
  -webkit-appearance:none;
  scrollbar-width:none;
}
.hh-moments-trim-ghostbtn{
  color:#18181b;
  background:#fff;
}
.hh-moments-trim-savebtn{
  background:#fe2c55;
  border-color:#fe2c55;
  color:#fff;
}
.hh-moments-trim-ref-body{
  min-height:0;
  flex:1 1 auto;
  display:grid;
  grid-template-columns:72px minmax(0,1fr) 56px;
  background:#f7f7f7;
}
.hh-moments-trim-leftbar{
  padding:16px 12px;
  border-right:1px solid #e5e7eb;
  background:#f8f8f8;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;
}
.hh-moments-trim-sidebutton{
  width:48px;
  min-height:74px;
  padding:8px 6px;
  border:0;
  background:transparent;
  color:#404040;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  overflow:hidden;
  scrollbar-width:none;
}
.hh-moments-trim-sidebutton span{
  font-size:22px;
  line-height:1;
}
.hh-moments-trim-sidebutton em{
  font-style:normal;
  font-size:12px;
}
.hh-moments-trim-mainstage{
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px 22px 0;
  overflow:hidden;
  background:#fff;
}
.hh-moments-trim-canvas{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  border-radius:0;
  background:#fff;
}
.hh-moments-trim-preview-phone{
  width:min(100%,300px);
  aspect-ratio:9/16;
  border-radius:0;
  overflow:hidden;
  box-shadow:0 4px 16px rgba(15,23,42,.12);
  background:#000;
}
.hh-moments-trim-preview-phone .hh-moment-video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.hh-moments-trim-expand{
  position:absolute;
  right:16px;
  bottom:16px;
  width:34px;
  height:34px;
  border:1px solid #d7d7d7;
  border-radius:8px;
  background:#fff;
  cursor:pointer;
  padding:0;
  line-height:1;
  overflow:hidden;
  appearance:none;
  -webkit-appearance:none;
}
.hh-moments-trim-rightdock{
  display:flex;
  min-height:0;
  border-left:1px solid #e5e7eb;
  background:#fafafa;
}
.hh-moments-trim-rightpanel{
  width:260px;
  padding:18px;
  border-right:1px solid #e5e7eb;
  background:#fafafa;
  display:flex;
  flex-direction:column;
  gap:18px;
}
.hh-moments-trim-rightpanel[hidden]{
  display:none !important;
}
.hh-moments-trim-rightpanel__head,
.hh-moments-trim-setting__head,
.hh-moments-trim-sliderrow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.hh-moments-trim-rightpanel__head strong{
  font-size:14px;
  color:#161616;
}
.hh-moments-trim-setting{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.hh-moments-trim-setting__head span,
.hh-moments-trim-fadelabel > span{
  color:#27272a;
  font-size:14px;
}
.hh-moments-trim-reset{
  width:26px;
  height:26px;
  cursor:default;
}
.hh-moments-trim-divider{
  height:1px;
  background:#e5e7eb;
}
.hh-moments-trim-fadelabel{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.hh-moments-trim-sliderrow input[type=range]{
  flex:1 1 auto;
  accent-color:#fe2c55;
}
.hh-moments-trim-unit{
  min-width:50px;
  height:32px;
  border:1px solid #e5e7eb;
  border-radius:8px;
  background:#f3f4f6;
  color:#71717a;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
}
.hh-moments-trim-righttools{
  width:56px;
  padding:12px 6px;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.hh-moments-trim-sidebutton--dock{
  width:44px;
  min-height:78px;
  border-radius:12px;
  background:#fff;
  border:1px solid #e5e7eb;
  box-shadow:0 4px 12px rgba(15,23,42,.05);
}
.hh-moments-trim-sidebutton--dock.is-active{
  border-color:#fecdd3;
  background:#fff5f6;
  color:#111;
}
.hh-moments-trim-bottomshell{
  flex:0 0 auto;
  min-height:176px;
  display:grid;
  grid-template-columns:56px minmax(0,1fr);
  border-top:1px solid #ececec;
  background:#fff;
}
.hh-moments-trim-lanemarker{
  padding:18px 10px 18px 12px;
  border-right:1px solid #e5e7eb;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.hh-moments-trim-laneicon{
  cursor:default;
}
.hh-moments-trim-laneicon{
  font-size:16px;
}
.hh-moments-trim-timelinewrap{
  padding:14px 16px 16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}
.hh-moments-trim-timelinehead{
  display:flex;
  align-items:center;
  gap:10px;
  color:#18181b;
  min-width:0;
}
.hh-moments-trim-time-sep,
.hh-moments-trim-coverhint,
.hh-moments-trim-metrics,
.hh-moments-trim-source{
  color:#71717a;
}
.hh-moments-trim-coverhint{
  margin-left:12px;
  font-size:13px;
  white-space:nowrap;
}
.hh-moments-trim-timelinehead__spacer{
  flex:1 1 auto;
}
.hh-moments-trim-ruler{
  position:relative;
  height:18px;
}
.hh-moments-trim-ruler span{
  position:absolute;
  top:0;
  transform:translateX(-50%);
  font-size:11px;
  color:#a1a1aa;
  white-space:nowrap;
}
.hh-moments-trim-track{
  position:relative;
  height:54px;
  border-radius:10px;
  overflow:hidden;
  background:#111;
  cursor:pointer;
  isolation:isolate;
}
.hh-moments-trim-thumbnails{
  position:absolute;
  inset:0;
  z-index:1;
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(40px,1fr);
  gap:1px;
  background:#111;
}
.hh-moments-trim-thumb{
  background:#111827 center center/cover no-repeat;
  position:relative;
}
.hh-moments-trim-thumb::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.1));
}
.hh-moments-trim-selection{
  position:absolute;
  top:0;
  bottom:0;
  z-index:2;
  border:2px solid #36d399;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.22);
  background:rgba(54,211,153,.08);
  pointer-events:auto;
}
.hh-moments-trim-selection::before,
.hh-moments-trim-selection::after{
  content:"";
  position:absolute;
  top:-2px;
  bottom:-2px;
  width:200vw;
  background:rgba(0,0,0,.64);
  pointer-events:none;
}
.hh-moments-trim-selection::before{
  right:100%;
}
.hh-moments-trim-selection::after{
  left:100%;
}
.hh-moments-trim-selection-fill{
  position:absolute;
  inset:0;
  display:block;
}
.hh-moments-trim-handle{
  position:absolute;
  top:0;
  width:32px;
  height:100%;
  z-index:3;
  border:0;
  background:rgba(255,255,255,.96);
  cursor:ew-resize;
  pointer-events:auto;
  touch-action:none;
}
.hh-moments-trim-handle::before,
.hh-moments-trim-handle::after{
  content:"";
  position:absolute;
  top:16px;
  bottom:16px;
  width:2px;
  border-radius:999px;
  background:#9ca3af;
}
.hh-moments-trim-handle::before{left:11px}
.hh-moments-trim-handle::after{right:11px}
.hh-moments-trim-handle--start{
  left:-12px;
  border-radius:10px 0 0 10px;
}
.hh-moments-trim-handle--end{
  right:-12px;
  border-radius:0 10px 10px 0;
}
.hh-moments-trim-playhead,
.hh-moments-trim-postermarker{
  position:absolute;
  top:-4px;
  bottom:-4px;
  width:2px;
  margin-left:-1px;
  pointer-events:auto;
}
.hh-moments-trim-playhead{
  background:#fff;
  box-shadow:0 0 0 1px rgba(0,0,0,.15);
  z-index:4;
}
.hh-moments-trim-postermarker{
  background:#fe2c55;
  z-index:5;
  border:0;
}
.hh-moments-trim-postermarker::before{
  content:"";
  position:absolute;
  top:-6px;
  left:50%;
  width:10px;
  height:10px;
  margin-left:-5px;
  border-radius:999px;
  background:#fe2c55;
  box-shadow:0 0 0 2px rgba(255,255,255,.9);
}
.hh-moments-trim-metrics{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:18px;
  font-size:13px;
}
.hh-moments-trim-metrics strong,
.hh-moments-trim-source strong{
  color:#18181b;
}
.hh-moments-trim-source{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  font-size:13px;
}
.hh-moments-trim-source strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.hh-moments-trim-source__cover{
  width:34px;
  height:48px;
  border-radius:8px;
  overflow:hidden;
  border:1px solid #e5e7eb;
  background:#f4f4f5;
  flex:0 0 auto;
}
.hh-moments-trim-source__cover img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.hh-moments-trim-source__cover.is-empty{
  width:auto;
  height:auto;
  padding:6px 10px;
}
@media (max-width: 1200px){
  .hh-moments-trim-rightpanel{
    width:220px;
  }
  .hh-moments-trim-coverhint{
    display:none;
  }
}
@media (max-width: 991px){
  .hh-moments-trim-ref-page{
    padding:0;
    height:100vh;
  }
  .hh-moments-trim-ref-shell,
  .hh-moments-trim-ref-form{
    height:100vh;
    border-radius:0;
    border:0;
  }
  .hh-moments-trim-ref-topbar{
    grid-template-columns:1fr auto;
    gap:10px;
    padding:10px 12px;
  }
  .hh-moments-trim-ref-topbar__center{
    display:none;
  }
  .hh-moments-trim-ref-topbar__right{
    grid-column:1 / -1;
    justify-content:flex-end;
  }
  .hh-moments-trim-ref-body{
    grid-template-columns:1fr;
  }
  .hh-moments-trim-leftbar,
  .hh-moments-trim-rightdock{
    display:none;
  }
  .hh-moments-trim-mainstage{
    padding:12px 12px 0;
    min-height:0;
  }
  .hh-moments-trim-preview-phone{
    width:min(100%,280px);
  }
  .hh-moments-trim-bottomshell{
    grid-template-columns:1fr;
    min-height:0;
  }
  .hh-moments-trim-lanemarker{
    display:none;
  }
  .hh-moments-trim-timelinewrap{
    padding:12px;
  }
  .hh-moments-trim-timelinehead{
    flex-wrap:wrap;
  }
  .hh-moments-trim-timelinehead__spacer{
    display:none;
  }
  .hh-moments-trim-track{
    height:64px;
  }
  .hh-moments-trim-source{
    flex-wrap:wrap;
  }
}


/* Phase 20k – dedicated cover step */
.hh-moments-cover-page{
  background:#fff;
  min-height:100vh;
  height:100vh;
  overflow:hidden;
  padding:0;
}
.hh-moments-cover-page::before,
.hh-moments-cover-page::after{
  display:none;
}
.hh-moments-cover-shell{
  width:100%;
  min-height:100vh;
  height:100vh;
  background:#fff;
  display:flex;
  flex-direction:column;
}
.hh-moments-cover-topbar{
  display:flex;
  align-items:center;
  gap:18px;
  padding:14px 18px;
  border-bottom:1px solid #ececec;
  background:#fff;
}
.hh-moments-cover-topbar__copy h1{
  margin:0;
  color:#161616;
  font-size:26px;
  line-height:1.08;
}
.hh-moments-cover-topbar__copy p{
  margin:6px 0 0;
  color:#666;
  font-size:14px;
  line-height:1.55;
}
.hh-moments-cover-layout{
  flex:1 1 auto;
  min-height:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:24px;
  padding:20px 24px 24px;
  background:#fff;
}
.hh-moments-cover-stage,
.hh-moments-cover-card{
  border:1px solid rgba(17,24,39,.08);
  background:#fff;
  box-shadow:0 10px 30px rgba(15,23,42,.05);
  border-radius:18px;
}
.hh-moments-cover-stage{
  display:flex;
  flex-direction:column;
  padding:20px;
  min-height:0;
}
.hh-moments-cover-stage__preview{
  flex:1 1 auto;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:8px 8px 20px;
}
.hh-moments-cover-preview-phone{
  position:relative;
  width:min(100%,320px);
  aspect-ratio:9/16;
  background:#000;
  box-shadow:0 8px 30px rgba(15,23,42,.10);
  overflow:hidden;
}
.hh-moments-cover-preview-phone .hh-moment-video{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.hh-moments-cover-playtoggle{
  position:absolute;
  right:12px;
  bottom:12px;
  width:38px;
  height:38px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background:rgba(0,0,0,.45);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
  overflow:hidden;
}
.hh-moments-cover-stage__controls{
  border-top:1px solid #ececec;
  padding-top:18px;
}
.hh-moments-cover-stage__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
}
.hh-moments-cover-stage__head strong{
  color:#161616;
  font-size:16px;
}
.hh-moments-cover-stage__head span{
  color:#666;
  font-size:13px;
}
.hh-moments-cover-range{
  width:100%;
  accent-color:#fe2c55;
}
.hh-moments-cover-stage__hint{
  margin:12px 0 0;
  color:#666;
  font-size:14px;
  line-height:1.55;
}
.hh-moments-cover-stage__actions{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  margin-top:18px;
}
.hh-moments-cover-side{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.hh-moments-cover-card{
  padding:18px;
}
.hh-moments-cover-card strong{
  display:block;
  margin:0 0 10px;
  color:#161616;
  font-size:16px;
}
.hh-moments-cover-card p{
  margin:10px 0 0;
  color:#666;
  font-size:14px;
  line-height:1.55;
}
.hh-moments-cover-card__thumb{
  width:100%;
  aspect-ratio:9/16;
  max-height:360px;
  border-radius:16px;
  overflow:hidden;
  background:#f3f3f3;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#7a7a7a;
  text-align:center;
  padding:12px;
}
.hh-moments-cover-card__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.hh-moments-cover-filepick{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  margin:6px 0 14px;
  border:1px dashed #d1d5db;
  border-radius:12px;
  background:#fafafa;
  color:#161616;
  cursor:pointer;
  overflow:hidden;
}
.hh-moments-cover-filepick input[type=file]{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}
.hh-moments-cover-filepick span{
  pointer-events:none;
}
@media (max-width: 1100px){
  .hh-moments-cover-layout{
    grid-template-columns:1fr;
  }
  .hh-moments-cover-side{
    order:-1;
  }
}
@media (max-width: 991px){
  .hh-moments-cover-page,
  .hh-moments-cover-shell{
    height:100vh;
  }
  .hh-moments-cover-topbar{
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
    padding:12px 14px;
  }
  .hh-moments-cover-layout{
    padding:14px;
    gap:14px;
  }
  .hh-moments-cover-stage,
  .hh-moments-cover-card{
    border-radius:14px;
    padding:14px;
  }
  .hh-moments-cover-preview-phone{
    width:min(100%,280px);
  }
  .hh-moments-cover-stage__actions .hh-moments-primary-button,
  .hh-moments-cover-card .hh-moments-secondary-button{
    width:100%;
  }
}
