*{box-sizing:border-box}
body{margin:0;background:#EEF1F6;color:#232A44;font:400 16px Barlow,system-ui,sans-serif}
#app{max-width:520px;margin:0 auto;min-height:100vh;padding-bottom:calc(84px + env(safe-area-inset-bottom))}
header{background:#232A44;color:#F2FEFD;padding:calc(12px + env(safe-area-inset-top)) 16px 12px;display:flex;align-items:center;gap:12px}
header img{width:52px;height:56px;object-fit:cover}
h1,h2,.num{font-family:'Barlow Condensed',system-ui,sans-serif;font-weight:700;margin:0}
h1{font-size:28px;line-height:1}h2{font-size:22px;margin-top:8px}.num{font-size:30px}
header button{margin-left:auto;background:transparent;color:#F2FEFD;border:1px solid #c5cde0}
main{padding:14px;display:flex;flex-direction:column;gap:8px}
button,.btn{min-height:46px;border:0;border-radius:10px;padding:0 12px;font:600 15px Barlow,system-ui,sans-serif;background:#232A44;color:#F2FEFD;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;text-align:center;text-decoration:none}
.claro{background:#fff;color:#232A44}.cinza{background:#E3E7F0;color:#232A44}.verde{background:#DDF3E4;color:#14532d}.perigo{background:#fde2e6;color:#9f1239}
button[aria-pressed=false]{background:#fff;color:#232A44}
label{font-size:13px;font-weight:600;display:block}
input,select{display:block;width:100%;min-height:46px;margin-top:4px;border:1px solid #9aa3b8;border-radius:10px;padding:0 12px;font:400 16px Barlow,system-ui,sans-serif;background:#fff;color:#232A44}
input[type=file]{position:absolute;width:1px;height:1px;opacity:0}
.card{background:#fff;border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:8px}
.linha{display:flex;justify-content:space-between;align-items:center;gap:8px}
.g2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.g3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.sub{font-size:13px;color:#505a73}
.ok{color:#14532d;font-weight:600}.atraso{color:#9f1239;font-weight:600}
.faixa{height:14px;border:1px solid #505a73;border-radius:3px}
nav{position:fixed;left:0;right:0;bottom:0;max-width:520px;margin:0 auto;background:#fff;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:8px 8px calc(8px + env(safe-area-inset-bottom))}
nav button{font-size:13px;padding:0}
.barras{display:flex;align-items:flex-end;gap:2px;height:190px;border-bottom:1px solid #9aa3b8}
.barras button{flex:1;min-width:0;height:100%;flex-direction:column;justify-content:flex-end;gap:3px;background:transparent;color:#232A44;padding:0;font-size:11px;border-radius:4px}
.barras button.sel{background:#E3E7F0}
.barras span{display:block;width:70%;max-width:34px;border-radius:4px 4px 0 0}
.meses{display:flex;gap:2px;font-size:11px;text-align:center}.meses span{flex:1}
.pilha{display:flex;gap:2px;height:16px}.pilha span{border-radius:4px}
.foto{width:100%;border-radius:14px}
#entrada{min-height:100vh;background:#232A44;color:#F2FEFD;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:28px;text-align:center}
#entrada img{width:200px}
#entrada label{display:flex;align-items:center;gap:10px;font-size:15px}
#entrada input{width:22px;min-height:22px;margin:0}
#aviso{position:fixed;left:14px;right:14px;bottom:90px;max-width:492px;margin:0 auto;background:#101628;color:#F2FEFD;border-radius:12px;padding:12px 14px;font-size:14px;z-index:9}
