/* MARKET — visual do painel. Escuro ou claro (segue o sistema; dá para trocar no menu). */
:root {
  --bg: #0b0c11;
  --bg-glow: rgba(124, 92, 255, 0.12);
  --side: #0f1017;
  --card: #14161f;
  --card2: #1a1d28;
  --card3: #212535;
  --text: #eef0f7;
  --text2: #c9cdda;
  --muted: #8b92a6;
  --line: #242838;
  --line2: #2e3346;
  --accent: #7c5cff;
  --accent-2: #a28bff;
  --accent-soft: rgba(124, 92, 255, 0.14);
  --on-accent: #ffffff;
  --teal: #22c7a0;
  --ok: #2fd08a;
  --ok-soft: rgba(47, 208, 138, 0.13);
  --warn: #f5b83d;
  --warn-soft: rgba(245, 184, 61, 0.13);
  --bad: #f26d6d;
  --bad-soft: rgba(242, 109, 109, 0.13);
  --info: #5aa2ff;
  --info-soft: rgba(90, 162, 255, 0.13);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 32px rgba(0, 0, 0, 0.28);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.22);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    --bg: #f5f6fa;
    --bg-glow: rgba(106, 72, 255, 0.07);
    --side: #ffffff;
    --card: #ffffff;
    --card2: #f6f7fb;
    --card3: #eef0f6;
    --text: #141724;
    --text2: #343a4d;
    --muted: #667087;
    --line: #e6e8f0;
    --line2: #d9dce7;
    --accent: #6a48ff;
    --accent-2: #5a38f0;
    --accent-soft: rgba(106, 72, 255, 0.09);
    --ok: #10a865;
    --ok-soft: rgba(16, 168, 101, 0.1);
    --warn: #c47f00;
    --warn-soft: rgba(230, 160, 20, 0.13);
    --bad: #dc3d3d;
    --bad-soft: rgba(220, 61, 61, 0.09);
    --info: #2f7de1;
    --info-soft: rgba(47, 125, 225, 0.1);
    --shadow: 0 1px 2px rgba(20, 24, 40, 0.04), 0 8px 24px rgba(20, 24, 40, 0.06);
    --shadow-sm: 0 2px 8px rgba(20, 24, 40, 0.08);
    color-scheme: light;
  }
}
:root[data-theme='light'] {
  --bg: #f5f6fa;
  --bg-glow: rgba(106, 72, 255, 0.07);
  --side: #ffffff;
  --card: #ffffff;
  --card2: #f6f7fb;
  --card3: #eef0f6;
  --text: #141724;
  --text2: #343a4d;
  --muted: #667087;
  --line: #e6e8f0;
  --line2: #d9dce7;
  --accent: #6a48ff;
  --accent-2: #5a38f0;
  --accent-soft: rgba(106, 72, 255, 0.09);
  --ok: #10a865;
  --ok-soft: rgba(16, 168, 101, 0.1);
  --warn: #c47f00;
  --warn-soft: rgba(230, 160, 20, 0.13);
  --bad: #dc3d3d;
  --bad-soft: rgba(220, 61, 61, 0.09);
  --info: #2f7de1;
  --info-soft: rgba(47, 125, 225, 0.1);
  --shadow: 0 1px 2px rgba(20, 24, 40, 0.04), 0 8px 24px rgba(20, 24, 40, 0.06);
  --shadow-sm: 0 2px 8px rgba(20, 24, 40, 0.08);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  font:
    14.5px/1.55 var(--font),
    sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(1100px 520px at 20% -8%, var(--bg-glow), transparent 62%), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
}
a {
  color: var(--accent-2);
  text-decoration: none;
}
:root[data-theme='light'] a {
  color: var(--accent);
}
a:hover {
  text-decoration: underline;
}
h1 {
  font-size: 26px;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.025em;
  font-weight: 750;
}
h2 {
  font-size: 17px;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
  font-weight: 700;
}
h3 {
  font-size: 15px;
  margin: 0 0 4px;
  font-weight: 650;
}
h2,
h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
h2 .ico,
h3 .ico {
  color: var(--accent-2);
  width: 18px;
  height: 18px;
}
p {
  margin: 4px 0 12px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.mono {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13px;
}
.grow {
  flex: 1;
  min-width: 0;
}
.center-text {
  text-align: center;
}
small {
  display: block;
  font-size: 12.5px;
  line-height: 1.45;
}
.ico {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[hidden] {
  display: none !important;
}

/* ---------- layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}
.side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 14px;
  background: var(--side);
  border-right: 1px solid var(--line);
}
main {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 32px 80px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  padding: 4px 8px;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: #fff;
  box-shadow: 0 6px 18px rgba(124, 92, 255, 0.35);
}
.brand-mark .ico {
  width: 18px;
  height: 18px;
}
.brand-name {
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 14px;
}
.brand.big {
  margin-bottom: 18px;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 550;
}
.side-nav a:hover {
  background: var(--card2);
  color: var(--text);
  text-decoration: none;
}
.side-nav a.active {
  background: var(--accent-soft);
  color: var(--text);
}
.side-nav a.active .ico {
  color: var(--accent-2);
}
.side-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.who {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
}
.who-text {
  min-width: 0;
}
.who-text strong {
  display: block;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.who-text small {
  color: var(--muted);
  font-size: 11.5px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #b65cff);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.avatar.ghosted {
  background: var(--card3);
  color: var(--muted);
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  box-shadow: none;
}
.icon-btn:hover {
  background: var(--card2);
  border-color: var(--line);
  color: var(--text);
}
.icon-btn.tiny {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}
.icon-btn.tiny .ico {
  width: 14px;
  height: 14px;
}
.dots {
  font-size: 20px;
  line-height: 1;
  letter-spacing: -1px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 6px 0 22px;
  flex-wrap: wrap;
}
.page-head p {
  margin: 6px 0 0;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 10px;
}
.crumb .ico {
  width: 15px;
  height: 15px;
}
.crumb:hover {
  color: var(--text);
  text-decoration: none;
}

/* ---------- cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.card-title h2,
.card-title h3 {
  margin: 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin: 26px 0 14px;
  flex-wrap: wrap;
}
.section-head h2 {
  margin: 0;
}
.section-head p {
  margin: 2px 0 0;
}
.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.two-cols > .card {
  margin: 0;
}
.loading {
  color: var(--muted);
  padding: 30px 0;
  text-align: center;
}

/* ---------- formulários ---------- */
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line2);
  background: var(--card2);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.05s,
    box-shadow 0.15s;
  white-space: nowrap;
}
button:hover,
.button:hover {
  border-color: var(--muted);
  text-decoration: none;
}
button:active,
.button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button .ico,
.button .ico {
  width: 16px;
  height: 16px;
}
.primary {
  background: linear-gradient(135deg, var(--accent), #9a6bff);
  border-color: transparent;
  color: var(--on-accent);
  box-shadow: 0 6px 18px rgba(124, 92, 255, 0.3);
}
.primary:hover {
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(124, 92, 255, 0.42);
}
:root[data-theme='light'] .button.primary,
.button.primary {
  color: #fff;
}
.ghost {
  background: transparent;
}
.danger {
  color: var(--bad);
}
.danger:hover {
  border-color: var(--bad);
  background: var(--bad-soft);
}
.small {
  padding: 7px 12px;
  font-size: 13px;
}
.block {
  width: 100%;
}
.spinning .ico {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
input,
select,
textarea {
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--card2);
  border: 1px solid var(--line2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  width: 100%;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input[type='checkbox'] {
  width: auto;
  accent-color: var(--accent);
}
input[type='color'] {
  padding: 4px;
  height: 42px;
  width: 64px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 13.5px;
}
label small {
  font-weight: 400;
}
label.inline {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text2);
  flex-wrap: wrap;
}
label.inline .ico {
  color: var(--muted);
  width: 16px;
}
.label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 14px 0 8px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.tiny {
  width: 72px;
  padding: 7px 9px;
}
select.tiny {
  width: 92px;
}
.small-select {
  width: auto;
  padding: 7px 10px;
  font-size: 13px;
}
.row-end {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.check-line {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-weight: 550;
}
.input-suffix {
  display: flex;
  align-items: stretch;
}
.input-suffix input {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.input-suffix span {
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--line2);
  border-left: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--card3);
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
}
h3.sub {
  margin: 20px 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- avisos ---------- */
.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-weight: 550;
  margin: 6px 0;
}
.flash.error {
  background: var(--bad-soft);
  color: var(--bad);
}
.flash.ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  margin-bottom: 14px;
  line-height: 1.5;
}
.banner > .ico {
  margin-top: 2px;
}
.banner.info {
  background: var(--info-soft);
  border-color: transparent;
}
.banner.info > .ico {
  color: var(--info);
}
.banner.warn {
  background: var(--warn-soft);
  border-color: transparent;
  align-items: center;
}
.banner.warn > .ico {
  color: var(--warn);
}
.banner.ok {
  background: var(--ok-soft);
  border-color: transparent;
}
.banner.ok > .ico {
  color: var(--ok);
}
.tip {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  margin: 10px 0;
}
.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--card3);
  border: 1px solid var(--line2);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  animation: rise 0.2s ease-out;
  transition: opacity 0.3s;
}
.toast.ok .ico {
  color: var(--ok);
}
.toast.error .ico {
  color: var(--bad);
}
.toast.out {
  opacity: 0;
}
@keyframes rise {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
}

/* ---------- selos ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  background: var(--card3);
  color: var(--muted);
}
.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.badge.ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.badge.warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.badge.bad {
  background: var(--bad-soft);
  color: var(--bad);
}
.badge.info {
  background: var(--info-soft);
  color: var(--info);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: var(--card3);
  color: var(--text2);
  border: 1px solid transparent;
  white-space: nowrap;
  flex-direction: row;
}
.chip .ico {
  width: 13px;
  height: 13px;
}
.chip.accent {
  background: var(--accent-soft);
  color: var(--accent-2);
}
:root[data-theme='light'] .chip.accent {
  color: var(--accent);
}
.chip.info {
  background: var(--info-soft);
  color: var(--info);
}
.chip.warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.chip.muted {
  color: var(--muted);
}
.chip.tiny {
  padding: 1px 7px;
  font-size: 11px;
}
.chip.var {
  cursor: pointer;
  background: var(--card2);
  border-color: var(--line2);
  font-weight: 550;
  padding: 6px 10px;
}
.chip.var:hover {
  border-color: var(--accent);
  color: var(--text);
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chips .chip {
  cursor: pointer;
  padding: 7px 11px;
}

/* ---------- logo ---------- */
.logo-box {
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.logo-box.md {
  width: 46px;
  height: 46px;
}
.logo-box.lg {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}
.logo-box img {
  max-width: 82%;
  max-height: 70%;
  object-fit: contain;
}
.logo-box > span {
  font-weight: 800;
  color: #fff;
}
.logo-box.empty {
  background: linear-gradient(135deg, var(--accent), var(--teal));
  border: 0;
}

/* ---------- interruptor ---------- */
.switch {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  user-select: none;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: relative;
  width: 40px;
  height: 23px;
  flex: none;
  border-radius: 999px;
  background: var(--card3);
  border: 1px solid var(--line2);
  transition: background 0.2s;
}
.slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}
.switch input:checked + .slider {
  background: var(--ok);
  border-color: transparent;
}
.switch input:checked + .slider::after {
  transform: translateX(17px);
}
.switch input:focus-visible + .slider {
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.switch-label {
  color: var(--muted);
}
.switch input:checked ~ .switch-label {
  color: var(--ok);
}

/* ---------- controle segmentado ---------- */
.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 11px;
  background: var(--card2);
  border: 1px solid var(--line);
  flex-wrap: wrap;
}
.seg button {
  border: 0;
  background: transparent;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--muted);
  border-radius: 8px;
  box-shadow: none;
}
.seg button:hover {
  color: var(--text);
}
.seg button.on {
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
:root[data-theme='light'] .seg button.on {
  background: #fff;
}

/* ---------- login ---------- */
.auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.auth-card {
  width: 100%;
  max-width: 410px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px 30px;
  box-shadow: var(--shadow);
}
.auth-card h1 {
  font-size: 23px;
}
.auth-card .stack {
  margin-top: 18px;
}
.auth-card button[type='submit'] {
  width: 100%;
  padding: 12px;
}
.auth-foot {
  margin-top: 18px;
  font-size: 12.5px;
}

/* ---------- lojas ---------- */
.summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
}
.summary-item strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.summary-item small {
  font-size: 12px;
}
.summary-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-2);
}
.summary-item.link:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.summary-item.warn .summary-icon {
  background: var(--warn-soft);
  color: var(--warn);
}
.swatch {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  box-shadow:
    0 0 0 2px var(--card),
    0 0 0 3px var(--line2);
}
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 16px;
}
.store-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.store-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}
.store-card:focus-visible {
  outline: 3px solid var(--accent-soft);
}
.store-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.store-name {
  display: block;
  font-size: 16px;
}
.store-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.store-card-stats > div {
  padding: 12px;
  border-radius: 12px;
  background: var(--card2);
}
.store-card-stats small {
  color: var(--muted);
}
.store-card-stats strong {
  font-size: 19px;
  letter-spacing: -0.01em;
}
.store-card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.funnel-dots {
  display: flex;
  gap: 4px;
}
.funnel-dots i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--card3);
}
.funnel-dots i.on {
  background: var(--ok);
}
.store-card-foot .go {
  margin-left: auto;
  color: var(--muted);
  display: grid;
}
.store-card:hover .go {
  color: var(--accent-2);
}
.store-card.add {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  border-style: dashed;
  box-shadow: none;
  background: transparent;
  min-height: 200px;
}
.add-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-2);
  margin-bottom: 6px;
}
.menu {
  position: relative;
}
.menu-list {
  display: none;
  position: absolute;
  right: 0;
  top: 38px;
  z-index: 20;
  min-width: 232px;
  padding: 6px;
  border-radius: 13px;
  background: var(--card);
  border: 1px solid var(--line2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.menu.open .menu-list {
  display: block;
  animation: rise 0.12s ease-out;
}
.menu-list button {
  width: 100%;
  justify-content: flex-start;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 9px 10px;
  font-weight: 550;
  font-size: 13.5px;
  border-radius: 9px;
}
.menu-list button:hover {
  background: var(--card2);
}
.menu-list button .ico {
  color: var(--muted);
}
.menu-list button.danger,
.menu-list button.danger .ico {
  color: var(--bad);
}
.menu-list button.danger {
  border-top: 1px solid var(--line);
  border-radius: 0 0 9px 9px;
  margin-top: 4px;
}
.empty-state {
  text-align: center;
  padding: 50px 24px;
}
.empty-icon,
.big-icon {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent-2);
  margin-bottom: 12px;
}
.empty-icon .ico,
.big-icon .ico {
  width: 28px;
  height: 28px;
}
.big-icon.ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.big-icon.warn {
  background: var(--warn-soft);
  color: var(--warn);
}

/* ---------- assistente ---------- */
.stepper {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  flex-wrap: wrap;
}
.stepper li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}
.stepper .dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--card3);
  font-size: 12px;
}
.stepper li.current {
  border-color: var(--accent);
  color: var(--text);
}
.stepper li.current .dot {
  background: var(--accent);
  color: #fff;
}
.stepper li.done .dot {
  background: var(--ok);
  color: #fff;
}
ol.steps {
  padding-left: 20px;
  line-height: 1.9;
}
.copy-field {
  margin: 14px 0;
}
.copy-label {
  display: block;
  font-weight: 650;
  font-size: 13px;
  margin-bottom: 6px;
}
.copy-row {
  display: flex;
  gap: 8px;
}
.wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
details.why {
  margin-top: 12px;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text2);
}
table.compact {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 13.5px;
}
table.compact td,
table.compact th {
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.num {
  text-align: right !important;
}

/* ---------- página da loja ---------- */
.store-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0 18px;
}
.title-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.store-head p {
  margin: 4px 0 0;
}
.store-head p a {
  color: var(--muted);
}
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
}
.tabs a .ico {
  width: 16px;
  height: 16px;
}
.tabs a:hover {
  color: var(--text);
  background: var(--card2);
  text-decoration: none;
}
.tabs a.active {
  color: var(--text);
  background: var(--accent-soft);
}
.tabs a.active .ico {
  color: var(--accent-2);
}

/* ---------- visão geral ---------- */
.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.kpi {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.kpi small {
  color: var(--muted);
  font-weight: 550;
}
.kpi strong {
  font-size: 25px;
  letter-spacing: -0.02em;
}
.kpi-hint {
  font-size: 12.5px;
  color: var(--muted);
}
.kpi-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--card3);
  color: var(--text2);
  margin-bottom: 8px;
}
.kpi.accent {
  background:
    linear-gradient(145deg, rgba(124, 92, 255, 0.22), rgba(34, 199, 160, 0.1)), var(--card);
  border-color: rgba(124, 92, 255, 0.35);
}
.kpi.accent .kpi-icon {
  background: var(--accent);
  color: #fff;
}
.sync-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  flex-wrap: wrap;
}
.bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bar-row {
  display: grid;
  grid-template-columns: minmax(90px, 140px) 1fr auto 34px;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}
.bar-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-track {
  height: 8px;
  border-radius: 99px;
  background: var(--card3);
  overflow: hidden;
}
.bar-track i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
}
.bar-val {
  font-weight: 650;
  text-align: right;
}
.bar-count {
  text-align: right;
  font-size: 12px;
}

/* ---------- funis ---------- */
.funnel-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.funnel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s;
}
.funnel.is-on {
  border-color: color-mix(in srgb, var(--ok) 45%, var(--line));
}
.funnel-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.funnel-head h3 {
  font-size: 17px;
  margin: 0;
}
.funnel-head p {
  margin: 2px 0 0;
  font-size: 13.5px;
}
.funnel-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-2);
}
.funnel.is-on .funnel-icon {
  background: var(--ok-soft);
  color: var(--ok);
}
.funnel-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.timeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}
.step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--card2);
  border: 1px solid var(--line);
  scroll-snap-align: start;
  min-width: 0;
}
.step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 26px;
  right: -15px;
  width: 16px;
  height: 2px;
  background: var(--line2);
}
.step-card.off .thumb-link,
.step-card.off .step-subject {
  opacity: 0.45;
}
.step-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.step-num {
  font-weight: 750;
  font-size: 13px;
}
.when {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  flex: 1;
  min-width: 0;
}
.when .ico {
  width: 13px;
  height: 13px;
}
.step-top .switch {
  margin-left: auto;
}
.step-top .slider {
  width: 34px;
  height: 20px;
}
.step-top .slider::after {
  width: 14px;
  height: 14px;
}
.step-top .switch input:checked + .slider::after {
  transform: translateX(14px);
}
.thumb-link {
  position: relative;
  display: block;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f3f3f0;
}
.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.thumb iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 600px;
  border: 0;
  transform-origin: 0 0;
  pointer-events: none;
  background: #f3f3f0;
}
.thumb-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(10, 11, 16, 0.55);
  color: #fff;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.15s;
}
.thumb-link:hover .thumb-hover {
  opacity: 1;
}
.thumb-link:hover {
  text-decoration: none;
}
.step-subject {
  margin: 0;
  font-weight: 650;
  font-size: 13.5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.step-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.step-settings {
  border-top: 1px dashed var(--line2);
  padding-top: 8px;
}
.step-settings summary {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  list-style: none;
}
.step-settings summary::-webkit-details-marker {
  display: none;
}
.step-settings summary .ico {
  width: 15px;
  height: 15px;
}
.step-settings[open] summary {
  color: var(--text);
  margin-bottom: 10px;
}
.settings-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.settings-body select:not(.tiny) {
  width: auto;
  flex: 1;
}
.coupon-extra {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.save-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font-size: 13px;
}
.save-bar:not(:empty) {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--accent-soft);
}
.funnel-list.compact .funnel {
  opacity: 0.8;
}
.funnel-list.compact .timeline {
  grid-auto-columns: minmax(180px, 220px);
}

/* ---------- editor de e-mail ---------- */
.pager {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 11px;
  background: var(--card);
  border: 1px solid var(--line);
}
.pager button {
  border: 0;
  background: transparent;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--muted);
  box-shadow: none;
}
.pager button.on {
  background: var(--accent);
  color: #fff;
}
.editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 20px;
  align-items: start;
}
.editor-preview,
.colors-preview {
  position: sticky;
  top: 18px;
}
.scope-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.scope-line .label {
  margin: 0;
}
.locale-chips,
.chip-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip-row {
  margin-top: 10px;
}
.lchip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  background: var(--card2);
  border: 1px solid var(--line2);
  color: var(--text2);
  box-shadow: none;
}
.lchip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}
.lchip.edited .dot {
  background: var(--info);
}
.lchip.stale .dot {
  background: var(--warn);
  box-shadow: 0 0 0 3px var(--warn-soft);
}
.lchip .code {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.lchip.on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}
.lchip.mini {
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 500;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.legend {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
}
.counter {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}
.counter.over {
  color: var(--warn);
}
.var-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: -6px;
}
.sticky-actions {
  position: sticky;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line2);
  box-shadow: var(--shadow-sm);
  z-index: 5;
}
.preview-card {
  padding: 16px;
}
.inbox-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--card2);
}
.inbox-line > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.inbox-from {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.inbox-subject {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inbox-pre {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preview-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0;
  flex-wrap: wrap;
}
.preview-wrap {
  border-radius: 14px;
  overflow: hidden;
  background: #f3f3f0;
  border: 1px solid var(--line);
  margin: 0 auto;
  transition: max-width 0.25s;
}
.preview-wrap.desktop {
  max-width: 100%;
}
.preview-wrap.mobile {
  max-width: 390px;
}
.preview-frame {
  display: block;
  width: 100%;
  height: 72vh;
  min-height: 560px;
  border: 0;
  background: #f3f3f0;
}

/* ---------- cores ---------- */
.colors {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.palette {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 10px;
  white-space: normal;
  text-align: left;
  border-radius: 14px;
  background: var(--card2);
  border: 2px solid var(--line);
  box-shadow: none;
}
.palette:hover {
  border-color: var(--line2);
}
.palette.on {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.pal-info strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
}
.pal-info small {
  font-weight: 400;
  margin-top: 2px;
}
.pal-check {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.pal-check .ico {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}
.pal-mock {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 9px 10px;
  border-radius: 10px;
  background: var(--card);
  border: 6px solid var(--bg);
  overflow: hidden;
}
.pal-mock i {
  display: block;
  border-radius: 4px;
}
.pm-bar {
  height: 7px;
  background: var(--accent);
  margin: 0 -9px 2px;
  border-radius: 0 !important;
}
.pm-logo {
  width: 34px;
  height: 7px;
  background: var(--text);
  opacity: 0.85;
  align-self: center;
}
.pm-line {
  height: 5px;
  background: var(--text);
  opacity: 0.25;
}
.pm-line.w80 {
  width: 80%;
}
.pm-line.w60 {
  width: 60%;
}
.pm-box {
  height: 22px;
  background: var(--tint);
  border: 1px dashed var(--accent);
}
.pm-btn {
  height: 14px;
  background: var(--accent);
  border-radius: 5px !important;
}

/* ---------- marca ---------- */
.logo-preview {
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  margin: 10px 0 14px;
}
.logo-preview img {
  max-height: 60px;
  max-width: 260px;
}
.logo-preview .muted {
  color: #6b7280;
}
.color-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: 12px;
}
.swatch-btn {
  padding: 11px 18px;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
}
.badges-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
  border-radius: 14px;
  background: #f4f4f1;
  margin: 10px 0;
}
.gbadge {
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
  color: #1a1a18;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* ---------- idiomas ---------- */
.locale-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.locale-row {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--card2);
  border: 1px solid var(--line);
  font-weight: 500;
  flex-wrap: wrap;
  cursor: pointer;
}
.locale-row:has(input:checked) {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
}
.locale-row .badge {
  font-size: 11px;
  padding: 3px 8px;
}

/* ---------- conexão e usuários ---------- */
dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 20px;
  margin: 14px 0 18px;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  font-weight: 550;
  word-break: break-all;
}
.bad-text {
  color: var(--bad);
}
details.card > summary {
  list-style: none;
}
details.card[open] > summary {
  margin-bottom: 14px;
}
.user-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.user-row:last-child {
  border-bottom: 0;
}
.user-row .avatar {
  width: 38px;
  height: 38px;
}
.user-row small {
  margin-top: 2px;
}
.user-row details {
  margin-top: 6px;
}
.user-row details[open] .chips,
.user-row details[open] .actions {
  margin-top: 10px;
}

/* ---------- celular e tablet ---------- */
@media (max-width: 1100px) {
  .editor,
  .colors {
    grid-template-columns: 1fr;
  }
  .editor-preview,
  .colors-preview {
    position: static;
  }
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .side {
    position: sticky;
    z-index: 30;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--side) 92%, transparent);
    backdrop-filter: blur(12px);
  }
  .side .brand-name {
    display: none;
  }
  .side-nav {
    flex-direction: row;
    gap: 2px;
  }
  .side-nav a {
    padding: 8px 10px;
  }
  .side-foot {
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
  }
  .who-text {
    display: none;
  }
  main {
    padding: 18px 16px 70px;
  }
  .two-cols {
    grid-template-columns: 1fr;
  }
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .tabs a span {
    display: none;
  }
  .tabs a.active span {
    display: inline;
  }
}
@media (max-width: 560px) {
  h1 {
    font-size: 22px;
  }
  .card {
    padding: 16px;
  }
  .side-nav a span {
    display: none;
  }
  .store-grid {
    grid-template-columns: 1fr;
  }
  .timeline {
    grid-auto-columns: 78%;
  }
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .kpi strong {
    font-size: 20px;
  }
  .bar-row {
    grid-template-columns: 90px 1fr auto;
  }
  .bar-count {
    display: none;
  }
  .preview-frame {
    height: 64vh;
    min-height: 460px;
  }
  .sticky-actions {
    flex-wrap: wrap;
  }
  .copy-row {
    flex-direction: column;
  }
}
