/* Identidade JG Salgados: tons quentes de padaria (laranja/dourado), verde = bom, vermelho = atraso */
:root {
  --fundo: #fff7ed;
  --superficie: #ffffff;
  --texto: #2b1708;
  --texto-suave: #57361c;
  --sutil: #7c6a5c;
  --borda: #f1dcc6;
  --borda-forte: #e3c3a2;
  --marca: #c2410c;
  --marca-forte: #9a3412;
  --topo: #7c2d12;
  --sobre-marca: #ffffff;
  --link: #b45309;
  --acento: #f59e0b;
  --acento-suave: #fef3c7;
  --ok: #15803d;
  --ok-fundo: #dcfce7;
  --aviso: #92400e;
  --aviso-fundo: #fef3c7;
  --erro: #dc2626;
  --erro-fundo: #fee2e2;
  --raio: 16px;
  --sombra: 0 1px 2px rgb(124 45 18 / .06), 0 8px 24px -14px rgb(124 45 18 / .25);
  --fonte: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fonte-titulo: "Space Grotesk", "Inter", ui-sans-serif, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fundo: #1a0f08; --superficie: #2a1a0f; --texto: #fdf2e6; --texto-suave: #f3dcc4; --sutil: #c4a88f;
    --borda: #43291a; --borda-forte: #5c3a24; --marca: #f97316; --marca-forte: #ea580c; --topo: #2a1209;
    --link: #fbbf24; --acento-suave: #3a2a10; --ok: #4ade80; --ok-fundo: #12301d; --aviso: #fcd34d; --aviso-fundo: #3a2a10;
    --erro: #f87171; --erro-fundo: #3d1515; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fundo: #1a0f08; --superficie: #2a1a0f; --texto: #fdf2e6; --texto-suave: #f3dcc4; --sutil: #c4a88f;
  --borda: #43291a; --borda-forte: #5c3a24; --marca: #f97316; --marca-forte: #ea580c; --topo: #2a1209;
  --link: #fbbf24; --acento-suave: #3a2a10; --ok: #4ade80; --ok-fundo: #12301d; --aviso: #fcd34d; --aviso-fundo: #3a2a10;
  --erro: #f87171; --erro-fundo: #3d1515; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fundo); color: var(--texto); font: 16px/1.45 var(--fonte); min-height: 100dvh; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; font-family: var(--fonte-titulo); letter-spacing: -.01em; }
h2 { font-size: 1.2rem; }
small { display: block; color: var(--sutil); font-size: .82rem; }
.sutil { color: var(--sutil); font-size: .9rem; }
a { color: var(--link); }
.oculto { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- estrutura ---------- */
.topo {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .5rem;
  padding: calc(.5rem + env(safe-area-inset-top)) 1rem .5rem; background: var(--topo); color: #fff;
}
.topo-titulo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topo-titulo strong { font-size: 1.05rem; font-family: var(--fonte-titulo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo-titulo span { font-size: .8rem; color: #fde68a; }
.icone { width: 42px; height: 42px; border-radius: 10px; border: 0; background: rgb(255 255 255 / .14); color: #fff; font-size: 1.35rem; cursor: pointer; flex-shrink: 0; }
.marca { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--acento); color: #7c2d12; font-family: var(--fonte-titulo); font-weight: 700; flex-shrink: 0; }
.marca.grande { width: 72px; height: 72px; font-size: 1.6rem; border-radius: 20px; }
.corpo { display: flex; min-height: calc(100dvh - 58px); }
.menu-lateral { display: none; }
.conteudo { flex: 1; min-width: 0; max-width: 1100px; margin: 0 auto; padding: 1rem 1rem calc(5.5rem + env(safe-area-inset-bottom)); }
.conteudo.estreito { max-width: 760px; }
@media (min-width: 900px) {
  .menu-lateral { display: flex; flex-direction: column; gap: 2px; width: 230px; flex-shrink: 0; padding: 1rem .6rem; border-right: 1px solid var(--borda); background: var(--superficie); position: sticky; top: 58px; height: calc(100dvh - 58px); overflow-y: auto; }
  .menu-lateral a { display: flex; gap: .6rem; align-items: center; padding: .55rem .7rem; border-radius: 10px; text-decoration: none; color: var(--texto-suave); font-weight: 500; }
  .menu-lateral a:hover { background: var(--acento-suave); }
  .menu-lateral a.ativo { background: var(--marca); color: #fff; }
  .menu-inferior { display: none !important; }
  .conteudo { padding-bottom: 2rem; }
}
.menu-inferior {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: space-around;
  background: var(--superficie); border-top: 1px solid var(--borda); padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom));
}
.menu-inferior a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem; text-decoration: none; color: var(--sutil); padding: .25rem 0; }
.menu-inferior a span { font-size: 1.35rem; }
.menu-inferior a.ativo { color: var(--marca); font-weight: 700; }

/* ---------- login ---------- */
.tela-login { min-height: 100dvh; display: grid; place-items: center; padding: 1rem; background: radial-gradient(circle at 20% 0%, #fde68a 0, transparent 50%), var(--fundo); }
.login { width: min(420px, 100%); }
.login-marca { text-align: center; margin-bottom: 1rem; }
.login-marca h1 { margin-top: .75rem; font-size: 1.8rem; }

/* ---------- blocos ---------- */
.cartao { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); padding: 1rem; box-shadow: var(--sombra); display: flex; flex-direction: column; gap: .8rem; }
.cartao + .cartao, .cartao + .lista, .lista + .cartao { margin-top: 1rem; }
.pilha { display: flex; flex-direction: column; gap: 1rem; }
.linha { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.linha > .cresce { flex: 1; min-width: 0; }
.entre { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.grade-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.card { display: flex; flex-direction: column; gap: .2rem; padding: 1rem; min-height: 112px; background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); color: inherit; text-decoration: none; box-shadow: var(--sombra); }
.card:hover { border-color: var(--marca); }
.card-icone { font-size: 1.8rem; }
.saudacao { font-size: 1.3rem; font-weight: 600; margin: .25rem 0 1rem; }
.grupo { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sutil); margin: 1.25rem 0 .5rem; }

/* ---------- formulários ---------- */
label { display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; font-weight: 600; }
label.check { flex-direction: row; align-items: center; gap: .5rem; font-weight: 500; }
input, select, textarea { width: 100%; min-height: 46px; padding: .6rem .8rem; border: 1px solid var(--borda-forte); border-radius: 12px; background: var(--superficie); font-weight: 400; }
input[type=checkbox], input[type=radio] { width: 22px; min-height: 22px; accent-color: var(--marca); }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--acento); outline-offset: 1px; }
.campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; }
.erro-campo { color: var(--erro); font-size: .85rem; }

button, .botao { min-height: 46px; padding: .6rem 1.1rem; border-radius: 12px; border: 0; background: var(--marca); color: var(--sobre-marca); font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
button:hover, .botao:hover { background: var(--marca-forte); }
button:disabled { opacity: .55; cursor: wait; }
button.secundario, .botao.secundario { background: transparent; color: var(--marca); border: 1.5px solid var(--marca); }
button.secundario:hover { background: var(--acento-suave); }
button.perigo { background: var(--erro); }
button.ok { background: var(--ok); }
button.leve { background: var(--acento-suave); color: var(--texto); }
button.grande, .botao.grande { min-height: 60px; font-size: 1.15rem; width: 100%; border-radius: 16px; }
button.pequeno { min-height: 36px; padding: .3rem .7rem; font-size: .88rem; }
.icone:hover { background: rgb(255 255 255 / .25); }

/* ---------- listas e tabelas ---------- */
.lista { display: flex; flex-direction: column; gap: .5rem; }
.item { display: flex; gap: .75rem; align-items: center; padding: .8rem 1rem; background: var(--superficie); border: 1px solid var(--borda); border-radius: 14px; color: inherit; text-decoration: none; }
a.item:hover { border-color: var(--marca); }
.item .cresce { flex: 1; min-width: 0; }
.item strong { display: block; }
.tabela-rolagem { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--borda); border-radius: 12px; background: var(--superficie); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: .55rem .7rem; text-align: left; border-bottom: 1px solid var(--borda); white-space: nowrap; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--sutil); background: var(--fundo); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.falta td { background: var(--aviso-fundo); }
tfoot td { font-weight: 700; }

/* ---------- selos, alertas ---------- */
.selo { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--acento-suave); color: var(--aviso); white-space: nowrap; }
.selo-ok, .selo-entregue, .selo-paga, .selo-pago, .selo-verde { background: var(--ok-fundo); color: var(--ok); }
.selo-erro, .selo-vencida, .selo-vermelho, .selo-cancelado, .selo-nao_entregue, .selo-recusado { background: var(--erro-fundo); color: var(--erro); }
.selo-saiu, .selo-em_andamento { background: #dbeafe; color: #1d4ed8; }
.alerta { padding: .8rem 1rem; border-radius: 12px; background: var(--aviso-fundo); color: var(--aviso); font-weight: 500; }
.alerta.erro { background: var(--erro-fundo); color: var(--erro); }
.alerta.ok { background: var(--ok-fundo); color: var(--ok); }
.novo { animation: pisca 1s ease 4; border-color: var(--acento) !important; box-shadow: 0 0 0 3px var(--acento); }
@keyframes pisca { 50% { box-shadow: 0 0 0 6px rgb(245 158 11 / .3); } }
.vazio { text-align: center; color: var(--sutil); padding: 2rem 1rem; }
.carregando { display: flex; gap: .6rem; align-items: center; justify-content: center; color: var(--sutil); padding: 2rem; }
.spinner { width: 20px; height: 20px; border: 3px solid var(--borda); border-top-color: var(--marca); border-radius: 50%; animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: calc(5rem + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 100; padding: .8rem 1.2rem; border-radius: 12px; background: var(--texto); color: var(--fundo); font-weight: 600; box-shadow: var(--sombra); max-width: 92vw; transition: opacity .3s; }
.toast-erro { background: var(--erro); color: #fff; }
.toast.saindo { opacity: 0; }

/* ---------- abas e filtros ---------- */
.abas { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .25rem; margin-bottom: 1rem; }
.abas button { background: var(--superficie); color: var(--texto-suave); border: 1px solid var(--borda); white-space: nowrap; min-height: 40px; }
.abas button.ativo { background: var(--marca); color: #fff; border-color: var(--marca); }

/* ---------- loja online ---------- */
.produtos { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: .75rem; }
.produto { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sombra); }
.produto.tem { border-color: var(--marca); box-shadow: 0 0 0 2px var(--marca); }
.produto-foto { position: relative; aspect-ratio: 1; background: var(--acento-suave); }
.produto-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.produto-foto .ilustrativa { position: absolute; left: 6px; bottom: 6px; font-size: .62rem; padding: .1rem .4rem; border-radius: 6px; background: rgb(0 0 0 / .55); color: #fff; }
.produto-nome { padding: .5rem .6rem 0; font-weight: 600; font-size: .9rem; line-height: 1.25; min-height: 2.6em; }
.stepper { display: flex; align-items: center; justify-content: space-between; padding: .5rem; gap: .3rem; }
.stepper button { width: 44px; min-height: 44px; padding: 0; font-size: 1.4rem; border-radius: 12px; }
.stepper input { text-align: center; min-height: 44px; padding: .3rem; font-weight: 700; font-size: 1.1rem; }
.barra-total { position: sticky; bottom: calc(4.2rem + env(safe-area-inset-bottom)); z-index: 10; margin-top: 1rem; display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border-radius: 16px; background: var(--topo); color: #fff; box-shadow: var(--sombra); }
@media (min-width: 900px) { .barra-total { bottom: 1rem; } }
.barra-total .cresce { flex: 1; }
.barra-total strong { font-size: 1.3rem; }
.banner { position: relative; border-radius: var(--raio); overflow: hidden; margin-bottom: 1rem; background: var(--topo); color: #fff; min-height: 120px; display: flex; align-items: flex-end; }
.banner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.banner div { position: relative; padding: 1rem; }
.banner strong { font-family: var(--fonte-titulo); font-size: 1.35rem; display: block; }
.etapas { display: flex; gap: .25rem; }
.etapas span { flex: 1; height: 6px; border-radius: 3px; background: var(--borda); }
.etapas span.feito { background: var(--ok); }

/* ---------- painel dos sócios ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.kpi { padding: 1.1rem; border-radius: var(--raio); background: var(--superficie); border: 1px solid var(--borda); box-shadow: var(--sombra); }
.kpi .rotulo { font-size: 1rem; font-weight: 700; color: var(--sutil); }
.kpi .valor { font-family: var(--fonte-titulo); font-size: 2.4rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi.positivo .valor { color: var(--ok); } .kpi.negativo .valor { color: var(--erro); }
.frases p { margin: .2rem 0; font-size: 1.05rem; }
.barras { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding-top: .5rem; }
.barras div { flex: 1; background: var(--acento); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.barras div:hover { background: var(--marca); }
.barras-legenda { display: flex; justify-content: space-between; font-size: .72rem; color: var(--sutil); }
.ranking .linha-rank { display: grid; grid-template-columns: minmax(90px, 32%) 1fr auto; gap: .5rem; align-items: center; font-size: .92rem; }
.ranking .barra { height: 22px; border-radius: 6px; background: var(--acento); }
.ranking .barra.deve { background: var(--erro); }
.progresso { height: 22px; border-radius: 11px; background: var(--borda); overflow: hidden; }
.progresso div { height: 100%; background: linear-gradient(90deg, var(--acento), var(--ok)); }

/* ---------- mapa e rotas ---------- */
.mapa { height: 60vh; min-height: 320px; border-radius: var(--raio); border: 1px solid var(--borda); z-index: 1; }
.parada { display: flex; gap: .7rem; align-items: center; padding: .7rem; border: 1px solid var(--borda); border-radius: 12px; background: var(--superficie); }
.parada .ordem { width: 34px; height: 34px; border-radius: 50%; background: var(--marca); color: #fff; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.parada.feita .ordem { background: var(--ok); }
.parada .alca { cursor: grab; font-size: 1.3rem; color: var(--sutil); padding: 0 .3rem; }
.foto-entrega { max-width: 100%; border-radius: 12px; }
.assinatura { width: 100%; aspect-ratio: 600 / 220; background: #fff; border: 2px dashed #a8a29e; border-radius: 12px; touch-action: none; }

/* ---------- impressão ---------- */
.so-impressao { display: none; }
@media print {
  .topo, .menu-lateral, .menu-inferior, .nao-imprimir, .toast { display: none !important; }
  body { background: #fff; color: #000; }
  .conteudo { padding: 0; max-width: none; }
  .so-impressao { display: block; }
  .folha { page-break-after: always; }
  .folha:last-child { page-break-after: auto; }
}
.folha { background: #fff; color: #000; padding: 10mm; font-family: Arial, sans-serif; border: 1px solid #ddd; margin: 0 auto 1rem; }
.folha.a5 { width: 148mm; min-height: 200mm; }
.folha.termica { width: 80mm; padding: 3mm; font-size: 11px; }
.folha table { font-size: inherit; }
.folha th, .folha td { border: 1px solid #000; padding: 2px 4px; color: #000; background: #fff; }
.folha h2 { font-size: 1.1rem; margin: 0 0 4px; }
@media print { .folha { border: 0; margin: 0; } }
@page { margin: 6mm; }
@media screen { .folha { max-width: 100%; overflow-x: auto; } }

/* ---------- ilustração isométrica ---------- */
.iso { width: 100%; height: auto; display: block; overflow: visible; }
.iso .estacao { cursor: pointer; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s; }
.iso .estacao:hover, .iso .estacao.ativa { transform: translateY(-6px); }
.iso .estacao.ativa { filter: drop-shadow(0 6px 6px rgb(124 45 18 / .35)); }
.iso .estacao.apagada { opacity: .72; }
.iso .estacao:focus-visible { outline: none; filter: drop-shadow(0 0 4px var(--acento)); }
@media (prefers-reduced-motion: reduce) { .iso .estacao { transition: none; } }
.figura { position: relative; border-radius: 22px; padding: 1rem 1rem .5rem; background: linear-gradient(180deg, #fff7ed, #ffedd5); border: 1px solid var(--borda); box-shadow: var(--sombra); overflow: hidden; }
.figura-topo { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.figura-topo h2 { margin: 0; }
.figura .dica { font-size: .8rem; color: var(--sutil); }
.leitura { display: grid; gap: .6rem; padding: 1rem; border-radius: 16px; background: var(--superficie); border: 1px solid var(--borda); }
.leitura .grande-n { font-family: var(--fonte-titulo); font-size: 2.4rem; font-weight: 700; line-height: 1; color: var(--marca); }
.etapas-lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; }
.etapa { text-align: left; display: flex; gap: .6rem; align-items: center; padding: .7rem .8rem; border-radius: 14px; background: var(--superficie); border: 1.5px solid var(--borda); color: inherit; cursor: pointer; min-height: 64px; }
.etapa:hover { border-color: var(--marca); background: var(--superficie); }
.etapa.ativa { border-color: var(--marca); box-shadow: 0 0 0 3px rgb(194 65 12 / .15); }
.etapa .num { width: 30px; height: 30px; border-radius: 50%; background: var(--marca); color: #fff; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.etapa.feita .num { background: var(--ok); }
.etapa .qtd { margin-left: auto; font-family: var(--fonte-titulo); font-weight: 700; font-size: 1.3rem; }
.agora { display: flex; gap: .8rem; align-items: center; padding: 1rem 1.1rem; border-radius: 18px; background: var(--topo); color: #fff; }
.agora strong { font-size: 1.15rem; display: block; }
.agora .botao { margin-left: auto; background: var(--acento); color: #2b1708; white-space: nowrap; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .figura { background: linear-gradient(180deg, #2a1a0f, #1f130b); } }

/* ---------- página de entrada ---------- */
.entrada { min-height: 100dvh; background: radial-gradient(circle at 85% -10%, #fde68a 0, transparent 45%), radial-gradient(circle at 0% 30%, #fed7aa 0, transparent 40%), var(--fundo); }
.entrada-topo { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; background: rgb(255 247 237 / .85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--borda); }
.entrada-topo strong { font-family: var(--fonte-titulo); font-size: 1.15rem; }
.heroi { max-width: 1100px; margin: 0 auto; padding: 2rem 1rem 1rem; display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) { .heroi { grid-template-columns: 1fr 1.15fr; padding-top: 3.5rem; } }
.heroi h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; margin: .8rem 0; color: var(--topo); }
.heroi p { font-size: 1.15rem; color: var(--texto-suave); margin: 0 0 1.2rem; }
.heroi-figura { padding: .5rem; }
.entrada-secao { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem; }
.entrada-secao h2 { font-size: 1.6rem; }
.entrada-secao .login { margin: 0 auto; background: var(--superficie); border: 1px solid var(--borda); border-radius: 22px; padding: 1.4rem; box-shadow: var(--sombra); }
.passos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.passo { position: relative; padding: 1.2rem; border-radius: 18px; background: var(--superficie); border: 1px solid var(--borda); box-shadow: var(--sombra); }
.passo-n { position: absolute; top: 1rem; right: 1rem; width: 28px; height: 28px; border-radius: 50%; background: var(--marca); color: #fff; display: grid; place-items: center; font-weight: 700; }
.passo-ic { font-size: 2rem; display: block; }
.passo strong { font-size: 1.1rem; display: block; margin: .3rem 0; }
.passo p { margin: 0; color: var(--texto-suave); }
.vitrine { display: flex; gap: .7rem; overflow-x: auto; padding: .6rem 0 1rem; scroll-snap-type: x mandatory; }
.vitrine figure { margin: 0; flex: 0 0 150px; scroll-snap-align: start; }
.vitrine img { width: 150px; height: 150px; object-fit: cover; border-radius: 16px; display: block; box-shadow: var(--sombra); }
.vitrine figcaption { font-size: .85rem; font-weight: 600; margin-top: .35rem; }
.entrada-rodape { text-align: center; color: var(--sutil); font-size: .85rem; padding: 2rem 1rem 3rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .entrada-topo { background: rgb(26 15 8 / .85); } :root:not([data-theme="light"]) .heroi h1 { color: var(--texto); } }

/* ---------- acompanhamento do pedido (cliente) ---------- */
.rastreio { display: block; color: inherit; text-decoration: none; }
.rastreio h2 { font-size: 1.15rem; margin: .1rem 0 0; }
.passos-pedido { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.passos-pedido::before { content: ''; position: absolute; top: 19px; left: 12%; right: 12%; height: 4px; border-radius: 2px; background: var(--borda); }
.passos-pedido li { position: relative; display: flex; flex-direction: column; align-items: center; gap: .25rem; font-size: .78rem; font-weight: 600; color: var(--sutil); text-align: center; }
.passos-pedido li span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; background: var(--superficie); border: 2px solid var(--borda); position: relative; }
.passos-pedido li.feito span { background: var(--ok-fundo); border-color: var(--ok); }
.passos-pedido li.feito { color: var(--ok); }
.passos-pedido li.atual span { background: var(--marca); border-color: var(--marca); box-shadow: 0 0 0 5px rgb(194 65 12 / .18); animation: pulsa 1.8s ease-in-out infinite; }
.passos-pedido li.atual { color: var(--marca); }
@keyframes pulsa { 50% { box-shadow: 0 0 0 9px rgb(194 65 12 / .08); } }
@media (prefers-reduced-motion: reduce) { .passos-pedido li.atual span { animation: none; } }
.produto[hidden] { display: none; }

/* ---------- padrão GWC HUB: ao vivo, prazo e avisos ---------- */
.vivo-linha { display: flex; align-items: center; gap: .6rem; justify-content: flex-end; }
.ao-vivo { color: var(--ok); font-size: .85rem; font-weight: 700; white-space: nowrap; }
.ao-vivo.pulso { animation: pulsoVivo 1.2s ease; }
@keyframes pulsoVivo { 50% { opacity: .3; } }
.atualizado { color: var(--sutil); font-size: .8rem; display: inline; }
.aviso { display: flex; justify-content: space-between; align-items: center; gap: .75rem; background: var(--aviso-fundo); color: var(--aviso); padding: .75rem 1rem; border-radius: 12px; font-weight: 600; border-left: 5px solid var(--acento); }
.aviso a { color: inherit; white-space: nowrap; }
.prazo { border-radius: var(--raio); overflow: hidden; border: 1px solid #f3c969; background: var(--acento-suave); box-shadow: var(--sombra); }
.prazo-topo { background: #f3c969; color: var(--topo); font-weight: 700; font-size: .78rem; letter-spacing: .04em; padding: .5rem .9rem; }
.prazo-corpo { padding: .8rem .9rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; }
.prazo-corpo p { margin: 0; font-weight: 600; }
.relogio { display: flex; align-items: flex-start; gap: .35rem; }
.relogio > span { font-weight: 800; font-size: 1.4rem; padding-top: .3rem; }
.casa { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.casa strong { display: grid; place-items: center; width: 52px; height: 50px; border-radius: 10px; background: var(--topo); color: var(--acento); font: 700 1.5rem/1 var(--fonte-titulo); font-variant-numeric: tabular-nums; }
.casa small { font-size: .62rem; font-weight: 700; letter-spacing: .06em; color: var(--texto-suave); }
.kpi .rotulo { font-size: .85rem; letter-spacing: .02em; }

/* ---------- agenda de recebimentos ---------- */
.dia-agenda { display: flex; flex-direction: column; gap: .4rem; }
.dia-topo { padding: .3rem .2rem; border-bottom: 2px solid var(--borda); }
.dia-agenda.hoje .dia-topo { border-color: var(--marca); color: var(--marca); }
.dia-agenda.vermelho .dia-topo { border-color: var(--erro); color: var(--erro); }
.item.atrasado { border-left: 5px solid var(--erro); }
.regra { color: var(--link); font-weight: 600; }
a.etapa { text-decoration: none; }
td.escolhido { background: var(--ok-fundo) !important; }
.menu-grupo { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--sutil); padding: .9rem .7rem .25rem; }

/* ---------- modo demonstração (só no Mac) ---------- */
.demo { max-width: 1100px; margin: 1rem auto 0; padding: 1rem; border-radius: 16px; background: var(--superficie); border: 2px dashed var(--acento); display: grid; gap: .5rem; }
.entrada .demo { margin-inline: max(1rem, env(safe-area-inset-left, 0px)); }
@media (min-width: 1132px) { .entrada .demo { margin-inline: auto; } }
.demo-perfis { display: flex; flex-wrap: wrap; gap: .5rem; }
.demo-perfis button { min-height: 42px; }
