/* Rotina das Crianças — estilos. Pensado para tablets Android (toque). */
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-latin.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --cor: #f97316;
  --cor2: #ec4899;
  --texto: #1e293b;
  --texto-suave: #64748b;
  --verde: #22c55e;
  --verde-escuro: #15803d;
  --fundo-cartao: #ffffff;
  --raio: 22px;
  --sombra: 0 6px 20px rgba(15, 23, 42, .10);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--texto);
  min-height: 100vh;
  background: linear-gradient(160deg, #fff7ed 0%, #fdf2f8 55%, #eef2ff 100%);
  background-attachment: fixed;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior: none;
}
body.tela-crianca, body.tela-calendario {
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--cor) 22%, transparent) 0, transparent 45%),
    radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--cor2) 20%, transparent) 0, transparent 50%),
    #f8fafc;
  background-attachment: fixed;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; touch-action: manipulation; }
h1, h2, h3, h4, p { margin: 0; }
.carregando { display: grid; place-items: center; min-height: 100vh; font-size: 28px; font-weight: 800; }

/* ---------- barras de progresso ---------- */
.barra { display: block; height: 14px; border-radius: 99px; background: rgba(15, 23, 42, .10); overflow: hidden; }
.barra > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--verde), #84cc16); transition: width .5s ease; }

/* ================================================================== *
 * Seleção de perfil
 * ================================================================== */
/* Celular (padrão): cartão deitado — avatar à esquerda, nome e progresso empilhados à direita.
 * Tablet / telas largas (>= 640px): dois cartões lado a lado, avatar em cima. */
.perfis {
  min-height: 100vh; min-height: 100dvh;
  padding: max(28px, env(safe-area-inset-top)) clamp(14px, 4vw, 32px) max(22px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(20px, 3.5vh, 36px);
}
.perfis-topo { text-align: center; max-width: 100%; }
.perfis-topo h1 { font-size: clamp(34px, 9.5vw, 64px); font-weight: 900; letter-spacing: -.5px; line-height: 1.1; }
.perfis-data { font-size: clamp(16px, 4.4vw, 22px); color: var(--texto-suave); font-weight: 700; margin-top: 6px; line-height: 1.3; }
.perfis-data::first-letter { text-transform: uppercase; }
.perfis-pergunta { font-size: clamp(21px, 6vw, 30px); font-weight: 800; margin-top: clamp(12px, 2.5vh, 22px); line-height: 1.2; }
.perfis-lista { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); width: 100%; max-width: 520px; }
.perfil {
  width: 100%; min-width: 0;
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "avatar nome" "avatar prog";
  align-items: center; column-gap: clamp(14px, 4.5vw, 22px); row-gap: 10px;
  padding: clamp(14px, 4.5vw, 22px); border-radius: clamp(26px, 7vw, 36px); text-align: left;
  background: linear-gradient(150deg, var(--cor), var(--cor2)); color: #fff;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--cor) 38%, transparent);
  transition: transform .15s ease;
}
.perfil:active { transform: scale(.97); }
.perfil:focus-visible { outline: 4px solid color-mix(in srgb, var(--cor) 60%, #fff); outline-offset: 4px; }
.perfil-avatar {
  grid-area: avatar; overflow: hidden; line-height: 1;
  width: clamp(84px, 27vw, 130px); aspect-ratio: 1; height: auto; font-size: clamp(52px, 17vw, 80px);
  display: grid; place-items: center; background: rgba(255,255,255,.25); border-radius: 50%;
  border: clamp(4px, 1.2vw, 6px) solid rgba(255,255,255,.75);
}
/* Avatar com foto: a imagem preenche o círculo; o emoji só aparece se a foto não carregar. */
.avatar-foto { display: none; }
.tem-foto { background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.tem-foto .avatar-foto { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.tem-foto .avatar-emoji { display: none; }
.perfil-nome {
  grid-area: nome; align-self: end; min-width: 0; overflow-wrap: break-word;
  font-size: clamp(24px, 7.4vw, 36px); font-weight: 900; line-height: 1.05; text-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.perfil-prog { grid-area: prog; align-self: start; min-width: 0; width: 100%; display: flex; flex-direction: column; gap: 6px; }
.perfil-prog .barra { width: 100%; height: 14px; background: rgba(255,255,255,.35); box-shadow: inset 0 1px 2px rgba(0,0,0,.08); }
.perfil-prog-txt { font-size: clamp(15px, 4.3vw, 19px); font-weight: 800; line-height: 1.2; }
.botao-pais { font-size: 18px; font-weight: 800; min-height: 52px; padding: 12px 22px; border-radius: 99px; background: rgba(255,255,255,.85); box-shadow: var(--sombra); color: var(--texto-suave); }
.botao-pais:active { transform: scale(.97); }
.botao-pais-rodape { margin-top: clamp(0px, 1vh, 8px); }

@media (min-width: 640px) {
  .perfis-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; }
  .perfil {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "avatar" "nome" "prog";
    justify-items: center; text-align: center; row-gap: 14px; padding: 30px 24px 26px;
  }
  .perfil-avatar { width: clamp(140px, 21vw, 200px); font-size: clamp(88px, 13vw, 120px); border-width: 6px; }
  .perfil-nome { align-self: auto; font-size: clamp(30px, 4.4vw, 42px); line-height: 1.1; }
  .perfil-prog { align-items: center; gap: 8px; }
  .perfil-prog .barra { width: 85%; }
  .perfil-prog-txt { font-size: 19px; }
}
/* Tablet em pé (tela alta): cartões maiores para aproveitar a altura. */
@media (min-width: 640px) and (min-height: 1000px) and (orientation: portrait) {
  .perfis { gap: 44px; }
  .perfis-topo h1 { font-size: clamp(52px, 8vw, 72px); }
  .perfis-data { font-size: clamp(20px, 3vw, 26px); }
  .perfis-pergunta { font-size: clamp(28px, 4vw, 36px); }
  .perfil { padding: 38px 24px 32px; row-gap: 18px; }
  .perfil-avatar { width: clamp(170px, 26vw, 240px); font-size: clamp(100px, 15vw, 140px); border-width: 7px; }
  .perfil-nome { font-size: clamp(34px, 5vw, 46px); }
  .perfil-prog-txt { font-size: 22px; }
  .perfil-prog .barra { height: 16px; }
  .botao-pais { font-size: 20px; min-height: 58px; padding: 14px 26px; }
}
/* Celular deitado / telas baixas: avatar menor para caber sem rolar muito. */
@media (min-width: 640px) and (max-height: 560px) {
  .perfis { gap: 16px; padding-top: 18px; }
  .perfis-topo h1 { font-size: 34px; }
  .perfil { padding: 18px; row-gap: 8px; }
  .perfil-avatar { width: 104px; font-size: 64px; border-width: 4px; }
  .perfil-nome { font-size: 28px; }
}
/* Telas muito estreitas (< 340px): cartão em pé. */
@media (max-width: 339px) {
  .perfil { grid-template-columns: minmax(0, 1fr); grid-template-areas: "avatar" "nome" "prog"; justify-items: center; text-align: center; }
  .perfil-prog { align-items: center; }
}

/* ================================================================== *
 * Tela da criança — topo
 * ================================================================== */
.topo {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 20px; padding-top: max(14px, env(safe-area-inset-top));
  background: linear-gradient(120deg, var(--cor), var(--cor2)); color: #fff;
  box-shadow: 0 6px 20px rgba(15,23,42,.18);
}
.botao-topo {
  flex: 0 0 auto; min-width: 84px; min-height: 76px; border-radius: 20px;
  background: rgba(255,255,255,.22); color: #fff; font-size: 26px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.botao-topo span { font-size: 15px; font-weight: 800; }
.botao-topo:active { background: rgba(255,255,255,.4); }
.topo-quem { flex: 1 1 auto; display: flex; align-items: center; gap: 16px; min-width: 0; }
.topo-avatar { overflow: hidden; font-size: 56px; width: 84px; height: 84px; flex: 0 0 84px; display: grid; place-items: center; background: rgba(255,255,255,.25); border-radius: 50%; border: 4px solid rgba(255,255,255,.7); }
.topo-textos { min-width: 0; }
.topo-linha { min-width: 0; }
.topo-textos h1 { font-size: 34px; font-weight: 900; line-height: 1.05; }
.topo-textos p { font-size: 17px; font-weight: 700; opacity: .95; }
.topo-textos p::first-letter { text-transform: uppercase; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.chip { font-size: 15px; font-weight: 800; background: rgba(255,255,255,.25); padding: 3px 12px; border-radius: 99px; white-space: nowrap; }
.topo-prog { flex: 0 1 280px; min-width: 190px; display: flex; flex-direction: column; gap: 6px; }
.topo-prog-txt { font-size: 22px; font-weight: 900; text-align: right; }
.barra-grande { height: 20px; background: rgba(255,255,255,.3); }

.faixa-exemplo { margin: 14px 20px 0; padding: 10px 16px; border-radius: 14px; background: #fef3c7; color: #92400e; font-weight: 800; font-size: 16px; text-align: center; border: 2px dashed #f59e0b; }

/* ================================================================== *
 * Conteúdo: períodos + lateral
 * ================================================================== */
.conteudo { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; padding: 18px 20px 40px; align-items: start; }
.periodos { column-count: 2; column-gap: 20px; }
.periodo {
  break-inside: avoid; -webkit-column-break-inside: avoid; display: inline-block; width: 100%;
  margin: 0 0 20px; background: var(--fundo-cartao); border-radius: var(--raio);
  box-shadow: var(--sombra); padding: 16px; border-top: 8px solid var(--pc);
}
.periodo.completo { background: linear-gradient(180deg, #f0fdf4, #fff 60%); border-top-color: var(--verde); }
.periodo-topo { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; }
.periodo-topo.alternar { min-height: 56px; border-radius: 14px; }
.periodo-seta { font-size: 18px; color: var(--texto-suave); width: 28px; text-align: center; }
.periodo.recolhido { padding-bottom: 12px; }
.periodo-resumo { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; font-size: 28px; }
.periodo-resumo-txt { font-size: 17px; font-weight: 900; color: var(--verde-escuro); background: #dcfce7; padding: 3px 12px; border-radius: 99px; margin-left: auto; }
.periodo-emoji { font-size: 34px; }
.periodo-topo h2 { font-size: 27px; font-weight: 900; flex: 1; min-width: 0; line-height: 1.1; }
.periodo-conta { font-size: 19px; font-weight: 900; color: var(--pc); background: color-mix(in srgb, var(--pc) 14%, #fff); padding: 4px 14px; border-radius: 99px; }
.periodo.completo .periodo-conta { color: var(--verde-escuro); background: #dcfce7; }
.barra-periodo { margin: 10px 0 12px; height: 12px; }
.barra-periodo > span { background: var(--pc); }
.periodo.completo .barra-periodo > span { background: linear-gradient(90deg, var(--verde), #84cc16); }

.itens { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

/* item comum */
.item {
  width: 100%; min-height: 74px; display: grid; grid-template-columns: 54px minmax(0, 1fr);
  grid-template-areas: "emoji nome" "emoji acoes"; column-gap: 14px; row-gap: 5px;
  padding: 10px 14px; border-radius: 18px; background: #f1f5f9; text-align: left;
  border: 3px solid transparent; transition: transform .12s ease, background .2s ease;
}
.item:active { transform: scale(.97); }
.item-emoji { grid-area: emoji; align-self: start; font-size: 38px; width: 54px; height: 54px; display: grid; place-items: center; background: #fff; border-radius: 16px; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.item-nome { grid-area: nome; min-width: 0; font-size: 23px; font-weight: 800; line-height: 1.15; }
.item-titulo { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; text-overflow: ellipsis; min-width: 0; overflow-wrap: normal; word-break: normal; hyphens: none; }
.item-nome small { font-size: 16px; font-weight: 700; color: var(--texto-suave); }
.item-nome .item-nota { display: block; margin-top: 3px; }
.item-acoes { grid-area: acoes; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.item-acoes .item-check { margin-left: auto; }
.item-aviso .selo-hora { grid-column: 2; grid-row: 2; justify-self: start; }
.item-aviso { background: #f0f9ff; border: 2px dashed #7dd3fc; }
.item-aviso-destaque { background: #fff7ed; border: 3px solid #f97316; box-shadow: 0 0 0 3px rgba(249,115,22,.16); color: #9a3412; }
.item-aviso-destaque .item-nome { font-weight: 900; }
.eletro .item-nome small { display: block; }
.item-check {
  flex: 0 0 50px; width: 50px; height: 50px; border-radius: 50%;
  border: 4px solid #cbd5e1; background: #fff; display: grid; place-items: center;
  font-size: 30px; font-weight: 900; color: #fff;
}
.item.feito { background: #dcfce7; }
.item.feito .item-nome { color: var(--verde-escuro); text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: rgba(21,128,61,.35); }
.item.feito .item-check { background: var(--verde); border-color: var(--verde); animation: pop .35s ease; }
.item.proximo:not(.feito) { border-color: var(--cor); background: color-mix(in srgb, var(--cor) 9%, #fff); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cor) 18%, transparent); }
.selo-hora { font-size: 16px; font-weight: 900; background: #e0e7ff; color: #3730a3; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.selo-agora { font-size: 15px; font-weight: 900; background: var(--cor); color: #fff; padding: 4px 10px; border-radius: 99px; white-space: nowrap; animation: pulsar 1.6s ease-in-out infinite; }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes pulsar { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* eletrônicos */
.eletro { border-radius: 20px; padding: 12px 14px 16px; border: 3px solid transparent; }
.eletro-cabeca { display: flex; align-items: center; gap: 14px; }
.eletro-status { font-size: 24px; font-weight: 900; margin: 12px 0 6px; text-align: center; }
.eletro-faltam { text-align: center; font-size: 20px; font-weight: 800; color: #475569; }
.chip-falta { display: inline-block; background: #fff; border: 3px dashed #94a3b8; color: #334155; padding: 3px 14px; border-radius: 99px; margin: 3px 2px; }
.eletro-bloqueado { background: repeating-linear-gradient(135deg, #f1f5f9 0 16px, #e2e8f0 16px 32px); }
.eletro-bloqueado .item-emoji { filter: grayscale(1); opacity: .7; }
.eletro-bloqueado .item-check { border-color: #94a3b8; background: #e2e8f0; font-size: 24px; }
.eletro-bloqueado .eletro-status { color: #475569; }
.eletro-liberado { background: linear-gradient(135deg, #ecfeff, #eef2ff); border-color: #6366f1; }
.eletro-liberado .eletro-status { color: #4338ca; }
.eletro-liberado.proximo { box-shadow: 0 0 0 4px rgba(99,102,241,.2); }
.botao-comecar {
  display: block; width: 100%; min-height: 76px; margin-top: 6px; border-radius: 18px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; font-size: 27px; font-weight: 900;
  box-shadow: 0 8px 18px rgba(99,102,241,.35); animation: brilhar 1.8s ease-in-out infinite;
}
@keyframes brilhar { 0%, 100% { box-shadow: 0 6px 14px rgba(99,102,241,.30); } 50% { box-shadow: 0 6px 26px 6px rgba(139,92,246,.55); } }
.eletro-rodando .item-check { border-color: #8b5cf6; background: #ede9fe; font-size: 24px; }
.periodo-completo-selo { font-size: 20px; }
.botao-comecar:active { transform: scale(.97); }
.eletro-rodando { background: linear-gradient(135deg, #eef2ff, #faf5ff); border-color: #8b5cf6; }
.eletro-cronometro { font-size: 62px; font-weight: 900; text-align: center; color: #5b21b6; font-variant-numeric: tabular-nums; margin-top: 6px; letter-spacing: 1px; }
.barra-eletro { height: 16px; }
.barra-eletro > span { background: linear-gradient(90deg, #8b5cf6, #ec4899); }
.eletro-dica { text-align: center; font-size: 18px; font-weight: 700; color: #475569; margin-top: 8px; }
.eletro-feito { background: #dcfce7; }
.eletro-feito .item-check { background: var(--verde); border-color: var(--verde); }
.eletro-feito .eletro-status { color: var(--verde-escuro); font-size: 20px; }

/* tarefa de casa */
.tarefa-bloco { display: flex; flex-direction: column; gap: 8px; }
.tarefa-sub { margin-left: 26px; padding: 4px 0 4px 16px; border-left: 4px dotted #cbd5e1; display: flex; flex-direction: column; gap: 6px; }
.sub-titulo { font-size: 17px; font-weight: 900; color: var(--texto-suave); margin-top: 4px; }
.sub-vazio { font-size: 17px; color: var(--texto-suave); font-weight: 700; background: #f8fafc; border-radius: 12px; padding: 10px 12px; }
.subitens { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.subitem-linha { position: relative; }
.subitem-linha .subitem { width: 100%; padding-right: 76px; }
.adiar-tarefa { position: absolute; z-index: 1; top: 6px; right: 6px; border: 2px solid #cbd5e1; border-radius: 10px; background: #f8fafc; color: #475569; padding: 4px 8px; font: inherit; font-size: 12px; font-weight: 900; line-height: 1.1; }
.adiar-tarefa:active { transform: scale(.96); background: #e2e8f0; }
.subitem { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 12px; min-height: 64px; border-radius: 14px; background: #fff7ed; border: 2px solid #fed7aa; }
.subitem.extra { background: #fefce8; border-color: #fde68a; }
.subitem:active { transform: scale(.98); }
.sub-check { flex: 0 0 38px; height: 38px; border-radius: 10px; border: 3px solid #cbd5e1; background: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 900; color: #fff; }
.subitem.feito { background: #dcfce7; border-color: #86efac; }
.subitem.feito .sub-check { background: var(--verde); border-color: var(--verde); animation: pop .35s ease; }
.sub-textos { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sub-linha1 { font-size: 18px; font-weight: 800; line-height: 1.2; }
.subitem.feito .sub-linha1 { text-decoration: line-through; color: var(--verde-escuro); }
.materia { display: inline-block; font-size: 14px; font-weight: 900; background: #fb923c; color: #fff; padding: 1px 9px; border-radius: 99px; vertical-align: 2px; }
.sub-desc { font-size: 15px; color: var(--texto-suave); font-weight: 600; }
.sub-entrega { font-size: 14px; font-weight: 800; color: #9a3412; }
.sub-hora { font-size: 14px; font-weight: 800; color: #2563eb; }
.sub-min { font-size: 15px; font-weight: 900; color: #854d0e; background: #fef08a; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }

/* lateral: provas */
.lateral { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 20px; }
.cartao-provas { background: #fff; border-radius: var(--raio); box-shadow: var(--sombra); padding: 16px; border-top: 8px solid #f43f5e; }
.cartao-provas h2 { font-size: 24px; font-weight: 900; margin-bottom: 12px; }
.provas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.prova { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: #f8fafc; }
.prova-dias { flex: 0 0 74px; height: 74px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; line-height: 1; text-align: center; }
.prova-dias b { font-size: 30px; font-weight: 900; }
.prova-dias small { font-size: 14px; font-weight: 800; margin-top: 2px; }
.prova.urgente .prova-dias { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.prova.urgente .prova-dias b { font-size: 21px; }
.prova.urgente .prova-dias small + b, .prova.urgente .prova-dias b:only-child { font-size: 20px; }
.prova.perto .prova-dias { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.prova.longe .prova-dias { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.prova-textos { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prova-materia { font-size: 20px; font-weight: 900; }
.prova-data { font-size: 15px; font-weight: 800; color: var(--texto-suave); }
.prova-conteudo { font-size: 15px; font-weight: 600; color: #475569; }
.vazio, .aviso-erro { font-size: 18px; font-weight: 700; color: var(--texto-suave); }
.aviso-erro { color: #b91c1c; }

/* ================================================================== *
 * Toast, celebração, modais
 * ================================================================== */
#toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 200%); opacity: 0; visibility: hidden; pointer-events: none;
  background: #1e293b; color: #fff; font-size: 20px; font-weight: 800; padding: 16px 26px;
  border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 100;
  transition: transform .3s ease; max-width: 90vw; text-align: center;
}
#toast.visivel { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
#toast { transition: transform .3s ease, opacity .3s ease, visibility .3s; }

.celebracao { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(15,23,42,.35); animation: aparecer .25s ease; }
.celebracao-caixa { position: relative; z-index: 2; background: #fff; border-radius: 32px; padding: 30px 40px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.3); animation: pulo .5s cubic-bezier(.2,1.6,.4,1); max-width: 90vw; }
.celebracao-emoji { font-size: 110px; line-height: 1.1; animation: girar 1.2s ease; }
.celebracao h2 { font-size: 38px; font-weight: 900; margin-top: 8px; }
.celebracao p { font-size: 22px; font-weight: 700; color: var(--texto-suave); margin: 6px 0 18px; }
.celebracao.grande .celebracao-emoji { font-size: 150px; }
.confete { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confete i { position: absolute; top: -20px; width: 14px; height: 22px; border-radius: 3px; animation-name: cair; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes cair { to { top: 110%; transform: rotate(720deg) translateX(40px); } }
@keyframes aparecer { from { opacity: 0; } }
@keyframes pulo { from { transform: scale(.3); opacity: 0; } }
@keyframes girar { from { transform: rotate(-30deg) scale(.5); } to { transform: none; } }

.botao-grande { min-height: 68px; padding: 0 32px; border-radius: 18px; background: linear-gradient(135deg, var(--cor), var(--cor2)); color: #fff; font-size: 24px; font-weight: 900; box-shadow: 0 8px 18px rgba(0,0,0,.15); }
.botao-grande.secundario { background: #e2e8f0; color: var(--texto); box-shadow: none; }
.botao-grande:active { transform: scale(.97); }

.modal-fundo { position: fixed; inset: 0; z-index: 80; background: rgba(15,23,42,.5); display: grid; place-items: center; padding: 20px; animation: aparecer .2s ease; }
.modal { background: #fff; border-radius: 28px; padding: 26px; box-shadow: 0 20px 50px rgba(0,0,0,.3); max-height: calc(100vh - 40px); overflow: auto; }
.modal h2 { font-size: 30px; font-weight: 900; text-align: center; }
.modal-texto { font-size: 21px; font-weight: 700; color: var(--texto-suave); text-align: center; margin: 10px 0 20px; }
.modal-botoes { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.modal-confirmar { max-width: min(520px, calc(100vw - 40px)); }

.modal-pin { width: min(380px, calc(100vw - 40px)); }
.pin-pontos { display: flex; justify-content: center; gap: 18px; margin: 6px 0; }
.pin-pontos span { width: 24px; height: 24px; border-radius: 50%; border: 3px solid #94a3b8; }
.pin-pontos span.cheio { background: var(--texto); border-color: var(--texto); }
.pin-erro { min-height: 26px; text-align: center; color: #dc2626; font-weight: 800; font-size: 18px; }
.teclado { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.tecla { height: 76px; border-radius: 18px; background: #f1f5f9; font-size: 32px; font-weight: 900; }
.tecla:active { background: #cbd5e1; }
.tecla-acao { font-size: 26px; background: #e2e8f0; }
.tremer { animation: tremer .4s ease; }
@keyframes tremer { 20%, 60% { transform: translateX(-12px); } 40%, 80% { transform: translateX(12px); } }

.modal-painel { width: min(1000px, calc(100vw - 40px)); text-align: left; }
.painel-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.painel-topo h2 { text-align: left; }
.abas { display: flex; gap: 10px; margin: 14px 0 8px; flex-wrap: wrap; }
.aba { font-size: 20px; font-weight: 800; padding: 12px 20px; border-radius: 99px; background: #f1f5f9; }
.aba.ativa { background: #1e293b; color: #fff; }
.painel-info { font-size: 16px; color: var(--texto-suave); font-weight: 700; margin: 6px 0; }
.painel-nota { font-size: 15px; color: var(--texto-suave); margin-top: 14px; font-style: italic; }
.painel-credito { font-size: 12px; color: var(--texto-suave); margin-top: 8px; overflow-wrap: anywhere; }
.painel-colunas { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; margin-top: 8px; }
.painel-secao h3 { font-size: 20px; font-weight: 900; margin: 14px 0 8px; }
.painel-periodo h4 { font-size: 17px; font-weight: 900; margin: 10px 0 4px; color: var(--texto-suave); }
.painel-linha { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; min-height: 54px; border-radius: 12px; font-size: 18px; font-weight: 700; text-align: left; }
.painel-linha:nth-child(even) { background: #f8fafc; }
.painel-linha.sub { padding-left: 28px; font-size: 16px; color: #475569; }
.interruptor { flex: 0 0 58px; height: 32px; border-radius: 99px; background: #cbd5e1; position: relative; transition: background .2s; }
.interruptor::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.interruptor.ligado { background: var(--verde); }
.interruptor.ligado::after { left: 29px; }
.botao-pequeno { font-size: 17px; font-weight: 800; padding: 10px 16px; min-height: 48px; border-radius: 12px; background: #e2e8f0; white-space: nowrap; }
.botao-perigo { margin-top: 16px; width: 100%; min-height: 58px; border-radius: 14px; background: #fee2e2; color: #b91c1c; font-size: 20px; font-weight: 900; }
.segmentado { display: flex; flex-direction: column; gap: 8px; }
.segmentado button { min-height: 52px; border-radius: 12px; background: #f1f5f9; font-size: 18px; font-weight: 800; text-align: left; padding: 0 16px; border: 3px solid transparent; }
.segmentado button.ativo { border-color: #1e293b; background: #fff; }
.pin-form { display: flex; gap: 8px; flex-wrap: wrap; }
.pin-form input::placeholder { letter-spacing: 0; font-size: 16px; }
.pin-form input { width: 140px; min-height: 48px; font: inherit; font-size: 20px; font-weight: 800; padding: 0 12px; border-radius: 12px; border: 2px solid #cbd5e1; letter-spacing: 4px; }


/* ================================================================== *
 * Calendário
 * ================================================================== */
input, textarea { user-select: text; -webkit-user-select: text; }
.cal-topo { gap: 14px; }
.cal-titulo { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 14px; }
.cal-titulo .topo-avatar { width: 64px; height: 64px; flex-basis: 64px; font-size: 40px; border-width: 3px; }
.cal-titulo h1 { font-size: clamp(22px, 4.5vw, 32px); font-weight: 900; line-height: 1.1; min-width: 0; overflow-wrap: break-word; }
.cal { max-width: 1100px; margin: 0 auto; padding: 16px clamp(8px, 2.5vw, 24px) 40px; }
.cal-abas { justify-content: center; margin: 0 0 12px; }
.cal-nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.cal-nav h2 { font-size: clamp(22px, 5.5vw, 32px); font-weight: 900; text-align: center; min-width: 0; }
.cal-seta { width: 52px; height: 52px; border-radius: 16px; background: #fff; box-shadow: var(--sombra); font-size: 34px; font-weight: 900; line-height: 1; color: var(--cor); }
.cal-seta:active, .cal-hoje:active { transform: scale(.94); }
.cal-hoje { min-height: 44px; padding: 0 18px; border-radius: 99px; background: linear-gradient(135deg, var(--cor), var(--cor2)); color: #fff; font-weight: 900; font-size: 17px; }
.cal-grade {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(3px, 1vw, 10px);
  background: #fff; border-radius: var(--raio); padding: clamp(6px, 1.5vw, 16px); box-shadow: var(--sombra);
}
.cal-sem { text-align: center; font-weight: 900; font-size: clamp(12px, 3.2vw, 16px); color: var(--texto-suave); padding: 4px 0; }
.cal-sem.fds { color: #db2777; }
.cal-cel {
  min-width: 0; min-height: clamp(64px, 12vw, 118px); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px;
  padding: clamp(4px, 1vw, 8px) 2px; border-radius: clamp(10px, 2vw, 16px);
  background: #f8fafc; border: 2px solid transparent; transition: transform .12s ease;
}
.cal-cel.fds { background: #fdf2f8; }
.cal-cel.vazio { background: transparent; }
.cal-cel.hoje { border-color: var(--cor); background: color-mix(in srgb, var(--cor) 10%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cor) 18%, transparent); }
.cal-cel:not(.vazio):active { transform: scale(.94); }
.cal-cel-topo { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cal-num { font-size: clamp(14px, 3.6vw, 20px); font-weight: 900; line-height: 1.4; }
.cal-cel.passado .cal-num { color: #64748b; }
.cal-cel.hoje .cal-num, .cal-cel.hoje .cal-num-anel b { color: var(--cor); }
.cal-num-anel { position: relative; width: clamp(28px, 7.4vw, 42px); aspect-ratio: 1; display: grid; place-items: center; }
.cal-num-anel .anel { position: absolute; inset: 0; width: 100%; height: 100%; }
.cal-num-anel b { position: relative; font-size: clamp(13px, 3.4vw, 18px); font-weight: 900; }
.anel {
  display: inline-block; width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto; vertical-align: middle;
  background: conic-gradient(var(--ac, var(--verde)) calc(var(--p) * 1%), rgba(15, 23, 42, .12) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
}
.anel-completo { --p: 100; }
.anel-mini { width: 14px; height: 14px; -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); }
.cal-aneis { display: flex; gap: 3px; }
@media (min-width: 601px) { .cal-aneis .anel-mini { width: 18px; height: 18px; } }
.painel-agenda { margin: 4px 0 6px; padding: 12px 14px; border-radius: 18px; background: #f0f9ff; border: 2px solid #bae6fd; }
.painel-agenda h3 { margin-top: 0; }
.cal-icones { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1px 2px; font-size: clamp(13px, 3.4vw, 21px); line-height: 1.15; }
.mais { font-size: 11px; font-weight: 900; color: var(--texto-suave); background: #e2e8f0; border-radius: 99px; padding: 0 4px; line-height: 1.4; }
.mais-estreito { display: none; }
.cal-icones .ic:nth-child(n+5) { display: none; }
.cal-dica { text-align: center; font-size: 15px; font-weight: 700; color: var(--texto-suave); margin: 12px 0 4px; }
.cal-legenda { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 14px; font-weight: 700; color: var(--texto-suave); margin-top: 8px; }
.cal-legenda span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.cal-legenda .anel { width: 18px; height: 18px; }
.cal-legenda .anel-mini { width: 14px; height: 14px; }
.cal-lista { margin-top: 18px; background: #fff; border-radius: var(--raio); box-shadow: var(--sombra); padding: 16px; }
.cal-lista h3 { font-size: 21px; font-weight: 900; margin-bottom: 10px; }
.cal-lista ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cal-lista button { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 10px; min-height: 52px; border-radius: 12px; background: #f8fafc; }
.cal-lista button:active { background: #e2e8f0; }
.cal-lista-alerta { background: #fff7ed; border: 2px solid #f97316; border-radius: 12px; }
.cal-lista-alerta .cal-lista-txt { color: #9a3412; font-weight: 900; }
.cal-lista-data { flex: 0 0 auto; font-size: 14px; font-weight: 900; color: var(--cor); background: color-mix(in srgb, var(--cor) 12%, #fff); padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.cal-lista-emoji { font-size: 22px; flex: 0 0 auto; }
.cal-lista-txt { flex: 1; min-width: 0; font-size: 16px; font-weight: 800; line-height: 1.25; }
.cal-lista-txt small { font-weight: 700; color: var(--texto-suave); }
.cal-nota { text-align: center; font-size: 14px; color: var(--texto-suave); font-style: italic; margin-top: 16px; }

/* detalhe do dia */
.modal-dia { width: min(760px, calc(100vw - 40px)); text-align: left; }
.dia-topo { align-items: flex-start; }
.dia-topo h2 { font-size: clamp(22px, 5vw, 28px); text-align: left; line-height: 1.15; }
.dia-rel { font-size: 16px; font-weight: 800; color: var(--texto-suave); margin-top: 2px; }
.dia-aviso { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #fef3c7; color: #92400e; font-weight: 700; font-size: 15px; }
.dia-crianca { margin-top: 14px; border-radius: 20px; background: #f8fafc; padding: 14px; border-left: 6px solid var(--cor); }
.dia-crianca-topo { display: flex; align-items: center; gap: 12px; }
.dia-avatar { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 32px; border: 3px solid var(--cor); background: #fff; }
.dia-crianca-txt { flex: 1; min-width: 0; }
.dia-crianca-txt h3 { font-size: 22px; font-weight: 900; }
.dia-crianca-txt p { font-size: 15px; font-weight: 700; color: #475569; }
.dia-crianca-txt .barra { height: 10px; margin-top: 6px; }
.dia-crianca h4 { font-size: 17px; font-weight: 900; margin: 14px 0 6px; }
.dia-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dia-linha { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 8px 10px; }
.dia-linha.compacta { padding: 5px 10px; }
.dia-linha-alerta { background: #fff7ed; border: 2px solid #f97316; color: #9a3412; }
.dia-emoji { flex: 0 0 28px; font-size: 22px; text-align: center; }
.dia-txt { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; line-height: 1.25; overflow-wrap: break-word; }
.dia-txt b { font-weight: 800; }
.dia-txt small { display: block; font-size: 14px; font-weight: 600; color: var(--texto-suave); margin-top: 2px; }
.dia-entrega { color: #9a3412 !important; font-weight: 800 !important; }
.dia-ok { flex: 0 0 auto; font-size: 14px; font-weight: 900; color: var(--verde-escuro); white-space: nowrap; }
.dia-nao { flex: 0 0 auto; font-size: 14px; font-weight: 800; color: #94a3b8; white-space: nowrap; }
.dia-origem { display: inline-block; font-size: 12px; font-weight: 800; background: #e2e8f0; color: #475569; border-radius: 99px; padding: 1px 8px; margin-top: 3px; }
.dia-origem.local { background: #fef3c7; color: #92400e; }
.dia-apagar { min-height: 40px; padding: 6px 10px; }
.dia-rotina summary { font-size: 17px; font-weight: 900; margin-top: 14px; min-height: 40px; display: flex; align-items: center; cursor: pointer; }
.dia-periodo h5 { font-size: 15px; font-weight: 900; color: var(--texto-suave); margin: 10px 0 4px; }
.dia-p { font-size: 16px; font-weight: 700; }
.dia-p.suave { color: var(--texto-suave); margin-top: 10px; font-style: italic; }
.dia-programar { width: 100%; margin-top: 16px; }

/* formulário de atividade + agenda na Área dos pais */
.modal-painel.modal-form { width: min(560px, calc(100vw - 40px)); }
.form-ativ label, .form-rotulo { display: flex; flex-direction: column; gap: 6px; font-size: 17px; font-weight: 800; margin-top: 14px; }
.form-ativ input[type=date], .form-ativ input[type=time], .form-ativ input[type=text], .form-ativ textarea {
  min-height: 48px; font: inherit; font-size: 18px; font-weight: 700; padding: 0 12px; border-radius: 12px; border: 2px solid #cbd5e1; background: #fff; color: var(--texto); width: 100%;
}
.form-ativ textarea { padding: 10px 12px; resize: vertical; }
.form-ativ .abas { margin: 0; }
.form-emojis { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
.form-emojis button { height: 50px; font-size: 26px; border-radius: 12px; background: #f1f5f9; border: 3px solid transparent; }
.form-emojis button.ativo { border-color: #1e293b; background: #fff; }
.form-ativ .form-check { flex-direction: row; align-items: center; gap: 10px; font-size: 16px; }
.form-check input { width: 26px; height: 26px; flex: 0 0 26px; accent-color: var(--verde); }
.form-ativ .modal-botoes { margin-top: 16px; }
.painel-botoes { display: flex; gap: 8px; flex-wrap: wrap; }
.agenda-lista { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow: auto; }
.agenda-lista li { display: flex; align-items: center; gap: 10px; background: #f8fafc; border-radius: 12px; padding: 8px 10px; }
.agenda-emoji { font-size: 24px; flex: 0 0 auto; }
.agenda-txt { flex: 1; min-width: 0; font-size: 16px; overflow-wrap: break-word; }
.agenda-txt small { display: block; font-size: 14px; font-weight: 700; color: var(--texto-suave); }

/* ================================================================== *
 * Responsivo (retrato / telas menores)
 * ================================================================== */
@media (max-width: 1050px) {
  .conteudo { grid-template-columns: minmax(0, 1fr); }
  .lateral { position: static; order: -1; }
  .provas { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .prova { flex: 0 0 min(280px, 85%); }
}
@media (max-width: 900px) {
  .topo { flex-wrap: wrap; gap: 12px; }
  .topo-quem { order: 1; flex: 1 1 calc(100% - 210px); }
  .botao-topo:first-child { order: 0; }
  .botao-topo:last-child, .botao-cal { order: 2; }
  .topo-quem { flex-basis: calc(100% - 306px); }
  .topo-prog { order: 3; flex: 1 1 100%; flex-direction: row; align-items: center; gap: 12px; }
  .topo-prog .barra { flex: 1; }
  .topo-prog-txt { font-size: 20px; }
  .periodos { column-count: 1; }
  .painel-colunas { grid-template-columns: 1fr; }
}
/* Celulares (até 600px): topo compacto, cartões e itens sem estourar a largura. */
@media (max-width: 600px) {
  .topo {
    display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto;
    grid-template-areas: "voltar avatar nome pais" "linha linha linha linha" "prog prog prog prog";
    align-items: center; gap: 8px 10px; padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top));
  }
  .topo-quem, .topo-textos { display: contents; }
  .botao-topo { min-width: 58px; min-height: 58px; padding: 4px; border-radius: 16px; font-size: 22px; }
  .botao-topo span { font-size: 12px; }
  .botao-topo:first-child { grid-area: voltar; }
  .botao-topo:last-child { grid-area: pais; }
  .topo-avatar { grid-area: avatar; width: 56px; height: 56px; flex-basis: 56px; font-size: 34px; border-width: 3px; }
  .topo-textos h1 { grid-area: nome; min-width: 0; font-size: clamp(21px, 6.4vw, 28px); line-height: 1.1; overflow-wrap: break-word; }
  .topo-linha { grid-area: linha; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .topo-textos p { font-size: 15px; line-height: 1.25; }
  .chips { margin-top: 0; gap: 6px; }
  .chip { font-size: 13px; padding: 2px 10px; }
  .topo-prog { grid-area: prog; min-width: 0; flex-direction: row; align-items: center; gap: 10px; }
  .topo-prog-txt { font-size: 18px; white-space: nowrap; }
  .barra-grande { height: 16px; }

  .faixa-exemplo { margin: 10px 10px 0; font-size: 14px; }
  .conteudo { padding: 12px 10px 32px; gap: 14px; }
  .lateral { gap: 14px; }
  .cartao-provas { padding: 14px 12px; }
  .cartao-provas h2 { font-size: 21px; }
  .periodo { padding: 14px 12px; margin-bottom: 14px; }
  .periodo-emoji { font-size: 28px; }
  .periodo-topo h2 { font-size: 23px; }
  .periodo-conta { font-size: 17px; padding: 3px 12px; }
  .periodo-resumo { font-size: 24px; }
  .periodo-resumo-txt { font-size: 15px; }
  .barra-periodo { margin: 8px 0 18px; }
  .itens { gap: 16px; }
  .item { grid-template-columns: 46px minmax(0, 1fr); column-gap: 10px; row-gap: 4px; padding: 8px 10px; min-height: 68px; }
  .item-emoji { font-size: 30px; width: 46px; height: 46px; border-radius: 14px; }
  .item-nome { font-size: 20px; }
  .item-nome small { font-size: 14px; }
  .item-acoes { gap: 4px; }
  .selo-agora, .selo-hora { font-size: 13px; padding: 2px 9px; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
  .item-check { width: 44px; height: 44px; font-size: 26px; }
  .eletro { padding: 10px 10px 14px; }
  .eletro-cabeca { gap: 10px; }
  .eletro-status { font-size: 21px; }
  .eletro-faltam { font-size: 17px; }
  .eletro-cronometro { font-size: 52px; }
  .eletro-dica { font-size: 16px; }
  .botao-comecar { font-size: 22px; min-height: 68px; }
  .tarefa-sub { margin-left: 6px; padding-left: 10px; }
  .subitens { gap: 14px; }
  .subitem { position: relative; gap: 10px; padding: 10px; }
  .subitem-linha .subitem { padding-right: 68px; }
  .adiar-tarefa { padding: 4px 7px; }
  .sub-check { flex: 0 0 34px; height: 34px; }
  .sub-linha1 { font-size: 17px; }
  .sub-min { position: absolute; top: -11px; right: 10px; font-size: 13px; }
  .prova-dias { flex-basis: 64px; height: 64px; }

  #toast { font-size: 17px; padding: 12px 18px; }
  .celebracao-caixa { padding: 24px 20px; }
  .celebracao-emoji { font-size: 90px; }
  .celebracao.grande .celebracao-emoji { font-size: 120px; }
  .celebracao h2 { font-size: 30px; }
  .celebracao p { font-size: 19px; }
  .botao-grande { font-size: 21px; padding: 0 24px; min-height: 60px; }

  .modal-fundo { padding: 10px; }
  .modal { padding: 18px 16px; border-radius: 22px; max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
  .modal h2 { font-size: 24px; }
  .modal-texto { font-size: 18px; }
  .modal-confirmar { max-width: calc(100vw - 20px); }
  .modal-pin { width: min(380px, calc(100vw - 20px)); }
  .tecla { height: 64px; }
  .modal-painel { width: calc(100vw - 20px); }
  .abas { gap: 8px; }
  .aba { font-size: 17px; padding: 10px 16px; }
  .painel-secao h3 { font-size: 18px; }
  .painel-linha { font-size: 17px; padding: 8px 10px; }
  .painel-linha.sub { padding-left: 20px; font-size: 15px; }
  .botao-pequeno { font-size: 15px; padding: 8px 12px; }
  .segmentado button { font-size: 16px; }
  /* calendário no celular: ícones viram 2 + contador */
  .botao-cal { grid-area: cal; min-height: 48px; }
  .topo { grid-template-areas: "voltar avatar nome pais" "linha linha linha linha" "prog prog prog cal"; }
  .cal-topo { display: flex; flex-wrap: nowrap; gap: 10px; }
  .cal-abas .aba { font-size: 16px; padding: 9px 14px; }
  .cal-titulo .topo-avatar { width: 48px; height: 48px; flex-basis: 48px; font-size: 30px; }
  .cal-cel { gap: 2px; }
  .cal-icones .ic:nth-child(n+3) { display: none; }
  .mais-estreito { display: inline; }
  .mais-largo { display: none; }
  .cal-legenda { font-size: 13px; gap: 4px 10px; }
  .cal-lista { padding: 12px 10px; }
  .cal-lista-txt { font-size: 15px; }
  .modal-dia { width: calc(100vw - 20px); }
  .dia-crianca { padding: 10px; border-left-width: 5px; }
  .dia-linha { padding: 7px 8px; gap: 8px; }
  .dia-txt { font-size: 15px; }
  .modal-painel.modal-form { width: calc(100vw - 20px); }
  .form-emojis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* ================================================================== *
 * Fase 2: acesso, tempo de telas com aprovação, avisos, registro
 * ================================================================== */
/* 1º acesso / entrar */
.tela-acesso { background: linear-gradient(160deg, #fff7ed, #fdf2f8); }
.acesso { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
.acesso-caixa { width: min(460px, 100%); background: #fff; border-radius: 28px; padding: 28px 24px; box-shadow: var(--sombra); text-align: center; }
.acesso-emoji { font-size: 56px; line-height: 1; }
.acesso h1 { font-size: clamp(26px, 7vw, 34px); font-weight: 900; margin: 8px 0 6px; }
.acesso-texto { font-size: 17px; color: var(--texto-suave); font-weight: 700; line-height: 1.35; }
.acesso-form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; text-align: left; }
.acesso-form label { display: flex; flex-direction: column; gap: 6px; font-size: 16px; font-weight: 800; }
.acesso-form label small { font-weight: 700; color: var(--texto-suave); }
.acesso-form input, .senha-form input, .senha-troca input, .telas-nota {
  min-height: 52px; font: inherit; font-size: 19px; font-weight: 700; padding: 0 14px; border-radius: 14px; border: 2px solid #cbd5e1; background: #fff; width: 100%;
}
.acesso-form input:focus, .senha-form input:focus, .senha-troca input:focus, .telas-nota:focus { outline: none; border-color: #f97316; box-shadow: 0 0 0 3px rgba(249,115,22,.2); }
.acesso-form .botao-grande { --cor: #f97316; --cor2: #ec4899; margin-top: 4px; }
.acesso-erro { min-height: 22px; color: #dc2626; font-weight: 800; font-size: 16px; text-align: center; }
.acesso-nota { font-size: 14px; color: var(--texto-suave); margin-top: 14px; }
.modal-senha { width: min(440px, calc(100vw - 40px)); }
.senha-form { display: flex; flex-direction: column; gap: 6px; }
.senha-form .botao-grande, .modal-senha .botao-grande { --cor: #334155; --cor2: #0f172a; }
.aviso-offline { background: #fef3c7; color: #92400e; font-weight: 800; border-radius: 14px; padding: 10px 14px; font-size: 15px; text-align: center; }

/* Cartões da tela inicial: contagem do tempo de telas */
.perfil-tranca { font-size: .55em; margin-left: 6px; vertical-align: middle; opacity: .9; }
.perfil-telas { display: block; margin-top: 4px; font-size: clamp(15px, 4.2vw, 19px); font-weight: 900; line-height: 1.2;
  background: rgba(255,255,255,.22); border-radius: 14px; padding: 8px 10px; }
.perfil-telas.ativo { background: rgba(15,23,42,.28); }
.perfil-telas-txt { display: block; font-size: clamp(20px, 6vw, 28px); font-variant-numeric: tabular-nums; white-space: nowrap; }
.perfil-telas-txt small { font-size: .6em; font-weight: 800; opacity: .9; }
.perfil-telas .barra-telas { display: block; margin-top: 6px; height: 12px; background: rgba(255,255,255,.3); }
.perfil-telas .barra-telas > span { background: #fff; }
.perfil-telas.pausado { background: rgba(15,23,42,.18); }
.perfil-telas.espera { animation: pulsar-suave 2s ease-in-out infinite; }
.perfil.com-telas { box-shadow: 0 0 0 5px rgba(255,255,255,.9), 0 14px 30px color-mix(in srgb, var(--cor) 45%, transparent); }
@keyframes pulsar-suave { 50% { background: rgba(255,255,255,.4); } }
@media (min-width: 640px) { .perfil-telas { width: 85%; text-align: center; } }

/* Eletrônicos: novos estados */
.botao-telas { display: block; width: 100%; min-height: 60px; margin-top: 10px; border-radius: 16px; background: #fff; border: 3px solid #8b5cf6; color: #5b21b6; font-size: 22px; font-weight: 900; }
.botao-telas:active { transform: scale(.97); }
.eletro-pausado { background: repeating-linear-gradient(135deg, #f5f3ff 0 16px, #ede9fe 16px 32px); }
.eletro-pausado .eletro-cronometro { color: #7c3aed; opacity: .75; }
.eletro-aguardando { background: linear-gradient(135deg, #fffbeb, #fef3c7); border-color: #f59e0b; }
.eletro-aguardando .eletro-status { color: #b45309; }
.eletro-aguardando .item-check { border-color: #f59e0b; background: #fef3c7; font-size: 24px; animation: pulsar-suave 2s ease-in-out infinite; }
.eletro-recusado { background: #fff1f2; border-color: #fb7185; }
.eletro-recusado .eletro-status { color: #be123c; }
.eletro-recusado .item-check { border-color: #fb7185; background: #ffe4e6; font-size: 24px; }
.chip-botao { border: 0; color: inherit; font: inherit; font-weight: 800; cursor: pointer; background: rgba(255,255,255,.35); }

/* PIN da criança */
.pin-avatar { display: flex; justify-content: center; }
.pin-foto { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; font-size: 50px; overflow: hidden; border: 4px solid var(--cor, #cbd5e1); }
.pin-crianca h2 { color: var(--cor, inherit); margin-top: 6px; }

/* Área dos pais: tempo de telas */
.painel-telas { margin-top: 12px; }
.painel-telas h3, .painel-avisos h3 { font-size: 20px; font-weight: 900; margin: 6px 0 8px; }
.telas-cartoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-bottom: 8px; }
.telas-cartao { border-radius: 18px; padding: 12px; background: #f8fafc; border: 3px solid color-mix(in srgb, var(--cor) 35%, #fff); display: flex; flex-direction: column; gap: 10px; }
.telas-cartao.pedido { background: #fffbeb; border-color: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.18); }
.telas-quem { display: flex; align-items: center; gap: 10px; }
.telas-avatar { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; overflow: hidden; background: color-mix(in srgb, var(--cor) 25%, #fff); }
.telas-info { display: flex; flex-direction: column; min-width: 0; font-size: 16px; font-weight: 700; color: #334155; line-height: 1.3; }
.telas-info > b { font-size: 19px; color: var(--texto); }
.telas-botoes { display: flex; flex-wrap: wrap; gap: 8px; }
.telas-botoes .botao-pequeno { flex: 1 1 auto; }
.telas-nota { min-height: 48px; font-size: 16px; flex: 1 1 100%; }
.botao-pequeno.botao-ok { background: #16a34a; color: #fff; }
.botao-pequeno.botao-nao { background: #fee2e2; color: #b91c1c; }
.botao-pequeno:disabled { opacity: .5; }
.painel-avisos { margin-top: 12px; background: #fffbeb; border: 2px solid #fcd34d; border-radius: 16px; padding: 10px 12px; }
.painel-botoes { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.link-discreto { background: none; border: 0; padding: 0; font: inherit; color: #0369a1; text-decoration: underline; cursor: pointer; font-style: normal; }
.botao-push { --cor: #f97316; --cor2: #ec4899; width: 100%; font-size: 20px; min-height: 60px; }
.pin-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f1f5f9; }
.pin-quem { font-size: 17px; font-weight: 800; }
.senha-troca { display: flex; flex-direction: column; gap: 8px; }
.senha-troca .botao-pequeno { align-self: flex-start; }

/* Registro */
.log-lista { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.log-linha { display: flex; gap: 10px; align-items: baseline; font-size: 15px; font-weight: 700; padding: 5px 8px; border-radius: 10px; line-height: 1.3; }
.log-linha:nth-child(odd) { background: #f8fafc; }
.log-linha.alerta { background: #fef3c7; }
.log-linha.desmarcou .log-txt { color: #b45309; }
.log-hora { flex: 0 0 auto; color: var(--texto-suave); font-variant-numeric: tabular-nums; font-size: 14px; }
.log-txt { min-width: 0; overflow-wrap: anywhere; }
.modal-log { max-width: 720px; }

/* Faixa de avisos (aparelhos dos pais) */
.banner-avisos { position: fixed; top: max(10px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 90;
  width: min(640px, calc(100vw - 20px)); display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 16px;
  background: #1e293b; color: #fff; border-radius: 18px; box-shadow: 0 12px 30px rgba(0,0,0,.3); animation: aparecer .25s ease; }
.banner-txt { flex: 1; font-size: 16px; font-weight: 800; line-height: 1.3; }
.banner-txt small { font-weight: 700; opacity: .75; }
.banner-avisos button { min-height: 44px; border-radius: 12px; font-weight: 900; font-size: 16px; padding: 0 14px; }
.banner-ver { background: #f97316; color: #fff; }
.banner-ok { background: rgba(255,255,255,.15); color: #fff; }

@media (max-width: 600px) {
  .telas-cartoes { grid-template-columns: minmax(0, 1fr); }
  .telas-info { font-size: 15px; }
  .perfil-telas { padding: 6px 8px; }
  .botao-telas { font-size: 19px; min-height: 54px; }
  .log-linha { font-size: 14px; }
}

/* ---------- Tela vermelha "DESLIGAR A TV" (fim do tempo de eletrônicos) ---------- */
.aviso-fim { position: fixed; inset: 0; z-index: 1000; background: #dc2626; color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3vh; text-align: center; padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  overflow: auto; user-select: none; -webkit-user-select: none; touch-action: manipulation; animation: aparecer .2s ease; }
.aviso-fim-caixa { display: flex; flex-direction: column; align-items: center; gap: 1.5vh; }
.aviso-fim-emoji { font-size: clamp(60px, 14vmin, 150px); line-height: 1; animation: aviso-fim-pulso 1.2s ease-in-out infinite; }
.aviso-fim h1 { font-size: clamp(48px, 13vmin, 170px); font-weight: 900; line-height: .95; letter-spacing: .02em; text-shadow: 0 6px 0 rgba(0,0,0,.18); }
.aviso-fim-nomes { font-size: clamp(30px, 7vmin, 90px); font-weight: 900; line-height: 1.1; }
.aviso-fim-sub { font-size: clamp(18px, 3.4vmin, 36px); font-weight: 800; opacity: .92; }
.aviso-fim-pais { min-height: 64px; display: flex; flex-direction: column; align-items: center; }
.aviso-fim-botao { background: rgba(255,255,255,.16); color: #fff; border: 2px solid rgba(255,255,255,.55); border-radius: 14px; font-weight: 800; font-size: 17px; padding: 10px 18px; min-height: 48px; }
.aviso-fim-form { background: #fff; color: #1e293b; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; width: min(360px, 90vw); text-align: left; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.aviso-fim-form[hidden], .aviso-fim-botao[hidden] { display: none; }
.aviso-fim-form label { font-weight: 800; font-size: 16px; }
.aviso-fim-form input { font-size: 22px; padding: 10px 12px; border: 2px solid #cbd5e1; border-radius: 12px; width: 100%; }
.aviso-fim-form-botoes { display: flex; gap: 10px; }
.aviso-fim-form-botoes button { flex: 1; min-height: 48px; border-radius: 12px; font-weight: 900; font-size: 16px; background: #e2e8f0; color: #1e293b; }
.aviso-fim-form-botoes button[type="submit"] { background: #dc2626; color: #fff; }
.aviso-fim-erro { color: #b91c1c; font-weight: 800; min-height: 1.2em; }
@keyframes aviso-fim-pulso { 50% { transform: scale(1.12); } }
.telas-cartao.fim-aviso { background: #fef2f2; border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220,38,38,.18); }

/* ================================================================== *
 * Tela inicial: rodapé (Calendário + Área dos pais)
 * ================================================================== */
.perfis-rodape { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(0px, 1vh, 8px); }
.botao-calendario { background: linear-gradient(135deg, #f97316, #ec4899); color: #fff; }

/* ================================================================== *
 * Calendário da semana (as duas crianças lado a lado; empilhadas no celular)
 * ================================================================== */
.sem { max-width: 1240px; }
.cal-nav h2 small { display: block; font-size: 15px; font-weight: 800; color: var(--texto-suave); }
.sem-grade { display: flex; flex-direction: column; gap: 10px; }
.sem-linha { display: grid; grid-template-columns: minmax(92px, 128px) repeat(var(--n, 2), minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.sem-linha.passado { opacity: .92; }
.sem-cabeca { position: sticky; top: var(--topo-h, 0px); z-index: 5; padding: 6px 0; margin: -6px 0 0; background: rgba(248, 250, 252, .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 0 0 18px 18px; }
.sem-cab-crianca { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 6px 12px; border-radius: 99px;
  background: linear-gradient(135deg, var(--cor), var(--cor2)); color: #fff; font-size: 20px; font-weight: 900; box-shadow: var(--sombra); }
.sem-avatar { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 26px; line-height: 1;
  background: rgba(255,255,255,.3); border: 2px solid rgba(255,255,255,.85); }
.sem-dia { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 10px 6px; border-radius: 18px;
  background: #fff; box-shadow: var(--sombra); text-align: center; border: 3px solid transparent; }
.sem-dia:active, .sem-cel:active { transform: scale(.98); }
.sem-dia.fds { background: #fdf2f8; }
.sem-dia-nome { font-size: 15px; font-weight: 900; color: var(--texto-suave); text-transform: uppercase; letter-spacing: .5px; }
.sem-dia.fds .sem-dia-nome { color: #db2777; }
.sem-dia-num { font-size: 24px; font-weight: 900; line-height: 1.1; }
.sem-dia-tipo { font-size: 13px; font-weight: 700; color: var(--texto-suave); }
.sem-feriado { font-size: 12px; font-weight: 800; color: #b45309; line-height: 1.2; }
.sem-hoje-selo { font-size: 13px; font-weight: 900; color: #fff; padding: 2px 10px; border-radius: 99px; background: linear-gradient(135deg, var(--cor), var(--cor2)); }
.sem-dia.hoje { border-color: var(--cor); background: color-mix(in srgb, var(--cor) 10%, #fff); }
.sem-cel { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; padding: 10px 12px; border-radius: 18px; text-align: left;
  background: #fff; box-shadow: var(--sombra); border: 3px solid transparent; border-left: 7px solid var(--cor); }
.sem-cel.hoje { border-color: var(--cor); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cor) 20%, transparent), var(--sombra); }
.sem-cel.futuro { background: #fbfcfe; }
.sem-cel-quem { display: none; align-items: center; gap: 8px; font-size: 17px; font-weight: 900; color: var(--cor); }
.sem-cel-quem .sem-avatar { width: 32px; height: 32px; flex-basis: 32px; font-size: 20px; border-color: color-mix(in srgb, var(--cor) 40%, #fff); }
.sem-prog { display: flex; align-items: center; gap: 10px; }
.sem-prog-txt { flex: 0 0 auto; font-size: 17px; font-weight: 800; }
.sem-prog-txt.suave { color: var(--texto-suave); font-size: 15px; }
.sem-prog .barra { flex: 1 1 auto; height: 10px; }
.sem-cel.sem-registro .sem-prog .barra > span { width: 0 !important; }
.sem-itens { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sem-item { display: flex; align-items: flex-start; gap: 6px; font-size: 15px; font-weight: 700; line-height: 1.25; }
.sem-ic { flex: 0 0 auto; width: 22px; text-align: center; }
.sem-txt { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.sem-item.sem-ativ .sem-txt { font-weight: 800; }
.sem-item.sem-alerta { background: #fff7ed; border-left: 4px solid #f97316; color: #9a3412; font-weight: 900; }
.sem-item.sem-prova .sem-txt { color: #b91c1c; font-weight: 800; }
.sem-ok { flex: 0 0 auto; color: var(--verde); font-weight: 900; }
.sem-item.sem-feito .sem-txt { color: #475569; }
.sem-telas .sem-txt { display: flex; flex-wrap: wrap; gap: 4px; }
.sem-sessao { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 14px; font-weight: 800; background: #ede9fe; color: #5b21b6; }
.sem-sessao.agora { background: #fef3c7; color: #92400e; }
.sem-sessao.nao, .sem-sessao.futuro { background: #f1f5f9; color: #64748b; font-weight: 700; }
.sem-meses { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.sem-meses .botao-pais { font-size: 16px; min-height: 48px; }
/* Tablet em pé / telas médias: coluna do dia mais estreita. */
@media (max-width: 900px) {
  .sem-linha { grid-template-columns: 96px repeat(var(--n, 2), minmax(0, 1fr)); gap: 8px; }
  .sem-cab-crianca { font-size: 18px; }
  .sem-item { font-size: 14px; }
}
/* Celular: cada dia vira um bloco com as crianças empilhadas. */
@media (max-width: 600px) {
  .sem-cabeca { display: none; }
  .sem-linha { grid-template-columns: minmax(0, 1fr); gap: 6px; margin-bottom: 8px; }
  .sem-dia { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 4px 10px; padding: 8px 12px; border-radius: 14px; }
  .sem-dia-num { font-size: 20px; }
  .sem-cel-quem { display: flex; }
  .sem-cel { padding: 10px; }
}

/* Fotos do perfil (Área dos pais) */
.painel-fotos { margin: 12px 0; }
.fotos-grade { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 14px; }
.foto-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 92px; }
.foto-escolher { position: relative; width: 84px; height: 84px; padding: 0; border-radius: 50%; overflow: hidden; border: 4px solid transparent;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); cursor: pointer; display: grid; place-items: center; font-size: 44px; }
.foto-escolher img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-item.ativa .foto-escolher { border-color: #22c55e; }
.foto-marca { position: absolute; right: 2px; bottom: 2px; width: 26px; height: 26px; border-radius: 50%; background: #22c55e; color: #fff;
  font-weight: 900; font-size: 16px; display: grid; place-items: center; border: 2px solid #fff; }
.foto-legenda { font-size: 12px; color: var(--texto-suave); }
.foto-apagar { position: absolute; top: -4px; right: -2px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,.2); font-size: 15px; cursor: pointer; display: grid; place-items: center; padding: 0; }
.botao-foto-nova { display: inline-flex; align-items: center; cursor: pointer; }

/* Aviso do dia (CFG.avisosDoDia) — tela cheia festiva; abaixo da tela vermelha (z-index 1000) */
.aviso-dia { position: fixed; inset: 0; z-index: 950; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 22px 36px 26px; gap: 12px; overflow: auto; color: var(--texto); animation: aparecer .3s ease;
  background: radial-gradient(circle at 10% 0%, #fff3c4 0, transparent 45%), radial-gradient(circle at 95% 100%, #ffd6e7 0, transparent 45%), linear-gradient(160deg, #fff7ed, #fdf2f8); }
.ad-confete { position: absolute; font-size: 34px; opacity: .9; pointer-events: none; }
.ad-topo { display: flex; align-items: center; gap: 22px; }
.ad-av-wrap { position: relative; flex: 0 0 auto; }
.ad-av { width: 104px; height: 104px; border-radius: 50%; overflow: hidden; border: 5px solid #fff; box-shadow: var(--sombra); display: grid; place-items: center; font-size: 56px; background: #fff; }
.ad-emoji { position: absolute; right: -8px; bottom: -6px; font-size: 34px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.2)); }
.aviso-dia h1 { font-size: 52px; font-weight: 1000; line-height: 1.05; text-align: center;
  background: linear-gradient(90deg, var(--cor), var(--cor2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.aviso-dia h1 .e { -webkit-text-fill-color: initial; color: initial; }
.ad-sub { font-size: 26px; font-weight: 800; text-align: center; max-width: 1180px; line-height: 1.25; }
.ad-sub b { color: #2f7cf6; } .ad-sub b.m { color: #e8488f; }
.aviso-dia .nw { white-space: nowrap; }
.ad-colunas { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; width: 100%; max-width: 1120px; }
.ad-card { background: #fff; border-radius: var(--raio); box-shadow: var(--sombra); padding: 14px 20px 16px; border-top: 8px solid var(--c1); }
.ad-card h2 { font-size: 26px; font-weight: 900; display: flex; align-items: center; gap: 10px; margin: 0 0 8px; color: var(--c1); }
.ad-mini { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; border: 3px solid var(--c1); flex: 0 0 auto; display: grid; place-items: center; font-size: 22px; }
.ad-nomes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ad-nomes li { font-size: 28px; font-weight: 900; padding: 6px 16px; border-radius: 999px; background: color-mix(in srgb, var(--c1) 12%, #fff); }
.ad-tempo { width: 100%; max-width: 1120px; display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, #e0f2fe, #fef9c3); border-radius: var(--raio); box-shadow: var(--sombra); padding: 12px 20px; }
.ad-icone { font-size: 50px; line-height: 1; white-space: nowrap; }
.ad-tempo p { font-size: 22px; font-weight: 800; line-height: 1.3; margin: 0; }
.ad-fonte { display: block; font-size: 13px; font-weight: 700; color: var(--texto-suave); margin-top: 2px; }
.ad-pergunta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ad-pergunta h3 { font-size: 30px; font-weight: 1000; margin: 0; }
.ad-botao { font: inherit; font-size: 32px; font-weight: 1000; color: #fff; border: 0; border-radius: 999px; padding: 16px 42px; cursor: pointer;
  background: linear-gradient(135deg, var(--verde), #16a34a); box-shadow: 0 8px 0 #15803d, 0 14px 26px rgba(21,128,61,.35); }
.ad-botao:active { transform: translateY(4px); box-shadow: 0 4px 0 #15803d; }
@media (max-width: 760px) {
  .aviso-dia { padding: 16px; justify-content: flex-start; gap: 14px; }
  .ad-av { width: 64px; height: 64px; } .ad-emoji { font-size: 24px; } .ad-topo { gap: 10px; }
  .aviso-dia h1 { font-size: 30px; } .ad-sub { font-size: 19px; } .ad-colunas { grid-template-columns: 1fr; }
  .ad-nomes li { font-size: 21px; } .ad-card h2 { font-size: 20px; } .ad-tempo p { font-size: 17px; } .ad-icone { font-size: 36px; }
  .ad-pergunta h3 { font-size: 23px; } .ad-botao { font-size: 24px; padding: 14px 30px; } .ad-confete { display: none; }
}
.ad-dica { display: block; margin-top: 4px; font-size: 22px; font-weight: 1000; color: #15803d; }
@media (max-width: 760px) { .ad-dica { font-size: 17px; } }

/* Tela inicial: tema dia (claro) / noite (escuro), com fundo de nuvens */
body.tela-perfis.tema-dia { background: #a9cdea url('../img/fundo-dia.webp') center / cover no-repeat fixed; }
body.tela-perfis.tema-noite { background: #0f1f47 url('../img/fundo-noite.webp') center / cover no-repeat fixed; }
.tema-dia .perfis-topo h1, .tema-dia .perfis-pergunta { color: #0f172a; text-shadow: 0 0 14px rgba(255,255,255,.95), 0 1px 0 rgba(255,255,255,.9); }
.tema-dia .perfis-data { color: #1e3a5f; text-shadow: 0 0 10px rgba(255,255,255,.95); }
.tema-noite .perfis-topo h1, .tema-noite .perfis-pergunta { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.65); }
.tema-noite .perfis-data { color: #dbe4f0; text-shadow: 0 1px 10px rgba(0,0,0,.7); }
.tema-noite .perfil { box-shadow: 0 12px 34px rgba(0,0,0,.5); }
.tema-noite .botao-pais:not(.botao-calendario) { background: rgba(15,23,42,.78); color: #e2e8f0; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.tema-noite .aviso-offline { background: rgba(15,23,42,.8); color: #fde68a; }

/* Pontos (só pais) no calendário */
.pts-dia { display: inline-block; width: max-content; align-self: flex-start; justify-self: start; margin: 2px 0 4px; padding: 2px 10px; border-radius: 99px; background: #fef3c7; color: #92400e; font-weight: 900; font-size: 14px; }
.pts-total { display: block; font-size: 13px; font-weight: 900; color: #92400e; background: #fef3c7; border-radius: 99px; padding: 1px 8px; margin-top: 2px; width: max-content; }
.pts-cels { display: inline-flex; gap: 2px; }
.pts-cel { font-size: 11px; font-weight: 900; color: #fff; background: var(--cor); border-radius: 6px; padding: 0 4px; line-height: 16px; }
.pts-mes { margin: 10px 0; padding: 10px 14px; border-radius: 16px; background: #fffbeb; border: 2px solid #fde68a; font-size: 16px; font-weight: 700; }
.pts-mes small { font-weight: 700; color: var(--texto-suave); }

/* Nomes e tarefas extras (Área dos pais) */
.nome-linha { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 24px; }
.nome-linha input { flex: 1; min-width: 0; font: inherit; font-size: 18px; font-weight: 700; padding: 10px 12px; border-radius: 12px; border: 2px solid #e2e8f0; }
.pers-lista { list-style: none; padding: 0; margin: 8px 0 12px; display: flex; flex-direction: column; gap: 8px; }
.pers-lista li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: #f8fafc; }
.pers-emoji { font-size: 28px; }
.pers-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pers-txt small { color: var(--texto-suave); font-size: 13px; }
.form-ativ select { font: inherit; font-size: 17px; font-weight: 700; padding: 10px 12px; border-radius: 12px; border: 2px solid #e2e8f0; background: #fff; }
.form-linha { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.form-dias { display: flex; flex-wrap: wrap; gap: 6px; }
.dia-check { flex-direction: row !important; margin: 0 !important; }
.dia-check input { position: absolute; opacity: 0; pointer-events: none; }
.dia-check span { display: inline-block; min-width: 54px; text-align: center; padding: 8px 10px; border-radius: 12px; background: #f1f5f9; border: 3px solid transparent; font-size: 16px; font-weight: 800; cursor: pointer; }
.dia-check input:checked + span { background: #dcfce7; border-color: #22c55e; }

/* ================= Jarbas (mascote) ================= */
.jarbas-tela { position: fixed; inset: 0; z-index: 900; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  touch-action: none; user-select: none; -webkit-user-select: none; overflow: hidden; animation: aparecer .4s ease; }
.jarbas-dormindo { background: #000; cursor: pointer; }
.jarbas-brincando.dia { background: radial-gradient(circle at 50% 40%, #e6f4ff 0, #bfe3ff 60%, #a9d4f5 100%); }
.jarbas-brincando.noite { background: #000; }
.jarbas-palco { position: relative; display: grid; place-items: center; }
.jarbas-palco-brincar { position: absolute; inset: 0; }
.jarbas { width: min(46vmin, 360px); aspect-ratio: 1; transition: transform .3s ease; }
.jarbas-mov { width: 100%; height: 100%; transform-origin: 50% 90%; }
.jarbas-svg { width: 100%; height: 100%; overflow: visible; display: block; }
.j-corpo { stroke: none; }
.j-sombra { fill: rgba(15,23,42,.10); }
.jarbas-dormindo .j-sombra, .noite .j-sombra { display: none; }
.j-olhar { transition: transform .25s ease; }
.j-olhos { display: none; }
.j-pil { fill: #111; }
.j-olhos path { fill: none; stroke: #111; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.j-olhos-fechados path { stroke-width: 4.5; }
.j-piscar, .j-espiral { transform-box: fill-box; transform-origin: center; }
.j-piscar.piscando { animation: j-piscar .25s ease; }
.j-espiral { stroke-width: 3.5 !important; animation: j-rodar .6s linear infinite; }
/* caras (só os olhos) */
.cara-normal .j-olhos-normal, .cara-dorme .j-olhos-fechados, .cara-riso .j-olhos-riso, .cara-aperto .j-olhos-aperto,
.cara-grandes .j-olhos-grandes, .cara-tontos .j-olhos-tontos { display: inline; }
@keyframes j-rodar { to { transform: rotate(360deg); } }
/* dormindo: respira devagar + Zzz */
.jarbas-dormindo .jarbas-mov { animation: j-respirar 4s ease-in-out infinite; }
.jarbas-dormindo.acordando .jarbas-mov { animation: none; }
.jarbas-zzz { position: absolute; right: -10%; top: -6%; color: #fff; font-weight: 900; pointer-events: none; }
.jarbas-zzz span { position: absolute; opacity: 0; animation: j-zzz 3.6s ease-in infinite; font-size: 42px; }
.jarbas-zzz span:nth-child(2) { animation-delay: 1.2s; font-size: 32px; }
.jarbas-zzz span:nth-child(3) { animation-delay: 2.4s; font-size: 24px; }
.acordando .jarbas-zzz, .acordando .jarbas-dica { display: none; }
.jarbas-dica { font-size: 20px; font-weight: 800; color: #475569; position: absolute; bottom: 7vh; left: 0; right: 0; text-align: center; pointer-events: none; }
.jarbas-dormindo .jarbas-dica { color: #334155; }
.noite .jarbas-dica { color: #94a3b8; }
/* balão */
.jarbas-balao { position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, 10px) scale(.6); opacity: 0; white-space: nowrap;
  background: #fff; color: #1e293b; font-size: clamp(20px, 3.6vmin, 30px); font-weight: 900; padding: 12px 20px; border-radius: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18); transition: opacity .2s, transform .25s cubic-bezier(.3,1.6,.5,1); pointer-events: none; }
.jarbas-palco-brincar .jarbas-balao { bottom: auto; top: calc(50% - min(23vmin, 180px) - 70px); }
.jarbas-balao::after { content: ''; position: absolute; left: 50%; bottom: -10px; margin-left: -10px; border: 10px solid transparent; border-bottom: 0; border-top-color: #fff; }
.jarbas-balao.visivel { opacity: 1; transform: translate(-50%, 0) scale(1); }
.jarbas-fechar { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; z-index: 2; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: #1e293b; font-size: 26px; font-weight: 900; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.noite .jarbas-fechar { background: rgba(255,255,255,.15); color: #fff; }
.jarbas-estrelas { position: absolute; top: max(20px, env(safe-area-inset-top)); left: 20px; z-index: 2; font-size: 26px; font-weight: 900; color: #1e293b;
  background: rgba(255,255,255,.85); padding: 6px 16px; border-radius: 99px; pointer-events: none; }
.noite .jarbas-estrelas { background: rgba(255,255,255,.12); color: #fff; }
.jarbas-tempo { position: absolute; left: 20%; right: 20%; bottom: 4vh; height: 8px; border-radius: 99px; background: rgba(15,23,42,.1); overflow: hidden; pointer-events: none; }
.noite .jarbas-tempo { background: rgba(255,255,255,.12); }
.jarbas-tempo span { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #84cc16); border-radius: inherit; animation: j-tempo linear forwards; }
/* movimentos */
.anim-pulo { animation: j-pulo .6s cubic-bezier(.3,1.5,.5,1); }
.anim-esticar { animation: j-esticar .9s ease; }
.anim-giro { animation: j-giro .7s ease; }
.anim-balanco { animation: j-balanco .8s ease; }
.anim-cocegas { animation: j-cocegas .9s ease; }
.anim-amassar { animation: j-amassar .6s cubic-bezier(.3,1.6,.5,1); }
.anim-amassar-cima { animation: j-amassar .5s ease; }
.anim-quicar { animation: j-quicar .7s ease; }
.anim-danca { animation: j-danca 1.1s ease; }
.anim-tonto { animation: j-tonto 1.6s ease; }
.anim-tchau { animation: j-balanco 1s ease 2; }
@keyframes j-respirar { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.05, 1.03); } }
@keyframes j-zzz { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(50px, -110px) scale(1.2); } }
@keyframes j-piscar { 50% { transform: scaleY(.1); } }
@keyframes j-pulo { 40% { transform: translateY(-28%) scale(.95, 1.08); } 70% { transform: translateY(0) scale(1.1, .9); } }
@keyframes j-esticar { 40% { transform: scale(.88, 1.2); } 75% { transform: scale(1.06, .95); } }
@keyframes j-giro { to { transform: rotate(360deg); } }
@keyframes j-balanco { 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
@keyframes j-cocegas { 10%, 30%, 50%, 70% { transform: rotate(-7deg) scale(1.03); } 20%, 40%, 60%, 80% { transform: rotate(7deg) scale(.98); } }
@keyframes j-amassar { 35% { transform: scale(1.3, .7); } 70% { transform: scale(.92, 1.1); } }
@keyframes j-quicar { 30% { transform: translateY(-18%); } 55% { transform: translateY(0) scale(1.12, .88); } 75% { transform: translateY(-6%); } }
@keyframes j-danca { 20% { transform: translateX(-10%) rotate(-12deg); } 40% { transform: translateX(10%) rotate(12deg) translateY(-8%); } 60% { transform: translateX(-10%) rotate(-12deg); } 80% { transform: translateX(8%) rotate(8deg) translateY(-6%); } }
@keyframes j-tonto { 25% { transform: rotate(-20deg) translateX(-6%); } 50% { transform: rotate(18deg) translateX(6%); } 75% { transform: rotate(-10deg); } }
@keyframes j-tempo { from { width: 100%; } to { width: 0; } }
.botao-jarbas { background: linear-gradient(135deg, #e0f2fe, #fff); color: #0369a1; }
.tema-noite .botao-jarbas { background: rgba(255,255,255,.92); color: #0f172a; }
.jarbas-brincando.dia .j-corpo { stroke: rgba(15,23,42,.07); stroke-width: 1.5; }

/* Perguntinha antes de brincar com o Jarbas */
.jarbas-pergunta { justify-content: center; padding: max(20px, env(safe-area-inset-top)) 24px 24px; gap: clamp(10px, 2.2vh, 22px); overflow-y: auto; touch-action: manipulation; }
.jarbas-pergunta.dia { background: radial-gradient(circle at 50% 30%, #e6f4ff 0, #bfe3ff 60%, #a9d4f5 100%); }
.jarbas-pergunta.noite { background: #000; }
.jq-topo { display: flex; align-items: center; gap: 18px; max-width: 900px; width: 100%; justify-content: center; }
.jq-jarbas { width: clamp(90px, 16vmin, 150px); flex: 0 0 auto; }
.jq-balao { position: relative; background: #fff; color: #1e293b; font-size: clamp(19px, 3vmin, 28px); font-weight: 900; padding: 14px 22px; border-radius: 22px; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.jq-balao::before { content: ''; position: absolute; left: -12px; top: 50%; margin-top: -10px; border: 10px solid transparent; border-left: 0; border-right: 12px solid #fff; }
.jq-corpo { width: 100%; max-width: 980px; display: flex; flex-direction: column; align-items: center; gap: clamp(12px, 2.4vh, 22px); }
.jq-titulo { font-size: clamp(24px, 4vmin, 36px); font-weight: 1000; color: #0f172a; }
.noite .jq-titulo { color: #fff; }
.jq-criancas { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.jq-crianca { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 28px; border-radius: 28px; color: #fff; font-size: clamp(22px, 3.6vmin, 32px);
  background: linear-gradient(135deg, var(--cor), var(--cor2)); box-shadow: 0 10px 24px rgba(0,0,0,.18); min-width: 220px; }
.jq-crianca:active { transform: scale(.97); }
.jq-avatar { width: clamp(100px, 18vmin, 150px); height: clamp(100px, 18vmin, 150px); border-radius: 50%; overflow: hidden; border: 5px solid rgba(255,255,255,.85); display: grid; place-items: center; font-size: 70px; background: #fff; }
.jq-cartao { background: #fff; border-radius: 26px; box-shadow: 0 10px 28px rgba(0,0,0,.12); padding: 16px 28px; text-align: center; width: 100%; }
.jq-figura { font-size: clamp(44px, 8vmin, 72px); line-height: 1.2; word-break: break-all; }
.jq-figura.pequena { font-size: clamp(32px, 5.4vmin, 50px); }
.jq-texto { font-size: clamp(26px, 4.4vmin, 40px); font-weight: 1000; color: #0f172a; margin-top: 6px; }
.jq-opcoes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); width: 100%; }
.jq-opcao { font-size: clamp(34px, 6vmin, 56px); font-weight: 1000; color: #1e293b; background: #fff; border-radius: 24px; padding: clamp(18px, 4.5vh, 40px) 8px;
  box-shadow: 0 7px 0 #cbd5e1, 0 12px 22px rgba(0,0,0,.1); border: 4px solid transparent; }
.jq-opcoes.palavras .jq-opcao { font-size: clamp(26px, 4.4vmin, 42px); }
.jq-opcao:active { transform: translateY(3px); box-shadow: 0 4px 0 #cbd5e1; }
.jq-opcao.errado { opacity: .45; background: #fee2e2; border-color: #fca5a5; animation: jq-nao .4s ease; }
.jq-opcao.certo { background: #dcfce7; border-color: #22c55e; box-shadow: 0 7px 0 #16a34a; animation: j-pulo .6s ease; }
.jq-estrelas { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.jq-estrelas span { position: absolute; top: 60%; font-size: 36px; opacity: 0; animation: jq-estrela 1.3s ease-out forwards; }
@keyframes jq-nao { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
@keyframes jq-estrela { 0% { opacity: 0; transform: translateY(0) scale(.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-50vh) scale(1.2) rotate(180deg); } }

/* ---------- Aviso da farda (tela inicial, manhã de dia de aula) ---------- */
.aviso-farda { width: min(760px, 100%); background: #fff; color: #0f172a; border-radius: var(--raio); box-shadow: var(--sombra);
  border-left: 10px solid #0ea5e9; padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; }
.aviso-farda h2 { font-size: clamp(22px, 4.5vw, 30px); font-weight: 900; }
.aviso-farda ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.aviso-farda li { font-size: clamp(18px, 3.6vw, 23px); font-weight: 700; line-height: 1.3; }
.aviso-farda .botao-pequeno { align-self: flex-end; }
.item-ef { color: #0369a1; font-weight: 800; }

/* ---------- Reiniciar tempo de tela (tela da criança) ---------- */
.cartao-reiniciar { background: #fff; border-radius: var(--raio); box-shadow: var(--sombra); padding: 16px; border-top: 8px solid #6366f1; }
.cartao-reiniciar h2 { font-size: 24px; font-weight: 900; margin-bottom: 10px; }
.botao-reiniciar { width: 100%; min-height: 56px; border-radius: 14px; background: #eef2ff; color: #3730a3; font-size: 19px; font-weight: 900; border: 2px solid #c7d2fe; }
.botao-reiniciar:active { transform: scale(.98); }
.cartao-reiniciar-nota { margin-top: 8px; font-size: 14px; color: #64748b; font-weight: 700; }

/* ---------- Tarefas do Agenda Edu (Área dos pais) ---------- */
.painel-edu { margin: 14px 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.modal-tarefas-edu .edu-quando { font-size: 17px; margin: 6px 0 10px; }
.modal-tarefas-edu .edu-aviso { background: #fef3c7; color: #92400e; font-weight: 800; border-radius: 12px; padding: 10px 14px; margin: 8px 0; }
.modal-tarefas-edu .edu-aviso.erro { background: #fee2e2; color: #991b1b; }
.edu-crianca { margin-top: 14px; border-radius: 16px; background: #f8fafc; padding: 12px 16px; border-left: 6px solid var(--cor, #94a3b8); }
.edu-crianca h3 { font-size: 21px; font-weight: 900; margin-bottom: 6px; }
.edu-lista { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.edu-lista li, .edu-vazio { font-size: 17px; line-height: 1.35; }
.edu-marcada { color: #15803d; font-weight: 700; }

/* Preferências das tarefas (Área dos pais) */
.painel-tarefas-pref { margin-top: 14px; }
.painel-tarefas-pref h4 { margin: 12px 0 6px; font-size: 16px; }
.painel-tarefas-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.painel-tarefas-lista li { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 11px; background: #f8fafc; }
.painel-tarefa-emoji { flex: 0 0 28px; font-size: 22px; text-align: center; }
.painel-tarefa-nome { flex: 1; min-width: 0; font-size: 14px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.painel-tarefas-lista .botao-pequeno { min-width: 34px; padding: 5px 7px; }
.emoji-tarefa-lista { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px 0; }
.emoji-tarefa-opcao { min-height: 52px; border-radius: 12px; background: #f1f5f9; font-size: 28px; }
.emoji-tarefa-opcao:active { transform: scale(.94); background: #dbeafe; }
.painel-tarefa-data { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 8px; }
.painel-tarefa-data input { min-height: 38px; border: 2px solid #cbd5e1; border-radius: 10px; padding: 4px 8px; font: inherit; font-weight: 800; color: var(--texto); }
.painel-tarefa-data .botao-pequeno { min-width: 38px; padding: 5px 9px; }
.painel-tarefa-linha { display: flex; align-items: center; gap: 4px; }
.painel-tarefa-linha > .painel-linha { flex: 1; min-width: 0; }
.painel-tarefa-acoes { display: flex; flex: 0 0 auto; gap: 3px; }
.painel-tarefa-acoes .botao-pequeno { min-width: 34px; padding: 5px 6px; }
@media (max-width: 600px) {
  .painel-tarefa-acoes { gap: 2px; }
  .painel-tarefa-acoes .botao-pequeno { min-width: 30px; padding: 5px 4px; }
}
.painel-periodo-titulo { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.painel-periodo-titulo h4 { flex: 1; }
.painel-periodo-titulo .botao-pequeno { white-space: nowrap; }

/* Maria Luiza: fim de tempo calmo (sem vermelho) e ordem "estudo e depois tela" (21/10/2026) */
.aviso-fim.aviso-fim-calmo { background: linear-gradient(160deg, #c7d2fe, #bae6fd 55%, #bbf7d0); color: #1e3a5f; }
.aviso-fim-calmo .aviso-fim-emoji { animation: none; }
.aviso-fim-calmo h1 { font-size: clamp(40px, 9vmin, 110px); font-weight: 800; letter-spacing: 0; text-shadow: none; }
.aviso-fim-calmo .aviso-fim-nomes { font-size: clamp(26px, 5.5vmin, 64px); font-weight: 700; }
.aviso-fim-calmo .aviso-fim-sub { font-size: clamp(26px, 5.5vmin, 60px); font-weight: 800; background: rgba(255,255,255,.7); border-radius: 22px; padding: .3em .8em; opacity: 1; }
.aviso-fim-calmo .aviso-fim-botao { background: rgba(255,255,255,.6); color: #1e3a5f; border-color: rgba(30,58,95,.3); }
.eletro-ordem { font-weight: 800; font-size: 15px; color: #4338ca; background: #eef2ff; border-radius: 10px; padding: 4px 10px; margin: 6px 0 2px; display: inline-block; }

/* Link do item (ex.: Músicas do almoço da Maria Luiza) */
.item-link { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 4px 8px; }
.botao-link { background: #ede9fe; color: #5b21b6; border: 2px solid #c4b5fd; border-radius: 14px; font-weight: 800; font-size: 16px; padding: 8px 14px; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.item-link-nota { font-size: 14px; font-weight: 700; color: #475569; }

/* Player do almoço (janela travada) */
.modal.modal-player { width: min(760px, 94vw); }
.player-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.player-caixa { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0f172a; }
.player-caixa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-bloqueio { position: absolute; inset: 0; background: transparent; z-index: 2; }
.player-nota { font-weight: 800; font-size: 18px; text-align: center; margin-top: 12px; color: #334155; }

/* Item com músicas: o ✓ é um botão à parte (21/10/2026) */
.li-player { position: relative; }
.li-player .item-check-lugar { flex: 0 0 50px; width: 50px; height: 50px; margin-left: auto; }
.item-check-botao { position: absolute; right: 17px; bottom: 13px; width: 50px; height: 50px; border-radius: 50%;
  border: 4px solid #cbd5e1; background: #fff; font-size: 30px; box-shadow: 0 0 0 3px rgba(91,33,182,.18); font-weight: 900; color: #fff; display: flex; align-items: center; justify-content: center; z-index: 1; }
.item-check-botao.feito { background: var(--verde); border-color: var(--verde); }
.item-player-nota { color: #5b21b6; font-weight: 700; }

/* Tela x tomada: escolha do tipo ao começar/continuar */
.eletro-escolha { background: #f0fdf4; }
.escolha-tela { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.botao-escolha { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; min-height: 120px; border-radius: 18px;
  border: 3px solid transparent; font: inherit; font-weight: 800; font-size: 18px; cursor: pointer; color: #1f2937; }
.botao-escolha small { font-weight: 600; font-size: 13px; opacity: .75; }
.botao-escolha .escolha-emoji { font-size: 34px; line-height: 1.1; }
.botao-escolha-tv { background: #dbeafe; border-color: #3b82f6; }
.botao-escolha-pc { background: #fef3c7; border-color: #f59e0b; }
.botao-escolha:active { transform: scale(.97); }
.eletro-tipo { font-weight: 800; margin: 4px 0; }
