:root{--red: #dc2626;--red-d: #b91c1c;--dark: #0f172a;--grey: #64748b;--line: #e2e8f0;--soft: #f8fafc;--green: #16a34a;--wa: #25d366;--amber: #b45309;--bg: #f3f4f6;--card: #fff;color-scheme:light}*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}html,body{background:var(--bg)}body{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--dark);font-size:16px;line-height:1.4}#app{max-width:520px;margin:0 auto;min-height:100dvh;background:var(--bg);display:flex;flex-direction:column}button{font:inherit;cursor:pointer;border:0;background:none;color:inherit}input,textarea{font:inherit;font-size:16px}.carregando{flex:1;display:grid;place-items:center;min-height:60dvh}.spin{width:36px;height:36px;border-radius:50%;border:4px solid #fecaca;border-top-color:var(--red);animation:g .8s linear infinite}@keyframes g{to{transform:rotate(360deg)}}.topo{background:var(--red);color:#fff;padding:calc(14px + env(safe-area-inset-top)) 18px 18px;border-radius:0 0 22px 22px}.topo .nome{font-size:22px;font-weight:900;letter-spacing:-.02em;display:flex;align-items:center;gap:8px}.topo .sub{font-size:14px;opacity:.9;margin-top:2px}.barra{display:flex;align-items:center;gap:8px;padding:calc(10px + env(safe-area-inset-top)) 12px 10px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}.barra h1{font-size:18px;font-weight:800}.voltar{width:44px;height:44px;border-radius:12px;font-size:22px;display:grid;place-items:center}main{flex:1;padding:14px 14px 120px;display:flex;flex-direction:column;gap:12px}.secao{font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--grey);margin:6px 4px 0}.prod{background:var(--card);border-radius:18px;padding:14px;display:flex;gap:12px;align-items:center;box-shadow:0 1px 2px #0f172a0f}.prod .ico{width:64px;height:64px;overflow:hidden;border-radius:14px;display:grid;place-items:center;font-size:30px;flex-shrink:0;background:#fff1f2}.prod.agua .ico{background:#eff6ff}.prod .ico img{width:100%;height:100%;object-fit:contain;padding:4px}.prod .info{flex:1;min-width:0}.prod .n{font-weight:800;font-size:16px}.prod .d{font-size:13px;color:var(--grey)}.prod .p{font-weight:900;font-size:17px;margin-top:2px}.prod.off{opacity:.55}.add{background:var(--red);color:#fff;font-weight:800;border-radius:12px;height:44px;padding:0 16px;font-size:15px}.qtd{display:flex;align-items:center;gap:4px;background:var(--soft);border-radius:12px;padding:3px}.qtd button{width:40px;height:40px;border-radius:10px;background:#fff;font-size:22px;font-weight:800;box-shadow:0 1px 2px #00000014}.qtd span{min-width:26px;text-align:center;font-weight:900;font-size:17px}.rodape{position:fixed;left:0;right:0;bottom:0;padding:12px 14px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(to top,var(--bg) 70%,transparent)}.rodape>*{max-width:492px;margin:0 auto}.cta{width:100%;height:58px;border-radius:16px;background:var(--red);color:#fff;font-weight:900;font-size:18px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;box-shadow:0 6px 18px #dc262659}.cta:disabled{background:#cbd5e1;box-shadow:none}.cta.wa{background:var(--wa);color:#fff;justify-content:center;gap:10px;box-shadow:0 6px 18px #25d36659}.cta.sec{background:#fff;color:var(--dark);border:2px solid var(--line);box-shadow:none;justify-content:center}.bloco{background:var(--card);border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:12px}.bloco h2{font-size:16px;font-weight:800}label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:700;color:#334155}input,textarea{width:100%;border:2px solid var(--line);border-radius:12px;padding:12px 14px;background:#fff;outline:none;color:var(--dark)}input:focus,textarea:focus{border-color:var(--red)}.linha{display:grid;grid-template-columns:1fr 96px;gap:10px}.gps{height:48px;border-radius:12px;border:2px dashed #fca5a5;color:var(--red-d);font-weight:800;font-size:15px}.chips{display:grid;grid-template-columns:1fr 1fr;gap:8px}.chip{height:50px;border-radius:12px;border:2px solid var(--line);font-weight:800;font-size:15px;background:#fff}.chip.on{border-color:var(--red);background:#fef2f2;color:var(--red-d)}.resumo{font-size:14px;color:#334155;display:flex;flex-direction:column;gap:4px}.resumo .t{display:flex;justify-content:space-between;font-weight:900;font-size:17px;color:var(--dark);border-top:1px solid var(--line);padding-top:8px;margin-top:4px}.erro{background:#fef2f2;color:var(--red-d);border-radius:12px;padding:12px;font-size:14px;font-weight:700}.dica{font-size:13px;color:var(--grey)}.status{background:var(--card);border-radius:18px;padding:18px}.cod{font-size:13px;color:var(--grey);font-weight:700}.cod b{font-family:ui-monospace,monospace;font-size:22px;color:var(--dark);letter-spacing:.06em}.etapas{list-style:none;margin-top:14px;display:flex;flex-direction:column}.etapas li{display:flex;gap:12px;align-items:flex-start;padding-bottom:16px;position:relative;color:#94a3b8;font-weight:700}.etapas li:before{content:"";width:18px;height:18px;border-radius:50%;border:3px solid #cbd5e1;background:#fff;flex-shrink:0;margin-top:1px;z-index:1}.etapas li:not(:last-child):after{content:"";position:absolute;left:8px;top:20px;bottom:0;width:3px;background:#e2e8f0}.etapas li.ok{color:var(--dark)}.etapas li.ok:before{border-color:var(--green);background:var(--green)}.etapas li.ok:after{background:var(--green)}.etapas li.agora:before{border-color:var(--red);background:#fff;box-shadow:0 0 0 5px #fee2e2}.etapas li.agora{color:var(--red-d)}.etapas small{display:block;font-weight:500;color:var(--grey);font-size:13px}.recusado{background:#fef2f2;border-radius:14px;padding:14px;color:var(--red-d);font-weight:700;margin-top:12px}.acoes{display:flex;flex-direction:column;gap:10px}.marca{text-align:center;font-size:12px;color:#94a3b8;padding:8px 0 4px}.vazio{text-align:center;color:var(--grey);padding:40px 10px}
