/* App do Aluno RR360 · v1 · cores copiadas do _temas() do canvas aprovado (escuro padrão + claro) */

:root,
:root[data-tema="escuro"] {
  --cv: #4CC27A; --ca: #6FB1F2; --cl: #F2A65A; --cr: #A98BF5; --cp: #F27A8A;
  --bg: #0E0F11; --sf: #17181B; --in: #0E0F11; --in2: #202226;
  --ln: #26282C; --ln2: #34373C; --tk: #2A2C31; --nav: #111214;
  --ink: #F5F5F3; --ink2: #E4E5E7; --mu: #9A9CA1; --mu2: #B6B8BC; --fa: #86898E; --off: #4C4F55;
  --gd: #D9B65C; --og: #1A1206;
  --warn: #F0A35E; --wch: #F0A35E; --wbg: #2A1E12; --wln: #5C3F1E; --wtx: #F6D9B8;
  --pg: #232529; --pgt: #D4D6DA;
  --sh: none;
  --glow: 0 6px 18px rgba(217, 182, 92, .15);
  --gt: linear-gradient(#F5F5F3, #F5F5F3);
  color-scheme: dark;
}
:root[data-tema="claro"] {
  --cv: #1E8A4C; --ca: #2A6FB5; --cl: #B4621A; --cr: #6B4FC4; --cp: #B83250;
  --bg: #F6F2EA; --sf: #FFFFFF; --in: #F6F2EA; --in2: #F5ECD9;
  --ln: #E5DCCB; --ln2: #D6CBB6; --tk: #ECE4D4; --nav: #FFFFFF;
  --ink: #1A1712; --ink2: #2E2A23; --mu: #6B6253; --mu2: #554D41; --fa: #71685A; --off: #C9BFAE;
  --gd: #7F5F10; --og: #1A1206;
  --warn: #B4561A; --wch: #F6C79A; --wbg: #FDF1E4; --wln: #F0CFA6; --wtx: #6B3A0E;
  --pg: #EEE8DC; --pgt: #554D41;
  --sh: 0 1px 2px rgba(60, 45, 20, .06), 0 6px 16px rgba(60, 45, 20, .06);
  --glow: 0 6px 18px rgba(176, 132, 40, .20);
  --gt: linear-gradient(#1A1712, #1A1712);
  color-scheme: light;
}
:root {
  --gg: linear-gradient(135deg, #8F661A 0%, #C49536 24%, #E3C173 46%, #EDD08A 53%, #D4AC55 68%, #A87C28 100%);
  --ouro-texto: linear-gradient(100deg, #AE8030 0%, #E0BC66 32%, #EDD08A 50%, #D9B158 70%, #AE8030 100%);
  --barra-h: 84px;
  --faixa-h: 0px;
  --largura: 430px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.com-faixa { --faixa-h: 26px; padding-top: var(--faixa-h); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--gd); outline-offset: 2px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

/* ---------- faixa da demonstração ---------- */
.faixa-demo {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--faixa-h);
  display: flex; align-items: center; justify-content: center;
  background: var(--in2); border-bottom: 1px solid var(--ln2);
  color: var(--mu2); font-size: 10.5px; font-weight: 700; letter-spacing: 2px;
}
.faixa-demo b { color: var(--gd); font-weight: 800; margin-right: 6px; }

/* ---------- moldura ---------- */
#app { width: 100%; max-width: var(--largura); margin: 0 auto; min-height: calc(100dvh - var(--faixa-h)); }
@media (min-width: 600px) {
  #app { border-left: 1px solid var(--ln); border-right: 1px solid var(--ln); }
}
.tela {
  display: flex; flex-direction: column; gap: 18px;
  padding: 24px 20px 28px;
  min-width: 0;
}
.tela.topo-alto { padding-top: 36px; }
/* folga para a bola dourada da Alimentação, que sobe 30 px acima da barra */
.tela.com-barra { padding-bottom: calc(var(--barra-h) + 60px + env(safe-area-inset-bottom)); }

/* ---------- tipografia ---------- */
.rotulo { font-size: 10.5px; font-weight: 700; letter-spacing: 1.8px; color: var(--gd); text-transform: uppercase; }
.rotulo-mu { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--mu); text-transform: uppercase; }
.cabeca { display: flex; flex-direction: column; gap: 6px; }
.titulo {
  font-size: 26px; font-weight: 800; line-height: 1.2; align-self: flex-start;
  background: var(--gt); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.titulo:focus { outline: none; }
.linha-at { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mu { color: var(--mu); }
.mu2 { color: var(--mu2); }
.peq { font-size: 12px; }
.peq2 { font-size: 12.5px; }
.nota { font-size: 12px; color: var(--fa); line-height: 1.5; }
.ouro-texto {
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  background: var(--ouro-texto); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ---------- selos / chips ---------- */
.selo-at {
  font-size: 11px; font-weight: 700; color: var(--og); background: var(--gg);
  border-radius: 6px; padding: 3px 8px; white-space: nowrap;
}

/* ---------- cartões ---------- */
.card {
  background: var(--sf); border: 1px solid var(--ln); box-shadow: var(--sh);
  border-radius: 18px; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  text-decoration: none; color: var(--ink); min-width: 0;
}
.card-ouro {
  border: 1px solid transparent;
  background: linear-gradient(var(--sf), var(--sf)) padding-box, var(--gg) border-box;
}
a.card, button.card { cursor: pointer; text-align: left; width: 100%; font-family: inherit; }
.card-topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-topo .dir { display: flex; align-items: center; gap: 6px; color: var(--mu); }
.card-titulo { font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.card .sub { font-size: 12.5px; color: var(--mu2); }
.vazio { font-size: 13.5px; color: var(--mu2); line-height: 1.5; }
.grade-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mini { border-radius: 16px; padding: 14px; gap: 6px; }
.mini .grande { font-size: 20px; font-weight: 800; overflow-wrap: anywhere; }
.divisor { height: 1px; background: var(--ln); }

/* informação e alerta */
.info {
  display: flex; gap: 8px; align-items: flex-start;
  background: var(--in2); border-radius: 10px; padding: 10px 12px;
  font-size: 12.5px; line-height: 1.45; color: var(--mu2);
}
.info svg { color: var(--gd); flex: none; margin-top: 1px; }
.alerta {
  display: flex; gap: 8px; align-items: flex-start;
  background: var(--wbg); border: 1px solid var(--wln); color: var(--wtx);
  border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.45;
}
.alerta svg { color: var(--warn); flex: none; margin-top: 1px; }
.alerta a { color: inherit; font-weight: 700; }
.ok-msg { font-size: 12.5px; color: var(--cv); text-align: center; font-weight: 600; }

/* ---------- botões ---------- */
.botao-ouro {
  min-height: 54px; border-radius: 12px; border: 0;
  background: var(--gg); color: var(--og);
  font-size: 15px; font-weight: 800; letter-spacing: 1px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; cursor: pointer; box-shadow: var(--glow);
  padding: 0 16px; width: 100%; text-align: center;
}
.botao-ouro.normal { letter-spacing: 0; font-weight: 700; font-size: 16px; }
.botao-ouro:disabled, .botao-ouro[aria-disabled="true"] {
  background: var(--tk); color: var(--fa); box-shadow: none; cursor: default;
}
.botao-contorno {
  min-height: 48px; border-radius: 12px; border: 1px solid var(--gd); background: transparent;
  color: var(--gd); font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; cursor: pointer; padding: 0 14px; width: 100%; text-align: center;
}
.botao-texto {
  min-height: 44px; padding: 0; border: 0; background: transparent;
  color: var(--gd); font-size: 14px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; text-decoration: none;
}
.voltar {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  text-decoration: none; color: var(--gd); font-size: 15px; font-weight: 600; align-self: flex-start;
}

/* ---------- cartão de PDF ---------- */
.pdf {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  border-radius: 18px; text-decoration: none; color: var(--ink);
  border: 1px solid transparent;
  background: linear-gradient(var(--sf), var(--sf)) padding-box, var(--gg) border-box;
  box-shadow: var(--sh); cursor: pointer; width: 100%; text-align: left; font-family: inherit;
}
.pdf .ico {
  width: 52px; height: 52px; border-radius: 14px; background: var(--in2);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.pdf .txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pdf .t { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.pdf .s { font-size: 12.5px; color: var(--mu); overflow-wrap: anywhere; }
.pdf .abrir { font-size: 13px; font-weight: 700; color: var(--gd); flex: none; }
.pdf:disabled { cursor: default; background: var(--sf); border-color: var(--ln); }
.pdf:disabled .abrir { color: var(--mu); font-weight: 600; }

.pdf-mini {
  display: flex; flex-direction: column; gap: 6px; padding: 14px;
  border-radius: 16px; color: var(--ink); text-align: left; font-family: inherit; cursor: pointer;
  border: 1px solid transparent;
  background: linear-gradient(var(--sf), var(--sf)) padding-box, var(--gg) border-box;
  box-shadow: var(--sh); min-width: 0;
}
.pdf-mini .t { font-size: 14px; font-weight: 700; }
.pdf-mini .s { font-size: 12px; color: var(--mu); }
.pdf-mini .acao { font-size: 12.5px; font-weight: 700; color: var(--gd); margin-top: auto; padding-top: 4px; }
.pdf-mini:disabled { cursor: default; background: var(--sf); border-color: var(--ln); }
.pdf-mini:disabled .acao { color: var(--mu); font-weight: 600; }

/* ---------- listas (Mais, Perfil) ---------- */
.grupo { display: flex; flex-direction: column; gap: 10px; }
.lista {
  display: flex; flex-direction: column; background: var(--sf); border: 1px solid var(--ln);
  box-shadow: var(--sh); border-radius: 18px; overflow: hidden;
}
.item {
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 16px;
  text-decoration: none; color: var(--ink); background: transparent; border: 0; width: 100%;
  text-align: left; cursor: pointer; font-family: inherit;
}
.item + .item { border-top: 1px solid var(--ln); }
.item .ico {
  width: 36px; height: 36px; border-radius: 10px; background: var(--in2);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.item .txt { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.item .t { font-size: 15px; font-weight: 600; }
.item .s { font-size: 12px; color: var(--mu); overflow-wrap: anywhere; }
.item .seta { color: var(--mu); flex: none; }
.item.sair .t { color: var(--mu2); }

.dado { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; }
.dado + .dado { border-top: 1px solid var(--ln); }
.dado .v { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- avatar ---------- */
.avatar {
  border-radius: 50%; border: 2px solid var(--gd); background: var(--in2); color: var(--gd);
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none;
  text-decoration: none;
}
.avatar.p { width: 52px; height: 52px; font-size: 17px; }
.avatar.m { width: 56px; height: 56px; font-size: 19px; }
.avatar-g { width: 104px; height: 104px; border-radius: 50%; padding: 4px; border: 2px solid var(--gd); }
.avatar-g span {
  width: 100%; height: 100%; border-radius: 50%; background: var(--in2); color: var(--gd);
  font-size: 32px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* ---------- Início ---------- */
.ola-linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; }
.ola { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ola .pre { font-size: 13px; color: var(--mu); font-weight: 400; }
.ola .nome {
  font-size: 26px; font-weight: 800; line-height: 1.2; align-self: flex-start; overflow-wrap: anywhere;
  background: var(--gt); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.ola-botoes { display: flex; align-items: center; gap: 10px; flex: none; }
.botao-menu {
  width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--ln); background: var(--sf);
  display: flex; align-items: center; justify-content: center; color: var(--ink); text-decoration: none;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
  color: var(--ink2); background: var(--in); border: 1px solid var(--ln); border-radius: 999px; padding: 5px 10px;
}
.chip svg { color: var(--cr); }
.chip.falta { color: var(--mu); }
.chip.falta svg { color: var(--mu); }
.aviso-valor { font-size: 12px; color: var(--warn); font-weight: 600; }

/* ---------- Débitos ---------- */
.resumo3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.resumo3 > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.resumo3 .v { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.resumo3 .v.aberto { color: var(--warn); }
.progresso { height: 6px; background: var(--tk); border-radius: 3px; overflow: hidden; }
.progresso > div { height: 100%; background: var(--gg); }
.parcelas { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.parcela { display: flex; align-items: center; gap: 10px; min-height: 48px; border-top: 1px solid var(--ln); }
.parcela .n { font-size: 13px; color: var(--mu); width: 40px; flex: none; }
.parcela .d { flex: 1; font-size: 14px; min-width: 0; }
.parcela .v { font-size: 14px; font-weight: 600; text-align: right; white-space: nowrap; }
.selo-st { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 3px 6px; width: 70px; text-align: center; flex: none; }
.selo-st.paga { background: var(--pg); color: var(--pgt); }
.selo-st.aberta { background: var(--wch); color: #1A0E02; }
.selo-st.futura { border: 1px solid var(--ln2); color: var(--mu); font-weight: 600; padding: 2px 5px; }

/* ---------- Suporte (FAQ) ---------- */
.faq { background: var(--sf); border: 1px solid var(--ln); box-shadow: var(--sh); border-radius: 14px; overflow: hidden; }
.faq button {
  width: 100%; min-height: 56px; border: 0; background: transparent; color: var(--ink);
  font-size: 15px; font-weight: 600; text-align: left; padding: 12px 14px;
  display: flex; align-items: center; gap: 10px; cursor: pointer;
}
.faq button span:first-child { flex: 1; }
.faq .seta { display: flex; color: var(--gd); transition: transform .2s; }
.faq button[aria-expanded="true"] .seta { transform: rotate(180deg); }
.faq .resp { padding: 0 14px 14px; font-size: 14px; line-height: 1.55; color: var(--mu2); }

/* ---------- Aparência ---------- */
.segmento {
  display: flex; gap: 4px; background: var(--sf); border: 1px solid var(--ln);
  box-shadow: var(--sh); border-radius: 12px; padding: 4px;
}
.segmento button {
  flex: 1; height: 44px; border-radius: 9px; border: 0; background: transparent;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--mu2); cursor: pointer;
}
.segmento button[aria-pressed="true"] { background: var(--gg); color: var(--og); font-weight: 700; }
.rodape-marca { font-size: 11px; letter-spacing: 2px; color: var(--fa); text-align: center; font-weight: 700; }

/* ---------- Entrar / Código ---------- */
.entrada { display: flex; flex-direction: column; min-height: calc(100dvh - var(--faixa-h)); }
.heroi {
  position: relative; flex: none; background: #0A0A0A; border-radius: 0 0 32px 32px; overflow: hidden;
  height: clamp(300px, 52vh, 440px);
}
.heroi.curto { height: clamp(260px, 42vh, 360px); }
.heroi img.foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.heroi .veu { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0) 30%, rgba(10,10,10,.72) 64%, #0A0A0A 100%); }
.heroi .marca { position: absolute; left: 0; right: 0; bottom: 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 16px; }
.heroi .marca img { width: 236px; height: auto; }
.heroi.curto .marca img { width: 200px; }
.heroi .lema { font-size: 14px; color: #CFC6B5; }
.form-entrada { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px 28px 18px; }
.form-entrada h1 { font-size: 22px; font-weight: 700; }
.form-entrada .label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--mu); margin-top: 2px; }
.campo {
  height: 54px; border-radius: 12px; border: 1px solid var(--ln2); background: var(--sf); color: var(--ink);
  font-size: 16px; padding: 0 16px; font-family: inherit; box-shadow: var(--sh); width: 100%;
}
.campo[aria-invalid="true"] { border-color: var(--warn); }
.campo::placeholder { color: var(--fa); }
.ajuda { font-size: 12.5px; color: var(--mu2); line-height: 1.5; }
.rodape-ajuda { margin-top: auto; padding-top: 16px; font-size: 12.5px; color: var(--mu); text-align: center; }
.rodape-ajuda a { color: var(--gd); font-weight: 700; text-decoration: none; }
.caixas { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.caixas input {
  width: 100%; min-width: 0; height: 58px; border-radius: 12px; border: 1.5px solid var(--ln2);
  background: var(--sf); color: var(--ink); font-size: 26px; font-weight: 700; text-align: center;
  padding: 0; font-family: inherit; box-shadow: var(--sh);
}
.caixas input.cheia { border-color: var(--gd); }
.caixas.erro input { border-color: var(--warn); }
.reenvio { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
.reenvio .espera { min-height: 44px; display: flex; align-items: center; font-size: 14px; color: var(--mu); font-variant-numeric: tabular-nums; }
.reenvio .botao-texto { text-decoration: underline; text-underline-offset: 3px; }
.reenvio .trocar { text-decoration: none; font-weight: 600; }

/* ---------- Termo (antes de começar / privacidade) ---------- */
.topo-marca {
  margin: -24px -22px 0; height: 150px; flex: none; background: #0A0A0A; border-radius: 0 0 32px 32px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.topo-marca img { width: 180px; height: auto; }
.tela.termo { padding: 24px 22px 28px; gap: 16px; }
.tela.termo.com-barra { padding-bottom: calc(var(--barra-h) + 60px + env(safe-area-inset-bottom)); }
.intro-termo { font-size: 15px; line-height: 1.55; color: var(--ink2); }
.abre-termo {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px;
  padding: 0 16px; border-radius: 14px; border: 1px solid var(--ln2); background: var(--sf);
  color: var(--gd); font-size: 14px; font-weight: 700; cursor: pointer; text-align: left; box-shadow: var(--sh);
}
.abre-termo > span { display: flex; align-items: center; gap: 10px; }
.abre-termo .seta { transition: transform .2s; flex: none; }
.abre-termo[aria-expanded="true"] .seta { transform: rotate(180deg); }
.texto-termo {
  background: var(--sf); border: 1px solid var(--ln); box-shadow: var(--sh); border-radius: 18px;
  padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px;
  font-size: 13.5px; line-height: 1.6; color: var(--ink2);
}
.texto-termo h2 { font-size: 14px; font-weight: 700; color: var(--gd); margin-top: 8px; }
.texto-termo h2:first-child { margin-top: 0; }
.texto-termo ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.texto-termo .versao { margin-top: 12px; font-size: 12.5px; color: var(--mu); }
.aceite {
  display: flex; align-items: flex-start; gap: 12px; min-height: 56px; padding: 12px 14px;
  border-radius: 14px; border: 1px solid var(--ln2); background: var(--sf); color: var(--ink);
  cursor: pointer; font-size: 14px; line-height: 1.45; position: relative;
}
.aceite input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.aceite .caixa {
  width: 26px; height: 26px; border-radius: 8px; flex: none; border: 2px solid var(--gd); color: transparent;
  display: flex; align-items: center; justify-content: center;
}
.aceite input:checked + .caixa { background: var(--gg); border-color: transparent; color: var(--og); }
.aceite input:focus-visible + .caixa { outline: 2px solid var(--gd); outline-offset: 2px; }
.aceite.fixo { cursor: default; border-color: var(--ln); }
.aceito-card { flex-direction: row; align-items: center; gap: 12px; padding: 14px 16px; }
.aceito-card .ok {
  width: 40px; height: 40px; border-radius: 50%; background: var(--gg); color: var(--og);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.aceito-card .txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }

/* ---------- barra de baixo ---------- */
.barra {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--largura); z-index: 40;
  height: calc(var(--barra-h) + env(safe-area-inset-bottom));
  padding: 8px 4px env(safe-area-inset-bottom);
  background: var(--nav); border-top: 1px solid var(--ln);
  display: flex; align-items: flex-start; justify-content: space-around;
}
.barra a {
  width: 66px; min-height: 52px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-decoration: none; color: var(--mu); font-size: 11px; font-weight: 600; text-align: center;
}
.barra a[aria-current="page"] { color: var(--gd); font-weight: 700; }
.barra a.centro { width: 78px; margin-top: -30px; }
.barra a.centro .bola {
  width: 62px; height: 62px; border-radius: 50%; background: var(--gg); color: var(--og);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px var(--bg), var(--glow);
}

/* ---------- carregando / aviso ---------- */
.carregando { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--mu2); font-size: 14px; }
.roda { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--tk); border-top-color: var(--gd); animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .roda { animation-duration: 2.4s; } * { transition: none !important; } }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--barra-h) + 16px + env(safe-area-inset-bottom));
  width: calc(100% - 32px); max-width: 398px; z-index: 60;
  background: var(--ink); color: var(--bg); border-radius: 12px; padding: 12px 14px;
  font-size: 14px; line-height: 1.45; box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
h1[tabindex="-1"]:focus { outline: none; }
.pdf:disabled svg, .pdf-mini:disabled svg { color: var(--mu) !important; }
/* verde do texto no tema claro: o --cv do desenho (#1E8A4C) dá 3,9:1 no fundo creme; este dá mais de 4,5:1 */
:root[data-tema="claro"] .ok-msg { color: #18733F; }

/* ---------- Início igual ao desenho (contadores, barras, farmácia parceira) · 30/11 ---------- */
.linha-fina { height: 1px; background: var(--ln); }
.pergunta { font-size: 13px; font-weight: 600; color: var(--mu2); }
.contagem { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.contagem .cx { background: var(--in); border: 1px solid var(--ln); border-radius: 12px; padding: 8px 0 6px; display: flex; flex-direction: column; align-items: center; }
.contagem .num { font-size: 28px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ink); }
.contagem .rot { font-size: 11px; font-weight: 600; color: var(--mu); }
.prog-bloco { display: flex; flex-direction: column; gap: 6px; }
.prog { height: 6px; background: var(--tk); border-radius: 3px; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--gg); border-radius: 3px; }
.card-link { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.acabam { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.acabam .mu2 { font-size: 15px; }
.ouro-num { font-size: 30px; font-weight: 800; letter-spacing: -.5px; color: var(--ink); }
.ouro-num.menor { font-size: 20px; letter-spacing: 0; }
.parceira { min-height: 56px; border-radius: 12px; border: 1px solid var(--ln2); background: var(--in); display: flex; align-items: center; gap: 12px; padding: 8px 12px; }
.parceira .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--in2); display: flex; align-items: center; justify-content: center; flex: none; color: var(--cr); }
.parceira .txt { flex: 1; display: flex; flex-direction: column; gap: 1px; font-size: 12px; color: var(--mu); }
.parceira .txt b { font-size: 14px; color: var(--ink); }
.peq.mu { font-size: 12px; color: var(--mu); }

/* ---------- Alimentação com o cardápio (canvas telas 28 e 29, 30/11) ---------- */
.dia-anel { display: flex; align-items: center; gap: 16px; }
.rosca { position: relative; width: 116px; height: 116px; flex: none; }
.rosca svg { width: 116px; height: 116px; display: block; }
.rosca .centro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rosca .centro b { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.rosca .centro span { font-size: 10.5px; color: var(--mu); }
.macros { flex: 1; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.mac { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.mac i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.mac .n { flex: 1; }
.mac b { font-size: 14px; }
.mac .pc { width: 34px; text-align: right; font-size: 12px; color: var(--mu); }
.caixinha { background: var(--in); border: 1px solid var(--ln); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.caixinha b { font-size: 20px; font-weight: 800; }
.caixinha span { font-size: 12px; color: var(--mu2); }
.caixinha small { font-size: 11.5px; color: var(--mu); line-height: 1.4; margin-top: 2px; }
.lista-ref { display: flex; flex-direction: column; gap: 10px; }
.ref { min-height: 66px; display: flex; align-items: center; gap: 12px; background: var(--sf); border: 1px solid var(--ln); box-shadow: var(--sh); border-radius: 14px; padding: 8px 12px 8px 14px; text-decoration: none; color: var(--ink); }
.ref .hora { font-size: 16px; font-weight: 800; width: 50px; flex: none; font-variant-numeric: tabular-nums; }
.ref .meio { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ref .nm { font-size: 15px; font-weight: 600; }
.ref .sb { font-size: 12px; color: var(--mu); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref .gota { width: 40px; height: 40px; border-radius: 12px; background: var(--in2); display: flex; align-items: center; justify-content: center; flex: none; }
.ref svg { color: var(--mu); flex: none; }
.pdf.baixar .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--in2); display: flex; align-items: center; justify-content: center; flex: none; }
.voltar { align-self: flex-start; min-height: 44px; display: flex; align-items: center; gap: 4px; color: var(--gd); font-size: 14px; font-weight: 600; text-decoration: none; margin-top: -12px; }
.selo-hora { align-self: flex-start; font-size: 12px; font-weight: 800; color: var(--og); background: var(--gg); border-radius: 6px; padding: 3px 8px; font-variant-numeric: tabular-nums; }
.chips-m { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.chip-m { background: var(--sf); border: 1px solid var(--ln); border-radius: 12px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.chip-m b { font-size: 17px; font-weight: 800; }
.chip-m span { font-size: 10.5px; font-weight: 600; color: var(--mu); display: flex; align-items: center; gap: 4px; }
.chip-m i { width: 7px; height: 7px; border-radius: 2px; }
.comer, .troca { gap: 4px; }
.troca { border: 1px solid transparent; background: linear-gradient(var(--sf), var(--sf)) padding-box, var(--gg) border-box; gap: 8px; }
.prato { font-size: 17px; font-weight: 700; margin-top: 4px; }
.itens { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.itens li { position: relative; padding: 11px 0 11px 16px; border-bottom: 1px solid var(--ln); font-size: 14.5px; line-height: 1.4; }
.itens li::before { content: ''; position: absolute; left: 0; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--gd); }
.troca .itens li { padding: 6px 0 6px 16px; border-bottom: 0; font-size: 14px; }
.troca .itens li::before { top: 13px; }
.como { font-size: 13.5px; line-height: 1.55; color: var(--mu2); white-space: pre-line; margin-top: 4px; }

/* ---------- diário de fotos, manipulados e avisos (canvas telas 3, 4, 28 e 29 · 30/11) ---------- */
.ouro { color: var(--gd); }
.nota { line-height: 1.5; }
.ref .sb.ok { color: var(--gd); font-weight: 600; }
.pts { flex: none; font-size: 12px; font-weight: 800; border-radius: 8px; padding: 3px 7px; border: 1px solid var(--ln2); color: var(--mu); }
.pts.feito { background: var(--gg); color: var(--og); border-color: transparent; }
.foto-ok { position: relative; width: 48px; height: 48px; flex: none; border-radius: 10px; background: var(--in2); display: flex; align-items: center; justify-content: center; }
.foto-ok i { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--gg); border: 2px solid var(--sf); display: flex; align-items: center; justify-content: center; }
.foto-falta { width: 48px; height: 48px; flex: none; border-radius: 12px; border: 1.5px dashed var(--gd); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.foto-falta.apagada { border-color: var(--ln2); color: var(--off); }
.foto-falta svg, .foto-ok svg { color: inherit; }
.pct { font-size: 18px; font-weight: 800; }
.regua { position: relative; padding-bottom: 18px; margin-top: 4px; }
.prog.grossa { height: 8px; border-radius: 4px; }
.regua .marca { position: absolute; top: -4px; width: 2px; height: 16px; border-radius: 1px; background: var(--ink); }
.regua .marca-txt { position: absolute; top: 14px; transform: translateX(-50%); font-size: 10.5px; font-weight: 700; color: var(--mu2); white-space: nowrap; }
.ouro-borda { border: 1px solid transparent; background: linear-gradient(var(--sf), var(--sf)) padding-box, var(--gg) border-box; }
.botao-sec { min-height: 48px; border-radius: 12px; border: 1px solid var(--ln2); background: var(--in); color: var(--ink); font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer; padding: 8px 12px; text-align: center; font-family: inherit; width: 100%; }
.botao-sec.feito { cursor: default; color: var(--mu2); }
.botao-sec.apagado { cursor: default; color: var(--mu); border-style: dashed; }
label.botao-ouro, a.botao-ouro { display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; }
.foto-feita { display: flex; align-items: center; gap: 12px; }
.foto-feita img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--in2); flex: none; }
.foto-feita span { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.foto-feita small { font-size: 12px; color: var(--mu); }
.cabeca-linha { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pilula { flex: none; display: flex; align-items: center; gap: 6px; min-height: 36px; border-radius: 18px; border: 1px solid var(--ln2); background: var(--sf);
  color: var(--ink); font-size: 12px; font-weight: 700; padding: 0 12px; cursor: pointer; font-family: inherit; margin-top: 2px; }
.pilula svg { color: var(--gd); }
.pilula.pausada { color: var(--mu); }
.pilula.pausada svg { color: var(--mu); }
.manip { min-height: 64px; display: flex; align-items: center; gap: 12px; background: var(--sf); border: 1px solid var(--ln); box-shadow: var(--sh); border-radius: 14px; padding: 8px 10px 8px 12px; }
.manip .num { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--gd); color: var(--gd); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; flex: none; }
.manip .meio { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.manip .nm { font-size: 15px; font-weight: 600; }
.manip .sb { font-size: 12px; color: var(--mu); }
.manip .hora { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; flex: none; }
.manip.feito .nm { color: var(--fa); text-decoration: line-through; }
.caixa-check { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--off); background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.caixa-check.ok { border: 0; background: var(--gg); }
.passo-dias { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 8px 0; }
.passo-dias span { font-size: 15px; color: var(--mu2); }
.passo-dias b { font-size: 40px; font-weight: 800; color: var(--ink); margin-right: 4px; }
.redondo { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ln2); background: var(--in); color: var(--ink); font-size: 24px; cursor: pointer; font-family: inherit; }
.opcao { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14.5px; cursor: pointer; border-bottom: 1px solid var(--ln); }
.opcao:last-child { border-bottom: 0; }
.opcao input { width: 20px; height: 20px; accent-color: #C49536; }
.campo.area { min-height: 84px; padding: 12px 14px; resize: vertical; font-family: inherit; line-height: 1.4; }
