/* Centopeia — identidade visual inspirada na linguagem da OpenAI:
   monocromático (preto/branco), tipografia de peso médio, barra lateral mínima,
   caixa de texto grande e arredondada, botões em pílula e degradês suaves.
   O laranja da Shopee aparece só como brilho de destaque. */
:root {
  color-scheme: dark; /* tema escuro é o padrão; o claro está logo abaixo (0.22.0) */
  --bg: #000000;
  --surface: #0f0f0f;
  --surface-2: #171717;
  --surface-3: #212121;
  --field: #2a2a2a;
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.66);
  --text-3: rgba(255, 255, 255, 0.44);
  --line: rgba(255, 255, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.08);
  --primary-bg: #ffffff;
  --primary-fg: #000000;
  --pill-bg: rgba(255, 255, 255, 0.10);
  --pill-hover: rgba(255, 255, 255, 0.16);
  --focus: rgba(255, 255, 255, 0.35);
  --brand: #ff6a3d;
  --orbit: linear-gradient(100deg, #3ddc84, #2bb3ff 30%, #8c5aff 55%, #ff3d8b 80%, #ff6a3d); /* degradê do logotipo */
  --green: #3ddc84;
  --orange: #ffb340;
  --red: #ff5a52;
  --blue: #7cb7ff;
  --radius: 20px;
  --radius-sm: 12px;
  --font: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --sidebar: 248px;
  --backdrop: rgba(0, 0, 0, .6);
  --loader-bg: rgba(0, 0, 0, .82);
  --shadow: rgba(0, 0, 0, .45);
}

/* Tema claro (0.22.0): o botão de sol/lua na barra lateral põe data-theme="light" no <html>.
   As cores de status ficam mais fortes para terem contraste no fundo branco. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f7f7f8;
  --surface-2: #efeff1;
  --surface-3: #e6e6e9;
  --field: #f1f1f3;
  --text: #0d0d0d;
  --text-2: rgba(0, 0, 0, 0.62);
  --text-3: rgba(0, 0, 0, 0.46);
  --line: rgba(0, 0, 0, 0.14);
  --line-soft: rgba(0, 0, 0, 0.08);
  --primary-bg: #0d0d0d;
  --primary-fg: #ffffff;
  --pill-bg: rgba(0, 0, 0, 0.055);
  --pill-hover: rgba(0, 0, 0, 0.10);
  --focus: rgba(0, 0, 0, 0.28);
  --brand: #f0592b;
  --green: #12a150;
  --orange: #c27400;
  --red: #d63a31;
  --blue: #2f6fd6;
  --pink: #e0256f;
  --backdrop: rgba(20, 20, 25, .28);
  --loader-bg: rgba(255, 255, 255, .86);
  --shadow: rgba(0, 0, 0, .14);
}
:root[data-theme="light"] .glow::before { opacity: .35; }
:root[data-theme="light"] .segmented button.on { box-shadow: 0 6px 18px -8px rgba(255, 106, 61, .6); }

/* Botão de alternar claro/escuro (ao lado do status do WhatsApp) */
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.side-foot .nav-status { margin-top: 0; flex: 1; min-width: 0; }
.theme-btn {
  flex: none; width: 40px; height: 40px; border-radius: 12px; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--surface); color: var(--text-2); transition: background .15s, color .15s;
}
.theme-btn:hover { background: var(--pill-bg); color: var(--text); }
.theme-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.theme-btn svg { width: 19px; height: 19px; }
.theme-btn .ico-moon { display: none; }
:root[data-theme="light"] .theme-btn .ico-sun { display: none; }
:root[data-theme="light"] .theme-btn .ico-moon { display: block; }


* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: text-decoration-color .2s; }
a:hover { text-decoration-color: currentColor; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
::selection { background: var(--brand); color: #fff; }

/* ---------- Estrutura: barra lateral + conteúdo ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; overflow-x: clip; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 28px;
  padding: 22px 14px; border-right: 1px solid var(--line-soft); background: var(--bg);
}
/* Marca da Centopeia (0.8.0): símbolo de 64 px no topo da barra lateral e o nome escrito logo abaixo (public/marca/). */
.brand { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 4px 8px 16px; text-decoration: none; }
/* O desenho do símbolo ocupa a faixa do meio do quadro de 64 px: a margem negativa aproxima o nome dele. */
.brand-mark { width: 64px; height: 64px; flex: none; display: block; margin-bottom: -12px; }
.brand-name { font-size: 26px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; color: var(--text); }
.nav-links { display: flex; flex-direction: column; gap: 2px; }
.nav-links a {
  padding: 8px 12px; border-radius: 10px; color: var(--text-2); text-decoration: none;
  font-size: 15px; font-weight: 450; transition: background .15s, color .15s; white-space: nowrap;
}
.nav-links a:hover { background: var(--pill-bg); color: var(--text); }
.nav-links a.active { background: var(--pill-bg); color: var(--text); font-weight: 500; }
.nav-status { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface); font-size: 13px; color: var(--text-2); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); display: inline-block; flex: none; }
.dot.on { background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); }
.dot.wait { background: var(--orange); animation: pulse 1.4s infinite; }
.dot.off { background: var(--red); }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Página ---------- */
.page { width: 100%; max-width: 1040px; margin: 0 auto; padding: 64px 40px 120px; min-width: 0; }
.hero { text-align: center; margin: 24px auto 56px; position: relative; }
.eyebrow { color: var(--text-2); font-weight: 500; font-size: 14px; margin: 0 0 14px; letter-spacing: 0; }
h1 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.12; font-weight: 500; letter-spacing: -0.035em; margin: 0; }
.lead { font-size: 18px; color: var(--text-2); margin: 16px auto 0; max-width: 620px; line-height: 1.55; }
h2 { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; margin: 0 0 4px; line-height: 1.2; }
h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 4px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 64px 0 18px; flex-wrap: wrap; }
.section-head:first-child { margin-top: 0; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.tiny { font-size: 12px; color: var(--text-3); }

/* Brilho suave atrás do título (degradê laranja → violeta) */
.glow::before {
  content: ""; position: absolute; left: 50%; top: -120px; width: min(760px, 120%); height: 360px; transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 38%, transparent), transparent 70%),
              radial-gradient(closest-side at 70% 60%, rgba(140, 90, 255, .22), transparent 70%);
  filter: blur(40px); opacity: .55; z-index: -1; pointer-events: none;
}

/* ---------- Caixa grande (estilo "composer") ---------- */
.composer {
  max-width: 720px; margin: 28px auto 0; background: var(--field); border-radius: 26px;
  padding: 18px 18px 14px 22px; display: grid; gap: 8px; text-align: left;
  border: 1px solid var(--line-soft); transition: border-color .2s;
}
.composer:focus-within { border-color: var(--line); }
.composer textarea { width: 100%; background: transparent; border: 0; outline: none; resize: none; min-height: 58px; max-height: 260px; font-size: 16px; line-height: 1.5; padding: 0; }
.composer textarea::placeholder { color: var(--text-3); }
.composer-foot { display: flex; align-items: center; gap: 10px; }
.composer-foot .tiny { flex: 1; }
.send-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; flex: none;
  background: var(--primary-bg); color: var(--primary-fg); display: grid; place-items: center; transition: opacity .2s, transform .1s;
}
.send-btn:disabled { opacity: .3; cursor: default; }
.send-btn:active { transform: scale(.95); }
.send-btn svg { width: 18px; height: 18px; }
.pill-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px auto 0; max-width: 720px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; background: transparent; transition: background .15s;
}
.pill:hover { background: var(--pill-bg); }
.sim-out { max-width: 720px; margin: 18px auto 0; text-align: left; }

/* ---------- Cartões ---------- */
.grid { display: grid; gap: 14px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1100px) { .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .grid.cols-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid.cols-2, .grid.cols-4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; }
.card.tight { padding: 18px 20px; }
.card .label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.stat { font-size: 40px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.status-card { display: flex; flex-direction: column; gap: 10px; min-height: 170px; }
.status-card .row { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 18px; letter-spacing: -0.02em; }
.status-card .grow { flex: 1; }
/* Faixa de degradê no topo (lembra as capas com arte abstrata).
   Vale para os cartões de status e para qualquer bloco com a classe "art".
   Cada assunto tem a sua cor, a mesma em todo o painel:
   WhatsApp verde/azul · Shopee laranja · Espelhamento rosa/roxo · IA azul/roxo · Envio verde · Conteúdo laranja/rosa. */
.art { position: relative; overflow: hidden; }
.status-card::before, .art::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--art, linear-gradient(90deg, #ff6a3d, #ff3d8b, #8c5aff)); opacity: .9; pointer-events: none; transition: opacity .2s; }
.art-wa { --art: linear-gradient(90deg, #3ddc84, #2bb3ff); }
.art-shopee { --art: linear-gradient(90deg, #ffb340, #ff6a3d); }
.art-mirror { --art: linear-gradient(90deg, #ff3d8b, #8c5aff); }

/* ---------- Botões ---------- */
.btn {
  appearance: none; border: 0; cursor: pointer; border-radius: 999px;
  padding: 10px 20px; font-size: 14px; font-weight: 500;
  background: var(--primary-bg); color: var(--primary-fg); transition: opacity .2s, transform .1s, background .2s;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none;
}
.btn:hover { opacity: .86; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .35; cursor: default; }
.btn.secondary { background: var(--pill-bg); color: var(--text); }
.btn.secondary:hover { background: var(--pill-hover); opacity: 1; }
.btn.ghost { background: transparent; color: var(--text-2); padding: 8px 12px; }
.btn.ghost:hover { color: var(--text); background: var(--pill-bg); opacity: 1; }
.btn.danger { background: transparent; color: var(--red); }
.btn.danger:hover { background: color-mix(in srgb, var(--red) 12%, transparent); opacity: 1; }
.btn.danger-solid { background: var(--red); color: #fff; }
.btn.small { padding: 6px 13px; font-size: 13px; }
.btn.large { padding: 13px 26px; font-size: 15px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--text); text-decoration: underline; cursor: pointer; font-size: inherit; }

/* ---------- Formulários ---------- */
.form-section { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.form-section > header { padding: 26px 28px 4px; }
.form-section > header h2 { font-size: 22px; }
.form-section > header p { margin: 6px 0 0; color: var(--text-2); font-size: 15px; }
.form-body { padding: 16px 28px 28px; display: grid; gap: 20px; }
.field { display: grid; gap: 7px; }
/* 0.26.2: cartão "Intervalo em conjunto" no Espelhamento */
.joint-card { display: grid; gap: 14px; margin-bottom: 20px; }
.joint-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.joint-head > div { min-width: 0; }
.joint-head h3 { margin: 0 0 6px; }
.joint-head p { margin: 0; max-width: 62ch; }
.joint-row { display: grid; gap: 7px; }
.joint-row[hidden] { display: none; }
.joint-row label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.joint-who { margin: 0; color: var(--text-2); }
.field > label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.field .hint { font-size: 13px; color: var(--text-3); line-height: 1.5; }
.input, textarea.input, select.input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-soft);
  background: var(--field); outline: none; transition: border-color .2s, box-shadow .2s; font-size: 15px;
}
.input::placeholder { color: var(--text-3); }
.input:focus { border-color: var(--line); box-shadow: 0 0 0 3px var(--line-soft); }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.5; }
#affId, #appId { font-family: var(--mono); font-size: 14px; }
.row-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .row-fields { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 2px 0; }
.toggle-row .txt { display: grid; gap: 2px; }
.toggle-row .txt strong { font-weight: 500; }
.toggle-row .txt span { font-size: 14px; color: var(--text-2); }
.toggle-row .txt .dot { margin-right: 8px; vertical-align: middle; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch .track { position: absolute; inset: 0; background: var(--surface-3); border: 1px solid var(--line-soft); border-radius: 26px; cursor: pointer; transition: background .2s; }
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--text-2); transition: transform .2s, background .2s;
}
.switch input:checked + .track { background: linear-gradient(90deg, #ff3d8b, #8c5aff); border-color: transparent; }
.switch input:checked + .track::after { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px var(--focus); }

/* ---------- Seletor segmentado ---------- */
.segmented { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.segmented button { border: 1px solid var(--line); background: transparent; padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--text-2); transition: background .15s, color .15s; }
.segmented button:hover { color: var(--text); background: var(--pill-bg); }
.segmented button.on { background: var(--primary-bg); color: var(--primary-fg); border-color: var(--primary-bg); box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 6px 18px -6px rgba(255, 106, 61, .55); }

/* ---------- Listas ---------- */
.list { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-top: 1px solid var(--line-soft); }
.list-item:first-child { border-top: 0; }
.list-item .main { flex: 1; min-width: 0; }
.list-item .title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .sub { font-size: 13px; color: var(--text-2); }
.empty { text-align: center; padding: 56px 24px; color: var(--text-2); }
.empty h3 { color: var(--text); }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--pill-bg); color: var(--text-2); white-space: nowrap; }
.badge.green { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.badge.red { background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red); }
.badge.orange { background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange); }
.badge.blue { background: color-mix(in srgb, var(--blue) 16%, transparent); color: var(--blue); }
.route-interval { margin-top: 14px; }
/* Aba Grupos (gestão dos grupos de destino) */
.grp-in { color: var(--green); }
.grp-out { color: var(--red); }
.grp-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 26px 0 14px; }
.grp-limit { display: inline-flex; align-items: center; gap: 8px; }
.grp-limit .input { width: 90px; padding: 6px 10px; }
.grp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grp-grid { grid-template-columns: 1fr; } }
.grp-card { display: grid; gap: 12px; }
.grp-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }
.grp-size { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.grp-size strong { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.grp-free { margin-left: auto; font-size: 13px; font-weight: 500; }
.grp-free.green { color: var(--green); } .grp-free.orange { color: var(--orange); } .grp-free.red { color: var(--red); }
.grp-bar { height: 8px; border-radius: 999px; background: var(--pill-bg); overflow: hidden; }
.grp-bar span { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.grp-bar span.orange { background: var(--orange); } .grp-bar span.red { background: var(--red); }
.grp-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grp-nums > div { display: grid; gap: 2px; }
.grp-nums b { font-weight: 500; font-variant-numeric: tabular-nums; }
.grp-link { display: flex; gap: 6px; align-items: center; }
.grp-link .input { flex: 1; min-width: 0; padding: 7px 10px; font-family: 'Geist Mono', monospace; font-size: 12px; }
.grp-link-missing { color: var(--text-2); }
.grp-missing { color: var(--orange); margin: 0; }
/* Rodízio de grupos (0.17.0) */
.rot-card { display: grid; gap: 18px; margin-bottom: 8px; }
.rot-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.rot-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rot-stats .label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.rot-stats .stat { font-size: 30px; }
.rot-list { display: grid; gap: 12px; }
.rot-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
.rot-row .grp-bar { grid-column: 1 / -1; }
.rot-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.rot-name b { font-weight: 500; overflow-wrap: anywhere; }
.chip.rot-next { border-color: transparent; background: linear-gradient(90deg, #ff3d8b, #8c5aff); color: #fff; padding: 2px 10px; font-size: 12px; }
.rot-size { font-variant-numeric: tabular-nums; }
.rot-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rot-fields { display: grid; align-items: start; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 700px) { .rot-fields { grid-template-columns: 1fr; } }
.rot-created { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.rot-warn { color: var(--orange); margin: 4px 0 0; padding-left: 16px; }
/* Contagem regressiva das ofertas na fila (Histórico) */
.eta { font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--blue); white-space: nowrap; font-variant-numeric: tabular-nums; }
.eta.now { color: var(--green); }
.force-btn { padding: 3px 10px; font-size: 12px; }
/* Verificação com IA: selo ✓ e destaque das ofertas que aguardam a sua análise */
.review-chip { font-size: 11px; font-weight: 500; white-space: nowrap; }
.review-chip.ok { color: var(--green); }
.review-chip.warn { color: var(--orange); }
.review-chip.cat { color: var(--text-2); font-weight: 400; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.hist-item.needs-review { background: color-mix(in srgb, var(--orange) 7%, transparent); box-shadow: inset 3px 0 0 var(--orange); }
.hist-item.needs-review .sub { color: var(--text); }
.nav-count { margin-left: 8px; display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--orange); color: #111; font-size: 11px; font-weight: 600; vertical-align: 1px; }
.hist-actions { display: inline-flex; gap: 6px; }
.cancel-btn { color: var(--text-2); }
.cancel-btn:hover { color: var(--red); }
/* No celular, os botões descem para baixo da etiqueta, para não espremer o título */
@media (max-width: 700px) {
  .status-with-mark:has(.hist-actions) { display: grid; grid-template-columns: auto auto; justify-items: end; gap: 6px 8px; }
  .status-with-mark .hist-actions { grid-column: 1 / -1; grid-row: 2; flex-direction: column; align-items: flex-end; }
}
/* Centopeia ao lado do status no Histórico: o desenho vira "molde" (mask) pintado na cor do status */
.status-with-mark { display: inline-flex; align-items: center; gap: 8px; }
.cento-mark { width: 26px; height: 26px; flex: none; background: var(--text-2);
  -webkit-mask: url(/marca/centopeia.svg) center / contain no-repeat; mask: url(/marca/centopeia.svg) center / contain no-repeat; }
.cento-mark.green { background: var(--green); }
.cento-mark.red { background: var(--red); }
.cento-mark.orange { background: var(--orange); }
.cento-mark.blue { background: var(--blue); }
.cento-mark.brand { background: url(/marca/centopeia.svg) center / contain no-repeat; -webkit-mask: none; mask: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-soft); background: var(--surface-2); color: var(--text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Rotas */
.route-card { display: grid; gap: 18px; }
.route-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.route-head h3 { flex: 1; margin: 0; font-size: 19px; min-width: 120px; }
.route-flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: start; }
.route-flow .arrow { font-size: 22px; padding-top: 20px; background: linear-gradient(90deg, #ff3d8b, #8c5aff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.route-card.is-paused::before { opacity: .3; }
.route-card.is-paused .route-flow { opacity: .55; }
.route-card.is-paused .route-flow .arrow { filter: grayscale(1); }
@media (max-width: 700px) { .route-flow { grid-template-columns: 1fr; } .route-flow .arrow { padding: 0; transform: rotate(90deg); justify-self: center; } }

/* Histórico */
.hist-item { cursor: pointer; align-items: flex-start; transition: background .15s; }
.hist-item:hover { background: var(--surface-2); }
.hist-detail { display: none; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.hist-item.open .hist-detail { display: grid; }
@media (max-width: 700px) { .hist-detail { grid-template-columns: 1fr; } }
.msg-box { background: var(--field); border-radius: 14px; padding: 12px 14px; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.msg-box .cap { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); display: block; margin-bottom: 6px; }

/* QR */
.qr-wrap { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.qr-wrap img { width: 232px; height: 232px; border-radius: 18px; background: #fff; padding: 10px; }
.pair-code {
  font-family: var(--mono); font-size: clamp(30px, 6vw, 44px); font-weight: 500; letter-spacing: .12em;
  padding: 26px 30px; border-radius: 18px; background: var(--field); border: 1px solid var(--line);
  user-select: all; white-space: nowrap;
}
.qr-steps { margin: 0; padding-left: 20px; color: var(--text-2); display: grid; gap: 6px; font-size: 15px; }

/* Desempenho */
:root { --chart-1: #ee4d2d; } /* laranja Shopee, validado para a superfície escura (faixa de luminosidade e contraste) */
.perf-controls { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: center; margin-bottom: 26px; }
.perf-sync { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; }
.perf-money { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.perf-chart-card { padding: 18px 16px 10px; }
.attr-card { padding: 18px; display: grid; gap: 16px; }
.attr-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--pill-bg); }
.attr-bar span { display: block; height: 100%; }
.attr-bar .direta, .attr-legend .dot.direta { background: var(--green); }
.attr-bar .indireta, .attr-legend .dot.indireta { background: var(--pink, #ff3d8b); }
.attr-bar .sem, .attr-legend .dot.sem { background: var(--text-3); }
.attr-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 20px; }
.attr-legend > div { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; row-gap: 2px; align-items: center; }
.attr-legend .dot { width: 10px; height: 10px; border-radius: 50%; }
.attr-legend .perf-money, .attr-legend .tiny { grid-column: 2; }
.attr-legend .perf-money { font-size: 20px; }
.attr-ind { color: var(--pink, #ff3d8b); }
.attr-tag { font-size: 11px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line, rgba(255,255,255,.12)); color: var(--text-2); white-space: nowrap; }
.attr-tag.direta { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.attr-tag.indireta { color: var(--pink, #ff3d8b); border-color: color-mix(in srgb, var(--pink, #ff3d8b) 40%, transparent); }
.perf-chart { position: relative; width: 100%; }
.perf-chart svg { display: block; }
.perf-chart .axis { fill: var(--text-3); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.perf-chart .axis.best { fill: var(--text); font-weight: 500; }
.perf-chart .axis.val { fill: var(--text-2); font-weight: 500; } /* 0.26.0: valor em cima das outras colunas */
/* contorno da cor do cartão: o número continua legível quando passa por cima da coluna vizinha */
.perf-chart .axis.val, .perf-chart .axis.best { paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.perf-chart .bars { filter: drop-shadow(0 0 10px rgba(255, 61, 139, .28)); }
.perf-chart .bar { transition: opacity .15s; }
.perf-chart.hovering .bar { opacity: .35; }
.perf-chart.hovering .bar.on { opacity: 1; }
.chart-tip strong { background: linear-gradient(90deg, #ff6a3d, #ff3d8b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chart-tip {
  position: absolute; pointer-events: none; min-width: 150px; padding: 9px 12px; border-radius: 12px;
  background: var(--surface-3); border: 1px solid var(--line); font-size: 13px; line-height: 1.45; box-shadow: 0 10px 30px var(--shadow);
}

/* Janela (modal) */
.sheet-backdrop { position: fixed; inset: 0; background: var(--backdrop); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.sheet-backdrop[hidden] { display: none; }
.sheet { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 24px; width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 30px; box-shadow: 0 30px 80px var(--shadow); animation: rise .2s ease-out; }
@keyframes rise { from { transform: translateY(12px) scale(.99); opacity: 0; } }
.sheet h2 { margin-bottom: 18px; }
/* Regras da rota (0.19.0) */
.mode-options { display: grid; gap: 8px; }
.mode-option { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; cursor: pointer; }
.mode-option:has(input:checked) { border-color: var(--text-2); background: var(--pill-bg); }
.mode-option input { margin-top: 3px; accent-color: var(--brand); }
.mode-option > span { display: grid; gap: 2px; min-width: 0; }
.mode-option .hint { font-size: 13px; color: var(--text-3); line-height: 1.5; }
.adv { border: 1px solid var(--line); border-radius: var(--radius-sm); }
.adv summary { cursor: pointer; padding: 14px 16px; font-weight: 500; list-style: none; display: flex; align-items: center; gap: 8px; }
.adv summary::-webkit-details-marker { display: none; }
.adv summary::before { content: "›"; display: inline-block; transition: transform .15s; color: var(--text-3); font-size: 18px; line-height: 1; }
.adv[open] summary::before { transform: rotate(90deg); }
.adv-body { padding: 0 16px 16px; display: grid; gap: 18px; }
.adv-toggle { display: flex; gap: 12px; align-items: flex-start; }
.adv-toggle > div { display: grid; gap: 2px; }
.adv-toggle .hint { font-size: 13px; color: var(--text-3); line-height: 1.5; }
.adv-fields { border: 0; padding: 0; margin: 0; display: grid; gap: 20px; min-width: 0; }
.adv-fields:disabled { opacity: .45; }
.adv-fields .segmented { justify-content: flex-start; }
.check-list { display: grid; gap: 6px; }
.check-item { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.check-item input { margin-top: 3px; accent-color: var(--brand); flex: none; }
.check-item > span { display: grid; gap: 1px; min-width: 0; }
.niche-list { display: grid; gap: 14px; margin-top: 6px; }
.niche-list[hidden] { display: none; }
.niche-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.niche-group { border-top: 1px solid var(--line-soft); padding-top: 10px; display: grid; gap: 4px; }
.niche-group-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.niche-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; }
.niche-name { display: grid; gap: 1px; font-size: 14px; min-width: 0; }
.niche-who { display: flex; gap: 6px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.pill-check { display: inline-flex; align-items: center; cursor: pointer; }
.pill-check input { position: absolute; opacity: 0; pointer-events: none; }
.pill-check span { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--text-2); transition: background .15s, color .15s, border-color .15s; }
.pill-check input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.pill-check input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 560px) { .niche-row { flex-direction: column; align-items: flex-start; } .niche-who { justify-content: flex-start; } }
.picker { border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; background: var(--field); }
.picker .input { border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; background: transparent; }
.picker .input:focus { box-shadow: none; }
.picker-list { max-height: 240px; overflow: auto; }
.picker-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; font-size: 15px; border-top: 1px solid var(--line-soft); }
.picker-item:first-child { border-top: 0; }
.picker-item:hover { background: var(--pill-bg); }
.picker-item input { width: 17px; height: 17px; accent-color: var(--text); }
.picker-item .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Aviso rápido */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: var(--primary-bg); color: var(--primary-fg); padding: 11px 20px; border-radius: 999px; font-size: 14px; font-weight: 500; z-index: 200; max-width: calc(100% - 32px); box-shadow: 0 10px 30px var(--shadow); }
.toast.error { background: var(--red); color: #fff; }

/* Ajuda (documentos) */
.doc { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 44px clamp(22px, 5vw, 64px); }
.doc h1 { font-size: 36px; margin-bottom: 10px; }
.doc h2 { margin-top: 44px; padding-top: 4px; }
.doc h3, .doc h4 { margin-top: 28px; font-weight: 500; }
.doc p, .doc li { color: var(--text); }
.doc blockquote { margin: 18px 0; padding: 14px 18px; background: var(--surface-2); border-left: 3px solid var(--brand); border-radius: 0 12px 12px 0; }
.doc blockquote p { margin: 4px 0; }
.doc code { background: var(--surface-3); padding: 2px 6px; border-radius: 6px; font-size: .88em; font-family: var(--mono); }
.doc pre { background: var(--field); padding: 16px; border-radius: 14px; overflow: auto; }
.doc pre code { padding: 0; background: none; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.doc th { font-weight: 500; color: var(--text-2); }
.doc img { max-width: 100%; }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--orange) 35%, transparent); background: color-mix(in srgb, var(--orange) 8%, transparent); font-size: 15px; margin-bottom: 20px; }
.notice.info { border-color: var(--line); background: var(--surface); }
.notice strong { display: block; font-weight: 500; margin-bottom: 4px; }

/* ---------- Celular / tela estreita: barra lateral vira barra no topo ---------- */
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    min-width: 0;
    position: sticky; top: 0; z-index: 50; height: auto; flex-direction: row; align-items: center; gap: 12px;
    padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line-soft);
    background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  }
  .brand { padding: 0; flex-direction: row; }
  .brand-mark { width: 38px; height: 38px; margin-bottom: 0; }
  .brand-name { display: none; }
  .nav-links { flex-direction: row; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding: 6px 10px; font-size: 14px; }
  .nav-status { margin: 0; padding: 6px; background: none; }
  .nav-status .label { display: none; }
  .side-foot { margin: 0; gap: 4px; }
  .side-foot .nav-status { flex: none; }
  .theme-btn { width: 34px; height: 34px; background: none; }
  .page { padding: 36px 16px 96px; }
  .card { padding: 20px; }
  .form-section > header { padding: 22px 20px 4px; }
  .form-body { padding: 14px 20px 22px; }
  .sheet { padding: 22px; }
}

/* Valores em reais nos cartões do Desempenho: menores, para caberem em qualquer largura */
.stat.money { font-size: clamp(24px, 2.3vw, 32px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Anúncio gerado por IA (tela Início) */
.ad-result { text-align: left; display: grid; gap: 8px; }
.ad-product { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.ad-product img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--surface-3); flex: none; }
.ad-product .main { min-width: 0; }
.ad-product .title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ad-product .sub { font-size: 13px; color: var(--text-2); }
.ad-text { min-height: 180px; font-size: 15px; line-height: 1.5; }
.status-grid { margin-top: 0; }

/* Configurações: cartões clicáveis e sub-telas */
.card-link { text-decoration: none; color: var(--text); transition: border-color .15s, background .15s, transform .1s; cursor: pointer; }
.card-link:hover { border-color: var(--line); background: var(--surface-2); text-decoration: none; }
.card-link:active { transform: scale(.995); }
.card-action { color: var(--text); font-weight: 500; text-decoration: none; }
a.card-action:hover { text-decoration: underline; }
.art-ai { --art: linear-gradient(90deg, #7cb7ff, #8c5aff); }
.art-send { --art: linear-gradient(90deg, #3ddc84, #b4e64a); }
.art-content { --art: linear-gradient(90deg, #ffb340, #ff3d8b); }

/* Caixa grande do Início: ao digitar, a borda vira o degradê da marca (o mesmo do logotipo). */
.composer:focus-within {
  border-color: transparent;
  background: linear-gradient(var(--field), var(--field)) padding-box,
              linear-gradient(100deg, #3ddc84, #2bb3ff 30%, #8c5aff 55%, #ff3d8b 80%, #ff6a3d) border-box;
}
.sub-head { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.back-btn { padding-left: 4px; text-decoration: none; }
.sub-section { max-width: 760px; margin: 0 auto; }
.sub-head { max-width: 760px; margin-left: auto; margin-right: auto; }
.sub-actions { border-top: 1px solid var(--line-soft); padding-top: 18px; }

/* Início: links gerados */
.ads-section { margin-top: 56px; }
.ads-section .section-head { margin-top: 0; }
.ads-grid { display: grid; gap: 14px; }
.ad-card { display: grid; gap: 12px; text-align: left; }
.ad-card.is-new { border-color: color-mix(in srgb, var(--brand) 55%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.ad-card .ad-product { margin-bottom: 0; }
.ad-card .tiny a { color: var(--text-3); word-break: break-all; }
.ad-noimg { width: 64px; height: 64px; border-radius: 12px; background: var(--surface-3); flex: none; }
.ad-actions { gap: 8px; }

/* ---------- Achados (0.6.0) ---------- */
.offers-bar { display: grid; gap: 14px; justify-items: center; margin-bottom: 26px; }
.offers-search { display: flex; gap: 8px; width: min(560px, 100%); }
.offers-search .input { flex: 1; min-width: 0; }
.offers-filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: center; font-size: 13px; color: var(--text-2); }
.offers-filters label { display: inline-flex; align-items: center; gap: 8px; }
.offers-filters .input { width: auto; padding: 6px 10px; font-size: 13px; border-radius: 10px; }
.offers-filters input[type=number] { width: 110px; }
.offers-check input { width: 16px; height: 16px; accent-color: #ff3d8b; }
.offers-sync { display: inline-flex; align-items: center; gap: 10px; }
.offers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.offer-card { display: flex; flex-direction: column; gap: 12px; padding: 12px; }
.offer-img { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #fff; }
.offer-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.offer-off { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: linear-gradient(90deg, #ff6a3d, #ff3d8b); box-shadow: 0 4px 12px -4px rgba(255, 61, 139, .6); }
.offer-body { display: grid; gap: 4px; flex: 1; align-content: start; }
.offer-name { font-weight: 500; font-size: 14px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.7em; }
.offer-price { display: flex; align-items: baseline; gap: 8px; }
.offer-price s { font-size: 12px; color: var(--text-3); }
.offer-price strong { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.offer-earn { font-size: 13px; margin-top: 2px; }
.offer-earn strong { background: linear-gradient(90deg, #ff6a3d, #ff3d8b); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }
.offer-actions { display: flex; gap: 8px; align-items: center; }
.offer-actions .btn { flex: 1; min-width: 0; justify-content: center; text-align: center; padding-left: 8px; padding-right: 8px; }
.offer-open { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; text-decoration: none; font-size: 14px; opacity: 0; transition: opacity .15s; }
.offer-card:hover .offer-open, .offer-open:focus-visible { opacity: 1; }
.offer-open:hover { background: rgba(0, 0, 0, .8); }
/* Links gerados em cartões pequenos (0.20.0) */
.ad-card.offer-card { gap: 10px; }
.ad-snippet { font-size: 12.5px; color: var(--text-2); line-height: 1.45; white-space: pre-line; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; margin-top: 2px; }
.ad-noimg-big { width: 100%; height: 100%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-3); font-size: 13px; }
/* Achados: filtro lateral de nichos (0.20.0) */
.offers-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
.offers-main { min-width: 0; }
.niche-side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
.niche-side:empty { display: none; }
.niche-side-box { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--surface); }
.niche-side-box summary { list-style: none; cursor: pointer; padding: 12px 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.niche-side-box summary::-webkit-details-marker { display: none; }
.niche-side-body { padding: 0 10px 12px; display: grid; gap: 10px; }
.niche-link { appearance: none; border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 13.5px; text-align: left; padding: 6px 8px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; }
.niche-link.on { background: var(--pill-bg); color: var(--text); }
.niche-who-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 4px; }
.niche-side-group { display: grid; gap: 1px; }
.niche-side-title { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 6px 8px 4px; }
.niche-side-item { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 8px; font-size: 13.5px; cursor: pointer; color: var(--text-2); }
.niche-side-item:hover { background: var(--pill-bg); color: var(--text); }
.niche-side-item input { accent-color: var(--brand); flex: none; }
.niche-side-item span:nth-child(2) { flex: 1; min-width: 0; }
.niche-side-item.is-empty { opacity: .45; }
.niche-n { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .offers-layout { grid-template-columns: minmax(0, 1fr); }
  .niche-side { position: static; max-height: none; }
}
@media (max-width: 640px) {
  .offers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .offer-card { padding: 10px; }
  .offer-actions { flex-wrap: wrap; }
  .offer-actions .btn { flex: 1 1 100%; }
  .offer-open { opacity: 1; }
}

/* "Carregar mais" no fim das listas (0.23.0) */
.more-wrap { display: grid; justify-items: center; gap: 6px; margin: 22px 0 4px; }
/* Produtos campeões em cartões (0.23.0): posição no canto da foto e seta de subiu/caiu/manteve */
.champ-rank { position: absolute; top: 8px; left: 8px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: linear-gradient(90deg, #ff6a3d, #ff3d8b); font-variant-numeric: tabular-nums; }
.champ-move { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .6); font-variant-numeric: tabular-nums; }
.champ-move.up { background: #12a150; }
.champ-move.down { background: #d63a31; }
.champ-move.new { background: linear-gradient(90deg, #2bb3ff, #8c5aff); }
.champ-move-txt { font-weight: 500; }
.champ-move-txt.up { color: var(--green); }
.champ-move-txt.down { color: var(--red); }
.champ-move-txt.same { color: var(--text-2); }
.champ-move-txt.new { color: var(--blue); }
.champ-summary { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; margin: 0 0 14px; }
.champ-left { margin-top: 14px; }

/* ---------- Carregando com o logotipo (0.6.1) ---------- */
.loader { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: var(--loader-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; pointer-events: none; transition: opacity .2s; }
.loader.on { opacity: 1; pointer-events: auto; }
.loader-box { display: grid; justify-items: center; gap: 16px; transform: scale(.96); transition: transform .25s; }
.loader.on .loader-box { transform: none; }
.loader-anim { width: min(420px, 86vw); height: auto; aspect-ratio: 680 / 260; display: block; }
.loader-still { width: 96px; height: 96px; display: block; }
.loader-anim[hidden], .loader-still[hidden] { display: none; }
.loader-text { font-size: 15px; color: var(--text); text-align: center; padding: 0 16px; }
/* Nota "oferta quente" (0.7.0): canto de baixo da foto; 70+ ganha o degradê da marca. */
.offer-hot { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .6); font-variant-numeric: tabular-nums; }
.offer-hot.is-hot { background: linear-gradient(90deg, #ff6a3d, #ff3d8b, #8c5aff); box-shadow: 0 4px 14px -4px rgba(255, 61, 139, .7); }

/* ---------- Login e primeiro acesso (0.28.0) ---------- */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; box-sizing: border-box; }
.auth-wrap { width: 100%; max-width: 420px; display: grid; gap: 22px; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.auth-brand img { width: 40px; height: 40px; }
.auth-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 28px; }
.auth-card h1 { font-size: 28px; margin-bottom: 6px; }
.auth-card > p { margin: 0 0 20px; line-height: 1.5; }
.auth-card form { display: grid; gap: 16px; }
.auth-btn { width: 100%; justify-content: center; margin-top: 4px; }
.auth-error { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.auth-error[hidden] { display: none; }
.auth-help { margin: 16px 0 0; text-align: center; }
.auth-foot { text-align: center; margin: 0; }
@media (max-width: 480px) { .auth-card { padding: 22px 18px; } }
.field[hidden] { display: none; }

/* ---------- Faixa "Nova versão disponível" (0.30.0) ---------- */
.update-bar { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 32px); box-sizing: border-box; padding: 10px 12px 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .55); font-size: 14px; color: var(--text); }
.update-bar[hidden] { display: none; }
@media (max-width: 560px) { .update-bar { border-radius: 16px; padding: 12px 14px; text-align: center; } }

/* ---------- Olhinho para mostrar a senha (0.31.0) ---------- */
.pw-wrap { position: relative; display: block; }
.pw-wrap > .input { padding-right: 46px; }
.pw-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--text-3); cursor: pointer; }
.pw-toggle:hover { color: var(--text); background: var(--pill-bg); }
.pw-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; color: var(--text); }
.pw-toggle svg { width: 19px; height: 19px; }
.pw-wrap > .input::-ms-reveal, .pw-wrap > .input::-ms-clear { display: none; } /* Edge tem o próprio olho: fica só o nosso */
