
.sv-filters { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:18px; flex-wrap:wrap; }
.sv-filter-tabs { display:flex; gap:6px; flex-wrap:wrap; }
.sv-ftab { background:var(--card); border:1px solid var(--border); border-radius:6px; padding:7px 14px; font-size:12px; font-weight:600; color:var(--text-2); font-family:inherit; cursor:pointer; transition:all .15s; }
.sv-ftab:hover { border-color:#242424; color:#cbd5e1; }
.sv-ftab.active { background:rgba(184,246,253,.15); border-color:var(--accent); color:var(--accent); }
.sv-table-wrap { margin-top:16px; border:1px solid var(--border); border-radius:6px; overflow:hidden; }
.sv-table { width:100%; border-collapse:collapse; }
.sv-table thead th { text-align:left; font-size:11px; font-weight:600; color:var(--text-3); text-transform:uppercase; letter-spacing:.4px; padding:11px 16px; background:#0a0a0a; border-bottom:1px solid var(--border); }
.sv-table tbody td { padding:13px 16px; border-bottom:1px solid #0f0f0f; font-size:13px; color:#cbd5e1; vertical-align:middle; }
.sv-table tbody tr:last-child td { border-bottom:none; }
.sv-table tbody tr { cursor:pointer; transition:background .12s; }
.sv-table tbody tr:hover { background:#0a0a0a; }
.sv-buyer-name { font-weight:600; color:#ffffff; }
.sv-buyer-email { font-size:11px; color:var(--text-3); margin-top:1px; }
.sv-method { display:inline-flex; align-items:center; gap:7px; font-size:12px; color:var(--text-2); }
.sv-method .sv-mic { flex-shrink:0; vertical-align:middle; }
.sv-badge { display:inline-block; font-size:11px; font-weight:700; padding:3px 10px; border-radius:20px; }
.sv-badge.aprovado { color:#10b981; background:rgba(16,185,129,.12); }
.sv-badge.pendente { color:#fbbf24; background:rgba(251,191,36,.12); }
.sv-badge.reembolsado { color:#94a3b8; background:rgba(148,163,184,.12); }
.sv-badge.reembolsado_parcial { color:#a78bfa; background:rgba(167,139,250,.12); }
.sv-badge.chargeback { color:#ef4444; background:rgba(239,68,68,.12); }
.sv-detail-arrow { color:var(--text-3); }
.sv-actions { display:flex; gap:8px; margin-top:18px; flex-wrap:wrap; }
.sv-act { flex:1; min-width:120px; padding:11px 14px; border-radius:6px; font-size:13px; font-weight:600; font-family:inherit; cursor:pointer; border:1px solid transparent; transition:all .15s; }
.sv-act-danger { background:rgba(239,68,68,.1); border-color:rgba(239,68,68,.4); color:#ef4444; }
.sv-act-danger:hover { background:rgba(239,68,68,.18); }
.sv-act-ok { background:rgba(16,185,129,.1); border-color:rgba(16,185,129,.4); color:#10b981; }
.sv-act-ok:hover { background:rgba(16,185,129,.18); }
.sv-act-ghost { background:transparent; border-color:var(--border); color:var(--text-2); }
.sv-act-ghost:hover { border-color:var(--accent); color:#cbd5e1; }
#svDetailModal { display:none; position:fixed; inset:0; z-index:99998; background:rgba(0,0,0,.7); align-items:center; justify-content:center; padding:20px; }
#svDetailModal.open { display:flex; }
.sv-detail-card { background:var(--card); border:1px solid var(--border); border-radius:6px; width:100%; max-width:460px; max-height:85vh; overflow-y:auto; }
.sv-detail-head { padding:18px 20px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; }
.sv-detail-body { padding:20px; }
.sv-detail-row { display:flex; justify-content:space-between; gap:14px; padding:9px 0; border-bottom:1px solid #0f0f0f; font-size:13px; }
.sv-detail-row:last-child { border-bottom:none; }
.sv-detail-label { color:var(--text-3); }
.sv-detail-val { color:#fff; font-weight:600; text-align:right; }
#checkoutView { display:none; position:fixed; top:0; left:0; right:0; bottom:0; height:100vh; background:#000000; z-index:120; overflow:hidden; flex-direction:column; }
body.co-open #main { overflow:hidden; }
body.ov-open #main { overflow:hidden; }
#checkoutView.open { display:flex; }
#checkoutView .mv-top { flex-shrink:0; }
.cob-layout { flex:1; min-height:0; display:grid; grid-template-columns:minmax(0,1fr) minmax(340px,400px); gap:24px; padding:24px 28px; max-width:none; margin:0; align-items:stretch; overflow:hidden; width:100%; }
.cob-grid { order:2; }
.cob-preview-col { order:1; }
.cob-grid { display:grid; grid-template-columns:1fr; gap:18px; min-width:0; min-height:0; overflow-y:auto; align-content:start; padding-right:4px; }
.cob-preview-col { min-height:0; display:flex; flex-direction:column; gap:0; overflow:hidden; }
.cob-dev-btn { background:transparent; border:1px solid #2a2a2a; border-radius:6px; padding:7px 9px; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.cob-dev-btn svg { width:18px; height:18px; stroke:var(--text-2); }
.cob-dev-btn:hover { border-color:#3a4a63; }
.cob-dev-btn:hover svg { stroke:#cbd5e0; }
.cob-dev-btn.active { background:var(--accent); border-color:var(--accent);color:var(--accent-ink); }
.cob-dev-btn.active svg { stroke:#fff; }
.cob-dev-top { display:flex; gap:6px; }
.cob-tabs { display:flex; gap:4px; background:var(--card); border-radius:6px; padding:4px; position:sticky; top:0; z-index:5; margin-bottom:4px; }
.cob-tab { flex:1; background:transparent; border:none; color:var(--text-2); font-size:13px; font-weight:600; padding:9px; border-radius:6px; cursor:pointer; font-family:inherit; }
.cob-tab.active { background:var(--card); color:#fff; }
.cob-pane { display:flex; flex-direction:column; gap:18px; }
.cmp-sec-title { font-size:11px; font-weight:700; color:var(--text-2); text-transform:uppercase; letter-spacing:.5px; margin-bottom:-6px; }
.cmp-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.cmp-btn { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; background:var(--card); border:none; border-radius:6px; padding:18px 10px; color:#cbd5e0; font-size:12px; font-weight:500; cursor:pointer; font-family:inherit; box-shadow:0 2px 8px rgba(0,0,0,.4); transition:transform .12s, color .12s; }
.cmp-btn:hover { transform:translateY(-2px); color:#fff; }
.cmp-btn svg { width:22px; height:22px; }
.cob-block { background:var(--card); border-radius:6px; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,.35); }
.cob-block-head { display:flex; align-items:center; justify-content:space-between; padding:11px 13px; cursor:pointer; }
.cob-block-name { font-size:13px; font-weight:600; color:#e5e7eb; }
.cob-block-acts { display:flex; gap:4px; }
.cob-block-acts button { background:var(--card); border:1px solid #262626; color:#9aa4b2; width:24px; height:24px; border-radius:6px; cursor:pointer; font-size:12px; line-height:1; }
.cob-block-acts button:hover { border-color:#3a4a63; color:#fff; }
.cob-block-acts button.cob-del:hover { border-color:#7f1d1d; color:#f87171; }
.cob-block-body { padding:2px 13px 13px; display:flex; flex-direction:column; gap:8px; }
.cmp-x { position:relative; display:flex; flex-direction:column; align-items:center; gap:7px; background:var(--card); border:1px solid #222; border-radius:6px; padding:15px 10px 12px; text-align:center; transition:.15s; }
.cmp-x.on { border-color:#2563eb; background:#16181f; }
.cmp-x-ico svg { width:22px; height:22px; color:#cbd5e0; }
.cmp-x.on .cmp-x-ico svg { color:var(--accent); }
.cmp-x-lbl { font-size:12px; color:#e5e7eb; font-weight:600; line-height:1.25; }
.cmp-x-tg { position:absolute; top:9px; right:9px; }
.cmp-x-cfg { font-size:11px; color:#9aa4b2; background:var(--card); border:1px solid #262626; border-radius:6px; padding:3px 12px; cursor:pointer; }
.cmp-x-cfg:hover { border-color:#3a4a63; color:#fff; }
.px-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin-top:12px; }
.px-card { position:relative; display:flex; flex-direction:column; align-items:center; gap:8px; background:var(--card); border:1px solid #222; border-radius:6px; padding:16px 10px 12px; text-align:center; transition:.15s; }
.px-card.on { border-color:#2563eb; background:#16181f; }
.px-tg { position:absolute; top:9px; right:9px; }
.px-ini { width:34px; height:34px; border-radius:6px; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800; font-size:13px; letter-spacing:.5px; }
.px-lbl { font-size:12px; color:#e5e7eb; font-weight:600; }
.coxm { position:fixed; inset:0; z-index:1000; display:flex; align-items:center; justify-content:center; padding:20px; }
.coxm-overlay { position:absolute; inset:0; background:rgba(0,0,0,.62); backdrop-filter:blur(2px); }
.coxm-box { position:relative; background:#0f0f10; border:1px solid #262626; border-radius:6px; width:100%; max-width:680px; max-height:86vh; overflow:auto; box-shadow:0 30px 80px rgba(0,0,0,.6); }
.coxm-head { display:flex; align-items:center; justify-content:space-between; padding:15px 20px; border-bottom:1px solid #1e1e1e; position:sticky; top:0; background:#0f0f10; z-index:2; }
.coxm-head span { font-size:15px; font-weight:700; color:#fff; }
.coxm-x { background:#1a1a1a; border:1px solid #2a2a2a; color:#9aa4b2; width:30px; height:30px; border-radius:6px; cursor:pointer; }
.coxm-x:hover { color:#fff; border-color:#3a3a3a; }
.coxm-cols { display:grid; grid-template-columns:1fr; }
.coxm-cols.has-prev { grid-template-columns:1fr 1fr; }
.coxm-cfg { padding:18px 20px; display:flex; flex-direction:column; gap:12px; }
.coxm-cfg .cob-field { display:flex; flex-direction:column; gap:5px; }
.coxm-cfg .cob-label { display:block; font-size:12px; color:#9aa4b2; font-weight:500; }
.coxm-cfg .cob-input { width:100%; box-sizing:border-box; }
.coxm-prev { padding:18px 20px; background:var(--card); border-left:1px solid #1e1e1e; display:flex; flex-direction:column; gap:10px; }
.coxm-prev-label { font-size:11px; text-transform:uppercase; letter-spacing:.5px; color:var(--text-3); font-weight:700; }
.cob-block[draggable=true] { cursor:grab; }
.cob-grip { color:#5b677a; }
.cob-zone-badge { font-size:11px; font-weight:600; color:var(--text-2); background:var(--card); border-radius:4px; padding:1px 6px; margin-left:4px; }
#coDropOverlay { position:absolute; inset:0; z-index:40; pointer-events:none; }
.co-dropzone { position:absolute; left:14px; right:14px; height:60px; display:flex; align-items:center; justify-content:center; border:2px dashed var(--accent); border-radius:6px; color:#fff; font-weight:700; font-size:13px; background:rgba(184,246,253,.16); pointer-events:auto; transition:.12s; }
.co-dz-top { top:14px; }
.co-dz-bottom { bottom:14px; }
.co-dropzone.over { border-style:solid; background:rgba(184,246,253,.34); transform:scale(1.01); }
.cob-preview-stage { position:relative; background:#000000; border:none; border-radius:0; padding:18px; display:flex; justify-content:center; align-items:flex-start; overflow:auto; flex:1; min-height:0; }
.cob-preview-frame { background:#fff; border-radius:8px; overflow:hidden; box-shadow:0 10px 40px rgba(0,0,0,.5); transition:width .25s ease, max-width .25s ease; width:100%; max-width:100%; height:100%; }
.cob-preview-frame.dev-mobile { width:min(390px, 68%); max-width:390px; }
.cob-preview-frame.dev-tablet { width:min(820px, 85%); max-width:820px; }
.cob-preview-frame.dev-desktop { width:100%; max-width:100%; }
.cob-preview-frame iframe { width:100%; height:100%; border:none; display:block; }

/* Moldura de iPhone para preview mobile */
.cob-preview-frame.dev-mobile {
  position: relative;
  border-radius: 42px;
  padding: 12px;
  background: linear-gradient(145deg, #2c2c2e 0%, #1c1c1e 100%);
  box-shadow:
    0 0 0 2px #1c1c1e,
    0 0 0 3px #3a3a3c,
    0 20px 60px rgba(0,0,0,.6),
    inset 0 0 2px rgba(255,255,255,.1);
}

/* Notch (ilha dinâmica) no topo */
.cob-preview-frame.dev-mobile::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 30px;
  background: #000;
  border-radius: 0 0 18px 18px;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,.3);
}

/* Barra de home (gesture bar) embaixo */
.cob-preview-frame.dev-mobile::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 4px;
  background: rgba(255,255,255,.4);
  border-radius: 2px;
  z-index: 10;
}

/* Ajusta iframe para caber dentro da moldura */
.cob-preview-frame.dev-mobile iframe {
  border-radius: 30px;
  background: #fff;
}
.cob-select { background:var(--card); border:1px solid var(--border); border-radius:6px; color:#fff; font-family:inherit; font-size:13px; padding:9px 12px; }
.cob-field { margin-bottom:14px; }
.cob-field:last-child { margin-bottom:0; }
.cob-color-row { display:flex; align-items:center; gap:10px; }
.cob-color-row input[type=color] { width:42px; height:34px; border:1px solid var(--border); border-radius:6px; background:var(--card); cursor:pointer; padding:2px; }
.cob-bump-item { display:flex; align-items:center; gap:10px; padding:10px 12px; background:#050505; border:1px solid var(--border); border-radius:6px; margin-top:8px; font-size:13px; color:#cbd5e0; }
.cob-bump-item .cob-bp { margin-left:auto; color:#10b981; font-weight:700; }
.pd-status-seg { display:inline-flex; background:#0a0a0a; border:1px solid var(--border); border-radius:6px; padding:3px; gap:2px; }
.pd-st-opt { padding:6px 14px; border-radius:6px; font-size:12px; font-weight:600; color:var(--text-2); background:transparent; border:none; font-family:inherit; cursor:pointer; transition:all .15s; white-space:nowrap; }
.pd-st-opt:hover { color:#cbd5e1; }
.pd-st-opt.active[data-status="ativo"] { background:rgba(16,185,129,.15); color:#10b981; }
.pd-st-opt.active[data-status="pausado"] { background:rgba(245,158,11,.15); color:#f59e0b; }
.pd-st-opt.active[data-status="oculto"] { background:rgba(74,85,104,.3); color:#cbd5e1; }
.cp-label { font-size:13px; color:var(--text-2); font-weight:600; margin-bottom:7px; display:block; }
.cp-input { width:100%; background:var(--card); border:1px solid var(--border); border-radius:6px; padding:11px 13px; font-size:14px; color:#ffffff; font-family:inherit; outline:none; }
.cp-input:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(184,246,253,.22); }
.cp-input::placeholder { color:#2a3a50; }
.cp-field { margin-bottom:20px; }
.cp-price-row { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.cp-price-preview { display:flex; align-items:baseline; gap:10px; margin-top:14px; }
.cp-pp-de { font-size:14px; color:var(--text-3); text-decoration:line-through; }
.cp-pp-por { font-size:16px; font-weight:800; color:#10b981; }
.pd-deliv-btn { background:transparent; border:1px solid var(--border); border-radius:6px; color:var(--text-2); cursor:pointer; padding:6px 11px; font-size:11px; font-family:inherit; }
.pd-deliv-btn:hover { border-color:var(--accent); color:#fff; }
.pd-deliv-btn-del { color:#ef4444; }
.pd-deliv-btn-del:hover { background:#450a0a; border-color:#ef4444; color:#ef4444; }
.po-item { display:flex; align-items:center; gap:12px; padding:12px 14px; background:var(--card); border:1px solid var(--border); border-radius:6px; margin-bottom:8px; }
.po-info { flex:1; min-width:0; }
.po-name { font-size:13px; font-weight:700; color:#fff; }
.po-meta { font-size:12px; color:var(--text-2); margin-top:3px; word-break:break-all; }
.po-meta s { color:var(--text-3); }
.po-link { color:var(--accent); }
.po-acts { display:flex; gap:6px; flex-shrink:0; flex-wrap:wrap; justify-content:flex-end; }
.cp-price-input { display:flex; align-items:stretch; border:1px solid var(--border); border-radius:6px; overflow:hidden; background:var(--card); }
.cp-price-input:focus-within { border-color:var(--accent); box-shadow:0 0 0 3px rgba(184,246,253,.22); }
.cp-price-prefix { background:#050505; color:var(--text-2); font-size:13px; font-weight:600; padding:11px 13px; border-right:1px solid var(--border); display:flex; align-items:center; }
.cp-price-input input { flex:1; background:transparent; border:none; padding:11px 13px; font-size:14px; color:#ffffff; outline:none; font-family:inherit; }
#sidebar .nav-item, #topbar button { cursor:default; }
.cp-switch { position:relative; width:42px; height:24px; flex-shrink:0; cursor:pointer; }
.cp-switch input { opacity:0; width:0; height:0; }
.cp-switch .sl { position:absolute; inset:0; background:#1c1c1c; border-radius:20px; transition:.2s; }
.cp-switch .sl::before { content:''; position:absolute; height:18px; width:18px; left:3px; top:3px; background:var(--text-2); border-radius:50%; transition:.2s; }
.cp-switch input:checked + .sl { background:var(--accent);color:var(--accent-ink); }
.cp-switch input:checked + .sl::before { transform:translateX(18px); background:#fff; }
.cp-hint-sm { font-size:12px; color:var(--text-3); margin-top:7px; }
.cp-dropzone-btn { display:inline-flex; align-items:center; justify-content:center; padding:0 26px; height:42px; background:var(--accent); border:none; border-radius:6px; color:var(--accent-ink); font-size:14px; font-weight:600; font-family:inherit; cursor:pointer; transition:background .15s; }
.cp-dropzone-btn:hover { background:var(--accent-hover);color:var(--accent-ink); }
.cp-dropzone-btn:active { transform:scale(.985); }
#productDetail { display:none; }
#productDetail.open { display:block; }
.pd-back { display:inline-flex; align-items:center; gap:7px; background:transparent; border:none; color:var(--text-2); font-size:13px; font-weight:600; font-family:inherit; cursor:pointer; padding:6px 0; margin-bottom:16px; }
.pd-back:hover { color:#ffffff; }
.pd-head { display:flex; align-items:center; gap:16px; margin-bottom:22px; }
.pd-head-thumb { width:54px; height:54px; border-radius:6px; display:flex; align-items:center; justify-content:center; font-size:26px; overflow:hidden; flex-shrink:0; }
.pd-head-info { flex:1; min-width:0; }
.pd-head-name { font-size:20px; font-weight:800; color:#ffffff; }
.pd-head-desc { font-size:13px; color:var(--text-2); margin-top:3px; line-height:1.4; max-width:560px; }
.pd-head-id { font-size:12px; color:var(--text-3); margin-top:4px; }
.pd-save-status { font-size:12px; font-weight:600; color:#10b981; opacity:0; transition:opacity .25s; }
.pd-save-status.show { opacity:1; }
.pd-save-global { flex-shrink:0; white-space:nowrap; align-self:center; }
.pd-tx-item { border:1px solid var(--border); border-radius:6px; margin-bottom:8px; overflow:hidden; }
.pd-tx-head { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:11px 14px; }
.pd-tx-title { font-size:13px; font-weight:600; color:#d0d4dc; cursor:pointer; flex:1; }
.pd-tx-title:hover { color:#fff; }
.pd-tx-body { padding:0 14px 14px; border-top:1px solid var(--border); }
.pd-billing-seg { display:flex; gap:8px; }
.pd-bill-opt { flex:1; padding:11px 12px; background:var(--card); border:1px solid var(--border); border-radius:6px; color:var(--text-2); cursor:pointer; font-size:13px; font-weight:600; font-family:inherit; transition:all .12s; }
.pd-bill-opt:hover { color:#fff; border-color:var(--accent); }
.pd-bill-opt.active { background:var(--detail); color:#fff; border-color:var(--accent); }
.co-field-cfg { border:1px solid var(--border); border-radius:6px; overflow:hidden; }
.co-field-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:11px 13px; border-bottom:1px solid var(--border); font-size:13px; color:#d0d4dc; }
.co-field-opts { display:flex; gap:14px; flex-shrink:0; }
.co-field-chk { display:flex; align-items:center; gap:5px; font-size:12px; color:var(--text-2); cursor:pointer; user-select:none; }
.co-field-chk input { accent-color:var(--accent); }
.pd-kpis { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:0; margin-top:16px; }
.pd-chart-card { background:var(--card); border:1px solid var(--border); border-radius:6px; padding:18px; margin-top:16px; }
.pd-chart-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:10px; }
.pd-chart-title { font-size:13px; font-weight:700; color:#fff; }
.pd-chart-sub { font-size:12px; color:var(--text-2); margin-top:3px; }
.pd-chart-sub b { color:#cbd5e0; }
.pd-chart-periods { display:flex; gap:4px; }
.pd-chart-pbtn { background:transparent; border:1px solid var(--border); border-radius:6px; color:var(--text-2); cursor:pointer; padding:6px 12px; font-size:12px; font-weight:600; font-family:inherit; }
.pd-chart-pbtn:hover { color:#fff; border-color:var(--accent); }
.pd-chart-pbtn.active { background:var(--detail); color:#fff; border-color:var(--accent); }
#pdChart svg { width:100%; height:auto; display:block; }
.pd-kpi { background:var(--card); border:1px solid var(--border); border-radius:6px; padding:18px 20px; transition:border-color .15s, transform .15s; }
.pd-kpi:hover { border-color:#2a3344; transform:translateY(-1px); }
.pd-kpi-label { font-size:12px; color:var(--text-2); font-weight:600; margin-bottom:8px; }
.pd-kpi-value { font-size:26px; font-weight:800; color:#ffffff; }
.pd-card { background:#000000; border:none; border-radius:6px; overflow:hidden; display:flex; align-items:stretch; }
.pd-nav { flex-shrink:0; width:230px; background:#0a0a0a; border-right:none; padding:14px 10px; display:flex; flex-direction:column; gap:2px; }
.pd-nav-label { font-size:11px; font-weight:700; letter-spacing:.7px; text-transform:uppercase; color:var(--text-3); padding:14px 12px 6px; }
.pd-nav-label.first { padding-top:4px; }
.pd-tab { display:flex; align-items:center; gap:10px; padding:11px 12px; font-size:13px; font-weight:600; color:var(--text-2); cursor:pointer; background:transparent; border:none; border-radius:6px; font-family:inherit; transition:all .12s; white-space:nowrap; text-align:left; width:100%; }
.pd-tab:hover { color:#ffffff; background:var(--card); }
.pd-tab.active { color:#ffffff; background:var(--detail); }
.pd-tab.active svg { stroke:var(--accent); }
.pd-pane { display:none; }
.pd-pane.active { display:block; animation:pdFade .18s ease; }
@keyframes pdFade { from { opacity:0; transform:translateY(3px); } to { opacity:1; transform:none; } }
.pd-body { padding:4px 24px 24px; flex:1; min-width:0; }
body.pd-open #main { overflow:hidden; }
body.pd-open #page-products { height:calc(100vh - 62px); display:flex; flex-direction:column; padding-bottom:0; min-height:0; }
#productDetail.open { flex:1; min-height:0; display:flex; flex-direction:column; }
#productDetail.open .pd-back, #productDetail.open .pd-head { flex-shrink:0; }
#productDetail.open .pd-card { flex:1; min-height:0; }
#productDetail.open .pd-body { overflow-y:auto; }
#productDetail.open .pd-nav { overflow-y:auto; }
.pd-pane.pd-form-pane { max-width:820px; margin-left:auto; margin-right:auto; }
.pd-section { background:var(--card); border:none; border-radius:6px; padding:20px 22px; margin-bottom:44px; box-shadow:0 2px 10px rgba(0,0,0,.5); }
[data-pdpane="painel"] .pd-section,
  [data-pdpane="vendas"] .pd-section,
  [data-pdpane="membros"] .pd-section { background:transparent; border:none; padding:0; box-shadow:none; }
[data-pdpane="painel"] .pd-kpi,
  [data-pdpane="vendas"] .pd-kpi,
  [data-pdpane="painel"] .pd-chart-card,
  [data-pdpane="vendas"] .pd-chart-card { border:none; background:var(--card); box-shadow:0 2px 10px rgba(0,0,0,.45); }
[data-pdpane="painel"] .pd-kpi:hover,
  [data-pdpane="vendas"] .pd-kpi:hover { border:none; transform:translateY(-2px); box-shadow:0 6px 16px rgba(0,0,0,.55); }
.pd-section:last-child { margin-bottom:0; }
.pd-section-title { font-size:15px; font-weight:700; color:#ffffff; margin-bottom:16px; }
.pd-coupon-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
.pd-coupon-list { margin-top:20px; }
.pd-coupon-item { display:flex; align-items:center; justify-content:space-between; padding:12px 16px; background:#050505; border:1px solid var(--border); border-radius:6px; margin-bottom:8px; }
.pd-coupon-code { font-size:14px; font-weight:700; color:#ffffff; font-family:monospace; }
.pd-coupon-meta { font-size:12px; color:var(--text-2); margin-top:2px; }
.pd-coupon-del { background:transparent; border:1px solid var(--border); border-radius:6px; color:#ef4444; cursor:pointer; padding:6px 10px; font-size:12px; }
.pd-coupon-del:hover { background:#450a0a; }
.pd-empty { text-align:center; padding:30px; color:var(--text-3); font-size:13px; }
#ncBulkBar { display:none; align-items:center; gap:12px; padding:12px 16px; background:var(--detail); border:1px solid var(--accent); border-radius:6px; margin-bottom:14px; }
#ncBulkBar.show { display:flex; }
.nc-bulk-count { font-size:13px; font-weight:700; color:#ffffff; }
.nc-bulk-actions { display:flex; gap:8px; margin-left:auto; }
.nc-bulk-btn { display:inline-flex; align-items:center; gap:6px; padding:0 12px; height:32px; background:var(--card); border:1px solid var(--border); border-radius:6px; color:#ffffff; font-size:12.5px; font-weight:600; font-family:inherit; cursor:pointer; transition:all .12s; }
.nc-bulk-btn:hover { border-color:var(--accent); }
.nc-bulk-btn.danger { position:relative; margin-left:16px; color:#ef4444; border-color:#ef444466; background:rgba(239,68,68,.08); }   /* Excluir: vermelho e separado das demais ações */
.nc-bulk-btn.danger::before { content:""; position:absolute; left:-9px; top:6px; bottom:6px; width:1px; background:var(--accent);color:var(--accent-ink); }
.nc-bulk-btn.danger:hover { border-color:#ef4444; color:#ef4444; background:rgba(239,68,68,.16); }
.of-check { display:flex; align-items:flex-start; gap:10px; padding:10px 0; cursor:pointer; }
.of-check input { width:17px; height:17px; accent-color:var(--accent); margin-top:1px; flex-shrink:0; }
.of-check-text { flex:1; }
.of-check-title { font-size:13.5px; font-weight:600; color:#fff; }
.of-check-sub { font-size:11.5px; color:var(--text-2); margin-top:2px; }
.of-divline { height:1px; background:#1c1c1c; margin:14px 0; }
.of-offer-tabs { display:flex; gap:4px; background:#050505; border:1px solid var(--border); border-radius:6px; padding:4px; margin-bottom:16px; }
.of-offer-tab { flex:1; padding:9px; border-radius:6px; font-size:12.5px; font-weight:600; color:var(--text-2); cursor:pointer; background:transparent; border:none; font-family:inherit; }
.of-offer-tab.active { background:var(--card); color:#fff; }
.of-list { margin-top:14px; }
.of-empty { text-align:center; padding:24px; color:var(--text-3); font-size:13px; }
.of-offer-pane { display:none; }
.of-offer-pane.active { display:block; }
.ma-radio { flex:1; padding:12px; border:1px solid var(--border); border-radius:5px; cursor:pointer; transition:all .12s; }
.ma-radio:hover { border-color:#242424; }
.ma-radio.sel { border-color:var(--accent); background:var(--detail); }
.ma-cover-drop { border:2px dashed #242424; border-radius:5px; padding:20px; text-align:center; cursor:pointer; font-size:12px; color:var(--text-2); }
.ma-cover-drop:hover { border-color:var(--accent); }
.ncic { width:1em; height:1em; display:inline-block; vertical-align:-.14em; }
.pdfu-sep { height:1px; background:#1c1c1c; margin:26px 0 18px; }
.pdfu-empty { font-size:12.5px; color:var(--text-3); padding:18px 4px; text-align:center; line-height:1.5; }
.ofpv-modal { display:none; position:fixed; inset:0; z-index:200; }
.ofpv-modal.open { display:block; }
.ofpv-overlay { position:absolute; inset:0; background:rgba(0,0,0,.6); backdrop-filter:blur(2px); }
.ofpv-box { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:min(940px,94vw); max-height:90vh; background:var(--card); border:1px solid #232323; border-radius:6px; display:flex; flex-direction:column; overflow:hidden; }
.ofpv-head { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid var(--border); }
.ofpv-title { font-size:15px; font-weight:800; color:#fff; }
.ofpv-x { background:none; border:none; color:var(--text-2); font-size:24px; cursor:pointer; line-height:1; }
.ofpv-x:hover { color:#fff; }
.ofpv-tabs { display:flex; gap:6px; padding:12px 20px 0; flex-wrap:wrap; }
.ofpv-tab { padding:8px 16px; border:1px solid #232323; background:var(--card); color:var(--text-2); font-size:13px; font-weight:700; font-family:inherit; border-radius:6px 6px 0 0; cursor:pointer; }
.ofpv-tab.active { background:var(--accent); border-color:var(--accent); color:var(--accent-ink); }
.ofpv-body { display:grid; grid-template-columns:320px 1fr; gap:0; min-height:0; flex:1; }
.ofpv-config { padding:20px; overflow-y:auto; border-right:1px solid var(--border); }
.ofpv-stagewrap { background:#f8f9fa; overflow-y:auto; padding:20px; display:flex; flex-direction:column; }
.ofpv-stage-hint { font-size:12px; color:#6c757d; font-weight:600; margin-bottom:14px; text-align:center; }
.ofpv-stage { flex:1; display:flex; align-items:flex-start; justify-content:center; }
.ofpv-cfg-field { margin-bottom:14px; }
.ofpv-cfg-field label { display:block; font-size:11px; font-weight:700; color:var(--text-2); text-transform:uppercase; letter-spacing:.3px; margin-bottom:6px; }
.ofpv-cfg-field input[type=text] { width:100%; padding:9px 11px; background:#000; border:1px solid #232323; border-radius:6px; color:#fff; font-size:13px; font-family:inherit; outline:none; }
.ofpv-cfg-field input[type=text]:focus { border-color:var(--accent); }
.ofpv-cfg-color { display:flex; align-items:center; gap:10px; }
.ofpv-cfg-color input[type=color] { width:42px; height:34px; border:1px solid #232323; border-radius:6px; background:#000; cursor:pointer; padding:2px; }
.ofpv-cfg-color .ofpv-swatches { display:flex; gap:6px; }
.ofpv-sw { width:24px; height:24px; border-radius:6px; cursor:pointer; border:2px solid transparent; }
.ofpv-sw:hover { border-color:#fff; }
.ofpv-cfg-reset { margin-top:6px; background:transparent; border:1px solid #232323; color:var(--text-2); font-size:12px; font-weight:600; font-family:inherit; padding:8px 12px; border-radius:6px; cursor:pointer; width:100%; }
.ofpv-cfg-reset:hover { color:#fff; border-color:#3a3a3a; }
.ofpv-stage .co-bump{border:2px dashed #7c3aed;background:#fffbea;border-radius:10px;padding:14px;display:flex;gap:12px;align-items:flex-start;width:100%;max-width:420px;}
.ofpv-stage .co-bump input{width:20px;height:20px;margin-top:2px;accent-color:#7c3aed;flex-shrink:0;}
.ofpv-stage .co-bump-title{font-weight:700;font-size:14px;color:#5b21b6;}
.ofpv-stage .co-bump-price{font-size:13px;color:#28a745;font-weight:700;margin-top:3px;}
.ofpv-stage .co-over-box{max-width:480px;width:100%;background:#fff;border:1px solid #e9ecef;border-radius:16px;padding:30px;box-shadow:0 8px 30px rgba(0,0,0,.08);text-align:center;}
.ofpv-stage .co-up-tag{display:inline-block;background:#fff3cd;color:#856404;font-size:12px;font-weight:700;padding:5px 12px;border-radius:20px;margin-bottom:14px;}
.ofpv-stage .co-up-h{font-size:22px;font-weight:800;color:#111;margin-bottom:8px;line-height:1.25;}
.ofpv-stage .co-up-sub{font-size:14px;color:#6c757d;margin-bottom:18px;}
.ofpv-stage .co-up-card{border:2px dashed #7c3aed;background:#faf8ff;border-radius:12px;padding:18px;margin-bottom:20px;}
.ofpv-stage .co-up-name{font-size:16px;font-weight:700;color:#1a1a2e;}
.ofpv-stage .co-up-de{font-size:13px;color:#adb5bd;text-decoration:line-through;margin-top:6px;}
.ofpv-stage .co-up-price{font-size:26px;font-weight:800;color:#28a745;margin-top:2px;}
.ofpv-stage .co-up-yes{width:100%;border:none;border-radius:10px;padding:17px;font-size:16px;font-weight:800;color:#fff;background:#28a745;cursor:pointer;}
.ofpv-stage .co-up-1c{font-size:12px;color:#28a745;font-weight:600;margin-top:8px;}
.ofpv-stage .co-up-no{display:inline-block;margin-top:16px;background:none;border:none;color:#adb5bd;font-size:13px;text-decoration:underline;cursor:pointer;}
.mbd-grid { display:grid; gap:16px; }
.mbd-kpis { grid-template-columns:repeat(auto-fit,minmax(176px,1fr)); }
.mbd-card { background:var(--card); border:none; border-radius:12px; padding:18px; box-shadow:0 2px 10px rgba(0,0,0,.45); }
.mbd-kpi .mbd-kpi-top { display:flex; align-items:center; gap:8px; color:var(--text-2); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; }
.mbd-kpi-top svg { width:15px; height:15px; flex-shrink:0; }
.mbd-kpi-val { font-size:30px; font-weight:800; color:#fff; margin-top:9px; line-height:1; }
.mbd-kpi-delta { font-size:12px; font-weight:700; margin-top:8px; }
.mbd-flat { color:var(--text-2); }
.mbd-row { display:grid; gap:16px; margin-top:16px; grid-template-columns:1fr; }
.mbd-row.mbd-2 { grid-template-columns:1fr 1fr; }
.mbd-card-h { font-size:14px; font-weight:800; color:#fff; margin:0; display:flex; align-items:center; gap:8px; }
.mbd-card-h svg { width:16px; height:16px; color:#7aa7d9; flex-shrink:0; }
.mbd-card-d { font-size:12px; color:var(--text-2); margin:4px 0 16px; }
.ma-material { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:16px; padding:54px 24px; text-align:center; }
@media(max-width:560px){
.px-grid{ grid-template-columns:1fr; }
}
@media(max-width:720px){
.coxm-cols.has-prev{ grid-template-columns:1fr; }
.coxm-prev{ border-left:none; border-top:1px solid #1e1e1e; }
}
@media (max-width:1100px){
#checkoutView { overflow-y:auto; height:calc(100vh - 62px); }
.cob-layout { grid-template-columns:1fr; overflow:visible; min-height:0; }
.cob-grid { overflow-y:visible; min-height:0; }
.cob-preview-col { overflow:visible; }
.cob-preview-stage { flex:none; height:680px; }
}
@media (max-width: 640px){
body.pd-open #main { overflow-y:auto; }
body.pd-open #page-products { height:auto; display:block; padding-bottom:20px; }
#productDetail.open { display:block; height:auto; }
#productDetail.open .pd-body, #productDetail.open .pd-nav { overflow:visible; }
}
@media (max-width:620px){
.pd-kpis { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:760px){
.pd-card { flex-direction:column; }
.pd-nav { width:auto; flex-direction:row; flex-wrap:nowrap; overflow-x:auto; border-right:none; border-bottom:1px solid #242424; padding:8px; gap:4px; }
.pd-nav-label { display:none; }
.pd-tab { width:auto; flex-shrink:0; }
}


@media (max-width:720px){
.ofpv-body { grid-template-columns:1fr; }
.ofpv-config { border-right:none; border-bottom:1px solid var(--border); }
}
@media (max-width:900px){
.mbd-row.mbd-2, .mbd-row.mbd-3 { grid-template-columns:1fr; }
}

/* ══ PRODUTOS — responsividade (lista, detalhe, vendas, criar produto) ══
   Tudo dentro de @media; o desktop (>1024px) não muda. */
@media (min-width:761px) and (max-width:1024px){
.pd-nav { width:190px; }
}
@media (max-width:1024px){
.pd-body { padding:4px 16px 20px; }
.sv-table-wrap { overflow-x:auto; }
.sv-table { min-width:560px; }
}
@media (max-width:760px){
.pd-tab { min-height:44px; }
}
@media (max-width:640px){
/* lista */
#view-products-list [style*="display:flex;align-items:center;gap:8px"] { flex-wrap:wrap; }
#productSearch { font-size:16px !important; min-height:44px; }
#productsGrid { overflow-x:auto; }
#ncBulkBar { flex-wrap:wrap; }
.nc-bulk-actions { margin-left:0; width:100%; overflow-x:auto; }
.nc-bulk-btn { flex-shrink:0; min-height:44px; }
.nc-bar-btn, .nc-edit-btn, #view-products-list .btn-primary { min-height:44px; }
/* detalhe */
.pd-back { min-height:44px; }
.pd-head { flex-wrap:wrap; gap:12px; }
.pd-head-info { flex:1 1 140px; }
.pd-head-name { font-size:18px; overflow-wrap:anywhere; }
.pd-status-seg { flex:1 1 100%; }
.pd-st-opt { flex:1; min-height:44px; }
.pd-body { padding:4px 12px 20px; }
.pd-section { padding:16px; margin-bottom:28px; }
.pd-kpi { padding:14px; }
.pd-kpi-value { font-size:20px; overflow-wrap:anywhere; }
.pd-coupon-row, .cp-price-row { grid-template-columns:1fr; }
.sv-ftab, .pd-chart-pbtn, .pd-bill-opt, .pd-coupon-del { min-height:44px; }
.sv-search { max-width:none !important; }
/* campos: 16px evita o zoom do iOS; 44px é o alvo mínimo de toque */
#productDetail .cp-input, #productDetail .cp-price-input input { font-size:16px; min-height:44px; }
}
@media (max-width:380px){
.pd-kpis { grid-template-columns:1fr; }
}

/* ══ EDITOR DE CHECKOUT + ÁREA DE MEMBROS — responsividade ══
   Tudo dentro de @media; o desktop (>1100px) não muda. A grade de cards da área de
   membros (.nfx-*) já se adapta por JS (--nfxpad/--nfxcards/.nfx-sm), então não é tocada. */
@media (max-width:1100px){
#checkoutView { height:100vh; height:100dvh; }   /* antes calc(100vh - 62px): deixava 54px de fresta embaixo */
}
@media (max-width:760px){
#checkoutView .cob-layout { padding:16px 14px; gap:16px; }
}
@media (max-width:640px){
/* a barra inferior do app (z-index 200) cobria o fim das telas cheias (editor, membros, criar produto) */
body.co-open #sidebar, body.ov-open #sidebar { display:none; }
/* preview do checkout: moldura ocupa a largura e a altura cabe na tela, com rolagem interna */
.cob-preview-stage { padding:10px; height:560px; height:min(560px,65dvh); }
.cob-preview-frame.dev-mobile, .cob-preview-frame.dev-tablet { width:100%; }
/* alvos de toque de 44px */
.cob-tab, .cob-block-head, .mv-back, .mv-preview-btn, .ofpv-tab, .co-field-chk { min-height:44px; }
.cob-dev-btn { min-width:44px; min-height:44px; }
.cob-block-acts button { width:44px; height:44px; }
.coxm-x, .ofpv-x { min-width:44px; min-height:44px; }
.cob-color-row input[type=color] { height:44px; }
.co-field-row { flex-wrap:wrap; }
/* campos: 16px evita o zoom do iOS */
#checkoutView input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]):not([type=file]),
#checkoutView select, #checkoutView textarea { font-size:16px !important; }
#checkoutView input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]):not([type=file]),
#checkoutView select { min-height:44px; }
.ofpv-box { max-height:92vh; max-height:92dvh; }
.mbd-card { padding:14px; }
.mbd-kpi-val { font-size:24px; }
}


/* ══ META — comportamento de planilha ══
   A página rola (#main); a tabela não tem rolagem vertical interna. O cabeçalho+totais ficam presos no topo da janela
   por JS (translateY), as 2 primeiras colunas ficam fixas na horizontal (position:sticky) e a barra horizontal fica no rodapé da janela. */   /* o respiro lateral vai para o conteúdo: as colunas fixas encostam na borda ao rolar */
/* faixas do cabeçalho e dos TOTAIS: mesmo fundo, um pouco mais escuro/azulado que o corpo para ler CPC, CPM etc. */
:root { --meta-head-bg:#080d17; --meta-band:var(--meta-head-bg); --meta-band-line:#253550; --meta-line:#1c1c1c; --meta-pos:#2c9231; --meta-neg:#ee4542; }
/* linhas: mín. 64px (72px com nome em 2 linhas), células 10px 20px, fonte 14px, borda 1px embaixo e à direita, hover mais claro, sem zebra */          /* 1 linha = 64px; 2 linhas = 72px */
/* cabeçalho (~42px) e totais (~38px): 12px/700, maiúsculas, 0,5px */
/* carregando: esqueleto pulsando */
@keyframes metaPulse { 0%, 100% { opacity:.35; } 50% { opacity:.9; } }
/* abas: fundo do card, ativa com 2px na cor de acento, raio 8px 8px 0 0 */
/* espaçamento: card flutuante com respiro em volta (margem 20px / 12px no celular); a barra de rolagem fica DENTRO do card */

/* acabamento: sombras, tooltips, hover instantâneo, barra de 11px */
/* sombra na borda direita das colunas fixas: só com a tabela rolada para o lado */
/* hover de linha instantâneo, sem zebra */
/* barra horizontal: 11px, thumb arredondado */
@-moz-document url-prefix() { .meta-hbar { scrollbar-width:thin; scrollbar-color:var(--accent) var(--meta-head-bg); } }
/* telas baixas: a barra encosta mais perto do fim da janela e os totais continuam à mão */
/* tooltip dos ícones "i" */
/* ══ INTEGRAÇÕES, MINHA CONTA e NOVIDADES (#clPanel) — responsividade ══
   Tudo dentro de @media; o desktop (>1024px) não muda. */
@media (max-width:1024px){
#page-integrations { height:calc(100vh - 62px) !important; height:calc(100dvh - 62px) !important; }
#page-integrations > div:first-child { overflow-x:auto; scrollbar-width:none; }   /* 6 abas não cabem */
#page-integrations > div:first-child::-webkit-scrollbar { display:none; }
#page-integrations > div:first-child > button { flex-shrink:0; white-space:nowrap; }
}
@media (max-width:760px){
#page-account > [style*="grid-template-columns:1fr 1fr"] { grid-template-columns:1fr !important; }
}
@media (max-width:640px){
#page-integrations { height:calc(100vh - 128px) !important; height:calc(100dvh - 128px) !important; }   /* topbar 64 + barra inferior 64 */
.ob-grid-3 { grid-template-columns:1fr 1fr; }
/* Integrações */
#page-integrations > div:first-child { padding:0 12px; }
[id^="intSection-"] { padding:14px !important; }
[id^="intSection-"] [style*="grid-template-columns:1fr 1fr"] { grid-template-columns:1fr !important; }
[id^="intSection-"] [style*="justify-content:space-between"] { flex-wrap:wrap; gap:10px; }
[id^="intSection-"] button { min-height:44px; }
[id^="intSection-"] input:not([type=checkbox]):not([type=radio]),
[id^="intSection-"] select, [id^="intSection-"] textarea { font-size:16px !important; min-height:44px; }
/* Minha conta */
#page-account .acc-card [style*="grid-template-columns:1fr 1fr"] { grid-template-columns:1fr !important; }
.acc-field-input { font-size:16px; min-height:44px; }
#page-account button { min-height:44px; }
/* painel de novidades */
#clPanel { width:100%; max-width:100vw; top:64px; }
#clOverlay { top:64px; }
}

/* ══ GLOBAL — altura dinâmica, campos, toque e telas grandes ══
   Tudo dentro de @media; o desktop até 1680px não muda. */
@media (max-width:1024px){
html, body { height:100vh; height:100dvh; }   /* iOS: 100vh passa da área visível com a barra do Safari */
#main { height:100vh; height:100dvh; }
}
@media (min-width:641px) and (max-width:1024px){
#sidebar { height:100vh; height:100dvh; }   /* no celular a barra inferior tem height:auto */
body.pd-open #page-products { height:calc(100vh - 62px); height:calc(100dvh - 62px); }
}
@media (max-width:640px){
/* 16px em todos os campos de texto evita o zoom automático do iOS */
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=hidden]),
select, textarea { font-size:16px !important; }
}
@media (pointer:coarse){
/* ícones 30x30 / 28x28 da topbar e do menu viram área de toque de 44x44 */
.topbar-icon-btn, .sidebar-toggle-inner { width:44px; height:44px; }
.btn-edit-panel, .topbar-user, #sidebar .nav-item { min-height:44px; }
.topbar-user-item { min-height:44px; }
}
@media (min-width:1681px){
/* telas grandes/TV: Resumo e Produtos param de esticar e ficam centralizados */
#page-products { max-width:1680px; margin-left:auto; margin-right:auto; }
}

/* Foco visivel para teclado (somente :focus-visible; clique do mouse nao muda) */
:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

/* ══ Barra inferior do celular: 5 destinos fixos + "Mais" ══
   O :hover do desktop (especificidade maior) ficava "grudado" no toque e mudava padding/margem. */
.nav-menu-btn, #navSheet, #navSheetOverlay { display:none; }
/* P10: o hover do menu desktop é só do modo "hover" (bloco p10-css); o :hover antigo e o empurrão da topbar foram removidos */
@media (max-width:640px){
#sidebar.collapsed, #sidebar.collapsed:hover {
  width:100% !important; z-index:200; box-shadow:none;
  padding-bottom:env(safe-area-inset-bottom,0px);
}
#sidebar .nav-scroll { overflow:visible; }
#sidebar.collapsed .nav-item,
#sidebar.collapsed:hover .nav-item,
#sidebar.collapsed:not(:hover) .nav-item,
#sidebar .nav-menu-btn {
  flex:1 1 0; min-width:0; margin:0; padding:8px 2px;
  flex-direction:column; justify-content:center; align-items:center; gap:3px;
}
#sidebar.collapsed .nav-label,
#sidebar.collapsed:hover .nav-label,
#sidebar.collapsed:not(:hover) .nav-label {
  display:block !important; font-size:11px; max-width:100%; color:var(--text-2);
}
#sidebar.collapsed .nav-item.active .nav-label { color:var(--accent); }
#sidebar .nav-menu-btn { display:flex; background:none; border:0; color:#fff; font-family:inherit; cursor:pointer; position:relative; }
#sidebar .nav-menu-btn .nav-icon { width:18px; height:18px; }
#sidebar .nav-menu-btn[aria-expanded="true"],
body:has(#page-account.active) #sidebar .nav-menu-btn { color:var(--accent); }
/* Bottom sheet "Menu": sobe da barra inferior, overlay escurecido atrás */
#navSheetOverlay.open { display:block; position:fixed; left:0; right:0; top:0; bottom:calc(64px + env(safe-area-inset-bottom,0px)); background:rgba(0,0,0,.6); z-index:190; }
#navSheet.open {
  display:flex; flex-direction:column; position:fixed; left:0; right:0; bottom:calc(64px + env(safe-area-inset-bottom,0px)); z-index:195;
  max-height:min(70vh, calc(100dvh - 64px - env(safe-area-inset-bottom,0px)));
  background:var(--card); border:1px solid var(--border); border-bottom:0; border-radius:6px 6px 0 0;
  padding:8px 8px 10px; overflow-y:auto; outline:none; animation:navSheetUp .2s ease;
}
@keyframes navSheetUp { from { transform:translateY(24px); opacity:0; } to { transform:none; opacity:1; } }
.nav-sheet-grip { width:36px; height:4px; border-radius:4px; background:#2a2a2a; margin:4px auto 8px; flex-shrink:0; }
.nav-sheet-item {
  display:flex; align-items:center; gap:14px; width:100%; min-height:48px; padding:0 14px; border:0; border-radius:6px;
  background:transparent; color:#fff; font-family:inherit; font-size:15px; font-weight:500; text-align:left; cursor:pointer; flex-shrink:0;
}
.nav-sheet-item:active { background:rgba(255,255,255,.06); }
.nav-sheet-item .nav-icon { width:20px; height:20px; flex-shrink:0; color:#fff; }
.nav-sheet-sep { height:1px; background:#1c1c1c; margin:6px 8px; flex-shrink:0; }
body:has(#page-painel.active) .nav-sheet-item[data-p="painel"],
body:has(#page-resumo.active) .nav-sheet-item[data-p="resumo"],
body:has(#page-escala.active) .nav-sheet-item[data-p="escala"],
body:has(#page-criativos.active) .nav-sheet-item[data-p="criativos"],
body:has(#page-products.active) .nav-sheet-item[data-p="products"],
body:has(#page-vendas.active) .nav-sheet-item[data-p="vendas"],
body:has(#page-financeiro.active) .nav-sheet-item[data-p="financeiro"],
body:has(#page-taxas.active) .nav-sheet-item[data-p="taxas"],
body:has(#page-recuperacao.active) .nav-sheet-item[data-p="recuperacao"],
body:has(#page-regras.active) .nav-sheet-item[data-p="regras"],
body:has(#page-integrations.active) .nav-sheet-item[data-p="integrations"],
body:has(#page-account.active) .nav-sheet-item[data-p="account"] { background:rgba(184,246,253,.15); color:var(--accent); }
body:has(#page-painel.active) .nav-sheet-item[data-p="painel"] .nav-icon,
body:has(#page-resumo.active) .nav-sheet-item[data-p="resumo"] .nav-icon,
body:has(#page-escala.active) .nav-sheet-item[data-p="escala"] .nav-icon,
body:has(#page-criativos.active) .nav-sheet-item[data-p="criativos"] .nav-icon,
body:has(#page-products.active) .nav-sheet-item[data-p="products"] .nav-icon,
body:has(#page-vendas.active) .nav-sheet-item[data-p="vendas"] .nav-icon,
body:has(#page-financeiro.active) .nav-sheet-item[data-p="financeiro"] .nav-icon,
body:has(#page-recuperacao.active) .nav-sheet-item[data-p="recuperacao"] .nav-icon,
body:has(#page-regras.active) .nav-sheet-item[data-p="regras"] .nav-icon,
body:has(#page-integrations.active) .nav-sheet-item[data-p="integrations"] .nav-icon,
body:has(#page-account.active) .nav-sheet-item[data-p="account"] .nav-icon { color:var(--accent); }
#main { padding-bottom:calc(64px + env(safe-area-inset-bottom,0px)); }
}

/* ══ Celular (≤640px): barra inferior só com ícones, topbar, filtros e cards do Resumo ══ */
@media (max-width:640px){
/* barra inferior: sem rótulos, ícones de 26px, 64px de altura (o sheet do Menu sobe dela) */
body #sidebar.collapsed .nav-label, body #sidebar.collapsed:hover .nav-label, body #sidebar.collapsed:not(:hover) .nav-label,
body #sidebar .nav-menu-btn .nav-label { display:none !important; }
body #sidebar .nav-item .nav-icon, body #sidebar .nav-menu-btn .nav-icon { width:26px; height:26px; }
body #sidebar.collapsed .nav-item, body #sidebar.collapsed:hover .nav-item, body #sidebar.collapsed:not(:hover) .nav-item, body #sidebar .nav-menu-btn { height:63px; min-height:48px; padding:0 2px; justify-content:center; }
.utmi-filter-label { font-size:12px; margin-bottom:4px; }
/* cards de métrica: 95px, conteúdo colado ao topo, valor 20px */
/* topbar do celular: ícones de 24px com toque de 44px */
body #sidebar .nav-scroll { gap:0; }
/* barra inferior (20/11/2026): 4 destinos (Dashboard, Resumo, Meta, Carteira) + Menu = 5 ícones; Vendas saiu da barra (abre pela folha do Menu). 15/11/2026: Dashboard, Resumo, Meta, Vendas; Lucro e Escala saiu da barra e abre pela folha do Menu. Antes: 5 destinos (Dashboard, Resumo, Lucro e Escala, Vendas, Campanhas) + Menu (9 itens deixavam o botão Menu com 4 px e fora da tela); os demais, inclusive Produtos, ficam na folha do Menu */
body #sidebar .nav-item[data-page="products"], body #sidebar .nav-item[data-page="escala"], body #sidebar .nav-item[data-page="criativos"], body #sidebar .nav-item[data-page="integrations"], body #sidebar .nav-item[data-page="vendas"], body #sidebar .nav-item[data-page="taxas"], body #sidebar .nav-item[data-page="recuperacao"], body #sidebar .nav-item[data-page="regras"] { display:none; }
}

/* ══ COMMIT K — Meta e Integrações: medidas de cards, campos e botões ══ */
.cp-input { height: 38px; padding-top: 0; padding-bottom: 0; border-radius: 4px; }
textarea.cp-input { height: auto; padding-top: 11px; padding-bottom: 11px; }
/* cards retangulares do Resumo (gráficos e listas) */

/* ══ COMMIT L — Resumo no celular (≤640px) ══ */
@media (max-width:640px){
/* 1) Atualizar do card: só o ícone, 44x44, sem fundo nem borda (o botão de texto é do desktop) */
/* 2) cards de métrica: 95px de verdade (nenhuma regra antiga pode esticar) */
/* 3) Editar painel */
#main.edit-open { margin-left:0; }
.panel-accordion-body .panel-widget-card, .panel-widget-card {
  width:100% !important; height:48px; min-height:48px; margin-bottom:8px; padding:0 14px; cursor:pointer;
  flex-direction:row; align-items:center; justify-content:space-between; gap:12px;
  border:1px dashed rgba(255,255,255,.28); border-radius:6px;
}
.panel-widget-card .pw-drag-hint { display:none; }
.panel-widget-card.in-use { pointer-events:auto; cursor:pointer; opacity:.6; border-style:solid; }
/* e) × dos cards em edição: sempre visível, no canto, sem cobrir o "i" nem o título */
}
/* ══ Restaurado: detalhe do produto, funil, diálogos e criação (o CSS tinha se perdido na reversão da paleta; cores atuais mantidas) ══ */
.pd-perf-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.pd-perf-meta { font-size:13px; color:#cbd5e1; margin-top:4px; }
.pd-perf-meta b { color:#ffffff; font-weight:600; }
.pd-setup { background:var(--card); border:1px solid var(--border); border-radius:6px; padding:18px 20px; margin-bottom:16px; }
.pd-setup-top { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.pd-setup-title { font-size:15px; font-weight:700; color:#ffffff; }
.pd-setup-sub { font-size:12px; color:var(--text-3); margin-top:2px; }
.pd-setup-btn { min-height:38px; padding:0 18px; border:none; border-radius:6px; background:var(--accent); color:var(--accent-ink); font-size:14px; font-weight:500; font-family:inherit; cursor:pointer; }
.pd-setup-btn:hover { background:var(--accent-hover);color:var(--accent-ink); }
.pd-setup-bar { height:6px; border-radius:6px; background:var(--card); margin:14px 0 12px; overflow:hidden; }
.pd-setup-bar > div { height:100%; border-radius:6px; background:var(--accent); transition:width .3s ease;color:var(--accent-ink); }
.pd-setup-list { list-style:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 16px; }
.pd-setup-item { display:flex; align-items:center; gap:10px; width:100%; min-height:36px; padding:0 4px; background:transparent; border:none; border-radius:6px; color:#cbd5e1; font-size:13px; font-family:inherit; text-align:left; cursor:pointer; }
.pd-setup-item:hover { color:#ffffff; }
.pd-setup-item.done { color:#ffffff; }
.pd-setup-ck { width:20px; height:20px; border-radius:50%; border:1.5px solid var(--border); display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; color:#ffffff; }
.pd-setup-item.done .pd-setup-ck { background:#22c55e; border-color:#22c55e; }
.pd-st-pulse { outline:2px solid var(--accent); outline-offset:3px; border-radius:6px; }
@media (max-width:640px){ .pd-setup-list { grid-template-columns:1fr; } .pd-setup-item { min-height:44px; } .pd-setup-btn { width:100%; min-height:44px; } }

/* ══ Detalhe do produto: 6 abas, link no cabeçalho e Entrega ══ */
.pd-linkbar { display:flex; align-items:center; gap:10px; margin-bottom:16px; flex-wrap:wrap; }
.pd-linkbar-l { font-size:12px; font-weight:600; color:#cbd5e1; }
.pd-linkbar .cp-input { flex:1; min-width:180px; }
.pd-linkbar-b { height:auto; margin:0; padding:0 18px; min-height:40px; white-space:nowrap; }
.pd-head-link { display:flex; align-items:center; gap:10px; margin-top:4px; font-size:12px; color:var(--text-3); flex-wrap:wrap; }
.pd-head-link #pdHeadLink { overflow-wrap:anywhere; }
.pd-dm-opt { display:flex; flex-direction:column; gap:3px; align-items:flex-start; padding:14px 16px; border:1px solid var(--border); border-radius:6px; background:transparent; color:#cbd5e1; font-family:inherit; text-align:left; cursor:pointer; }
.pd-dm-opt b { font-size:14px; color:#ffffff; }
.pd-dm-opt span { font-size:12px; color:var(--text-3); }
.pd-dm-opt:hover { border-color:var(--accent); }
.pd-dm-opt[aria-checked="true"] { border-color:var(--accent); background:var(--card); }
@media (max-width:640px){  .pd-linkbar-b { width:100%; min-height:44px; } }
/* diálogo genérico */
.nc-dlg-ov { position:fixed; inset:0; z-index:100050; background:rgba(0,0,0,.6); display:flex; align-items:center; justify-content:center; padding:16px; }
.nc-dlg { width:100%; max-width:440px; background:var(--card); border:1px solid var(--border); border-radius:6px; padding:22px; box-shadow:0 20px 60px rgba(0,0,0,.6); }
.nc-dlg h3 { font-size:17px; font-weight:700; color:#ffffff; margin-bottom:8px; }
.nc-dlg-body { font-size:14px; line-height:1.5; color:#cbd5e1; }
.nc-dlg-body ul { margin:10px 0 0 18px; }
.nc-dlg-act { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; flex-wrap:wrap; }
.nc-dlg-btn { min-height:40px; padding:0 18px; border-radius:6px; border:1px solid var(--border); background:transparent; color:#ffffff; font-family:inherit; font-size:14px; font-weight:500; cursor:pointer; }
.nc-dlg-btn.primary { background:var(--accent); border-color:var(--accent); color:var(--accent-ink); }
.nc-dlg-btn.danger { background:#dc2626; border-color:#dc2626; color:#fff; }
@media (max-width:640px){ .nc-dlg-btn { min-height:44px; } }

/* ══ Funil de vendas (aba Ofertas e funil) ══ */
.fn-row { display:flex; align-items:center; gap:12px; padding:12px 14px; border-top:1px solid var(--border); flex-wrap:wrap; }
.fn-info { flex:1; min-width:140px; }
.fn-name { font-size:14px; color:#ffffff; font-weight:600; overflow-wrap:anywhere; }
.fn-meta { font-size:12px; color:var(--text-3); margin-top:2px; }
.fn-badge { font-size:11px; font-weight:700; padding:3px 9px; border-radius:20px; }
.fn-badge.on { color:#22c55e; background:rgba(34,197,94,.12); }
.fn-badge.off { color:var(--text-3); background:var(--card); }
.fn-acts { display:flex; gap:6px; flex-wrap:wrap; }
.fn-btn { min-height:36px; padding:0 14px; border-radius:6px; border:1px solid var(--border); background:transparent; color:#ffffff; font-family:inherit; font-size:13px; font-weight:500; cursor:pointer; }
.fn-btn:hover { border-color:var(--accent); }
.fn-btn.fn-add { color:var(--accent); }
.fn-btn.fn-del { color:#ef4444; }
/* ── Mapa do funil: caixas ligadas por setas ── */
.fn-map { margin-top:8px; }
.fn-map-d { display:grid; grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr) 44px minmax(0,1fr) 44px minmax(0,1fr) 44px minmax(0,1fr); grid-template-rows:auto 40px auto; align-items:stretch; }
.fn-map-m { display:none; }
.fn-cell { display:flex; min-width:0; }
.fn-cell > .fn-node { flex:1; }
.fn-thanks .fn-node { justify-content:center; }
.fn-line { align-items:stretch; }
.fn-ln { width:100%; height:100%; fill:none; stroke:var(--accent); stroke-width:1.8; stroke-linecap:round; }
.fn-ac { position:relative; display:flex; align-items:center; justify-content:center; width:100%; }
.fn-ac-v { flex-direction:column; }
.fn-arr { width:100%; height:100%; max-height:30px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.fn-arr.on { color:var(--accent); }
.fn-arr.mute { color:#2a2f3a; stroke-dasharray:3 3; }
.fn-lbl { position:absolute; top:-2px; left:50%; transform:translate(-50%,-100%); font-size:11px; color:var(--text-3); white-space:nowrap; }
.fn-ac-v .fn-lbl { top:50%; left:calc(50% + 14px); transform:translateY(-50%); }
.fn-node { box-sizing:border-box; display:flex; flex-direction:column; align-items:flex-start; gap:4px; min-width:0; min-height:96px; padding:12px 14px; background:var(--card); border:1px solid var(--border); border-radius:6px; color:#ffffff; font-family:inherit; text-align:left; cursor:pointer; transition:border-color .12s, background .12s; }
.fn-node:hover { border-color:var(--accent); }
.fn-node.sel { border-color:var(--accent); background:var(--detail); }
.fn-node.fixed { cursor:default; }
.fn-node.fixed:hover { border-color:var(--border); }
.fn-node.off .fn-nn { color:var(--text-2); }
.fn-node.empty { justify-content:center; background:transparent; border:1px dashed #2a2f3a; }
.fn-node.empty:hover { border-color:var(--accent); }
.fn-nt { font-size:12px; font-weight:600; color:var(--text-3); }
.fn-nn { font-size:14px; font-weight:600; color:#ffffff; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fn-np { font-size:12px; color:var(--text-3); }
.fn-nb { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:2px; }
.fn-more { font-size:12px; color:var(--text-3); }
.of-panel { margin-top:16px; display:none; }
.of-panel .coxm-box { flex:1; min-width:0; max-width:none; max-height:none; overflow:visible; box-shadow:none; border-radius:6px; background:var(--card); border-color:var(--border); }
.of-panel .coxm-head { position:static; background:var(--card); border-radius:6px 6px 0 0; }
.of-panel .of-offer-tabs { display:none; }
.fn-items { margin-top:16px; border:1px solid var(--border); border-radius:6px; background:var(--card); overflow:hidden; }
.fn-items-h { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; border-bottom:1px solid var(--border); font-size:14px; font-weight:700; color:#ffffff; }
@media (max-width:760px){ .of-panel .coxm-cols.has-prev { grid-template-columns:1fr; } .of-panel .coxm-prev { border-left:none; border-top:1px solid #1e1e1e; } }
.fn-leg { font-size:11px; font-weight:700; color:#f59e0b; background:rgba(245,158,11,.1); border:1px solid rgba(245,158,11,.3); border-radius:20px; padding:2px 8px; }
.fn-warn { font-size:12px; line-height:1.4; color:#f59e0b; }
.fn-add-l { font-size:13px; font-weight:600; color:var(--accent); }
.fn-extras { margin-top:18px; padding-top:14px; border-top:1px solid var(--border); }
.fn-extras-h { font-size:12px; font-weight:600; color:var(--text-3); margin-bottom:8px; }
.fn-extras-b { max-width:260px; display:flex; }
.fn-extras-b .fn-node { flex:1; }
@media (max-width:900px) {
  .fn-map-d { display:none; }
  .fn-map-m { display:flex; flex-direction:column; align-items:stretch; }
  .fn-vd { align-self:center; display:flex; align-items:center; gap:8px; min-height:28px; font-size:18px; line-height:1; }
  .fn-vd span { font-size:12px; color:var(--text-3); }
  .fn-vd.on { color:var(--accent); }
  .fn-vd.mute { color:#2a2f3a; }
  .fn-node { min-height:72px; }
  .fn-extras-b { max-width:none; }
}
@media (max-width:640px){ .fn-btn { min-height:44px; } }

/* ══ Produtos: criação, sucesso, chips, arquivar { min-height:18px; font-size:12px; line-height:18px; color:#ef4444; margin-top:4px; }
.nc-ic { vertical-align:-2px; margin-right:4px; }
.pf-clear { position:absolute; right:6px; top:50%; transform:translateY(-50%); width:28px; height:28px; display:flex; align-items:center; justify-content:center; background:transparent; border:none; color:var(--text-3); cursor:pointer; border-radius:6px; }
.pf-clear:hover { color:#ffffff; }
.pf-chips { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.pf-chips:empty { display:none; }
.pf-chip { display:inline-flex; align-items:center; gap:6px; min-height:28px; padding:0 10px; background:var(--card); border:1px solid var(--border); border-radius:20px; color:#ffffff; font-family:inherit; font-size:12px; cursor:pointer; }
.pf-chip:hover { border-color:var(--accent); }
@media (max-width:640px){ .pf-clear { width:44px; height:44px; right:0; } .pf-chip { min-height:36px; } }
/* editor de checkout: barra de salvar fixa no rodapé do painel e foco na cor de acento */
.co-savebar { display:flex; gap:10px; position:sticky; bottom:0; padding:12px 0 4px; background:var(--card); border-top:1px solid var(--border); margin-top:6px; z-index:2; }
#checkoutView input:focus, #checkoutView select:focus, #checkoutView textarea:focus,
.cob-select:focus, .cob-input:focus, .cob-field input:focus { border-color:var(--accent) !important; outline:none; box-shadow:0 0 0 1px var(--accent); }

/* ── Polimento (commit 1): nenhum botão fica com o fundo padrão do navegador ── */
button { background-color: transparent; color: inherit; font-family: inherit; }
/* cópia do link no cabeçalho: botão secundário só de ícone, 32x32 */
/* "Terminar de configurar": primário */
.pd-setup-btn { display:inline-flex; align-items:center; justify-content:center; height:40px; min-height:40px; padding:0 18px; border:none; border-radius:6px; background:var(--accent); color:var(--accent-ink); font-size:14px; font-weight:600; line-height:1; font-family:inherit; cursor:pointer; white-space:nowrap; transition:background .15s; }
.pd-setup-btn:hover { background:var(--accent-hover);color:var(--accent-ink); }
.pd-setup-btn:focus-visible, .pd-head-copy:focus-visible, .pd-setup-item:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
/* itens do checklist: linha de 36px, sem fundo, círculo de 18px */
.pd-setup-item { display:flex; align-items:center; gap:10px; width:100%; height:36px; min-height:36px; padding:0 6px; margin:0; background:transparent; border:none; border-radius:6px; color:#cbd5e1; font-size:13px; font-weight:500; font-family:inherit; text-align:left; cursor:pointer; transition:background .15s, color .15s; }
.pd-setup-item:hover { background:rgba(255,255,255,.04); color:#ffffff; }
.pd-setup-item.done { color:#ffffff; }
.pd-setup-ck { width:18px; height:18px; border-radius:50%; border:1.5px solid #3a4558; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; color:#ffffff; transition:background .15s, border-color .15s; }
.pd-setup-ck svg { width:12px; height:12px; }
.pd-setup-item.done .pd-setup-ck { background:#10b981; border-color:#10b981; }
.pd-setup { border-radius:6px; }
@media (max-width:640px){ .pd-setup-item { height:44px; min-height:44px; }  .pd-setup-btn { height:44px; min-height:44px; } }

/* ── Detalhe do produto (commit 2): cabeçalho, barra de link e abas ── */
.pd-back-row { margin-bottom:10px; }
.pd-back { height:32px; padding:0 8px 0 0; font-size:13px; font-weight:600; color:var(--text-2); }
.pd-back:hover { color:#ffffff; }
.pd-head { display:flex; align-items:flex-start; gap:16px; margin-bottom:14px; }
.pd-head-thumb { width:64px; height:64px; border-radius:6px; font-size:30px; border:1px solid var(--border); }
.pd-head-info { flex:1; min-width:0; }
.pd-head-row { display:flex; align-items:center; gap:10px 12px; flex-wrap:wrap; min-height:64px; }
.pd-head-name { font-size:24px; font-weight:700; line-height:1.2; color:#ffffff; min-width:0; overflow-wrap:anywhere; }
.pd-head-desc { font-size:13px; color:var(--text-2); margin-top:-6px; max-width:640px; }
.pd-status-wrap, .pd-more-wrap { position:relative; }
.pd-status-badge { display:inline-flex; align-items:center; gap:7px; height:28px; padding:0 10px; border-radius:20px; border:1px solid var(--border); background:var(--card); color:#cbd5e1; font-size:12px; font-weight:600; font-family:inherit; cursor:pointer; transition:border-color .15s; }
.pd-status-badge:hover { border-color:var(--accent); }
.pd-dot { width:8px; height:8px; border-radius:50%; background:var(--text-3); }
.pd-status-badge[data-status="ativo"] { color:#10b981; background:rgba(16,185,129,.1); border-color:rgba(16,185,129,.3); }
.pd-status-badge[data-status="ativo"] .pd-dot { background:#10b981; }
.pd-status-badge[data-status="pausado"] { color:#f59e0b; background:rgba(245,158,11,.1); border-color:rgba(245,158,11,.3); }
.pd-status-badge[data-status="pausado"] .pd-dot { background:#f59e0b; }
.pd-status-seg { display:none; position:absolute; top:34px; left:0; z-index:30; flex-direction:column; min-width:150px; padding:6px; gap:2px; background:var(--card); border:1px solid var(--border); border-radius:6px; box-shadow:0 12px 32px rgba(0,0,0,.6); }
.pd-status-wrap.open .pd-status-seg, .pd-status-wrap:has(.pd-st-pulse) .pd-status-seg { display:flex; }
.pd-status-seg .pd-st-opt { justify-content:flex-start; text-align:left; width:100%; padding:0 12px; height:36px; min-height:36px; border-radius:6px; }
.pd-st-opt:hover { background:rgba(255,255,255,.05); }
.pd-status-seg.pd-st-pulse { outline:none; }
.pd-save-status { font-size:12px; font-weight:500; color:var(--text-3); }
.pd-more { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; padding:0; border:1px solid var(--border); border-radius:6px; background:transparent; color:var(--text-2); font-size:18px; line-height:1; cursor:pointer; transition:color .15s, border-color .15s, background .15s; }
.pd-more:hover, .pd-more-wrap.open .pd-more { color:#ffffff; border-color:var(--accent); background:var(--card); }
.pd-more-menu { display:none; position:absolute; top:38px; right:0; z-index:30; min-width:200px; padding:6px; background:var(--card); border:1px solid var(--border); border-radius:6px; box-shadow:0 12px 32px rgba(0,0,0,.6); }
.pd-more-wrap.open .pd-more-menu { display:block; }
.pd-more-menu button { display:flex; align-items:center; width:100%; height:36px; padding:0 12px; border:none; border-radius:6px; background:transparent; color:#e5e7eb; font-size:13px; font-weight:500; font-family:inherit; text-align:left; cursor:pointer; }
.pd-more-menu button:hover { background:rgba(255,255,255,.05); }
.pd-more-menu .pd-head-id { margin:4px 12px 6px; font-size:11px; color:var(--text-3); overflow-wrap:anywhere; }
.pd-head-linkbar { display:flex; align-items:center; gap:8px; margin:0 0 18px; padding:6px 6px 6px 14px; background:var(--card); border:1px solid var(--border); border-radius:6px; }
.pd-head-url { flex:1; min-width:0; font-size:13px; color:#cbd5e1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pd-lb-btn { flex-shrink:0; height:32px; padding:0 14px; border:1px solid var(--border); border-radius:6px; background:transparent; color:#e5e7eb; font-size:13px; font-weight:600; font-family:inherit; cursor:pointer; white-space:nowrap; transition:border-color .15s, background .15s; }
.pd-lb-btn:hover { border-color:var(--accent); background:var(--card); }
.pd-lb-btn.primary { background:var(--accent); border-color:var(--accent); color:var(--accent-ink); }
.pd-lb-btn.primary:hover { background:var(--accent-hover);color:var(--accent-ink); }
/* abas horizontais com indicador de 2px */
.pd-card { flex-direction:column; background:transparent; border-radius:0; overflow:visible; }
.pd-nav { position:relative; width:auto; flex-direction:row; flex-wrap:nowrap; gap:4px; padding:0; background:transparent; border-bottom:1px solid var(--border); overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.pd-nav::-webkit-scrollbar { display:none; }
#productDetail.open .pd-nav { overflow-x:auto; overflow-y:hidden; }
.pd-tab { position:relative; flex-shrink:0; width:auto; height:44px; padding:0 14px; border-radius:0; background:transparent; border:none; border-bottom:2px solid transparent; margin-bottom:-1px; white-space:nowrap; }
.pd-tab:hover { background:transparent; color:#ffffff; }
.pd-tab.active { background:transparent; color:#ffffff; border-bottom-color:var(--accent); }
.pd-tab.active svg { stroke:var(--accent); }
.pd-body { padding:20px 0 24px; }
.pd-nav[data-fade="right"] { -webkit-mask-image:linear-gradient(to right,#000 calc(100% - 36px),transparent); mask-image:linear-gradient(to right,#000 calc(100% - 36px),transparent); }
.pd-nav[data-fade="left"] { -webkit-mask-image:linear-gradient(to left,#000 calc(100% - 36px),transparent); mask-image:linear-gradient(to left,#000 calc(100% - 36px),transparent); }
.pd-nav[data-fade="both"] { -webkit-mask-image:linear-gradient(to right,transparent,#000 36px,#000 calc(100% - 36px),transparent); mask-image:linear-gradient(to right,transparent,#000 36px,#000 calc(100% - 36px),transparent); }
@media (max-width:760px){
  .pd-nav { padding:0; gap:0; border-bottom:1px solid var(--border); }
  .pd-tab { height:48px; }
  .pd-body { padding:16px 0 20px; }
}
@media (max-width:560px){
  .pd-back { height:44px; }
  .pd-head { gap:12px; }
  .pd-head-thumb { width:56px; height:56px; }
  .pd-head-name { font-size:20px; }
  .pd-head-row { min-height:56px; }
  .pd-status-seg .pd-st-opt { height:44px; min-height:44px; }
  .pd-more { width:44px; height:44px; }
  .pd-head-linkbar { flex-wrap:wrap; padding:8px; }
  .pd-head-url { flex:1 1 100%; padding:2px 6px 6px; }
  .pd-lb-btn { flex:1; height:44px; }
}

/* ── Lista de Produtos (commit 3): linhas de 72px, abas-chip e cartões no celular ── */
.pl-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
.pl-tab { display:inline-flex; align-items:center; gap:8px; height:36px; padding:0 14px; border:1px solid var(--border); border-radius:20px; background:transparent; color:var(--text-2); font-size:13px; font-weight:600; font-family:inherit; cursor:pointer; transition:border-color .15s, color .15s, background .15s; }
.pl-tab:hover { color:#ffffff; border-color:var(--accent); }
.pl-tab.active { color:#ffffff; background:var(--detail); border-color:var(--accent); }
.pl-row { box-sizing:border-box; display:grid; grid-template-columns:28px 48px minmax(0,1fr) auto auto auto; align-items:center; gap:14px; min-height:72px; padding:11px 20px; border-bottom:1px solid var(--card); cursor:pointer; transition:background .12s; }
.pl-row:last-child { border-bottom:none; }
.pl-row:hover { background:#0a0a0a; }
.pl-sales { text-align:right; min-width:92px; }
.pl-sales b { display:block; font-size:14px; font-weight:700; color:#ffffff; }
.pl-sales span { font-size:11px; color:var(--text-3); white-space:nowrap; }
.pl-menu { display:none; position:absolute; top:38px; right:0; z-index:40; min-width:160px; padding:6px; background:var(--card); border:1px solid var(--border); border-radius:6px; box-shadow:0 12px 32px rgba(0,0,0,.6); }
.pl-menu.open { display:block; }
.pl-menu button { display:flex; align-items:center; width:100%; height:36px; padding:0 12px; border:none; border-radius:6px; background:transparent; color:#e5e7eb; font-size:13px; font-weight:500; font-family:inherit; text-align:left; cursor:pointer; }
.pl-menu button:hover { background:rgba(255,255,255,.05); }
.pl-menu button.danger { color:#f87171; }
@media (max-width:760px){
  .pl-row { grid-template-columns:28px 48px minmax(0,1fr); grid-template-areas:"chk cover main" "badges badges badges" "sales sales sales" "acts acts acts"; row-gap:10px; padding:14px 14px; }
       .pl-sales { grid-area:sales; text-align:left; display:flex; align-items:baseline; gap:6px; min-width:0; }
  .pl-sales b { display:inline; }    .pl-tab { height:40px; } }

/* ── Tipografia e medidas das telas do produtor (commit 4) ──
   Escala de 6 degraus: 12, 13, 14, 16, 20, 28 px. Raio: 8px em campos e botões, 12px em cards. Altura de controle: 40px. */
:root { --t-12:12px; --t-13:13px; --t-14:14px; --t-16:16px; --t-20:20px; --t-28:28px; --r-ctl:8px; --r-card:16px; --h-ctl:40px; }
/* 10–11px viram 12px; 15px vira 14px (texto) ou 16px (título); 17–19px viram 16px; 22–26px viram 20/28px */
:is(#page-products, #page-integrations, #page-account, #productDetail, #pxModal) [style*="font-size:10px"], :is(#page-products, #page-integrations, #page-account, #productDetail, #pxModal) [style*="font-size:11px"], :is(#page-products, #page-integrations, #page-account, #productDetail, #pxModal) [style*="font-size:11.5px"], :is(#page-products, #page-integrations, #page-account, #productDetail, #pxModal) [style*="font-size:12.5px"] { font-size:12px !important; }
:is(#page-products, #page-integrations, #page-account, #productDetail, #pxModal) [style*="font-size:15px"] { font-size:16px !important; }
:is(#page-products, #page-integrations, #page-account, #productDetail, #pxModal) [style*="font-size:17px"], :is(#page-products, #page-integrations, #page-account, #productDetail, #pxModal) [style*="font-size:18px"] { font-size:16px !important; }
:is(#page-products, #page-integrations, #page-account, #productDetail, #pxModal) [style*="font-size:22px"], :is(#page-products, #page-integrations, #page-account, #productDetail, #pxModal) [style*="font-size:24px"] { font-size:20px !important; }
:is(#page-products, #page-integrations, #page-account, #productDetail) [style*="font-size:26px"], :is(#page-products, #page-integrations, #page-account, #productDetail) [style*="font-size:28px"] { font-size:28px !important; }
.utmi-filter-label, .pl-tab-n, .nc-status-badge, .pl-setup, .cmp-x-cfg, .fn-badge, .acc-field-label, .pd-st-opt, .pl-sales span, :is(#page-products, #page-integrations, #page-account, #productDetail) th { font-size:12px; }
.pd-section-title, .pd-setup-title { font-size:16px; }
.pd-kpi-value { font-size:28px; }
.pd-head-name { font-size:28px; line-height:1.15; }
.pd-head-thumb { font-size:28px; }
.pd-more, .pl-ib { font-size:16px; }
.pd-head-row { min-height:64px; }
/* campos: 40px e raio 8px */
:is(#page-products, #page-integrations, #page-account, #productDetail, #pxModal) :is(input[type=text],input[type=email],input[type=password],input[type=number],input[type=url],input[type=tel],input[type=search],input:not([type]),select) { box-sizing:border-box; height:var(--h-ctl) !important; min-height:var(--h-ctl); border-radius:var(--nx-r-ctl, var(--r-ctl)) !important; }
:is(#page-products, #page-integrations, #page-account, #productDetail, #pxModal) button[style*="border-radius:4px"], :is(#page-products, #page-integrations, #page-account, #productDetail, #pxModal) button[style*="border-radius:5px"], :is(#page-products, #page-integrations, #page-account, #productDetail, #pxModal) button[style*="border-radius:6px"] { border-radius:var(--r-ctl) !important; }
:is(#page-products, #page-integrations, #page-account, #productDetail, #pxModal) textarea { border-radius:var(--r-ctl); }
.cp-input, .cob-input, #productSearch { border-radius:var(--nx-r-ctl, var(--r-ctl)) !important; min-height:var(--h-ctl); }
/* botões de ação: 40px e raio 8px (ícones de 32px e abas ficam como estão) */
.btn-primary, .cp-dropzone-btn, .nc-edit-btn, .nc-bar-btn, .fn-btn, .pl-lb, .acc-btn, .acc-btn-ghost, .acc-btn-primary, .nc-dlg-btn, .pd-setup-btn { min-height:var(--h-ctl); border-radius:var(--r-ctl); }
.btn-primary, .cp-dropzone-btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; }
@media (min-width:761px){
  :is(#page-integrations,#pxModal) [style*="min-height:44px"] { min-height:var(--h-ctl) !important; }
  #page-integrations [style*="height:44px"][style*="border-bottom"] { height:44px !important; }
}
@media (max-width:560px){ .pd-head-name { font-size:20px; } .pd-kpi-value { font-size:20px; } .pd-head-row { min-height:56px; } }
.pd-chart-pbtn, .sv-ftab, .pd-bill-opt, .cmp-x-cfg, .pd-coupon-del { border-radius:var(--r-ctl); }
.pd-bill-opt, .cp-dropzone-btn { box-sizing:border-box; min-height:var(--h-ctl); padding-top:0; padding-bottom:0; display:inline-flex; align-items:center; justify-content:center; }
.cmp-x-cfg { min-height:32px; padding:0 12px; }
.cp-dropzone-btn { height:var(--h-ctl) !important; }
#page-integrations button { border-radius:var(--r-ctl) !important; }
/* cards: 12px */
.pd-section, .pd-kpi, .pd-chart-card, .acc-card, .pd-setup, .sv-detail-card, .pd-head-linkbar, .pd-status-seg, .pd-more-menu, .pl-menu, .nc-dlg { border-radius:var(--r-card); }
#view-products-list > div[style*="border-radius"], #page-integrations [style*="background:var(--card)"][style*="border-radius"], #pxModal > div { border-radius:var(--r-card) !important; }

/* ── Integrações em grade e seções recolhíveis (commit 5) ── */
.ig-card { display:flex; flex-direction:column; gap:14px; padding:20px; background:var(--card); border:1px solid var(--border); border-radius:6px; transition:border-color .15s; }
.ig-card:hover { border-color:var(--accent); }
/* seções recolhíveis da aba Entrega */
[data-pdpane="entrega"] .pd-section { margin-bottom:12px; }

