/* Phase 4 — Drops Studio surface. All selectors stay under #page-drops so
   Inventory, Orders, and the existing Studio builders keep their contracts. */
#page-drops.ds-drops-page {
  display: none;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  color: #111827;
}

#page-drops.ds-drops-page.active,
#page-drops.ds-drops-page.show {
  display: block;
}

#page-drops .ds-drops-shell {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 0;
  padding: 16px clamp(16px, 2vw, 28px) 36px;
}

#page-drops .ds-drops-actions,
#page-drops .ds-drop-card-actions,
#page-drops .ds-drop-editor-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

#page-drops .ds-drops-btn {
  min-height: 32px;
  height: 32px;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

#page-drops .ds-drops-btn:hover {
  border-color: #9ca3af;
  background: #f8fafc;
}

#page-drops .ds-drops-btn:active {
  transform: translateY(1px);
}

#page-drops .ds-drops-btn-primary,
#page-drops .ds-drop-editor .ds-drops-btn-primary {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

#page-drops .ds-drops-btn-primary:hover,
#page-drops .ds-drop-editor .ds-drops-btn-primary:hover {
  border-color: #1f2937;
  background: #1f2937;
}

#page-drops .ds-drops-btn-danger {
  border-color: #fecaca;
  color: #b42318;
}

#page-drops .ds-drops-btn-danger:hover {
  border-color: #fca5a5;
  background: #fff1f2;
}

#page-drops .ds-drops-stats {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

#page-drops .ds-drops-stat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease;
}

#page-drops .ds-drops-stat:hover {
  border-color: #cbd5e1;
}

#page-drops .ds-drops-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 8px;
  flex-shrink: 0;
}

#page-drops .ds-drops-stat-icon-total {
  background: #f5f3ff;
  color: #6366f1;
}

#page-drops .ds-drops-stat-icon-live {
  background: #ecfdf5;
  color: #16a34a;
}

#page-drops .ds-drops-stat-icon-orders {
  background: #eff6ff;
  color: #2563eb;
}

#page-drops .ds-drops-stat-icon-revenue {
  background: #faf5ff;
  color: #9333ea;
}

#page-drops .ds-drops-stat-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#page-drops .ds-drops-stat-label {
  display: block;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 4px;
}

#page-drops .ds-drops-stat strong {
  display: block;
  color: #111827;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 0;
}

#page-drops .ds-drops-stat small {
  display: block;
  color: #8a929c;
  font-size: 11.5px;
  font-weight: 500;
  margin-top: 3px;
  line-height: 1.2;
}

#page-drops .ds-drops-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

#page-drops .ds-drops-section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
}

#page-drops .ds-drops-section-heading p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 12.5px;
}

#page-drops .ds-drops-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

#page-drops .ds-drop-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  overflow: visible;
  transition: border-color .15s ease;
}

#page-drops .ds-drop-card:hover {
  border-color: #cbd5e1;
}

#page-drops .ds-drop-card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  min-height: 140px;
  padding: 12px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  border-radius: 7px 7px 0 0;
  overflow: visible;
}

#page-drops .ds-drop-card-media img {
  display: block;
  max-width: 100%;
  max-height: 116px;
  width: auto;
  height: auto;
  object-fit: contain;
}

#page-drops .ds-drop-card-no-media {
  color: #8a929c;
  font-size: 11px;
  font-weight: 700;
}

#page-drops .ds-drop-card-status {
  position: absolute;
  top: 10px;
  left: 10px;
  min-height: 18px;
  padding: 2px 7px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.2;
  z-index: 2;
}

#page-drops .ds-drop-state-live { color: #16a34a; }
#page-drops .ds-drop-state-coming_soon { color: #2563eb; }
#page-drops .ds-drop-state-sold_out,
#page-drops .ds-drop-state-ended { color: #dc2626; }
#page-drops .ds-drop-state-draft { color: #64748b; }

#page-drops .ds-drop-card-menu-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 4px !important;
  background: rgba(255, 255, 255, .9) !important;
  color: #64748b !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all .15s ease;
}

#page-drops .ds-drop-card-menu-btn:hover {
  background: #fff !important;
  color: #111827 !important;
  border-color: #cbd5e1 !important;
}

#page-drops .ds-drop-card-menu {
  position: absolute;
  top: 38px;
  right: 10px;
  z-index: 20;
  display: none;
  min-width: 140px;
  padding: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .08);
}

#page-drops .ds-drop-card-menu.is-open {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#page-drops .ds-drop-card-menu-item {
  width: 100%;
  min-height: 28px !important;
  height: 28px;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: #334155 !important;
  font: inherit;
  font-size: 11px !important;
  font-weight: 650 !important;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}

#page-drops .ds-drop-card-menu-item:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

#page-drops .ds-drop-card-menu-danger {
  color: #b42318 !important;
}

#page-drops .ds-drop-card-menu-danger:hover {
  background: #fef2f2 !important;
  color: #991b1b !important;
}

#page-drops .ds-drop-card-menu-divider {
  height: 1px;
  margin: 3px 0;
  background: #e2e8f0;
}

#page-drops .ds-drop-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 12px 14px 14px;
  min-height: 0;
}

#page-drops .ds-drop-card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

#page-drops .ds-drop-card-topline h3 {
  margin: 0;
  overflow: hidden;
  color: #111827;
  font-size: 13.5px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

#page-drops .ds-drop-card-price {
  color: #111827;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  flex-shrink: 0;
}

#page-drops .ds-drop-card-slug {
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#page-drops .ds-drop-card-tag-row {
  margin-top: 4px;
  margin-bottom: 6px;
}

#page-drops .ds-drop-card-tag {
  display: inline-block;
  max-width: 100%;
  padding: 1.5px 6px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

#page-drops .ds-drop-card-metrics {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
  border-bottom: 0;
}

#page-drops .ds-drop-card-metric span {
  display: block;
  color: #94a3b8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1;
}

#page-drops .ds-drop-card-metric strong {
  display: block;
  margin-top: 3px;
  color: #111827;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.2;
}

#page-drops .ds-drop-card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 8px;
}

#page-drops .ds-drop-card-actions button {
  min-height: 28px !important;
  height: 28px;
  padding: 0 4px !important;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3.5px;
  white-space: nowrap;
  cursor: pointer;
  transition: all .15s ease;
}

#page-drops .ds-drop-card-actions button:hover:not(:disabled) {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}

#page-drops .ds-drop-card-actions button:disabled {
  opacity: 0.45;
  border-color: #edf0f2;
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
}

#page-drops .ds-drop-empty,
#page-drops .ds-drop-loading,
#page-drops .ds-drop-error {
  padding: 56px 24px;
  border: 1px dashed #d9dde2;
  border-radius: 10px;
  background: #fff;
  color: #6b7280;
  text-align: center;
}

#page-drops .ds-drop-empty strong,
#page-drops .ds-drop-loading strong,
#page-drops .ds-drop-error strong {
  display: block;
  color: #111827;
  font-size: 15px;
}

#page-drops .ds-drop-empty p,
#page-drops .ds-drop-loading p,
#page-drops .ds-drop-error p {
  margin: 8px 0 18px;
  font-size: 12px;
}

#page-drops .ds-drop-editor {
  padding: 24px;
  border: 1px solid #e1e5e9;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(15, 23, 42, .035);
}

#page-drops .ds-drop-editor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eef1f4;
}

#page-drops .ds-drop-editor-header h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.025em;
}

#page-drops .ds-drop-editor-header p {
  margin: 7px 0 0;
  color: #8a929c;
  font-size: 12px;
}

#page-drops .ds-drop-editor-form {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 18px;
  margin-top: 20px;
}

#page-drops .ds-drop-editor-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

#page-drops .ds-drop-form-card {
  padding: 18px;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  background: #fff;
}

#page-drops .ds-drop-form-card h3 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
}

#page-drops .ds-drop-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#page-drops .ds-drop-form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

#page-drops .ds-drop-form-field.full { grid-column: 1 / -1; }

#page-drops .ds-drop-form-field label,
#page-drops .ds-drop-form-label {
  color: #374151;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

#page-drops .ds-drop-form-field input,
#page-drops .ds-drop-form-field textarea,
#page-drops .ds-drop-form-field select {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  padding: 9px 11px;
  border: 1px solid #d9dde2;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 13px;
}

#page-drops .ds-drop-form-field textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.45;
}

#page-drops .ds-drop-form-field input:focus,
#page-drops .ds-drop-form-field textarea:focus,
#page-drops .ds-drop-form-field select:focus {
  outline: 0;
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, .16);
}

#page-drops .ds-drop-form-help {
  margin-top: -1px;
  color: #8a929c;
  font-size: 10px;
  line-height: 1.4;
}

/* Drop media manager: ratio controls are Drop-only and never touch the
   shared Inventory/Product Edit media components. */
#page-drops .ds-drop-media-manager {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  background: #fafbfc;
}

#page-drops .ds-drop-media-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

#page-drops .ds-drop-media-main {
  min-width: 0;
}

#page-drops .ds-drop-media-preview-frame {
  display: grid;
  place-items: center;
  width: 100%;
  max-height: 340px;
  overflow: hidden;
  border: 1px solid #d9dde2;
  border-radius: 7px;
  background: #f1f4f7;
}

#page-drops .ds-drop-media-preview-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  transform-origin: center;
  transition: object-position .12s ease, transform .12s ease;
}

#page-drops .ds-drop-media-image-label {
  display: block;
  margin-top: 6px;
  color: #8a929c;
  font-size: 10px;
  font-weight: 750;
}

#page-drops .ds-drop-media-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
}

#page-drops .ds-drop-media-thumb {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 62px;
  padding: 3px;
  border: 1px solid #d9dde2;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

#page-drops .ds-drop-media-thumb.is-active {
  border-color: #111827;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, .08);
}

#page-drops .ds-drop-media-thumb img {
  display: block;
  width: 100%;
  height: 56px;
  object-fit: cover;
  border-radius: 3px;
}

#page-drops .ds-drop-media-thumb.ds-drop-media-add {
  color: #64748b;
  font-size: 23px;
  font-weight: 500;
}

#page-drops .ds-drop-media-field-label {
  color: #374151;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

#page-drops .ds-drop-media-ratios,
#page-drops .ds-drop-media-actions,
#page-drops .ds-drop-media-url-row,
#page-drops .ds-drop-media-empty-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

#page-drops .ds-drop-media-ratio,
#page-drops .ds-drop-media-actions button,
#page-drops .ds-drop-media-url-row button,
#page-drops .ds-drop-media-empty-actions button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #d9dde2;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

#page-drops .ds-drop-media-ratio.is-active {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

#page-drops .ds-drop-media-empty-actions .ds-drops-btn-primary {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

#page-drops .ds-drop-media-actions .ds-drop-media-remove {
  border-color: #fecaca;
  color: #b42318;
}

#page-drops .ds-drop-media-url-row input,
#page-drops .ds-drop-media-empty .ds-drop-media-url-input {
  min-width: 0;
  min-height: 36px;
  flex: 1 1 220px;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #d9dde2;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 12px;
}

#page-drops .ds-drop-media-adjust-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e1e5e9;
  border-radius: 6px;
  background: #fff;
}

#page-drops .ds-drop-media-adjust-panel label {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 10px;
  font-weight: 750;
}

#page-drops .ds-drop-media-adjust-panel input[type="range"] {
  width: 100%;
  accent-color: #111827;
}

#page-drops .ds-drop-media-nudge-row {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

#page-drops .ds-drop-media-nudge-row button {
  width: 32px;
  min-height: 30px;
  padding: 0;
}

#page-drops .ds-drop-media-empty,
#page-drops .ds-drop-media-uploading {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

#page-drops .ds-drop-media-empty strong,
#page-drops .ds-drop-media-uploading strong {
  color: #111827;
  font-size: 13px;
}

#page-drops .ds-drop-media-empty .ds-drop-media-url-input {
  width: 100%;
  flex: none;
}

@media (min-width: 601px) {
  #page-drops .ds-drop-media-layout {
    grid-template-columns: minmax(0, 1fr) minmax(190px, .5fr);
    align-items: start;
  }

  #page-drops .ds-drop-media-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

#page-drops .ds-drop-checks {
  display: grid;
  gap: 10px;
}

#page-drops .ds-drop-check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  color: #374151;
  font-size: 12px;
  font-weight: 650;
}

#page-drops .ds-drop-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #111827;
}

#page-drops .ds-drop-editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #eef1f4;
}

#page-drops .ds-drop-editor-footer small {
  color: #8a929c;
  font-size: 11px;
}

@media (max-width: 900px) {
  #page-drops .ds-drops-shell { padding: 22px 18px 40px; }
  #page-drops .ds-drops-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #page-drops .ds-drop-editor-form { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  #page-drops .ds-drops-heading,
  #page-drops .ds-drop-editor-header,
  #page-drops .ds-drop-editor-footer { align-items: stretch; flex-direction: column; }
  #page-drops .ds-drops-section-heading { align-items: center; flex-direction: row; flex-wrap: nowrap; }
  #page-drops .ds-drops-section-heading .ds-drops-actions { flex-shrink: 0; display: flex; gap: 6px; }
  #page-drops .ds-drops-heading .ds-drops-actions { width: 100%; }
  #page-drops .ds-drops-heading .ds-drops-btn { flex: 1; }
  #page-drops .ds-drops-stats { gap: 10px; }
  #page-drops .ds-drops-stat { min-height: 98px; padding: 14px; }
  #page-drops .ds-drops-stat strong { margin-top: 10px; font-size: 25px; }
  #page-drops .ds-drop-editor { padding: 16px; }
  #page-drops .ds-drop-form-grid { grid-template-columns: 1fr; }
  #page-drops .ds-drop-form-field.full { grid-column: auto; }
  #page-drops .ds-drop-editor-footer .ds-drop-editor-actions { width: 100%; }
  #page-drops .ds-drop-editor-footer button { flex: 1; }
  #page-drops .ds-drop-media-manager { padding: 10px; }
  #page-drops .ds-drop-media-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  #page-drops .ds-drop-media-thumb { min-height: 54px; }
  #page-drops .ds-drop-media-thumb img { height: 48px; }
}

/* Drops section-rail modal correction. Keep this Drop-only; the
   legacy editor rules above remain available to unrelated Studio surfaces. */
#page-drops .ds-drop-card-progress { margin-top: auto; }
#page-drops .ds-drop-editor-actions button:disabled { color: #a4acb5; border-color: #e4e7eb; background: #f7f8f9; cursor: not-allowed; }

#page-drops .ds-drop-modal-overlay { position: fixed; z-index: 1200; inset: 0; display: flex; align-items: center; justify-content: center; padding: 6vh 5vw; box-sizing: border-box; background: rgba(17, 24, 39, .32); }
#page-drops .ds-drop-modal { width: min(90vw, 1280px); height: min(86vh, 900px); min-height: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #aeb6bf; border-radius: 8px; background: #fff; box-shadow: none; }
#page-drops .ds-drop-modal-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; border-bottom: 1px solid #d7dce1; }
#page-drops .ds-drop-modal-header h2 { margin: 0; color: #111827; font-size: 21px; letter-spacing: -.03em; }
#page-drops .ds-drop-modal-header p { margin: 5px 0 0; color: #7b8490; font-size: 12px; }
#page-drops .ds-drop-modal-close { width: 36px; min-width: 36px; min-height: 36px; padding: 0 !important; border-color: #cbd1d8 !important; border-radius: 6px !important; background: #fff !important; color: #111827 !important; font-size: 22px !important; line-height: 1; }
#page-drops .ds-drop-modal-form { min-height: 0; display: flex; flex: 1 1 auto; flex-direction: column; }
#page-drops .ds-drop-modal-body { min-height: 0; display: grid; flex: 1 1 auto; grid-template-columns: 176px minmax(0, 1fr); overflow: hidden; }
#page-drops .ds-drop-modal-rail { display: flex; flex-direction: column; gap: 2px; padding: 16px 10px; overflow-y: auto; border-right: 1px solid #e1e5e9; background: #fafbfc; }
#page-drops .ds-drop-modal-section { min-height: 40px; padding: 0 12px; border: 0; border-left: 3px solid transparent; border-radius: 4px; background: transparent; color: #68717c; font-size: 12px; font-weight: 750; text-align: left; }
#page-drops .ds-drop-modal-section:hover { background: #f0f2f4; }
#page-drops .ds-drop-modal-section.is-active { border-left-color: #111827; background: #fff; color: #111827; }
#page-drops .ds-drop-modal-content { min-width: 0; min-height: 0; overflow-y: auto; background: #fff; }
#page-drops .ds-drop-modal-section-content { display: none; padding: 26px 30px 32px; }
#page-drops .ds-drop-modal-section-content.is-active { display: block; }
#page-drops .ds-drop-modal-section-heading { margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid #eef1f4; }
#page-drops .ds-drop-modal-section-heading h3 { margin: 0; color: #111827; font-size: 16px; letter-spacing: -.02em; }
#page-drops .ds-drop-modal-section-content .ds-drop-form-grid { max-width: 900px; }
#page-drops .ds-drop-modal-footer { min-height: 68px; display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 22px; border-top: 1px solid #d7dce1; background: #fff; }
#page-drops .ds-drop-modal-footer small { color: #8a929c; font-size: 11px; }

#page-drops .ds-drop-release-card, #page-drops .ds-drop-danger-zone { max-width: 760px; padding: 18px; border: 1px solid #d9dde2; border-radius: 7px; background: #fff; }
#page-drops .ds-drop-release-card p, #page-drops .ds-drop-danger-zone p { margin: 0 0 15px; color: #68717c; font-size: 12px; line-height: 1.5; }
#page-drops .ds-drop-danger-zone { margin-top: 14px; border-color: #e6b5b8; background: #fffafa; }
#page-drops .ds-drop-danger-zone > span { display: block; margin-bottom: 7px; color: #b42318; font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
#page-drops .ds-drop-release-muted { color: #8a929c; font-size: 11px; }

#page-drops #dropMediaManager { display: grid; gap: 15px; padding: 0; border: 0; background: transparent; }
#page-drops #dropMediaManager .ds-drop-media-layout { grid-template-columns: minmax(0, 1fr) 230px; align-items: start; gap: 18px; }
#page-drops #dropMediaManager .ds-drop-media-preview-frame { width: min(100%, 620px); max-height: 420px; border-radius: 7px; background: #f1f4f7; }
#page-drops #dropMediaManager .ds-drop-media-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#page-drops #dropMediaManager .ds-drop-media-thumb { min-height: 84px; }
#page-drops #dropMediaManager .ds-drop-media-thumb img { height: 76px; }
#page-drops #dropMediaManager .ds-drop-media-actions { gap: 8px; }
#page-drops #dropMediaManager .ds-drop-media-adjust-panel { display: none !important; }
#page-drops .ds-drop-media-adjust-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
#page-drops .ds-drop-media-adjust-heading strong { color: #111827; font-size: 13px; }
#page-drops .ds-drop-media-adjust-heading span { color: #8a929c; font-size: 10px; }
#page-drops .ds-drop-media-adjust-stage { width: min(100%, 420px); max-height: 260px; overflow: hidden; border: 1px solid #bfc6ce; background: #eef2f5; }
#page-drops .ds-drop-media-adjust-stage img { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: center; }
#page-drops .ds-drop-media-adjust-panel label { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: 10px; color: #68717c; font-size: 11px; font-weight: 750; }
#page-drops .ds-drop-media-adjust-panel input[type="range"] { width: 100%; accent-color: #111827; }
#page-drops .ds-drop-media-adjust-actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }

@media (max-width: 1200px) { #page-drops .ds-drops-grid { grid-template-columns: repeat(2, minmax(250px, 1fr)); } }
@media (max-width: 760px) {
  #page-drops .ds-drops-shell { padding: 22px 16px 36px; }
  #page-drops .ds-drops-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #page-drops .ds-drops-grid { grid-template-columns: 1fr; }
  #page-drops .ds-drop-modal-overlay { padding: 8px; }
  #page-drops .ds-drop-modal { width: 100%; height: calc(100vh - 16px); }
  #page-drops .ds-drop-modal-body { grid-template-columns: 1fr; }
  #page-drops .ds-drop-modal-rail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid #e1e5e9; }
  #page-drops .ds-drop-modal-section { min-width: max-content; border-left: 0; border-bottom: 3px solid transparent; }
  #page-drops .ds-drop-modal-section.is-active { border-bottom-color: #111827; }
  #page-drops .ds-drop-modal-section-content { padding: 20px 16px 26px; }
  #page-drops #dropMediaManager .ds-drop-media-layout { grid-template-columns: 1fr; }
  #page-drops #dropMediaManager .ds-drop-media-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  #page-drops .ds-drop-modal-footer { align-items: stretch; flex-direction: column; }
  #page-drops .ds-drop-modal-footer .ds-drop-editor-actions { width: 100%; }
  #page-drops .ds-drop-modal-footer .ds-drop-editor-actions button { flex: 1; }
  #page-drops .ds-drop-modal-section,
  #page-drops .ds-drop-modal-footer button,
  #page-drops #dropMediaManager .ds-drop-media-ratio,
  #page-drops #dropMediaManager .ds-drop-media-actions button,
  #page-drops #dropMediaManager .ds-drop-media-empty-actions button,
  #page-drops #dropMediaManager .ds-drop-media-nudge-row button { min-height: 44px; }
}

/* Final Drop modal refinements: direct media manipulation, compact sections,
   and Studio-grade action hierarchy. */
#page-drops .ds-drop-modal button { min-height: 38px; box-sizing: border-box; border: 1px solid #cbd1d8; border-radius: 5px; padding: 0 12px; background: #fff; color: #111827; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
#page-drops .ds-drop-modal button:hover:not(:disabled) { border-color: #111827; background: #f5f6f7; }
#page-drops .ds-drop-modal .ds-drop-modal-close { width: 38px; min-width: 38px; padding: 0; font-size: 22px; }
#page-drops .ds-drop-modal .ds-drop-modal-section { min-height: 42px; border-top: 0; border-right: 0; border-bottom: 0; border-left: 3px solid transparent; border-radius: 0; padding: 0 12px; background: transparent; color: #68717c; text-align: left; }
#page-drops .ds-drop-modal .ds-drop-modal-section.is-active { border-left-color: #111827; background: #fff; color: #111827; }
#page-drops .ds-drop-detail-divider { margin: 26px 0 18px; padding: 12px 0; border-top: 1px solid #d7dce1; border-bottom: 1px solid #eef1f4; color: #111827; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

#page-drops #dropMediaManager .ds-drop-media-preview-frame { position: relative; display: grid; width: auto; max-height: none; overflow: hidden; place-items: center; border: 1px solid #cbd1d8; border-radius: 6px; background: #edf0f2; cursor: grab; touch-action: none; user-select: none; }
#page-drops #dropMediaManager .ds-drop-media-preview-frame.is-panning { cursor: grabbing; }
#page-drops #dropMediaManager .ds-drop-media-preview-frame img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; pointer-events: none; transform-origin: center; }
#page-drops #dropMediaManager .ds-drop-media-preview-frame.is-panning img { transition: none; }
#page-drops #dropMediaManager .ds-drop-media-preview-meta { display: inline-flex; max-width: 100%; align-items: center; gap: 12px; }
#page-drops #dropMediaManager .ds-drop-media-preview-meta .ds-drop-media-image-label { margin-top: 7px; }
#page-drops #dropMediaManager .ds-drop-media-preview-hint { margin-top: 7px; color: #8a929c; font-size: 10px; font-weight: 700; text-align: right; }
#page-drops #dropMediaManager .ds-drop-media-adjust-panel { display: none !important; }
#page-drops #dropMediaManager .ds-drop-media-adjust-stage { position: relative; display: grid; width: auto; max-height: none; overflow: hidden; place-items: center; border: 1px solid #111827; background: #e8ecef; cursor: grab; touch-action: none; user-select: none; }
#page-drops #dropMediaManager .ds-drop-media-adjust-stage.is-panning { cursor: grabbing; }
#page-drops #dropMediaManager .ds-drop-media-adjust-stage img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transform-origin: center; }
#page-drops .ds-drop-media-adjust-hint { position: absolute; right: 8px; bottom: 8px; padding: 5px 7px; border: 1px solid rgba(17,24,39,.5); background: rgba(255,255,255,.9); color: #374151; font-size: 10px; font-weight: 750; pointer-events: none; }
#page-drops .ds-drop-media-adjust-actions { justify-content: flex-end; }
#page-drops .ds-drop-media-adjust-actions .ds-drops-btn-primary { border-color: #111827; background: #111827; color: #fff; }

#page-drops .ds-drop-settings-stack { display: grid; max-width: 760px; gap: 14px; }
#page-drops .ds-drop-setting-card, #page-drops .ds-drop-danger-zone { padding: 18px; border: 1px solid #cbd1d8; border-radius: 6px; background: #fff; }
#page-drops .ds-drop-setting-heading span { display: block; margin-bottom: 7px; color: #68717c; font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
#page-drops .ds-drop-setting-heading h4, #page-drops .ds-drop-danger-zone h4 { margin: 0; color: #111827; font-size: 15px; letter-spacing: -.015em; }
#page-drops .ds-drop-setting-heading p, #page-drops .ds-drop-danger-zone p { margin: 7px 0 16px; color: #68717c; font-size: 12px; line-height: 1.5; }
#page-drops .ds-drop-checks { gap: 8px; }
#page-drops .ds-drop-check { min-height: 46px; padding: 0 12px; border: 1px solid #d7dce1; border-radius: 5px; background: #fafbfc; color: #111827; }
#page-drops .ds-drop-check small { margin-left: auto; color: #8a929c; font-size: 11px; font-weight: 700; }
#page-drops .ds-drop-release-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding: 10px 12px; border: 1px solid #d7dce1; background: #fafbfc; }
#page-drops .ds-drop-release-status code { overflow: hidden; color: #4b5563; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
#page-drops .ds-drop-publish-state { padding: 4px 7px; border: 1px solid #111827; color: #111827; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
#page-drops .ds-drop-publish-state.is-published { background: #f5f6f7; }
#page-drops .ds-drop-publish-state.is-draft { background: #fff; }
#page-drops .ds-drop-release-action { border-color: #111827 !important; background: #fff !important; }
#page-drops .ds-drop-release-action:hover { background: #f5f6f7 !important; }
#page-drops .ds-drop-danger-zone { margin-top: 0; border-color: #e59a9a; background: #fffafa; }
#page-drops .ds-drop-danger-zone > span { color: #b42318; }

#page-drops .ds-drop-modal-footer { min-height: 72px; padding: 14px 22px; }
#page-drops .ds-drop-modal-footer-actions { flex-wrap: nowrap; margin-left: auto; }
#page-drops .ds-drop-modal-footer-actions button { min-height: 42px; white-space: nowrap; }
#page-drops .ds-drop-modal-footer-actions .ds-drop-modal-cancel { border-color: transparent; background: transparent; color: #4b5563; }
#page-drops .ds-drop-modal-footer-actions .ds-drop-modal-cancel:hover { border-color: #cbd1d8; background: #fff; color: #111827; }
#page-drops .ds-drop-modal-footer-actions .ds-drop-modal-save { border-color: #111827; background: #fff; color: #111827; }
#page-drops .ds-drop-modal-footer-actions .ds-drop-modal-publish { border-color: #111827; background: #111827; color: #fff; }
#page-drops .ds-drop-modal-footer-actions .ds-drop-modal-publish:hover { background: #1f2937; }

/* Drop-only multi-item catalog. This stays inside the editor modal and uses
   the same neutral Studio surface language as Inventory without sharing its
   product/variant UI or state. */
#page-drops #dropItemsManager { max-width: 940px; }
#page-drops .ds-drop-items-empty { max-width: 620px; padding: 32px; border: 1px dashed #cbd1d8; border-radius: 7px; background: #fafbfc; }
#page-drops .ds-drop-items-empty strong { display: block; color: #111827; font-size: 15px; }
#page-drops .ds-drop-items-empty p { max-width: 500px; margin: 8px 0 18px; color: #68717c; font-size: 12px; line-height: 1.55; }
#page-drops .ds-drop-items-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 0 14px; border-bottom: 1px solid #e5e7eb; }
#page-drops .ds-drop-items-toolbar strong, #page-drops .ds-drop-variants-heading strong { display: block; color: #111827; font-size: 13px; }
#page-drops .ds-drop-items-toolbar span, #page-drops .ds-drop-variants-heading span { display: block; margin-top: 4px; color: #7b8490; font-size: 11px; }
#page-drops .ds-drop-items-list { display: grid; gap: 12px; margin-top: 14px; }
#page-drops .ds-drop-item-card { padding: 16px; border: 1px solid #d7dce1; border-radius: 7px; background: #fff; }
#page-drops .ds-drop-item-card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #eef1f4; }
#page-drops .ds-drop-item-card-header > div:last-child { display: flex; align-items: center; gap: 10px; }
#page-drops .ds-drop-item-card-header span { display: block; margin-bottom: 3px; color: #8a929c; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
#page-drops .ds-drop-item-card-header strong { color: #111827; font-size: 14px; }
#page-drops .ds-drop-inline-check { display: inline-flex; align-items: center; gap: 7px; color: #4b5563; font-size: 11px; font-weight: 750; white-space: nowrap; }
#page-drops .ds-drop-inline-check input { width: 15px; height: 15px; margin: 0; accent-color: #111827; }
#page-drops .ds-drop-icon-button { display: inline-grid !important; width: 32px; min-width: 32px; min-height: 32px !important; padding: 0 !important; place-items: center; color: #b42318 !important; }
#page-drops .ds-drop-item-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
#page-drops .ds-drop-item-grid label, #page-drops .ds-drop-item-derived { display: flex; min-width: 0; flex-direction: column; gap: 6px; color: #4b5563; font-size: 10px; font-weight: 850; letter-spacing: .03em; text-transform: uppercase; }
#page-drops .ds-drop-item-grid label.wide { grid-column: span 2; }
#page-drops .ds-drop-item-grid input, #page-drops .ds-drop-item-grid select, #page-drops .ds-drop-variant-row input { width: 100%; min-width: 0; box-sizing: border-box; min-height: 38px; padding: 8px 10px; border: 1px solid #d7dce1; border-radius: 5px; background: #fff; color: #111827; font: inherit; font-size: 12px; font-weight: 500; letter-spacing: normal; text-transform: none; }
#page-drops .ds-drop-item-derived { justify-content: center; min-height: 38px; padding: 0 10px; border: 1px solid #e2e6ea; border-radius: 5px; background: #fafbfc; }
#page-drops .ds-drop-item-derived span { color: #7b8490; font-size: 9px; }
#page-drops .ds-drop-item-derived strong { color: #111827; font-size: 12px; letter-spacing: normal; }
#page-drops .ds-drop-variants { margin-top: 16px; padding-top: 14px; border-top: 1px solid #eef1f4; }
#page-drops .ds-drop-variants-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#page-drops .ds-drop-variants-heading button { min-height: 34px !important; padding: 0 10px !important; }
#page-drops .ds-drop-variant-list { display: grid; gap: 7px; margin-top: 11px; }
#page-drops .ds-drop-variant-row { display: grid; grid-template-columns: minmax(120px, 1.5fr) minmax(100px, 1fr) minmax(80px, .7fr) auto 32px; gap: 8px; align-items: center; }
#page-drops .ds-drop-catalog-summary { max-width: 900px; margin: 0 0 18px; padding: 13px 14px; border: 1px solid #d7dce1; border-radius: 6px; background: #fafbfc; }
#page-drops .ds-drop-catalog-summary strong { display: block; color: #111827; font-size: 12px; }
#page-drops .ds-drop-catalog-summary span { display: block; margin-top: 5px; color: #68717c; font-size: 11px; line-height: 1.45; }

@media (max-width: 760px) {
  #page-drops .ds-drop-modal .ds-drop-modal-section { min-height: 44px; border-left: 0; border-bottom: 3px solid transparent; }
  #page-drops .ds-drop-modal .ds-drop-modal-section.is-active { border-left-color: transparent; border-bottom-color: #111827; }
  #page-drops .ds-drop-modal-footer-actions { margin-left: 0; }
  #page-drops .ds-drop-modal-footer-actions button { min-height: 44px; padding: 0 9px; }
  #page-drops #dropMediaManager .ds-drop-media-adjust-stage { max-width: 100%; }
  #page-drops .ds-drop-item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #page-drops .ds-drop-item-grid label.wide { grid-column: span 2; }
  #page-drops .ds-drop-variant-row { grid-template-columns: minmax(0, 1fr) minmax(84px, .7fr) minmax(72px, .55fr) 32px; }
  #page-drops .ds-drop-variant-row .ds-drop-inline-check { grid-column: 1 / -1; }
}

/* Drop notices use the same quiet, modular surface as the Drop editor. Keep
   this scoped so Orders and the rest of Studio retain their own notice rules. */
body.drops-active #notifModal.ds-notif-overlay {
  background: rgba(15, 23, 42, .18) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
}

/* Final Edit Drop modal layout. All rules remain under the Drops page so the
   Inventory, Store, and the rest of Studio keep their existing geometry. */
#page-drops .ds-drop-modal {
  width: min(90vw, 1380px);
  height: min(86vh, 920px);
}
#page-drops .ds-drop-modal-body { grid-template-columns: 192px minmax(0, 1fr); }
#page-drops .ds-drop-modal-section-content { padding: 26px 30px 34px; }
#page-drops .ds-drop-details-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, .84fr);
  align-items: start;
  gap: 24px;
}
#page-drops .ds-drop-release-details,
#page-drops .ds-drop-image-card,
#page-drops .ds-drop-setting-card,
#page-drops .ds-drop-stock-breakdown,
#page-drops .ds-drop-stock-summary {
  min-width: 0;
}
#page-drops .ds-drop-image-card {
  padding: 16px;
  border: 1px solid #d7dce1;
  border-radius: 7px;
  background: #fff;
}
#page-drops .ds-drop-subsection-heading { margin-bottom: 14px; }
#page-drops .ds-drop-subsection-heading > span,
#page-drops .ds-drop-setting-heading > span {
  display: block;
  margin-bottom: 5px;
  color: #68717c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
#page-drops .ds-drop-subsection-heading h4 { margin: 0; color: #111827; font-size: 15px; }
#page-drops .ds-drop-subsection-heading p { margin: 5px 0 0; color: #7b8490; font-size: 11px; line-height: 1.45; }
#page-drops .ds-drop-feature-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#page-drops .ds-drop-inline-action { min-height: 30px !important; padding: 0 9px !important; font-size: 11px !important; }

#page-drops #dropMediaManager { gap: 11px; }
#page-drops #dropMediaManager .ds-drop-media-layout {
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 12px;
}
#page-drops #dropMediaManager .ds-drop-media-preview-frame {
  width: auto;
  max-width: 100%;
  max-height: 300px;
}
#page-drops #dropMediaManager .ds-drop-media-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
#page-drops #dropMediaManager .ds-drop-media-thumb { min-height: 58px; padding: 4px; }
#page-drops #dropMediaManager .ds-drop-media-thumb img { height: 48px; }
#page-drops #dropMediaManager .ds-drop-media-preview-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; }
#page-drops #dropMediaManager .ds-drop-media-preview-hint { width: 100%; margin-top: 0; text-align: left; }
#page-drops #dropMediaManager .ds-drop-media-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
#page-drops #dropMediaManager .ds-drop-media-actions button { min-width: 0; padding: 0 8px; }

#page-drops .ds-drop-stock-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
  border: 1px solid #d7dce1;
  border-radius: 7px;
  background: #fff;
}
#page-drops .ds-drop-stock-summary-cell { min-width: 0; padding: 14px 16px; border-right: 1px solid #e5e7eb; }
#page-drops .ds-drop-stock-summary-cell:last-child { border-right: 0; }
#page-drops .ds-drop-stock-summary-cell span,
#page-drops .ds-drop-stock-breakdown-heading span { display: block; color: #68717c; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
#page-drops .ds-drop-stock-summary-cell strong { display: block; margin-top: 7px; color: #111827; font-size: 21px; letter-spacing: -.03em; }
#page-drops .ds-drop-stock-breakdown { margin: 0 0 20px; padding: 14px 16px; border: 1px solid #d7dce1; border-radius: 7px; background: #fafbfc; }
#page-drops .ds-drop-stock-breakdown-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 1px solid #e5e7eb; }
#page-drops .ds-drop-stock-breakdown-heading small { color: #8a929c; font-size: 10px; }
#page-drops .ds-drop-stock-breakdown-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; color: #4b5563; font-size: 12px; }
#page-drops .ds-drop-stock-breakdown-row strong { color: #111827; font-size: 12px; }

#page-drops .ds-drop-schedule-payment { max-width: 900px; }
#page-drops .ds-drop-schedule-payment .ds-drop-setting-card { max-width: none; }
#page-drops .ds-drop-release-status-field { display: grid; grid-template-columns: 100px minmax(0, 240px); align-items: center; gap: 12px; margin-top: 15px; color: #4b5563; font-size: 11px; font-weight: 800; }
#page-drops .ds-drop-release-status-field select { width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid #d7dce1; border-radius: 5px; background: #fff; color: #111827; font: inherit; }

#page-drops .ds-drop-modal-footer-left { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 9px 14px; }
#page-drops .ds-drop-modal-footer-left small { width: auto; }
#page-drops .ds-drop-footer-release,
#page-drops .ds-drop-footer-delete { min-height: 38px !important; border-color: #c98383 !important; background: #fff !important; color: #a33232 !important; }
#page-drops .ds-drop-footer-release:hover,
#page-drops .ds-drop-footer-delete:hover { border-color: #a33232 !important; background: #fff7f7 !important; }
#page-drops .ds-drop-footer-release.ds-drop-reopen-action { border-color: #8d98a4 !important; color: #374151 !important; }

#page-drops .ds-drop-item-card-collapsed { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 78px; padding: 12px 14px; }
#page-drops .ds-drop-item-collapsed-main { display: flex; min-width: 0; align-items: center; gap: 11px; }
#page-drops .ds-drop-item-collapsed-main > div { min-width: 0; }
#page-drops .ds-drop-item-collapsed-main span,
#page-drops .ds-drop-item-card-header span { color: #8a929c; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
#page-drops .ds-drop-item-collapsed-main strong { display: block; overflow: hidden; color: #111827; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
#page-drops .ds-drop-item-collapsed-main small { display: block; margin-top: 4px; color: #68717c; font-size: 11px; }
#page-drops .ds-drop-item-thumb { display: block; width: 44px; height: 44px; flex: 0 0 44px; object-fit: cover; border: 1px solid #d7dce1; border-radius: 5px; background: #f4f6f7; }
#page-drops .ds-drop-item-thumb.is-empty { display: block; }
#page-drops .ds-drop-item-card-header-actions { display: flex; align-items: center; gap: 8px; }
#page-drops .ds-drop-item-card-header-actions button:not(.ds-drop-icon-button) { min-height: 32px !important; padding: 0 10px !important; }
#page-drops .ds-drop-item-card-expanded .ds-drop-item-card-header { margin-bottom: 14px; }
#page-drops .ds-drop-item-grip { color: #8a929c !important; font-size: 16px !important; letter-spacing: -2px !important; }
#page-drops .ds-drop-item-editor-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr); gap: 20px; }
#page-drops .ds-drop-item-media-panel { min-width: 0; padding-left: 20px; border-left: 1px solid #eef1f4; }
#page-drops .ds-drop-item-media-preview { display: grid; min-height: 150px; place-items: center; overflow: hidden; border: 1px solid #d7dce1; border-radius: 6px; background: #f4f6f7; }
#page-drops .ds-drop-item-media-preview img { display: block; width: 100%; height: 150px; object-fit: cover; }
#page-drops .ds-drop-item-media-preview span { color: #8a929c; font-size: 11px; }
#page-drops .ds-drop-item-media-thumbs { display: flex; gap: 6px; min-height: 38px; margin-top: 8px; }
#page-drops .ds-drop-item-media-thumb { width: 38px; height: 38px; overflow: hidden; border: 1px solid #111827; border-radius: 4px; }
#page-drops .ds-drop-item-media-thumb img { width: 100%; height: 100%; object-fit: cover; }
#page-drops .ds-drop-item-media-empty { color: #8a929c; font-size: 10px; }
#page-drops .ds-drop-item-media-source { display: grid; gap: 5px; margin-top: 10px; color: #4b5563; font-size: 10px; font-weight: 850; letter-spacing: .03em; text-transform: uppercase; }
#page-drops .ds-drop-item-media-source select { min-height: 36px; padding: 0 8px; border: 1px solid #d7dce1; border-radius: 5px; background: #fff; color: #111827; font: inherit; font-size: 11px; letter-spacing: normal; text-transform: none; }
#page-drops .ds-drop-item-media-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
#page-drops .ds-drop-item-media-actions button { min-height: 32px !important; padding: 0 9px !important; font-size: 11px !important; }
#page-drops .ds-drop-variant-row { grid-template-columns: 28px minmax(120px, 1.4fr) minmax(100px, 1fr) minmax(80px, .7fr) auto 32px; }
#page-drops .ds-drop-variant-thumb { width: 28px; height: 28px; object-fit: cover; border: 1px solid #d7dce1; border-radius: 4px; background: #f4f6f7; }
#page-drops .ds-drop-variant-thumb.is-empty { display: block; }

@media (max-width: 960px) {
  #page-drops .ds-drop-details-layout { grid-template-columns: 1fr; }
  #page-drops .ds-drop-item-editor-split { grid-template-columns: 1fr; }
  #page-drops .ds-drop-item-media-panel { padding: 16px 0 0; border-top: 1px solid #eef1f4; border-left: 0; }
}
@media (max-width: 760px) {
  #page-drops .ds-drop-stock-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #page-drops .ds-drop-stock-summary-cell:nth-child(2) { border-right: 0; }
  #page-drops .ds-drop-stock-summary-cell:nth-child(-n+2) { border-bottom: 1px solid #e5e7eb; }
  #page-drops .ds-drop-item-card-collapsed { align-items: flex-start; flex-direction: column; }
  #page-drops .ds-drop-item-card-header-actions { width: 100%; justify-content: flex-end; }
  #page-drops .ds-drop-modal-footer-left small { width: auto; }
}
body.drops-active #notifModal .ds-notif {
  width: min(420px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
  overflow: hidden !important;
  border: 1px solid #cbd1d8 !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
}
body.drops-active #notifModal .ds-notif-header { min-height: 0 !important; padding: 16px 18px 12px !important; border: 0 !important; }
body.drops-active #notifModal .ds-notif-heading { display: flex !important; align-items: center; gap: 10px; min-width: 0; }
body.drops-active #notifModal .ds-notif-label { color: #2f3943 !important; font-size: 12px !important; font-weight: 800 !important; letter-spacing: .05em !important; text-transform: uppercase !important; }
body.drops-active #notifModal .ds-notif-close { width: 30px !important; height: 30px !important; border: 1px solid #cbd1d8 !important; border-radius: 6px !important; background: #fff !important; color: #4b5563 !important; }
body.drops-active #notifModal .ds-notif-close:hover { background: #f5f6f7 !important; }
body.drops-active #notifModal .ds-notif-close:hover svg { stroke: #111827 !important; }
body.drops-active #notifModal .ds-notif-icon { display: inline-flex !important; align-items: center !important; justify-content: center !important; width: 34px !important; height: 34px !important; flex: 0 0 34px !important; border: 1px solid #d7dce1 !important; border-radius: 7px !important; background: #f5f6f7 !important; color: #68717c !important; }
body.drops-active #notifModal .ds-notif-icon svg { width: 18px !important; height: 18px !important; stroke: currentColor !important; stroke-width: 2.2 !important; }
body.drops-active #notifModal:has(#notifIcon svg polyline) .ds-notif-icon,
body.drops-active #notifModal:has(#notifIcon svg polyline) .ds-notif-label { border-color: #b9ddc4 !important; background: #eef8f1 !important; color: #28743b !important; }
body.drops-active #notifModal:has(#notifIcon svg path[d^="M12 2"]) .ds-notif-icon,
body.drops-active #notifModal:has(#notifIcon svg path[d^="M12 2"]) .ds-notif-label { border-color: #efd49b !important; background: #fff8e8 !important; color: #8a5b08 !important; }
body.drops-active #notifModal:has(#notifIcon svg line[x1="18"]) .ds-notif-icon,
body.drops-active #notifModal:has(#notifIcon svg line[x1="18"]) .ds-notif-label { border-color: #e4bfc3 !important; background: #fff2f3 !important; color: #a43e49 !important; }
body.drops-active #notifModal .ds-notif-label { border: 0 !important; background: transparent !important; }
body.drops-active #notifModal .ds-notif-body { display: block !important; padding: 0 18px 18px !important; }
body.drops-active #notifModal .ds-notif-msg { color: #26323c !important; font-size: 14px !important; font-weight: 550 !important; line-height: 1.5 !important; }
body.drops-active #notifModal .ds-notif-actions { gap: 8px !important; padding: 14px 18px 16px !important; border-top: 1px solid #e6eaee !important; }
body.drops-active #notifModal .ds-notif-actions button { min-height: 40px !important; height: 40px !important; border: 1px solid #cbd1d8 !important; border-radius: 6px !important; background: #fff !important; color: #35424d !important; font-size: 13px !important; font-weight: 750 !important; }
body.drops-active #notifModal .ds-notif-actions button:hover { background: #f5f6f7 !important; color: #202a33 !important; }
body.drops-active #notifModal .ds-notif-actions button:only-child { border-color: #111827 !important; background: #111827 !important; color: #fff !important; }
body.drops-active #notifModal .ds-notif-actions button:only-child:hover { border-color: #1f2937 !important; background: #1f2937 !important; }
body.drops-active #notifModal .ds-notif-actions .ds-notif-danger { border-color: #d9aeb3 !important; background: #fff !important; color: #a43e49 !important; }
body.drops-active #notifModal .ds-notif-actions .ds-notif-danger:hover { border-color: #c98f96 !important; background: #fff2f3 !important; color: #8f303b !important; }

@media (max-width: 760px) {
  body.drops-active #notifModal .ds-notif-actions button { min-height: 44px !important; height: 44px !important; }
}

/* Keep the Edit Drop footer dimensionally stable in every interaction state.
   The footer is Drop-only; no shared Studio button styles are changed here. */
#page-drops .ds-drop-modal-footer-actions > button,
#page-drops .ds-drop-modal-footer-actions > button:hover,
#page-drops .ds-drop-modal-footer-actions > button:focus,
#page-drops .ds-drop-modal-footer-actions > button:active {
  box-sizing: border-box;
  height: 42px;
  min-height: 42px;
  margin: 0;
  padding: 0 12px;
  border-width: 1px;
  border-style: solid;
  border-radius: 5px;
  line-height: 1.2;
  transform: none;
  white-space: nowrap;
}

#page-drops .ds-drop-modal-footer-actions > .ds-drop-modal-cancel,
#page-drops .ds-drop-modal-footer-actions > .ds-drop-modal-save {
  border-color: #111827;
  background: #fff;
  color: #111827;
}

#page-drops .ds-drop-modal-footer-actions > .ds-drop-modal-cancel:hover,
#page-drops .ds-drop-modal-footer-actions > .ds-drop-modal-cancel:focus,
#page-drops .ds-drop-modal-footer-actions > .ds-drop-modal-cancel:active,
#page-drops .ds-drop-modal-footer-actions > .ds-drop-modal-save:hover,
#page-drops .ds-drop-modal-footer-actions > .ds-drop-modal-save:focus,
#page-drops .ds-drop-modal-footer-actions > .ds-drop-modal-save:active {
  border-color: #111827;
  background: #f5f6f7;
  color: #111827;
}

#page-drops .ds-drop-modal-footer-actions > .ds-drop-modal-publish,
#page-drops .ds-drop-modal-footer-actions > .ds-drop-modal-publish:hover,
#page-drops .ds-drop-modal-footer-actions > .ds-drop-modal-publish:focus,
#page-drops .ds-drop-modal-footer-actions > .ds-drop-modal-publish:active {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

#page-drops .ds-drop-modal-footer-actions > button:focus-visible {
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
}

@media (max-width: 760px) {
  #page-drops .ds-drop-modal-footer-actions > button,
  #page-drops .ds-drop-modal-footer-actions > button:hover,
  #page-drops .ds-drop-modal-footer-actions > button:focus,
  #page-drops .ds-drop-modal-footer-actions > button:active {
    height: 44px;
    min-height: 44px;
    padding: 0 9px;
  }
}

/* Drop editor scope: keep the media viewport stable while the selected
   ratio changes inside it. The image itself retains its saved ratio and
   transform; only the inner frame changes. */
#page-drops #dropMediaManager .ds-drop-media-preview-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 320px;
  overflow: hidden;
  border: 1px solid #cbd1d8;
  border-radius: 6px;
  background: #edf0f2;
}

#page-drops #dropMediaManager .ds-drop-media-preview-stage .ds-drop-media-preview-frame {
  flex: 0 0 auto;
  max-width: 100%;
  max-height: 100%;
  border: 1px solid #cbd1d8;
  border-radius: 5px;
  background: #fff;
}

#page-drops #dropMediaManager .ds-drop-media-preview-stage img {
  object-fit: contain;
}

#page-drops .ds-drop-item-media-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 190px;
  overflow: hidden;
  border: 1px solid #d7dce1;
  border-radius: 6px;
  background: #f4f6f7;
}

#page-drops .ds-drop-item-media-stage .ds-drop-item-media-preview {
  flex: 0 0 auto;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  border: 1px solid #cbd1d8;
  border-radius: 5px;
  background: #fff;
}

#page-drops .ds-drop-item-media-stage .ds-drop-item-media-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#page-drops .ds-drop-item-media-stage .ds-drop-item-media-hint {
  z-index: 1;
}

#page-drops #dropMediaManager .ds-drop-media-ratios,
#page-drops .ds-drop-item-media-ratios {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#page-drops .ds-drop-item-media-panel {
  display: grid;
  gap: 10px;
}

#page-drops .ds-drop-item-media-thumbs,
#page-drops .ds-drop-item-media-source,
#page-drops .ds-drop-item-media-actions {
  margin-top: 0;
}

#page-drops .ds-drop-item-media-thumbs { gap: 8px; }
#page-drops .ds-drop-item-media-source { gap: 6px; }
#page-drops .ds-drop-item-media-actions { gap: 8px; }

/* The final Drop modal sections use the full content column. These overrides
   deliberately stay under #page-drops so Inventory and other Studio pages
   keep their own width rhythm. */
#page-drops .ds-drop-modal-section-content .ds-drop-form-grid,
#page-drops .ds-drop-catalog-summary,
#page-drops #dropItemsManager,
#page-drops .ds-drop-items-empty,
#page-drops .ds-drop-settings-stack.ds-drop-schedule-payment {
  width: 100%;
  max-width: none;
}

@media (max-width: 760px) {
  #page-drops #dropMediaManager .ds-drop-media-preview-stage {
    height: 260px;
  }
}

/* Final Drop editor IA pass. Keep these rules Drop-local and authoritative so
   the older editor branches cannot reintroduce clipped media or pill-like
   navigation in the new four-section editor. */
#page-drops .ds-drop-modal-section {
  display: flex;
  align-items: center;
  gap: 9px;
}

#page-drops .ds-drop-modal-section-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

#page-drops .ds-drop-modal-section-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

#page-drops .ds-drop-details-layout-single {
  display: block;
}

#page-drops .ds-drop-details-layout-single .ds-drop-release-details {
  width: 100%;
  max-width: 980px;
}

#page-drops .ds-drop-item-media-thumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

#page-drops .ds-drop-item-media-add {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px dashed #b9c1c9;
  border-radius: 5px;
  background: #fff;
  color: #52606d;
  font-size: 20px;
  line-height: 1;
}

#page-drops .ds-drop-item-media-add:hover,
#page-drops .ds-drop-item-media-add:focus-visible {
  border-color: #68717c;
  background: #f7f8f9;
  color: #111827;
}

#page-drops .ds-drop-item-media-empty {
  color: #8a929c;
  font-size: 11px;
}

#page-drops .ds-drop-variants-empty {
  padding: 12px 14px;
  border: 1px dashed #d7dce1;
  color: #7b8490;
  font-size: 11px;
}

#page-drops .ds-drop-variant-list {
  max-height: 240px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 2px;
}

#page-drops .ds-drop-variant-row {
  grid-template-columns: 34px minmax(120px, 1.4fr) minmax(100px, 1fr) minmax(80px, .7fr) auto 32px;
}

#page-drops .ds-drop-variant-media {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  border: 1px solid #cbd1d8;
  border-radius: 4px;
  background: #fff;
  color: #657180;
  font-size: 16px;
  line-height: 1;
}

#page-drops .ds-drop-variant-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-position: center;
  object-fit: contain;
}

#page-drops .ds-drop-variant-media:hover,
#page-drops .ds-drop-variant-media:focus-visible {
  border-color: #68717c;
  background: #f7f8f9;
}

#page-drops .ds-drop-modal-footer-actions > .ds-drop-modal-cancel,
#page-drops .ds-drop-modal-footer-actions > .ds-drop-modal-save,
#page-drops .ds-drop-modal-footer-actions > .ds-drop-modal-publish {
  box-sizing: border-box;
  min-height: 42px;
  border-width: 1px;
  border-style: solid;
  border-radius: 5px;
  padding: 0 14px;
  white-space: nowrap;
}

#page-drops .ds-drop-modal-footer-actions > .ds-drop-modal-cancel {
  border-color: #cbd1d8;
  background: #fff;
  color: #111827;
}

#page-drops .ds-drop-modal-footer-actions > .ds-drop-modal-cancel:hover,
#page-drops .ds-drop-modal-footer-actions > .ds-drop-modal-cancel:focus-visible {
  border-color: #aeb7c1;
  background: #f6f7f8;
  color: #111827;
}

@media (min-width: 761px) and (max-width: 1100px) {
  #page-drops .ds-drop-modal {
    width: calc(100vw - 32px);
  }

  #page-drops .ds-drop-modal-body {
    grid-template-columns: 164px minmax(0, 1fr);
  }

  #page-drops .ds-drop-modal-section-content {
    padding: 22px 20px 28px;
  }
}

@media (max-width: 760px) {
  #page-drops .ds-drop-modal-overlay {
    align-items: stretch;
    padding: 0;
  }

  #page-drops .ds-drop-modal {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  #page-drops .ds-drop-modal-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
  }

  #page-drops .ds-drop-modal-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    flex: 0 0 auto;
    gap: 0;
    overflow: hidden;
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid #e1e5e9;
  }

  #page-drops .ds-drop-modal-section {
    min-width: 0;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 8px 3px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    text-align: center;
    font-size: 10px;
  }

  #page-drops .ds-drop-modal-section.is-active {
    border-bottom-color: #111827;
    border-left-color: transparent;
    background: #fff;
  }

  #page-drops .ds-drop-modal-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }

  #page-drops .ds-drop-modal-section-content {
    padding: 18px 14px 24px;
  }

  #page-drops .ds-drop-modal-footer {
    flex: 0 0 auto;
    min-height: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }

  #page-drops .ds-drop-modal-footer-left {
    min-width: 0;
  }

  #page-drops .ds-drop-modal-footer-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
    margin-left: 0;
  }

  #page-drops .ds-drop-modal-footer-actions > button {
    min-width: 0;
    padding: 0 6px;
  }

  #page-drops .ds-drop-details-layout,
  #page-drops .ds-drop-item-grid {
    grid-template-columns: 1fr;
  }

  #page-drops .ds-drop-item-grid label.wide {
    grid-column: auto;
  }

  #page-drops .ds-drop-variant-list {
    max-height: 260px;
  }

  #page-drops .ds-drop-variant-row {
    grid-template-columns: 36px minmax(0, 1fr) 32px;
    gap: 8px;
    align-items: start;
  }

  #page-drops .ds-drop-variant-row [data-drop-variant-name],
  #page-drops .ds-drop-variant-row [data-drop-variant-price],
  #page-drops .ds-drop-variant-row [data-drop-variant-stock],
  #page-drops .ds-drop-variant-row .ds-drop-inline-check {
    grid-column: 2;
  }

  #page-drops .ds-drop-variant-row .ds-drop-icon-button {
    grid-column: 3;
    grid-row: 1 / span 4;
  }
}

/* Approved Edit Drop content sync. The modal shell, rail, and footer above are
   intentionally untouched; these rules only shape the Details, Items, and
   Release content rendered by the final Drop editor. */
#page-drops .ds-drop-details-layout-single .ds-drop-release-details {
  width: 100%;
  max-width: none;
}

#page-drops .ds-drop-detail-group {
  width: 100%;
  margin: 0 0 12px;
  overflow: hidden;
  border: 1px solid #d7dce1;
  border-radius: 7px;
  background: #fff;
}

#page-drops .ds-drop-detail-group-head {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 13px;
  border-bottom: 1px solid #e9edf1;
  background: #fafbfc;
  color: #111827;
}

#page-drops .ds-drop-detail-group-head svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: #313942;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

#page-drops .ds-drop-detail-group-head strong { font-size: 12px; }
#page-drops .ds-drop-detail-group-body { padding: 13px; }
#page-drops .ds-drop-detail-group-body .ds-drop-form-grid { width: 100%; max-width: none; }

#page-drops .ds-drop-notice {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #d7dce1;
  border-radius: 7px;
  background: #fafbfc;
  color: #68717c;
  font-size: 11px;
  line-height: 1.45;
}

#page-drops .ds-drop-notice strong { color: #374151; }

#page-drops .ds-drop-item-editor-split {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  align-items: start;
}

#page-drops .ds-drop-item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

#page-drops .ds-drop-media-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

#page-drops .ds-drop-media-top .ds-drop-subsection-heading { min-width: 0; }

#page-drops .ds-drop-item-media-add-button {
  display: inline-grid !important;
  width: 34px;
  min-width: 34px !important;
  height: 34px;
  min-height: 34px !important;
  flex: 0 0 34px;
  padding: 0 !important;
  place-items: center;
  border-style: dashed !important;
  color: #374151;
}

#page-drops .ds-drop-item-media-add-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

#page-drops .ds-drop-media-hint {
  margin-top: 7px;
  color: #8a929c;
  font-size: 10px;
  line-height: 1.35;
}

#page-drops .ds-drop-variant-list {
  max-height: 122px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 2px;
}

#page-drops .ds-drop-variant-row,
#page-drops .ds-drop-variant-row.many-images {
  grid-template-columns: minmax(92px, .95fr) minmax(120px, 1.3fr) minmax(74px, .7fr) minmax(70px, .65fr) auto 32px;
}

#page-drops .ds-drop-variant-row.many-images {
  grid-template-columns: minmax(140px, 1.3fr) minmax(92px, .9fr) minmax(74px, .7fr) minmax(70px, .65fr) auto 32px;
}

#page-drops .ds-drop-variant-media-list {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}

#page-drops .ds-drop-variant-media-list .ds-drop-variant-media {
  flex: 0 0 34px;
}

#page-drops .ds-drop-variant-media-empty {
  overflow: hidden;
  color: #8a929c;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#page-drops .ds-drop-main-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}

#page-drops .ds-drop-main-heading > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: #313942;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

#page-drops .ds-drop-main-heading h4 { margin: 0; color: #111827; font-size: 15px; }
#page-drops .ds-drop-main-heading p { margin: 3px 0 0; color: #7b8490; font-size: 11px; }
#page-drops .ds-drop-setting-description { margin: 10px 0 14px; color: #68717c; font-size: 11px; line-height: 1.45; }

#page-drops .ds-drop-release-card { max-width: none; }
#page-drops .ds-drop-release-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
#page-drops .ds-drop-release-heading .ds-drop-setting-heading { min-width: 0; }
#page-drops .ds-drop-release-copy { margin: 7px 0 14px; color: #68717c; font-size: 11px; line-height: 1.45; }
#page-drops .ds-drop-release-actions { display: flex; flex: 0 0 auto; gap: 6px; }

#page-drops .ds-drop-icon-action {
  display: inline-grid !important;
  width: 34px;
  min-width: 34px !important;
  height: 34px;
  min-height: 34px !important;
  padding: 0 !important;
  place-items: center;
}

#page-drops .ds-drop-icon-action svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

#page-drops .ds-drop-release-url-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid #d7dce1;
  border-radius: 6px;
  background: #fafbfc;
}

#page-drops .ds-drop-release-url-row code {
  min-width: 0;
  overflow: hidden;
  color: #4b5563;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#page-drops .ds-drop-release-url-row .ds-drop-icon-action { background: #fff; }

@media (max-width: 960px) {
  #page-drops .ds-drop-item-editor-split { grid-template-columns: 1fr; }
  #page-drops .ds-drop-item-media-panel { padding: 16px 0 0; border-top: 1px solid #eef1f4; border-left: 0; }
}

@media (max-width: 760px) {
  #page-drops .ds-drop-detail-group-body { padding: 11px; }
  #page-drops .ds-drop-item-editor-split { gap: 12px; }
  #page-drops .ds-drop-item-grid { grid-template-columns: 1fr; }
  #page-drops .ds-drop-item-grid label.wide { grid-column: auto; }
  #page-drops .ds-drop-variant-list { max-height: 220px; }
  #page-drops .ds-drop-variant-row,
  #page-drops .ds-drop-variant-row.many-images {
    grid-template-columns: minmax(0, 1fr) 32px;
    grid-template-areas: "name remove" "media media" "price active" "stock active";
    gap: 7px 8px;
    align-items: center;
  }
  #page-drops .ds-drop-variant-row .ds-drop-variant-media-list { grid-area: media; }
  #page-drops .ds-drop-variant-row [data-drop-variant-name] { grid-area: name; }
  #page-drops .ds-drop-variant-row [data-drop-variant-price] { grid-area: price; }
  #page-drops .ds-drop-variant-row [data-drop-variant-stock] { grid-area: stock; }
  #page-drops .ds-drop-variant-row .ds-drop-inline-check { grid-area: active; justify-self: end; }
  #page-drops .ds-drop-variant-row .ds-drop-icon-button { grid-area: remove; grid-column: auto; grid-row: auto; }
  #page-drops .ds-drop-release-status-field { grid-template-columns: 1fr; gap: 6px; }
  #page-drops .ds-drop-release-heading { align-items: center; }
}

/* Exact Items layout sync. The expanded item keeps Details + Variants in a
   natural-height left column while Product Images stays in the right column. */
#page-drops .ds-drop-item-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: 20px;
  align-items: start;
}

#page-drops .ds-drop-item-editor-left {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
}

#page-drops .ds-drop-item-editor-right {
  display: flex;
  min-width: 0;
  align-items: flex-start;
}

#page-drops .ds-drop-item-editor-right .ds-drop-item-media-panel {
  display: grid;
  width: 100%;
  min-width: 0;
  align-content: start;
  gap: 8px;
  padding-left: 16px;
  border-left: 1px solid #eef1f4;
}

#page-drops .ds-drop-item-card-expanded {
  padding: 12px 14px 14px;
}

#page-drops .ds-drop-item-card-header .ds-drop-item-collapsed-main > div {
  flex: 1;
  min-width: 0;
}

#page-drops .ds-drop-item-card-header .ds-drop-item-collapsed-main small {
  display: block;
  margin-top: 4px;
  color: #68717c;
  font-size: 11px;
  line-height: 1.35;
}

#page-drops .ds-drop-item-details {
  min-width: 0;
}

#page-drops .ds-drop-variants {
  min-width: 0;
  margin-top: 0;
  padding: 14px;
  border: 1px solid #d7dce1;
  border-radius: 6px;
  background: #fff;
}

#page-drops .ds-drop-variant-list {
  /* Natural rows up to the available editor space; only larger catalogs
     scroll. There is intentionally no min-height or fill behavior here. */
  height: auto;
  min-height: 0;
  max-height: clamp(132px, 28vh, 220px);
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 2px;
}

#page-drops .ds-drop-variant-row,
#page-drops .ds-drop-variant-row.many-images {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(92px, .95fr) minmax(130px, 1.25fr) minmax(74px, .7fr) minmax(70px, .65fr) auto 32px;
  gap: 6px;
  align-items: center;
}

#page-drops .ds-drop-variant-row.many-images {
  grid-template-columns: minmax(80px, .75fr) minmax(150px, 1.5fr) minmax(74px, .7fr) minmax(70px, .65fr) auto 32px;
}

#page-drops .ds-drop-item-media-stage {
  height: clamp(220px, 28vh, 280px);
}

#page-drops .ds-drop-item-media-thumb,
#page-drops .ds-drop-item-media-add {
  display: inline-grid;
  width: 64px;
  min-width: 64px;
  height: 64px;
  min-height: 64px;
  flex: 0 0 64px;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  place-items: center;
  overflow: hidden;
  padding: 0;
}

#page-drops .ds-drop-item-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#page-drops .ds-drop-item-media-add {
  border: 1px dashed #b9c1c9;
  border-radius: 5px;
  background: #fff;
  color: #52606d;
  font-size: 20px;
  line-height: 1;
}

#page-drops .ds-drop-variant-media-list {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}

#page-drops .ds-drop-variant-media {
  display: inline-grid;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  flex: 0 0 34px;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  place-items: center;
  padding: 0;
  overflow: hidden;
}

#page-drops .ds-drop-variant-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-position: center;
  object-fit: contain;
}

@media (max-width: 960px) {
  #page-drops .ds-drop-item-editor-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #page-drops .ds-drop-item-editor-right .ds-drop-item-media-panel {
    padding: 16px 0 0;
    border-top: 1px solid #eef1f4;
    border-left: 0;
  }
}

@media (max-width: 760px) {
  #page-drops .ds-drop-item-editor-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #page-drops .ds-drop-item-editor-left {
    display: contents;
  }

  #page-drops .ds-drop-item-details { grid-row: 1; }
  #page-drops .ds-drop-item-editor-right { grid-row: 2; }
  #page-drops .ds-drop-variants { grid-row: 3; }
  #page-drops .ds-drop-item-media-stage { height: 260px; }

  #page-drops .ds-drop-item-media-thumb,
  #page-drops .ds-drop-item-media-add {
    width: 56px;
    min-width: 56px;
    height: 56px;
    min-height: 56px;
    flex-basis: 56px;
  }

  #page-drops .ds-drop-item-editor-right .ds-drop-item-media-panel {
    padding: 0;
    border: 0;
  }

  #page-drops .ds-drop-variant-list {
    max-height: 220px;
  }
}

/* Drop Edit - Release tab layout */
#page-drops [data-drop-section-content="release"] > .ds-drop-modal-section-heading {
  margin-bottom: 16px;
  padding-bottom: 0;
  border-bottom: 0;
}

#page-drops [data-drop-section-content="release"] > .ds-drop-modal-section-heading h3 {
  font-size: 18px;
}

#page-drops .ds-drop-release-sections {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: none;
}

#page-drops .ds-drop-release-section {
  padding: 14px 15px 15px;
  border: 1px solid #d7dce1;
  border-radius: 7px;
  background: #fff;
}

#page-drops .ds-drop-release-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

#page-drops .ds-drop-release-step {
  display: grid;
  flex: 0 0 24px;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #bfc6ce;
  border-radius: 50%;
  background: #fafbfc;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

#page-drops .ds-drop-release-section-heading h4 {
  margin: 1px 0 0;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

#page-drops .ds-drop-release-section-heading p {
  margin: 4px 0 0;
  color: #68717c;
  font-size: 11px;
  line-height: 1.35;
}

#page-drops .ds-drop-release-section-heading p svg {
  width: 12px;
  height: 12px;
  margin-right: 3px;
  vertical-align: -2px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

#page-drops .ds-drop-release-section-description {
  margin: 8px 0 15px 36px;
  color: #68717c;
  font-size: 11px;
  line-height: 1.45;
}

#page-drops .ds-drop-release-date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-left: 36px;
}

#page-drops .ds-drop-release-field {
  display: grid;
  min-width: 0;
  gap: 6px;
}

#page-drops .ds-drop-release-field label {
  color: #111827;
  font-size: 11px;
  font-weight: 800;
}

#page-drops .ds-drop-release-field label em {
  color: #b42318;
  font-style: normal;
}

#page-drops .ds-drop-release-field input[type="datetime-local"] {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid #cbd1d8;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 12px;
}

#page-drops .ds-drop-release-time-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0 0 36px;
  color: #68717c;
  font-size: 11px;
}

#page-drops .ds-drop-release-time-note svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

#page-drops .ds-drop-release-payment-rows {
  display: grid;
  gap: 6px;
  margin: 12px 0 0 36px;
}

#page-drops .ds-drop-release-payment-row {
  display: grid;
  grid-template-columns: 24px 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid #d7dce1;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

#page-drops .ds-drop-release-payment-check {
  position: relative;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

#page-drops .ds-drop-release-payment-check input {
  position: absolute;
  inset: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

#page-drops .ds-drop-release-payment-check > span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid #aeb6bf;
  border-radius: 3px;
  background: #fff;
}

#page-drops .ds-drop-release-payment-check input:checked + span {
  border-color: #111827;
  background: #111827;
}

#page-drops .ds-drop-release-payment-check input:checked + span::after {
  width: 8px;
  height: 5px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  transform: rotate(-45deg) translateY(-1px);
}

#page-drops .ds-drop-release-payment-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #475569;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

#page-drops .ds-drop-release-payment-row strong {
  color: #111827;
  font-size: 12px;
  font-weight: 750;
}

#page-drops .ds-drop-release-payment-badge {
  justify-self: end;
  padding: 4px 8px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

#page-drops .ds-drop-release-payment-badge.is-stripe {
  border-color: #ded0fa;
  background: #f5efff;
  color: #7440c2;
}

#page-drops .ds-drop-release-payment-badge.is-receipt {
  border-color: #cfe0ff;
  background: #eff5ff;
  color: #1c64d1;
}

#page-drops .ds-drop-release-link-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 14px;
  padding: 6px 8px 6px 10px;
  border: 1px solid #d7dce1;
  border-radius: 6px;
  background: #fafbfc;
}

#page-drops .ds-drop-release-status-pill {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

#page-drops .ds-drop-release-status-pill.is-published {
  background: #e9f8f2;
  color: #15986f;
}

#page-drops .ds-drop-release-status-pill.is-draft {
  background: #eef1f4;
  color: #64748b;
}

#page-drops .ds-drop-release-link-row code {
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#page-drops .ds-drop-release-link-actions {
  display: flex;
  gap: 5px;
}

#page-drops .ds-drop-release-link-action {
  display: grid;
  place-items: center;
  width: 34px;
  min-width: 34px !important;
  height: 34px;
  min-height: 34px !important;
  padding: 0 !important;
  border: 1px solid #cbd1d8 !important;
  border-radius: 5px !important;
  background: #fff !important;
  color: #111827 !important;
}

#page-drops .ds-drop-release-link-action svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

#page-drops .ds-drop-release-visibility-label {
  display: block;
  margin: 14px 0 8px;
  color: #111827;
  font-size: 11px;
  font-weight: 800;
}

#page-drops .ds-drop-release-publish-source {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

#page-drops .ds-drop-release-visibility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#page-drops .ds-drop-release-visibility-card {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 88px;
  padding: 12px;
  border: 1px solid #d7dce1;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

#page-drops .ds-drop-release-visibility-card:hover {
  border-color: #9aa5b1;
  background: #fafbfc;
}

#page-drops .ds-drop-release-visibility-card.is-selected {
  border-color: #68717c;
  background: #fafbfc;
}

#page-drops .ds-drop-release-visibility-card.is-selected.is-published {
  border-color: #19a77c;
  background: #f0fbf7;
}

#page-drops .ds-drop-release-visibility-card > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#page-drops .ds-drop-release-visibility-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #111827;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

#page-drops .ds-drop-release-visibility-copy strong {
  display: block;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}

#page-drops .ds-drop-release-visibility-copy small {
  display: block;
  margin-top: 8px;
  color: #68717c;
  font-size: 11px;
  line-height: 1.4;
}

#page-drops .ds-drop-release-visibility-card.is-selected.is-published .ds-drop-release-visibility-copy strong {
  color: #15986f;
}

#page-drops .ds-drop-release-visibility-marker {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid #cbd1d8;
  border-radius: 50%;
  background: #fff;
}

#page-drops .ds-drop-release-visibility-marker svg {
  display: none;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

#page-drops .ds-drop-release-visibility-card.is-selected:not(.is-published) .ds-drop-release-visibility-marker {
  border-color: #111827;
  background: #111827;
}

#page-drops .ds-drop-release-visibility-card.is-selected.is-published .ds-drop-release-visibility-marker {
  border-color: #19a77c;
  background: #19a77c;
}

#page-drops .ds-drop-release-visibility-card.is-selected .ds-drop-release-visibility-marker svg {
  display: block;
}

@media (max-width: 760px) {
  #page-drops .ds-drop-release-section {
    padding: 13px;
  }

  #page-drops .ds-drop-release-section-description,
  #page-drops .ds-drop-release-date-grid,
  #page-drops .ds-drop-release-time-note,
  #page-drops .ds-drop-release-payment-rows {
    margin-left: 0;
  }

  #page-drops .ds-drop-release-date-grid,
  #page-drops .ds-drop-release-visibility-grid {
    grid-template-columns: 1fr;
  }

  #page-drops .ds-drop-release-payment-row {
    grid-template-columns: 22px 20px minmax(0, 1fr) auto;
    gap: 7px;
    padding: 0 8px;
  }

  #page-drops .ds-drop-release-payment-badge {
    padding-right: 6px;
    padding-left: 6px;
  }
}
