[hidden] { display: none !important; }
:root {
  --verde: #1fc27a;
  --display: 'Schibsted Grotesk', system-ui, sans-serif;
  --texto: 'Schibsted Grotesk', system-ui, sans-serif;
  --fundo: #f3f5f9; --fundo-rgb: 243,245,249; --sup: #ffffff; --card: #ffffff; --linha: #dfe4ee; --linha2: #cbd3e2;
  --txt: #0d1322; --txt2: #4a5470; --txt3: #737d95; --azul: #2f5cf0; --azul2: #2448d8; --ambar: #9a6400; --verm: #c33340;
  --sutil: rgba(13,19,34,.06); --tit1: #0d1322; --tit2: #2f5cf0; --sombra: rgba(13,19,34,.25); color-scheme: light;
  --b-fundo: #f4f7fd; --b-brilho: rgba(47,92,240,.16); --b-brilho2: rgba(47,92,240,.10); --b-leao: url('/img/leao.webp'); --b-leao-op: 1; --b-leao-w: min(470px, 38%); --b-leao-mob: .22;
  --b-titulo: linear-gradient(#0d1322, #0d1322); --b-sombra: rgba(47,92,240,.18); --b-tag: #2f5cf0; --b-lema: #34405c;
}
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) {
  --fundo: #080b14; --fundo-rgb: 8,11,20; --sup: #0d1220; --card: #10172a; --linha: #1d2742; --linha2: #2a3657;
  --txt: #e8ecf5; --txt2: #a0a9bf; --txt3: #6b7591; --azul: #3b6cff; --azul2: #94b0ff; --ambar: #f2b24c; --verm: #f0616d;
  --sutil: rgba(255,255,255,.07); --tit1: #ffffff; --tit2: #9fb6ff; --sombra: rgba(0,0,0,.7); color-scheme: dark;
  --b-fundo: #050812; --b-brilho: rgba(47,92,240,.28); --b-brilho2: rgba(47,92,240,.18); --b-leao: url('/img/leao.webp'); --b-leao-op: 1; --b-leao-w: min(560px, 48%);
  --b-titulo: linear-gradient(180deg, #ffffff 25%, #b9c9f5 60%, #6f8fe8 100%); --b-sombra: rgba(47,92,240,.38); --b-tag: #4f86ff; --b-lema: #c8d4f2;
} }
:root[data-tema="escuro"] {
  --fundo: #080b14; --fundo-rgb: 8,11,20; --sup: #0d1220; --card: #10172a; --linha: #1d2742; --linha2: #2a3657;
  --txt: #e8ecf5; --txt2: #a0a9bf; --txt3: #6b7591; --azul: #3b6cff; --azul2: #94b0ff; --ambar: #f2b24c; --verm: #f0616d;
  --sutil: rgba(255,255,255,.07); --tit1: #ffffff; --tit2: #9fb6ff; --sombra: rgba(0,0,0,.7); color-scheme: dark;
  --b-fundo: #050812; --b-brilho: rgba(47,92,240,.28); --b-brilho2: rgba(47,92,240,.18); --b-leao: url('/img/leao.webp'); --b-leao-op: 1; --b-leao-w: min(560px, 48%);
  --b-titulo: linear-gradient(180deg, #ffffff 25%, #b9c9f5 60%, #6f8fe8 100%); --b-sombra: rgba(47,92,240,.38); --b-tag: #4f86ff; --b-lema: #c8d4f2;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { overscroll-behavior-y: none; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topo-h) + var(--barra-h) + 12px);
  scrollbar-width: thin; scrollbar-color: var(--linha2) var(--fundo); }
:root { --topo-h: 70px; --barra-h: 67px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--fundo); }
::-webkit-scrollbar-thumb { background: var(--linha2); border-radius: 10px; border: 2px solid var(--fundo); }
::-webkit-scrollbar-thumb:hover { background: var(--txt3); }
.painel-corpo { scrollbar-width: thin; overscroll-behavior: contain; }
.painel-corpo::-webkit-scrollbar-track { background: var(--sup); }
.painel-corpo::-webkit-scrollbar-thumb { border-color: var(--sup); }
body { background: var(--fundo); color: var(--txt); font: 15px/1.55 var(--texto); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--azul2); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.num { font-variant-numeric: tabular-nums; }

/* botões */
.bt { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--linha2); background: var(--sup); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.bt:hover { border-color: var(--txt3); }
.bt svg { width: 18px; height: 18px; flex: none; }
.bt-verde { background: var(--verde); border-color: var(--verde); color: #04170d; }
.bt-verde:hover { background: #2bd488; border-color: #2bd488; }
.bt-azul { background: var(--azul); border-color: var(--azul); color: #fff; }
.qtd { font-size: 12px; font-weight: 700; color: var(--txt2); background: var(--sutil); border-radius: 6px; padding: 1px 6px; margin-left: 2px; font-variant-numeric: tabular-nums; }

/* topo */
.topo { position: sticky; top: 0; z-index: 40; background: var(--fundo); border-bottom: 1px solid var(--linha); }
.topo-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 70px; }
.marca { display: flex; align-items: center; gap: 12px; min-width: 0; }
.marca-u { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--azul); color: #fff; display: grid; place-items: center; }
.marca-u svg { width: 26px; height: 26px; }
.marca-txt b { display: block; font: 800 19px/1.1 var(--display); letter-spacing: -.01em; }
.marca-txt small { display: flex; align-items: center; gap: 5px; color: var(--txt3); font-size: 12.5px; white-space: nowrap; }
.marca-txt small strong { color: var(--txt); font-weight: 700; }
.ponto { width: 7px; height: 7px; border-radius: 50%; background: var(--azul2); flex: none; }
.data::before { content: ''; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--txt3); margin: 0 7px 3px; }

/* banner */
/* banner: sempre escuro, inspirado na arte da marca (leão, hexágonos, circuitos) */
.banner { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--linha); color: var(--txt);
  background: radial-gradient(ellipse 60% 70% at 55% 0%, var(--b-brilho), transparent 70%), radial-gradient(ellipse 40% 60% at 100% 100%, var(--b-brilho2), transparent 70%), var(--b-fundo); }
.banner::before { content: ''; position: absolute; z-index: -1; left: 0; top: 0; bottom: 0; width: var(--b-leao-w, min(560px, 48%));
  background: var(--b-leao) left center / cover no-repeat; opacity: var(--b-leao-op);
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 100%), linear-gradient(180deg, #000 70%, transparent 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, #000 45%, transparent 100%), linear-gradient(180deg, #000 70%, transparent 100%); mask-composite: intersect; }
.banner::after { content: ''; position: absolute; z-index: -1; right: 0; top: 0; bottom: 0; width: 40%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 55 16.5v31L28 63 1 47.5v-31z M28 63v34' fill='none' stroke='%233b6cff' stroke-opacity='.35' stroke-width='1.2'/%3E%3C/svg%3E") right top / 56px 97px repeat;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 100% 30%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 90% 80% at 100% 30%, #000 10%, transparent 70%); }
.circuito { position: absolute; z-index: -1; right: 0; top: 0; width: min(520px, 45%); height: 100%; pointer-events: none; }
.circuito path { fill: none; stroke: #4d7dff; stroke-width: 1.4; opacity: .55; }
.circuito circle { fill: #9fc0ff; filter: drop-shadow(0 0 6px #3b6cff); }
.banner-in { position: relative; padding: 64px 16px 58px; text-align: center; }
.banner h1 { font: 900 clamp(48px, 10vw, 128px)/.86 var(--display); letter-spacing: -.04em;
  background: var(--b-titulo); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 24px var(--b-sombra)); }
.banner .banner-tag { margin: 12px 0 0; max-width: none; font: 800 clamp(20px, 3vw, 34px)/1.1 var(--display); color: var(--b-tag); letter-spacing: -.01em; text-shadow: 0 0 22px var(--b-sombra); }
.banner .banner-lema { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px auto 0; max-width: none; font-size: 13px; font-weight: 600; letter-spacing: .32em; color: var(--b-lema); }
.banner .banner-lema::before, .banner .banner-lema::after { content: ''; width: min(90px, 12vw); height: 1px; background: linear-gradient(90deg, transparent, #4d7dff); }
.banner .banner-lema::after { transform: scaleX(-1); }
.banner p.banner-desc { color: var(--txt2); margin: 16px auto 0; max-width: 52ch; font-size: 16px; }
@media (max-width: 900px) {
  .banner::before { width: 100%; opacity: var(--b-leao-mob, .45); -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%); mask-image: linear-gradient(180deg, #000 30%, transparent 100%); }
  .banner::after, .circuito { opacity: .5; }
  .banner .banner-lema { letter-spacing: .16em; font-size: 11.5px; white-space: nowrap; }
  .banner .banner-lema::before, .banner .banner-lema::after { display: none; }
}

/* atalho VIP */
.atalho { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 14px 18px; background: var(--sup); border: 1px solid var(--linha); border-radius: 14px; }
.atalho:hover { border-color: var(--linha2); }
.atalho-ic { width: 42px; height: 42px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(31,194,122,.12); color: var(--verde); }
.atalho-ic svg { width: 22px; height: 22px; }
.atalho-txt { flex: 1; min-width: 0; }
.atalho-txt b { display: block; font-weight: 700; }
.atalho-txt small { color: var(--txt2); font-size: 13.5px; }
.atalho-tag { font-size: 12px; font-weight: 700; color: var(--verde); border: 1px solid rgba(31,194,122,.4); border-radius: 99px; padding: 2px 10px; }

/* abas por tipo */
.abas { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 20px 0 16px; }
.aba { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; background: var(--sup); border: 1px solid var(--linha); border-radius: 12px; cursor: pointer; }
.aba:hover { border-color: var(--linha2); }
.aba svg { width: 26px; height: 26px; flex: none; stroke: var(--txt3); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.aba b { display: block; font-weight: 600; font-size: 14.5px; color: var(--txt2); }
.aba small { font-size: 12.5px; color: var(--txt3); font-variant-numeric: tabular-nums; }
.aba[aria-pressed="true"] { background: rgba(59,108,255,.12); border-color: var(--azul); }
.aba[aria-pressed="true"] b { color: var(--txt); }
.aba[aria-pressed="true"] svg { stroke: var(--azul2); }
.aba[aria-pressed="true"] small { color: var(--azul2); }

/* barra fixa */
html { overflow-anchor: none; }
.barra { position: sticky; top: var(--topo-h); z-index: 25; overflow-anchor: none; background: var(--fundo); border-bottom: 1px solid var(--linha); }
.ferramentas { display: flex; align-items: center; gap: 10px; padding: 12px 0; }
.campo-rot { display: flex; align-items: center; gap: 10px; }
.campo-rot > span { font-size: 13px; color: var(--txt3); }
.seg { display: flex; gap: 6px; }
.seg button, .chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--linha2);
  background: var(--sup); color: var(--txt2); font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"], .chip[aria-pressed="true"] { background: rgba(59,108,255,.14); border-color: var(--azul); color: var(--txt); }
.seg button[aria-pressed="true"] .qtd, .chip[aria-pressed="true"] .qtd { color: var(--azul2); background: rgba(59,108,255,.18); }
.chip:disabled { opacity: .35; cursor: default; }
.chip .cor { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.busca { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; background: var(--sup); border: 1px solid var(--linha2); border-radius: 99px; }
.busca:focus-within { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(59,108,255,.15); }
.busca svg { width: 17px; height: 17px; flex: none; stroke: var(--txt3); fill: none; stroke-width: 2; }
.busca input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0 !important; box-shadow: none; background: none; }
.busca input::placeholder { color: var(--txt3); }
.bt-filtros svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.bt-filtros .qtd { background: var(--azul); color: #fff; }
.campo { height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--linha2); background: var(--sup); font-weight: 600; font-size: 14px; }

/* painel de filtros: janela (pop-up) */
.painel { position: fixed; inset: 0; z-index: 50; background: rgba(3,5,10,.72); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.painel-caixa { width: min(760px, 100%); max-height: 86vh; display: flex; flex-direction: column; background: var(--sup); border: 1px solid var(--linha2); border-radius: 18px; box-shadow: 0 30px 80px -20px var(--sombra); }
.painel-topo { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--linha); }
.painel-topo h3 { font: 800 20px var(--display); letter-spacing: -.01em; }
.fechar { background: none; border: 0; color: var(--txt2); width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; border-radius: 8px; }
.fechar:hover { color: var(--txt); background: var(--sutil); }
.fechar svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; }
.painel-corpo { display: grid; gap: 20px; overflow: auto; padding: 18px 20px; }
.painel-pe { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--linha); }
.grupo { display: grid; gap: 8px; }
.grupo > h4 { font-size: 13.5px; font-weight: 700; color: var(--txt); }
.grupo > h4 small { font-weight: 500; font-size: 12px; color: var(--txt3); margin-left: 6px; }
.opcoes { display: flex; flex-wrap: wrap; gap: 6px; }
.limpar-linha { display: none; }
.regua-caixa { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 4px; }
.regua { position: relative; width: min(380px, 100%); height: 30px; }
.regua .trilho, .regua .cheio { position: absolute; top: 13px; height: 4px; border-radius: 4px; }
.regua .trilho { left: 0; right: 0; background: var(--linha2); }
.regua .cheio { background: var(--azul); }
.regua input { position: absolute; inset: 0; width: 100%; -webkit-appearance: none; appearance: none; background: none; pointer-events: none; }
.regua input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--azul); cursor: grab; }
.regua input::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--azul); cursor: grab; }
.regua-txt { font-weight: 700; color: var(--azul2); font-size: 14px; }
.limpar-linha { display: flex; justify-content: flex-end; }
.link { background: none; border: 0; color: var(--azul2); font-weight: 600; cursor: pointer; font-size: 13.5px; }

/* lista */
.aviso { margin-top: 18px; padding: 10px 14px; border-radius: 10px; background: rgba(242,178,76,.08); border: 1px solid rgba(242,178,76,.25); color: var(--ambar); font-size: 14px; }
.lista-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 6px; }
.lista-topo h2 { font: 800 24px/1.1 var(--display); letter-spacing: -.015em; }
.lista-topo span { color: var(--txt3); font-size: 13.5px; }
.secao { margin-top: 22px; }
.secao-cab { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.secao-cab .cor { width: 8px; height: 8px; border-radius: 50%; }
.secao-cab h3 { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.secao-cab .qtd { margin: 0; }
.secao-cab::after { content: ''; flex: 1; height: 1px; background: var(--linha); }
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.vazio { padding: 60px 16px; text-align: center; color: var(--txt2); border: 1px dashed var(--linha2); border-radius: 14px; margin-top: 20px; }

/* card */
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--linha); border-radius: 14px; }
.card::before { content: ''; position: absolute; left: 18px; right: 18px; top: -1px; height: 2px; border-radius: 2px; background: var(--cor, var(--azul)); opacity: .8; }
.card.destaque { border-color: rgba(59,108,255,.6); }
.selo-novo { position: absolute; top: -10px; left: 14px; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: #fff; background: var(--azul); border-radius: 6px; padding: 2px 8px; }
.card-topo { display: flex; align-items: flex-start; gap: 10px; padding: 18px 18px 0; }
.card-cat { font-size: 12px; color: var(--txt3); }
.card-topo h3 { font: 800 20px/1.15 var(--display); letter-spacing: -.01em; }
.estado { flex: none; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 7px; color: var(--azul2); background: rgba(59,108,255,.12); border: 1px solid rgba(59,108,255,.35); }
.estado.reservada { color: var(--ambar); background: rgba(242,178,76,.1); border-color: rgba(242,178,76,.3); }
.estado.vendida { color: var(--verm); background: rgba(240,97,109,.1); border-color: rgba(240,97,109,.3); }
.card-texto { padding: 12px 18px 4px; font-size: 14px; line-height: 1.62; color: var(--txt2); }
.card-texto p { min-height: 1em; }
.card-texto p.vazia { height: .7em; }
.card-texto p.cab { color: var(--txt); font-weight: 700; margin-top: 2px; }
.card-texto p.forte { color: var(--txt); }
.card-texto p.item { padding-left: 14px; position: relative; }
.card-texto p.item::before { content: ''; position: absolute; left: 1px; top: .78em; width: 6px; height: 2px; border-radius: 2px; background: var(--azul2); }
.card-rodape { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 12px 18px 0; padding: 14px 0 16px; border-top: 1px solid var(--linha); }
.preco span { display: block; font-size: 12px; color: var(--txt3); }
.preco b { font: 800 25px/1 var(--display); }
.acoes { display: flex; gap: 6px; }
.ic-bt { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--linha2); background: var(--sup); color: var(--txt2); cursor: pointer; }
.ic-bt:hover { color: var(--txt); border-color: var(--txt3); }
.ic-bt svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card.vendida { opacity: .5; }
.card.vendida .preco b { text-decoration: line-through; text-decoration-thickness: 2px; }

.flutuante { position: fixed; right: 18px; bottom: 18px; z-index: 30; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .2s, transform .2s; height: 50px; border-radius: 99px; box-shadow: 0 10px 28px -8px rgba(31,194,122,.55); }
.rodape { margin-top: 70px; border-top: 1px solid var(--linha); }
.rodape-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 100px; color: var(--txt3); font-size: 13.5px; }
.marca-mini { font: 800 16px var(--display); color: var(--txt); }
.toast { position: fixed; left: 50%; bottom: 86px; transform: translateX(-50%); background: var(--txt); color: var(--fundo); padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; z-index: 99; }

@media (max-width: 900px) {
  .topo-in { height: 62px; }
  .topo-in .bt-verde span { display: none; }
  .topo-in .bt-verde { width: 46px; padding: 0; border-radius: 99px; }
  .data { display: none; }
  .banner-in { padding: 36px 16px 32px; }
  .abas { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .aba { padding: 10px 12px; }
  .ferramentas { flex-wrap: wrap; }
  .campo-rot { flex-basis: 100%; }
  .campo-rot > span { display: none; }
  .seg { flex: 1; }
  .seg button { flex: 1; justify-content: center; padding: 0 8px; }
  .busca { flex-basis: 100%; order: 2; }
  .bt-filtros, .campo { order: 3; flex: 1; }
  .painel { align-items: flex-end; padding: 0; }
  .painel-caixa { max-height: 88vh; border-radius: 18px 18px 0 0; border-width: 1px 0 0; }
  .painel-pe .bt { flex: 1; }
  .grade { grid-template-columns: minmax(0, 1fr); }
  .card-topo, .card-texto { padding-left: 16px; padding-right: 16px; }
  .card-rodape { margin: 12px 16px 0; }
  .ic-bt { width: 38px; height: 38px; }
  .acoes .bt { height: 38px; padding: 0 12px; }
  .preco b { font-size: 22px; }
  .card-texto { overflow-wrap: anywhere; }
  .flutuante span { display: none; }
  .flutuante { width: 56px; height: 56px; padding: 0; }
  .flutuante svg { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* botão de tema */
.topo-dir { display: flex; align-items: center; gap: 8px; }
.bt-tema { width: 42px; padding: 0; color: var(--txt2); }
.bt-tema svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* barra que recolhe: depois dos blocos de tipo, o tipo vira um seletor na barra fixa */
.tipo-mini { display: none; }
body.recolhido .tipo-mini { display: block; }
.flutuante.mostrar { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 900px) {
  :root { --topo-h: 62px; --barra-h: 160px; }
  body.recolhido .tipo-mini { flex-basis: 100%; order: 0; }
  body.recolhido .campo-rot { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .flutuante { transition: none; } }
.tema-wrap { position: relative; }
.bt-tema[aria-expanded="true"] { border-color: var(--azul); color: var(--txt); }
.tema-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 200px; padding: 6px; background: var(--sup); border: 1px solid var(--linha2); border-radius: 12px; box-shadow: 0 18px 40px -12px var(--sombra); }
.tema-op { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--txt2); cursor: pointer; text-align: left; }
.tema-op:hover, .tema-op:focus-visible { background: var(--sutil); color: var(--txt); outline: none; }
.tema-op svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tema-op .ok { margin-left: auto; width: 16px; height: 16px; color: var(--azul2); visibility: hidden; }
.tema-op[aria-checked="true"] { color: var(--txt); font-weight: 600; }
.tema-op[aria-checked="true"] .ok { visibility: visible; }

/* instalar como app */
.instalar-wrap { position: relative; }
.bt-instalar { color: var(--txt); }
.bt-instalar svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dica-ios { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 260px; padding: 14px; background: var(--sup); border: 1px solid var(--linha2); border-radius: 12px; box-shadow: 0 18px 40px -12px var(--sombra); font-size: 14px; color: var(--txt2); }
.dica-ios b { display: block; color: var(--txt); margin-bottom: 4px; }
.dica-ios strong { color: var(--txt); }
.dica-ios svg { width: 16px; height: 16px; vertical-align: -3px; fill: none; stroke: var(--azul2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .bt-instalar span { display: none; } .bt-instalar { width: 42px; padding: 0; } }
@media (display-mode: standalone) { .bt-instalar { display: none !important; } }

/* ícones no texto do card (no lugar dos emojis) */
.card-texto p.com-ic { display: flex; align-items: flex-start; gap: 8px; padding-left: 0; }
.card-texto p.com-ic::before { display: none; }
.card-texto .ic { width: 16px; height: 16px; flex: none; margin-top: .22em; fill: none; stroke: var(--azul2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-texto p.cab .ic { stroke: var(--azul); }
.card-texto p.forte .ic { stroke: var(--txt2); }
/* bandeiras */
.bandeira { width: 20px; height: 13.3px; flex: none; border-radius: 2.5px; box-shadow: 0 0 0 1px rgba(127,127,127,.25); }
.seg button:disabled { opacity: .35; cursor: default; }
.moeda-card { display: inline-flex; align-items: center; gap: 5px; margin-right: 8px; padding-right: 8px; border-right: 1px solid var(--linha2); font-weight: 600; color: var(--txt2); }
.moeda-card .bandeira { width: 16px; height: 10.7px; }
.card-cat { display: flex; align-items: center; }
@media (max-width: 900px) { .seg button { gap: 5px; font-size: 13px; } .seg .qtd { display: none; } }
/* tier */
.selos { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.tier { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 7px; border: 1px solid var(--linha2); color: var(--txt2); background: var(--sutil); }
.tier.t3 { color: var(--azul2); border-color: var(--azul); background: rgba(59,108,255,.12); }

/* convite para instalar o app */
.convite { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(3,5,10,.66); backdrop-filter: blur(3px); }
.convite-caixa { width: min(400px, 100%); background: var(--sup); border: 1px solid var(--linha2); border-radius: 20px; padding: 26px 24px 20px; text-align: center; box-shadow: 0 30px 80px -20px var(--sombra); }
.convite-ic { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 30px -8px rgba(59,108,255,.6); }
.convite-sino { display: inline-grid; place-items: center; background: linear-gradient(140deg, #3b6cff, #2447c7); }
.convite-sino svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.convite-caixa h3 { font: 800 22px/1.15 var(--display); letter-spacing: -.01em; margin-top: 14px; }
.convite-sub { color: var(--txt2); margin-top: 6px; font-size: 14.5px; }
.convite-lista { list-style: none; text-align: left; margin: 16px auto 0; display: grid; gap: 8px; max-width: 330px; }
.convite-lista li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; }
.convite-lista svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--azul2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.convite-passos { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--sutil); font-size: 14px; color: var(--txt2); text-align: left; }
.convite-passos b { color: var(--txt); }
.convite-pe { display: flex; gap: 10px; margin-top: 18px; }
.convite-pe .bt { flex: 1; }
@media (max-width: 900px) { .convite { align-items: flex-end; padding: 0; } .convite-caixa { border-radius: 20px 20px 0 0; border-width: 1px 0 0; padding-bottom: 24px; } }

/* seletor (ordenar / tipo) */
.sel { position: relative; flex: none; }
.sel.tipo-mini { display: none; }
body.recolhido .sel.tipo-mini { display: block; }
.sel-bt { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-width: 180px; height: 42px; padding: 0 12px 0 14px;
  border-radius: 10px; border: 1px solid var(--linha2); background: var(--sup); color: var(--txt); font-weight: 600; font-size: 14px; cursor: pointer; }
.sel-bt:hover { border-color: var(--txt3); }
.sel.aberto .sel-bt { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(59,108,255,.18); }
.sel-bt svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--txt3); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.sel.aberto .sel-bt svg { transform: rotate(180deg); }
.sel-lista { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 100%; width: max-content; max-width: 86vw; padding: 6px; background: var(--sup);
  border: 1px solid var(--linha2); border-radius: 12px; box-shadow: 0 18px 44px -12px var(--sombra); }
.sel.tipo-mini .sel-lista { left: 0; right: auto; }
.sel-op { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--txt2); cursor: pointer; text-align: left; white-space: nowrap; }
.sel-op:hover, .sel-op:focus-visible { background: var(--sutil); color: var(--txt); outline: none; }
.sel-op svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--azul2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.sel-op[aria-selected="true"] { color: var(--txt); font-weight: 700; background: rgba(59,108,255,.1); }
.sel-op[aria-selected="true"] svg { visibility: visible; }
@media (max-width: 900px) {
  .sel.ordem { order: 3; flex: 1; }
  .sel.ordem .sel-bt { min-width: 0; }
  body.recolhido .sel.tipo-mini { flex-basis: 100%; order: 0; }
}

/* sino de avisos */
.avisos-wrap { position: relative; }
.bt-sino { width: 42px; padding: 0; position: relative; color: var(--txt2); }
.bt-sino svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sino-n { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--verm); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--fundo); }
.avisos-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: min(360px, calc(100vw - 32px)); background: var(--sup); border: 1px solid var(--linha2); border-radius: 14px; box-shadow: 0 20px 50px -14px var(--sombra); overflow: hidden; }
.avisos-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--linha); }
.link-av { background: var(--azul); color: #fff; border: 0; border-radius: 8px; padding: 6px 10px; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.avisos-dica { padding: 10px 16px; font-size: 13px; color: var(--txt2); background: var(--sutil); border-bottom: 1px solid var(--linha); }
.avisos-lista { max-height: 60vh; overflow: auto; }
.aviso-item { display: grid; gap: 2px; padding: 12px 16px; border-bottom: 1px solid var(--linha); }
.aviso-item:last-child { border-bottom: 0; }
.aviso-item:hover { background: var(--sutil); }
.aviso-item b { font-size: 14px; }
.aviso-item span { font-size: 13.5px; color: var(--txt2); }
.aviso-item small { font-size: 12px; color: var(--txt3); }
.aviso-item.novo b::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--azul); margin: 0 7px 2px 0; }
.avisos-vazio { padding: 24px 16px; text-align: center; color: var(--txt3); font-size: 14px; }

/* modo edição (dentro do painel) */
.editando [data-campo] { outline: 1.5px dashed rgba(59,108,255,.55); outline-offset: 4px; border-radius: 4px; cursor: text; min-width: 40px; }
.editando [data-campo]:hover { outline-color: var(--azul); background: rgba(59,108,255,.06); }
.editando [data-campo]:focus { outline: 2px solid var(--azul); background: rgba(59,108,255,.08); }
.editando #aviso:empty::before { content: attr(data-vazio); opacity: .6; }
.editando .flutuante, .editando .bt-instalar { display: none !important; }
@media (max-width: 900px) { .bt-sino { width: 42px; } }

.editar-ativo { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--azul); background: var(--azul); color: #fff; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.editar-ativo svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.editando .card:hover { border-color: var(--azul); }
.novo-ed { position: fixed; right: 18px; bottom: 18px; z-index: 40; height: 46px; padding: 0 18px; border-radius: 99px; border: 0; background: var(--azul); color: #fff; font-weight: 700; font-size: 14.5px; cursor: pointer; box-shadow: 0 10px 28px -8px rgba(59,108,255,.6); }
/* marcações do WhatsApp no card */
.card-texto strong { color: var(--txt); font-weight: 700; }
.card-texto code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--sutil); border: 1px solid var(--linha); border-radius: 5px; padding: 0 5px; color: var(--txt); }
.card-texto em { font-style: italic; }

/* revisão de responsividade */
.acoes { margin-left: auto; }
.bt-icone { width: 42px; padding: 0; color: var(--txt2); }
.bt-icone svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topo-in .marca { min-width: 0; flex: 1 1 auto; }
.marca-txt { min-width: 0; }
.marca-txt small { overflow: hidden; text-overflow: ellipsis; }
.topo-dir { flex: none; }
.busca { min-width: 160px; }
@media (max-width: 1240px) {
  body.recolhido .campo-rot > span { display: none; }
  body.recolhido .seg button .qtd { display: none; }
}
@media (max-width: 1100px) { body.recolhido .campo-rot { display: none; } }
@media (max-width: 900px) {
  .topo-dir { gap: 6px; }
  .topo-dir .bt { width: 38px; height: 38px; }
  .topo-in .bt-verde { width: 38px !important; }
  .marca-u { width: 34px; height: 34px; }
  .marca-txt b { font-size: 16px; }
  .so-desk { display: none; }
  /* barra fixa enxuta depois que a pessoa rola: tipo + filtros + ordem numa linha */
  body.recolhido .busca { display: none; }
  body.recolhido .ferramentas { flex-wrap: nowrap; gap: 6px; padding: 8px 0; }
  body.recolhido .sel.tipo-mini { flex: 1 1 auto; min-width: 0; order: 0; flex-basis: auto; }
  body.recolhido .sel.tipo-mini .sel-bt { min-width: 0; }
  body.recolhido .bt-filtros { flex: 0 0 auto; padding: 0 12px; order: 1; }
  body.recolhido .sel.ordem { flex: 0 0 auto; order: 2; }
  body.recolhido .sel.ordem .sel-bt { width: 44px; min-width: 0; padding: 0; justify-content: center; }
  body.recolhido .sel.ordem .sel-bt span { display: none; }
  body.recolhido .sel.ordem .sel-bt::before { content: ''; width: 18px; height: 18px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 4v16M3 16l4 4 4-4M17 20V4M13 8l4-4 4 4'/%3E%3C/svg%3E") center/contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 4v16M3 16l4 4 4-4M17 20V4M13 8l4-4 4 4'/%3E%3C/svg%3E") center/contain no-repeat; }
  body.recolhido .sel.ordem .sel-bt svg { display: none; }
  .grade { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) { .topo-dir { gap: 4px; } .topo-dir .bt { width: 36px; height: 36px; } }
.sel-bt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 600px) { .avisos-pop { position: fixed; left: 16px; right: 16px; top: calc(var(--topo-h, 64px) + 8px); width: auto; } .avisos-lista { max-height: 55vh; } }

/* voltar ao topo (acima do botão do WhatsApp) */
body { overscroll-behavior-y: none; }
.topo-bt { position: fixed; right: 22px; bottom: 82px; z-index: 30; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--sup); color: var(--txt); border: 1px solid var(--linha2); box-shadow: 0 10px 26px -10px var(--sombra);
  opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .2s, transform .2s, background .15s; }
.topo-bt svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.topo-bt:hover { background: var(--azul); color: #fff; border-color: var(--azul); }
.topo-bt.mostrar { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 900px) { .topo-bt { right: 24px; bottom: 86px; } }
.editando .topo-bt { display: none !important; }
@media (prefers-reduced-motion: reduce) { .topo-bt { transition: none; } }

/* ---------- modo de ver: lista ou carrossel ---------- */
.lista-dir { display: flex; align-items: center; gap: 12px; }
.visao { display: inline-flex; padding: 3px; gap: 2px; background: var(--sup); border: 1px solid var(--linha2); border-radius: 10px; }
.visao button { width: 34px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 7px; background: none; color: var(--txt3); cursor: pointer; }
.visao button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.visao button[aria-pressed="true"] { background: rgba(59,108,255,.16); color: var(--azul2); }
.setas { display: none; gap: 6px; order: 3; }
.seta { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--linha2); background: var(--sup); color: var(--txt2); cursor: pointer; }
.seta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.seta:hover { border-color: var(--azul); color: var(--txt); }
body.carrossel .setas { display: inline-flex; }
body.carrossel .secao-cab::after { order: 2; }
body.carrossel .grade { display: flex; grid-template-columns: none; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  margin: -10px -16px 0; padding: 12px 16px 12px; scroll-padding-inline: 16px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
body.carrossel .grade > .card { flex: 0 0 min(360px, calc(100vw - 56px)); scroll-snap-align: start; }
@media (max-width: 600px) { .setas { display: none !important; } .lista-dir { gap: 8px; } }
.lista-topo { flex-wrap: wrap; align-items: center; row-gap: 8px; }

.sel-lista { overflow-y: auto; overscroll-behavior: contain; }
.sel-lista.acima { top: auto; bottom: calc(100% + 6px); }
.toast { width: max-content; max-width: min(440px, calc(100vw - 32px)); text-align: center; line-height: 1.4; }

/* ---------- faixa de privacidade (consentimento) ---------- */
.cc { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 9999; max-width: 520px; margin: 0 auto; background: var(--sup); color: var(--txt);
  border: 1px solid var(--linha2); border-radius: 16px; padding: 16px 18px 10px; box-shadow: 0 16px 44px -12px var(--sombra); animation: cc-in .25s ease-out; }
.cc-tit { display: block; font: 700 15.5px/1.3 var(--display); margin-bottom: 4px; }
.cc-txt { color: var(--txt2); font-size: 14px; line-height: 1.45; margin: 0 0 12px; }
.cc-sim { display: flex; justify-content: center; width: 100%; padding: 13px 16px; font-size: 15.5px; font-weight: 700; border-radius: 12px; }
.cc-sim:hover { filter: brightness(1.08); border-color: var(--azul); }
.cc-nao { display: block; margin: 6px auto 0; padding: 6px 8px; background: none; border: 0; color: var(--txt3); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cc-nao:hover { color: var(--txt2); }
@keyframes cc-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .cc { animation: none; } }
.editando .cc { display: none !important; }
