.publish-leave-overlay[hidden], .publish-leave-detail[hidden] { display: none !important; }
.publish-leave-overlay {
  position: fixed;
  z-index: 2147483646;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(3, 8, 15, .78);
  overscroll-behavior: contain;
}
.publish-leave-panel {
  width: min(460px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 26px;
  border: 1px solid rgba(240, 168, 48, .5);
  border-radius: 18px;
  background: #17212b;
  color: #f4f2ed;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
  font-family: inherit;
  text-align: left;
  overflow-wrap: anywhere;
}
.publish-leave-kicker { margin: 0 0 9px; color: #f0a830; font-size: 12px; font-weight: 700; }
.publish-leave-panel h2 { margin: 0 0 15px; color: #f4f2ed; font-size: 22px; line-height: 1.4; }
.publish-leave-panel > p:not(.publish-leave-kicker) { margin: 0 0 18px; font-size: 14px; line-height: 1.8; }
.publish-leave-panel .publish-leave-detail {
  padding: 11px 13px;
  border-left: 3px solid #f0a830;
  border-radius: 5px;
  background: rgba(240, 168, 48, .09);
  color: #e6c68f;
  font-size: 12px;
}
.publish-leave-actions { display: flex; gap: 12px; margin-top: 22px; }
.publish-leave-actions button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid rgba(240, 168, 48, .45);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  touch-action: manipulation;
}
.publish-leave-stay { background: #f0a830; color: #171b20; }
.publish-leave-confirm { background: transparent; color: #f4f2ed; }
.publish-leave-actions button:focus-visible, .publish-leave-panel:focus-visible { outline: 3px solid #ffe09a; outline-offset: 4px; }
.publish-leave-actions button:hover { filter: brightness(1.1); }
@media (max-width: 480px) {
  .publish-leave-overlay { padding: 14px; }
  .publish-leave-panel { padding: 22px 18px; max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); }
  .publish-leave-panel h2 { font-size: 20px; }
  .publish-leave-actions { gap: 9px; }
  .publish-leave-actions button { padding-inline: 8px; }
}
