.promotion-view {
  --promotion-border: var(--line, #e1e3ea);
  --promotion-surface: var(--paper, #fff);
  width: min(100%, 900px);
  margin-inline: auto;
  min-width: 0;
  color: var(--ink, #161a2c);
}
.promotion-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.promotion-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.promotion-heading h1 {
  margin: 0;
  font-size: clamp(26px, 2.45vw, 38px);
  font-weight: 760;
  letter-spacing: -.035em;
  line-height: 1.2;
}
.promotion-heading time { color: var(--muted, #676a78); font-size: 14px; }
.promotion-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 17px;
  margin-bottom: 17px;
}
.promotion-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--promotion-border);
  border-radius: 11px;
  background: #f0eef5;
}
.promotion-tabs button {
  min-height: 38px;
  padding: 6px clamp(10px, 1.2vw, 18px);
  border-radius: 7px;
  color: #545365;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}
.promotion-tabs button:hover { color: var(--accent, #4338ca); }
.promotion-tabs button[aria-pressed="true"] {
  color: var(--accent, #4338ca);
  background: var(--promotion-surface);
  box-shadow: 0 1px 4px #221b4b1a;
}
.promotion-feed { display: grid; gap: 15px; min-width: 0; }
.promotion-card {
  min-width: 0;
  border: 1px solid var(--promotion-border);
  border-radius: 13px;
  background: var(--promotion-surface);
}
.promotion-post, .promotion-admin-card { padding: clamp(15px, 1.75vw, 25px); }
.promotion-post-heading, .promotion-footer, .promotion-actions, .promotion-library-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.promotion-post-heading { margin-bottom: 11px; }
.promotion-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.25;
  letter-spacing: -.02em;
  font-weight: 720;
  overflow-wrap: anywhere;
}
.promotion-section-title::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: .9em;
  border-radius: 8px;
  background: var(--accent, #4338ca);
}
.promotion-category, .promotion-label {
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 13px;
  line-height: 1.6;
}
.promotion-category { color: #4e4d60; background: #f0f0f3; }
.promotion-label { color: #383179; background: var(--accent-soft, #ebeaff); }
.promotion-caption {
  margin: 0 0 13px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-size: clamp(15px, 1.22vw, 18px);
  line-height: 1.55;
}
.promotion-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(4px, .53vw, 8px);
  max-width: 100%;
}
.promotion-gallery[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.promotion-gallery:is([data-count="2"], [data-count="4"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.promotion-photo {
  display: block;
  width: 100%;
  height: clamp(105px, 14vw, 164px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--canvas, #f8f7f4);
  cursor: zoom-in;
}
.promotion-gallery[data-count="1"] .promotion-photo { height: clamp(155px, 28vw, 300px); }
.promotion-gallery:is([data-count="2"], [data-count="4"]) .promotion-photo { height: clamp(126px, 16vw, 219px); }
.promotion-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.promotion-footer { justify-content: space-between; margin-top: 14px; }
.promotion-count, .promotion-note, .promotion-feedback { color: var(--muted, #676a78); font-size: 14px; }
.promotion-note { margin: 0 0 6px; line-height: 1.55; }
.promotion-feedback { margin: 8px 0 0; overflow-wrap: anywhere; }
.promotion-feedback:empty { display: none; }
.promotion-page-status { margin: 0 0 12px; color: var(--accent, #4338ca); }
.promotion-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 13px;
  border: 1px solid #a6a5b8;
  border-radius: 9px;
  background: var(--promotion-surface);
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 620;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.promotion-button:hover { background: var(--accent-soft, #ebeaff); }
.promotion-button-primary { color: #fff; background: var(--accent, #4338ca); border-color: var(--accent, #4338ca); }
.promotion-button-primary:hover { color: #fff; background: var(--accent-hover, #3329a2); }
.promotion-button:disabled { opacity: .55; cursor: not-allowed; }
.promotion-icon { flex: none; width: 1.18em; height: 1.18em; }
.promotion-blank { padding: 23px; color: var(--muted, #676a78); }
.promotion-blank .promotion-button { margin-top: 11px; }
.promotion-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--promotion-border);
  border-radius: 14px;
  background: var(--promotion-surface);
  color: inherit;
}
.promotion-dialog-wide { width: min(760px, calc(100vw - 24px)); }
.promotion-dialog-drawer {
  inset: 0 0 0 auto;
  margin: 0;
  width: min(100vw, 478px);
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 14px 0 0 14px;
  box-shadow: -10px 0 32px #19134826;
}
.promotion-dialog::backdrop { background: #161a2c80; }
.promotion-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.promotion-dialog-header h2 { margin: 0; font-size: 22px; }
.promotion-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: var(--canvas, #f8f7f4);
  font-size: 24px;
}
.promotion-close:hover { background: var(--accent-soft, #ebeaff); }
.promotion-editor { display: grid; gap: 14px; }
.promotion-settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.promotion-form-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.promotion-form-field > :is(label, legend) { display: block; padding: 0; margin-bottom: 5px; font-size: 14px; font-weight: 680; }
.promotion-form-field > :is(input, select, textarea) {
  width: 100%;
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid var(--promotion-border);
  border-radius: 8px;
  background: var(--promotion-surface);
  color: inherit;
  font: inherit;
}
.promotion-form-field > input[type="file"] { margin-bottom: 6px; }
.promotion-form-field textarea { min-height: 92px; }
.promotion-checks { display: flex; flex-wrap: wrap; gap: 5px 13px; }
.promotion-checks label, .promotion-toggle { display: inline-flex; align-items: center; min-height: 34px; gap: 6px; font-size: 14px; }
.promotion-view input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--accent, #4338ca); flex: 0 0 auto; }
.promotion-toggle { justify-self: start; border-radius: 8px; background: var(--accent-soft, #ebeaff); padding: 5px 12px; }
.promotion-choice-list {
  display: grid;
  gap: 0;
  max-height: 250px;
  overflow: auto;
  border: 1px solid var(--promotion-border);
  border-radius: 8px;
}
.promotion-choice-list > label { display: flex; align-items: center; gap: 9px; padding: 8px 11px; min-height: 39px; font-size: 14px; }
.promotion-choice-list > label + label { border-top: 1px solid var(--promotion-border); }
.promotion-choice-list > label:hover { background: #f4f3fc; }
.promotion-choice-list :is(span, p) { overflow-wrap: anywhere; }
.promotion-choice-list small { margin-left: auto; color: var(--muted, #676a78); white-space: nowrap; }
.promotion-choice-list > p { padding: 10px 11px; margin: 0; }
.promotion-preview { margin: 0 0 14px; }
.promotion-preview img {
  display: block;
  width: 100%;
  max-height: 59dvh;
  object-fit: contain;
  border-radius: 8px;
  background: var(--canvas, #f8f7f4);
}
.promotion-preview figcaption { margin-top: 7px; color: var(--muted, #676a78); font-size: 14px; }
.promotion-preview-actions, .promotion-editor .promotion-actions { justify-content: flex-end; }
.promotion-library-heading { justify-content: space-between; margin-bottom: 12px; }
.promotion-library-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.promotion-library-list li { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding-block: 8px; border-top: 1px solid var(--promotion-border); }
.promotion-library-list :is(img, .promotion-library-placeholder) { width: 50px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--canvas, #f8f7f4); }
.promotion-library-list strong { font-weight: 650; overflow-wrap: anywhere; }
.promotion-library-list p { font-size: 13px; color: var(--muted, #676a78); }
.promotion-draft-photos { display: flex; flex-wrap: wrap; gap: 7px; }
.promotion-draft-photos figure { position: relative; width: 67px; height: 54px; margin: 0; }
.promotion-draft-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.promotion-draft-photos button { position: absolute; top: 2px; right: 2px; display: grid; place-items: center; width: 27px; height: 27px; background: #242236dc; color: #fff; border-radius: 6px; padding: 0; font-size: 17px; }
@media (max-width: 620px) {
  .promotion-header { margin-bottom: 13px; }
  .promotion-toolbar { margin-bottom: 12px; }
  .promotion-settings-grid { grid-template-columns: minmax(0, 1fr); }
  .promotion-photo { height: clamp(75px, 21vw, 126px); }
  .promotion-footer, .promotion-actions { gap: 6px; }
  .promotion-button { padding-inline: 9px; }
  .promotion-dialog { padding: 15px; }
}

.promotion-history { list-style: none; display: grid; gap: 12px; padding: 0; margin: 0; }
.promotion-history li { border: 1px solid var(--promotion-border); padding: 10px 12px; border-radius: 9px; }
.promotion-history p { color: var(--muted); font-size: 14px; }
