/**
 * Marketplace quick post wizard — /publicar-rapido/ — v3
 */

/* ── Page-level overrides ── */
html:has(.sd-mpost) body { background: var(--sd-surface-alt, #f8faf8); }
body:has(.sd-mpost) .entry-header,
body:has(.sd-mpost) .page-title,
body:has(.sd-mpost) .hero-section { display: none !important; }
html:has(.sd-mpost) .ct-container-full[data-vertical-spacing] { --theme-content-vertical-spacing: 0px; padding-block: 0; }

/* ── Token root ── */
.sd-mpost {
    --sd-accent: #00D150;
    --sd-accent-strong: #00bf4a;
    --sd-accent-soft: #eef9f1;
    --sd-accent-border: rgba(0, 209, 80, 0.24);
    --sd-ink: #111;
    --sd-muted: #657065;
    --sd-muted-strong: #445244;
    --sd-muted-soft: #7d887d;
    --sd-surface: #fff;
    --sd-surface-alt: #f8faf8;
    --sd-surface-soft: #f2f5f2;
    --sd-border: rgba(15, 23, 15, 0.08);
    --sd-border-soft: rgba(0, 0, 0, 0.05);
    --sd-shadow-card: 0 14px 28px rgba(20, 29, 20, 0.06);
    --sd-shadow-panel: 0 12px 24px rgba(20, 29, 20, 0.05);
    --sd-radius-sm: 14px;
    --sd-radius-md: 18px;
    --sd-radius-lg: 22px;
    --sd-radius-pill: 999px;
    --wiz-dot-size: 28px;
    display: block !important;
    max-width: 1080px;
    margin: 0 auto;
    color: var(--sd-ink);
}

.sd-mpost *, .sd-mpost *::before, .sd-mpost *::after { box-sizing: border-box; }

/* ── Login gate ── */
.sd-mwiz-gate { max-width: 400px; margin: 48px auto; padding: 32px 28px; text-align: center; background: var(--sd-surface); border: 1px solid var(--sd-border); border-radius: var(--sd-radius-lg); box-shadow: var(--sd-shadow-card); }
.sd-mwiz-gate a { color: var(--sd-accent-strong); font-weight: 700; text-decoration: none; }

/* ── Layout shell ── */
.sd-mpost__layout { min-height: 100dvh; display: flex; flex-direction: column; padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
.sd-mpost.is-screen-done .sd-mpost__layout { padding-bottom: 40px; }

/* ── Top bar ── */
.sd-mpost__topbar { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--sd-surface); border-bottom: 1px solid var(--sd-border); position: sticky; top: 0; z-index: 40; }
.sd-mpost__back { display: inline-flex; align-items: center; gap: 5px; color: var(--sd-muted); font-size: 13px; font-weight: 680; text-decoration: none; flex-shrink: 0; white-space: nowrap; transition: color .18s; border: 0; background: transparent; cursor: pointer; font-family: inherit; }
.sd-mpost__back:hover { color: var(--sd-ink); }

/* Steps */
.sd-mpost__steps { display: flex; align-items: center; flex: 1; justify-content: center; gap: 0; overflow-x: auto; scrollbar-width: none; }
.sd-mpost__steps::-webkit-scrollbar { display: none; }
.sd-mpost__step { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; }
.sd-mpost__step i { display: flex; align-items: center; justify-content: center; width: var(--wiz-dot-size); height: var(--wiz-dot-size); border-radius: 999px; border: 2px solid rgba(17,24,39,.13); background: var(--sd-surface); color: var(--sd-muted); font-size: 11px; font-weight: 780; font-style: normal; transition: background .22s, border-color .22s, color .22s, box-shadow .22s; }
.sd-mpost__step-label { display: none; font-size: 10px; font-weight: 720; color: var(--sd-muted); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.sd-mpost__step.is-active .sd-mpost__step-label { color: var(--sd-accent-strong); font-weight: 820; }
.sd-mpost__step.is-active i { background: #fff; border-color: var(--sd-accent); color: var(--sd-accent-strong); box-shadow: 0 0 0 4px var(--sd-accent-soft); }
.sd-mpost__step.is-done i { background: var(--sd-accent); border-color: var(--sd-accent); color: #fff; font-size: 0; }
.sd-mpost__step.is-done i::before { content: "✓"; font-size: 12px; }
.sd-mpost__step-line { flex: 1; min-width: 14px; height: 2px; background: rgba(17,24,39,.09); margin-bottom: 15px; transition: background .25s; }
.sd-mpost__step-line.is-done { background: var(--sd-accent); }

/* ── Alert ── */
.sd-mpost__alert { margin: 12px 16px 0; padding: 11px 14px; border-radius: var(--sd-radius-sm); background: #fff8e8; border: 1px solid rgba(180,120,20,.22); color: #7b5a10; font-size: 13px; font-weight: 660; line-height: 1.4; }

/* ── Main content area ── */
.sd-mpost__main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 0; }

/* ── Form sections (cardless) ── */
.sd-mpost__form-section { padding: 18px 0; border-bottom: 1px solid var(--sd-border); }
.sd-mpost__form-section:last-child { border-bottom: none; }
.sd-mpost__form-section--full { padding-bottom: 24px; }
.sd-mpost__section-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sd-muted); margin-bottom: 10px; }

/* ── Review cards (keep card style) ── */
.sd-mpost__block { background: var(--sd-surface); border: 1px solid var(--sd-border); border-radius: var(--sd-radius-lg); padding: 20px; box-shadow: var(--sd-shadow-card); }
.sd-mpost__block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--sd-border); }
.sd-mpost__block-head h2 { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--sd-muted-strong); }
.sd-mpost__block-head span { font-size: 12px; font-weight: 700; color: var(--sd-muted); }
.sd-mpost__hint { margin: 8px 0 0; font-size: 12px; color: var(--sd-muted); line-height: 1.45; }
.sd-mpost__label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; color: var(--sd-muted); }

/* ── Photo block ── */
.sd-mpost__block--photos { background: transparent; border: none; box-shadow: none; padding: 18px 0 0; border-bottom: 1px solid var(--sd-border); margin-bottom: 0; border-radius: 0; }

/* Full-width drop zone (empty state) */
.sd-mpost__dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 180px;
    padding: 32px 20px;
    border: 2px dashed var(--sd-accent-border);
    border-radius: var(--sd-radius-lg);
    background: var(--sd-accent-soft);
    color: var(--sd-accent-strong);
    cursor: pointer;
    text-align: center;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.sd-mpost__dropzone:hover,
.sd-mpost__dropzone.is-dragging {
    border-color: var(--sd-accent);
    box-shadow: 0 0 0 4px var(--sd-accent-soft);
    background: #e8f9f0;
}
.sd-mpost__dropzone svg { opacity: .7; transition: opacity .18s; }
.sd-mpost__dropzone:hover svg, .sd-mpost__dropzone.is-dragging svg { opacity: 1; }
.sd-mpost__dropzone strong { font-size: 16px; font-weight: 780; color: var(--sd-muted-strong); }
.sd-mpost__dropzone span { font-size: 13px; color: var(--sd-muted); }

/* Photo rail */
.sd-mpost__photo-rail { margin: 0 -4px; overflow: hidden; }
.sd-mpost__photo-rail.is-dragging { outline: 2.5px solid var(--sd-accent); outline-offset: 4px; border-radius: var(--sd-radius-md); }
.sd-mpost__photo-track { display: flex; gap: 10px; overflow-x: auto; padding: 4px 4px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.sd-mpost__thumb { flex: 0 0 112px; width: 112px; height: 112px; border-radius: var(--sd-radius-md); overflow: hidden; position: relative; scroll-snap-align: start; background: var(--sd-surface-alt); border: 1px solid var(--sd-border); }
.sd-mpost__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-mpost__thumb--ph { border-style: dashed; background: var(--sd-surface-soft); }
.sd-mpost__thumb--add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2px dashed var(--sd-accent-border); background: var(--sd-accent-soft); color: var(--sd-accent-strong); cursor: pointer; transition: border-color .18s, box-shadow .18s; }
.sd-mpost__thumb--add:hover { border-color: var(--sd-accent); box-shadow: 0 0 0 4px var(--sd-accent-soft); }
.sd-mpost__thumb--add svg { width: 24px; height: 24px; opacity: .8; }
.sd-mpost__thumb--add span { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }

/* Loading placeholder thumb */
.sd-mpost__thumb--loading { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--sd-surface-soft) 0%, var(--sd-surface-alt) 100%); border-style: dashed; }
.sd-mpost__thumb-spin { width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid var(--sd-accent-soft); border-top-color: var(--sd-accent); animation: sd-mpost-spin .75s linear infinite; }

.sd-mpost__thumb-x { position: absolute; top: 6px; right: 6px; z-index: 2; width: 26px; height: 26px; border: 1px solid rgba(255,255,255,.72); border-radius: 999px; background: rgba(17,24,39,.78); color: #fff; font-size: 16px; font-weight: 800; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.sd-mpost__thumb-x:hover { background: #dc2626; }
.sd-mpost__file { display: none !important; }

/* ── Form inputs (unified style) ── */
.sd-mpost__input, .sd-mpost__select, .sd-mpost__textarea { width: 100%; border: 1.5px solid var(--sd-border); border-radius: var(--sd-radius-sm); background: #fff; color: var(--sd-ink); font-size: 15px; font-weight: 600; font-family: inherit; outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.sd-mpost__input, .sd-mpost__select { min-height: 48px; padding: 0 14px; }
.sd-mpost__input--lg { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.sd-mpost__input:focus, .sd-mpost__select:focus, .sd-mpost__textarea:focus { border-color: var(--sd-accent); box-shadow: 0 0 0 3px var(--sd-accent-soft); }
.sd-mpost__textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; min-height: 110px; }
.sd-mpost__textarea--tall { min-height: 200px; }

/* Input with icon (vehicle / price / km) */
.sd-mpost__input-icon { display: flex; align-items: center; gap: 10px; padding: 0 12px; min-height: 48px; border: 1.5px solid var(--sd-border); border-radius: var(--sd-radius-sm); background: #fff; transition: border-color .15s, box-shadow .15s; }
.sd-mpost__input-icon:focus-within { border-color: var(--sd-accent); box-shadow: 0 0 0 3px var(--sd-accent-soft); }
.sd-mpost__input-icon svg { flex-shrink: 0; color: var(--sd-muted); }
.sd-mpost__input-icon .sd-mpost__input { border: 0; box-shadow: none !important; background: transparent; padding: 0; min-height: auto; border-radius: 0; }
.sd-mpost__input-addon { padding: 0 12px; font-size: 13px; font-weight: 700; color: var(--sd-muted); border-left: 1.5px solid var(--sd-border); display: flex; align-items: center; flex-shrink: 0; background: var(--sd-surface-alt); align-self: stretch; }
.sd-mpost__link { flex-shrink: 0; border: 0; background: transparent; color: var(--sd-accent-strong); font-size: 12px; font-weight: 800; cursor: pointer; font-family: inherit; white-space: nowrap; }

/* ── Vehicle autocomplete ── */
.sd-mpost__vehicle { position: relative; }

.sd-mpost__suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 300; max-height: 300px; overflow: auto; padding: 8px; background: #fff; border: 1px solid var(--sd-border); border-radius: var(--sd-radius-md); box-shadow: 0 20px 46px rgba(20,29,20,.14); animation: sd-mpost-fadein .12s ease; }
@keyframes sd-mpost-fadein { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.sd-mpost__suggest-item { display: flex; flex-direction: column; gap: 1px; width: 100%; border: 0; border-radius: var(--sd-radius-sm); padding: 10px 12px; background: transparent; text-align: left; cursor: pointer; font-family: inherit; color: var(--sd-ink); transition: background .12s, color .12s; }
.sd-mpost__suggest-item:hover { background: var(--sd-accent-soft); }
.sd-mpost__suggest-make { font-size: 13px; font-weight: 800; color: var(--sd-muted-strong); line-height: 1.2; }
.sd-mpost__suggest-model { font-size: 14px; font-weight: 650; color: var(--sd-ink); line-height: 1.2; }
.sd-mpost__suggest-path { font-size: 11px; font-weight: 650; color: var(--sd-muted); line-height: 1.3; }
.sd-mpost__suggest-item:hover .sd-mpost__suggest-make { color: var(--sd-accent-strong); }

/* Highlighted match characters */
.sd-mpost__mark { background: none; color: var(--sd-accent-strong); font-weight: 900; }

/* ── Year selector (compact 3-col inside suggest dropdown) ── */
.sd-mpost__years-label { padding: 6px 12px 8px; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--sd-muted); }
.sd-mpost__years { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sd-mpost__years--compact { grid-template-columns: repeat(3, 1fr); max-height: 220px; overflow-y: auto; padding: 2px; scrollbar-width: thin; }
.sd-mpost__year-btn,
.sd-mpost__years button { min-height: 44px; border: 1.5px solid var(--sd-border); border-radius: var(--sd-radius-sm); background: var(--sd-surface-alt); color: var(--sd-ink); font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; transition: border-color .15s, background .15s, color .15s; }
.sd-mpost__year-btn:hover,
.sd-mpost__years button:hover { border-color: var(--sd-accent-border); background: var(--sd-accent-soft); color: var(--sd-accent-strong); }
.sd-mpost__year-btn.is-selected,
.sd-mpost__years button.is-selected { background: var(--sd-accent); border-color: var(--sd-accent); color: #fff; }

/* ── Negociable inline checkbox ── */
.sd-mpost__neg-label { display: flex; align-items: center; gap: 7px; padding: 0 14px; border-left: 1.5px solid var(--sd-border); flex-shrink: 0; cursor: pointer; align-self: stretch; }
.sd-mpost__neg-check { width: 15px; height: 15px; cursor: pointer; accent-color: var(--sd-accent); flex-shrink: 0; }
.sd-mpost__neg-text { font-size: 13px; font-weight: 700; color: var(--sd-muted); text-decoration: line-through; transition: color .15s, text-decoration .15s; user-select: none; white-space: nowrap; }
.sd-mpost__neg-check:checked ~ .sd-mpost__neg-text,
.sd-mpost__neg-text.is-neg { text-decoration: none; color: var(--sd-accent-strong); }

/* ── Color swatches (summary + edit chips) ── */
.sd-mpost__color-item { display: inline-flex; align-items: center; gap: 6px; }
.sd-mpost__color-dot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.12); flex-shrink: 0; display: inline-block; vertical-align: middle; }
.sd-mpost__chip-swatch { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.10); flex-shrink: 0; display: inline-block; }

/* ── Summary palabras del vendedor ── */
.sd-mpost__summary-desc { margin: 0; font-size: 14px; color: var(--sd-muted-strong); line-height: 1.6; white-space: pre-line; }

/* ── Summary checkmark list (puntos + fallas) ── */
.sd-mpost__check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.sd-mpost__check-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 9px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--sd-border-soft); color: var(--sd-ink); font-size: 14px; font-weight: 600; line-height: 1.45; }
.sd-mpost__check-list li:last-child { border-bottom: none; }
.sd-mpost__check-list li::before { content: '✓'; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--sd-accent-soft); color: var(--sd-accent-strong); font-size: 12px; font-weight: 900; line-height: 1; flex-shrink: 0; margin-top: 1px; }
.sd-mpost__check-list--warn li::before { content: '!'; background: #fff3e0; color: #c76b00; }

/* ── Edit chips: icon ── */
.sd-mpost__chip-icon { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; filter: brightness(0) saturate(100%) invert(31%) sepia(12%) saturate(560%) hue-rotate(77deg) brightness(90%) contrast(88%); }
.sd-mpost__badge-chip.is-on .sd-mpost__chip-icon { filter: brightness(0) saturate(100%) invert(45%) sepia(88%) saturate(1315%) hue-rotate(102deg) brightness(95%) contrast(91%); }

@keyframes sd-mpost-spin { to { transform: rotate(360deg); } }

/* ── Analyzing ── */
.sd-mpost__analyzing { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; padding: 56px 20px; background: var(--sd-surface); border-radius: var(--sd-radius-lg); border: 1px solid var(--sd-border); box-shadow: var(--sd-shadow-card); }
.sd-mpost__spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--sd-accent-soft); border-top-color: var(--sd-accent); animation: sd-mpost-spin .75s linear infinite; flex-shrink: 0; }
.sd-mpost__analyzing h2 { margin: 0; font-size: 22px; font-weight: 850; letter-spacing: -0.02em; }
.sd-mpost__analyzing p { margin: 0; max-width: 320px; font-size: 14px; color: var(--sd-muted); line-height: 1.55; }

/* ── Done ── */
.sd-mpost__done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 48px 24px; background: var(--sd-surface); border-radius: var(--sd-radius-lg); border: 1px solid var(--sd-border); box-shadow: var(--sd-shadow-card); }
.sd-mpost__done-icon { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--sd-accent-soft); color: var(--sd-accent-strong); font-size: 28px; font-weight: 900; box-shadow: 0 0 0 8px rgba(0,209,80,.10); }
.sd-mpost__done h2 { margin: 0; font-size: 28px; font-weight: 850; letter-spacing: -0.03em; }
.sd-mpost__done p { margin: 0; color: var(--sd-muted); font-size: 14px; line-height: 1.55; max-width: 320px; }
.sd-mpost__done .sd-mpost__btn { width: 100%; max-width: 320px; flex: none; }

/* ── Review screen layout ── */
.sd-mpost__grid--review { display: flex; flex-direction: column; gap: 14px; }

/* Horizontal preview card */
.sd-mpost__preview-horiz { display: flex; align-items: stretch; gap: 0; border: 1px solid var(--sd-border); border-radius: var(--sd-radius-lg); overflow: hidden; background: var(--sd-surface); box-shadow: var(--sd-shadow-card); }
.sd-mpost__preview-horiz__img { flex: 0 0 130px; width: 130px; background: var(--sd-surface-soft); overflow: hidden; }
.sd-mpost__preview-horiz__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-mpost__preview-horiz__img--empty { display: flex; align-items: center; justify-content: center; color: var(--sd-muted); }
.sd-mpost__preview-horiz__body { flex: 1; min-width: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.sd-mpost__preview-horiz__price-row { display: flex; align-items: center; gap: 8px; }
.sd-mpost__preview-horiz__price { font-size: 22px; font-weight: 900; letter-spacing: -0.04em; color: var(--sd-ink); line-height: 1; }
.sd-mpost__preview-horiz__pt { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--sd-radius-pill); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.sd-mpost__preview-horiz__pt--negotiable { background: var(--sd-accent-soft); color: #12763a; }
.sd-mpost__preview-horiz__pt--firm { background: var(--sd-surface-soft); color: var(--sd-muted-strong); }
.sd-mpost__preview-horiz__title { margin: 0; font-size: 15px; font-weight: 800; color: var(--sd-ink); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-mpost__preview-horiz__badges { display: flex; flex-wrap: wrap; gap: 5px; }
.sd-mpost__preview-horiz__badge { padding: 4px 8px; border-radius: var(--sd-radius-pill); background: var(--sd-surface-soft); border: 1px solid var(--sd-border); font-size: 11px; font-weight: 700; color: var(--sd-muted-strong); }

/* Summary card 2-col spec grid */
.sd-mpost__spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--sd-border); border-radius: var(--sd-radius-md); overflow: hidden; margin-bottom: 16px; }
.sd-mpost__spec-item { padding: 10px 14px; background: #fff; display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--sd-border-soft); border-right: 1px solid var(--sd-border-soft); }
.sd-mpost__spec-item:nth-child(even) { border-right: none; }
.sd-mpost__spec-item:nth-last-child(-n+2) { border-bottom: none; }
.sd-mpost__spec-item.is-empty { background: rgba(255,248,232,.6); }
.sd-mpost__spec-label { font-size: 10px; font-weight: 780; letter-spacing: .07em; text-transform: uppercase; color: var(--sd-muted-soft); }
.sd-mpost__spec-value { font-size: 14px; font-weight: 750; color: var(--sd-ink); }
.sd-mpost__spec-item.is-empty .sd-mpost__spec-value { color: #b45309; font-weight: 700; font-size: 13px; }

/* Summary sections (seller remarks, highlights, advanced) */
.sd-mpost__summary-section { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--sd-border); }
.sd-mpost__summary-section-title { margin: 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--sd-muted-strong); }
.sd-mpost__summary-section--accordion { padding-top: 12px; margin-top: 12px; }

/* Summary status */
.sd-mpost__summary-status { margin: 0 0 14px; font-size: 13px; font-weight: 700; }
.sd-mpost__summary-status.is-ok  { color: #12763a; }
.sd-mpost__summary-status.is-warn { color: #b45309; }

/* Edit button */
.sd-mpost__edit-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--sd-border); border-radius: var(--sd-radius-pill); background: var(--sd-surface); color: var(--sd-ink); font-size: 12px; font-weight: 800; cursor: pointer; font-family: inherit; transition: border-color .15s, background .15s, color .15s; }
.sd-mpost__edit-btn:hover { border-color: var(--sd-accent-border); background: var(--sd-accent-soft); color: var(--sd-accent-strong); }

/* ── Accordion ── */
.sd-mpost__accordion-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0; border: 0; background: transparent; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sd-muted-strong); cursor: pointer; font-family: inherit; }
.sd-mpost__accordion-btn svg { width: 18px; height: 18px; color: var(--sd-muted); transition: transform .2s; flex-shrink: 0; }
.sd-mpost__accordion-btn svg.is-open { transform: rotate(180deg); }
.sd-mpost__accordion-body { margin-top: 14px; }
.sd-mpost__tag-block h3 { margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--sd-muted); }
.sd-mpost__tag-block + .sd-mpost__tag-block { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--sd-border-soft); }
.sd-mpost__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sd-mpost__tags span { padding: 5px 10px; border-radius: var(--sd-radius-pill); background: var(--sd-surface-soft); border: 1px solid var(--sd-border); font-size: 12px; font-weight: 700; color: var(--sd-muted-strong); }

/* ── Edit screen ── */
.sd-mpost__edit-head { margin-bottom: 20px; }
.sd-mpost__text-back { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 12px; padding: 0; border: 0; background: transparent; color: var(--sd-muted); font-size: 13px; font-weight: 680; cursor: pointer; font-family: inherit; transition: color .18s; }
.sd-mpost__text-back:hover { color: var(--sd-ink); }
.sd-mpost__edit-head h2 { margin: 0 0 6px; font-size: 24px; font-weight: 850; letter-spacing: -0.03em; }
.sd-mpost__edit-head p { margin: 0; font-size: 14px; color: var(--sd-muted); line-height: 1.4; }
.sd-mpost__edit-form { display: grid; gap: 12px; }
.sd-mpost__edit-field { padding: 16px; background: var(--sd-surface); border: 1px solid var(--sd-border); border-radius: var(--sd-radius-md); box-shadow: var(--sd-shadow-panel); }

/* Chips */
.sd-mpost__chip-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.sd-mpost__color-chip, .sd-mpost__badge-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--sd-border); border-radius: var(--sd-radius-pill); background: var(--sd-surface-alt); font-size: 12px; font-weight: 700; font-family: inherit; color: var(--sd-muted-strong); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.sd-mpost__color-chip i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.10); flex-shrink: 0; }
.sd-mpost__color-chip.is-on, .sd-mpost__badge-chip.is-on { border-color: var(--sd-accent-border); background: var(--sd-accent-soft); color: var(--sd-accent-strong); }

/* Highlights */
.sd-mpost__highlights { display: grid; gap: 8px; }
.sd-mpost__highlight-row { display: flex; align-items: stretch; border: 1.5px solid var(--sd-border); border-radius: var(--sd-radius-sm); background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.sd-mpost__highlight-row:focus-within { border-color: var(--sd-accent); box-shadow: 0 0 0 3px var(--sd-accent-soft); }
.sd-mpost__highlight-row .sd-mpost__input { border: 0; box-shadow: none !important; background: transparent; border-radius: 0; flex: 1; }
.sd-mpost__highlight-row button { width: 44px; border: 0; border-left: 1.5px solid var(--sd-border); border-radius: 0; background: var(--sd-surface-alt); color: var(--sd-muted); font-size: 18px; cursor: pointer; font-family: inherit; transition: background .12s, color .12s; flex-shrink: 0; }
.sd-mpost__highlight-row button:hover { background: #fee2e2; color: #dc2626; }
.sd-mpost__highlight-add { display: flex; align-items: center; gap: 8px; }
.sd-mpost__highlight-add .sd-mpost__input { flex: 1; }
.sd-mpost__highlight-add .sd-mpost__link { flex-shrink: 0; font-size: 13px; padding: 4px 8px; }

/* ── Dock / CTA bar ── */
.sd-mpost__dock { position: fixed; left: 12px; right: 12px; bottom: 10px; z-index: 50; padding: 8px; background: rgba(247,249,247,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(17,24,39,.09); border-radius: var(--sd-radius-pill); box-shadow: 0 8px 24px rgba(20,29,20,.12); }
.sd-mpost__dock-hint { display: none; margin: 0 auto 6px; max-width: 520px; text-align: center; font-size: 11px; font-weight: 700; color: var(--sd-muted); }
.sd-mpost__dock-inner { display: flex; align-items: center; gap: 8px; max-width: 760px; margin: 0 auto; }
.sd-mpost__btn { display: inline-flex; align-items: center; justify-content: center; flex: 1; min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--sd-radius-pill); font-size: 15px; font-weight: 820; font-family: inherit; text-decoration: none; cursor: pointer; transition: background .18s, border-color .18s, transform .15s, opacity .15s; }
.sd-mpost__btn--primary { background: var(--sd-accent); color: #fff; border-color: var(--sd-accent); }
.sd-mpost__btn--primary:hover:not(:disabled) { background: var(--sd-accent-strong); border-color: var(--sd-accent-strong); }
.sd-mpost__btn--primary:disabled { opacity: 0.45; cursor: not-allowed; }
.sd-mpost__btn--ghost { flex: none; min-width: 100px; background: var(--sd-surface); border-color: rgba(17,24,39,.12); color: var(--sd-muted-strong); font-size: 14px; }
.sd-mpost__btn--ghost:hover:not(:disabled) { border-color: var(--sd-accent-border); color: var(--sd-ink); }

/* ──────────────────────────────────────────────
   Desktop sidebar layout (≥ 960px)
   ────────────────────────────────────────────── */
@media (min-width: 960px) {
    .sd-mpost { padding: 24px 0 0; }

    .sd-mpost__layout {
        display: grid;
        grid-template-columns: 210px minmax(0, 760px);
        column-gap: 24px;
        justify-content: center;
        align-items: start;
        min-height: auto;
        padding-bottom: 0;
    }

    .sd-mpost.is-screen-done .sd-mpost__layout { padding-bottom: 0; }

    /* Topbar → sticky sidebar */
    .sd-mpost__topbar { grid-column: 1; grid-row: 1 / 99; position: sticky; top: 18px; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px; border: 1px solid var(--sd-border); border-radius: var(--sd-radius-md); background: #fff; box-shadow: var(--sd-shadow-panel); z-index: 10; }
    .sd-mpost__steps { flex-direction: column; align-items: stretch; justify-content: flex-start; overflow: visible; gap: 0; flex: none; }
    .sd-mpost__step { flex-direction: row; justify-content: flex-start; gap: 10px; min-height: 34px; padding: 2px 0; }
    .sd-mpost__step-label { display: block; }
    .sd-mpost__step-line { flex: none; width: 2px; min-width: 0; height: 22px; margin: 2px 0 2px 13px; margin-bottom: 0; }
    .sd-mpost__back { width: 100%; justify-content: flex-start; }

    /* Alert and main → column 2 */
    .sd-mpost__alert { grid-column: 2; margin: 0 0 12px; }
    .sd-mpost__main { grid-column: 2; padding: 0 0 32px; }

    /* Photo block — card on desktop, with margin */
    .sd-mpost__block--photos { border: 1px solid var(--sd-border); border-radius: var(--sd-radius-lg); background: var(--sd-surface); padding: 20px; box-shadow: var(--sd-shadow-card); margin-bottom: 10px; }
    .sd-mpost__thumb { flex: 0 0 128px; width: 128px; height: 128px; }
    .sd-mpost__dropzone { min-height: 200px; }

    /* Form sections — each is a card on desktop */
    .sd-mpost__form-section { background: var(--sd-surface); border: 1px solid var(--sd-border); border-radius: var(--sd-radius-lg); padding: 20px; box-shadow: var(--sd-shadow-card); border-bottom: 1px solid var(--sd-border); }
    .sd-mpost__form-col { display: flex; flex-direction: column; gap: 12px; }

    /* Description taller on desktop */
    .sd-mpost__form-col--side .sd-mpost__textarea--tall { min-height: 440px; }

    /* Form 2-col grid */
    .sd-mpost__grid--form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; align-items: start; }
    .sd-mpost__block--photos { grid-column: 1 / -1; }
    .sd-mpost__price-row { grid-template-columns: minmax(0, 1fr) 168px; }

    /* Review single column */
    .sd-mpost__grid--review { flex-direction: column; }
    .sd-mpost__preview-horiz__img { flex: 0 0 180px; width: 180px; }
    .sd-mpost__spec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sd-mpost__spec-item:nth-child(even) { border-right: 1px solid var(--sd-border-soft); }
    .sd-mpost__spec-item:nth-child(3n) { border-right: none; }
    .sd-mpost__spec-item:nth-last-child(-n+3) { border-bottom: none; }
    .sd-mpost__spec-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--sd-border-soft); }
    .sd-mpost__spec-item:last-child { border-bottom: none; }

    /* Edit form 2-col: fields 1-8 side-by-side, 9+ full-width */
    .sd-mpost__edit-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sd-mpost__edit-field:nth-child(n+9) { grid-column: 1 / -1; }

    /* Dock sticky in content column */
    .sd-mpost__dock { grid-column: 2; position: sticky; bottom: 16px; left: auto; right: auto; margin: 4px 0 0; }
}

/* ── Tablet (768px – 959px) ── */
@media (min-width: 768px) and (max-width: 959px) {
    .sd-mpost__main { padding: 16px 20px 24px; }
    .sd-mpost__grid--form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; align-items: start; }
    .sd-mpost__block--photos { grid-column: 1 / -1; }
    .sd-mpost__thumb { flex: 0 0 120px; width: 120px; height: 120px; }
    .sd-mpost__price-row { grid-template-columns: minmax(0, 1fr) 160px; }
    .sd-mpost__form-col--side .sd-mpost__textarea--tall { min-height: 240px; }
    .sd-mpost__preview-horiz__img { flex: 0 0 150px; width: 150px; }
    .sd-mpost__edit-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sd-mpost__edit-field:nth-child(n+9) { grid-column: 1 / -1; }
    .sd-mpost__dock { left: 20px; right: 20px; }
}

/* ── Small mobile (< 520px) ── */
@media (max-width: 520px) {
    .sd-mpost__back span { display: none; }
    .sd-mpost__dock { left: 8px; right: 8px; bottom: 8px; }
    /* Preview card: vertical stack on small screens */
    .sd-mpost__preview-horiz { flex-direction: column; }
    .sd-mpost__preview-horiz__img { flex: none; width: 100%; height: 180px; border-radius: var(--sd-radius-lg) var(--sd-radius-lg) 0 0; }
    .sd-mpost__preview-horiz__img img { border-radius: var(--sd-radius-lg) var(--sd-radius-lg) 0 0; }
    .sd-mpost__preview-horiz__body { padding: 14px; }
    .sd-mpost__spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Success notice banner ── */
.sd-mwiz-notice { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 12px 14px; border-radius: var(--sd-radius-md); background: var(--sd-accent-soft); color: var(--sd-accent-strong); border: 1px solid var(--sd-accent-border); font-weight: 700; animation: sd-mpost-fadein .2s ease; }
.sd-mwiz-notice svg { flex: none; color: var(--sd-accent); }
.sd-mwiz-notice span { flex: 1; }
.sd-mwiz-notice__x { flex: none; background: none; border: 0; font-size: 20px; line-height: 1; color: var(--sd-accent-strong); cursor: pointer; padding: 0 2px; opacity: .7; }
.sd-mwiz-notice__x:hover { opacity: 1; }

/* ── Inline WhatsApp verification modal ── */
.sd-mwiz-gate { display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 32px 16px; }
.sd-mwiz-gate__card { width: 100%; max-width: 420px; text-align: center; background: var(--sd-surface); border: 1px solid var(--sd-border); border-radius: var(--sd-radius-lg); box-shadow: var(--sd-shadow-card); padding: 36px 28px 30px; animation: sd-mwiz-wa-in .4s cubic-bezier(.34, 1.2, .64, 1) both; }
.sd-mwiz-gate__icon { width: 60px; height: 60px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--sd-accent-soft); color: var(--sd-accent-strong); }
.sd-mwiz-gate__icon svg { width: 30px; height: 30px; }
.sd-mwiz-gate__title { margin: 0 0 8px; font-size: 22px; font-weight: 850; letter-spacing: -.5px; line-height: 1.2; color: var(--sd-ink); }
.sd-mwiz-gate__lead { margin: 0 0 22px; font-size: 14px; line-height: 1.55; color: var(--sd-muted-strong); }
.sd-mwiz-gate__btn { width: 100%; justify-content: center; gap: 8px; }
.sd-mwiz-gate__btn svg { width: 18px; height: 18px; }
.sd-mwiz-gate__back { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--sd-muted); text-decoration: none; }
.sd-mwiz-gate__back:hover { color: var(--sd-ink); text-decoration: underline; }

.sd-mwiz-wa { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 23, 19, .55); backdrop-filter: blur(3px); animation: sd-mpost-fadein .18s ease; }
.sd-mwiz-wa__card { position: relative; width: 100%; max-width: 400px; max-height: 90vh; overflow-y: auto; background: var(--sd-surface); border: 1px solid var(--sd-border); border-radius: var(--sd-radius-lg); box-shadow: var(--sd-shadow-panel); padding: 32px 28px 26px; text-align: center; animation: sd-mwiz-wa-in .4s cubic-bezier(.34, 1.2, .64, 1) both; }
@keyframes sd-mwiz-wa-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.sd-mwiz-wa__x { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: none; border: 0; font-size: 24px; line-height: 1; color: var(--sd-muted); cursor: pointer; border-radius: var(--sd-radius-sm); transition: background .15s, color .15s; }
.sd-mwiz-wa__x:hover { color: var(--sd-ink); background: var(--sd-surface-soft); }
.sd-mwiz-wa__icon { width: 48px; height: 48px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--sd-accent-soft); color: var(--sd-accent-strong); }
.sd-mwiz-wa__icon svg { width: 24px; height: 24px; }
.sd-mwiz-wa__title { margin: 0 0 6px; font-size: 19px; font-weight: 850; letter-spacing: -.4px; line-height: 1.25; color: var(--sd-ink); }
.sd-mwiz-wa__lead { margin: 0 0 18px; font-size: 13.5px; line-height: 1.55; color: var(--sd-muted-strong); }
.sd-mwiz-wa__lead strong { font-weight: 700; color: var(--sd-ink); }
.sd-mwiz-wa__otp { display: flex; gap: 8px; margin: 0 0 14px; }
.sd-mwiz-wa__otp input { flex: 1; width: 100%; min-width: 0; height: 52px; padding: 0; text-align: center; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--sd-ink); background: var(--sd-surface); border: 1.5px solid var(--sd-border); border-radius: var(--sd-radius-sm); transition: border-color .15s, box-shadow .15s; }
.sd-mwiz-wa__otp input:focus { outline: none; border-color: var(--sd-accent); box-shadow: 0 0 0 3px var(--sd-accent-soft); }
.sd-mwiz-wa__resend { margin: 0 0 16px; font-size: 13px; color: var(--sd-muted); }
.sd-mwiz-wa__resend a { color: var(--sd-accent-strong); font-weight: 700; text-decoration: none; cursor: pointer; }
.sd-mwiz-wa__resend a:hover { text-decoration: underline; }
.sd-mwiz-wa__resend-wait { color: var(--sd-muted-soft); font-weight: 700; }
.sd-mwiz-wa__note { display: flex; align-items: flex-start; gap: 8px; text-align: left; background: var(--sd-accent-soft); border-radius: var(--sd-radius-sm); padding: 10px 12px; margin: 0 0 18px; }
.sd-mwiz-wa__note svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--sd-accent-strong); }
.sd-mwiz-wa__note p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--sd-muted-strong); }
.sd-mwiz-wa__actions { display: flex; gap: 8px; }
.sd-mwiz-wa__actions .sd-mpost__btn { margin: 0; justify-content: center; }
.sd-mwiz-wa__cancel { flex: 1; }
.sd-mwiz-wa__confirm { flex: 2; }
.sd-mwiz-wa__confirm svg { width: 16px; height: 16px; }
.sd-mwiz-wa__loading { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px 0; font-size: 13.5px; color: var(--sd-muted-strong); }
.sd-mwiz-wa__error { margin: 0 0 14px; }
.sd-mwiz-wa__error p { margin: 0; padding: 10px 14px; background: var(--sd-danger-soft, #fdecec); color: var(--sd-danger, #c0392b); border: 1px solid var(--sd-danger-border, #f5c6c6); border-radius: var(--sd-radius-sm); font-size: 13px; line-height: 1.4; text-align: center; }
