.wknd-banner-dialog {
  --banner-ink: #33243d;
  --banner-muted: #746879;
  --banner-line: #e4d8e8;
  --banner-plum: #704682;
  --banner-paper: #fbf8fc;
  box-sizing: border-box;
  width: min(920px, calc(100vw - 20px));
  max-width: 920px;
  max-height: min(92dvh, 980px);
  padding: 0;
  overflow: auto;
  border: 1px solid #d9c9e2;
  border-radius: 23px;
  background: var(--banner-paper);
  color: var(--banner-ink);
  box-shadow: 0 28px 90px rgba(36, 20, 48, .34);
  font-family: var(--wknd-public-sans, "DM Sans", sans-serif);
  overscroll-behavior: contain;
}
.wknd-banner-dialog *,
.wknd-banner-dialog *::before,
.wknd-banner-dialog *::after { box-sizing: border-box; }
.wknd-banner-dialog::backdrop { background: rgba(36, 24, 43, .66); }
.wknd-banner-dialog__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 25px 28px 20px;
  border-bottom: 1px solid #e9dfe9;
  background: linear-gradient(112deg, #f3e9f5 0%, #faf2ee 100%);
}
.wknd-banner-dialog__eyebrow,
.wknd-banner-kicker {
  margin: 0 0 7px;
  color: #805c89;
  font: 800 10px/1.2 var(--wknd-public-sans, "DM Sans", sans-serif);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.wknd-banner-dialog h2 {
  margin: 0;
  color: #30243a;
  font: 800 clamp(23px, 4vw, 33px)/1.06 var(--wknd-public-sans, "DM Sans", sans-serif);
  letter-spacing: -.045em;
}
.wknd-banner-dialog__intro {
  max-width: 590px;
  margin: 9px 0 0;
  color: #6c6171;
  font: 500 13px/1.55 var(--wknd-public-sans, "DM Sans", sans-serif);
}
.wknd-banner-dialog__close {
  display: grid;
  flex: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #ddcfdf;
  border-radius: 50%;
  background: #fff;
  color: #57475d;
  font: 500 25px/1 var(--wknd-public-sans, sans-serif);
  cursor: pointer;
}
.wknd-banner-dialog__body { padding: 21px 28px 16px; }
.wknd-banner-previews {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 22%);
  align-items: end;
  gap: 13px;
  padding: 14px;
  border: 1px solid #e5d8e9;
  border-radius: 17px;
  background: #f4eef5;
}
.wknd-banner-preview {
  min-width: 0;
  margin: 0;
  color: #65576d;
  font: 750 10px/1.3 var(--wknd-public-sans, "DM Sans", sans-serif);
  letter-spacing: .03em;
}
.wknd-banner-preview figcaption { margin: 0 0 6px; }
.wknd-banner-preview__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 760 / 300;
  overflow: hidden;
  border: 1px solid #c9b2d3;
  border-radius: 12px;
  background: #7138a4;
}
.wknd-banner-preview--mobile .wknd-banner-preview__frame {
  aspect-ratio: 390 / 300;
  border-radius: 11px;
}
.wknd-banner-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.wknd-banner-preview__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.85);
  font: 800 clamp(17px, 4vw, 28px)/1 var(--wknd-public-sans, sans-serif);
  letter-spacing: .18em;
}
.wknd-banner-preview__fallback[hidden] { display: none; }
.wknd-banner-dialog__section {
  min-width: 0;
  margin-top: 24px;
}
.wknd-banner-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}
.wknd-banner-dialog__section h3 {
  margin: 0;
  color: #46364c;
  font: 800 17px/1.22 var(--wknd-public-sans, "DM Sans", sans-serif);
  letter-spacing: -.025em;
}
.wknd-banner-kicker { margin-bottom: 5px; font-size: 9px; }
.wknd-banner-count,
.wknd-banner-library-label {
  flex: none;
  color: #786981;
  font: 700 11px/1.35 var(--wknd-public-sans, "DM Sans", sans-serif);
}
.wknd-banner-count {
  padding: 6px 9px;
  border: 1px solid #dfd0e4;
  border-radius: 999px;
  background: #f2ebf4;
  color: #644773;
  font-variant-numeric: tabular-nums;
}
.wknd-banner-section-note {
  max-width: 690px;
  margin: 0 0 11px;
  color: var(--banner-muted);
  font: 500 12px/1.5 var(--wknd-public-sans, "DM Sans", sans-serif);
}
.wknd-banner-slides {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wknd-banner-slide {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 13px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e2d6e7;
  border-radius: 15px;
  background: #fff;
  transition: opacity .16s ease, transform .16s ease, border-color .16s ease;
}
.wknd-banner-slide.is-dragging { opacity: .44; transform: scale(.985); }
.wknd-banner-slide.is-drop-target { border-color: #805b8c; }
.wknd-banner-slide__image {
  width: 104px;
  height: 82px;
  align-self: start;
  border-radius: 9px;
  background: #eee5f0;
  object-fit: cover;
}
.wknd-banner-slide__main { min-width: 0; }
.wknd-banner-slide__topline {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 24px;
  margin-bottom: 7px;
}
.wknd-banner-slide__topline strong {
  color: #44354a;
  font: 800 12px/1.3 var(--wknd-public-sans, "DM Sans", sans-serif);
}
.wknd-banner-cover-badge {
  padding: 4px 7px;
  border-radius: 5px;
  background: #704682;
  color: #fff;
  font: 800 8px/1 var(--wknd-public-sans, "DM Sans", sans-serif);
  letter-spacing: .08em;
}
.wknd-banner-framing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.wknd-banner-range { min-width: 0; }
.wknd-banner-range__heading {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
  color: #716479;
  font: 650 10px/1.35 var(--wknd-public-sans, "DM Sans", sans-serif);
}
.wknd-banner-range output { color: #563f61; font-variant-numeric: tabular-nums; }
.wknd-banner-range input {
  display: block;
  width: 100%;
  height: 25px;
  margin: 0;
  accent-color: #704682;
  cursor: pointer;
}
.wknd-banner-slide__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.wknd-banner-dialog__button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #d6c7dd;
  border-radius: 10px;
  background: #fff;
  color: #55465c;
  font: 750 12px/1.2 var(--wknd-public-sans, "DM Sans", sans-serif);
  cursor: pointer;
}
.wknd-banner-slide__button { min-height: 44px; }
.wknd-banner-slide__button[data-action="remove"] { margin-left: auto; color: #853f50; }
.wknd-banner-dialog__button--save {
  border-color: #704682;
  background: #704682;
  color: #fff;
}
.wknd-banner-refresh:not([hidden]) {
  background: #734787;
  border-color: #734787;
  color: #fff;
}
.wknd-banner-dialog__button:hover:not(:disabled),
.wknd-banner-dialog__close:hover { border-color: #9d7eaa; }
.wknd-banner-dialog__button--save:hover:not(:disabled) { background: #5d3970; }
.wknd-banner-dialog__button:disabled,
.wknd-banner-dialog button:disabled,
.wknd-banner-dialog input:disabled { opacity: .54; cursor: not-allowed; }
.wknd-banner-empty-slides,
.wknd-banner-dialog__empty {
  margin: 0 0 10px;
  padding: 15px;
  border: 1px dashed #d7c7de;
  border-radius: 12px;
  color: #6b5d70;
  font: 500 13px/1.5 var(--wknd-public-sans, "DM Sans", sans-serif);
}
.wknd-banner-empty-slides[hidden],
.wknd-banner-dialog__empty[hidden] { display: none; }
.wknd-banner-dialog__default {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid #ded1e4;
  border-radius: 12px;
  background: #f7f1f8;
  color: #514355;
  font: 650 12px/1.4 var(--wknd-public-sans, "DM Sans", sans-serif);
  cursor: pointer;
}
.wknd-banner-dialog__default input,
.wknd-banner-media input { width: 18px; height: 18px; flex: none; accent-color: #704682; }
.wknd-banner-default-swatch {
  width: 46px;
  height: 30px;
  flex: none;
  border-radius: 7px;
  background: #7138a4;
}
.wknd-banner-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 9px;
}
.wknd-banner-media {
  position: relative;
  display: grid;
  grid-template-rows: minmax(76px, 1fr) auto;
  min-width: 0;
  min-height: 126px;
  overflow: hidden;
  border: 1px solid #ded1e4;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.wknd-banner-media:has(input:checked) {
  border-color: #704682;
  box-shadow: inset 0 0 0 1px #704682;
}
.wknd-banner-media img {
  width: 100%;
  height: 100%;
  min-height: 76px;
  object-fit: cover;
  background: #ece3ee;
}
.wknd-banner-media__caption {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 8px;
  color: #57475d;
  font: 700 11px/1.25 var(--wknd-public-sans, "DM Sans", sans-serif);
}
.wknd-banner-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.wknd-banner-upload input {
  max-width: 100%;
  min-height: 44px;
  color: #5d5162;
  font: 500 12px/1.4 var(--wknd-public-sans, "DM Sans", sans-serif);
}
.wknd-banner-upload__note {
  flex-basis: 100%;
  margin: 0;
  color: #716779;
  font: 500 11px/1.5 var(--wknd-public-sans, "DM Sans", sans-serif);
}
.wknd-banner-dialog__status {
  min-height: 22px;
  margin: 15px 0 0;
  color: #63556a;
  font: 650 12px/1.5 var(--wknd-public-sans, "DM Sans", sans-serif);
}
.wknd-banner-dialog__status[data-state="error"] { color: #9a3c45; }
.wknd-banner-dialog__status[data-state="success"] { color: #3e725c; }
.wknd-banner-dialog__actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 13px 28px 19px;
  border-top: 1px solid #e9dfe9;
  background: rgba(251, 248, 252, .98);
}
.wknd-banner-dialog :focus-visible {
  outline: 3px solid #c594d1;
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .wknd-banner-dialog {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
    border-radius: 17px;
  }
  .wknd-banner-dialog__head { padding: 17px 15px 14px; gap: 10px; }
  .wknd-banner-dialog__body { padding: 14px 14px 10px; }
  .wknd-banner-dialog__actions {
    flex-wrap: wrap;
    justify-content: stretch;
    gap: 7px;
    padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  }
  .wknd-banner-dialog__actions button { flex: 1 1 30%; padding-inline: 8px; }
  .wknd-banner-dialog__actions .wknd-banner-save { flex-basis: 100%; }
  .wknd-banner-previews { grid-template-columns: minmax(0, 1fr) minmax(88px, 31%); gap: 8px; padding: 9px; }
  .wknd-banner-preview figcaption { font-size: 9px; }
  .wknd-banner-dialog__section { margin-top: 20px; }
  .wknd-banner-slide { grid-template-columns: 76px minmax(0, 1fr); gap: 9px; padding: 8px; }
  .wknd-banner-slide__image { width: 76px; height: 72px; }
  .wknd-banner-framing { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .wknd-banner-range__heading { font-size: 10px; }
  .wknd-banner-range input { height: 27px; }
  .wknd-banner-slide__actions { gap: 6px; }
  .wknd-banner-slide__button { flex: 1 1 auto; padding-inline: 8px; font-size: 11px; }
  .wknd-banner-slide__button[data-action="remove"] { margin-left: 0; }
  .wknd-banner-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wknd-banner-library-label { max-width: 45%; text-align: right; }
}
@media (max-width: 350px) {
  .wknd-banner-dialog__head { padding-inline: 12px; }
  .wknd-banner-dialog__body { padding-inline: 11px; }
  .wknd-banner-dialog__actions { padding-inline: 11px; }
  .wknd-banner-slide { grid-template-columns: 60px minmax(0, 1fr); gap: 7px; }
  .wknd-banner-slide__image { width: 60px; height: 60px; }
  .wknd-banner-slide__topline strong { font-size: 11px; }
  .wknd-banner-slide__button { font-size: 10px; }
}
