/* ==========================================================================
   SALMART — CREATE LISTING · STORY-STYLE COMPOSER
   Mobile-first base + desktop enhancements.
   Keeps every class referenced by scripts/ads.js intact.
   ========================================================================== */

:root {
  --ads-font: 'DM Sans', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ads-bg: #f8fafc;
  --ads-surface: #ffffff;
  --ads-surface-2: #f1f5f9;
  --ads-line: rgba(15, 23, 42, 0.08);
  --ads-brand: #10b981;
  --ads-brand-strong: #059669;
  --ads-brand-soft: rgba(16, 185, 129, 0.1);
  --ads-brand-soft-2: rgba(16, 185, 129, 0.2);
  --ads-text-1: #0f172a;
  --ads-text-2: #475569;
  --ads-text-3: #94a3b8;
  --ads-red: #ef4444;
  --ads-red-soft: rgba(239, 68, 68, 0.1);
  --ads-btn-text: #ffffff;
  --ads-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --ads-shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06);
  --ads-shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --ads-radius: 16px;
  --ads-radius-sm: 12px;
  --ads-radius-lg: 24px;

  --app-bg: #ffffff;
  --app-outer-bg: #eef2f7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ads-bg: #0b1220;
    --ads-surface: #151e2f;
    --ads-surface-2: #1e2a40;
    --ads-line: rgba(226, 232, 240, 0.08);
    --ads-brand: #34d399;
    --ads-brand-strong: #10b981;
    --ads-brand-soft: rgba(52, 211, 153, 0.12);
    --ads-brand-soft-2: rgba(52, 211, 153, 0.2);
    --ads-text-1: #f1f5f9;
    --ads-text-2: #cbd5e1;
    --ads-text-3: #64748b;
    --ads-red: #f87171;
    --ads-red-soft: rgba(248, 113, 113, 0.12);
    --ads-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --ads-shadow-md: 0 4px 14px rgba(0, 0, 0, 0.35);
    --ads-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);

    --app-bg: #0b1220;
    --app-outer-bg: #0b1220;
  }
}

/* ── Base reset ────────────────────────────────────────────────── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Root wrapper ─────────────────────────────────────────────── */
.ads-root {
  background: var(--ads-bg);
  font-family: var(--ads-font);
  color: var(--ads-text-1);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* ── Stage switching ───────────────────────────────────────────── */
.ads-details[hidden] {
  display: none !important;
}

/* ── Status topbar (WhatsApp "My status" style) ────────────────── */
.ads-story-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 12px;
  background: var(--ads-bg);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  width: 100%;
}

.ads-topbar-back {
  background: var(--ads-surface);
  border: 1px solid var(--ads-line);
  color: var(--ads-text-1);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s;
  padding: 0;
}
.ads-topbar-back:active { 
  transform: scale(0.92); 
  background: var(--ads-surface-2); 
}

.ads-story-identity {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ads-story-ring {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(var(--ads-brand) 0 240deg, var(--ads-line) 240deg 360deg);
}
.ads-story-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ads-surface);
  display: block;
  background: var(--ads-surface-2);
}
.ads-story-ring-badge {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ads-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ads-surface);
}
.ads-story-ring-badge svg { 
  width: 9px; 
  height: 9px; 
}

.ads-story-identity-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ads-story-display-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ads-story-privacy {
  font-size: 11px;
  font-weight: 600;
  color: var(--ads-text-3);
  display: flex;
  align-items: center;
  gap: 5px;
}
.ads-story-privacy-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ads-brand);
  flex-shrink: 0;
}

.ads-topbar-post {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--ads-brand), var(--ads-brand-strong));
  color: var(--ads-btn-text);
  border: none;
  font-family: var(--ads-font);
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 6px 16px var(--ads-brand-soft-2);
  transition: transform 0.12s, box-shadow 0.2s, opacity 0.2s;
}
.ads-topbar-post:active { 
  transform: scale(0.95); 
  box-shadow: 0 2px 8px var(--ads-brand-soft-2); 
}
.ads-topbar-post[disabled] { 
  opacity: 0.55; 
  pointer-events: none; 
}

/* ── Story canvas / media ──────────────────────────────────────── */
.ads-story-canvas {
  margin: 0 16px;
  width: calc(100% - 32px);
}

.ads-story-media {
  position: relative;
  border-radius: var(--ads-radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--ads-surface) 0%, var(--ads-surface-2) 100%);
  border: 1px solid var(--ads-line);
  box-shadow: var(--ads-shadow-md);
  min-height: 340px;
  max-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.ads-thumb-trigger {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}
.ads-thumb-trigger-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ads-text-2);
  text-align: center;
  padding: 20px;
}
.ads-thumb-trigger-icon {
  width: 68px;
  height: 68px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ads-brand-soft) 0%, var(--ads-surface-2) 100%);
  color: var(--ads-brand);
  box-shadow: 0 6px 18px var(--ads-brand-soft-2);
}
.ads-thumb-trigger-inner strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--ads-text-1);
}
.ads-thumb-trigger-inner span {
  font-size: 12.5px;
  color: var(--ads-text-3);
  font-weight: 500;
}

.ads-cover-img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 0;
}

.ads-thumb-change {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
  z-index: 3;
}

.ads-extra-thumbs {
  position: absolute;
  left: 10px;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 3;
  justify-content: flex-start;
  pointer-events: none;
}
.ads-extra-thumbs img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #fff;
}

.ads-media-error {
  margin-top: 10px;
  background: var(--ads-red);
  color: #fff;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  display: none;
}
.ads-media-error[style*="display: block"] { 
  display: block; 
}

.ads-media-hint {
  margin: 10px 2px 0;
  font-size: 11px;
  color: var(--ads-text-3);
}

/* ── Caption — story text on the photo ─────────────────────────── */
.ads-caption-section {
  margin-top: 14px;
  background: var(--ads-surface);
  border: 1px solid var(--ads-line);
  border-radius: var(--ads-radius);
  padding: 14px;
  box-shadow: var(--ads-shadow-sm);
  width: 100%;
}
.ads-caption-textarea {
  width: 100%;
  background: var(--ads-surface-2);
  border: 1px solid var(--ads-line);
  border-radius: var(--ads-radius-sm);
  color: var(--ads-text-1);
  font-family: var(--ads-font);
  font-size: 14.5px;
  line-height: 1.6;
  padding: 14px;
  resize: vertical;
  min-height: 88px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}
.ads-caption-textarea:focus { 
  border-color: var(--ads-brand); 
  box-shadow: 0 0 0 3px var(--ads-brand-soft); 
}
.ads-caption-textarea::placeholder { 
  color: var(--ads-text-3); 
}
.ads-caption-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  padding: 0 2px;
}
.ads-char-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--ads-text-3);
}

/* ── Story shortcut chips ──────────────────────────────────────── */
.ads-story-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  width: 100%;
}
.ads-story-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ads-surface);
  border: 1px solid var(--ads-line);
  border-radius: 100px;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--ads-text-2);
  cursor: pointer;
  transition: all 0.15s ease;
}
.ads-story-chip svg { 
  color: var(--ads-brand); 
}
.ads-story-chip:active {
  background: var(--ads-brand-soft);
  border-color: var(--ads-brand-soft-2);
  transform: scale(0.96);
}

/* ── Continue to details ───────────────────────────────────────── */
.ads-story-skip {
  margin: 18px 16px 0;
  padding-bottom: 28px;
  width: calc(100% - 32px);
}
.ads-story-continue {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ads-surface);
  border: 1.5px solid var(--ads-brand-soft-2);
  border-radius: 100px;
  padding: 15px 20px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ads-brand);
  cursor: pointer;
  box-shadow: var(--ads-shadow-sm);
  transition: transform 0.12s, background 0.15s;
}
.ads-story-continue:active {
  transform: scale(0.98);
  background: var(--ads-brand-soft);
}

/* ── Details stage ─────────────────────────────────────────────── */
.ads-details {
  padding: 16px;
  width: 100%;
}
.ads-details[hidden] { 
  display: none !important; 
}

/* Listing type segmented tabs */
.ads-type-selector { 
  padding: 0; 
  margin-bottom: 14px; 
  width: 100%;
}
.ads-type-tabs {
  display: flex;
  gap: 6px;
  background: var(--ads-surface);
  border: 1px solid var(--ads-line);
  border-radius: var(--ads-radius);
  padding: 5px;
  box-shadow: var(--ads-shadow-sm);
  width: 100%;
}
.ads-type-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: none;
  border: none;
  border-radius: calc(var(--ads-radius) - 5px);
  padding: 12px 6px;
  font-family: inherit;
  cursor: pointer;
  color: var(--ads-text-2);
  min-width: 0;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.ads-type-tab-icon { 
  width: 16px; 
  height: 16px; 
  flex-shrink: 0; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}
.ads-type-tab-icon svg { 
  width: 100%; 
  height: 100%; 
}
.ads-type-tab-label { 
  font-size: 12px; 
  font-weight: 700; 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; 
}
.ads-type-tab.ads-active {
  background: var(--ads-brand-soft);
  color: var(--ads-brand);
  box-shadow: inset 0 0 0 1px var(--ads-brand-soft-2);
}

/* Settings panels / field rows */
.ads-settings-panel {
  background: var(--ads-surface);
  border: 1px solid var(--ads-line);
  border-radius: var(--ads-radius-lg);
  padding: 4px 18px;
  margin-bottom: 14px;
  box-shadow: var(--ads-shadow-sm);
  width: 100%;
}

.ads-field-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--ads-line);
  background: none;
  border-left: none; 
  border-right: none; 
  border-top: none;
  width: 100%;
  text-align: left;
  cursor: default;
  font-family: inherit;
}
.ads-field-row:last-child { 
  border-bottom: none; 
}
.ads-field-row-icon {
  width: 20px; 
  height: 20px; 
  flex-shrink: 0;
  display: flex; 
  align-items: center; 
  justify-content: center;
  color: var(--ads-brand);
}
.ads-field-row-icon svg { 
  width: 100%; 
  height: 100%; 
}
.ads-field-row-icon--currency { 
  font-size: 16px; 
  font-weight: 800; 
}
.ads-field-row-input {
  flex: 1; 
  min-width: 0;
  background: none; 
  border: none; 
  outline: none;
  color: var(--ads-text-1);
  font-family: var(--ads-font);
  font-size: 14.5px;
  font-weight: 500;
  padding: 0;
}
.ads-field-row-input::placeholder { 
  color: var(--ads-text-3); 
}
.ads-field-row-value { 
  color: var(--ads-text-1); 
  cursor: pointer; 
}
.ads-field-row-select { 
  -webkit-appearance: none; 
  appearance: none; 
  cursor: pointer; 
}
.ads-field-row--tap { 
  cursor: pointer; 
}
.ads-chevron { 
  color: var(--ads-text-3); 
  flex-shrink: 0; 
}

/* Quantity stepper */
.ads-qty-inline {
  display: flex; 
  align-items: center; 
  gap: 2px; 
  flex-shrink: 0;
  background: var(--ads-surface-2);
  border-radius: 100px;
  padding: 3px;
}
.ads-qty-btn {
  background: none; 
  border: none; 
  color: var(--ads-brand);
  font-size: 18px; 
  font-weight: 800;
  width: 28px; 
  height: 28px; 
  cursor: pointer;
  display: flex; 
  align-items: center; 
  justify-content: center;
  border-radius: 50%;
  padding: 0;
}
.ads-qty-btn:active { 
  background: var(--ads-brand-soft); 
}
.ads-qty-input {
  width: 36px; 
  background: none; 
  border: none; 
  color: var(--ads-text-1);
  font-size: 13px; 
  font-weight: 700; 
  text-align: center; 
  outline: none;
  -moz-appearance: textfield; 
  font-family: inherit;
}
.ads-qty-input::-webkit-outer-spin-button,
.ads-qty-input::-webkit-inner-spin-button { 
  -webkit-appearance: none; 
}

.ads-earnings-hint {
  font-size: 11.5px; 
  font-weight: 600; 
  color: var(--ads-brand);
  min-height: 15px; 
  line-height: 1.5; 
  padding: 10px 2px 2px;
}

/* Service / digital photo tiles & previews */
.ads-media-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 120px;
  background: var(--ads-surface-2);
  border: 1.5px dashed var(--ads-text-3);
  border-radius: var(--ads-radius);
  color: var(--ads-text-2);
  cursor: pointer;
  font-family: inherit;
  padding: 14px;
  text-align: center;
  margin: 14px 0 0;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}
.ads-media-tile:active { 
  border-color: var(--ads-brand); 
  background: var(--ads-brand-soft); 
}
.ads-media-tile strong { 
  font-size: 13.5px; 
  font-weight: 700; 
  color: var(--ads-text-1); 
}
.ads-media-tile .ads-optional { 
  font-size: 11px; 
  color: var(--ads-text-3); 
  font-weight: 500; 
}
.ads-media-tile--wide {
  flex-direction: row;
  justify-content: flex-start;
  min-height: unset;
  padding: 16px 18px;
  gap: 12px;
  text-align: left;
}
.ads-service-photo-preview img {
  max-width: 100%; 
  max-height: 200px; 
  border-radius: var(--ads-radius);
  margin-top: 10px; 
  display: block;
}
.ads-digital-file-info {
  font-size: 12px; 
  font-weight: 600; 
  color: var(--ads-brand);
  margin-top: 10px; 
  padding: 10px 14px;
  background: var(--ads-brand-soft); 
  border-radius: 12px; 
  display: none;
}
.ads-digital-file-info:not(:empty) { 
  display: block; 
}

/* Location autocomplete */
.ads-location-autocomplete-wrapper { 
  position: relative; 
}
.ads-location-clear {
  background: none; 
  border: none; 
  color: var(--ads-text-3);
  font-size: 13px; 
  cursor: pointer; 
  padding: 4px; 
  flex-shrink: 0;
}
.ads-location-dropdown {
  position: absolute; 
  top: calc(100% + 4px); 
  left: 0; 
  right: 0;
  background: var(--ads-surface);
  border: 1px solid var(--ads-line);
  border-radius: var(--ads-radius);
  max-height: 230px; 
  overflow-y: auto; 
  z-index: 100;
  display: none; 
  box-shadow: var(--ads-shadow-lg);
  -webkit-overflow-scrolling: touch;
}
.ads-location-dropdown.ads-open { 
  display: block; 
}
.ads-location-dropdown-item {
  padding: 12px 16px; 
  font-size: 14px; 
  font-weight: 500; 
  color: var(--ads-text-1);
  cursor: pointer; 
  display: flex; 
  align-items: center; 
  gap: 9px;
  border-bottom: 1px solid var(--ads-line);
}
.ads-location-dropdown-item:last-child { 
  border-bottom: none; 
}
.ads-location-dropdown-item.ads-active,
.ads-location-dropdown-item:hover { 
  background: var(--ads-brand-soft); 
}
.ads-location-dropdown-item i { 
  color: var(--ads-brand); 
}
.ads-location-dropdown-item mark { 
  background: none; 
  color: var(--ads-brand); 
  font-weight: 700; 
}
.ads-nationwide-item { 
  color: var(--ads-brand); 
  font-weight: 700; 
}

/* Errors */
.ads-error {
  display: none;
  font-size: 11.5px;
  color: var(--ads-red);
  margin-top: 8px;
  padding: 7px 10px;
  background: var(--ads-red-soft);
  border-radius: 8px;
  font-weight: 600;
}
.ads-error[style*="display: block"] { 
  display: block; 
}

/* Trust strip */
.ads-trust-strip {
  display: flex; 
  align-items: center; 
  justify-content: center;
  flex-wrap: wrap; 
  gap: 8px; 
  margin: 14px 0 0; 
  padding: 0 4px;
  width: 100%;
}
.ads-trust-item {
  display: inline-flex; 
  align-items: center; 
  gap: 5px;
  font-size: 10px; 
  font-weight: 800; 
  color: var(--ads-text-3);
  text-transform: uppercase; 
  letter-spacing: 0.4px; 
  white-space: nowrap;
}
.ads-trust-item svg { 
  flex-shrink: 0; 
  color: var(--ads-brand); 
}
.ads-trust-dot { 
  color: var(--ads-text-3); 
  font-size: 10px; 
}

/* Bottom sheets & overlay */
#ads-sheet-overlay {
  position: fixed; 
  inset: 0; 
  background: rgba(2, 6, 23, 0.55);
  z-index: 9000; 
  opacity: 0; 
  pointer-events: none; 
  visibility: hidden; 
  display: none;
  transition: opacity 0.2s, visibility 0s linear 0.2s;
  backdrop-filter: blur(4px); 
  -webkit-backdrop-filter: blur(4px);
}
#ads-sheet-overlay.ads-sheet-overlay-visible {
  display: block; 
  visibility: visible; 
  opacity: 1; 
  pointer-events: all;
  transition: opacity 0.2s, visibility 0s;
}
.ads-bottom-sheet {
  position: fixed; 
  bottom: 0; 
  left: 0; 
  right: 0;
  background: var(--ads-surface);
  border-radius: 26px 26px 0 0;
  z-index: 9001;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  visibility: hidden; 
  pointer-events: none;
  max-height: 82vh; 
  overflow-y: auto;
  padding: 0 0 16px;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 -10px 40px rgba(2, 6, 23, 0.2);
  width: 100%;
}
.ads-bottom-sheet.ads-sheet-open { 
  transform: translateY(0); 
  visibility: visible; 
  pointer-events: auto; 
}
.ads-sheet-handle { 
  width: 42px; 
  height: 5px; 
  background: var(--ads-text-3); 
  opacity: 0.4; 
  border-radius: 3px; 
  margin: 12px auto 6px; 
}
.ads-sheet-title { 
  font-size: 16px; 
  font-weight: 800; 
  color: var(--ads-text-1); 
  padding: 10px 20px 14px; 
  border-bottom: 1px solid var(--ads-line); 
  margin: 0; 
}
.ads-sheet-options { 
  padding: 8px 0; 
}
.ads-sheet-options--grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  padding: 14px 16px; 
  gap: 10px; 
}
.ads-sheet-option {
  display: flex; 
  align-items: center; 
  gap: 14px; 
  padding: 14px 20px;
  cursor: pointer; 
  border-radius: 0; 
  background: none; 
  border: none;
  width: 100%; 
  text-align: left; 
  font-family: inherit; 
  color: var(--ads-text-1);
}
.ads-sheet-options--grid .ads-sheet-option {
  flex-direction: column; 
  align-items: center; 
  padding: 16px 10px;
  background: var(--ads-surface-2); 
  border-radius: var(--ads-radius);
  gap: 8px; 
  position: relative;
}
.ads-sheet-option:active, 
.ads-sheet-option:hover { 
  background: var(--ads-brand-soft); 
}
.ads-sheet-options--grid .ads-sheet-option:active,
.ads-sheet-options--grid .ads-sheet-option:hover { 
  background: var(--ads-brand-soft); 
}
.ads-sheet-option-icon { 
  width: 22px; 
  height: 22px; 
  flex-shrink: 0; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: var(--ads-brand); 
}
.ads-sheet-option-icon svg { 
  width: 100%; 
  height: 100%; 
}
.ads-sheet-options--grid .ads-sheet-option-icon { 
  width: 28px; 
  height: 28px; 
}
.ads-sheet-option > div strong { 
  display: block; 
  font-size: 14px; 
  font-weight: 700; 
  color: var(--ads-text-1); 
  margin-bottom: 2px; 
}
.ads-sheet-option > div span { 
  font-size: 12px; 
  color: var(--ads-text-2); 
}
.ads-sheet-options--grid .ads-sheet-option strong { 
  font-size: 12px; 
  font-weight: 700; 
  color: var(--ads-text-1); 
  text-align: center; 
}
.ads-sheet-check { 
  margin-left: auto; 
  color: var(--ads-brand); 
  opacity: 0; 
  flex-shrink: 0; 
  transition: opacity 0.15s; 
}
.ads-sheet-options--grid .ads-sheet-check { 
  position: absolute; 
  top: 8px; 
  right: 10px; 
  margin-left: 0; 
}

/* Loading modal */
#ads-loading-modal {
  position: fixed; 
  inset: 0; 
  z-index: 9100; 
  display: none;
  visibility: hidden; 
  opacity: 0; 
  pointer-events: none;
  align-items: center; 
  justify-content: center; 
  flex-direction: column; 
  gap: 14px;
  background: var(--ads-surface); 
  backdrop-filter: blur(6px); 
  -webkit-backdrop-filter: blur(6px);
}
.ads-loading-inner { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 14px; 
  color: var(--ads-text-1); 
  font-size: 14px; 
  font-weight: 600; 
}
.ads-spinner {
  width: 26px; 
  height: 26px;
  border: 3px solid var(--ads-line);
  border-top-color: var(--ads-brand);
  border-radius: 50%;
  animation: ads-spin 0.8s linear infinite;
}
@keyframes ads-spin { 
  to { 
    transform: rotate(360deg); 
  } 
}

/* Toast */
#ads-toast {
  position: fixed; 
  bottom: 24px; 
  left: 16px; 
  right: 16px;
  max-width: 560px; 
  margin: 0 auto;
  padding: 14px; 
  border-radius: 14px; 
  font-size: 14px; 
  font-weight: 600; 
  color: #fff;
  text-align: center; 
  z-index: 9050; 
  box-shadow: var(--ads-shadow-lg);
  display: none; 
  font-family: var(--ads-font);
}

/* ==========================================================================
   DESKTOP — story stays a centered phone-style column, details sits beside
   ========================================================================== */

@media (min-width: 768px) {
  /* ── Two-column layout: story editor | details form ── */
  .ads-root {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    max-width: 1320px;
    margin: 0 auto;
    padding: 28px 48px 64px;
    background: linear-gradient(135deg, var(--ads-bg) 0%, var(--ads-surface-2) 100%);
  }

  /* Both stages visible side-by-side on large screens */
  .ads-story[hidden],
  .ads-details[hidden] {
    display: block !important;
  }

  .ads-story-topbar {
    position: static;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 0 0 16px;
    background: transparent;
    backdrop-filter: none;
  }
  .ads-topbar-back { 
    width: 44px; 
    height: 44px; 
    border-radius: 14px; 
  }
  .ads-topbar-post { 
    padding: 12px 24px; 
    font-size: 14px; 
    border-radius: 14px; 
  }
  .ads-topbar-post:hover { 
    transform: translateY(-1px); 
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25); 
  }

  .ads-story-canvas {
    margin: 0;
    width: 100%;
  }
  .ads-story-media,
  .ads-cover-img {
    min-height: 340px;
    max-height: 60vh;
  }
  .ads-story-skip {
    margin: 20px 0 0;
    padding-bottom: 0;
    width: 100%;
  }
  .ads-story-continue {
    padding: 16px 24px;
    font-size: 15px;
  }

  .ads-details {
    padding: 4px 0 0;
    width: 100%;
  }
}

@media (min-width: 1200px) {
  .ads-root {
    gap: 56px;
    padding-left: 72px;
    padding-right: 72px;
  }
}