:root { --cor: #b5162b; --azul: #1b2a4a; --fundo: #f3f4f8; --borda: #e2e5ec; --suave: #6b7385; --ok: #157f3b; --erro: #c0392b; --alerta: #b7791f; font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 15px; color: #1d2433; }
* { box-sizing: border-box; } body { margin: 0; background: var(--fundo); } [hidden] { display: none !important; }
a { color: var(--cor); text-decoration: none; }
header { background: var(--azul); color: #fff; padding: 14px 16px calc(14px); position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; }
header .logo { background: var(--cor); border-radius: 8px; padding: 5px 7px; font-weight: 700; font-size: 12px; }
header b { font-size: 16px; } header .esp { flex: 1; } header button { background: none; border: 0; color: #cfd6e6; font: inherit; font-size: 13px; }
main { padding: 14px 14px 90px; max-width: 760px; margin: 0 auto; }
nav.abas { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--borda); display: flex; z-index: 10; padding-bottom: env(safe-area-inset-bottom); }
nav.abas a { flex: 1; text-align: center; padding: 8px 2px 9px; color: var(--suave); font-size: 11.5px; } nav.abas a span { display: block; font-size: 20px; } nav.abas a.ativo { color: var(--cor); font-weight: 600; }
.card { background: #fff; border: 1px solid var(--borda); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
h1 { font-size: 20px; margin: 4px 0 12px; } h2 { font-size: 16px; margin: 0 0 10px; } h3 { font-size: 13px; color: var(--suave); text-transform: uppercase; letter-spacing: .04em; margin: 14px 0 6px; }
.muted { color: var(--suave); font-size: 13px; }
.filho { display: flex; align-items: center; gap: 12px; } .avatar { width: 44px; height: 44px; border-radius: 50%; background: #e7eaf2; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--azul); }
.alerta { border-left: 4px solid var(--cor); } .alerta.ok { border-left-color: var(--ok); } .alerta.amarelo { border-left-color: var(--alerta); }
.btn { font: inherit; border: 1px solid var(--borda); background: #fff; padding: 10px 14px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: inherit; }
.btn.pri { background: var(--cor); border-color: var(--cor); color: #fff; } .btn.az { background: var(--azul); border-color: var(--azul); color: #fff; } .btn.cheio { width: 100%; } .btn:disabled { opacity: .5; }
.linha { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0f1f5; align-items: center; } .linha:last-child { border: 0; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; background: #eef0f5; color: var(--suave); }
.tag.ok { background: #e3f4e9; color: var(--ok); } .tag.erro { background: #fbe7e5; color: var(--erro); } .tag.alerta { background: #fdf3e1; color: var(--alerta); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; } th, td { padding: 7px 5px; border-bottom: 1px solid #f0f1f5; text-align: left; } th { color: var(--suave); font-weight: 600; font-size: 12px; } td.n, th.n { text-align: center; }
.tbl { overflow-x: auto; } .baixa { color: var(--erro); font-weight: 700; }
.campo { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; } .campo label { font-size: 13px; color: var(--suave); }
input, select, textarea { font: inherit; padding: 11px 12px; border: 1px solid #cfd4df; border-radius: 10px; background: #fff; width: 100%; } textarea { min-height: 80px; }
.chk { display: flex; gap: 8px; align-items: center; } .chk input { width: auto; }
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(160deg, var(--azul), #2d4270); }
.login .card { width: 100%; max-width: 380px; padding: 24px; }
.passos { display: flex; gap: 4px; margin-bottom: 12px; } .passos div { flex: 1; height: 5px; border-radius: 3px; background: #dde1ea; } .passos div.on { background: var(--cor); }
.qr { text-align: center; } .qr img { width: 230px; max-width: 80%; border: 1px solid var(--borda); border-radius: 10px; }
.copia { font-family: monospace; font-size: 11px; word-break: break-all; background: #f5f6f9; padding: 10px; border-radius: 8px; margin: 10px 0; }
.modal-fundo { position: fixed; inset: 0; background: rgba(15,20,35,.5); display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
.modal { background: #fff; width: 100%; max-width: 560px; border-radius: 16px 16px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); max-height: 90vh; overflow-y: auto; }
#toast { position: fixed; top: 70px; left: 12px; right: 12px; z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; }
#toast div { background: var(--azul); color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.2); max-width: 420px; } #toast div.erro { background: var(--erro); }
.chips { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; } .chips button { border: 1px solid var(--borda); background: #fff; border-radius: 20px; padding: 7px 12px; font: inherit; font-size: 13px; white-space: nowrap; } .chips button.on { background: var(--azul); border-color: var(--azul); color: #fff; }
.contrato { white-space: pre-wrap; font-size: 13px; background: #fafbfc; border: 1px solid var(--borda); border-radius: 8px; padding: 12px; max-height: 300px; overflow-y: auto; }

/* ===== App dos pais (modelo do aplicativo) ===== */
body { background: #fff; font-family: "Work Sans", "Inter", "Segoe UI", system-ui, sans-serif; }
main { padding-bottom: 110px; }
header.topo { background: #fff; color: #0b1320; border-bottom: 1px solid var(--borda); }
header.topo .voltar { background: none; border: 0; font-size: 30px; line-height: 1; color: var(--cor); padding: 0 6px 0 0; }
.perfil-aluno { text-align: center; padding: 26px 0 6px; }
.foto-bt { position: relative; background: none; border: 0; padding: 0; cursor: pointer; }
.foto { width: 122px; height: 122px; border-radius: 50%; border: 2px solid #c9c9c9; padding: 4px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; }
.foto img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.foto b { width: 100%; height: 100%; border-radius: 50%; background: #e7eaf2; display: flex; align-items: center; justify-content: center; font-size: 46px; color: var(--azul); }
.foto.mini { width: 66px; height: 66px; padding: 0; border: 0; flex: none; } .foto.mini b { font-size: 26px; }
.grupo { position: absolute; right: -4px; bottom: 2px; width: 42px; height: 42px; border-radius: 50%; background: #b0291f; border: 3px solid #fff; display: flex; align-items: center; justify-content: center; }
.grupo svg { width: 24px; height: 24px; }
.nome-aluno { font-size: 23px; letter-spacing: .01em; margin-top: 6px; color: #111; }
.busca { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: 18px 4px 14px; }
.busca input { flex: 1; } .busca button { background: none; border: 0; width: 34px; height: 34px; color: #111; cursor: pointer; } .busca svg { width: 28px; height: 28px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile { position: relative; min-height: 120px; border-radius: 18px; padding: 16px 18px; display: block; text-decoration: none; overflow: hidden; }
.tile b { font-size: 21px; font-weight: 700; line-height: 1.15; display: block; padding-right: 26px; letter-spacing: .005em; }
.tile .ic { position: absolute; right: 16px; bottom: 12px; width: 50px; height: 50px; opacity: .55; } .tile .ic svg { width: 100%; height: 100%; }
.bolha { position: absolute; top: 8px; right: 10px; background: #b0291f; color: #fff; border-radius: 14px; min-width: 26px; height: 24px; padding: 0 7px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.faixa { display: block; color: inherit; margin: 10px 0 0; font-size: 14px; }
nav.abas { border-top: 1px solid #eee; padding-top: 8px; }
nav.abas a { position: relative; display: flex; justify-content: center; align-items: center; height: 58px; color: #555; }
nav.abas a svg { width: 34px; height: 34px; }
nav.abas a.ativo { color: #fff; } nav.abas a.ativo::before { content: ""; position: absolute; width: 64px; height: 56px; border-radius: 16px; background: #b0291f; z-index: -1; }
nav.abas a { z-index: 0; } nav.abas a .bolha { top: -2px; right: calc(50% - 40px); }
.sel-topo { display: flex; justify-content: space-between; align-items: center; } .sel-topo h2 { font-size: 22px; margin: 6px 0; } .fechar { background: none; border: 0; font-size: 26px; color: #666; }
.rot { font-size: 19px; margin: 22px 0 10px; }
.aluno-op { width: 100%; display: flex; align-items: center; gap: 16px; text-align: left; border: 1px solid #e4e4e4; border-radius: 16px; padding: 14px 16px; background: #fff; font: inherit; cursor: pointer; margin-bottom: 10px; }
.aluno-op.sel { border: 2px solid #b0291f; } .aluno-op b { display: block; font-size: 18px; } .aluno-op small { display: block; color: #777; font-size: 15px; letter-spacing: .06em; margin-top: 4px; } .aluno-op i { margin-left: auto; font-style: normal; font-size: 26px; color: #888; }
.sub-aluno { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; } .sub-aluno .foto.mini { width: 46px; height: 46px; } .sub-aluno small { display: block; color: var(--suave); font-size: 12.5px; }
.notif { display: flex; gap: 12px; align-items: flex-start; color: inherit; } .notif .ni { font-size: 22px; } .notif small { margin-left: auto; white-space: nowrap; }
@media (min-width: 700px) { .tiles { gap: 18px; } .tile { min-height: 140px; } }
.aluno-op .foto b, .sub-aluno .foto b { display: flex; font-size: 26px; margin: 0; } .sub-aluno .foto b { font-size: 20px; }
