/* ============================================================================
   CREATE A SERVE - premium Apple-style .sdx reskin (v1, 2026-07-26)
   Pure presentation: reskins the existing create-serve markup + JS-generated
   classes to the blue --sdx-* token system. NO JavaScript changes.
   Loads AFTER seller-dash.css (.sdx base tokens) and AFTER buyer-lux.css, so
   these body.fp-ed .sdx rules (spec >= 0,0,3,x) win over buyer-lux
   (body.bl-createserve, 0,0,2,x) and the JS-injected #cs-sub-style (0,0,1,0).
   ============================================================================ */

/* critical: JS toggles [hidden] on package panels, empty states, preview tag,
   media wrappers + the fixed .cs2-done overlay. Force it to actually hide. */
body.fp-ed .sdx [hidden] { display: none !important; }

/* ---------- layout ---------- */
body.fp-ed .sdx .cs2-wrap { max-width: 1180px; margin-inline: auto; padding: 24px 24px 96px; }
body.fp-ed .sdx .ed-crumb { padding: 20px 0 0; color: var(--sdx-ink-400); }
body.fp-ed .sdx .ed-crumb a { color: var(--sdx-ink-500); }
body.fp-ed .sdx .ed-crumb a:hover { color: var(--sdx-brand-600); }
body.fp-ed .sdx .ed-crumb b { color: var(--sdx-ink-800); }
body.fp-ed .sdx .cs2-grid { display: grid; grid-template-columns: minmax(0, 1fr) 384px; gap: 22px; align-items: start; }
body.fp-ed .sdx .cs2-main { display: grid; gap: 20px; min-width: 0; }

/* ---------- hero band (ws-band comes from seller-dash.css) ---------- */
body.fp-ed .sdx .cs2-wrap > .ws-band { margin: 18px 0 22px; }
body.fp-ed .sdx .ws-copy h1 { font-size: 30px; letter-spacing: -.02em; }
body.fp-ed .sdx .ws-copy .sub { max-width: 64ch; line-height: 1.55; }

/* ---------- section cards ---------- */
body.fp-ed .sdx .cs2-card {
  position: relative; border: 1px solid var(--sdx-line); border-radius: var(--sdx-radius);
  background: var(--sdx-surface); padding: 26px 28px; box-shadow: var(--sdx-shadow-card);
  transition: box-shadow .25s ease, border-color .2s ease; scroll-margin-top: 84px;
}
/* gradient ring glow on hover (mirrors .sdx .card::before) */
body.fp-ed .sdx .cs2-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: linear-gradient(135deg, rgba(95,134,251,.7), rgba(28,68,201,.2) 45%, rgba(147,176,255,.65));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease; pointer-events: none; z-index: 2;
}
body.fp-ed .sdx .cs2-card:hover::before { opacity: 1; }
body.fp-ed .sdx .cs2-card-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
/* owner: no numbered tiles on the section cards */
body.fp-ed .sdx .cs2-num { display: none; }
body.fp-ed .sdx .cs2-card-head > div { min-width: 0; padding-top: 1px; }
body.fp-ed .sdx .cs2-card-title { font-family: 'Inter', sans-serif; font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--sdx-ink-900); margin: 0 0 3px; }
body.fp-ed .sdx .cs2-card-sub { font-family: 'Inter', sans-serif; font-size: 13px; color: var(--sdx-ink-400); line-height: 1.5; margin: 0; }
body.fp-ed .sdx .cs2-card.is-invalid { border-color: #e0584f; box-shadow: 0 0 0 3.5px rgba(224,88,79,.16); animation: csxShake .4s ease; }
body.fp-ed .sdx .cs2-card.is-invalid::before { opacity: 0; }
@keyframes csxShake { 10%,90% { transform: translateX(-1px); } 30%,70% { transform: translateX(3px); } 50% { transform: translateX(-4px); } }

/* ---------- fields / labels / hints ---------- */
body.fp-ed .sdx .ed-field { display: block; }
body.fp-ed .sdx .ed-field > span { display: block; font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sdx-ink-400); margin-bottom: 7px; }
body.fp-ed .sdx .ed-field input,
body.fp-ed .sdx .ed-field select,
body.fp-ed .sdx .ed-field textarea {
  width: 100%; height: 46px; box-sizing: border-box; border: 1px solid var(--sdx-line); border-radius: 12px;
  background: var(--sdx-surface-2); padding: 0 14px; font-family: 'Inter', sans-serif; font-size: 14px;
  font-weight: 500; color: var(--sdx-ink-900); outline: none; transition: .15s;
}
body.fp-ed .sdx .ed-field textarea { height: auto; min-height: 150px; padding: 13px 15px; line-height: 1.6; resize: vertical; }
body.fp-ed .sdx .ed-field input::placeholder, body.fp-ed .sdx .ed-field textarea::placeholder { color: var(--sdx-ink-300); }
body.fp-ed .sdx .ed-field select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667694' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; background-size: 14px; padding-right: 38px; }
body.fp-ed .sdx .ed-field input:focus,
body.fp-ed .sdx .ed-field select:focus,
body.fp-ed .sdx .ed-field textarea:focus { border-color: var(--sdx-brand-400); background: var(--sdx-surface); box-shadow: 0 0 0 3.5px var(--sdx-brand-50); }
body.fp-ed .sdx .ed-frow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
body.fp-ed .sdx .ed-cs-hint { display: block; font-family: 'Inter', sans-serif; font-size: 11.5px; color: var(--sdx-ink-400); margin-top: 6px; line-height: 1.5; }
body.fp-ed .sdx .ed-cs-help { font-family: 'Inter', sans-serif; font-size: 12.5px; color: var(--sdx-ink-400); line-height: 1.55; margin: 6px 0 14px; }
body.fp-ed .sdx .ed-cs-optional { font-family: 'Inter', sans-serif; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--sdx-ink-400); background: var(--sdx-surface-2); border: 1px solid var(--sdx-line); border-radius: 20px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
body.fp-ed .sdx .ed-cs-required { font-family: 'Inter', sans-serif; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--sdx-brand-700); background: var(--sdx-brand-50); border: 1px solid var(--sdx-brand-100); border-radius: 20px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
body.fp-ed .sdx .ed-cs-subhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 12px; flex-wrap: wrap; }
body.fp-ed .sdx .ed-cs-subtitle { font-family: 'Inter', sans-serif; font-size: 14.5px; font-weight: 800; color: var(--sdx-ink-800); margin: 0; }
body.fp-ed .sdx .ed-cs-empty { font-family: 'Inter', sans-serif; font-size: 12.5px; color: var(--sdx-ink-400); margin: 12px 0 0; }

/* ---------- searchable comboboxes (beat JS-injected #cs-sub-style) ---------- */
body.fp-ed .sdx .cs-sub-btn { width: 100%; height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; color: var(--sdx-ink-900); background: var(--sdx-surface-2); border: 1px solid var(--sdx-line); border-radius: 12px; padding: 0 14px; cursor: pointer; transition: .15s; }
body.fp-ed .sdx .cs-sub-btn:hover:not(:disabled) { border-color: var(--sdx-brand-300); }
body.fp-ed .sdx .cs-sub-btn:disabled { cursor: not-allowed; background: var(--sdx-line-soft); color: var(--sdx-ink-300); }
body.fp-ed .sdx .cs-sub-btn[aria-expanded="true"] { border-color: var(--sdx-brand-400); background: var(--sdx-surface); box-shadow: 0 0 0 3.5px var(--sdx-brand-50); }
body.fp-ed .sdx .cs-sub-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.fp-ed .sdx .cs-sub-label.is-placeholder { color: var(--sdx-ink-300); }
body.fp-ed .sdx .cs-sub-chev { width: 16px; height: 16px; flex: none; color: var(--sdx-ink-400); transition: transform .15s ease; }
body.fp-ed .sdx .cs-sub-btn[aria-expanded="true"] .cs-sub-chev { transform: rotate(180deg); }
body.fp-ed .sdx .cs-sub-pop { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); background: var(--sdx-surface); border: 1px solid var(--sdx-line); border-radius: 14px; box-shadow: var(--sdx-shadow-pop); overflow: hidden; }
body.fp-ed .sdx .cs-sub-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--sdx-line-soft); }
body.fp-ed .sdx .cs-sub-search svg { width: 16px; height: 16px; flex: none; color: var(--sdx-ink-400); }
body.fp-ed .sdx .cs-sub-search input { flex: 1; border: 0; outline: 0; font-family: 'Inter', sans-serif; font-size: 13.5px; background: transparent; color: var(--sdx-ink-900); }
body.fp-ed .sdx .cs-sub-list { list-style: none; margin: 0; padding: 6px; max-height: 264px; overflow-y: auto; }
body.fp-ed .sdx .cs-sub-opt { padding: 9px 11px; border-radius: 9px; font-family: 'Inter', sans-serif; font-size: 13.5px; color: var(--sdx-ink-800); cursor: pointer; }
body.fp-ed .sdx .cs-sub-opt:hover { background: var(--sdx-surface-2); }
body.fp-ed .sdx .cs-sub-opt.is-sel { background: var(--sdx-brand-50); color: var(--sdx-brand-700); font-weight: 700; }
body.fp-ed .sdx .cs-sub-empty { padding: 16px 12px; text-align: center; color: var(--sdx-ink-400); font-size: 12.5px; }

/* ---------- tag entry + chips ---------- */
body.fp-ed .sdx .ed-cs-tagentry { display: flex; gap: 8px; }
body.fp-ed .sdx .ed-cs-tagentry input { flex: 1; height: 46px; box-sizing: border-box; border: 1px solid var(--sdx-line); border-radius: 12px; background: var(--sdx-surface-2); padding: 0 14px; font-family: 'Inter', sans-serif; font-size: 14px; color: var(--sdx-ink-900); outline: none; transition: .15s; }
body.fp-ed .sdx .ed-cs-tagentry input:focus { border-color: var(--sdx-brand-400); background: var(--sdx-surface); box-shadow: 0 0 0 3.5px var(--sdx-brand-50); }
body.fp-ed .sdx .ed-cs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
body.fp-ed .sdx .ed-cs-chips > * { display: inline-flex; align-items: center; gap: 7px; font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 700; color: var(--sdx-brand-700); background: var(--sdx-brand-50); border: 1px solid var(--sdx-brand-100); border-radius: 20px; padding: 6px 12px; }
body.fp-ed .sdx .ed-cs-chips button { border: 0; background: transparent; color: var(--sdx-brand-600); cursor: pointer; font-size: 15px; line-height: 1; padding: 0; opacity: .7; }
body.fp-ed .sdx .ed-cs-chips button:hover { opacity: 1; }

/* ---------- buttons ---------- */
body.fp-ed .sdx .ed-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; min-height: 0; padding: 0 20px; border-radius: 13px; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer; transition: .18s; border: 1px solid transparent; }
body.fp-ed .sdx .ed-btn-fill { background: linear-gradient(135deg, var(--sdx-brand-500), var(--sdx-brand-700)); color: #fff; box-shadow: var(--sdx-shadow-pop); }
body.fp-ed .sdx .ed-btn-fill:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(36,86,230,.55); }
body.fp-ed .sdx .ed-btn-line { background: var(--sdx-surface); border: 1px solid var(--sdx-line); color: var(--sdx-ink-700); }
body.fp-ed .sdx .ed-btn-line:hover { border-color: var(--sdx-brand-300); color: var(--sdx-brand-600); background: var(--sdx-brand-50); }
body.fp-ed .sdx .ed-btn-sm { height: 38px; padding: 0 15px; font-size: 12.5px; border-radius: 10px; }

/* ---------- packages: segmented tabs ---------- */
body.fp-ed .sdx .cs2-pkgtabs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 18px; padding: 5px; background: var(--sdx-surface-2); border: 1px solid var(--sdx-line); border-radius: 14px; }
body.fp-ed .sdx .cs2-pkgtab { appearance: none; border: 0; background: transparent; cursor: pointer; border-radius: 10px; padding: 9px 8px; font-family: 'Inter', sans-serif; font-size: 13.5px; font-weight: 700; color: var(--sdx-ink-500); display: grid; gap: 2px; line-height: 1.2; transition: .16s; }
body.fp-ed .sdx .cs2-pkgtab small { font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--sdx-ink-300); }
body.fp-ed .sdx .cs2-pkgtab:hover:not(.is-on) { color: var(--sdx-ink-700); }
body.fp-ed .sdx .cs2-pkgtab.is-on { background: var(--sdx-surface); color: var(--sdx-brand-700); box-shadow: 0 4px 12px -6px rgba(36,86,230,.4); }
body.fp-ed .sdx .cs2-pkgtab.is-on small { color: var(--sdx-brand-600); }
body.fp-ed .sdx .cs2-pkgpanel { border: 0; margin: 0; padding: 0; min-width: 0; }
body.fp-ed .sdx .cs2-pkgpanel legend { font-family: 'Inter', sans-serif; font-size: 14.5px; font-weight: 800; color: var(--sdx-ink-800); margin-bottom: 12px; padding: 0; }
body.fp-ed .sdx .cs2-pkg-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }

/* included tick-list */
body.fp-ed .sdx .cs2-incl-label { display: block; font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sdx-ink-400); margin-bottom: 10px; }
body.fp-ed .sdx .cs2-incl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
body.fp-ed .sdx .cs2-incl-row { display: flex; align-items: center; gap: 9px; }
body.fp-ed .sdx .cs2-incl-tick { flex: none; width: 24px; height: 24px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--sdx-brand-50); color: var(--sdx-brand-600); }
body.fp-ed .sdx .cs2-incl-input { flex: 1 1 auto; min-width: 0; height: 42px; padding: 0 13px; border: 1px solid var(--sdx-line); border-radius: 11px; background: var(--sdx-surface-2); font-family: 'Inter', sans-serif; font-size: 14px; color: var(--sdx-ink-900); transition: .15s; }
body.fp-ed .sdx .cs2-incl-input::placeholder { color: var(--sdx-ink-300); }
body.fp-ed .sdx .cs2-incl-input:focus { outline: none; border-color: var(--sdx-brand-400); background: var(--sdx-surface); box-shadow: 0 0 0 3.5px var(--sdx-brand-50); }
body.fp-ed .sdx .cs2-incl-del { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--sdx-line); background: var(--sdx-surface); color: var(--sdx-ink-300); font-size: 19px; line-height: 1; cursor: pointer; transition: .15s; }
body.fp-ed .sdx .cs2-incl-del:hover { color: #dc2626; border-color: #f6cccc; background: var(--sdx-red-50); }
body.fp-ed .sdx .cs2-incl-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
body.fp-ed .sdx .cs2-incl-add { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 15px; border: 1px dashed var(--sdx-brand-300); border-radius: 11px; background: var(--sdx-brand-50); color: var(--sdx-brand-600); font-family: 'Inter', sans-serif; font-weight: 700; font-size: 13px; cursor: pointer; transition: .15s; }
body.fp-ed .sdx .cs2-incl-add:hover { background: var(--sdx-brand-100); }
body.fp-ed .sdx .cs2-incl-add:disabled { opacity: .45; cursor: not-allowed; }
body.fp-ed .sdx .cs2-incl-add-plus { font-size: 16px; line-height: 1; font-weight: 800; }
body.fp-ed .sdx .cs2-incl-count { font-family: 'Inter', sans-serif; color: var(--sdx-ink-400); font-size: 12px; font-weight: 700; white-space: nowrap; }

/* add-ons repeater */
body.fp-ed .sdx .cs2-ups-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
body.fp-ed .sdx .cs2-up-row { display: grid; grid-template-columns: 1fr 100px 100px 34px; gap: 8px; align-items: center; }
body.fp-ed .sdx .cs2-up-row input { height: 42px; padding: 0 12px; border: 1px solid var(--sdx-line); border-radius: 11px; background: var(--sdx-surface-2); font-family: 'Inter', sans-serif; font-size: 14px; color: var(--sdx-ink-900); transition: .15s; min-width: 0; }
body.fp-ed .sdx .cs2-up-row input::placeholder { color: var(--sdx-ink-300); }
body.fp-ed .sdx .cs2-up-row input:focus { outline: none; border-color: var(--sdx-brand-400); background: var(--sdx-surface); box-shadow: 0 0 0 3.5px var(--sdx-brand-50); }

/* ---------- FAQ / requirements rows ---------- */
body.fp-ed .sdx .ed-cs-rows { display: grid; gap: 12px; margin-top: 4px; }
body.fp-ed .sdx .ed-cs-rows > * { border: 1px solid var(--sdx-line); border-radius: 14px; background: var(--sdx-surface-2); padding: 15px 16px; }
body.fp-ed .sdx .ed-cs-row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
body.fp-ed .sdx .ed-cs-row-del { border: 0; background: transparent; color: #b42318; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 700; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
body.fp-ed .sdx .ed-cs-row-del:hover { background: var(--sdx-red-50); }
/* FAQ / requirement fields stack cleanly (each label is a block, not inline) */
body.fp-ed .sdx .ed-cs-rows .ed-field { display: block; margin: 0; }
body.fp-ed .sdx .ed-cs-rows .ed-field + .ed-field,
body.fp-ed .sdx .ed-cs-rows .ed-field + .ed-frow { margin-top: 13px; }
body.fp-ed .sdx .ed-cs-rows .ed-field > span { display: block; font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sdx-ink-400); margin-bottom: 7px; }
body.fp-ed .sdx .ed-cs-rows input[type="text"],
body.fp-ed .sdx .ed-cs-rows textarea,
body.fp-ed .sdx .ed-cs-rows select { width: 100%; box-sizing: border-box; height: auto; border: 1px solid var(--sdx-line); border-radius: 11px; background: var(--sdx-surface); padding: 11px 13px; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; color: var(--sdx-ink-900); outline: none; transition: .15s; }
body.fp-ed .sdx .ed-cs-rows textarea { min-height: 76px; line-height: 1.55; resize: vertical; }
body.fp-ed .sdx .ed-cs-rows select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667694' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 13px; padding-right: 36px; }
body.fp-ed .sdx .ed-cs-rows input:focus,
body.fp-ed .sdx .ed-cs-rows textarea:focus,
body.fp-ed .sdx .ed-cs-rows select:focus { border-color: var(--sdx-brand-400); box-shadow: 0 0 0 3.5px var(--sdx-brand-50); }
/* char-count pill (injected by main.js applyCharacterLimits) - small, right-aligned, below field.
   Page-wide (not just .ed-cs-rows) so builder fields like Tagline in .cs2-card get the subtle
   pill too, instead of falling back to the big base .field-char-limit style. */
body.fp-ed .sdx .field-char-limit { display: block; text-align: right; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; color: var(--sdx-ink-300); margin-top: 6px; font-variant-numeric: tabular-nums; }
body.fp-ed .sdx .field-char-limit.is-near-limit { color: var(--sdx-amber-600); }
body.fp-ed .sdx .field-char-limit.is-at-limit { color: #b42318; }
/* requirement: answer-type select + Required checkbox on one row */
body.fp-ed .sdx .ed-cs-rows .ed-frow { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
body.fp-ed .sdx .ed-cs-rows .ed-check { display: inline-flex; align-items: center; gap: 7px; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; color: var(--sdx-ink-700); white-space: nowrap; cursor: pointer; }
body.fp-ed .sdx .ed-cs-rows .ed-check input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--sdx-brand-600); flex: none; }

/* ---------- gallery / media ---------- */
body.fp-ed .sdx .ed-cs-media { border: 1px solid var(--sdx-line); border-radius: 16px; background: var(--sdx-surface-2); padding: 18px 20px; margin-top: 16px; }
body.fp-ed .sdx .ed-cs-media:first-of-type { margin-top: 4px; }
body.fp-ed .sdx .ed-cs-media-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 4px; }
body.fp-ed .sdx .ed-cs-limit { font-family: 'Inter', sans-serif; color: var(--sdx-ink-400); font-size: 11.5px; }
body.fp-ed .sdx .ed-cs-drop { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
body.fp-ed .sdx .ed-cs-thumb-preview { position: relative; width: 168px; max-width: 100%; }
body.fp-ed .sdx .ed-cs-thumb-preview img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--sdx-line); box-shadow: var(--sdx-shadow-sm); display: block; }
body.fp-ed .sdx .ed-cs-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 10px; }
body.fp-ed .sdx .ed-cs-gthumb { position: relative; margin: 0; }
body.fp-ed .sdx .ed-cs-gthumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--sdx-line); display: block; }
body.fp-ed .sdx .ed-cs-media-del { position: absolute; top: 6px; right: 6px; border: 0; border-radius: 20px; background: rgba(11,18,32,.82); color: #fff; font-family: 'Inter', sans-serif; font-size: 11.5px; font-weight: 700; padding: 4px 9px; cursor: pointer; }
body.fp-ed .sdx .ed-cs-thumb-preview .ed-cs-media-del,
body.fp-ed .sdx .ed-cs-video .ed-cs-media-del { position: static; margin-top: 8px; display: inline-block; background: var(--sdx-ink-800); }
body.fp-ed .sdx .ed-cs-video { width: min(520px, 100%); margin: 4px 0 10px; }
body.fp-ed .sdx .ed-cs-video video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #000; border-radius: 12px; border: 1px solid var(--sdx-line); display: block; }
body.fp-ed .sdx .ed-cs-uploadstatus { font-family: 'Inter', sans-serif; font-size: 12.5px; color: var(--sdx-ink-500); margin: 12px 0 0; }
body.fp-ed .sdx .ed-cs-uploadstatus:empty { display: none; }

/* inline per-section upload progress (premium; complements the corner panel) */
body.fp-ed .sdx .cs-up-prog { display: flex; align-items: center; gap: 11px; margin-top: 12px; padding: 10px 13px; border: 1px solid var(--sdx-brand-100); border-radius: 12px; background: var(--sdx-brand-50); animation: csxRise .3s cubic-bezier(.2,.7,.2,1) both; }
body.fp-ed .sdx .cs-up-prog[hidden] { display: none; }
body.fp-ed .sdx .cs-up-prog-ic { width: 18px; height: 18px; flex: none; color: var(--sdx-brand-600); }
body.fp-ed .sdx .cs-up-prog-ic svg { width: 18px; height: 18px; animation: csxUpBob 1s ease-in-out infinite; }
@keyframes csxUpBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
body.fp-ed .sdx .cs-up-prog-track { flex: 1; height: 8px; border-radius: 999px; background: rgba(36,86,230,.14); overflow: hidden; }
body.fp-ed .sdx .cs-up-prog-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--sdx-brand-400), var(--sdx-brand-600)); box-shadow: 0 0 8px rgba(36,86,230,.5); transition: width .2s ease; }
body.fp-ed .sdx .cs-up-prog-pct { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 800; color: var(--sdx-brand-700); font-variant-numeric: tabular-nums; min-width: 42px; text-align: right; }
body.fp-ed .sdx .cs-up-prog.is-done { border-color: #bfeeda; background: var(--sdx-green-50); }
body.fp-ed .sdx .cs-up-prog.is-done .cs-up-prog-fill { background: linear-gradient(90deg, var(--sdx-green-500), #34d399); box-shadow: 0 0 8px rgba(16,185,129,.5); }
body.fp-ed .sdx .cs-up-prog.is-done .cs-up-prog-pct,
body.fp-ed .sdx .cs-up-prog.is-done .cs-up-prog-ic { color: var(--sdx-green-600); }
body.fp-ed .sdx .cs-up-prog.is-done .cs-up-prog-ic svg { animation: none; }
@media (prefers-reduced-motion: reduce) { body.fp-ed .sdx .cs-up-prog, body.fp-ed .sdx .cs-up-prog-ic svg { animation: none; } }

/* create-serve uses the inline .cs-up-prog bar, so hide fp-upload's global
   corner progress panel here only (it stays on every other page). Upload
   gating via isUploading() still works - the panel is only hidden, not removed. */
body.bl-createserve .fpu-panel { display: none !important; }

/* premium media DROP ZONES - restyle fp-upload's .fp-up-zone (scoped to create-serve
   only; global fp-upload.css stays as-is). Bigger, centered, gradient icon, hover lift. */
body.fp-ed .sdx .ed-cs-media .fp-up { gap: 0; width: 100%; }
body.fp-ed .sdx .ed-cs-media .fp-up-zone {
  position: relative; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  padding: 28px 22px; border: 1.7px dashed var(--sdx-brand-200); border-radius: 16px;
  background: linear-gradient(180deg, var(--sdx-surface) 0%, var(--sdx-surface-2) 100%);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
body.fp-ed .sdx .ed-cs-media .fp-up-zone:hover {
  border-color: var(--sdx-brand-400); background: linear-gradient(180deg, var(--sdx-surface), var(--sdx-brand-50));
  box-shadow: 0 14px 30px -18px rgba(36,86,230,.4); transform: translateY(-1px);
}
body.fp-ed .sdx .ed-cs-media .fp-up.is-dragover .fp-up-zone {
  border-style: solid; border-color: var(--sdx-brand-500); background: var(--sdx-brand-50);
  box-shadow: inset 0 0 0 1px var(--sdx-brand-500), 0 12px 26px -16px rgba(36,86,230,.55);
}
body.fp-ed .sdx .ed-cs-media .fp-up-ic {
  width: 54px; height: 54px; border-radius: 16px;
  background: linear-gradient(135deg, var(--sdx-brand-400), var(--sdx-brand-700));
  box-shadow: 0 12px 24px -12px rgba(36,86,230,.65);
}
body.fp-ed .sdx .ed-cs-media .fp-up-ic svg { width: 24px; height: 24px; }
body.fp-ed .sdx .ed-cs-media .fp-up-main { align-items: center; gap: 3px; flex: 0 0 auto; }
body.fp-ed .sdx .ed-cs-media .fp-up-main strong { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 800; color: var(--sdx-ink-800); }
body.fp-ed .sdx .ed-cs-media .fp-up-sub { font-family: 'Inter', sans-serif; font-size: 12.5px; color: var(--sdx-ink-400); }
body.fp-ed .sdx .ed-cs-media .fp-up-sub em { color: var(--sdx-brand-600); font-weight: 700; }
body.fp-ed .sdx .ed-cs-media .fp-up-tag {
  position: absolute; top: 12px; right: 12px; font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 800;
  letter-spacing: .04em; color: var(--sdx-brand-700); background: var(--sdx-brand-50); border: 1px solid var(--sdx-brand-100);
  border-radius: 20px; padding: 4px 10px;
}
body.fp-ed .sdx .ed-cs-media .fp-up-status { text-align: center; font-family: 'Inter', sans-serif; font-size: 12px; }
/* thumbnail block: drop zone sits beside the small preview, so let it flex nicely */
body.fp-ed .sdx .ed-cs-drop { display: flex; align-items: stretch; gap: 16px; flex-wrap: wrap; }
body.fp-ed .sdx .ed-cs-drop .fp-up { flex: 1 1 260px; min-width: 240px; }
@media (max-width: 560px) { body.fp-ed .sdx .ed-cs-media .fp-up-zone { padding: 22px 16px; } }

/* ---------- submit bar ---------- */
body.fp-ed .sdx .cs2-submitbar { display: grid; gap: 15px; padding: 22px 24px; border: 1px solid var(--sdx-brand-100); border-radius: var(--sdx-radius); background: linear-gradient(135deg, var(--sdx-brand-50), var(--sdx-surface)); }
body.fp-ed .sdx .cs2-submitbar-note { display: flex; align-items: flex-start; gap: 10px; color: var(--sdx-brand-700); font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; line-height: 1.5; }
body.fp-ed .sdx .cs2-submitbar-note svg { width: 22px; height: 22px; flex: none; color: var(--sdx-brand-600); margin-top: 1px; }
body.fp-ed .sdx .cs2-own { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-family: 'Inter', sans-serif; font-size: 13.5px; color: var(--sdx-ink-800); cursor: pointer; }
body.fp-ed .sdx .cs2-own input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--sdx-brand-600); flex: none; }
body.fp-ed .sdx .cs2-submit { height: 54px; font-size: 15px; }
body.fp-ed .sdx .cs2-status { margin: 0; min-height: 1em; font-family: 'Inter', sans-serif; font-size: 13px; }
body.fp-ed .sdx .cs2-status:empty { display: none; }

/* ---------- right rail: live preview + strength meter ---------- */
body.fp-ed .sdx .cs2-side { min-width: 0; }
body.fp-ed .sdx .cs2-side-sticky { position: sticky; top: 80px; display: grid; gap: 14px; max-height: calc(100vh - 96px); overflow-y: auto; padding-right: 2px; }
body.fp-ed .sdx .cs2-pv-label { display: flex; align-items: center; gap: 8px; font-family: 'Inter', sans-serif; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sdx-ink-400); }
body.fp-ed .sdx .cs2-pv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sdx-green-500); box-shadow: 0 0 0 4px rgba(16,185,129,.16); animation: csxPulse 2s ease-in-out infinite; }
@keyframes csxPulse { 0%,100% { box-shadow: 0 0 0 3px rgba(16,185,129,.2); } 50% { box-shadow: 0 0 0 6px rgba(16,185,129,.05); } }
body.fp-ed .sdx .cs2-meter { border: 1px solid var(--sdx-line); border-radius: 16px; background: var(--sdx-surface); box-shadow: var(--sdx-shadow-sm); padding: 15px 17px; }
body.fp-ed .sdx .cs2-meter-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
body.fp-ed .sdx .cs2-meter-top b { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 800; color: var(--sdx-ink-800); }
body.fp-ed .sdx .cs2-meter-top span { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 800; color: var(--sdx-brand-600); }
body.fp-ed .sdx .cs2-meter-track { height: 8px; border-radius: 999px; background: var(--sdx-line-soft); overflow: hidden; box-shadow: inset 0 1px 2px rgba(16,24,40,.06); }
body.fp-ed .sdx .cs2-meter-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--sdx-brand-400), var(--sdx-brand-600)); box-shadow: 0 1px 6px rgba(36,86,230,.4); width: 0; transition: width .35s cubic-bezier(.2,.7,.2,1); }
body.fp-ed .sdx .cs2-meter.is-full .cs2-meter-fill { background: linear-gradient(90deg, var(--sdx-green-500), #34d399); box-shadow: 0 1px 6px rgba(16,185,129,.4); }
body.fp-ed .sdx .cs2-meter.is-full .cs2-meter-top span { color: var(--sdx-green-600); }

body.fp-ed .sdx .cs2-pv-card { border: 1px solid var(--sdx-line); border-radius: 18px; background: var(--sdx-surface); box-shadow: var(--sdx-shadow-card); overflow: hidden; overflow-wrap: anywhere; }
body.fp-ed .sdx .cs2-pv-thumb { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--sdx-brand-50), #e3ebf8); display: grid; place-items: center; overflow: hidden; }
body.fp-ed .sdx .cs2-pv-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
body.fp-ed .sdx .cs2-pv-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #0b1220; }
body.fp-ed .sdx .cs2-pv-mock { display: grid; place-items: center; gap: 7px; color: var(--sdx-ink-300); font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
body.fp-ed .sdx .cs2-pv-mock svg { width: 30px; height: 30px; opacity: .7; }
body.fp-ed .sdx .cs2-pv-tag { position: absolute; left: 10px; top: 10px; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700; color: var(--sdx-brand-700); background: rgba(255,255,255,.94); border-radius: 999px; padding: 3px 10px; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.fp-ed .sdx .cs2-pv-body { padding: 15px 16px 16px; display: grid; gap: 9px; }
body.fp-ed .sdx .cs2-pv-title { font-family: 'Inter', sans-serif; font-size: 15.5px; font-weight: 800; line-height: 1.34; margin: 0; color: var(--sdx-ink-900); overflow-wrap: anywhere; word-break: break-word; }
body.fp-ed .sdx .cs2-pv-title.is-placeholder { color: var(--sdx-ink-300); font-weight: 500; }
body.fp-ed .sdx .cs2-pv-by { display: flex; align-items: center; gap: 8px; }
body.fp-ed .sdx .cs2-pv-by .ed-av { width: 28px; height: 28px; border-radius: 50%; font-size: 11px; flex: none; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--sdx-brand-100), var(--sdx-brand-50)); color: var(--sdx-brand-600); font-family: 'Inter', sans-serif; font-weight: 800; }
/* seller honors (level chip + badges) - matches the real SERVE card */
body.fp-ed .sdx .cs2-pv-honors { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
body.fp-ed .sdx .cs2-pv-honors:empty { display: none; }
body.fp-ed .sdx .cs2-pv-honors .fp-level, body.fp-ed .sdx .cs2-pv-honors .fp-badge { font-size: 11px; }
body.fp-ed .sdx .cs2-pv-by .ed-av img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
body.fp-ed .sdx .cs2-pv-by span { font-family: 'Inter', sans-serif; font-size: 12.5px; color: var(--sdx-ink-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.fp-ed .sdx .cs2-pv-rate { display: inline-flex; align-items: center; gap: 5px; font-family: 'Inter', sans-serif; font-size: 12.5px; color: var(--sdx-ink-800); font-weight: 700; }
body.fp-ed .sdx .cs2-pv-rate svg { width: 14px; height: 14px; color: var(--sdx-amber-500); }
body.fp-ed .sdx .cs2-pv-rate small { color: var(--sdx-ink-400); font-weight: 500; }
body.fp-ed .sdx .cs2-pv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
body.fp-ed .sdx .cs2-pv-tags:empty { display: none; }
body.fp-ed .sdx .cs2-pv-chip { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--sdx-ink-700); background: var(--sdx-surface-2); border: 1px solid var(--sdx-line); border-radius: 999px; padding: 2px 9px; max-width: 100%; overflow-wrap: anywhere; }
body.fp-ed .sdx .cs2-pv-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 11px; border-top: 1px solid var(--sdx-line-soft); }
body.fp-ed .sdx .cs2-pv-foot .cs2-pv-del { font-family: 'Inter', sans-serif; font-size: 12px; color: var(--sdx-ink-400); }
body.fp-ed .sdx .cs2-pv-foot .cs2-pv-price { font-family: 'Inter', sans-serif; font-size: 12.5px; color: var(--sdx-ink-400); }
body.fp-ed .sdx .cs2-pv-foot .cs2-pv-price b { font-size: 16px; color: var(--sdx-ink-900); }
body.fp-ed .sdx .cs2-side-hint { font-family: 'Inter', sans-serif; font-size: 11.5px; color: var(--sdx-ink-300); text-align: center; margin: 0; }

/* ---------- success overlay (light sdx polish; keeps buyer-lux animations) ---------- */
body.fp-ed .sdx .cs2-done-card { border-radius: 24px; }
body.fp-ed .sdx .cs2-done-title { font-family: 'Inter', sans-serif; font-size: 24px; font-weight: 800; }
body.fp-ed .sdx .cs2-done-text { font-family: 'Inter', sans-serif; font-size: 14.5px; line-height: 1.6; color: var(--sdx-ink-500); }

/* ---------- entrance ---------- */
@keyframes csxRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
body.fp-ed .sdx .cs2-wrap > .ws-band,
body.fp-ed .sdx .cs2-main > .cs2-card,
body.fp-ed .sdx .cs2-side-sticky { animation: csxRise .5s cubic-bezier(.2,.7,.2,1) both; }
body.fp-ed .sdx .cs2-main > .cs2-card:nth-child(2) { animation-delay: .04s; }
body.fp-ed .sdx .cs2-main > .cs2-card:nth-child(3) { animation-delay: .08s; }
body.fp-ed .sdx .cs2-main > .cs2-card:nth-child(4) { animation-delay: .12s; }
body.fp-ed .sdx .cs2-main > .cs2-card:nth-child(5) { animation-delay: .16s; }
body.fp-ed .sdx .cs2-main > .cs2-card:nth-child(6) { animation-delay: .2s; }
@media (prefers-reduced-motion: reduce) {
  body.fp-ed .sdx .cs2-wrap > .ws-band,
  body.fp-ed .sdx .cs2-main > .cs2-card,
  body.fp-ed .sdx .cs2-side-sticky,
  body.fp-ed .sdx .cs2-pv-dot,
  body.fp-ed .sdx .cs2-card.is-invalid { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  body.fp-ed .sdx .cs2-grid { grid-template-columns: 1fr; }
  body.fp-ed .sdx .cs2-side { order: -1; }
  body.fp-ed .sdx .cs2-side-sticky { position: static; max-height: none; }
  body.fp-ed .sdx .cs2-pv-card { max-width: 440px; }
}
@media (max-width: 560px) {
  body.fp-ed .sdx .cs2-wrap { padding: 18px 14px 80px; }
  body.fp-ed .sdx .cs2-card { padding: 20px 16px; }
  body.fp-ed .sdx .ed-frow { grid-template-columns: 1fr; }
  body.fp-ed .sdx .cs2-up-row { grid-template-columns: 1fr 1fr 34px; }
  body.fp-ed .sdx .cs2-up-name { grid-column: 1 / -1; }
}

/* disabled Publish button (ownership gate) - added 2026-07-26 */
body.fp-ed .sdx .ed-btn[disabled],
body.fp-ed .sdx .ed-btn.is-disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; filter: saturate(.55); }
body.fp-ed .sdx .ed-btn[disabled]:hover,
body.fp-ed .sdx .ed-btn.is-disabled:hover { transform: none; box-shadow: none; }

/* dropdown clipping fix: when a category/subcategory combobox is open, raise its
   card above the following section cards so the options list is never clipped. */
body.fp-ed .sdx .cs-sub-pop { z-index: 80; }
body.fp-ed .sdx .cs2-card:has(.cs-sub-btn[aria-expanded="true"]) { z-index: 60; }
body.fp-ed .sdx .cs2-card:focus-within { z-index: 40; }
