/* ══ Dropshipping — módulo independiente ══ */
.ds, .ds-sheet, .ds-dash { --ds-ac: var(--brand-primary, #7c3aed); --ds-tx: var(--text-primary, #0f172a); --ds-tx2: var(--text-secondary, #475569); --ds-tx3: var(--text-muted, #94a3b8);
  --ds-bd: var(--border, #e7e8ec); --ds-bg: var(--bg-card, #fff); --ds-bg2: var(--bg-app, #f5f6f8); --ds-r: 18px; }
.ds { color: var(--ds-tx); font-family: var(--font, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif); max-width: 1120px; margin: 0 auto; }
.ds *, .ds-sheet * { box-sizing: border-box; }
.ds button, .ds-sheet button { font-family: inherit; -webkit-tap-highlight-color: transparent; }
.ds a, .ds-sheet a { text-decoration: none; -webkit-tap-highlight-color: transparent; }
.ds-sheet { color: var(--ds-tx); }

/* insignias */
.ds-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 750; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; letter-spacing: .005em; }
.ds-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.ds-pill.ok { background: #e6f6ec; color: #11743a; }
.ds-pill.live { background: #e6f6ec; color: #11743a; }
.ds-pill.live i { animation: ds-pulse 1.6s ease-in-out infinite; }
.ds-pill.wait { background: #fff2dc; color: #9a5200; }
.ds-pill.rev { background: #e8f0ff; color: #1d4fd8; }
.ds-pill.bad { background: #fde9e9; color: #c02626; }
.ds-pill.off { background: var(--ds-bg2); color: var(--ds-tx2); }
@keyframes ds-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* botones */
.ds-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px; border: 0; cursor: pointer; background: var(--ds-ac); color: #fff; font-weight: 750; font-size: 15px; white-space: nowrap; transition: filter .15s, transform .15s; }
.ds-btn:hover { filter: brightness(1.06); }
.ds-btn:active { transform: scale(.98); }
.ds-btn[disabled] { opacity: .5; cursor: default; }
.ds-btn.ghost { background: transparent; color: var(--ds-tx); box-shadow: inset 0 0 0 1px var(--ds-bd); }
.ds-btn.soft { background: var(--ds-bg2); color: var(--ds-tx); }
.ds-btn.soft:hover { filter: none; background: color-mix(in srgb, var(--ds-tx) 8%, var(--ds-bg2)); }
.ds-btn.danger { background: #dc2626; }
.ds-btn.sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.ds-btn.lg { height: 52px; font-size: 16px; border-radius: 14px; padding: 0 26px; }
.ds-btn.block { width: 100%; }
.ds-link { background: none; border: 0; padding: 0; color: var(--ds-ac); font-weight: 700; cursor: pointer; font-size: 14px; white-space: nowrap; }
.ds-link.danger { color: #dc2626; }
.ds-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin: 14px 0 18px; }
.ds-mute { color: var(--ds-tx2); font-size: 13.5px; }

/* portada del módulo */
.ds-hero { position: relative; overflow: hidden; border-radius: 26px; color: #fff; isolation: isolate;
  background: radial-gradient(55% 95% at 92% 0%, rgba(255,120,214,.38), transparent 62%), radial-gradient(45% 80% at 68% 115%, rgba(120,90,255,.6), transparent 60%), linear-gradient(135deg, #1b0836 0%, #3a0f6a 48%, #6b1d9e 100%);
  box-shadow: 0 30px 60px -34px rgba(58,15,106,.75); }
.ds-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55; background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.2px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 100%); mask-image: linear-gradient(100deg, transparent 35%, #000 100%); }
.ds-hero::after { content: ""; position: absolute; z-index: -1; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 0 0 46px rgba(255,255,255,.035), 0 0 0 92px rgba(255,255,255,.025); }
.ds-hero-in { padding: 26px 30px 24px; }
.ds-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ds-hero-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.ds-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.ds-hero h1 { margin: 0; font-size: 34px; font-weight: 850; letter-spacing: -.035em; line-height: 1.08; }
.ds-hero p { margin: 8px 0 0; max-width: 620px; font-size: 15.5px; line-height: 1.5; color: rgba(255,255,255,.78); }
.ds-gpill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 750; color: #fff; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); white-space: nowrap; }
.ds-gpill i { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.ds-gpill.ok i { background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
.ds-gpill.wait i { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251,191,36,.25); }
.ds-gpill.bad i { background: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,.25); }
.ds-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 22px; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ds-stat { position: relative; display: block; text-align: left; padding: 14px 18px 15px; border: 0; background: none; color: #fff; cursor: pointer; font: inherit; transition: background .15s; }
.ds-stat + .ds-stat::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: rgba(255,255,255,.14); }
.ds-stat:hover { background: rgba(255,255,255,.07); }
.ds-stat b { display: block; font-size: 27px; font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ds-stat span { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.68); }
.ds-hero.gate { text-align: center; }
.ds-hero.gate .ds-hero-in { padding: 64px 28px; }
.ds-hero.gate h1 { margin-top: 16px; font-size: clamp(28px, 3.6vw, 40px); }
.ds-hero.gate p { margin: 12px auto 26px; }
.ds-btn.light { background: #fff; color: #3a0f6a; box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); }

/* pestañas: barra flotante */
.ds-tabs { margin: 18px 0 22px; padding: 6px; border-radius: 18px; background: var(--ds-bg); box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 16px 34px -26px rgba(58,15,106,.45), 0 0 0 1px var(--ds-bd); }
.ds-tabs-in { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ds-tabs-in::-webkit-scrollbar { display: none; }
.ds-tabs button { border: 0; background: none; padding: 11px 18px; border-radius: 13px; font-size: 14.5px; font-weight: 750; color: var(--ds-tx2); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; transition: background .15s, color .15s; }
.ds-tabs button:hover { background: var(--ds-bg2); color: var(--ds-tx); }
.ds-tabs button.on { color: #fff; background: linear-gradient(135deg, #6d28d9, #a855f7); box-shadow: 0 10px 22px -12px rgba(109,40,217,.8); }
.ds-tabs b { min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 800; background: var(--ds-bg2); color: var(--ds-tx2); }
.ds-tabs button.on b { background: rgba(255,255,255,.24); color: #fff; }
.ds-tabs b.warn { background: #fde9e9; color: #c02626; }
.ds-tabs-sep { width: 1px; height: 22px; background: var(--ds-bd); flex: none; margin: 0 6px; }

/* control segmentado */
.ds-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--ds-bg2); max-width: 100%; overflow-x: auto; scrollbar-width: none; flex: none; }
.ds-seg::-webkit-scrollbar { display: none; }
.ds-seg button { border: 0; background: none; padding: 8px 15px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--ds-tx2); cursor: pointer; white-space: nowrap; }
.ds-seg button.on { background: var(--ds-bg); color: var(--ds-tx); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 .5px rgba(0,0,0,.04); }
.ds-seg b { font-weight: 800; color: var(--ds-tx3); margin-left: 3px; }
.ds-ap { margin-bottom: 16px; }

/* campos */
.ds-f { margin-bottom: 14px; min-width: 0; }
.ds-f > label { display: block; font-size: 13.5px; font-weight: 750; margin-bottom: 7px; }
.ds-in { width: 100%; height: 50px; padding: 0 15px; border-radius: 12px; border: 1px solid var(--ds-bd); background: var(--ds-bg); color: var(--ds-tx); font: 700 16px/1.2 var(--font, inherit); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.ds-in { height: auto; padding: 13px 15px; resize: vertical; line-height: 1.45; }
.ds-in.mono, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; font-weight: 600; }
.ds-in:focus { border-color: var(--ds-ac); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-ac) 16%, transparent); }
.ds-in[disabled] { opacity: .5; }
.ds-in.sm { height: 38px; font-size: 14px; padding: 0 11px; border-radius: 10px; }
.ds-hint { color: var(--ds-tx3); font-size: 12.5px; margin-top: 6px; line-height: 1.4; }
.ds-err { color: #dc2626; font-size: 13.5px; font-weight: 650; margin: -4px 0 12px; }
.ds-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ds-check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 650; cursor: pointer; margin: 4px 0 10px; }
.ds-cb, .ds-radio { width: 20px; height: 20px; accent-color: var(--ds-ac); flex: none; margin: 0; cursor: pointer; }
.ds-form { max-width: 560px; }

/* listas agrupadas */
.ds-group { background: var(--ds-bg); border: 1px solid var(--ds-bd); border-radius: var(--ds-r); overflow: hidden; box-shadow: 0 1px 2px rgba(16,24,40,.03); }
.ds-li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; position: relative; width: 100%; background: none; border: 0; text-align: left; color: inherit; font: inherit; }
.ds-li + .ds-li::before { content: ""; position: absolute; top: 0; left: 18px; right: 0; height: 1px; background: var(--ds-bd); }
.ds-li.click { cursor: pointer; }
.ds-li.click:hover { background: color-mix(in srgb, var(--ds-bg2) 70%, transparent); }
.ds-li > svg { width: 18px; height: 18px; color: var(--ds-tx3); flex: none; }
.ds-li.col { flex-direction: column; align-items: stretch; gap: 0; }
.ds-li-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ds-li-row .ds-in.sm { width: 150px; }
.ds-li-main { flex: 1; min-width: 0; display: block; }
.ds-li-main > b { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; font-weight: 750; line-height: 1.3; }
.ds-li-main > small { display: block; font-size: 13px; color: var(--ds-tx2); margin-top: 3px; line-height: 1.4; }
.ds-li-main > small.one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-li-main > small.mute { color: var(--ds-tx3); font-size: 12px; }
.ds-li-main .ds-pill { margin-top: 6px; }
.ds-li-main > b .ds-pill { margin-top: 0; height: 22px; font-size: 11.5px; }
.ds-li-acts { display: flex; align-items: center; gap: 16px; flex: none; }
.ds-thumb { width: 52px; height: 52px; border-radius: 12px; flex: none; background: var(--ds-bg2) center/cover no-repeat; }
.ds-thumb.lg { width: 64px; height: 64px; border-radius: 14px; }
.ds-li:has(.ds-thumb) + .ds-li::before { left: 84px; }
.ds-num { text-align: right; flex: none; }
.ds-num b { display: block; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ds-num small { display: block; font-size: 12px; color: var(--ds-tx3); margin-top: 2px; }
.gain { color: #11743a; font-style: normal; }

/* textos y mensajes */
.ds-h2 { margin: 0 0 6px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.ds-h3 { margin: 22px 0 10px; font-size: 14px; font-weight: 800; color: var(--ds-tx2); text-transform: uppercase; letter-spacing: .04em; }
.ds-lead { margin: 0 0 18px; color: var(--ds-tx2); font-size: 14.5px; line-height: 1.5; }
.ds-note { padding: 12px 14px; border-radius: 12px; background: var(--ds-bg2); color: var(--ds-tx2); font-size: 13.5px; line-height: 1.45; margin-bottom: 14px; }
.ds-note.bad { background: #fde9e9; color: #a11d1d; }
.ds-msg { text-align: center; padding: 56px 24px; }
.ds-msg.wide { grid-column: 1 / -1; }
.ds-msg.flat { padding: 24px 8px; }
.ds-msg h1 { margin: 0 0 10px; font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.03em; }
.ds-msg h2 { margin: 0 0 10px; font-size: 20px; }
.ds-msg p { margin: 0 auto 20px; max-width: 440px; color: var(--ds-tx2); font-size: 15.5px; line-height: 1.5; }
.ds-msg.big { padding: 90px 24px; }
.ds-skel { height: 72px; border-radius: var(--ds-r); background: linear-gradient(90deg, var(--ds-bg2), var(--ds-bg), var(--ds-bg2)); background-size: 200% 100%; animation: ds-sk 1.2s linear infinite; margin-bottom: 10px; }
@keyframes ds-sk { to { background-position: -200% 0; } }
.ds-ol { margin: 0 0 6px; padding-left: 20px; color: var(--ds-tx); font-size: 14.5px; line-height: 1.5; }
.ds-ol li { padding: 3px 0; }

/* conectar */
.ds-center { max-width: 520px; margin: 18px auto 0; }
.ds-connect h2 { margin: 0 0 8px; font-size: 24px; font-weight: 800; letter-spacing: -.025em; }
.ds-sbody .ds-connect h2 { font-size: 20px; }
.ds-how { margin-top: 16px; }
.ds-how summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--ds-ac); font-weight: 700; font-size: 14px; }
.ds-how summary::-webkit-details-marker { display: none; }
.ds-how summary svg { width: 16px; height: 16px; transition: transform .18s; }
.ds-how[open] summary svg { transform: rotate(180deg); }
.ds-how ol { margin: 10px 0 0; padding-left: 20px; color: var(--ds-tx2); font-size: 14px; line-height: 1.6; }

/* productos */
.ds-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.ds-bulk { margin-left: auto; display: flex; gap: 8px; }
.ds-search { position: relative; flex: 1 1 260px; }
.ds-search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ds-tx3); }
.ds-search .ds-in { padding-left: 44px; }
.ds-cat { flex: 0 1 230px; }
.ds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 18px; }
/* tarjetas de producto */
.ds-card { position: relative; background: var(--ds-bg); border-radius: 22px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 0 0 1px color-mix(in srgb, var(--ds-bd) 70%, transparent), 0 16px 36px -26px rgba(58,15,106,.45); }
.ds-card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 0 0 1px color-mix(in srgb, #a855f7 30%, var(--ds-bd)), 0 26px 50px -28px rgba(58,15,106,.55); }
.ds-card.skel { height: 340px; box-shadow: none; background: linear-gradient(90deg, var(--ds-bg2), var(--ds-bg), var(--ds-bg2)); background-size: 200% 100%; animation: ds-sk 1.2s linear infinite; }
.ds-card-m { position: relative; aspect-ratio: 1 / 1; margin: 8px 8px 0; border-radius: 16px; background: #f3ecff center/cover no-repeat; }
.ds-grid .ds-card:nth-child(5n+2) .ds-card-m { background-color: #ffeef4; }
.ds-grid .ds-card:nth-child(5n+3) .ds-card-m { background-color: #e9f7ef; }
.ds-grid .ds-card:nth-child(5n+4) .ds-card-m { background-color: #fff5e3; }
.ds-grid .ds-card:nth-child(5n+5) .ds-card-m { background-color: #e9f1ff; }
.ds-tag { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; height: 25px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: rgba(255,255,255,.94); color: #1f1235; box-shadow: 0 4px 12px -6px rgba(0,0,0,.3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ds-tag + .ds-tag { top: 41px; }
.ds-tag.ok { background: #e6f6ec; color: #11743a; }
.ds-tag svg { width: 13px; height: 13px; }
.ds-gain { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; height: 27px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 850; color: #fff; background: linear-gradient(135deg, #059669, #22c55e); box-shadow: 0 8px 18px -8px rgba(5,150,105,.8); font-variant-numeric: tabular-nums; }
.ds-card-b { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ds-card-b > strong { font-size: 15px; font-weight: 780; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; letter-spacing: -.005em; }
.ds-price { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.ds-price small { display: block; font-size: 11px; font-weight: 750; color: var(--ds-tx3); text-transform: uppercase; letter-spacing: .04em; }
.ds-price b { display: block; font-size: 19px; font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ds-price .r { text-align: right; }
.ds-price .r span { display: block; font-size: 13.5px; font-weight: 750; color: var(--ds-tx2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ds-card-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.ds-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ds-tx2); font-weight: 700; }
.ds-stock i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.ds-stock.bad { color: #c02626; }
.ds-stock.bad i { background: #ef4444; }
.ds-card-f .ds-btn { background: linear-gradient(135deg, #6d28d9, #a855f7); box-shadow: 0 10px 20px -12px rgba(109,40,217,.9); }
.ds-more { display: flex; justify-content: center; margin: 22px 0 4px; }
.ds-empty { text-align: center; padding: 44px 24px; border-radius: 22px; background: linear-gradient(180deg, #f6f0ff, var(--ds-bg)); box-shadow: 0 0 0 1px var(--ds-bd); }
.ds-empty.wide { grid-column: 1 / -1; }
.ds-empty h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.ds-empty p { margin: 8px auto 0; max-width: 520px; color: var(--ds-tx2); font-size: 14.5px; line-height: 1.55; }
.ds-empty .ds-how { margin-top: 16px; text-align: left; }

/* plataformas (MASTER) */
.ds-plats { display: grid; gap: 12px; }
.ds-plat { padding: 18px 20px; border-radius: 20px; background: var(--ds-bg); box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 0 0 1px var(--ds-bd), 0 16px 34px -28px rgba(58,15,106,.45); }
.ds-plat.cur { box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 0 0 1.5px color-mix(in srgb, #a855f7 45%, var(--ds-bd)), 0 16px 34px -28px rgba(58,15,106,.55); }
.ds-plat-h { display: flex; align-items: center; gap: 12px; }
.ds-plat-n { font-size: 19px; font-weight: 850; letter-spacing: -.02em; }
.ds-plat-h .ds-switch { margin-left: auto; }
.ds-plat-b { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.ds-plat-b .ds-seg { margin-left: auto; }
.ds-plat-note { margin: 12px 0 0; font-size: 13px; color: var(--ds-tx2); line-height: 1.45; }

/* secciones: menú lateral + panel */
.ds-split { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 32px; align-items: start; }
.ds-side { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 12px; }
.ds-side button { border: 0; background: none; text-align: left; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 700; color: var(--ds-tx2); cursor: pointer; }
.ds-side button:hover { background: color-mix(in srgb, var(--ds-bg2) 80%, transparent); color: var(--ds-tx); }
.ds-side button.on { background: var(--ds-bg); color: var(--ds-tx); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 0 0 1px var(--ds-bd); }
.ds-pane { min-width: 0; }
.ds-pane > .ds-seg { margin-bottom: 14px; }

/* ajustes MASTER */
.ds-switch { position: relative; width: 48px; height: 29px; flex: none; }
.ds-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.ds-switch span { position: absolute; inset: 0; border-radius: 999px; background: #d4d8de; transition: background .18s; }
.ds-switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 23px; height: 23px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .18s; }
.ds-switch input:checked + span { background: #22c55e; }
.ds-switch input:checked + span::after { transform: translateX(19px); }
.ds-copy { display: flex; gap: 8px; align-items: center; }
.ds-copy code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; padding: 13px 14px; border-radius: 12px; background: var(--ds-bg); border: 1px solid var(--ds-bd); font: 600 13px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.ds-copy code::-webkit-scrollbar { display: none; }
.ds-ctry { display: grid; gap: 10px; }
.ds-crow { display: grid; grid-template-columns: 58px minmax(0, 1fr) 70px 62px 48px; grid-template-areas: "iso name cur dial sw" "sb sb sb sb sb" "pr pr pr pr pr"; gap: 8px; align-items: center; padding: 12px; border: 1px solid var(--ds-bd); border-radius: 14px; background: var(--ds-bg); }
.ds-crow .ds-in { height: 40px; font-size: 14px; padding: 0 10px; }
.ds-crow [data-c="iso"] { grid-area: iso; } .ds-crow [data-c="name"] { grid-area: name; } .ds-crow [data-c="currency"] { grid-area: cur; } .ds-crow [data-c="dial"] { grid-area: dial; }
.ds-crow .ds-switch { grid-area: sw; } .ds-crow [data-c="sandbox"] { grid-area: sb; } .ds-crow [data-c="production"] { grid-area: pr; }
.ds-out { margin: 10px 0 0; padding: 12px; border-radius: 10px; background: #0f172a; color: #e2e8f0; font: 500 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; max-height: 340px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.ds-out.ok { box-shadow: inset 3px 0 0 #22c55e; }
.ds-out.bad { box-shadow: inset 3px 0 0 #ef4444; }

/* hoja */
.ds-sheet { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(15,18,24,.38);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); opacity: 0; transition: opacity .18s; }
.ds-sheet.in { opacity: 1; }
.ds-card-s { position: relative; width: 100%; max-width: 900px; max-height: calc(100dvh - 48px); background: var(--bg-card, #fff); border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.22); display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(10px) scale(.985); transition: transform .2s; font-family: var(--font, -apple-system, BlinkMacSystemFont, "Inter", sans-serif); }
.ds-sheet.in .ds-card-s { transform: none; }
.ds-card-s.narrow { max-width: 520px; }
.ds-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px 14px 22px; border-bottom: 1px solid var(--ds-bd); }
.ds-top h3 { margin: 0; flex: 1; min-width: 0; font-size: 17.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--ds-bg2); color: var(--ds-tx2); display: grid; place-items: center; cursor: pointer; flex: none; }
.ds-x svg { width: 16px; height: 16px; }
.ds-sbody { flex: 1; min-height: 0; overflow: auto; scrollbar-width: none; padding: 20px 22px 22px; }
.ds-sbody::-webkit-scrollbar { display: none; }
.ds-sbody.two { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; }
.ds-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--ds-bd); }
.ds-imp-img { aspect-ratio: 1 / 1; border-radius: 16px; background: var(--ds-bg2) center/cover no-repeat; }
.ds-thumbs { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.ds-thumbs span { width: 46px; height: 46px; border-radius: 9px; flex: none; background: var(--ds-bg2) center/cover no-repeat; }
.ds-kv { display: grid; border: 1px solid var(--ds-bd); border-radius: 14px; padding: 0 14px; margin: 14px 0; }
.ds-kv div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 14px; }
.ds-kv div + div { border-top: 1px solid var(--ds-bd); }
.ds-kv span { color: var(--ds-tx2); }
.ds-kv b { font-weight: 700; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-earn { display: flex; align-items: center; gap: 8px; min-height: 22px; color: #11743a; font-weight: 750; font-size: 14px; margin: -2px 0 14px; }
.ds-earn svg { width: 17px; height: 17px; }
.ds-sheet .ds-group { box-shadow: none; border-radius: 14px; }
.ds-sheet .ds-li { padding: 12px 14px; }
.ds-sheet .ds-li + .ds-li::before { left: 14px; }

/* pedido */
.ds-ohead { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ds-ohead > div:not(.ds-num) { flex: 1; min-width: 0; }
.ds-ohead strong { display: block; font-size: 16px; }
.ds-ohead span:not(.ds-thumb):not(.ds-pill) { display: block; font-size: 13px; color: var(--ds-tx2); }
.ds-ohead .ds-pill { margin-top: 6px; }
.ds-tl { list-style: none; margin: 0 0 16px; padding: 0; display: flex; gap: 6px; }
.ds-tl li { flex: 1; min-width: 0; }
.ds-tl i { display: block; height: 4px; border-radius: 4px; background: var(--ds-bg2); }
.ds-tl li.done i { background: var(--ds-ac); }
.ds-tl li.now i { background: linear-gradient(90deg, var(--ds-ac) 50%, var(--ds-bg2) 50%); }
.ds-tl.bad li.done i, .ds-tl.bad li.now i { background: #dc2626; }
.ds-tl span { display: block; font-size: 11.5px; color: var(--ds-tx3); margin-top: 6px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-tl li.done span, .ds-tl li.now span { color: var(--ds-tx); }
.ds-fix { border: 1.5px dashed color-mix(in srgb, #dc2626 35%, var(--ds-bd)); border-radius: 14px; padding: 14px 14px 2px; margin-bottom: 14px; }
.ds-fix h4 { margin: 0 0 10px; font-size: 14px; }
.ds-acts-col { display: grid; gap: 10px; margin-top: 6px; }

/* confirmación propia (encima de la hoja) */
.ds-ask { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 20px; background: rgba(15,18,24,.32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ds-ask.fixed { position: fixed; z-index: 10060; }
.ds-ask-c { width: 100%; max-width: 380px; background: var(--bg-card, #fff); color: var(--text-primary, #0f172a); border-radius: 20px; padding: 22px 20px 18px; box-shadow: 0 24px 60px rgba(0,0,0,.25); font-family: var(--font, -apple-system, BlinkMacSystemFont, "Inter", sans-serif); }
.ds-ask-c p { margin: 0 0 18px; font-size: 15.5px; line-height: 1.45; font-weight: 650; }
.ds-ask-c > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* franja del Dashboard */
.ds-dash { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--border, #e7e8ec); border-radius: 16px; background: var(--bg-card, #fff); margin: 0 0 16px; cursor: pointer; }
.ds-dash > div { flex: 1; min-width: 0; font-size: 14.5px; color: var(--text-secondary, #475569); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-dash b { color: var(--text-primary, #0f172a); }
.ds-dash > svg { width: 18px; height: 18px; color: var(--text-muted, #94a3b8); flex: none; }

@media (max-width: 900px) {
  .ds-split { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ds-side { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 6px; margin: 0 -2px; padding: 2px; }
  .ds-side::-webkit-scrollbar { display: none; }
  .ds-side button { white-space: nowrap; flex: none; padding: 9px 14px; border-radius: 999px; background: var(--ds-bg2); font-size: 14px; }
  .ds-side button.on { background: var(--ds-tx); color: var(--ds-bg); box-shadow: none; }
  .ds-sbody.two { grid-template-columns: minmax(0, 1fr); }
  .ds-imp-media { max-width: 360px; }
}
@media (max-width: 640px) {
  .ds-hero { border-radius: 22px; }
  .ds-hero-in { padding: 18px 18px 16px; }
  .ds-hero p { font-size: 14px; }
  .ds.has-tabs .ds-hero p { display: none; }
  .ds-hero h1 { font-size: 23px; }
  .ds.has-tabs .ds-chip { display: none; }
  .ds-hero-top { margin-bottom: 10px; }
  .ds-stats { margin-top: 14px; border-radius: 14px; }
  .ds-stat { padding: 10px 8px 11px; text-align: center; }
  .ds-stat + .ds-stat::before { top: 10px; bottom: 10px; }
  .ds-stat b { font-size: 20px; }
  .ds-stat span { font-size: 10.5px; line-height: 1.2; }
  .ds-tabs { margin: 14px 0 16px; padding: 5px; border-radius: 16px; }
  .ds-tabs button { padding: 10px 14px; font-size: 14px; }
  .ds-card-m { margin: 6px 6px 0; border-radius: 14px; }
  .ds-price b { font-size: 16px; }
  .ds-price .r { display: none; }
  .ds-gain { height: 24px; font-size: 11.5px; padding: 0 9px; left: 8px; bottom: 8px; }
  .ds-hero.gate .ds-hero-in { padding: 44px 20px; }
  .ds-plat-b .ds-seg { margin-left: 0; width: 100%; }
  .ds-plat-b .ds-seg button { flex: 1; }
  .ds-dash { display: none; }
  .ds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ds-card-b { padding: 10px 11px 12px; }
  .ds-card-f .ds-btn { width: 100%; }
  .ds-card-f .ds-stock { display: none; }
  .ds-cat { flex: 1 1 100%; }
  .ds-bar > .ds-seg { max-width: 100%; }
  .ds-li { padding: 13px 14px; gap: 12px; }
  .ds-li + .ds-li::before { left: 14px; }
  .ds-li:has(.ds-thumb) + .ds-li::before { left: 78px; }
  .ds-li:not(.col):has(.ds-li-acts) { flex-wrap: wrap; }
  .ds-li-acts { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 10px 18px; padding-left: 0; }
  .ds-li:has(.ds-seg) { flex-wrap: wrap; }
  .ds-li > .ds-seg { width: 100%; }
  .ds-li > .ds-seg button { flex: 1; }
  .ds-li-row .ds-in.sm { flex: 1 1 120px; width: auto; }
  .ds-num small { display: none; }
  .ds-row2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ds-sheet { padding: 2dvh 2vw; align-items: flex-end; }
  .ds-card-s { max-width: none; width: 96vw; height: 96dvh; max-height: 96dvh; border-radius: 20px; }
  .ds-card-s.narrow { height: auto; }
  .ds-sbody { padding: 16px; }
  .ds-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .ds-foot .ds-btn { width: 100%; }
  .ds-ohead { flex-wrap: wrap; row-gap: 10px; }
  .ds-ohead .ds-num { flex: 1 1 100%; display: flex; align-items: baseline; justify-content: space-between; text-align: left; padding: 10px 12px; border-radius: 12px; background: var(--ds-bg2); }
  .ds-ohead .ds-num small { display: block; }
  .ds-tl span { font-size: 10.5px; }
  .ds-tl li:not(.now):not(.done) span { visibility: hidden; }
  .ds-kv div { flex-wrap: wrap; }
  .ds-kv b { white-space: normal; overflow: visible; }
  .ds-crow { grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1fr) 48px; grid-template-areas: "iso name name name" "cur cur dial sw" "sb sb sb sb" "pr pr pr pr"; }
  .ds-msg.big { padding: 56px 16px; }
}
.ds-skel.hero { height: 210px; border-radius: 26px; }
