:root {
  --amarelo: #F7B500; --amarelo-claro: #FFF4D1; --preto: #111111; --cinza: #6B6B6B;
  --fundo: #F4F4F2; --cartao: #FFFFFF; --linha: #E6E6E3; --verde: #1F8A4C; --vermelho: #C0392B;
  --raio: 18px; --nav: 68px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--fundo); color: var(--preto); font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; }

#tela { max-width: 520px; margin: 0 auto; padding: calc(20px + env(safe-area-inset-top)) 16px calc(var(--nav) + 28px + env(safe-area-inset-bottom)); min-height: 100%; }
.faixa-offline { position: sticky; top: 0; z-index: 30; background: var(--preto); color: #fff; text-align: center; font-size: 13px; padding: 8px 12px; }

h1 { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 4px; }
h2 { font-size: 18px; margin: 28px 0 12px; }
.sub { color: var(--cinza); font-size: 15px; }
.topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.topo img { height: 26px; width: auto; }
.voltar { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; padding: 8px 0; margin-bottom: 8px; }

.cartao { background: var(--cartao); border-radius: var(--raio); padding: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.cartao + .cartao { margin-top: 12px; }
.destaque { display: block; width: 100%; text-align: left; background: var(--preto); color: #fff; border-radius: var(--raio); padding: 20px; }
.destaque span { display: block; }
.destaque .sub { color: #B8B8B8; font-size: 14px; }
.destaque .rotulo { color: var(--amarelo); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.destaque .titulo { font-size: 22px; font-weight: 700; margin: 6px 0 2px; }
.destaque .acao { display: inline-block; width: fit-content; margin-top: 14px; background: var(--amarelo); color: var(--preto); font-weight: 700; padding: 10px 16px; border-radius: 999px; }
.vazio { text-align: center; color: var(--cinza); padding: 26px 18px; }
.vazio strong { display: block; color: var(--preto); font-size: 17px; margin-bottom: 4px; }

.atalhos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.atalho { background: var(--cartao); border-radius: var(--raio); padding: 16px 8px 12px; text-align: center; font-size: 13px; font-weight: 600; position: relative; }
.atalho svg { width: 30px; height: 30px; display: block; margin: 0 auto 8px; fill: var(--preto); }
.selo { display: block; width: fit-content; margin: 6px auto 0; background: var(--amarelo-claro); color: #7A5A00; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 999px; }

.carrossel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
.carrossel::-webkit-scrollbar { display: none; }
.oferta { flex: 0 0 82%; scroll-snap-align: center; background: var(--cartao); border-radius: var(--raio); overflow: hidden; text-decoration: none; display: block; }
.oferta .midia { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--linha); }
.oferta .texto { padding: 12px 14px 14px; }
.oferta .nome { font-weight: 700; font-size: 15px; }
.oferta .cta { color: var(--cinza); font-size: 13px; margin-top: 2px; }
.patrocinado { font-size: 11px; color: var(--cinza); letter-spacing: .04em; text-transform: uppercase; }

.item { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--cartao); border-radius: var(--raio); padding: 14px 16px; }
.item + .item { margin-top: 10px; }
.item .bolha { flex: 0 0 46px; height: 46px; border-radius: 14px; background: var(--amarelo); display: grid; place-items: center; font-weight: 800; }
.item.passado .bolha { background: var(--linha); color: var(--cinza); }
.item .info { flex: 1; min-width: 0; }
.item .info strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .info span { color: var(--cinza); font-size: 13px; }
.item .seta { color: var(--cinza); font-size: 22px; }

.senha-cartao { text-align: center; }
.senha-rotulo { color: var(--cinza); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.senha { font-size: 52px; font-weight: 800; letter-spacing: .12em; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.qr { width: 220px; height: 220px; margin: 14px auto 6px; display: block; image-rendering: pixelated; border-radius: 12px; }
.dados { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dados div span { display: block; color: var(--cinza); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.dados div strong { font-size: 17px; }
.dados .largo { grid-column: 1 / -1; }
.alerta { background: var(--amarelo-claro); color: #5C4400; border-radius: 14px; padding: 12px 14px; font-size: 14px; margin-top: 12px; }

.entrar { min-height: calc(100vh - 60px); display: flex; flex-direction: column; justify-content: center; padding-bottom: 40px; }
.entrar .logo { width: 210px; max-width: 70%; margin-bottom: 34px; }
.entrar h1 { margin-bottom: 8px; }
form { margin-top: 24px; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
input[type="tel"], input[type="text"] { width: 100%; background: var(--cartao); border: 2px solid var(--linha); border-radius: 14px; padding: 16px; font-size: 20px; outline: none; }
input:focus { border-color: var(--preto); }
.codigo { text-align: center; letter-spacing: .4em; font-weight: 700; }
.btn { display: block; width: 100%; background: var(--preto); color: #fff; font-weight: 700; font-size: 17px; padding: 17px; border-radius: 14px; margin-top: 14px; text-align: center; text-decoration: none; }
.btn:disabled { opacity: .5; }
.btn.claro { background: var(--cartao); color: var(--preto); border: 2px solid var(--linha); }
.btn.amarelo { background: var(--amarelo); color: var(--preto); }
.link { display: block; width: 100%; text-align: center; color: var(--cinza); padding: 14px; font-size: 15px; text-decoration: underline; }
.msg { min-height: 22px; margin-top: 12px; font-size: 14px; color: var(--cinza); }
.msg.erro { color: var(--vermelho); }

.linha-perfil { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.linha-perfil p { font-size: 13px; color: var(--cinza); margin-top: 2px; }
.chave { position: relative; flex: 0 0 52px; height: 32px; }
.chave input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.chave span { position: absolute; inset: 0; background: var(--linha); border-radius: 999px; transition: background .2s; pointer-events: none; }
.chave span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.chave input:checked + span { background: var(--verde); }
.chave input:checked + span::after { transform: translateX(20px); }
.chave input:focus-visible + span { outline: 2px solid var(--preto); outline-offset: 2px; }

.instalar { display: flex; align-items: center; gap: 12px; background: var(--amarelo-claro); border-radius: var(--raio); padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
.instalar p { flex: 1; }
.instalar button { font-weight: 700; padding: 8px 12px; border-radius: 999px; background: var(--preto); color: #fff; white-space: nowrap; }
.instalar .fechar { background: none; color: var(--cinza); padding: 4px 6px; font-size: 20px; }

.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--cartao); border-top: 1px solid var(--linha); padding-bottom: env(safe-area-inset-bottom); }
.nav button { height: var(--nav); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--cinza); }
.nav svg { width: 24px; height: 24px; fill: currentColor; }
.nav button.ativo { color: var(--preto); }

.anuncio { position: fixed; inset: 0; z-index: 50; background: #000; color: #fff; display: flex; flex-direction: column; }
.anuncio .barra { height: 4px; background: rgba(255,255,255,.25); margin: calc(10px + env(safe-area-inset-top)) 14px 0; border-radius: 999px; overflow: hidden; }
.anuncio .barra i { display: block; height: 100%; width: 0; background: var(--amarelo); transition: width linear; }
.anuncio .cab { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; font-size: 13px; }
.anuncio .pular { background: rgba(255,255,255,.18); color: #fff; font-weight: 700; padding: 9px 16px; border-radius: 999px; }
.anuncio .palco { flex: 1; min-height: 0; display: grid; place-items: center; }
.anuncio .palco img, .anuncio .palco video { max-width: 100%; max-height: 100%; object-fit: contain; }
.anuncio .rodape { padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); }
.anuncio .rodape strong { display: block; font-size: 18px; margin-bottom: 10px; }

.esqueleto { height: 132px; border-radius: var(--raio); background: linear-gradient(90deg, #EAEAE7 25%, #F3F3F0 50%, #EAEAE7 75%); background-size: 200% 100%; animation: brilho 1.2s infinite; }
@keyframes brilho { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .esqueleto { animation: none; } .chave span, .chave span::after { transition: none; } }
.msg:empty { display: none; }

/* Lavanderia */
.destaque.lav { margin-top: 12px; background: var(--cartao); color: var(--preto); border: 2px solid var(--linha); }
.destaque.lav .sub { color: var(--cinza); }
.destaque.lav .rotulo { color: #7A5A00; }
.destaque.lav .acao { background: var(--preto); color: #fff; }
.destaque.lav.pronto { background: var(--preto); color: #fff; border-color: var(--preto); }
.destaque.lav.pronto .sub { color: #B8B8B8; }
.destaque.lav.pronto .rotulo { color: var(--amarelo); }
.destaque.lav.pronto .acao { background: var(--amarelo); color: var(--preto); }
.item .bolha svg { width: 24px; height: 24px; fill: currentColor; }
.codigo-lav { font-size: 34px; letter-spacing: .06em; }
.passos { margin: 10px 0 0 20px; color: var(--cinza); font-size: 14px; }
.passos li + li { margin-top: 6px; }
.tempo { list-style: none; }
.tempo li { position: relative; padding: 0 0 18px 30px; color: var(--cinza); }
.tempo li:last-child { padding-bottom: 0; }
.tempo li::before { content: ""; position: absolute; left: 4px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--cartao); border: 2px solid var(--linha); }
.tempo li::after { content: ""; position: absolute; left: 10px; top: 19px; bottom: -3px; width: 2px; background: var(--linha); }
.tempo li:last-child::after { display: none; }
.tempo li.feito { color: var(--preto); }
.tempo li.feito::before { background: var(--verde); border-color: var(--verde); }
.tempo li.feito::after { background: var(--verde); }
.tempo li.atual::before { background: var(--amarelo); border-color: var(--preto); }
.tempo li.atual::after { background: var(--linha); }
.tempo li strong { display: block; font-weight: 600; font-size: 15px; }
.tempo li.atual strong { font-weight: 800; }
.tempo li span { font-size: 13px; color: var(--cinza); }

/* Locação */
.grade { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.equip { background: var(--cartao); border-radius: var(--raio); overflow: hidden; display: flex; flex-direction: column; }
.equip .foto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--linha); }
.equip .foto.sem { display: grid; place-items: center; }
.equip .foto.sem svg { width: 40px; height: 40px; fill: var(--cinza); }
.equip .corpo { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.equip strong { font-size: 15px; line-height: 1.25; }
.equip .preco { font-size: 14px; font-weight: 700; margin-top: 4px; }
.equip .estado { font-size: 12px; font-weight: 700; margin-top: 4px; }
.equip .estado.livre { color: var(--verde); }
.equip .estado.ocupado { color: var(--cinza); }

/* HUB sob encomenda */
.nota-hub { margin-bottom: 12px; }
.hub-item { background: var(--cartao); border-radius: var(--raio); overflow: hidden; }
.hub-item + .hub-item { margin-top: 12px; }
.hub-topo { display: flex; gap: 12px; align-items: stretch; }
.hub-item .foto { flex: 0 0 112px; width: 112px; min-height: 112px; object-fit: cover; background: var(--linha); display: block; }
.hub-item .foto.sem { display: grid; place-items: center; }
.hub-item .foto.sem svg { width: 36px; height: 36px; fill: var(--cinza); }
.hub-item .corpo { flex: 1; min-width: 0; padding: 12px 12px 12px 0; display: flex; flex-direction: column; gap: 2px; }
.hub-item .preco { font-size: 14px; font-weight: 700; margin-top: 2px; }
.btn-mini { align-self: flex-start; margin-top: 8px; background: var(--preto); color: #fff; font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 999px; }
.hub-form { padding: 4px 14px 14px; border-top: 1px solid var(--linha); }
.hub-form label { display: block; font-size: 14px; font-weight: 700; margin-top: 12px; }
.hub-form input { display: block; width: 100%; margin-top: 6px; background: var(--fundo); border: 2px solid var(--linha); border-radius: 12px; padding: 12px; font-size: 16px; font-family: inherit; }
.hub-form .sub { font-size: 13px; margin-top: 8px; }
.pedido.passado strong { color: var(--cinza); }
.pedido .link { text-align: left; padding: 10px 0 0; width: auto; }
