/* Offers Admin — ZIP-based offer routing management
 * Loaded from admin/index.html. Mirrors buyer-admin.css scope model:
 * everything lives under #offers-admin-root or .offers-* classes so it
 * cannot bleed into single-page / funnel / buyers surfaces.
 */

#offers-admin-root { display: none; }
body.mode-offers #offers-admin-root { display: block; }
body.mode-offers form#config-form { display: none; }
body.mode-offers #funnel-tab { display: none !important; }
body.mode-offers .tab-bar { display: none; }
body.mode-offers #buyer-admin-root { display: none !important; }
body.mode-offers .admin-main {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Toolbar */
.offers-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 96px;
  z-index: 40;
}
.offers-toolbar-left { flex: 1; display: flex; align-items: center; gap: 16px; }
.offers-toolbar-right { display: flex; align-items: center; gap: 8px; }
.offers-toolbar h2 { margin: 0; font-size: 18px; font-weight: 600; color: #111827; }

/* Sub-tabs: Offers | Slots */
.offers-subtabs {
  display: inline-flex;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  background: #f9fafb;
}
.offers-subtab {
  background: transparent;
  border: 0;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
}
.offers-subtab + .offers-subtab { border-left: 1px solid #d1d5db; }
.offers-subtab.active {
  background: #1a2744;
  color: #fff;
}

/* Banner */
.offers-banner {
  margin: 12px 24px 0;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}
.offers-banner.ok  { background: #d1fae5; color: #065f46; border: 1px solid #10b981; }
.offers-banner.err { background: #fee2e2; color: #991b1b; border: 1px solid #ef4444; }

/* Two-column grid — same shape as buyer admin */
.offers-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  padding: 16px 24px 32px;
  /* Pin to viewport so each column scrolls in-place instead of pushing
     the page chrome off-screen when the offers list is long. */
  height: calc(100vh - 220px);
  min-height: 0;
  overflow: hidden;
}

/* Left list */
.offers-list-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* min-height:0 is required for flex/grid items containing
     overflow:auto children — otherwise the child can't shrink and
     the parent grows past the grid height. */
  min-height: 0;
}
.offers-list-header {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}
.offers-list-header h3 { margin: 0 0 8px 0; font-size: 13px; font-weight: 600; color: #374151; text-transform: uppercase; letter-spacing: 0.04em; }

/* Active/Paused segmented control + search input. Phase 3 — search
   matches name, internal id, Everflow id, category, labels, advertiser,
   internal AM name + email. Substring match in memory, debounced. */
.offers-list-header .offers-filter {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: stretch;
}
.offers-list-header .offers-filter .offers-search {
  flex: 1 1 100%;
  min-width: 0;
  margin-top: 6px;
  padding: 6px 10px;
  font-size: 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #111827;
}
.offers-list-header .offers-filter .offers-search::placeholder { color: #9ca3af; }
.offers-list-header .offers-filter .offers-search:focus {
  outline: none;
  border-color: #1f2937;
  box-shadow: 0 0 0 2px rgba(31, 41, 55, 0.12);
}

/* Phase 4 — Cleanup chip row + per-row ⚠ pills.
   Cleanup buckets surface offers needing operator attention. Badges on
   each row show what's missing; the chip row above filters the list to
   one bucket so an operator can batch-process e.g. all uncategorized
   offers under a specific AM. */
.offers-list-header .offers-filter-cleanup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1 1 100%;
  margin-top: 6px;
}
.offers-list-header .cleanup-chip {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  color: #9a3412;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.offers-list-header .cleanup-chip:hover { background: #ffedd5; }
.offers-list-header .cleanup-chip.active {
  background: #c2410c;
  color: #fff;
  border-color: #c2410c;
}
.offers-list-header .cleanup-chip.active .n { color: #fff; }
.offers-list-header .cleanup-chip .n {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #9a3412;
}
.offers-list-header .cleanup-chip-clear {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  color: #4b5563;
  cursor: pointer;
}
.offers-list-header .cleanup-chip-clear:hover { background: #f3f4f6; }

/* Per-row ⚠ pill — same shape as the existing pill family but in
   amber so it visually pops against the gray status pills. */
.offers-list .pill.cleanup {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fdba74;
}
.offers-list .pill.cleanup-unowned       { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.offers-list .pill.cleanup-uncategorized { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.offers-list .pill.cleanup-untagged      { background: #ecfeff; color: #155e75; border-color: #67e8f9; }
.offers-list .pill.cleanup-dormant       { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }

/* Inside the offer editor's Owner & Source panel: the same badges as
   a single-row block under the "Cleanup" key. Slightly larger and
   spaced out. */
.offers-owner-panel .cleanup-pill {
  display: inline-block;
  padding: 2px 10px;
  margin-right: 6px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}
.offers-owner-panel .cleanup-pill.cleanup-unowned       { background: #fee2e2; color: #991b1b; }
.offers-owner-panel .cleanup-pill.cleanup-uncategorized { background: #fef3c7; color: #92400e; }
.offers-owner-panel .cleanup-pill.cleanup-untagged      { background: #ecfeff; color: #155e75; }
.offers-owner-panel .cleanup-pill.cleanup-dormant       { background: #f1f5f9; color: #475569; }

/* Phase 4 — Cleanup Queue modal. Lives outside any mode-* container so
   it can be opened from anywhere via the gear menu. Fixed-position
   overlay; click outside the card to dismiss. */
.cleanup-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cleanup-modal[hidden] { display: none; }
.cleanup-modal-card {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}
.cleanup-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}
.cleanup-modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}
.cleanup-modal-close {
  background: none;
  border: 0;
  cursor: pointer;
  color: #64748b;
  font-size: 24px;
  line-height: 1;
  padding: 0 4px;
}
.cleanup-modal-close:hover { color: #0f172a; }
.cleanup-modal-toolbar {
  padding: 10px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: #fff;
}
.cleanup-modal-toolbar .cleanup-chip {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: #9a3412;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cleanup-modal-toolbar .cleanup-chip:hover { background: #ffedd5; }
.cleanup-modal-toolbar .cleanup-chip.active {
  background: #c2410c;
  color: #fff;
  border-color: #c2410c;
}
.cleanup-modal-toolbar .cleanup-chip.active .n { color: #fff; }
.cleanup-modal-toolbar .cleanup-chip .n {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #9a3412;
}
.cleanup-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
}
.cleanup-modal-loading,
.cleanup-modal-empty {
  padding: 32px 0;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}
.cleanup-modal-error {
  padding: 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 6px;
  font-size: 13px;
}
.cleanup-modal-footer {
  padding: 10px 20px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  font-size: 12px;
}
.cleanup-modal-footer .muted { color: #64748b; }
.cleanup-modal-footer .btn-secondary {
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 12px;
  color: #1f2937;
  cursor: pointer;
}
.cleanup-modal-footer .btn-secondary:hover { background: #f3f4f6; }

.cleanup-group {
  margin-bottom: 16px;
}
.cleanup-group-head {
  padding: 8px 12px;
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 13px;
  color: #1f2937;
  margin-bottom: 4px;
}
.cleanup-group-head .cleanup-group-unowned { color: #991b1b; }
.cleanup-group-head a { color: #1d4ed8; text-decoration: none; }
.cleanup-group-head a:hover { text-decoration: underline; }
.cleanup-group-head .cleanup-send-btn {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 500;
  background: #1f2937;
  color: #fff !important;
  border-radius: 12px;
  text-decoration: none !important;
}
.cleanup-group-head .cleanup-send-btn:hover { background: #0f1729; }
.cleanup-group-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cleanup-row {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  cursor: pointer;
}
.cleanup-row:hover { background: #f8fafc; }
.cleanup-row-name { font-weight: 500; color: #0f172a; }
.cleanup-row-meta {
  font-size: 11px;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cleanup-row-meta code {
  font-size: 11px;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
  color: #1f2937;
}
.cleanup-row-meta .cleanup-pill {
  display: inline-block;
  padding: 1px 8px;
  margin-left: 4px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 500;
}
.cleanup-row-meta .cleanup-pill.cleanup-unowned       { background: #fee2e2; color: #991b1b; }
.cleanup-row-meta .cleanup-pill.cleanup-uncategorized { background: #fef3c7; color: #92400e; }
.cleanup-row-meta .cleanup-pill.cleanup-untagged      { background: #ecfeff; color: #155e75; }
.cleanup-row-meta .cleanup-pill.cleanup-dormant       { background: #f1f5f9; color: #475569; }
.offers-list-header .offers-filter button {
  flex: 1;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.offers-list-header .offers-filter button:hover { background: #f3f4f6; }
.offers-list-header .offers-filter button.active {
  background: #1f2937; color: #fff; border-color: #1f2937;
}
.offers-list-header .offers-filter button .n {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.offers-list-header .offers-filter button.active .n { color: #fff; }
.offers-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}
.offers-list li {
  padding: 12px 14px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.offers-list li:hover { background: #f9fafb; }
.offers-list li.active {
  background: #eff6ff;
  border-left: 3px solid #3b82f6;
  padding-left: 11px;
}
.offers-list .offers-row-name { font-size: 13px; font-weight: 600; color: #111827; }
.offers-list .offers-row-meta {
  font-size: 11px;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;       /* wrap whole pills to a new line, never inside one */
  gap: 4px 6px;
  align-items: center;
}
.offers-list .offers-row-meta .pill {
  background: #e5e7eb; color: #374151;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 10px;
  white-space: nowrap;   /* never break the pill text into multiple lines */
  flex-shrink: 0;        /* keep the pill its natural width — no oval squish */
  line-height: 1.6;
}
.offers-list .offers-row-meta .pill.inactive { background: #fef3c7; color: #92400e; }
.offers-list .offers-row-meta .pill.everflow { background: #dbeafe; color: #1e40af; font-weight: 600; }

/* Everflow source-value link beneath an editable input. Always visible
   when a source value exists — never hover-only — so operators on
   mobile/keyboard can see and click it. */
.ef-source {
  font-size: 11px;
  color: #6b7280;
  margin-top: 4px;
  line-height: 1.4;
}
.ef-source .ef-val { color: #374151; font-weight: 500; }
.ef-source .ef-use {
  color: #2563eb;
  text-decoration: underline;
  cursor: pointer;
}
.ef-source .ef-use:hover { color: #1d4ed8; }
.offers-list .offers-empty {
  cursor: default;
  color: #9ca3af;
  font-style: italic;
  font-size: 13px;
}

/* Right editor */
.offers-editor-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px 24px;
  overflow-y: auto;
  min-height: 0;
}
.offers-editor-empty {
  color: #9ca3af;
  font-style: italic;
  text-align: center;
  padding: 40px 0;
}
.offers-editor h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}
.offers-editor .offers-editor-sub {
  margin: 0 0 20px;
  font-size: 12px;
  color: #6b7280;
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.offers-editor .field {
  display: block;
  margin-bottom: 14px;
}
.offers-editor .field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.offers-editor .field .hint {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #6b7280;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 2px;
}
.offers-editor .field input[type="text"],
.offers-editor .field input[type="url"],
.offers-editor .field input[type="number"],
.offers-editor .field select,
.offers-editor .field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: #111827;
  background: #fff;
}
.offers-editor .field input:focus,
.offers-editor .field select:focus,
.offers-editor .field textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.offers-editor .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.offers-editor .field input[readonly] { background: #f3f4f6; color: #6b7280; }

.offers-editor .checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  margin-bottom: 14px;
}

.offers-editor .offers-editor-actions {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
.offers-editor .offers-editor-actions .left { display: flex; gap: 8px; }
.offers-editor .offers-editor-actions .right { display: flex; gap: 8px; }
.offers-editor .btn-danger {
  background: #fff;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.offers-editor .btn-danger:hover { background: #fef2f2; }

/* ZIP coverage panel */
.offers-zip-panel,
.offers-ci-panel {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}
.offers-zip-panel h4,
.offers-ci-panel h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.offers-ci-panel h4 .hint {
  font-size: 11px;
  font-weight: 400;
  color: #6b7280;
  margin-left: 6px;
}
.offers-zip-panel .zip-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 14px;
  font-size: 13px;
}
.offers-zip-panel .zip-stats .stat {
  display: flex;
  flex-direction: column;
}
.offers-zip-panel .zip-stats .stat .n { font-size: 22px; font-weight: 600; color: #111827; }
.offers-zip-panel .zip-stats .stat .l { font-size: 11px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.04em; }

.offers-zip-dropzone {
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.15s;
}
.offers-zip-dropzone:hover,
.offers-zip-dropzone.dragover {
  border-color: #3b82f6;
  background: #eff6ff;
}
.offers-zip-dropzone p { margin: 0; font-size: 13px; color: #6b7280; }
.offers-zip-dropzone p.primary { color: #111827; font-weight: 500; margin-bottom: 4px; }
.offers-zip-dropzone input[type="file"] { display: none; }

.offers-zip-sample {
  margin-top: 14px;
  font-size: 12px;
  color: #6b7280;
}
.offers-zip-sample .tag {
  display: inline-block;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 2px 6px;
  margin: 0 4px 4px 0;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: #374151;
}

/* Slots: member list with reorder */
.offers-editor .slot-members {
  margin-top: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}
.offers-editor .slot-members-header {
  background: #f9fafb;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.offers-editor .slot-member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #f3f4f6;
  background: #fff;
}
.offers-editor .slot-member-row:last-child { border-bottom: none; }
.offers-editor .slot-member-row .priority {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: #6b7280;
  width: 28px;
}
.offers-editor .slot-member-row .name {
  flex: 1;
  font-size: 13px;
  color: #111827;
}
.offers-editor .slot-member-row .controls { display: flex; gap: 4px; }
.offers-editor .slot-member-row button {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 11px;
  padding: 3px 8px;
  cursor: pointer;
  color: #4b5563;
}
.offers-editor .slot-member-row button:hover { background: #f9fafb; }
.offers-editor .slot-member-row button:disabled {
  opacity: 0.4; cursor: not-allowed;
}
.offers-editor .slot-member-empty {
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: #9ca3af;
  font-style: italic;
}
.offers-editor .slot-add-member {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}
.offers-editor .slot-add-member select {
  flex: 1;
}
.offers-editor .slot-add-member button {
  padding: 6px 12px;
  background: #1a2744;
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}
.offers-editor .slot-add-member button:hover { background: #0f1629; }

.offers-editor .slot-waterfall-preview {
  margin-top: 16px;
  padding: 12px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 12px;
  color: #4b5563;
}
.offers-editor .slot-waterfall-preview strong { color: #111827; }

/* migrate-068: Owner & Source panel — surfaces Everflow-side context
   (advertiser, internal AM, category, labels, destination, last seen)
   on every saved offer so an operator can verify ownership at a glance. */
.offers-owner-panel {
  margin: 8px 0 16px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  color: #1f2937;
}
.offers-owner-panel .row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px;
  padding: 4px 0;
  align-items: baseline;
  line-height: 1.45;
}
.offers-owner-panel .row + .row { border-top: 1px solid #f1f5f9; }
.offers-owner-panel .k {
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.offers-owner-panel .v { color: #111827; }
.offers-owner-panel .v a { color: #1d4ed8; text-decoration: none; }
.offers-owner-panel .v a:hover { text-decoration: underline; }
.offers-owner-panel .muted { color: #94a3b8; }
.offers-owner-panel .tag {
  display: inline-block;
  padding: 1px 8px;
  margin-right: 4px;
  background: #e0e7ff;
  color: #3730a3;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
}
.offers-owner-panel .badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  margin-left: 6px;
}
.offers-owner-panel .badge-status-active   { background: #d1fae5; color: #065f46; }
.offers-owner-panel .badge-status-inactive { background: #fee2e2; color: #991b1b; }
.offers-owner-panel .badge-status-pending  { background: #fef3c7; color: #92400e; }

/* Responsive */
@media (max-width: 900px) {
  .offers-grid {
    grid-template-columns: 1fr;
    /* On narrow screens the columns stack — let the page scroll
       naturally rather than two stacked viewport-height panes. */
    height: auto;
    overflow: visible;
  }
  .offers-editor .field-row { grid-template-columns: 1fr; }
  .offers-list-panel,
  .offers-editor-panel { overflow: visible; }
  .offers-owner-panel .row { grid-template-columns: 100px 1fr; }
}
@media (max-width: 600px) {
  .offers-grid { padding: 12px; gap: 12px; }
  .offers-editor .slot-member-row button { padding: 6px 10px; min-height: 36px; }
  .offers-list-panel { max-height: 40vh; overflow: hidden; }
}
