.sale-staff {
  --sale-ink: #251b30;
  --sale-color: #67318d;
  --sale-muted: #665d70;
  --sale-line: #e6dfed;
  margin-block: 1.4rem 2rem;
  min-width: 0;
  color: var(--sale-ink);
}
.sale-staff:first-child { margin-top: 0; }
.sale-staff [hidden] { display: none !important; }
.sale-staff > header { margin-bottom: 1rem; }
.sale-staff > header h2 { margin: 0; font-size: clamp(1.5rem, 3.3vw, 2.35rem); letter-spacing: -.045em; }
.sale-editor, .sale-record, .sale-empty {
  box-sizing: border-box;
  border: 1px solid var(--sale-line);
  border-radius: 14px;
  background: #fff;
}
.sale-editor { padding: .95rem clamp(1rem, 2.5vw, 1.5rem); }
.sale-editor > summary {
  width: fit-content; max-width: 100%;
  color: var(--sale-color);
  cursor: pointer;
  padding: .47rem .15rem;
  font-size: .95rem;
  font-weight: 680;
}
.sale-editor > summary::marker { color: var(--sale-color); }
.sale-campaign-form { display: grid; min-width: 0; gap: 1rem; margin: .65rem 0 .35rem; }
.sale-inputs { display: grid; min-width: 0; gap: .85rem 1rem; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.sale-field { display: grid; align-content: start; gap: .4rem; min-width: 0; }
.sale-field > span:first-child { color: var(--sale-muted); font-size: .82rem; line-height: 1.4; font-weight: 650; }
.sale-field input, .sale-field select, .sale-field textarea {
  display: block; box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px;
  padding: .63rem .72rem; border: 1px solid #cac2d2; border-radius: 8px;
  color: var(--sale-ink); background: #fff; font: inherit; font-size: .92rem;
}
.sale-field input:focus-visible, .sale-field select:focus-visible, .sale-field textarea:focus-visible, .sale-editor > summary:focus-visible {
  outline: 2px solid #7d3cac; outline-offset: 2px;
}
.sale-amount { position: relative; min-width: 0; }
.sale-amount input { padding-right: 3rem; }
.sale-amount > span {
  position: absolute; top: 50%; right: .7rem; transform: translateY(-50%);
  color: var(--sale-muted); font-size: .76rem; font-weight: 620; pointer-events: none;
}
.sale-note, .sale-field small, .sale-empty, .sale-feedback {
  margin: 0; color: var(--sale-muted); font-size: .83rem; line-height: 1.55; overflow-wrap: anywhere;
}
.sale-note:empty, .sale-field small:empty, .sale-feedback:empty { display: none; }
.sale-mail-opt { display: flex; align-items: flex-start; gap: .6rem; font-size: .86rem; line-height: 1.5; }
.sale-mail-opt input { flex: 0 0 auto; width: 1rem; height: 1rem; margin: .1rem 0 0; accent-color: var(--sale-color); }
.sale-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; }
.sale-actions button:disabled { cursor: not-allowed; opacity: .52; }
.sale-feedback:not(:empty) { color: #513260; background: #f7f1fa; border-radius: 7px; padding: .5rem .75rem; }
.sale-records { display: grid; gap: .65rem; margin: .9rem 0 0; padding: 0; list-style: none; }
.sale-record { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .7rem 1rem; padding: 1rem clamp(1rem, 2vw, 1.4rem); }
.sale-record-heading, .sale-record-prices { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .65rem; }
.sale-record-heading strong { overflow-wrap: anywhere; font-size: .98rem; line-height: 1.35; }
.sale-record-meta, .sale-window { color: var(--sale-muted); font-size: .78rem; line-height: 1.55; }
.sale-record-meta { margin: .3rem 0; }
.sale-window { display: grid; gap: .2rem; align-content: start; }
.sale-record-prices { font-variant-numeric: tabular-nums; }
.sale-record-prices s { color: var(--sale-muted); font-size: .82rem; }
.sale-state { width: fit-content; padding: .24rem .55rem; color: #58505f; background: #f2eff4; border-radius: 99px; font-size: .72rem; line-height: 1.3; }
.sale-state[data-state="active"] { color: #30513a; background: #e8f3e9; }
.sale-state[data-state="blocked"] { color: #7a461c; background: #fff1e4; }
.sale-state[data-state="scheduled"] { color: #653186; background: #f4eaf9; }
.sale-empty { margin-top: .75rem; padding: 1rem; }
.sale-field textarea { resize: vertical; font-variant-numeric: tabular-nums; }
.sale-field > label { color: var(--sale-muted); font-size: .82rem; font-weight: 650; }
.sale-find { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .45rem; align-items: center; }
.sale-find button { min-height: 44px; }
.sale-preview { border-block: 1px solid var(--sale-line); padding-block: .9rem; min-width: 0; }
.sale-preview-heading, .sale-pages, .sale-batch-record summary { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .85rem; }
.sale-preview-heading { justify-content: space-between; }
.sale-text-button { border: 0; background: transparent; color: var(--sale-color); padding: .35rem .1rem; text-decoration: underline; cursor: pointer; font: inherit; font-size: .83rem; }
.sale-text-button:disabled { opacity: .5; cursor: default; }
.sale-preview-rows { margin: .65rem 0 0; padding: 0; list-style: none; }
.sale-preview-row { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr)); align-items: start; gap: .45rem 1rem; padding: .7rem .2rem; border-block-start: 1px solid var(--sale-line); }
.sale-row-product, .sale-row-values { display: grid; align-content: start; gap: .22rem; min-width: 0; overflow-wrap: anywhere; }
.sale-row-price { max-width: 15rem; margin-bottom: .3rem; }
.sale-row-price input { font-variant-numeric: tabular-nums; }
.sale-row-price input[aria-invalid="true"] { border-color: #a34527; }
.sale-preview-row strong { font-size: .85rem; }
.sale-preview-row small { font-size: .76rem; color: var(--sale-muted); }
.sale-preview-row[data-state="attention"] [data-row-feedback] { color: #88421b; }
.sale-preview-row[data-state="saved"] [data-row-feedback] { color: #2c5f39; }
.sale-pages { justify-content: center; color: var(--sale-muted); font-size: .8rem; }
.sale-batch-record { list-style: none; border: 1px solid var(--sale-line); border-radius: 14px; padding: .45rem 1rem; background: #fff; }
.sale-batch-record summary { cursor: pointer; padding-block: .4rem; }
.sale-batch-record summary::before { content: "›"; color: var(--sale-color); font-weight: 700; }
.sale-batch-record details[open] > summary::before { transform: rotate(90deg); }
.sale-batch-record summary span { color: var(--sale-muted); font-size: .8rem; }
.sale-batch-record .sale-records { margin: .5rem 0; }
.sale-price { display: grid; gap: .32rem; min-width: 0; margin: .15rem 0 .45rem; }
.sale-price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .4rem; }
.sale-price .sale-price-line > strong { color: #241a2d; font-weight: 700; font-variant-numeric: tabular-nums; }
.sale-price .sale-price-unit { color: #625b69; font-size: .73rem; }
.sale-price .sale-previous { color: #6a6270; font-size: .84rem; font-variant-numeric: tabular-nums; }
.sale-discount, .sale-price .sale-discount {
  display: inline-flex; align-items: center; width: fit-content; padding: .17rem .43rem;
  color: #6d259b; background: #f4eafa; border: 1px solid #e6cdef; border-radius: .36rem;
  font-size: .76rem; font-weight: 750; line-height: 1.15; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.sale-price-reference { color: #61586b; font-size: .75rem; line-height: 1.42; }
.sale-price-reference s { text-decoration-thickness: 1px; }
.sale-clock { display: inline-flex; align-items: center; gap: .35rem; color: #604076; font-size: .76rem; line-height: 1.45; }
.sale-clock svg { flex: none; }
.sale-clock b { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.sale-price-detail { gap: .5rem; margin: 1rem 0; }
.sale-price-detail .sale-price-line > strong { font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.05; letter-spacing: -.05em; }
.sale-price-detail .sale-price-unit, .sale-price-detail .sale-clock, .sale-price-detail .sale-price-reference { font-size: .85rem; }
.sale-price-detail .sale-discount { font-size: .9rem; }
@media (max-width:650px){
  .sale-record { grid-template-columns: minmax(0, 1fr); }
  .sale-window { display: flex; flex-wrap: wrap; gap: .2rem .7rem; }
}
