/* GSF04 menu simplification: no separate large "Open in X" row. */
#detailLink .gsf32PostKind,
#detailLink .gsf33PostNumber,
#menuEmbed .gsf32EmbedKind,
#menuForm > label,
#menuForm .gsf32MenuCategoryRow { display: none !important; }

/* Before registering any links, show a small label above the URL input. */
#detailLink > .menuRow {
  display: flex;
  margin: 3px 0 7px;
  padding: 0 2px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: #64748b;
}

/* After registering, label/delete belong directly above each embed. */
#menuEmbed { min-width: 0; overflow: visible; }
#menuEmbed .gsf32EmbeddedPost {
  display: block;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  min-width: 0;
}
#menuEmbed .gsf32EmbeddedPost:last-child { margin-bottom: 0; }
#menuEmbed .gsf38PostHeading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 7px;
  padding: 0 2px;
  min-height: 25px;
  color: #64748b;
}
#menuEmbed .gsf38PostHeading strong { font-size: 12px; font-weight: 600; }
#menuEmbed .gsf38DeleteWrap {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
#menuEmbed .gsf38RemovePost {
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #84909d;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}
#menuEmbed .gsf38RemovePost[aria-expanded='true'] { color: #c44444; }
/* Create room for the upward-facing confirmation so scrolling cannot clip it. */
#menuEmbed .gsf32EmbeddedPost.gsf38DeleteOpen { padding-top: 32px; }
#menuEmbed .gsf38DeleteConfirm {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 10;
  padding: 7px 13px;
  border: 1px solid #d9b1b1;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 3px 12px #00000012;
  color: #d13e3e;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
#menuEmbed .gsf38DeleteConfirm[hidden] { display: none !important; }
#menuEmbed .gsf38DeleteConfirm::after {
  content: '';
  position: absolute;
  right: 8px;
  bottom: -5px;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  border-right: 1px solid #d9b1b1;
  border-bottom: 1px solid #d9b1b1;
  background: #fff;
}
#menuEmbed .gsf38RemovePost:focus-visible,
#menuEmbed .gsf38DeleteConfirm:focus-visible,
#menuForm #menuPasteButton:focus-visible {
  outline: 2px solid #4283ac;
  outline-offset: 2px;
}
#menuEmbed .gsf32Tweet { width: 100%; min-width: 0; }
#menuEmbed .gsf32Tweet iframe { max-width: 100% !important; }
