/* Homegrown Rega app (the design: docs/telas). Fonts: Figtree (text) and Bricolage Grotesque (numbers and titles), both SIL OFL, latin subset. */
@font-face { font-family: "Figtree"; font-weight: 300 900; font-display: swap; src: url(/fontes/figtree.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 200 800; font-display: swap; src: url(/fontes/bricolage.woff2) format("woff2"); }

[hidden] { display: none !important; }
:root {
  --fundo: #f5f7f8; --tinta: #0e1a22; --cinza: #4d5d68; --cinza-2: #5f6e78; --linha: #e4e9ed; --linha-2: #eef2f5; --apagado: #f1f4f6;
  --agua: #12a8e0; --agua-claro: #e3f5fc; --agua-escura: #0b7fb8; --link: #0a6f99;
  --aviso: #8a4b00; --aviso-claro: #fff1dc; --boia: #f0a020; --erro: #c62828; --erro-claro: #fdecea; --ok: #146b45; --ok-claro: #e5f6ee;
  --titulo: "Bricolage Grotesque", "Figtree", ui-sans-serif, system-ui, sans-serif;
  --borda: 0 1px 2px rgba(14, 26, 34, .06), inset 0 0 0 1px var(--linha);
  --mola: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font: 16px/1.45 "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--tinta); background: var(--fundo); }
main { max-width: 480px; margin: 0 auto; padding: max(48px, env(safe-area-inset-top)) 20px 40px; }
body.com-abas main { padding-bottom: 120px; }
h1, h2, p { margin: 0; }
a { color: var(--link); }
:focus-visible { outline: 2px solid var(--agua); outline-offset: 2px; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sub { color: var(--cinza); font-size: 15px; }
.nota { color: var(--cinza-2); font-size: 13px; line-height: 1.4; }
.mt { margin-top: 12px; } .mt-g { margin-top: 22px; } .centro { text-align: center; }
.secao { margin: 24px 0 8px 4px; font-size: 15px; font-weight: 600; }
.cartao { background: #fff; border-radius: 20px; box-shadow: var(--borda); }

/* buttons */
button { font: inherit; color: inherit; cursor: pointer; }
.botao { display: flex; gap: 8px; justify-content: center; align-items: center; width: 100%; min-height: 54px; padding: 0 16px; border: 0;
         border-radius: 16px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--tinta);
         transition: transform .18s var(--mola), background-color .2s ease, box-shadow .2s ease, opacity .2s ease; }
.botao:active { transform: scale(.97); }
.botao:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.botao.escuro { background: var(--tinta); color: #fff; }
.botao.azul { background: var(--agua); font-weight: 700; box-shadow: 0 10px 22px -12px rgba(18, 168, 224, .95); }
.botao.azul:disabled { background: #9bd8ef; box-shadow: none; opacity: 1; color: rgba(14, 26, 34, .45); }
.botao.cinza { background: var(--apagado); }
.botao.contorno { background: #fff; box-shadow: 0 1px 2px rgba(14, 26, 34, .08), inset 0 0 0 1px var(--linha); }
.botao.branco { background: #fff; }
.botao.vermelho { background: var(--erro); color: #fff; }
.botao.baixo { min-height: 48px; border-radius: 14px; }
.botao.mini { width: auto; min-height: 44px; padding: 0 16px; border-radius: 12px; }
.botao svg.i { width: 18px; height: 18px; }
.dupla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 10px; }
.link { background: none; border: 0; padding: 8px 0; color: var(--link); font-weight: 600; font-size: 15px; }
.link.perigo { color: var(--erro); min-height: 44px; }
.centro-bloco { display: block; margin: 14px auto 0; }
.voltar { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: none; color: var(--tinta); }
.porque { margin-top: 10px; text-align: right; font-size: 13px; color: var(--cinza-2); }

/* forms */
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
input { width: 100%; height: 54px; margin-top: 6px; padding: 0 16px; border: 0; border-radius: 14px; font: inherit; font-size: 16px; color: var(--tinta);
        background: #fff; box-shadow: 0 1px 2px rgba(14, 26, 34, .06), inset 0 0 0 1px var(--linha); transition: box-shadow .15s ease; }
input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--agua), 0 0 0 4px rgba(18, 168, 224, .16); }
textarea { display: block; width: 100%; margin-top: 6px; padding: 14px 16px; border: 0; border-radius: 14px; font: inherit; font-size: 16px;
           font-weight: 400; color: var(--tinta);
           background: #fff; box-shadow: var(--borda); resize: vertical; }
textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--agua), 0 0 0 4px rgba(18, 168, 224, .16); }
.botao-ajuda { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-left: auto; align-self: center; border: 0;
               border-radius: 12px; background: none; color: var(--cinza-2); }
.formulario-solto { margin-top: 28px; }
.esqueci { display: block; margin: 4px 0 0 auto; min-height: 44px; font-size: 14px; }
.info-azul { margin-top: 4px; padding: 12px 14px; border-radius: 14px; background: var(--agua-claro); font-size: 14px; line-height: 1.4; animation: aparece .22s ease both; }
.formulario-solto .botao { margin-top: 16px; }
.erro-txt { color: var(--erro); font-size: 14px; font-weight: 600; }
.erro-txt:empty { display: none; }
.campo-senha { position: relative; display: block; }
.campo-senha input { padding-right: 56px; }
.ver-senha { position: absolute; right: 5px; top: 11px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--cinza); }
.ver-senha[aria-pressed="true"] { color: var(--link); }
.ou { text-align: center; color: var(--cinza-2); font-size: 14px; margin: 14px 0 0; }

/* login */
.marca { display: flex; align-items: center; gap: 10px; margin-top: 44px; font-family: var(--titulo); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.logo { width: 30px; height: 34px; fill: var(--agua); }
.logo .brilho { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.selo-marca { margin-left: -2px; padding: 3px 8px; border-radius: 8px; background: var(--agua-claro); color: var(--link); font-family: "Figtree", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0; }
.grande-titulo { margin: 52px 0 8px; font-family: var(--titulo); font-size: 36px; font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.rodape-entrar { margin-top: 64px; text-align: center; color: var(--cinza); font-size: 15px; }
.rodape-entrar .link { font-size: 15px; font-weight: 700; padding: 0; }

/* headers */
.topo { display: flex; align-items: center; gap: 8px; min-height: 52px; margin-bottom: 8px; }
.topo h1, .cabeca h1 { font-family: var(--titulo); font-size: 20px; font-weight: 600; line-height: 1.15; }
.cabeca h1 { font-size: 22px; letter-spacing: -.01em; }
.topo:has(.voltar) { margin-left: -6px; }
.topo .link { margin-left: auto; }
.cabeca { display: flex; align-items: flex-end; gap: 4px; min-height: 56px; }
.conexao { display: flex; align-items: center; gap: 7px; margin-top: 3px; font-size: 13px; color: var(--cinza); }
.barras rect { fill: #c9d2d8; transition: fill .3s ease; }
.barras rect.on { fill: var(--tinta); }
.nota-offline { margin-top: 10px; font-size: 14px; line-height: 1.4; color: var(--cinza); }
h1.grande { font-size: 30px; letter-spacing: -.02em; }

/* module list */
.lista-modulos { display: grid; gap: 10px; }
.modulo { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border: 0; text-align: left; }
.modulo .nome { font-weight: 700; font-size: 17px; }
.modulo .seta { margin-left: auto; color: var(--cinza-2); }
.bolinha { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--agua-claro); color: var(--agua-escura); flex: none; }
.bolinha.aviso { background: var(--aviso-claro); color: var(--aviso); }
.bolinha.erro { background: var(--erro-claro); color: var(--erro); }
.bolinha.off { background: #eceff0; color: var(--cinza-2); }

/* home: tank and the big number */
.heroi { margin-top: 20px; display: grid; grid-template-columns: 132px minmax(0, 1fr); column-gap: 22px; align-items: center; }
.tanque { width: 132px; height: 236px; overflow: visible; }
.agua-topo { stop-color: #86dbf4; transition: stop-color .4s ease; } .agua-fundo { stop-color: #0e8cc4; transition: stop-color .4s ease; }
.offline .agua-topo { stop-color: #bccad3; } .offline .agua-fundo { stop-color: #7e93a0; }
.nivel { transition: transform .9s var(--mola); }
.onda { animation: onda 7s linear infinite; }
.regando .onda { animation-duration: 1.4s; }
.offline .onda { animation: none; }
@keyframes onda { to { transform: translateX(-56px); } }
.bomba { fill: #2b3a44; } .offline .bomba { fill: #9aa8b2; }
.cano { fill: none; stroke: #2b3a44; stroke-width: 3.5; stroke-linecap: round; } .offline .cano { stroke: #9aa8b2; }
.fluxo { fill: none; stroke: #a6e8fa; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 3 7; opacity: 0; transition: opacity .3s ease; }
.regando .fluxo, .fluxo.on { opacity: 1; animation: fluxo .5s linear infinite; }
@keyframes fluxo { to { stroke-dashoffset: -20; } }
.boia { fill: #2b3a44; transition: fill .3s ease; } .offline .boia { fill: #9aa8b2; } .sem-agua .boia { fill: var(--boia); }
.heroi-texto { display: flex; flex-direction: column; min-width: 0; }
.chamada { font-size: 14px; font-weight: 500; color: var(--cinza); }
.numerao { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; font-family: var(--titulo); color: var(--tinta); transition: color .3s ease; }
.numerao .odo { font-size: 88px; font-weight: 500; letter-spacing: -.04em; }
.numerao .unidade { font-size: 28px; font-weight: 500; letter-spacing: -.01em; }
.numerao[data-tamanho="2"] .odo { font-size: 72px; }
.numerao[data-tamanho="3"] .odo { font-size: 54px; }
.numerao.medio { gap: 5px; margin: 0; } .numerao.medio .odo { font-size: 44px; font-weight: 600; letter-spacing: -.02em; } .numerao.medio .unidade { font-size: 18px; }
.offline .numerao { color: var(--cinza); }
.palavrao { margin-top: 4px; font-family: var(--titulo); font-size: min(44px, 11vw); font-weight: 600; line-height: 1.05; letter-spacing: -.03em; }
.palavrao.aviso { color: var(--aviso); } .palavrao.erro { color: var(--erro); } .palavrao.off { color: var(--cinza); }
.linha-fim { margin-top: 8px; font-size: 15px; line-height: 1.35; color: var(--cinza); }
.litros { margin-top: 14px; display: flex; align-items: center; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.botao-info { display: grid; place-items: center; width: 44px; height: 44px; margin: -12px -12px -12px -4px; padding: 0; border: 0; background: none; color: var(--cinza-2); }
.botao-info svg.i { width: 17px; height: 17px; stroke-width: 1.9; }
.explica { margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--cinza); animation: aparece .2s ease both; }
.link-pequeno { margin-top: 10px; font-size: 13px; font-weight: 600; text-decoration: none; line-height: 1.35; }

/* odometer: each digit is a column 0–9 that rolls to its place */
.odo { display: inline-flex; height: 1em; line-height: 1; overflow: hidden; }
.odo .d { position: relative; display: inline-block; }
.odo .d > span:first-child { visibility: hidden; }
.odo .col { position: absolute; left: 50%; top: 0; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, 0);
            transition: transform .7s var(--mola); }

/* ten-day strip */
.faixa { margin-top: 22px; }
.faixa-dias { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.faixa-dias div { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; color: var(--cinza-2); }
.faixa-dias i { position: relative; display: block; width: 100%; height: 10px; border-radius: 5px; background: var(--linha); overflow: hidden; }
.faixa-dias i::before, .faixa-dias i::after { content: ""; position: absolute; inset: 0 auto 0 0; transition: width .7s var(--mola); }
.faixa-dias i::before { width: var(--x, 0%); background: repeating-linear-gradient(135deg, #a6e1f5 0 3px, var(--linha) 3px 6px); }
.faixa-dias i::after { width: var(--f); background: var(--agua); }
.faixa-dias .eco { font-weight: 700; color: var(--link); }
.offline .faixa-dias i::after { background: #9ab0bc; }
.faixa-dias .forte { font-weight: 700; color: var(--tinta); }
.faixa-nota { display: block; margin-top: 10px; font-size: 13px; color: var(--aviso); }
a.faixa-nota { width: max-content; font-weight: 600; text-decoration: none; color: var(--link); }
.regado { display: block; width: max-content; margin-top: 2px; text-decoration: none; }

/* today's ribbon */
.hoje { margin-top: 20px; }
.hoje-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hoje-topo h2 { font-size: 15px; font-weight: 600; }
.hoje-topo a { font-size: 13px; font-weight: 600; text-decoration: none; text-align: right; }
.hoje-topo a.aviso { color: var(--aviso); }
.fita { position: relative; margin: 8px 16px 0; height: 62px; }
.fita > * { position: absolute; }
.fita .trilho { left: -16px; right: -16px; top: 30px; height: 2px; border-radius: 1px; background: var(--linha); }
.fita .passado { left: -16px; top: 30px; height: 2px; border-radius: 1px; background: #c4d0d8; }
.fita .agora { top: 0; transform: translateX(-50%); font-size: 12px; font-weight: 600; }
.fita .marca-agora { top: 18px; width: 2px; height: 26px; margin-left: -1px; border-radius: 1px; background: var(--tinta); }
.fita svg { overflow: visible; transition: transform .3s var(--mola); }
.fita svg path { fill: #fff; stroke: var(--agua); stroke-width: 1.8; }
.fita svg.feita path { fill: #c4d0d8; stroke: #c4d0d8; }
.fita svg.proxima path { fill: var(--agua); }
.fita svg.pausada path { fill: #fff; stroke: #c4d0d8; }
.fita .hora { top: 46px; transform: translateX(-50%); font-size: 12px; font-weight: 500; color: var(--cinza-2); font-variant-numeric: tabular-nums; }
.fita .vazia { left: 0; right: 0; top: 36px; text-align: center; font-size: 13px; color: var(--cinza-2); }

.alarme.aviso { background: var(--aviso-claro); color: var(--aviso); }
.fita svg.perdida path { fill: #fff; stroke: var(--aviso); stroke-dasharray: 3 2; }
.alarme { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding: 14px; border-radius: 16px; background: var(--erro-claro); color: var(--erro); font-weight: 600; font-size: 14px; }

/* schedules */
.lista-linhas { overflow: hidden; }
.lista-linhas > * + * { border-top: 1px solid var(--linha-2); }
.linha { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 60px; padding: 12px 16px; border: 0; background: none;
         text-align: left; text-decoration: none; color: var(--tinta); font-size: 16px; }
.linha .valor { margin-left: auto; color: var(--cinza); text-align: right; display: flex; align-items: center; gap: 7px; }
.linha .seta { width: 18px; height: 18px; color: var(--cinza-2); }
.linha .valor + .seta { margin-left: 0; }
.acao-linha { color: var(--link); font-weight: 600; }
.acao-linha .seta { margin-left: auto; }
#sair.acao-linha { color: var(--tinta); }
.rotulo { display: block; font-size: 13px; color: var(--cinza-2); }
.linha-chave { display: flex; align-items: center; }
.linha-chave .horario { flex: 1; min-width: 0; padding: 12px 8px 12px 16px; }
.linha-chave .chave { margin: 0 8px 0 0; }
.linha-chave.pausado .horario { color: var(--cinza-2); }
.horario { display: flex; flex-direction: column; align-items: flex-start; gap: 0; position: relative; padding-right: 44px; text-decoration: none; color: var(--tinta); transition: color .2s ease; }
.horario b { font-family: var(--titulo); font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.horario span { font-size: 13px; line-height: 1.35; color: var(--cinza); }
.horario .seta { position: absolute; right: 16px; top: 50%; margin-top: -9px; }
.aviso-hg { padding: 12px 14px; border-radius: 14px; background: var(--aviso-claro); color: var(--aviso); font-size: 14px; font-weight: 600; }
.nota-cinza { margin: 8px 0 0; font-size: 13px; color: var(--cinza); }

/* Editar horário, Rega única */
.rotulo-campo { display: block; margin: 20px 0 8px; font-size: 15px; font-weight: 600; }
.topo + .rotulo-campo { margin-top: 12px; }
/* the time or day in big type; the native picker sits invisible on top (24 h whatever the browser's language) */
.campo-grande { position: relative; display: flex; align-items: center; justify-content: center; height: 88px; margin: 0; border-radius: 20px;
                font-family: var(--titulo); font-size: 48px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; cursor: pointer; }
.campo-grande.medio { height: 72px; font-size: 30px; }
.campo-grande svg.i { position: absolute; right: 22px; width: 24px; height: 24px; color: var(--cinza-2); opacity: .7; stroke-width: 1.8; }
.campo-grande input { position: absolute; inset: 0; height: auto; margin: 0; opacity: 0; cursor: pointer; }
.campo-grande:has(input:focus-visible) { box-shadow: inset 0 0 0 2px var(--agua), 0 0 0 4px rgba(18, 168, 224, .16); }
.segmento { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: 14px; background: #e8edf0; }
.segmento button { height: 40px; padding: 0 4px; border: 0; border-radius: 10px; background: transparent; font-size: 14px; font-weight: 500;
                   transition: background-color .2s ease, box-shadow .2s ease; }
.segmento button[aria-checked="true"] { background: #fff; box-shadow: 0 1px 3px rgba(14, 26, 34, .14); font-weight: 700; }
.repetir-detalhe { margin-top: 12px; min-height: 44px; display: flex; align-items: center; }
.semana { width: 100%; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.semana button { height: 44px; padding: 0; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--linha); color: var(--cinza);
                 font-size: 13px; font-weight: 600; transition: background-color .18s ease, color .18s ease; }
.semana button[aria-pressed="true"] { background: var(--tinta); box-shadow: none; color: #fff; }
.cada { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.passo.branco { margin: 0; height: 44px; padding: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--linha); }
.passo.branco button { width: 44px; height: 44px; }
.passo.branco button:disabled { opacity: .35; }
.passo.branco b { min-width: 28px; margin: 0; text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; }
.duracao { padding: 14px 16px 8px; }
.dose-topo { display: flex; align-items: center; gap: 18px; }
.copo { width: 64px; height: 84px; flex: none; overflow: visible; }
.escala-copo { font-size: 12px; fill: var(--cinza-2); }
.dose-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dose-tempo { font-family: var(--titulo); font-size: 40px; font-weight: 600; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dose-ml { margin-top: 4px; font-size: 15px; color: var(--cinza); }
.regua { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 6px 0 0; padding: 0; background: transparent;
         box-shadow: none; cursor: pointer; }
.regua:focus { box-shadow: none; }
.regua::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--agua) 0 var(--fill, 50%), var(--linha) var(--fill, 50%) 100%); }
.regua::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: #fff;
                               box-shadow: 0 2px 8px rgba(14, 26, 34, .22), 0 0 0 1px rgba(14, 26, 34, .06); }
.regua::-moz-range-track { height: 6px; border-radius: 3px; background: var(--linha); }
.regua::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--agua); }
.regua::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(14, 26, 34, .22); }
.regua:focus-visible { outline: 2px solid var(--agua); outline-offset: 4px; border-radius: 8px; }
.regua-pontas { display: flex; justify-content: space-between; font-size: 12px; color: var(--cinza-2); }
.teste { margin-top: 14px; }
.teste .botao svg.i { color: var(--link); }
.testando { display: flex; align-items: center; gap: 12px; height: 48px; }
.testando span { flex: 1; font-size: 15px; font-weight: 600; }
.testando b { font-size: 15px; font-variant-numeric: tabular-nums; }
.testado { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 6px 0 14px; border-radius: 14px; background: var(--ok-claro); font-size: 14px; }
.testado svg.i { width: 18px; height: 18px; color: var(--ok); stroke-width: 2.4; animation: estoura .4s cubic-bezier(.34, 1.56, .64, 1) both; }
.testado span { flex: 1; }
.testado .link { min-width: 44px; min-height: 44px; color: var(--ok); font-weight: 700; font-size: 14px; }

/* history */
.eventos { list-style: none; margin: 22px 0 0; padding: 0 16px; }
.eventos li { display: flex; gap: 12px; align-items: center; padding: 12px 0; font-size: 15px; line-height: 1.35; }
.eventos li + li { border-top: 1px solid var(--linha-2); }
.bolinha-ev { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--agua-claro); color: var(--agua-escura); }
.bolinha-ev svg.i { width: 17px; height: 17px; }
.alerta .bolinha-ev { background: var(--aviso-claro); color: var(--aviso); }
.solto .bolinha-ev { background: var(--ok-claro); color: var(--ok); }
.ev-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ev-texto small { font-size: 13px; color: var(--cinza-2); }
.ev-texto small:empty { display: none; }
.eventos .quando { align-self: flex-start; margin-top: 2px; color: var(--cinza-2); font-size: 13px; white-space: nowrap; }

/* settings */
.passo { margin-left: auto; display: flex; align-items: center; gap: 2px; height: 48px; padding: 0 4px; border-radius: 24px; background: var(--apagado); }
.passo button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; }
.passo input { width: 48px; height: 40px; margin: 0; padding: 0; background: none; box-shadow: none; text-align: right; font-weight: 700; font-size: 18px; }
.passo b { font-size: 18px; margin: 0 4px 0 3px; }

/* economy cards */
.modos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.modos button { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 14px 14px 13px; border: 0; border-radius: 20px;
                background: #fff; color: var(--tinta); box-shadow: var(--borda); text-align: left; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
.modos button > span:first-child { font-size: 14px; font-weight: 600; }
.modo-num { margin-top: 6px; display: flex; align-items: baseline; gap: 5px; font-family: var(--titulo); }
.modo-num .odo { font-size: 40px; font-weight: 500; letter-spacing: -.03em; }
.modo-num small { font-size: 18px; font-weight: 500; }
.modo-ate { margin-top: 4px; font-size: 13px; color: var(--cinza); }
.modo-ok { position: absolute; top: 12px; right: 12px; display: none; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--agua); color: var(--tinta); }
.modo-ok svg.i { width: 12px; height: 12px; stroke-width: 3; }
.modos button[aria-checked="true"] { background: var(--tinta); color: #fff; box-shadow: 0 12px 28px -14px rgba(14, 26, 34, .6); }
.modos button[aria-checked="true"] .modo-ate { color: rgba(255, 255, 255, .72); }
.modos button[aria-checked="true"] .modo-ok { display: grid; animation: estoura .35s cubic-bezier(.34, 1.56, .64, 1) both; }
.modos button:disabled { opacity: .6; }

/* switches, name field, password */
.chave { position: relative; flex: none; width: 64px; height: 44px; margin: -8px -8px -8px auto; padding: 0; border: 0; background: none; }
.chave::before { content: ""; position: absolute; left: 6px; top: 6px; width: 52px; height: 32px; border-radius: 16px; background: #d3dce2; transition: background-color .2s ease; }
.chave i { position: absolute; top: 9px; left: 9px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(14, 26, 34, .28);
           transition: left .2s var(--mola); }
.chave[aria-checked="true"]::before { background: var(--agua); }
.chave:disabled { opacity: .45; cursor: not-allowed; }
.chave[aria-checked="true"] i { left: 29px; }
.peso { display: block; font-weight: 400; }
.peso.forte { font-weight: 600; }
.linha.alta { min-height: 68px; }
.linha.alta > span { flex: 1; min-width: 0; line-height: 1.3; }
.linha.alta .seta { margin-left: auto; }
.bloco { display: block; padding: 16px; margin-top: 12px; }
.bloco + .bloco { margin-top: 16px; padding: 18px 16px; }
.email-grande { display: block; margin-top: 2px; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.titulo-bloco { font-family: var(--titulo); font-size: 20px; font-weight: 600; }
.bloco .formulario-solto { margin-top: 12px; }
.caixa-perigo { margin-top: 16px; padding: 16px; border-radius: 20px; background: #fdecec; animation: aparece .25s ease both; }
.caixa-perigo b { font-size: 16px; }
.caixa-perigo .sub { margin-top: 4px; font-size: 14px; line-height: 1.4; }
.dupla-igual { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dupla-igual .botao { min-height: 46px; border-radius: 12px; }
.campo-linha { margin: 0; font-size: 16px; font-weight: 400; cursor: text; }
.campo-linha input { flex: 1; min-width: 0; height: 40px; margin: 0; padding: 0; background: none; box-shadow: none; text-align: right; font-size: 16px; font-weight: 600; color: var(--link); }
.campo-linha input:focus { box-shadow: none; color: var(--tinta); }
.formulario { padding: 18px 16px 16px; }
.regra { display: flex; align-items: center; gap: 6px; margin: -10px 0 16px; font-size: 13px; color: var(--cinza-2); }
.regra svg.i { width: 14px; height: 14px; stroke-width: 2.6; opacity: .25; transition: opacity .2s ease, color .2s ease; }
.regra.ok { color: var(--ok); } .regra.ok svg.i { opacity: 1; }

/* calibration */
.cal-topo { margin-top: 34px; display: flex; align-items: flex-end; gap: 16px; }
.copo-cal { width: 150px; height: 168px; flex: none; overflow: visible; }
.marca-copo { font-size: 12px; font-weight: 600; fill: var(--tinta); stroke: #fff; stroke-width: 3; paint-order: stroke; }
.passos-cartao { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.passos-cartao li { display: flex; gap: 14px; padding: 14px 16px; border-radius: 20px; background: #fff; box-shadow: var(--borda); }
.passos-cartao li > div { flex: 1; min-width: 0; }
.passos-cartao b { display: block; font-size: 16px; font-weight: 600; }
.passos-cartao p { margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--cinza); }
.passos-cartao .leve { display: inline; font-weight: 500; color: var(--cinza-2); }
.num { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tinta); color: #fff;
       font-size: 14px; font-weight: 700; transition: background-color .25s ease; }
.num.feito { background: var(--agua); color: var(--tinta); }
.num svg.i { width: 14px; height: 14px; stroke-width: 3.2; animation: estoura .35s cubic-bezier(.34, 1.56, .64, 1) both; }
.medida { margin-top: 10px; display: flex; gap: 8px; }
.medida .botao { flex: 1; min-height: 52px; border-radius: 14px; }
.campo-ml { position: relative; flex: none; width: 112px; }
.campo-ml input { margin: 0; height: 52px; border-radius: 14px; padding: 0 40px 0 14px; font-size: 18px; font-weight: 700; }
.campo-ml i { position: absolute; right: 14px; top: 15px; font-style: normal; font-size: 15px; color: var(--cinza-2); }
.resultado { margin-top: 16px; padding: 18px 16px 16px; border-radius: 24px; background: var(--tinta); color: #fff; }
.resultado h2 { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .72); }
.resultado .numerao { color: #fff; }
.resultado p { margin-top: 6px; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .78); }
.resultado .botao.azul:disabled { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .5); }

/* add module, waiting */
.esperando { text-align: center; padding-top: 60px; }
.esperando .logo { width: 64px; height: 64px; }
.esperando .grande-titulo { margin-top: 22px; }
.pulsa { animation: pulsa 1.6s ease-in-out infinite; }
@keyframes pulsa { 50% { transform: translateY(-6px) scale(1.05); } }

/* bottom tabs */
#abas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 8px max(28px, calc(50% - 212px)) max(18px, env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96);
        box-shadow: 0 -1px 0 var(--linha); backdrop-filter: blur(8px); }
#abas a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; text-decoration: none; color: var(--cinza-2); font-size: 12px; font-weight: 500; }
#abas svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#abas a[aria-current="page"] { color: var(--tinta); font-weight: 700; }
#abas a[aria-current="page"] .cheio { fill: currentColor; }
#abas a[aria-current="page"] .ponteiro { stroke: #fff; stroke-width: 1.9; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 104px; z-index: 30; display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100% - 32px);
         min-height: 52px; padding: 4px 4px 4px 16px; border-radius: 16px; background: var(--tinta); color: #fff; font-size: 14px;
         box-shadow: 0 12px 30px rgba(14, 26, 34, .28); transform: translateX(-50%); animation: torrada .38s cubic-bezier(.2, .9, .25, 1.05) both; }
.toast button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 14px; font-weight: 600; }
body:not(.com-abas) .toast { bottom: 24px; }
.toast:has(button[hidden]) { padding-right: 16px; }
@keyframes torrada { from { transform: translate(-50%, 16px); opacity: 0; } }

/* bottom sheets */
dialog.folha { width: 100%; max-width: 480px; margin: auto auto 0; padding: 8px 20px max(30px, env(safe-area-inset-bottom)); border: 0;
               border-radius: 28px 28px 0 0; background: #fff; color: var(--tinta); box-shadow: 0 -16px 40px rgba(14, 26, 34, .18); }
dialog.folha::backdrop { background: rgba(14, 26, 34, .18); }
dialog.folha[open] { animation: sobe .46s cubic-bezier(.2, .9, .25, 1) both; }
dialog.folha[open]::backdrop { animation: aparece .25s ease both; }
@keyframes sobe { from { transform: translateY(100%); } }
@keyframes aparece { from { opacity: 0; } }
.alca { display: block; width: 36px; height: 5px; margin: 0 auto 14px; border-radius: 3px; background: #d9e0e5; }
.folha h2 { font-family: var(--titulo); font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.folha .sub { margin-top: 4px; font-size: 14px; }
.opcoes button { border: 0; background: var(--fundo); box-shadow: inset 0 0 0 1px var(--linha); transition: box-shadow .15s ease, background-color .15s ease; }
.opcoes button[aria-checked="true"] { background: var(--agua-claro); box-shadow: inset 0 0 0 2px var(--agua); }
.outro { display: flex; gap: 10px; margin-top: 12px; }
.outro label { flex: 1; margin: 0; font-size: 13px; color: var(--cinza); }
.outro input { height: 48px; }
.opcoes { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.opcoes button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 12px 10px; border-radius: 16px; text-align: left; font-weight: 400; }
.opcoes b { font-family: var(--titulo); font-size: 22px; font-weight: 600; line-height: 1.1; }
.opcoes span { font-size: 13px; color: var(--cinza); }
.rodando { display: flex; align-items: center; gap: 20px; }
.rodando > div:last-child { flex: 1; min-width: 0; }
.folha .nota .link { padding: 0 0 0 4px; font-size: 13px; }
.rodando h2 { font-family: inherit; font-size: 18px; font-weight: 700; }
.anel { position: relative; flex: none; width: 112px; height: 112px; }
.anel svg { width: 112px; height: 112px; }
.anel circle { fill: none; stroke: var(--linha); stroke-width: 8; }
.anel .anel-cheio { stroke: var(--agua); stroke-linecap: round; stroke-dasharray: 301.6; transition: stroke-dashoffset 1s linear; }
.anel > span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.anel b { font-family: var(--titulo); font-size: 30px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.anel small { margin-top: 4px; font-size: 12px; font-weight: 500; color: var(--cinza-2); }
.pronto { display: flex; align-items: flex-start; gap: 14px; }
.pronto h2 { font-family: inherit; font-size: 18px; font-weight: 700; }
.ok-bolha { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ok-claro); color: var(--ok);
            animation: estoura .4s cubic-bezier(.34, 1.56, .64, 1) both; }
.ok-bolha svg.i { stroke-width: 2.6; }
@keyframes estoura { from { transform: scale(.4); opacity: 0; } }
.grande { display: flex; gap: 12px; margin: 18px 0; }
.grande div { flex: 1; padding: 14px; border-radius: 16px; background: var(--agua-claro); text-align: center; }
.grande b { display: block; font-family: var(--titulo); font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.grande span { font-size: 13px; color: var(--cinza); }

@media (max-width: 360px) {
  .heroi { grid-template-columns: 104px minmax(0, 1fr); column-gap: 16px; }
  .tanque { width: 104px; height: 186px; }
  .numerao .odo { font-size: 68px; }
  .palavrao { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
