/* HG_V121D6S_RUNTIME_SAFE_UI */

/* Drafts live in New Post only. The legacy side-menu owner remains present but invisible. */
#settingsPanel #hgV121DraftsButton,
#settingsModal #hgV121DraftsButton { display:none!important; }

#fullscreenComposer .hg-v121d6t-post-action {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  margin-left:auto;
}
#fullscreenComposer .hg-v121d6t-drafts-center {
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:10px 14px 4px;
}
#fullscreenComposer .hg-v121d6s-drafts-btn {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:132px;
  min-height:40px;
  padding:9px 16px;
  border:1px solid rgba(255,232,117,.42);
  border-radius:13px;
  background:rgba(255,232,117,.10);
  color:#ffe875;
  font-size:.82rem;
  font-weight:900;
  white-space:nowrap;
}
#fullscreenComposer .hg-v121d6s-drafts-btn b {
  position:absolute;
  top:-7px;
  right:-7px;
  min-width:20px;
  height:20px;
  padding:0 5px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#e3293f;
  border:2px solid #10141b;
  color:#fff;
  font-size:.66rem;
  line-height:1;
  box-shadow:0 4px 12px rgba(0,0,0,.45);
}
#fullscreenComposer .hg-v121d6s-drafts-btn b[hidden] { display:none!important; }
@media(max-width:430px) {
  #fullscreenComposer .hg-v117a-static-021 { gap:8px; padding-left:12px; padding-right:12px; }
  #fullscreenComposer .hg-v117a-static-023 { font-size:1rem; }
  #fullscreenComposer .hg-v121d6t-drafts-center { padding-top:9px; }
  #fullscreenComposer .hg-v121d6s-drafts-btn { min-width:124px; padding:8px 13px; font-size:.76rem; }
  #fullscreenComposer #postBtn { padding-left:13px; padding-right:13px; }
}

/* Fullscreen photos now use the same three actions as the stable text-post viewer. */
#hgV121Gallery .hg-v121d6s-gallery-actions {
  position:absolute;
  left:50%;
  bottom:calc(8px + env(safe-area-inset-bottom,0px));
  transform:translateX(-50%);
  z-index:45;
  width:min(94vw,440px);
  display:grid;
  grid-template-columns:1fr 1.25fr 1fr;
  gap:9px;
  padding:8px;
  border-radius:23px;
  background:rgba(7,11,18,.92);
  border:1px solid rgba(255,255,255,.13);
  box-shadow:0 18px 55px rgba(0,0,0,.72),0 0 28px rgba(0,229,255,.08);
  backdrop-filter:blur(14px);
  pointer-events:auto;
}
#hgV121Gallery .hg-v121d6s-gallery-actions button {
  min-width:0;
  min-height:58px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.13);
  background:rgba(255,255,255,.06);
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:4px;
  font-weight:850;
  font-size:.7rem;
}
#hgV121Gallery .hg-v121d6s-gallery-actions i { font-size:1.2rem; }
#hgV121Gallery .hg-v121d6s-gallery-actions svg { width:23px; height:23px; fill:currentColor; }
#hgV121Gallery .hg-v121d6s-gallery-focus {
  color:#ffe875!important;
  border-color:rgba(255,232,117,.30)!important;
  background:linear-gradient(145deg,rgba(255,232,117,.16),rgba(255,255,255,.05))!important;
}
#hgV121Gallery .hg-v121-gallery-help { bottom:calc(84px + env(safe-area-inset-bottom,0px)); }
@media(max-width:430px) {
  #hgV121Gallery .hg-v121d6s-gallery-actions { width:calc(100vw - 14px); gap:6px; padding:6px; }
  #hgV121Gallery .hg-v121d6s-gallery-actions button { min-height:54px; border-radius:14px; }
}

/* Living Word always uses the top viewport, not a transformed app container. */
html > .hg-living-word-send-scene {
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  width:100dvw!important;
  height:100vh!important;
  height:100dvh!important;
  margin:0!important;
  padding:max(18px,env(safe-area-inset-top,0px)) 18px max(18px,env(safe-area-inset-bottom,0px))!important;
  display:grid!important;
  place-items:center!important;
  transform:none!important;
  z-index:2147483647!important;
  isolation:isolate;
}
html > .hg-living-word-send-scene > .hg-living-word-send-card {
  align-self:center!important;
  justify-self:center!important;
  margin:auto!important;
  transform:none!important;
}

/* HG_V121D6T_LIVING_WORD_TRUE_TOP_LAYER */
#livingWordModal.hg-v120a-open,
#livingWordModal[aria-hidden="false"] {
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:max(12px,env(safe-area-inset-top,0px)) 12px max(12px,env(safe-area-inset-bottom,0px))!important;
}
#livingWordModal .modal-content-base {
  position:relative!important;
  inset:auto!important;
  margin:auto!important;
  transform:none!important;
  width:min(94vw,560px)!important;
  max-height:calc(100dvh - 24px)!important;
}
dialog.hg-v121d6t-lw-toplayer {
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100vh!important;
  height:100dvh!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  overflow:hidden!important;
  z-index:2147483647!important;
}
dialog.hg-v121d6t-lw-toplayer::backdrop { background:rgba(0,0,0,.88); }
dialog.hg-v121d6t-lw-toplayer > .hg-living-word-send-scene {
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:max(18px,env(safe-area-inset-top,0px)) 18px max(18px,env(safe-area-inset-bottom,0px))!important;
  display:grid!important;
  place-items:center!important;
  transform:none!important;
}
dialog.hg-v121d6t-lw-toplayer .hg-living-word-send-card {
  position:relative!important;
  inset:auto!important;
  align-self:center!important;
  justify-self:center!important;
  margin:auto!important;
  transform:none!important;
  width:min(92vw,480px)!important;
  max-height:min(78dvh,660px)!important;
}
.hg-v121d6t-lw-from { margin-top:10px; color:#d8e8ff; font-size:.82rem; font-weight:800; }
.hg-v121d6t-lw-message { margin-top:12px; color:#fff0ad; font-size:.86rem; line-height:1.45; }
