.story-share-composer {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 8, 14, 0.62);
  color: #fff;
}
.story-share-sheet {
  display: flex;
  width: min(880px, 100%);
  max-height: min(680px, calc(100vh - 48px));
  background: #16181d;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}
.story-share-preview-col {
  flex: 0 0 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  background: #0d0f14;
}
.story-share-phone {
  position: relative;
  width: min(100%, 260px);
  aspect-ratio: 9 / 16;
  max-height: calc(100vh - 140px);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.story-share-composer .story-share-canvas,
.story-share-composer .story-share-stage {
  position: absolute;
  inset: 0;
}
.story-share-composer .story-share-canvas {
  touch-action: none;
}
.story-share-chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 10px 12px 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
}
.story-share-progress {
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}
.story-share-progress span {
  display: block;
  width: 34%;
  height: 100%;
  background: #fff;
}
.story-share-story-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.story-share-story-head img {
  width: 28px;
  height: 28px;
  max-height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.story-share-story-head strong,
.story-share-story-head span {
  display: block;
}
.story-share-story-head strong { font-size: 13px; line-height: 1.2; }
.story-share-story-head span { font-size: 11px; opacity: 0.85; }
.story-share-stage {
  position: absolute;
  inset: 0;
}
.story-share-stage.is-default-01,
.story-share-ring.is-default-01 { background: linear-gradient(160deg, #1a1a2e, #16213e); }
.story-share-stage.is-default-02,
.story-share-ring.is-default-02 { background: linear-gradient(160deg, #0f2027, #203a43); }
.story-share-stage.is-default-03,
.story-share-ring.is-default-03 { background: linear-gradient(160deg, #232526, #414345); }
.story-share-stage.is-default-04,
.story-share-ring.is-default-04 { background: linear-gradient(160deg, #141e30, #243b55); }
.story-share-stage.is-default-05,
.story-share-ring.is-default-05 { background: linear-gradient(160deg, #000000, #434343); }
.story-share-stage.is-default-06,
.story-share-ring.is-default-06 { background: linear-gradient(160deg, #1f1c2c, #928dab); }
.tag_lbox_stories .status-list li a > .story-share-ring {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  padding: 36px 10px 18px;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  pointer-events: none;
}
.tag_lbox_stories .status-list li.not_seen_story a > .story-share-ring {
  top: 5px;
  right: 5px;
  bottom: 5px;
  left: 5px;
  border-radius: 12px;
}
.tag_lbox_stories .status-list li a > img.story-share-event-thumb,
.tag_lbox_stories .status-list li.not_seen_story a > img.story-share-event-thumb {
  object-fit: contain;
  background: #111;
  padding: 10px;
  box-sizing: border-box;
}
.story-share-card {
  position: absolute;
  width: min(78%, 280px);
  background: #111;
  color: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  display: flex;
  flex-direction: column;
}
.story-share-card-who {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  font-weight: 700;
}
.story-share-card-who span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.story-share-card-who img {
  width: 28px;
  height: 28px;
  min-width: 28px;
  max-height: 28px;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
}
.story-share-card-main {
  position: relative;
  width: 100%;
  background: #0c0c0c;
}
.story-share-card-main .story-share-media,
.story-share-card-main .story-share-preview {
  width: 100%;
  height: 148px;
  max-width: 100%;
  max-height: 148px;
  margin: 0;
  object-fit: cover;
  display: block;
  background: #0c0c0c;
  pointer-events: none;
  transform: none;
}
.story-share-play {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.story-share-card-body,
.story-share-card.is-unavailable p {
  display: block;
  min-height: 112px;
  max-height: 148px;
  margin: 0;
  padding: 14px 12px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.35;
  color: #f3f3f3;
}
.story-share-card-caption {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 8px 12px 0;
  font-size: 13px;
  line-height: 1.35;
}
.story-share-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 6px 8px 8px 12px;
}
.story-share-card-open {
  color: #8ecbff;
  font-weight: 700;
  padding: 0;
}
.story-share-resize {
  position: static;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 0;
  background: rgba(255,255,255,.85);
  color: #111;
  cursor: nwse-resize;
}
.story-share-composer .story-share-card {
  width: min(84%, 220px);
}
.tag_lbox_img_innr .dragable:has(.story-share-stage) {
  position: relative;
  width: 100%;
  height: 100%;
}
.story_lightbox .story-img .tag_lbox_img_innr .story-share-card {
  width: min(92%, 560px);
}
.story-share-card.is-event .story-share-media,
.story-share-card.is-youtube .story-share-media {
  height: auto;
  object-fit: contain;
}
.story_lightbox .story-img .tag_lbox_img_innr .story-share-card .story-share-media,
.story_lightbox .story-img .tag_lbox_img_innr .story-share-card .story-share-preview,
.lightbox-content .story-img .tag_lbox_img_innr .story-share-card .story-share-media,
.lightbox-content .story-img .tag_lbox_img_innr .story-share-card .story-share-preview {
  width: 100%;
  height: min(52vh, 560px);
  max-width: 100%;
  max-height: min(52vh, 560px);
  margin: 0;
  object-fit: cover;
  vertical-align: top;
  pointer-events: none;
  transform: none;
}
.story_lightbox .story-img .tag_lbox_img_innr .story-share-card.is-event .story-share-media,
.lightbox-content .story-img .tag_lbox_img_innr .story-share-card.is-event .story-share-media,
.story_lightbox .story-img .tag_lbox_img_innr .story-share-card.is-youtube .story-share-media,
.lightbox-content .story-img .tag_lbox_img_innr .story-share-card.is-youtube .story-share-media {
  height: auto;
  max-height: min(46vh, 420px);
  object-fit: contain;
}
.story_lightbox .story-share-card-body,
.story_lightbox .story-share-card.is-unavailable p {
  min-height: min(46vh, 480px);
  max-height: min(52vh, 560px);
  padding: 28px 22px;
  font-size: 26px;
  line-height: 1.35;
}
.story-share-card-note {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 10px 14px 0;
  font-size: 16px;
  line-height: 1.35;
}
.story_lightbox .story-img .tag_lbox_img_innr .story-share-card-who img,
.lightbox-content .story-img .tag_lbox_img_innr .story-share-card-who img {
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
  margin: 0;
  transform: none;
}
.story-share-tools {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 28px 26px 22px;
  background: #1c1f27;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  overflow: auto;
}
.story-share-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}
.story-share-lead {
  margin: -4px 0 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}
.story-share-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.story-share-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
}
.story-share-swatch.is-on { border-color: #fff; }
.story-share-tools textarea,
.story-share-tools select {
  width: 100%;
  border-radius: 10px;
  border: 0;
  padding: 10px;
  min-height: 44px;
}
.story-share-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.story-share-actions button {
  flex: 1;
  min-height: 48px;
  border-radius: 12px;
  border: 0;
  font-weight: 700;
}
.story-share-publish { background: #1d9bf0; color: #fff; }
.story-share-cancel { background: rgba(255,255,255,.12); color: #fff; }
.story-share-error { color: #ffb4b4; min-height: 1.2em; }
.story-share-create-entry { margin-top: 18px; }
@media (max-width: 760px) {
  .story-share-composer {
    align-items: flex-end;
    padding: 10px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
  .story-share-sheet {
    flex-direction: column;
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 18px;
  }
  .story-share-preview-col {
    flex: 0 0 auto;
    padding: 14px 14px 0;
    background: #16181d;
  }
  .story-share-phone {
    width: min(100%, 220px);
    max-height: 38vh;
  }
  .story-share-tools {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px;
  }
  .story-share-composer .story-share-media {
    height: 120px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .story-share-card { transition: none; }
}
