/* Identidade "Mel & Aconchego" (docs/design/tokens.json). */
:root {
    --honey: #F2A94E;
    --honey-deep: #D98B32;
    --honey-pressed: #E79A3E;
    --cream: #FFF7EC;
    --cream-deep: #FDEFD3;
    --surface: #FFFFFF;
    --line: #E4D6BC;
    --line-soft: #EFE1C7;
    --ink: #4A3B2A;
    --ink-strong: #3B342B;
    --body2: #6E6558;
    --muted: #8A7C68;
    --kicker: #A5622A;
    --radius-chip: 10px;
    --radius-button: 16px;
    --radius-card: 24px;
    --shadow-card: 0 12px 26px -16px rgba(74, 59, 42, .5);
}

body {
    background: var(--cream);
    color: var(--ink);
    font-family: "Nunito", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, .marca strong {
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
    color: var(--ink-strong);
}

h1 { font-size: 32px; margin-bottom: 4px; }
h2 { font-size: 20px; }

.kicker {
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--kicker);
    margin-bottom: 4px;
}

.apoio { color: var(--body2); font-weight: 600; font-size: 14px; }

.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.marca .abelha { width: 40px; height: 44px; }
.marca strong { display: block; font-size: 22px; font-weight: 700; line-height: 1; }
.marca span { display: block; font-weight: 700; font-size: 10px; letter-spacing: .16em; color: #C29A5E; }
.marca-grande .abelha { width: 64px; height: 70px; }
.marca-grande strong { font-size: 34px; }

.barra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    background: var(--surface);
    border-bottom: 1px solid var(--line-soft);
}

.usuario-logado { display: flex; align-items: center; gap: 16px; font-weight: 700; }
.usuario-logado .sair { color: var(--kicker); text-decoration: none; }

.conteudo { max-width: 1080px; margin: 0 auto; padding: 40px 24px; }

.botao-gordinho {
    border: 0;
    border-radius: var(--radius-button);
    background: var(--honey);
    color: var(--ink-strong);
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
    font-size: 18px;
    padding: 12px 20px;
    box-shadow: 0 6px 0 var(--honey-deep);
    transition: transform .1s ease-out, box-shadow .1s ease-out, background .1s ease-out;
}

.botao-gordinho:active:not(:disabled) {
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--honey-deep);
    background: var(--honey-pressed);
}

.botao-gordinho:disabled { opacity: .7; }

.botao-secundario {
    display: inline-block;
    border-radius: var(--radius-button);
    background: var(--surface);
    border: 2px solid var(--line);
    color: var(--ink);
    font-weight: 700;
    padding: 8px 16px;
    text-decoration: none;
    box-shadow: 0 4px 0 var(--line);
}

.form-control {
    border-radius: 12px;
    border: 2px solid var(--line);
    padding: 10px 14px;
    color: var(--ink);
}

.form-control:focus { border-color: var(--honey); box-shadow: 0 0 0 3px var(--cream-deep); }
.form-label { font-weight: 700; font-size: 14px; }

/* Login e painel no mesmo cenário do site público (site-publico.css): céu, sol, nuvens e colinas. */
.tela-login {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 140px 16px 32px;
    overflow: hidden;
    background: var(--cream);
}

.ceu { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ceu .sol {
    position: absolute;
    right: -70px;
    top: -90px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #F7C463;
    box-shadow: 0 0 0 36px #FDEFC7, 0 0 0 80px rgba(253, 239, 199, .45);
}
.ceu .nuvem {
    position: absolute;
    width: 120px;
    height: 44px;
    border-radius: 999px;
    background: #fff;
}
.ceu .nuvem::before, .ceu .nuvem::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: #fff;
}
.ceu .nuvem::before { width: 56px; height: 56px; left: 18px; top: -28px; }
.ceu .nuvem::after { width: 42px; height: 42px; left: 60px; top: -18px; }
.tela-login .nuvem-a { left: 8%; top: 18%; }
.tela-login .nuvem-b { left: 62%; top: 10%; transform: scale(.7); }

.tela-login .colinas {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42%;
    pointer-events: none;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 300' preserveAspectRatio='none'%3E%3Cpath d='M0 120 C260 30 520 30 760 90 C1000 150 1220 130 1440 60 V300 H0Z' fill='%23E5F3EA'/%3E%3Cpath d='M0 220 C300 160 600 170 860 210 C1100 246 1280 230 1440 190 V300 H0Z' fill='%23CFE6D6'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
}

.palco-do-login { position: relative; width: 100%; max-width: 440px; }

.cartao-login {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border-radius: 32px;
    box-shadow: var(--shadow-card), 0 8px 0 var(--line-soft);
    padding: 36px 36px 40px;
}

.cartao-login .marca { margin-bottom: 28px; }
.cartao-login .marca .abelha { display: none; }
.cartao-login h1 { font-size: 36px; font-weight: 700; }

/* A Zuzu espia de trás do cartão; com a senha em foco, fecha os olhos. */
.zuzu-do-login {
    position: absolute;
    z-index: 0;
    right: 32px;
    top: -106px;
    width: 150px;
    height: 159px;
}
.zuzu-do-login img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: opacity .4s ease-in-out;
}
.zuzu-do-login .zuzu-olhando { animation: zuzu-flutuar 3.6s ease-in-out infinite; }
.zuzu-do-login .zuzu-sem-espiar { opacity: 0; }
.zuzu-do-login.sem-espiar .zuzu-olhando { opacity: 0; }
.zuzu-do-login.sem-espiar .zuzu-sem-espiar { opacity: 1; }

@keyframes zuzu-flutuar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.rodape-login { position: relative; margin: 28px 0 0; font-size: 14px; }
.rodape-login a { color: #2E5D52; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
    .zuzu-do-login .zuzu-olhando { animation: none; }
    .zuzu-do-login img { transition: none; }
}

@media (max-width: 540px) {
    .tela-login { padding-top: 120px; justify-content: flex-start; }
    .tela-login .sol { width: 200px; height: 200px; right: -80px; }
    .tela-login .nuvem-b { display: none; }
    .cartao-login { padding: 28px 22px 32px; }
    .zuzu-do-login { width: 120px; height: 127px; top: -84px; right: auto; left: 20px; }
}

.grade-de-areas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
    margin: 28px 0 40px;
}

.cartao-de-area {
    background: var(--surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 22px;
    border-top: 6px solid var(--cor);
}

.cartao-de-area .ponto { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--cor); }
.cartao-de-area h2 { margin: 8px 0 6px; }
.cartao-de-area p { color: var(--body2); font-size: 14px; }

.chip {
    display: inline-block;
    border-radius: var(--radius-chip);
    background: var(--tint, var(--cream-deep));
    color: var(--ink);
    font-weight: 700;
    font-size: 12px;
    padding: 2px 10px;
}

.operacao h2 { margin-bottom: 12px; }

/* Navegação */
.navegacao { display: flex; gap: 4px; flex-wrap: wrap; }
.navegacao a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px;
    color: var(--ink); font-weight: 700; text-decoration: none;
}
.navegacao a .ponto { width: 10px; height: 10px; border-radius: 50%; background: var(--cor); }
.navegacao a:hover { background: var(--cream); }
.navegacao a.ativo { background: var(--cream-deep); box-shadow: inset 0 0 0 2px var(--cor); }

h1 em { font-style: normal; color: var(--kicker); }
.voltar { display: inline-block; margin-bottom: 12px; color: var(--kicker); font-weight: 700; text-decoration: none; }

/* Cartões e números */
.cartao {
    background: var(--surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 24px;
    margin-bottom: 20px;
}
.cabecalho-do-cartao { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.cabecalho-do-cartao h2 { margin: 0; }

.grade-de-numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 24px 0; }
.numero {
    display: block;
    background: var(--surface);
    border-radius: var(--radius-card);
    box-shadow: 0 6px 0 var(--tint), var(--shadow-card);
    border-top: 6px solid var(--cor);
    padding: 18px 20px;
    color: var(--ink);
    text-decoration: none;
    transition: transform .15s ease-out;
}
a.numero:hover { transform: translateY(-2px); color: var(--ink); }
.numero .rotulo { display: block; font-weight: 700; font-size: 13px; color: var(--body2); }
.numero strong { display: block; font-family: "Fredoka", sans-serif; font-size: 40px; font-weight: 700; color: var(--ink-strong); line-height: 1.1; }
.numero small { color: var(--muted); font-weight: 600; }

.duas-colunas { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }

/* Gráfico de barras das novas contas */
.grafico-de-barras { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding: 8px 0; border-bottom: 2px solid var(--line-soft); }
.barra-do-dia { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.barra-do-dia .parte { display: block; border-radius: 4px 4px 0 0; min-height: 0; }
.parte.responsaveis, .ponto.responsaveis { background: #5B9E8F; }
.parte.terapeutas, .ponto.terapeutas { background: #7B7FB5; }
.legenda { margin: 10px 0 0; font-size: 13px; font-weight: 700; color: var(--body2); }
.legenda .ponto { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }

.lista-de-uso, .lista-simples, .lista-de-criancas, .lista-de-niveis { list-style: none; padding: 0; margin: 0; }
.lista-de-uso li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-weight: 600; }
.lista-de-uso strong { font-family: "Fredoka", sans-serif; font-size: 22px; }
.lista-simples li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.lista-simples li a { font-weight: 700; color: var(--ink-strong); }
.lista-simples small { color: var(--muted); font-weight: 600; }
.vazio, .vazio-da-lista { color: var(--muted); font-weight: 600; }
.encerrado { opacity: .55; }

/* Listas com filtro */
.filtros-da-lista { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filtros-da-lista .busca { flex: 1 1 260px; }
.filtros-da-lista .form-select { flex: 0 1 220px; border-radius: 12px; border: 2px solid var(--line); }
.alternador { display: inline-flex; background: var(--cream); border-radius: 999px; padding: 4px; }
.alternador button { border: 0; background: transparent; border-radius: 999px; padding: 6px 14px; font-weight: 700; color: var(--body2); }
.alternador button.ativo { background: var(--surface); color: var(--ink-strong); box-shadow: 0 2px 0 var(--line); }

.tabela { width: 100%; border-collapse: separate; border-spacing: 0; }
.tabela th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line-soft); }
.tabela td { padding: 12px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tabela td small { color: var(--muted); font-weight: 600; }
.tabela tr.clicavel { cursor: pointer; }
.tabela tr.clicavel:hover td { background: var(--cream); }
.numero-da-tabela { text-align: right; }
.chave { font-family: monospace; font-size: 11px; }
.alteracoes { display: block; max-width: 420px; white-space: pre-wrap; word-break: break-word; font-size: 11px; color: var(--body2); }

/* Crianças */
.avatar {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: color-mix(in srgb, var(--cor) 30%, white);
    box-shadow: inset 0 0 0 3px var(--cor);
    font-size: 22px;
}
.avatar.pequeno { width: 32px; height: 32px; font-size: 16px; box-shadow: inset 0 0 0 2px var(--cor); }
.avatar.grande { width: 88px; height: 88px; font-size: 44px; box-shadow: inset 0 0 0 5px var(--cor); }
.lista-de-criancas li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.lista-de-criancas small { color: var(--muted); font-weight: 600; }
.lista-de-criancas a { color: var(--ink-strong); }
.cabecalho-da-ficha { display: flex; gap: 20px; align-items: center; }

.lista-de-niveis li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.lista-de-niveis .ponto { width: 12px; height: 12px; border-radius: 50%; background: var(--cor); }
.lista-de-niveis .nome { flex: 1; font-weight: 700; }
.lista-de-niveis small { color: var(--muted); font-weight: 600; width: 80px; text-align: right; }
.estrelas span { color: var(--line); font-size: 18px; }
.estrelas span.acesa { color: #F7C463; }

.dados { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0 20px; }
.dados dt { color: var(--muted); font-weight: 700; font-size: 14px; }
.dados dd { margin: 0; font-weight: 600; }
.acoes-do-cartao { display: flex; gap: 10px; flex-wrap: wrap; }

.chip-terapeuta { background: #ECEDF6; color: #474A7E; }
.chip-responsavel { background: #E4F0EC; color: #2E5D52; }
.chip-alerta { background: #FBE4E0; color: #B5503F; }

.botao-perigo {
    border: 0; border-radius: var(--radius-button);
    background: #E4796B; color: #fff; font-weight: 700;
    padding: 8px 16px; box-shadow: 0 4px 0 #B5503F;
}
.botao-perigo:active { transform: translateY(3px); box-shadow: 0 1px 0 #B5503F; }
button.botao-secundario { cursor: pointer; }

@media (max-width: 1100px) {
    .barra { flex-wrap: wrap; gap: 10px; }
    .navegacao { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
    .navegacao a { white-space: nowrap; }
}

@media (max-width: 900px) {
    .tabela thead { display: none; }
    .tabela, .tabela tbody, .tabela tr, .tabela td { display: block; width: 100%; }
    .tabela tr { border-bottom: 1px solid var(--line-soft); padding: 8px 0; }
    .tabela td { border: 0; padding: 2px 0; text-align: left; }
}

@media (max-width: 600px) {
    .barra { padding: 12px 16px; }
    .conteudo { padding: 24px 16px; }
    .duas-colunas { grid-template-columns: 1fr; }
}

/* Conteúdo (D16) */
.cabecalho-da-tela { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.cabecalho-da-tela > div { flex: 1 1 320px; }
.cabecalho-da-tela .botao-gordinho { margin-top: 24px; flex: none; }
.form-select { border-radius: 12px; border: 2px solid var(--line); color: var(--ink); }
.maiusculas { text-transform: uppercase; }
.espaco { flex: 1; }
.aviso { background: var(--cream-deep); border-left: 6px solid var(--honey); border-radius: 16px; padding: 14px 18px; margin: 16px 0; font-weight: 600; color: var(--ink); }
.chip-palavra { background: #E1EFF7; color: #2F5E78; letter-spacing: .08em; }
.chip-embutida { background: #FFF3D6; color: var(--kicker); }
.chip-sucesso { background: #EAF3ED; color: #3F7D57; }
.chip-atividade { background: color-mix(in srgb, var(--cor) 22%, white); margin: 2px 4px 2px 0; }
.acoes-da-linha { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.acoes-da-linha button:disabled { opacity: .45; cursor: not-allowed; }

.moldura { display: grid; place-items: center; aspect-ratio: 1; background: var(--cream); border-radius: 18px; overflow: hidden; }
.moldura img { width: 82%; height: 82%; object-fit: contain; }
.moldura.grande { width: 220px; flex: none; }

.grade-de-imagens { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cartao-de-imagem, .cartao-de-item {
    display: flex; flex-direction: column; gap: 6px; text-align: left;
    background: var(--surface); border: 2px solid var(--line-soft); border-radius: 20px; padding: 10px;
    color: var(--ink); transition: border-color .15s ease-out, transform .15s ease-out;
}
.cartao-de-imagem:hover, .cartao-de-item:hover { border-color: var(--honey); transform: translateY(-2px); }
.cartao-de-imagem b, .cartao-de-item b { line-height: 1.25; }
.cartao-de-imagem small, .cartao-de-item small { color: var(--muted); font-weight: 600; font-size: 12px; }
.etiquetas { display: flex; gap: 4px; flex-wrap: wrap; }

.quadro-de-itens { width: 100%; border-collapse: separate; border-spacing: 6px; }
.quadro-de-itens th { font-size: 13px; color: var(--body2); font-weight: 700; text-align: center; }
.quadro-de-itens tbody th { text-align: left; white-space: nowrap; }
.quadro-de-itens .ponto { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--cor); margin-right: 8px; }
.quadro-de-itens button {
    width: 100%; border: 2px solid transparent; border-radius: 12px; padding: 6px 0;
    background: color-mix(in srgb, var(--cor) 18%, white); font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 18px; color: var(--ink-strong);
}
.quadro-de-itens button.baixo { background: var(--surface); color: #B5503F; border: 2px dashed #B5503F; }
.legenda-do-quadro { display: inline-block; width: 18px; height: 12px; border: 2px dashed #B5503F; border-radius: 4px; vertical-align: -1px; margin-right: 4px; }
.quadro-de-itens button.selecionado { border-color: var(--ink-strong); }

.grade-de-itens { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.cartao-de-item { border-top: 6px solid var(--cor); }

.previa { display: flex; flex-direction: column; align-items: center; gap: 8px; background: var(--cream); border-radius: 16px; padding: 12px; min-height: 150px; justify-content: center; }
.previa-modelo { width: 96px; height: 96px; display: grid; place-items: center; }
.previa-modelo img { max-width: 100%; max-height: 100%; }
.previa-modelo .figura { width: 100%; height: 100%; }
.previa-opcoes, .previa-palavra { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.previa .bolinha { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 -3px 0 rgba(74, 59, 42, .18); }
.previa .miniatura { width: 30px; height: 30px; }
.previa .miniatura .figura { width: 100%; height: 100%; }
.previa .bloco { display: grid; place-items: center; width: 26px; height: 30px; border-radius: 8px; background: var(--surface); box-shadow: 0 3px 0 var(--line); font-family: "Fredoka", sans-serif; font-weight: 600; }
.previa .bloco.falta { background: transparent; box-shadow: inset 0 0 0 2px var(--honey); border-style: dashed; }
.previa .bloco.opcao { background: var(--honey); box-shadow: 0 3px 0 var(--honey-deep); }
.previa-quebra-cabeca { position: relative; width: 120px; height: 120px; border-radius: 12px; overflow: hidden; background: var(--surface); }
.previa-quebra-cabeca img { width: 100%; height: 100%; object-fit: contain; }
.previa-quebra-cabeca .grade { position: absolute; inset: 0; }
.previa-legenda { color: var(--muted); font-weight: 700; font-size: 12px; }
.quadro-do-desenho { background: var(--surface); border-radius: 12px; }

/* Janela de edição */
.janela { position: fixed; inset: 0; z-index: 1050; display: grid; place-items: center; padding: 16px; }
.janela-fundo { position: absolute; inset: 0; background: rgba(59, 52, 43, .45); }
.janela-conteudo {
    position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - 32px); overflow-y: auto;
    background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 28px;
}
.janela-conteudo.larga { max-width: 920px; }
.janela-colunas { display: flex; gap: 24px; align-items: flex-start; margin: 16px 0; }
.janela-colunas .campos { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.janela-colunas .form-label { margin-top: 10px; display: block; }
.janela-colunas .form-label small { color: var(--muted); font-weight: 600; }
.janela-acoes { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line-soft); padding-top: 16px; }
.lado-da-previa { width: 240px; flex: none; position: sticky; top: 0; }
.lado-da-previa .previa { min-height: 240px; }
.lado-da-previa .previa-modelo { width: 150px; height: 150px; }
.lado-da-previa .previa-quebra-cabeca { width: 180px; height: 180px; }
.balao-da-instrucao { margin-top: 10px; background: var(--cream-deep); border-radius: 16px; padding: 10px 14px; font-weight: 700; color: var(--ink-strong); }
.linha-de-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.escolhas { display: flex; gap: 6px; flex-wrap: wrap; }
.escolha, .amostra, .bloco-de-letra {
    border: 2px solid var(--line); background: var(--surface); border-radius: 12px; padding: 6px 12px; font-weight: 700; color: var(--ink);
}
.escolha.objeto { display: inline-flex; flex-direction: column; align-items: center; width: 74px; padding: 4px 2px; font-size: 11px; line-height: 1.2; }
.miniatura-do-objeto { width: 40px; height: 40px; }
.miniatura-do-objeto .figura { width: 100%; height: 100%; }
.escolha.escolhida, .bloco-de-letra.escolhida { border-color: var(--honey-deep); background: var(--cream-deep); box-shadow: 0 3px 0 var(--honey-deep); }
.amostra { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; }
.amostra::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--amostra); }
.amostra span { font-size: 13px; }
.amostra.escolhida { border-color: var(--ink-strong); box-shadow: 0 3px 0 var(--ink-strong); }
.bloco-de-letra { font-family: "Fredoka", sans-serif; font-size: 20px; width: 44px; padding: 4px 0; }
.bloco-de-letra.pequeno { width: 34px; font-size: 15px; }

.seletor-de-imagem { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; max-height: 196px; overflow-y: auto; padding: 2px; }
.seletor-de-imagem button { display: flex; flex-direction: column; align-items: center; border: 2px solid var(--line-soft); background: var(--cream); border-radius: 12px; padding: 4px; }
.seletor-de-imagem button img { width: 44px; height: 44px; object-fit: contain; }
.seletor-de-imagem button small { font-size: 10px; font-weight: 800; color: var(--body2); }
.seletor-de-imagem button.escolhida { border-color: var(--honey-deep); background: var(--cream-deep); }

previa-do-item { display: block; }
.editor-de-desenho previa-do-item { height: 100%; }
.editor-de-desenho { position: relative; width: 100%; max-width: 320px; aspect-ratio: 1; margin: 10px 0; cursor: crosshair; }
.editor-de-desenho .previa {
    padding: 0; min-height: 0; height: 100%; box-shadow: inset 0 0 0 2px var(--line);
    background: var(--surface) linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 10% 10%, linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 10% 10%;
}
.editor-de-desenho .quadro-do-desenho { background: transparent; }
.editor-de-desenho .previa-modelo { width: 100%; height: 100%; }
.ponto-do-desenho { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--ink); pointer-events: none; }
.ponto-do-desenho.falta { background: var(--honey-deep); }

@media (max-width: 760px) {
    .janela-colunas { flex-direction: column; }
    .lado-da-previa, .moldura.grande { width: 100%; position: static; }
}

/* Contas (D18) */
.janela-conteudo.estreita { max-width: 480px; }
.campos-da-conta { display: flex; flex-direction: column; gap: 6px; margin: 16px 0; }
.campos-da-conta .form-label { margin-top: 8px; }
.campos-da-conta .form-label small { color: var(--muted); font-weight: 600; }
.senha-provisoria { display: flex; align-items: center; gap: 12px; margin: 16px 0; padding: 14px 18px; background: var(--cream-deep); border-radius: 16px; }
.senha-provisoria code { flex: 1; font-size: 24px; font-weight: 700; letter-spacing: .08em; color: var(--ink-strong); }

/* Confirmação e avisos do smoke (wwwroot/lib não é editado): o mesmo desenho das .janela do painel.
   O smoke anima o "top" do cartão em linha; o !important segura o cartão no centro e fica só o fade. */
.smk-confirm-back { background: rgba(59, 52, 43, .45); }
.smk-confirm-back .smk-confirm {
    top: 50% !important;
    transform: translateY(-50%);
    width: calc(100% - 32px);
    max-width: 440px;
    padding: 28px;
    border: 0;
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    color: var(--ink);
}
.smk-confirm-back .smk-confirm:focus { box-shadow: var(--shadow-card), 0 0 0 3px var(--cream-deep); }
.smk-confirm .card-body {
    padding: 0 0 20px;
    font-family: "Fredoka", sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.45;
    color: var(--ink-strong);
}
.smk-confirm .text-end { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line-soft); padding-top: 16px; }
.smk-confirm .btn {
    border-radius: var(--radius-button);
    font-weight: 700;
    font-size: 15px;
    padding: 9px 18px;
    text-decoration: none;
}
.smk-confirm .smk-cancel { background: var(--surface); border: 2px solid var(--line); color: var(--ink); box-shadow: 0 4px 0 var(--line); }
.smk-confirm .smk-cancel:hover { background: var(--cream); color: var(--ink); border-color: var(--line); }
.smk-confirm .smk-accept {
    background: var(--honey); border: 0; color: var(--ink-strong);
    font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 16px;
    box-shadow: 0 5px 0 var(--honey-deep);
}
.smk-confirm .smk-accept:hover, .smk-confirm .smk-accept:focus { background: var(--honey-pressed); color: var(--ink-strong); }
.smk-confirm .btn:active { transform: translateY(3px); box-shadow: none; }

.smk-alert-content .alert {
    border: 0;
    border-left: 6px solid var(--muted);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
    color: var(--ink);
    font-weight: 600;
}
.smk-alert-content .alert-success { border-left-color: #5FA97D; }
.smk-alert-content .alert-danger { border-left-color: #E4796B; }
.smk-alert-content .alert-warning { border-left-color: var(--honey); }
.smk-alert-content .alert-info { border-left-color: #6FB1D6; }

/* Paginação (uib-pagination): pílulas da identidade, centralizadas abaixo da lista. */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 24px 0 0; }
.pagination .page-link {
    display: grid; place-items: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border: 2px solid var(--line-soft); border-radius: 999px;
    background: var(--surface); color: var(--ink);
    font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 16px;
    box-shadow: none;
}
.pagination .page-item:not(:first-child) .page-link { margin-left: 0; }
.pagination .page-item:first-child .page-link, .pagination .page-item:last-child .page-link { border-radius: 999px; }
.pagination .page-link:hover { background: var(--cream); border-color: var(--line); color: var(--ink-strong); }
.pagination .page-link:focus { box-shadow: 0 0 0 3px var(--cream-deep); }
.pagination .page-item.active .page-link { background: var(--honey); border-color: var(--honey); color: var(--ink-strong); box-shadow: 0 3px 0 var(--honey-deep); }
.pagination .page-item.disabled .page-link { background: transparent; border-color: transparent; color: var(--line); }

/* Cenário do painel: o céu do site no topo, a Zuzu no cabeçalho de cada tela (pose pelo assunto,
   no _Layout) e as colinas no rodapé. */
body.painel {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}
.painel > .ceu { bottom: auto; height: 360px; }
.painel .ceu .nuvem-a { left: 30%; top: 150px; transform: scale(.8); }
.painel .ceu .nuvem-b { left: 56%; top: 96px; transform: scale(.6); }

.painel .barra {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px 16px;
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 24px 0;
    background: transparent;
    border: 0;
}
.painel .barra .navegacao { grid-column: 1 / -1; grid-row: 2; }
.painel .barra .usuario-logado { grid-column: 2; grid-row: 1; margin-right: 150px; white-space: nowrap; }
.painel > .ceu .sol {
    width: 220px;
    height: 220px;
    right: -50px;
    top: -120px;
    box-shadow: 0 0 0 26px #FDEFC7, 0 0 0 56px rgba(253, 239, 199, .45);
}
.painel .barra .marca strong { font-size: 26px; }

.painel .navegacao { gap: 6px; }
.painel .navegacao a {
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 3px 0 var(--line-soft);
    gap: 7px;
    padding: 6px 12px;
    font-size: 14px;
    transition: transform .1s ease-out, box-shadow .1s ease-out;
}
.painel .navegacao a:hover { background: #fff; transform: translateY(1px); box-shadow: 0 2px 0 var(--line-soft); }
.painel .navegacao a.ativo {
    background: color-mix(in srgb, var(--cor) 26%, white);
    color: var(--ink-strong);
    box-shadow: 0 4px 0 var(--cor);
}
.painel .navegacao a.ativo .ponto { background: var(--ink-strong); }

.painel .usuario-logado .nome { color: var(--body2); }
.painel .usuario-logado .sair {
    background: #fff;
    border-radius: 999px;
    padding: 6px 16px;
    box-shadow: 0 3px 0 var(--line-soft);
}

.painel .conteudo { position: relative; flex: 1 0 auto; width: 100%; padding-top: 20px; }
.painel h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 700; }
.painel .voltar { position: relative; }

.painel .cabecalho-da-tela { position: relative; align-items: center; margin-bottom: 24px; }
.painel .cabecalho-da-tela .botao-gordinho { margin-top: 0; }
.painel .cabecalho-da-tela .apoio { max-width: 62ch; }
.painel .cabecalho-da-tela::after {
    content: "";
    flex: none;
    width: 124px;
    height: 131px;
    background: url("../img/site/zuzu_falando.svg") center / contain no-repeat;
    animation: zuzu-flutuar 3.6s ease-in-out infinite;
}
.pose-feliz .cabecalho-da-tela::after { background-image: url("../img/site/zuzu_feliz.svg"); }
.pose-comemorando .cabecalho-da-tela::after { background-image: url("../img/site/zuzu_comemorando.svg"); }
.pose-explicando .cabecalho-da-tela::after { background-image: url("../img/site/zuzu_explicando.svg"); }
.pose-relogio .cabecalho-da-tela::after { background-image: url("../img/site/zuzu_relogio.svg"); }
/* Nas janelas e fichas o cabeçalho é de outro assunto: a Zuzu fica só no topo da tela. */
.painel .janela .cabecalho-da-tela::after, .painel .cartao .cabecalho-da-tela::after { display: none; }

.painel .cartao {
    border-radius: 28px;
    box-shadow: var(--shadow-card), 0 6px 0 var(--line-soft);
    padding: 26px;
}

.painel .numero {
    border-top: 0;
    border-radius: 24px;
    background: var(--tint, var(--cream-deep));
    box-shadow: 0 6px 0 var(--cor);
    padding: 20px 22px 18px;
}
.painel a.numero:hover { transform: translateY(3px); box-shadow: 0 3px 0 var(--cor); }
.painel .numero .rotulo { color: var(--ink); }
.painel .numero strong { font-size: 44px; }
.painel .numero small { color: var(--body2); }

.painel .tabela th { background: var(--cream); border-bottom: 0; }
.painel .tabela th:first-child { border-radius: 12px 0 0 12px; }
.painel .tabela th:last-child { border-radius: 0 12px 12px 0; }

.painel .vazio-da-lista {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px 0 8px;
    text-align: center;
}
.painel .vazio-da-lista::before {
    content: "";
    width: 84px;
    height: 89px;
    background: url("../img/site/zuzu_dormindo.svg") center / contain no-repeat;
}

.janela-conteudo { border-radius: 32px; box-shadow: var(--shadow-card), 0 8px 0 var(--line-soft); }

.rodape-do-painel {
    position: relative;
    margin-top: 48px;
    padding: 96px 16px 22px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #2E5D52;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 160' preserveAspectRatio='none'%3E%3Cpath d='M0 60 C260 0 520 0 760 40 C1000 80 1220 70 1440 20 V160 H0Z' fill='%23E5F3EA'/%3E%3Cpath d='M0 120 C300 80 600 86 860 112 C1100 136 1280 126 1440 98 V160 H0Z' fill='%23CFE6D6'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
}
.rodape-do-painel p { margin: 0; }
.rodape-do-painel a { color: #2E5D52; }

@media (prefers-reduced-motion: reduce) {
    .painel .cabecalho-da-tela::after { animation: none; }
    .painel .navegacao a { transition: none; }
}

@media (max-width: 1100px) {
    .painel .barra { padding: 16px 20px 0; }
    .painel .barra .usuario-logado { margin-right: 90px; }
    .painel .navegacao { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; scrollbar-width: none; }
    .painel .navegacao::-webkit-scrollbar { display: none; }
}

@media (max-width: 600px) {
    .painel > .ceu .sol { width: 160px; height: 160px; right: -60px; top: -90px; }
    .painel .barra .usuario-logado { margin-right: 60px; }
    .painel .barra .usuario-logado .nome { display: none; }
    .painel .ceu .nuvem-a { display: none; }
    .painel .cabecalho-da-tela { flex-wrap: nowrap; align-items: flex-start; }
    .painel .cabecalho-da-tela > div { flex: 1 1 auto; min-width: 0; }
    .painel .cabecalho-da-tela::after { width: 72px; height: 76px; }
    .painel .cabecalho-da-tela:has(.botao-gordinho) { flex-wrap: wrap; }
    .painel .cabecalho-da-tela:has(.botao-gordinho) .botao-gordinho { order: 3; width: 100%; }
    .painel .cabecalho-da-tela:has(.botao-gordinho)::after { position: absolute; right: 0; top: -8px; }
    .painel .cabecalho-da-tela:has(.botao-gordinho) > div { padding-right: 80px; }
}
